Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
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 [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.
 
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 71 of file automation_mode.h.

◆ corner_radius

double AutomationModeWidget::corner_radius

Corner curvature radius for the rounded rectangle.

Definition at line 75 of file automation_mode.h.

◆ current_states

CustomButtonWidgetState AutomationModeWidget::current_states[NUM_AUTOMATION_MODES]

Used during drawing.

Definition at line 81 of file automation_mode.h.

◆ def_color

GdkRGBA AutomationModeWidget::def_color

Default color.

Definition at line 58 of file automation_mode.h.

◆ has_hit_mode

int AutomationModeWidget::has_hit_mode

Definition at line 52 of file automation_mode.h.

◆ height

int AutomationModeWidget::height

Definition at line 43 of file automation_mode.h.

◆ held_colors

GdkRGBA AutomationModeWidget::held_colors[NUM_AUTOMATION_MODES]

Held color (used after clicking and before releasing).

Definition at line 68 of file automation_mode.h.

◆ hit_mode

AutomationMode AutomationModeWidget::hit_mode

Currently hit mode.

Definition at line 55 of file automation_mode.h.

◆ hovered_color

GdkRGBA AutomationModeWidget::hovered_color

Hovered color.

Definition at line 61 of file automation_mode.h.

◆ last_colors

GdkRGBA AutomationModeWidget::last_colors[NUM_AUTOMATION_MODES]

Used during transitions.

Definition at line 84 of file automation_mode.h.

◆ last_states

CustomButtonWidgetState AutomationModeWidget::last_states[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 87 of file automation_mode.h.

◆ max_text_height

int AutomationModeWidget::max_text_height

Definition at line 50 of file automation_mode.h.

◆ owner

AutomationTrack* AutomationModeWidget::owner

Owner.

Definition at line 90 of file automation_mode.h.

◆ text_heights

int AutomationModeWidget::text_heights[NUM_AUTOMATION_MODES]

Definition at line 49 of file automation_mode.h.

◆ text_widths

int AutomationModeWidget::text_widths[NUM_AUTOMATION_MODES]

Width of each button, including padding.

Definition at line 48 of file automation_mode.h.

◆ toggled_colors

GdkRGBA AutomationModeWidget::toggled_colors[NUM_AUTOMATION_MODES]

Toggled color.

Definition at line 64 of file automation_mode.h.

◆ transition_frames

int AutomationModeWidget::transition_frames

Frames left for a transition in color.

Definition at line 93 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: