Changeset 5366 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_widget.h
- Timestamp:
- Oct 12, 2005, 1:23:08 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_widget.h
r5365 r5366 1 1 /*! 2 3 4 2 * @file glgui_widget.h 3 * The gl_widget of the openglGUI 4 */ 5 5 6 6 #ifndef _GLGUI_WIDGET_H … … 15 15 //! This is part of the openglGUI class 16 16 /** 17 18 17 * A widget is the main class of all the elements of th GUI. 18 */ 19 19 class GLGuiWidget : public Element2D { 20 public:21 GLGuiWidget();22 virtual ~GLGuiWidget();20 public: 21 GLGuiWidget(); 22 virtual ~GLGuiWidget(); 23 23 24 void init();24 void init(); 25 25 26 void show();27 void hide();26 void show(); 27 void hide(); 28 28 29 29 30 virtual void draw() = 0;31 virtual void update() = 0;30 virtual void draw() = 0; 31 virtual void update() = 0; 32 32 33 private: 34 bool managed; //!< if this GUI-element should be managed. true means it gets deleted with the deletion of it's parent. 35 bool focusable; //!< If it can receive focus. 36 bool clickable; //!< if it can be clicked upon. 33 protected: 34 Material* backGround; 35 GLuint renderModel; 37 36 38 Material* backGround; 39 GLuint renderModel; 37 private: 38 bool managed; //!< if this GUI-element should be managed. true means it gets deleted with the deletion of it's parent. 39 bool focusable; //!< If it can receive focus. 40 bool clickable; //!< if it can be clicked upon. 41 40 42 41 43
Note: See TracChangeset
for help on using the changeset viewer.