source:
orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_box.h
@
6774
Last change on this file since 6774 was 6287, checked in by bensch, 19 years ago | |
---|---|
File size: 782 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[5364] | 2 | * @file glgui_.h |
3 | * The gl_box widget of th openglGUI | |
[5360] | 4 | * |
5 | */ | |
[1853] | 6 | |
[5364] | 7 | #ifndef _GLGUI_BOX_H |
8 | #define _GLGUI_BOX_H | |
[1853] | 9 | |
[5364] | 10 | #include "glgui_container.h" |
[1853] | 11 | |
[4838] | 12 | // FORWARD DECLARATION |
[5393] | 13 | template<class T> class tList; |
[3543] | 14 | |
[5391] | 15 | typedef enum |
16 | { | |
17 | GLGuiBox_H, | |
18 | GLGuiBox_V, | |
19 | } GLGuiBoxType; | |
20 | ||
[5364] | 21 | //! This is BOX part of the openglGUI class |
[5360] | 22 | /** |
23 | * | |
24 | */ | |
[5364] | 25 | class GLGuiBox : public GLGuiContainer { |
[3543] | 26 | |
[5360] | 27 | public: |
[5391] | 28 | GLGuiBox(GLGuiBoxType type = GLGuiBox_H); |
[5364] | 29 | virtual ~GLGuiBox(); |
[2036] | 30 | |
[5360] | 31 | void init(); |
[5391] | 32 | void setType(GLGuiBoxType type) { this->type = type; }; |
[1853] | 33 | |
[5393] | 34 | virtual void pack(GLGuiWidget* widget); |
35 | virtual void unpack(GLGuiWidget* widget); | |
36 | virtual void showAll(); | |
37 | virtual void hideAll(); | |
38 | ||
[6287] | 39 | virtual void draw() const; |
[1853] | 40 | |
[3245] | 41 | private: |
[5393] | 42 | GLGuiBoxType type; |
43 | tList<GLGuiWidget>* children; | |
[3245] | 44 | |
[1853] | 45 | }; |
46 | ||
[5360] | 47 | #endif /* _GLGUI__H */ |
Note: See TracBrowser
for help on using the repository browser.