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

Inherits MouseListener.

Public Member Functions

 MouseLambdas ()=default
 
void attachTo (juce::Component *component)
 
 ~MouseLambdas () override
 
void mouseDown (const juce::MouseEvent &event) override
 
void mouseUp (const juce::MouseEvent &event) override
 
void mouseDoubleClick (const juce::MouseEvent &event) override
 

Public Attributes

std::function< void(const juce::MouseEvent &)> onMouseDown
 
std::function< void(const juce::MouseEvent &)> onMouseUp
 
std::function< void(const juce::MouseEvent &)> onMouseDoubleClick
 

Constructor & Destructor Documentation

◆ MouseLambdas()

MouseLambdas ( )
default

◆ ~MouseLambdas()

~MouseLambdas ( )
override

Member Function Documentation

◆ attachTo()

void attachTo ( juce::Component *  component)

◆ mouseDown()

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

◆ mouseUp()

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

◆ mouseDoubleClick()

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

Member Data Documentation

◆ onMouseDown

std::function<void(const juce::MouseEvent&)> onMouseDown

Referenced by MouseLambdas::mouseDown().

◆ onMouseUp

std::function<void(const juce::MouseEvent&)> onMouseUp

Referenced by MouseLambdas::mouseUp().

◆ onMouseDoubleClick

std::function<void(const juce::MouseEvent&)> onMouseDoubleClick

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