4#ifndef _SCENEPIC_UI_PARAMETERS_H_
5#define _SCENEPIC_UI_PARAMETERS_H_
66 double m_pointer_alt_key_multiplier;
67 double m_pointer_rotation_speed;
68 double m_mouse_wheel_translation_speed;
69 double m_key_down_speed;
70 std::string m_layer_dropdown_visibility;
Representation of a JSON value according to the specification at https://www.json....
Definition: json_value.h:30
Per-Canvas3D parameters of the ScenePic user interface.
Definition: ui_parameters.h:15
double pointer_alt_key_multiplier() const
When the Alt key is pressed, mouse movement is scaled by this factor.
bool is_none() const
Whether this is a "no ui parameters" instance.
JsonValue to_json() const
Convert this object into ScenePic json.
double key_down_speed() const
Movement speed from key presses.
UIParameters(double pointer_alt_key_multiplier=0.2, double pointer_rotation_speed=0.01, double mouse_wheel_translation_speed=0.005, double key_down_speed=0.1, const std::string &layer_dropdown_visibility="visible")
Constructor.
const std::string & layer_dropdown_visibility() const
Whether the layer dropdown is visible.
double pointer_rotation_speed() const
Linear scale factor of pointer translation into camera rotation.
std::string to_string() const
Return a JSON string representing the object.
static const UIParameters None()
A UIParameters value indicating "no ui parameters".
double mouse_wheel_translation_speed() const
Linear scale factor of mouse wheel input into camera translation.
Definition: audio_track.h:14