Zrythm
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-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
;
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