
ScrollBar s and other sliders
The model has a minimum and a maximum value as well as a percentual position that ranges between 0.0 and 1.0. All functions that modify the model notify registered listeners of the change.
Public Types | |
| typedef Lst * | LPtr |
Public Member Functions | |
| void | addSliderModelListener (const LPtr &l) |
| void | fireEvent (Evt &e) const |
| notifies all registered listeners | |
| const int & | getMaximum () const |
| const int & | getMinimum () const |
| const float & | getValue () const |
| bool | isMuted () const |
| reflects this dispatcher's muted state. | |
| void | removeSliderModelListener (const LPtr &l) |
| void | setMaximum (int m) |
| void | setMinimum (int m) |
| void | setMuted (bool mute) |
| mutes or un-mutes the dispatcher | |
| void | setValue (float v, bool b=false) |
| SliderModel (int mi=-1, int ma=-1, float v=0.0f) | |
Protected Member Functions | |
| void | add (const LPtr &l) |
| registers a listener | |
| void | remove (const LPtr &l) |
| de-registers a listener. | |
|
|||||
|
|
|
||||||||||||||||
|
|
|
||||||||||
|
registers a listener
|
|
|
|
|
||||||||||
|
notifies all registered listeners
The listeners are called in the order in which they were added.
|
|
|
|
|
|
|
|
|
|
|
|||||||||
|
reflects this dispatcher's muted state.
|
|
||||||||||
|
de-registers a listener.
This listener will no longer notify
|
|
|
|
|
|
|
|
|
|
|
||||||||||
|
mutes or un-mutes the dispatcher Muted dispatchers no longer notify their listeners. |
|
||||||||||||
|
|
1.4.3