Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
fader_buttons.h
Go to the documentation of this file.
1// clang-format off
2// SPDX-FileCopyrightText: © 2020-2022, 2024 Alexandros Theodotou <alex@zrythm.org>
3// SPDX-License-Identifier: LicenseRef-ZrythmLicense
4// clang-format on
5
12#ifndef __GUI_WIDGETS_FADER_BUTTONS_H__
13#define __GUI_WIDGETS_FADER_BUTTONS_H__
14
15#include "gtk_wrapper.h"
16
17#define FADER_BUTTONS_WIDGET_TYPE (fader_buttons_widget_get_type ())
18G_DECLARE_FINAL_TYPE (
20 fader_buttons_widget,
21 Z,
22 FADER_BUTTONS_WIDGET,
23 GtkBox)
24
25typedef struct Track Track;
26
33typedef struct _FaderButtonsWidget
34{
35 GtkBox parent_instance;
36
37 GtkToggleButton * mono_compat;
38 GtkToggleButton * solo;
39 GtkToggleButton * mute;
40 GtkToggleButton * record;
41 GtkToggleButton * listen;
42 GtkToggleButton * swap_phase;
43 GtkButton * e;
44
49 gulong record_toggled_handler_id;
50 gulong solo_toggled_handler_id;
51 gulong mute_toggled_handler_id;
52 gulong listen_toggled_handler_id;
53 gulong swap_phase_toggled_handler_id;
54
57
59 GtkPopoverMenu * popover_menu;
60
62
63void
64fader_buttons_widget_block_signal_handlers (FaderButtonsWidget * self);
65
66void
67fader_buttons_widget_unblock_signal_handlers (FaderButtonsWidget * self);
68
69void
70fader_buttons_widget_refresh (FaderButtonsWidget * self, Track * track);
71
73fader_buttons_widget_new (Track * track);
74
79#endif
Track * track
Owner track.
gulong mono_compat_toggled_handler_id
Signal handler IDs.
GtkPopoverMenu * popover_menu
Popover to be reused for context menus.
Track to be inserted into the Project's Tracklist.
Definition track.h:177