Gin
Public Member Functions | Public Attributes | List of all members
LambdaMouseListener Class Reference

If you add a mouse listener to yourself to get nested mouse messages, then you get them all twice, so use a lambda mouse listener instead. More...

Inherits juce::MouseListener.

Public Member Functions

 LambdaMouseListener ()=default
 

Public Attributes

std::function< void(const juce::MouseEvent &)> onMouseMove
 
std::function< void(const juce::MouseEvent &)> onMouseEnter
 
std::function< void(const juce::MouseEvent &)> onMouseExit
 
std::function< void(const juce::MouseEvent &)> onMouseDown
 
std::function< void(const juce::MouseEvent &)> onMouseDrag
 
std::function< void(const juce::MouseEvent &)> onMouseUp
 
std::function< void(const juce::MouseEvent &)> onMouseDoubleClick
 
std::function< void(const juce::MouseEvent &, const juce::MouseWheelDetails &)> onMouseWheelMove
 
std::function< void(const juce::MouseEvent &, float)> onMouseMagnify
 

Detailed Description

If you add a mouse listener to yourself to get nested mouse messages, then you get them all twice, so use a lambda mouse listener instead.

Constructor & Destructor Documentation

◆ LambdaMouseListener()

LambdaMouseListener::LambdaMouseListener ( )
default

Member Data Documentation

◆ onMouseMove

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

◆ onMouseEnter

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

◆ onMouseExit

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

◆ onMouseDown

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

◆ onMouseDrag

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

◆ onMouseUp

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

◆ onMouseDoubleClick

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

◆ onMouseWheelMove

std::function<void (const juce::MouseEvent&, const juce::MouseWheelDetails&)> LambdaMouseListener::onMouseWheelMove

◆ onMouseMagnify

std::function<void (const juce::MouseEvent&, float)> LambdaMouseListener::onMouseMagnify

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