Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
midi_activity_bar.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
7#ifndef __GUI_WIDGETS_MIDI_ACTIVITY_BAR_H__
8#define __GUI_WIDGETS_MIDI_ACTIVITY_BAR_H__
9
16#include <gtk/gtk.h>
17
18#define MIDI_ACTIVITY_BAR_WIDGET_TYPE (midi_activity_bar_widget_get_type ())
19G_DECLARE_FINAL_TYPE (
21 midi_activity_bar_widget,
22 Z,
23 MIDI_ACTIVITY_BAR_WIDGET,
24 GtkWidget)
25
26typedef struct Track Track;
27
34typedef enum MidiActivityBarType
35{
36 MAB_TYPE_TRACK,
37 MAB_TYPE_ENGINE,
38} MidiActivityBarType;
39
47
48typedef struct _MidiActivityBarWidget
49{
50 GtkWidget parent_instance;
51
54
55 MidiActivityBarType type;
56
58
62
65
67
72void
75 Track * track);
76
80void
83 MidiActivityBarAnimation animation);
84
89void
91
96#endif
MidiActivityBarAnimation
void midi_activity_bar_widget_setup_engine(MidiActivityBarWidget *self)
Creates a MidiActivityBarWidget for the AudioEngine.
void midi_activity_bar_widget_set_animation(MidiActivityBarWidget *self, MidiActivityBarAnimation animation)
Sets the animation.
void midi_activity_bar_widget_setup_track(MidiActivityBarWidget *self, Track *track)
Creates a MidiActivityBarWidget for use inside TrackWidget implementations.
@ MAB_ANIMATION_BAR
Shows a bars that decreases over time.
@ MAB_ANIMATION_FLASH
Shows a flash that fades out over time.
gint64 last_trigger_time
System time at last trigger, so we know how to draw the bar (for fading down).
int draw_border
Draw border or not.
Track * track
Track associated with this widget.
Track to be inserted into the Project's Tracklist.
Definition track.h:186