Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
preferences.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2020 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __GUI_WIDGETS_PREFERENCES_H__
11#define __GUI_WIDGETS_PREFERENCES_H__
12
13#include <adwaita.h>
14
15#define PREFERENCES_WIDGET_TYPE (preferences_widget_get_type ())
16G_DECLARE_FINAL_TYPE (
18 preferences_widget,
19 Z,
20 PREFERENCES_WIDGET,
21 AdwPreferencesDialog)
22
23typedef struct Preferences Preferences;
24typedef struct _MidiControllerMbWidget MidiControllerMbWidget;
25
32#define MW_PREFERENCES ZRYTHM->preferences
33
34typedef struct SubgroupInfo
35{
37 const char * name;
38
39 const char * group_name;
40
41 const char * group_icon;
42
43 int group_idx;
44 int subgroup_idx;
45 GSettingsSchema * schema;
46 GSettings * settings;
48
52typedef struct _PreferencesWidget
53{
54 AdwPreferencesDialog parent_instance;
55 GtkNotebook * group_notebook;
56
57 SubgroupInfo subgroup_infos[12][40];
58
61 AdwPreferencesRow * audio_backend_buffer_size_row;
62 AdwPreferencesRow * audio_backend_sample_rate_row;
64
66preferences_widget_new (void);
67
72#endif
Preferences widget.
Definition preferences.h:53
AdwPreferencesRow * audio_backend_rtaudio_device_row
Remembered for toggling visibility.
Definition preferences.h:60
const char * name
Localized name.
Definition preferences.h:37