Zrythm
a highly automated and intuitive digital audio workstation
|
Custom button group to be drawn inside drawing areas. More...
#include <gui/widgets/automation_mode.h>
Data Fields | |
double | x |
X/y relative to parent drawing area. | |
double | y |
int | width |
Total width/height. | |
int | height |
int | text_widths [NUM_AUTOMATION_MODES] |
Width of each button, including padding. | |
int | text_heights [NUM_AUTOMATION_MODES] |
int | max_text_height |
int | has_hit_mode |
AutomationMode | hit_mode |
Currently hit mode. | |
GdkRGBA | def_color |
Default color. | |
GdkRGBA | hovered_color |
Hovered color. | |
GdkRGBA | toggled_colors [NUM_AUTOMATION_MODES] |
Toggled color. | |
GdkRGBA | held_colors [NUM_AUTOMATION_MODES] |
Held color (used after clicking and before releasing). | |
double | aspect |
Aspect ratio for the rounded rectangle. | |
double | corner_radius |
Corner curvature radius for the rounded rectangle. | |
CustomButtonWidgetState | last_states [NUM_AUTOMATION_MODES] |
Used to update caches if state changed. | |
CustomButtonWidgetState | current_states [NUM_AUTOMATION_MODES] |
Used during drawing. | |
GdkRGBA | last_colors [NUM_AUTOMATION_MODES] |
Used during transitions. | |
PangoLayout * | layout |
Cache layout for drawing text. | |
AutomationTrack * | owner |
Owner. | |
int | transition_frames |
Frames left for a transition in color. | |
Custom button group to be drawn inside drawing areas.
Definition at line 35 of file automation_mode.h.
double AutomationModeWidget::aspect |
Aspect ratio for the rounded rectangle.
Definition at line 71 of file automation_mode.h.
double AutomationModeWidget::corner_radius |
Corner curvature radius for the rounded rectangle.
Definition at line 75 of file automation_mode.h.
CustomButtonWidgetState AutomationModeWidget::current_states[NUM_AUTOMATION_MODES] |
Used during drawing.
Definition at line 81 of file automation_mode.h.
GdkRGBA AutomationModeWidget::def_color |
Default color.
Definition at line 58 of file automation_mode.h.
int AutomationModeWidget::has_hit_mode |
Definition at line 52 of file automation_mode.h.
int AutomationModeWidget::height |
Definition at line 43 of file automation_mode.h.
GdkRGBA AutomationModeWidget::held_colors[NUM_AUTOMATION_MODES] |
Held color (used after clicking and before releasing).
Definition at line 68 of file automation_mode.h.
AutomationMode AutomationModeWidget::hit_mode |
Currently hit mode.
Definition at line 55 of file automation_mode.h.
GdkRGBA AutomationModeWidget::hovered_color |
Hovered color.
Definition at line 61 of file automation_mode.h.
GdkRGBA AutomationModeWidget::last_colors[NUM_AUTOMATION_MODES] |
Used during transitions.
Definition at line 84 of file automation_mode.h.
CustomButtonWidgetState AutomationModeWidget::last_states[NUM_AUTOMATION_MODES] |
Used to update caches if state changed.
Definition at line 78 of file automation_mode.h.
PangoLayout* AutomationModeWidget::layout |
Cache layout for drawing text.
Definition at line 87 of file automation_mode.h.
int AutomationModeWidget::max_text_height |
Definition at line 50 of file automation_mode.h.
AutomationTrack* AutomationModeWidget::owner |
Owner.
Definition at line 90 of file automation_mode.h.
int AutomationModeWidget::text_heights[NUM_AUTOMATION_MODES] |
Definition at line 49 of file automation_mode.h.
int AutomationModeWidget::text_widths[NUM_AUTOMATION_MODES] |
Width of each button, including padding.
Definition at line 48 of file automation_mode.h.
GdkRGBA AutomationModeWidget::toggled_colors[NUM_AUTOMATION_MODES] |
Toggled color.
Definition at line 64 of file automation_mode.h.
int AutomationModeWidget::transition_frames |
Frames left for a transition in color.
Definition at line 93 of file automation_mode.h.
int AutomationModeWidget::width |
Total width/height.
Definition at line 42 of file automation_mode.h.
double AutomationModeWidget::x |
X/y relative to parent drawing area.
Definition at line 38 of file automation_mode.h.
double AutomationModeWidget::y |
Definition at line 39 of file automation_mode.h.