Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/menu.h')
-rw-r--r--src/ui/menu.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/ui/menu.h b/src/ui/menu.h
index 376e069..1b4f17e 100644
--- a/src/ui/menu.h
+++ b/src/ui/menu.h
@@ -12,36 +12,38 @@
#include "ui/label.h"
#include "ui/window.h"
-namespace ui {
+namespace ui
+{
/// a menu container
-class Menu : public Window {
+class Menu : public Window
+{
public:
/// create a new menu
Menu(Window *parent, const char * label);
~Menu();
-
+
/// load a menu from ini/menus/label.ini
void load();
-
+
void set_background(const char *texture);
-
+
Label *add_label(char const * text=0);
-
+
Button *add_button(char const *text=0, char const *command=0);
-
+
protected:
virtual void resize();
-
+
private:
float menu_element_width;
float menu_element_height;
float menu_element_margin;
-
+
Bitmap *menu_background;
Window *menu_container;
-
+
};
}