This is a 2D parameter dragging component. More...
Inherits Component, and SettableTooltipClient.
Public Types | |
enum | ColourIds { xyDotColourId = 0x2002000 , xyDotOverColourId , xyHorizontalColourId , xyHorizontalOverColourId , xyVerticalColourId , xyVerticalOverColourId } |
Public Member Functions | |
XYDragComponent () | |
void | setCrossHair (bool horizontal, bool vertical) |
This sets the crosshair lines on and off. More... | |
void | paint (juce::Graphics &g) override |
void | setParameterX (juce::RangedAudioParameter *parameter) |
void | setParameterY (juce::RangedAudioParameter *parameter) |
void | setRightClickParameter (juce::RangedAudioParameter *parameter) |
void | setRadius (float radius) |
void | setSenseFactor (float factor) |
void | setJumpToClick (bool shouldJumpToClick) |
bool | hitTest (int x, int y) override |
void | mouseDown (const juce::MouseEvent &) override |
void | mouseMove (const juce::MouseEvent &) override |
void | mouseDrag (const juce::MouseEvent &) override |
void | mouseUp (const juce::MouseEvent &) override |
void | mouseEnter (const juce::MouseEvent &) override |
void | mouseExit (const juce::MouseEvent &) override |
This is a 2D parameter dragging component.
enum ColourIds |
XYDragComponent | ( | ) |
References ParameterAttachment< ValueType >::onParameterChangedAsync, XYDragComponent::xyDotColourId, XYDragComponent::xyDotOverColourId, XYDragComponent::xyHorizontalColourId, XYDragComponent::xyHorizontalOverColourId, XYDragComponent::xyVerticalColourId, and XYDragComponent::xyVerticalOverColourId.
void setCrossHair | ( | bool | horizontal, |
bool | vertical | ||
) |
This sets the crosshair lines on and off.
horizontal | switches the horizontal line visible and enables vertical drags |
vertical | switches the vertical line visible and enables horizontal drags |
Referenced by XYDraggerItem::update().
|
override |
void setParameterX | ( | juce::RangedAudioParameter * | parameter | ) |
Referenced by XYDraggerItem::update().
void setParameterY | ( | juce::RangedAudioParameter * | parameter | ) |
Referenced by XYDraggerItem::update().
void setRightClickParameter | ( | juce::RangedAudioParameter * | parameter | ) |
Referenced by XYDraggerItem::update().
void setRadius | ( | float | radius | ) |
void setSenseFactor | ( | float | factor | ) |
void setJumpToClick | ( | bool | shouldJumpToClick | ) |
|
override |
|
override |
|
override |
|
override |
|
override |
References ParameterAttachment< ValueType >::endGesture().
|
override |
|
override |