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 ())
16
G_DECLARE_FINAL_TYPE (
17
PreferencesWidget
,
18
preferences_widget,
19
Z,
20
PREFERENCES_WIDGET,
21
AdwPreferencesDialog)
22
23
typedef
struct
Preferences Preferences;
24
typedef
struct
_MidiControllerMbWidget MidiControllerMbWidget;
25
32
#define MW_PREFERENCES ZRYTHM->preferences
33
34
typedef
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;
47
}
SubgroupInfo
;
48
52
typedef
struct
_PreferencesWidget
53
{
54
AdwPreferencesDialog parent_instance;
55
GtkNotebook * group_notebook;
56
57
SubgroupInfo
subgroup_infos[12][40];
58
60
AdwPreferencesRow *
audio_backend_rtaudio_device_row
;
61
AdwPreferencesRow * audio_backend_buffer_size_row;
62
AdwPreferencesRow * audio_backend_sample_rate_row;
63
}
PreferencesWidget
;
64
65
PreferencesWidget
*
66
preferences_widget_new (
void
);
67
72
#endif
PreferencesWidget
Preferences widget.
Definition
preferences.h:53
PreferencesWidget::audio_backend_rtaudio_device_row
AdwPreferencesRow * audio_backend_rtaudio_device_row
Remembered for toggling visibility.
Definition
preferences.h:60
SubgroupInfo
Definition
preferences.h:35
SubgroupInfo::name
const char * name
Localized name.
Definition
preferences.h:37
gui
widgets
preferences.h
Generated by
1.11.0