Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7779 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_bar.h


Ignore:
Timestamp:
May 23, 2006, 10:04:17 PM (18 years ago)
Author:
bensch
Message:

3088 linews changed :): trunk: namespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_bar.h

    r6287 r7779  
    1010#include "glgui_widget.h"
    1111
    12 // FORWARD DECLARATION
    1312
    14 //! This is Bar part of the openglGUI class
    15 /**
    16  * The Bar shows the part value.
    17  */
    18 class GLGuiBar : public GLGuiWidget {
     13namespace OrxGui
     14{
    1915
    20  public:
    21   GLGuiBar();
    22   virtual ~GLGuiBar();
    2316
    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  {
    2723
    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();
    3127
    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; };
    3431
    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();
    3741
    3842  private:
     
    4145    float minimum;
    4246    float maximum;
    43 };
    44 
     47  };
     48}
    4549#endif /* _GLGUI__H */
Note: See TracChangeset for help on using the changeset viewer.