Loading...
Searching...
No Matches
SliderListener< Emitter > Class Template Referenceabstract

A class for receiving callbacks from a Slider or WebSliderRelay. More...

#include <juce_Slider.h>

Inheritance diagram for SliderListener< Emitter >:

Public Member Functions

virtual ~SliderListener ()=default
 Destructor.
 
virtual void sliderValueChanged (Emitter *)=0
 Called when the slider's value is changed.
 
virtual void sliderDragStarted (Emitter *)
 Called when the slider is about to be dragged.
 
virtual void sliderDragEnded (Emitter *)
 Called after a drag operation has finished.
 

Detailed Description

template<typename Emitter>
class SliderListener< Emitter >

A class for receiving callbacks from a Slider or WebSliderRelay.

To be told when a slider's value changes, you can register a Slider::Listener object using Slider::addListener().

See also
Slider::addListener, Slider::removeListener, WebSliderRelay::addListener, WebSliderRelay::removeListener

Constructor & Destructor Documentation

◆ ~SliderListener()

template<typename Emitter >
virtual SliderListener< Emitter >::~SliderListener ( )
virtualdefault

Destructor.

Member Function Documentation

◆ sliderValueChanged()

template<typename Emitter >
virtual void SliderListener< Emitter >::sliderValueChanged ( Emitter * )
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().

See also
Slider::valueChanged

◆ sliderDragStarted()

template<typename Emitter >
virtual void SliderListener< Emitter >::sliderDragStarted ( Emitter * )
virtual

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.

See also
sliderDragEnded, Slider::startedDragging

◆ sliderDragEnded()

template<typename Emitter >
virtual void SliderListener< Emitter >::sliderDragEnded ( Emitter * )
virtual

Called after a drag operation has finished.

See also
sliderDragStarted, Slider::stoppedDragging

The documentation for this class was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram