Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
transport_controls.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __GUI_WIDGETS_TRANSPORT_CONTROLS_H__
11#define __GUI_WIDGETS_TRANSPORT_CONTROLS_H__
12
13#include <gtk/gtk.h>
14
15#define TRANSPORT_CONTROLS_WIDGET_TYPE (transport_controls_widget_get_type ())
16G_DECLARE_FINAL_TYPE (
18 transport_controls_widget,
19 Z,
20 TRANSPORT_CONTROLS_WIDGET,
21 GtkBox)
22
23typedef struct _ButtonWithMenuWidget ButtonWithMenuWidget;
24
31#define MW_TRANSPORT_CONTROLS MW_BOT_BAR->transport_controls
32
36typedef struct _TransportControlsWidget
37{
38 GtkBox parent_instance;
39 GtkButton * play;
40 GtkButton * stop;
41 GtkButton * backward;
42 GtkButton * forward;
43 GtkToggleButton * trans_record_btn;
44 ButtonWithMenuWidget * trans_record;
45 GtkToggleButton * loop;
46 GtkToggleButton * return_to_cue_toggle;
47
48 gulong rec_toggled_handler_id;
49
51 GtkPopoverMenu * popover_menu;
53
54void
55transport_controls_widget_refresh (TransportControlsWidget * self);
56
61#endif
GtkPopoverMenu * popover_menu
Popover to be reused for context menus.