Changeset 9546 in orxonox.OLD for branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.h
- Timestamp:
- Jul 28, 2006, 11:13:00 AM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.h
r9541 r9546 1 1 /*! 2 * @file glgui_.h 3 * The gl_box widget of th openglGUI 4 * 2 * @file glgui_fixedposition_box.h 3 * The gl_fixedposition_box widget of th openglGUi 5 4 */ 6 5 7 #ifndef _GLGUI_ BOX_H8 #define _GLGUI_ BOX_H6 #ifndef _GLGUI_FIXEDPOSITION_BOX_H 7 #define _GLGUI_FIXEDPOSITION_BOX_H 9 8 10 9 #include "glgui_container.h" … … 17 16 * 18 17 */ 19 class GLGui Box : public GLGuiContainer18 class GLGuiFixedpositionBox : public GLGuiBox 20 19 { 21 20 22 21 public: 23 GLGui Box(OrxGui::Orientation orientation = OrxGui::Vertical);24 virtual ~GLGui Box();22 GLGuiFixedpositionBox(OrxGui::Position position = OrxGui::Center, OrxGui::Orientation orientation = OrxGui::Vertical); 23 virtual ~GLGuiFixedpositionBox(); 25 24 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; }; 25 inline OrxGui::Position position() const { return _position; }; 26 void setPosition(OrxGui::Position); 30 27 31 virtual void pack(GLGuiWidget* widget);32 virtual void unpack(GLGuiWidget* widget);33 virtual void clear();34 35 virtual void showAll();36 virtual void hideAll();37 38 virtual void draw() const;39 28 40 29 protected: 41 30 virtual void resize(); 42 31 32 43 33 private: 44 void init(); 45 46 Orientation _orientation; 47 std::vector<GLGuiWidget*> children; 34 OrxGui::Position _position; //!< The Fixed position of the Widget. 48 35 }; 49 36 } 50 #endif /* _GLGUI_ _H */37 #endif /* _GLGUI_FIXEDPOSITION_BOX_H */
Note: See TracChangeset
for help on using the changeset viewer.