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
22typedef struct EditorSettings
23{
26
29
33
34void
35editor_settings_init (EditorSettings * self);
36
37void
38editor_settings_set_scroll_start_x (EditorSettings * self, int x, bool validate);
39
40void
41editor_settings_set_scroll_start_y (EditorSettings * self, int y, bool validate);
42
46void
48 EditorSettings * self,
49 int dx,
50 int dy,
51 bool validate);
52
57#endif
void editor_settings_append_scroll(EditorSettings *self, int dx, int dy, bool validate)
Appends the given deltas to the scroll x/y values.
Common editor settings.
int scroll_start_x
Horizontal scroll start position.
int scroll_start_y
Vertical scroll start position.
double hzoom_level
Horizontal zoom level.