| Line | |
|---|
| 1 | /*! |
|---|
| 2 | * @file glgui_menu.h |
|---|
| 3 | * The gl_Menu widget of th openglGUI |
|---|
| 4 | * |
|---|
| 5 | */ |
|---|
| 6 | |
|---|
| 7 | #ifndef _GLGUI_MENU_H |
|---|
| 8 | #define _GLGUI_MENU_H |
|---|
| 9 | |
|---|
| 10 | #include "base_object.h" |
|---|
| 11 | namespace OrxGui |
|---|
| 12 | { |
|---|
| 13 | |
|---|
| 14 | // FORWARD DECLARATION |
|---|
| 15 | //! This is Menu part of the openglGUI class |
|---|
| 16 | /** |
|---|
| 17 | * |
|---|
| 18 | */ |
|---|
| 19 | class GLGuiMenu : public GLGuiMenu |
|---|
| 20 | { |
|---|
| 21 | ObjectListDeclaration(GLGuiMenu); |
|---|
| 22 | public: |
|---|
| 23 | GLGuiMenu(); |
|---|
| 24 | virtual ~GLGuiMenu(); |
|---|
| 25 | |
|---|
| 26 | void init(); |
|---|
| 27 | |
|---|
| 28 | void addItem(const std::string& itemName); |
|---|
| 29 | void removeItem(const std::string& itemName); |
|---|
| 30 | void removeItem(unsigned int itemNumber); |
|---|
| 31 | void selectItem(const std::string& itemName); |
|---|
| 32 | void selectItem(unsigned int itemNumber); |
|---|
| 33 | |
|---|
| 34 | virtual void draw(); |
|---|
| 35 | |
|---|
| 36 | private: |
|---|
| 37 | std::list<std::string> itemList; |
|---|
| 38 | |
|---|
| 39 | }; |
|---|
| 40 | } |
|---|
| 41 | #endif /* _GLGUI_MENU_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.