A visual frame representing a single wavetable keyframe, which can be dragged by the user.
More...
#include <wavetable_organizer.h>
A visual frame representing a single wavetable keyframe, which can be dragged by the user.
The DraggableFrame is used to indicate a wavetable keyframe's position and allow mouse interaction, such as clicking, dragging, and selection. It can represent a full-frame keyframe or a smaller frame depending on the wavetable component type.
◆ DraggableFrame()
DraggableFrame::DraggableFrame |
( |
bool | full_frame = false | ) |
|
|
inline |
Constructs a DraggableFrame.
- Parameters
-
full_frame | Set to true if this frame covers the entire row, false if it's a small diamond. |
◆ fullFrame()
bool DraggableFrame::fullFrame |
( |
| ) |
const |
|
inline |
Determines if the frame represents a full row or a small diamond.
- Returns
- True if the frame is full-row sized, otherwise false.
◆ isInside()
bool DraggableFrame::isInside |
( |
int | x, |
|
|
int | y ) |
Checks if a point is inside the frame's clickable area.
- Parameters
-
x | The x-coordinate relative to the frame's bounds. |
y | The y-coordinate relative to the frame's bounds. |
- Returns
- True if the point is considered inside the frame's area, false otherwise.
◆ select()
Sets the frame's selection state.
- Parameters
-
selected | True if the frame should be marked as selected. |
◆ selected()
Checks if the frame is currently selected.
- Returns
- True if the frame is selected, otherwise false.
◆ full_frame_
bool DraggableFrame::full_frame_ |
|
protected |
◆ selected_
bool DraggableFrame::selected_ |
|
protected |
The documentation for this class was generated from the following files: