file
track.hTrack widget to be shown in the tracklist.
Classes
- struct _TrackWidget
- The TrackWidget is split into 3 parts.
Enums
- enum TrackWidgetHighlight { TRACK_WIDGET_HIGHLIGHT_NONE, TRACK_WIDGET_HIGHLIGHT_TOP, TRACK_WIDGET_HIGHLIGHT_BOTTOM, TRACK_WIDGET_HIGHLIGHT_INSIDE }
- Highlight location.
- enum TrackWidgetResizeTarget { TRACK_WIDGET_RESIZE_TARGET_TRACK, TRACK_WIDGET_RESIZE_TARGET_AT, TRACK_WIDGET_RESIZE_TARGET_LANE }
- Resize target.
Typedefs
- using TrackWidgetHighlight = enum TrackWidgetHighlight
- Highlight location.
- 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_on_show_automation_toggled(TrackWidget* self)
- Callback when automation button is toggled.
- 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_range_select_half(TrackWidget* self, double y) -> bool
- Returns if cursor is in the range select "half".
- void track_widget_update_icons(TrackWidget* self)
- Updates the track icons.
- void track_widget_update_size(TrackWidget* self)
- Updates the full track size and redraws the track.
- auto track_widget_get_highlight_location(TrackWidget* self, int y) -> TrackWidgetHighlight
- Returns the highlight location based on y relative to self.
- 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.
- void track_widget_recreate_group_colors(TrackWidget* self)
- Re-fills TrackWidget.group_
colors_ box.
Defines
- #define TRACK_BUTTON_PADDING
- Padding between each button.
- #define TRACK_BUTTON_PADDING_FROM_EDGE
- Padding between the track edges and the buttons.