source:
orxonox.OLD/trunk/src/lib/gui/gl/glgui_box.h
@
10065
Last change on this file since 10065 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 1.5 KB |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[9656] | 2 | * @file glgui_box.h |
[5364] | 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" |
[8035] | 11 | #include "glgui_defs.h" |
[1853] | 12 | |
[7779] | 13 | namespace OrxGui |
[5391] | 14 | { |
[7779] | 15 | //! This is BOX part of the openglGUI class |
16 | /** | |
17 | * | |
18 | */ | |
19 | class GLGuiBox : public GLGuiContainer | |
20 | { | |
[9869] | 21 | ObjectListDeclaration(GLGuiBox); |
[7779] | 22 | public: |
[8035] | 23 | GLGuiBox(OrxGui::Orientation orientation = OrxGui::Vertical); |
[7779] | 24 | virtual ~GLGuiBox(); |
[2036] | 25 | |
[8035] | 26 | /** @returns the Orientation of the Box */ |
27 | OrxGui::Orientation orientation() const { return this->_orientation; }; | |
28 | /** @param orientation the Orientation of the Box */ | |
29 | void setOrientation(OrxGui::Orientation orientation) { this->_orientation = orientation; }; | |
[1853] | 30 | |
[7779] | 31 | virtual void pack(GLGuiWidget* widget); |
[9656] | 32 | void pack(GLGuiWidget* widget, unsigned int position); |
33 | void pack(GLGuiWidget* widget, const GLGuiWidget* widgetPointer); | |
34 | void packFront(GLGuiWidget* widget); | |
35 | void packBack(GLGuiWidget* widget); | |
[7779] | 36 | virtual void unpack(GLGuiWidget* widget); |
[9656] | 37 | |
[8035] | 38 | virtual void clear(); |
39 | ||
[7779] | 40 | virtual void showAll(); |
41 | virtual void hideAll(); | |
[5393] | 42 | |
[7779] | 43 | virtual void draw() const; |
[1853] | 44 | |
[8035] | 45 | protected: |
46 | virtual void resize(); | |
47 | ||
[7779] | 48 | private: |
[8035] | 49 | void init(); |
[9656] | 50 | void packing(GLGuiWidget* widget); // the action executing when packing a widget. |
51 | void pack(GLGuiWidget* widget, std::list<GLGuiWidget*>::iterator pos); | |
[8035] | 52 | |
[9656] | 53 | private: |
54 | ||
55 | ||
[8035] | 56 | Orientation _orientation; |
[9656] | 57 | std::list<GLGuiWidget*> _children; |
[7779] | 58 | }; |
59 | } | |
[5360] | 60 | #endif /* _GLGUI__H */ |
Note: See TracBrowser
for help on using the repository browser.