From a14d80f83aebe75241bf63b4f3ffca3a5d952577 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 6 Oct 2008 18:22:32 +0000 Subject: libui updates, support menu .ini files --- src/ui/ui.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/ui/ui.h') diff --git a/src/ui/ui.h b/src/ui/ui.h index c516d47..527d959 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -24,6 +24,12 @@ public: /// list widgets void list(); + /// list meus + void list_menus(); + + /// reload menu files + void load(); + /// make a window the active window void show_window(char const *label); @@ -33,12 +39,16 @@ public: /// return the active window Window *active() { return ui_active_window; } + /// set mouse cursor position + void set_mouse_cursor(float x, float y); + protected: virtual void add_window(Window *window); virtual void remove_window(Window *window); private: - Window *ui_active_window; + Window *ui_active_window; + math::Vector2f mouse_cursor; }; /// initialize the user interface -- cgit v1.2.3