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
15#include "gtk_wrapper.h"
16
17#define MODULATOR_VIEW_WIDGET_TYPE (modulator_view_widget_get_type ())
18G_DECLARE_FINAL_TYPE (
20 modulator_view_widget,
21 Z,
22 MODULATOR_VIEW_WIDGET,
23 GtkWidget)
24
25TYPEDEF_STRUCT_UNDERSCORED (ModulatorWidget);
26TYPEDEF_STRUCT_UNDERSCORED (ModulatorMacroWidget);
27TYPEDEF_STRUCT_UNDERSCORED (ColorAreaWidget);
28TYPEDEF_STRUCT (Track);
29
36#define MW_MODULATOR_VIEW MW_BOT_DOCK_EDGE->modulator_view
37
41#define SHOW_MODULATOR_VIEW \
42 gtk_notebook_set_current_page (MW_MODULATOR_VIEW->bot_notebook, 2)
43
48typedef struct _ModulatorViewWidget
49{
50 GtkWidget parent_instance;
51 AdwStatusPage * no_modulators_status_page;
52 GtkBox * modulators_box;
53 GtkBox * macros_box;
54 ColorAreaWidget * color;
55 GtkLabel * track_name_lbl;
56 Track * track;
57 ModulatorWidget * modulators[14];
58 ModulatorMacroWidget * macros[8];
60
61void
62modulator_view_widget_refresh (ModulatorViewWidget * self, Track * track);
63
65modulator_view_widget_new (void);
66
71#endif
The ModulatorViewWidget contains the ModulatorWidgets for the selected Track.
Track to be inserted into the Project's Tracklist.
Definition track.h:177