#include <glv_sliders.h>

Public Member Functions | |
| SliderRange (const Rect &r=glv::Rect(100, 20), float val1=0.25, float val2=0.5) | |
| SliderRange & | center (float v) |
| Set center of interval. | |
| SliderRange & | centerRange (float center, float range) |
| Set center and range of interval. | |
| SliderRange & | extrema (float min, float max) |
| Set extrema of interval. | |
| SliderRange & | jump (float v) |
| Sets how much the slider should move when an empty region is clicked. | |
| SliderRange & | range (float v) |
| Set range. | |
| float | center () const |
| Get center of interval. | |
| float | jump () const |
| Get click jump amount. | |
| float | range () const |
| Get distance of interval. | |
| virtual void | onDraw () |
| Main drawing callback. | |
| virtual bool | onEvent (Event::t e, GLV &glv) |
| Main event callback to be called after those in callback list. | |
| glv::SliderRange::SliderRange | ( | const Rect & | r = glv::Rect(100,20), |
|
| float | val1 = 0.25, |
|||
| float | val2 = 0.5 | |||
| ) |
| [in] | r | geometry |
| [in] | val1 | initial value on left or top |
| [in] | val2 | initial value on right or bottom |
| SliderRange & glv::SliderRange::jump | ( | float | v | ) |
Sets how much the slider should move when an empty region is clicked.
The slider is constrained not jump past the click point.
1.5.5