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.
|
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 |
|
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.
◆ LambdaMouseListener()
LambdaMouseListener::LambdaMouseListener |
( |
| ) |
|
|
default |
◆ 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: