Zrythm
v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
editor_settings.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: © 2020-2021 Alexandros Theodotou <alex@zrythm.org>
2
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10
#ifndef __SCHEMAS_GUI_BACKEND_EDITOR_SETTINGS_H__
11
#define __SCHEMAS_GUI_BACKEND_EDITOR_SETTINGS_H__
12
13
#include "
utils/yaml.h
"
14
15
typedef
struct
EditorSettings_v1
16
{
17
int
schema_version;
18
int
scroll_start_x;
19
int
scroll_start_y;
20
double
hzoom_level;
21
}
EditorSettings_v1
;
22
23
static
const
cyaml_schema_field_t editor_settings_fields_schema_v1[] = {
24
YAML_FIELD_INT (
EditorSettings_v1
, schema_version),
25
YAML_FIELD_INT (
EditorSettings_v1
, scroll_start_x),
26
YAML_FIELD_INT (
EditorSettings_v1
, scroll_start_y),
27
YAML_FIELD_FLOAT (
EditorSettings_v1
, hzoom_level),
28
29
CYAML_FIELD_END
30
};
31
32
static
const
cyaml_schema_value_t editor_settings_schema_v1 = {
33
YAML_VALUE_PTR (
EditorSettings_v1
, editor_settings_fields_schema_v1),
34
};
35
36
#endif
EditorSettings_v1
Definition
editor_settings.h:16
yaml.h
YAML utils.
src
gui
backend
backend
cyaml_schemas
gui
backend
editor_settings.h
Generated by
1.13.2