Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-12 14:55:10 +0000
committerStijn Buys <ingar@osirion.org>2008-10-12 14:55:10 +0000
commitb417df720584c101f3799874a0c836a543a8d0a8 (patch)
treefb7105ed662f13753a6ab8d3efb047bad04f2316 /src/ui/menu.h
parent18383a5fc596bf9546f14d7393ee66c57720b116 (diff)
user interface updates, work-in-progress
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;
-
+
};
}