Last change
on this file since 8016 was
7779,
checked in by bensch, 18 years ago
|
3088 linews changed : trunk: namespaces
|
File size:
763 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file glgui_.h |
---|
3 | * The gl_box widget of th openglGUI |
---|
4 | * |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _GLGUI_BOX_H |
---|
8 | #define _GLGUI_BOX_H |
---|
9 | |
---|
10 | #include "glgui_container.h" |
---|
11 | |
---|
12 | |
---|
13 | namespace OrxGui |
---|
14 | { |
---|
15 | typedef enum |
---|
16 | { |
---|
17 | Box_H, |
---|
18 | Box_V, |
---|
19 | } BoxType; |
---|
20 | |
---|
21 | //! This is BOX part of the openglGUI class |
---|
22 | /** |
---|
23 | * |
---|
24 | */ |
---|
25 | class GLGuiBox : public GLGuiContainer |
---|
26 | { |
---|
27 | |
---|
28 | public: |
---|
29 | GLGuiBox(BoxType type = Box_H); |
---|
30 | virtual ~GLGuiBox(); |
---|
31 | |
---|
32 | void init(); |
---|
33 | void setType(BoxType type) { this->type = type; }; |
---|
34 | |
---|
35 | virtual void pack(GLGuiWidget* widget); |
---|
36 | virtual void unpack(GLGuiWidget* widget); |
---|
37 | virtual void showAll(); |
---|
38 | virtual void hideAll(); |
---|
39 | |
---|
40 | virtual void draw() const; |
---|
41 | |
---|
42 | private: |
---|
43 | BoxType type; |
---|
44 | std::list<GLGuiWidget*> children; |
---|
45 | }; |
---|
46 | } |
---|
47 | #endif /* _GLGUI__H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.