A class for receiving callbacks from a SourcePanel.
More...
#include <SourcePanel.h>
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
virtual wonderjuce::SourcePanel::Listener::~Listener |
( |
| ) |
|
|
inlinevirtual |
virtual void wonderjuce::SourcePanel::Listener::sourcePanelDragEnded |
( |
SourcePanel * |
panel | ) |
|
|
inlinevirtual |
Called after a drag operation has finished.
- Parameters
-
panel | A 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
-
panel | A 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
-
panel | A pointer to the SourcePanel that initiated the call to this method. |