A class for receiving callbacks from a Slider. More...
#include <juce_Slider.h>
Public Member Functions | |
virtual | ~Listener () |
Destructor. More... | |
virtual void | sliderDragEnded (Slider *) |
Called after a drag operation has finished. More... | |
virtual void | sliderDragStarted (Slider *) |
Called when the slider is about to be dragged. More... | |
virtual void | sliderValueChanged (Slider *slider)=0 |
Called when the slider's value is changed. More... | |
A class for receiving callbacks from a Slider.
To be told when a slider's value changes, you can register a Slider::Listener object using Slider::addListener().
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Called after a drag operation has finished.
|
inlinevirtual |
Called when the slider is about to be dragged.
This is called when a drag begins, then it's followed by multiple calls to sliderValueChanged(), and then sliderDragEnded() is called after the user lets go.
|
pure virtual |
Called when the slider's value is changed.
This may be caused by dragging it, or by typing in its text entry box, or by a call to Slider::setValue().
You can find out the new value using Slider::getValue().
Implemented in ColourSelector, and SliderPropertyComponent.