Changeset 7779 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_box.h
- Timestamp:
- May 23, 2006, 10:04:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_box.h
r7130 r7779 10 10 #include "glgui_container.h" 11 11 12 // FORWARD DECLARATION13 12 14 typedef enum 13 namespace OrxGui 15 14 { 16 GLGuiBox_H, 17 GLGuiBox_V, 18 } GLGuiBoxType; 15 typedef enum 16 { 17 Box_H, 18 Box_V, 19 } BoxType; 19 20 20 //! This is BOX part of the openglGUI class 21 /** 22 * 23 */ 24 class GLGuiBox : public GLGuiContainer { 21 //! This is BOX part of the openglGUI class 22 /** 23 * 24 */ 25 class GLGuiBox : public GLGuiContainer 26 { 25 27 26 public:27 GLGuiBox(GLGuiBoxType type = GLGuiBox_H);28 virtual ~GLGuiBox();28 public: 29 GLGuiBox(BoxType type = Box_H); 30 virtual ~GLGuiBox(); 29 31 30 void init();31 void setType(GLGuiBoxType type) { this->type = type; };32 void init(); 33 void setType(BoxType type) { this->type = type; }; 32 34 33 virtual void pack(GLGuiWidget* widget);34 virtual void unpack(GLGuiWidget* widget);35 virtual void showAll();36 virtual void hideAll();35 virtual void pack(GLGuiWidget* widget); 36 virtual void unpack(GLGuiWidget* widget); 37 virtual void showAll(); 38 virtual void hideAll(); 37 39 38 virtual void draw() const;40 virtual void draw() const; 39 41 40 private:41 GLGuiBoxTypetype;42 std::list<GLGuiWidget*> children;43 };44 42 private: 43 BoxType type; 44 std::list<GLGuiWidget*> children; 45 }; 46 } 45 47 #endif /* _GLGUI__H */
Note: See TracChangeset
for help on using the changeset viewer.