Zrythm
a highly automated and intuitive digital audio workstation
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
e
f
g
i
m
p
r
t
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
Typedefs
Enumerations
a
b
c
e
f
g
i
k
m
n
p
r
s
t
u
z
Enumerator
a
u
z
Macros
_
a
b
c
d
e
f
h
i
k
m
p
r
s
t
u
v
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
editor_settings.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: © 2020-2022 Alexandros Theodotou <alex@zrythm.org>
2
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10
#ifndef __GUI_BACKEND_EDITOR_SETTINGS_H__
11
#define __GUI_BACKEND_EDITOR_SETTINGS_H__
12
22
typedef
struct
EditorSettings
23
{
25
int
scroll_start_x
;
26
28
int
scroll_start_y
;
29
31
double
hzoom_level
;
32
}
EditorSettings
;
22
typedef
struct
EditorSettings
{
…
};
33
34
void
35
editor_settings_init (
EditorSettings
* self);
36
37
void
38
editor_settings_set_scroll_start_x (
EditorSettings
* self,
int
x,
bool
validate);
39
40
void
41
editor_settings_set_scroll_start_y (
EditorSettings
* self,
int
y,
bool
validate);
42
46
void
47
editor_settings_append_scroll
(
48
EditorSettings
* self,
49
int
dx,
50
int
dy,
51
bool
validate);
52
57
#endif
editor_settings_append_scroll
void editor_settings_append_scroll(EditorSettings *self, int dx, int dy, bool validate)
Appends the given deltas to the scroll x/y values.
EditorSettings
Common editor settings.
Definition
editor_settings.h:23
EditorSettings::scroll_start_x
int scroll_start_x
Horizontal scroll start position.
Definition
editor_settings.h:25
EditorSettings::scroll_start_y
int scroll_start_y
Vertical scroll start position.
Definition
editor_settings.h:28
EditorSettings::hzoom_level
double hzoom_level
Horizontal zoom level.
Definition
editor_settings.h:31
gui
backend
editor_settings.h
Generated by
1.11.0