Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
EditorSettings Class Reference

Common editor settings. More...

#include <src/gui/backend/backend/editor_settings.h>

Inheritance diagram for EditorSettings:

Public Member Functions

double clamp_scroll_start_x (double x)
 
double clamp_scroll_start_y (double y)
 
void append_scroll (double dx, double dy, bool validate)
 Appends the given deltas to the scroll x/y values.
 

Data Fields

double scroll_start_x_ = 0
 Horizontal scroll start position.
 
double scroll_start_y_ = 0
 Vertical scroll start position.
 
double hzoom_level_ = 1.0
 Horizontal zoom level.
 

Friends

void init_from (EditorSettings &obj, const EditorSettings &other, utils::ObjectCloneType clone_type)
 
void to_json (nlohmann::json &j, const EditorSettings &settings)
 
void from_json (const nlohmann::json &j, EditorSettings &settings)
 

Detailed Description

Common editor settings.

Definition at line 73 of file editor_settings.h.

Friends And Related Symbol Documentation

◆ from_json

void from_json ( const nlohmann::json & j,
EditorSettings & settings )
friend

Definition at line 108 of file editor_settings.h.

◆ init_from

void init_from ( EditorSettings & obj,
const EditorSettings & other,
utils::ObjectCloneType clone_type )
friend

Definition at line 88 of file editor_settings.h.

◆ to_json

void to_json ( nlohmann::json & j,
const EditorSettings & settings )
friend

Definition at line 102 of file editor_settings.h.

Field Documentation

◆ hzoom_level_

double EditorSettings::hzoom_level_ = 1.0

Horizontal zoom level.

Definition at line 123 of file editor_settings.h.

◆ scroll_start_x_

double EditorSettings::scroll_start_x_ = 0

Horizontal scroll start position.

Definition at line 117 of file editor_settings.h.

◆ scroll_start_y_

double EditorSettings::scroll_start_y_ = 0

Vertical scroll start position.

Definition at line 120 of file editor_settings.h.


The documentation for this class was generated from the following file: