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.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/ui/menu.h b/src/ui/menu.h
deleted file mode 100644
index 7fd211c..0000000
--- a/src/ui/menu.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- ui/menu.h
- This file is part of the Osirion project and is distributed under
- the terms of the GNU General Public License version 2
-*/
-
-#ifndef __INCLUDED_UI_MENU_H__
-#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"
-
-namespace ui
-{
-
-/// a menu container
-class Menu : public Window
-{
-
-public:
- /// create a new menu
- Menu(Window *parent, const char * label = 0);
- ~Menu();
-
- /// set the background bitmap
- void set_background_texture(const char *texture);
-
- /// set the background bitmap
- void set_background_texture(const std::string &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();
-
- /// keypress event
- virtual bool on_keypress(const int key, const unsigned int modifier);
-
-private:
- Bitmap *menu_background;
- Container *menu_container;
-};
-
-}
-
-#endif // __INCLUDED_UI_MENU_H__