gui/backend/events.h file

Events for calling refresh on widgets.

Contents

Note: This is only for refreshing widgets. No logic should be performed here. Any logic must be done before pushing an event.

Classes

struct ZEvent
A Zrythm event.

Enums

enum EventType { ET_REGION_REMOVED, ET_CHORD_OBJECT_REMOVED, ET_SCALE_OBJECT_REMOVED, ET_MARKER_REMOVED, ET_TRACK_STATE_CHANGED, ET_REGION_CREATED, ET_CHORD_OBJECT_CREATED, ET_SCALE_OBJECT_CREATED, ET_MARKER_CREATED, ET_RULER_STATE_CHANGED, ET_AUTOMATION_TRACK_ADDED, ET_TIME_SIGNATURE_CHANGED, ET_TRACK_ADDED, ET_TRACK_CHANGED, ET_TRACK_COLOR_CHANGED, ET_TRACK_NAME_CHANGED, ET_LAST_TIMELINE_OBJECT_CHANGED, ET_TRACK_BOT_PANED_VISIBILITY_CHANGED, ET_AUTOMATION_TRACK_CHANGED, ET_CLIP_EDITOR_REGION_CHANGED, ET_CLIP_MARKER_POS_CHANGED, ET_UNDO_REDO_ACTION_DONE, ET_RANGE_SELECTION_CHANGED, ET_TIMELINE_LOOP_MARKER_POS_CHANGED, ET_TIMELINE_SONG_MARKER_POS_CHANGED, ET_RULER_SIZE_CHANGED, ET_MIDI_NOTE_CREATED, ET_MIDI_NOTE_REMOVED, ET_REGION_CHANGED, ET_AUTOMATION_POINT_CHANGED, ET_AUTOMATION_POINT_REMOVED, ET_AUTOMATION_CURVE_REMOVED, ET_CHORD_OBJECT_CHANGED, ET_SCALE_OBJECT_CHANGED, ET_MARKER_CHANGED, ET_ARRANGER_OBJECT_SELECTION_CHANGED, ET_LOOP_TOGGLED, ET_TOOL_CHANGED, ET_TIMELINE_VIEWPORT_CHANGED, ET_PLUGIN_ADDED, ET_PLUGINS_ADDED, ET_PLUGINS_REMOVED, ET_PLUGIN_DELETED, ET_PLAYHEAD_POS_CHANGED, ET_MIDI_NOTE_CHANGED, ET_TL_SELECTIONS_CHANGED, ET_TL_SELECTIONS_CREATED, ET_TL_SELECTIONS_REMOVED, ET_MA_SELECTIONS_CHANGED, ET_TRACKLIST_SELECTIONS_CHANGED, ET_AUTOMATION_VALUE_CHANGED, ET_PLUGIN_VISIBILITY_CHANGED, ET_PLUGIN_SELECTION_CHANGED, ET_TRACKS_ADDED, ET_TRACKS_REMOVED, ET_TRACKS_MOVED, ET_CHANNEL_REMOVED, ET_REFRESH_ARRANGER, ET_MIXER_SELECTIONS_CHANGED, ET_CHANNEL_OUTPUT_CHANGED, ET_CHANNEL_SLOTS_CHANGED, ET_DRUM_MODE_CHANGED, ET_MODULATOR_ADDED, ET_RT_SELECTIONS_CHANGED, ET_PINNED_TRACKLIST_SIZE_CHANGED, ET_TRACK_LANES_VISIBILITY_CHANGED, ET_AP_CHANGED, ET_AUTOMATION_POINT_CREATED, ET_AUTOMATION_CURVE_CREATED, ET_TRACK_LANE_ADDED, ET_REGION_POSITIONS_CHANGED, ET_CHORD_OBJECT_POSITIONS_CHANGED, ET_SCALE_OBJECT_POSITIONS_CHANGED, ET_MARKER_POSITIONS_CHANGED, ET_AUTOMATION_POINT_POSITIONS_CHANGED, ET_PIANO_ROLL_HIGHLIGHTING_CHANGED, ET_PIANO_ROLL_MIDI_MODIFIER_CHANGED, ET_TIMELINE_OBJECTS_IN_TRANSIT, ET_AUTOMATION_TRACKLIST_AT_REMOVED, ET_CHORD_OBJECTS_IN_TRANSIT, ET_CHORD_SELECTIONS_CHANGED, ET_AUTOMATION_OBJECTS_IN_TRANSIT, ET_AUTOMATION_SELECTIONS_CHANGED, ET_CHORD_KEY_CHANGED, ET_JACK_TRANSPORT_TYPE_CHANGED }

Typedefs

using ZEvent = struct ZEvent
A Zrythm event.

Functions

auto events_process() -> int
GSourceFunc to be added using idle add.
auto events_init() -> GAsyncQueue*
Must be called from a GTK thread.

Defines

#define EVENTS_PUSH(et, _arg)
Push events.
#define EVENTS
The event queue.

Define documentation

#define EVENTS_PUSH(et, _arg)

Push events.

Note: not real-time safe.