source:
orxonox.OLD/trunk/src/lib/gui/gl/glgui_menu.h
@
8230
Last change on this file since 8230 was 8145, checked in by bensch, 18 years ago | |
---|---|
File size: 722 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[5366] | 2 | * @file glgui_menu.h |
3 | * The gl_Menu widget of th openglGUI | |
[5360] | 4 | * |
5 | */ | |
[1853] | 6 | |
[5366] | 7 | #ifndef _GLGUI_MENU_H |
8 | #define _GLGUI_MENU_H | |
[1853] | 9 | |
[3543] | 10 | #include "base_object.h" |
[7779] | 11 | namespace OrxGui |
12 | { | |
[1853] | 13 | |
[7779] | 14 | // FORWARD DECLARATION |
15 | //! This is Menu part of the openglGUI class | |
16 | /** | |
17 | * | |
18 | */ | |
19 | class GLGuiMenu : public GLGuiMenu | |
20 | { | |
[3543] | 21 | |
[7779] | 22 | public: |
23 | GLGuiMenu(); | |
24 | virtual ~GLGuiMenu(); | |
[2036] | 25 | |
[7779] | 26 | void init(); |
[1853] | 27 | |
[7779] | 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); | |
[5391] | 33 | |
[7779] | 34 | virtual void draw(); |
[1853] | 35 | |
[7779] | 36 | private: |
37 | std::list<std::string> itemList; | |
[3245] | 38 | |
[7779] | 39 | }; |
40 | } | |
[5366] | 41 | #endif /* _GLGUI_MENU_H */ |
Note: See TracBrowser
for help on using the repository browser.