Changeset 7779 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_bar.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_bar.h
r6287 r7779 10 10 #include "glgui_widget.h" 11 11 12 // FORWARD DECLARATION13 12 14 //! This is Bar part of the openglGUI class 15 /** 16 * The Bar shows the part value. 17 */ 18 class GLGuiBar : public GLGuiWidget { 13 namespace OrxGui 14 { 19 15 20 public:21 GLGuiBar();22 virtual ~GLGuiBar();23 16 24 void setValue(float value) { this->value = value; }; 25 void setMinimum(float minimum) { this->minimum = minimum; }; 26 void setMaximum(float maximum) { this->maximum = maximum; }; 17 //! This is Bar part of the openglGUI class 18 /** 19 * The Bar shows the part value. 20 */ 21 class GLGuiBar : public GLGuiWidget 22 { 27 23 28 float getValue() const { return this->value; };29 float getMinimum() const { return this->minimum; };30 float getMaximum() const { return this->maximum; };24 public: 25 GLGuiBar(); 26 virtual ~GLGuiBar(); 31 27 32 virtual void update() { }; 33 virtual void draw() const; 28 void setValue(float value) { this->value = value; }; 29 void setMinimum(float minimum) { this->minimum = minimum; }; 30 void setMaximum(float maximum) { this->maximum = maximum; }; 34 31 35 private: 36 void init(); 32 float getValue() const { return this->value; }; 33 float getMinimum() const { return this->minimum; }; 34 float getMaximum() const { return this->maximum; }; 35 36 virtual void update() { }; 37 virtual void draw() const; 38 39 private: 40 void init(); 37 41 38 42 private: … … 41 45 float minimum; 42 46 float maximum; 43 };44 47 }; 48 } 45 49 #endif /* _GLGUI__H */
Note: See TracChangeset
for help on using the changeset viewer.