foleys_gui_magic
WYSWYG editor for JUCE GUIs including Visualisers
Public Types | Public Member Functions | List of all members
XYDragComponent Class Reference

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)
 
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
 

Detailed Description

This is a 2D parameter dragging component.

Member Enumeration Documentation

◆ ColourIds

enum ColourIds
Enumerator
xyDotColourId 
xyDotOverColourId 
xyHorizontalColourId 
xyHorizontalOverColourId 
xyVerticalColourId 
xyVerticalOverColourId 

Constructor & Destructor Documentation

◆ XYDragComponent()

Member Function Documentation

◆ setCrossHair()

void setCrossHair ( bool  horizontal,
bool  vertical 
)

This sets the crosshair lines on and off.

Parameters
horizontalswitches the horizontal line visible and enables vertical drags
verticalswitches the vertical line visible and enables horizontal drags

Referenced by XYDraggerItem::update().

◆ paint()

void paint ( juce::Graphics &  g)
override

◆ setParameterX()

void setParameterX ( juce::RangedAudioParameter *  parameter)

Referenced by XYDraggerItem::update().

◆ setParameterY()

void setParameterY ( juce::RangedAudioParameter *  parameter)

Referenced by XYDraggerItem::update().

◆ setRightClickParameter()

void setRightClickParameter ( juce::RangedAudioParameter *  parameter)

Referenced by XYDraggerItem::update().

◆ setRadius()

void setRadius ( float  radius)

◆ setSenseFactor()

void setSenseFactor ( float  factor)

◆ hitTest()

bool hitTest ( int  x,
int  y 
)
override

◆ mouseDown()

void mouseDown ( const juce::MouseEvent &  event)
override

◆ mouseMove()

void mouseMove ( const juce::MouseEvent &  event)
override

◆ mouseDrag()

void mouseDrag ( const juce::MouseEvent &  event)
override

◆ mouseUp()

void mouseUp ( const juce::MouseEvent &  event)
override

◆ mouseEnter()

void mouseEnter ( const juce::MouseEvent &  event)
override

◆ mouseExit()

void mouseExit ( const juce::MouseEvent &  )
override

The documentation for this class was generated from the following files: