diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-12 17:27:00 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-12 17:27:00 +0000 |
commit | 574bf11742c40203a4433c0b69264014b10b5a96 (patch) | |
tree | 5fdaa40d22c38e5d8cce47d43a1a892008322598 /src/ui/menu.h | |
parent | b417df720584c101f3799874a0c836a543a8d0a8 (diff) |
container widget
Diffstat (limited to 'src/ui/menu.h')
-rw-r--r-- | src/ui/menu.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/menu.h b/src/ui/menu.h index 1b4f17e..a909e20 100644 --- a/src/ui/menu.h +++ b/src/ui/menu.h @@ -8,6 +8,7 @@ #define __INCLUDED_UI_MENU_H__ #include "ui/bitmap.h" +#include "ui/container.h" #include "ui/button.h" #include "ui/label.h" #include "ui/window.h" @@ -27,23 +28,22 @@ public: /// load a menu from ini/menus/label.ini void load(); - void set_background(const char *texture); + /// set the background bitmap + void set_background_texture(const char *texture); + /// add a label Label *add_label(char const * text=0); + /// add a button with a command Button *add_button(char const *text=0, char const *command=0); protected: + /// resize event virtual void resize(); private: - float menu_element_width; - float menu_element_height; - float menu_element_margin; - Bitmap *menu_background; - Window *menu_container; - + Container *menu_container; }; } |