diff options
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; }; } |