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 [static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Width of each button, including padding. | |
int | text_heights [static_cast< int >(AutomationMode::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 [static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Toggled color. | |
GdkRGBA | held_colors [static_cast< int >(AutomationMode::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 [static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Used to update caches if state changed. | |
CustomButtonWidgetState | current_states [static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Used during drawing. | |
GdkRGBA | last_colors [static_cast< int >(AutomationMode::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 70 of file automation_mode.h.
double AutomationModeWidget::corner_radius |
Corner curvature radius for the rounded rectangle.
Definition at line 74 of file automation_mode.h.
CustomButtonWidgetState AutomationModeWidget::current_states[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Used during drawing.
Definition at line 82 of file automation_mode.h.
GdkRGBA AutomationModeWidget::def_color |
Default color.
Definition at line 57 of file automation_mode.h.
int AutomationModeWidget::has_hit_mode |
Definition at line 51 of file automation_mode.h.
int AutomationModeWidget::height |
Definition at line 43 of file automation_mode.h.
GdkRGBA AutomationModeWidget::held_colors[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Held color (used after clicking and before releasing).
Definition at line 67 of file automation_mode.h.
AutomationMode AutomationModeWidget::hit_mode |
Currently hit mode.
Definition at line 54 of file automation_mode.h.
GdkRGBA AutomationModeWidget::hovered_color |
Hovered color.
Definition at line 60 of file automation_mode.h.
GdkRGBA AutomationModeWidget::last_colors[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Used during transitions.
Definition at line 85 of file automation_mode.h.
CustomButtonWidgetState AutomationModeWidget::last_states[static_cast< int >(AutomationMode::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 88 of file automation_mode.h.
int AutomationModeWidget::max_text_height |
Definition at line 49 of file automation_mode.h.
AutomationTrack* AutomationModeWidget::owner |
Owner.
Definition at line 91 of file automation_mode.h.
int AutomationModeWidget::text_heights[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Definition at line 48 of file automation_mode.h.
int AutomationModeWidget::text_widths[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Width of each button, including padding.
Definition at line 47 of file automation_mode.h.
GdkRGBA AutomationModeWidget::toggled_colors[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)] |
Toggled color.
Definition at line 63 of file automation_mode.h.
int AutomationModeWidget::transition_frames |
Frames left for a transition in color.
Definition at line 94 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.