Zrythm
a highly automated and intuitive digital audio workstation
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
AutomationModeWidget Struct Reference

Custom button group to be drawn inside drawing areas. More...

#include <gui/widgets/automation_mode.h>

Collaboration diagram for AutomationModeWidget:

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.
 
AutomationTrackowner
 Owner.
 
int transition_frames
 Frames left for a transition in color.
 

Detailed Description

Custom button group to be drawn inside drawing areas.

Definition at line 35 of file automation_mode.h.

Field Documentation

◆ aspect

double AutomationModeWidget::aspect

Aspect ratio for the rounded rectangle.

Definition at line 70 of file automation_mode.h.

◆ corner_radius

double AutomationModeWidget::corner_radius

Corner curvature radius for the rounded rectangle.

Definition at line 74 of file automation_mode.h.

◆ current_states

CustomButtonWidgetState AutomationModeWidget::current_states[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)]

Used during drawing.

Definition at line 82 of file automation_mode.h.

◆ def_color

GdkRGBA AutomationModeWidget::def_color

Default color.

Definition at line 57 of file automation_mode.h.

◆ has_hit_mode

int AutomationModeWidget::has_hit_mode

Definition at line 51 of file automation_mode.h.

◆ height

int AutomationModeWidget::height

Definition at line 43 of file automation_mode.h.

◆ held_colors

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.

◆ hit_mode

AutomationMode AutomationModeWidget::hit_mode

Currently hit mode.

Definition at line 54 of file automation_mode.h.

◆ hovered_color

GdkRGBA AutomationModeWidget::hovered_color

Hovered color.

Definition at line 60 of file automation_mode.h.

◆ last_colors

GdkRGBA AutomationModeWidget::last_colors[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)]

Used during transitions.

Definition at line 85 of file automation_mode.h.

◆ last_states

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.

◆ layout

PangoLayout* AutomationModeWidget::layout

Cache layout for drawing text.

Definition at line 88 of file automation_mode.h.

◆ max_text_height

int AutomationModeWidget::max_text_height

Definition at line 49 of file automation_mode.h.

◆ owner

AutomationTrack* AutomationModeWidget::owner

Owner.

Definition at line 91 of file automation_mode.h.

◆ text_heights

int AutomationModeWidget::text_heights[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)]

Definition at line 48 of file automation_mode.h.

◆ text_widths

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.

◆ toggled_colors

GdkRGBA AutomationModeWidget::toggled_colors[static_cast< int >(AutomationMode::NUM_AUTOMATION_MODES)]

Toggled color.

Definition at line 63 of file automation_mode.h.

◆ transition_frames

int AutomationModeWidget::transition_frames

Frames left for a transition in color.

Definition at line 94 of file automation_mode.h.

◆ width

int AutomationModeWidget::width

Total width/height.

Definition at line 42 of file automation_mode.h.

◆ x

double AutomationModeWidget::x

X/y relative to parent drawing area.

Definition at line 38 of file automation_mode.h.

◆ y

double AutomationModeWidget::y

Definition at line 39 of file automation_mode.h.


The documentation for this struct was generated from the following file: