Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2006, 5:04:08 PM (18 years ago)
Author:
bensch
Message:

gui: introducing rect into gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl_gui/glgui_slider.h

    r7919 r7924  
    2626    virtual ~GLGuiSlider();
    2727
    28     void init();
     28    /** @returns the Value of the Slider. */
     29    float value() const { return this->_value; }
     30    /** @returns the minimum of the sliders range */
     31    float min() const { return this->_minValue; };
     32    /** @returns the maximum of the sliders range */
     33    float max() const { return this->_maxValue; };
     34    /** @returns the step size */
     35    float step() const { return this->_step; };
     36
     37    void setValue(float value);
     38
     39    void setMin(float minimum);
     40    void setMax(float maximum);
     41    void setRange(float minimum, float maximum);
     42
     43    void setStep(float step);
     44
    2945
    3046    virtual void draw() const;
    3147
    3248  private:
     49    void init();
     50    private:
     51
    3352    Orientation      orientation;
    3453
    3554    float            _maxValue;
    3655    float            _minValue;
     56    float            _step;
    3757
    3858    float            _value;
Note: See TracChangeset for help on using the changeset viewer.