A draggable magnification control for the envelope editor.
More...
#include <envelope_section.h>
|
class | Listener |
| Interface for objects that need to respond to magnification changes. More...
|
|
A draggable magnification control for the envelope editor.
The DragMagnifyingGlass is an OpenGlShapeButton shaped like a magnifying glass. Dragging it allows the user to zoom in or out on the envelope editor area. Double-clicking resets the zoom.
◆ DragMagnifyingGlass()
DragMagnifyingGlass::DragMagnifyingGlass |
( |
| ) |
|
◆ addListener()
void DragMagnifyingGlass::addListener |
( |
Listener * | listener | ) |
|
|
inline |
Adds a listener to respond to drag and double-click events.
- Parameters
-
listener | The listener to add. |
◆ mouseDoubleClick()
void DragMagnifyingGlass::mouseDoubleClick |
( |
const MouseEvent & | e | ) |
|
|
override |
Called when the magnifying glass is double-clicked. Notifies listeners to reset zoom.
- Parameters
-
◆ mouseDown()
void DragMagnifyingGlass::mouseDown |
( |
const MouseEvent & | e | ) |
|
|
override |
Called when the mouse button is pressed down. Hides the cursor and enters unbounded movement if possible.
- Parameters
-
◆ mouseDrag()
void DragMagnifyingGlass::mouseDrag |
( |
const MouseEvent & | e | ) |
|
|
override |
Called while the mouse is dragged. Notifies listeners with the movement delta.
- Parameters
-
◆ mouseUp()
void DragMagnifyingGlass::mouseUp |
( |
const MouseEvent & | e | ) |
|
|
override |
Called when the mouse button is released. Restores the cursor and disables unbounded movement if it was enabled.
- Parameters
-
The documentation for this class was generated from the following files: