Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 25, 2005, 5:32:21 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some gui-work

File:
1 edited

Legend:

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

    r5365 r6287  
    1414//! This is Bar part of the openglGUI class
    1515/**
    16  *
     16 * The Bar shows the part value.
    1717 */
    1818class GLGuiBar : public GLGuiWidget {
     
    2222  virtual ~GLGuiBar();
    2323
    24   void init();
     24  void setValue(float value) { this->value = value; };
     25  void setMinimum(float minimum) { this->minimum = minimum; };
     26  void setMaximum(float maximum) { this->maximum = maximum; };
    2527
    26   virtual void draw();
     28  float getValue() const { return this->value; };
     29  float getMinimum() const { return this->minimum; };
     30  float getMaximum() const { return this->maximum; };
     31
     32  virtual void update() { };
     33  virtual void draw() const;
    2734
    2835 private:
     36   void init();
    2937
     38  private:
     39    float value;
     40
     41    float minimum;
     42    float maximum;
    3043};
    3144
Note: See TracChangeset for help on using the changeset viewer.