Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
modulator_view.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __GUI_WIDGETS_MODULATOR_VIEW_H__
11#define __GUI_WIDGETS_MODULATOR_VIEW_H__
12
13#include <adwaita.h>
14#include <gtk/gtk.h>
15
16#define MODULATOR_VIEW_WIDGET_TYPE (modulator_view_widget_get_type ())
17G_DECLARE_FINAL_TYPE (
19 modulator_view_widget,
20 Z,
21 MODULATOR_VIEW_WIDGET,
22 GtkWidget)
23
24TYPEDEF_STRUCT_UNDERSCORED (ModulatorWidget);
25TYPEDEF_STRUCT_UNDERSCORED (ModulatorMacroWidget);
26TYPEDEF_STRUCT_UNDERSCORED (ColorAreaWidget);
27TYPEDEF_STRUCT (Track);
28
35#define MW_MODULATOR_VIEW MW_BOT_DOCK_EDGE->modulator_view
36
40#define SHOW_MODULATOR_VIEW \
41 gtk_notebook_set_current_page (MW_MODULATOR_VIEW->bot_notebook, 2)
42
47typedef struct _ModulatorViewWidget
48{
49 GtkWidget parent_instance;
50 AdwStatusPage * no_modulators_status_page;
51 GtkBox * modulators_box;
52 GtkBox * macros_box;
53 ColorAreaWidget * color;
54 GtkLabel * track_name_lbl;
55 Track * track;
56 ModulatorWidget * modulators[14];
57 ModulatorMacroWidget * macros[8];
59
60void
61modulator_view_widget_refresh (ModulatorViewWidget * self, Track * track);
62
64modulator_view_widget_new (void);
65
70#endif
The ModulatorViewWidget contains the ModulatorWidgets for the selected Track.
Track to be inserted into the Project's Tracklist.
Definition track.h:177