glv::SliderRange Class Reference

A slider with an adjustable interval. More...

#include <glv_sliders.h>

Inheritance diagram for glv::SliderRange:

glv::SliderBase< 2 > glv::ValueWidget< Tv, Tm > glv::View glv::TRect< T > glv::Notifier glv::SmartObject< BaseClass >

List of all members.

Public Member Functions

 SliderRange (const Rect &r=glv::Rect(100, 20), float val1=0.25, float val2=0.5)
SliderRangecenter (float v)
 Set center of interval.
SliderRangecenterRange (float center, float range)
 Set center and range of interval.
SliderRangeextrema (float min, float max)
 Set extrema of interval.
SliderRangejump (float v)
 Sets how much the slider should move when an empty region is clicked.
SliderRangerange (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.


Detailed Description

A slider with an adjustable interval.

Constructor & Destructor Documentation

glv::SliderRange::SliderRange ( const Rect r = glv::Rect(100,20),
float  val1 = 0.25,
float  val2 = 0.5 
)

Parameters:
[in] r geometry
[in] val1 initial value on left or top
[in] val2 initial value on right or bottom


Member Function Documentation

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.


The documentation for this class was generated from the following files:

Generated on Thu Aug 12 23:55:16 2010 for GLV by  doxygen 1.5.5