gui/widgets/track.h file

Contents

Track widget to be shown in the tracklist.

Classes

struct _TrackWidget
The TrackWidget is split into 3 parts.

Enums

enum TrackWidgetResizeTarget { TRACK_WIDGET_RESIZE_TARGET_TRACK, TRACK_WIDGET_RESIZE_TARGET_AT, TRACK_WIDGET_RESIZE_TARGET_LANE }
Resize target.

Typedefs

using TrackWidgetResizeTarget = enum TrackWidgetResizeTarget
Resize target.
using TrackWidget = struct _TrackWidget
The TrackWidget is split into 3 parts.

Functions

auto track_widget_new(Track* track) -> TrackWidget*
Sets up the track widget.
void track_widget_set_name(TrackWidget* self, const char* name)
Sets the Track name on the TrackWidget.
void track_widget_force_redraw(TrackWidget* self)
Blocks all signal handlers.
void track_widget_on_show_automation_toggled(TrackWidget* self)
Wrapper to refresh mute button only.
void track_widget_on_show_lanes_toggled(TrackWidget* self)
Callback when automation button is toggled.
void track_widget_on_record_toggled(TrackWidget* self)
Callback when record button is toggled.
auto track_widget_is_cursor_in_top_half(TrackWidget* self, double y) -> int
Returns if cursor is in top half of the track.
void track_widget_update_size(TrackWidget* self)
Updates the full track size and redraws the track.
void track_widget_do_highlight(TrackWidget* self, gint x, gint y, const int highlight)
Highlights/unhighlights the Tracks appropriately.
auto track_widget_get_local_y(TrackWidget* self, ArrangerWidget* arranger, int arranger_y) -> int
Converts Y from the arranger coordinates to the track coordinates.
void track_widget_redraw_meters(TrackWidget* self)
Causes a redraw of the meters only.