diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-06 18:22:32 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-06 18:22:32 +0000 |
commit | a14d80f83aebe75241bf63b4f3ffca3a5d952577 (patch) | |
tree | fea36faedd17a0aa620f6d7e781a352327d6065d /src/ui/ui.h | |
parent | 343b0b4298e2d084d5544d3d40a8b7dcb586ce8e (diff) |
libui updates, support menu .ini files
Diffstat (limited to 'src/ui/ui.h')
-rw-r--r-- | src/ui/ui.h | 12 |
1 files changed, 11 insertions, 1 deletions
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 |