SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
wonderjuce::SourcePanel::Listener Class Referenceabstract

A class for receiving callbacks from a SourcePanel. More...

#include <SourcePanel.h>

Inheritance diagram for wonderjuce::SourcePanel::Listener:
Inheritance graph
[legend]

Public Member Functions

virtual ~Listener ()
 Destructor. More...
 
virtual void sourcePanelDragStarted (SourcePanel *panel)
 Called when the position-dot is about to be dragged. More...
 
virtual void sourcePanelValuesChanged (SourcePanel *panel)=0
 Called when the SourcePanel's value is changed. More...
 
virtual void sourcePanelDragEnded (SourcePanel *panel)
 Called after a drag operation has finished. More...
 

Detailed Description

A class for receiving callbacks from a SourcePanel.

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

See Also
SourcePanel::addListener, SourcePanel::removeListener

Constructor & Destructor Documentation

virtual wonderjuce::SourcePanel::Listener::~Listener ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void wonderjuce::SourcePanel::Listener::sourcePanelDragEnded ( SourcePanel panel)
inlinevirtual

Called after a drag operation has finished.

Parameters
panelA pointer to the SourcePanel that initiated the call to this method.
virtual void wonderjuce::SourcePanel::Listener::sourcePanelDragStarted ( SourcePanel panel)
inlinevirtual

Called when the position-dot 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.

Parameters
panelA pointer to the SourcePanel that initiated the call to this method.
virtual void wonderjuce::SourcePanel::Listener::sourcePanelValuesChanged ( SourcePanel panel)
pure virtual

Called when the SourcePanel's value is changed.

This would be caused by dragging the position-dot. You can get the new values using SourcePanel::getX() and SourcePanel::getY().

Parameters
panelA pointer to the SourcePanel that initiated the call to this method.