yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::CanvasTouchHandler::Config Struct Reference

Configuration for canvas touch behavior. More...

#include <canvas_touch_handler.h>

Public Attributes

float min_scale = 0.25f
 
float max_scale = 4.0f
 
bool enable_pan = true
 
bool enable_zoom = true
 
bool enable_smooth_zoom = true
 
float zoom_smoothing = 0.2f
 
bool enable_inertia = true
 
float inertia_deceleration = 0.92f
 
float inertia_min_velocity = 0.5f
 
float max_pan_x = 0.0f
 
float max_pan_y = 0.0f
 
float min_pan_x = 0.0f
 
float min_pan_y = 0.0f
 

Detailed Description

Configuration for canvas touch behavior.

Definition at line 37 of file canvas_touch_handler.h.

Member Data Documentation

◆ min_scale

float yaze::gui::CanvasTouchHandler::Config::min_scale = 0.25f

◆ max_scale

float yaze::gui::CanvasTouchHandler::Config::max_scale = 4.0f

◆ enable_pan

bool yaze::gui::CanvasTouchHandler::Config::enable_pan = true

◆ enable_zoom

bool yaze::gui::CanvasTouchHandler::Config::enable_zoom = true

◆ enable_smooth_zoom

bool yaze::gui::CanvasTouchHandler::Config::enable_smooth_zoom = true

Definition at line 47 of file canvas_touch_handler.h.

Referenced by yaze::gui::CanvasTouchHandler::Update().

◆ zoom_smoothing

float yaze::gui::CanvasTouchHandler::Config::zoom_smoothing = 0.2f

Definition at line 48 of file canvas_touch_handler.h.

Referenced by yaze::gui::CanvasTouchHandler::Update().

◆ enable_inertia

bool yaze::gui::CanvasTouchHandler::Config::enable_inertia = true

◆ inertia_deceleration

float yaze::gui::CanvasTouchHandler::Config::inertia_deceleration = 0.92f

◆ inertia_min_velocity

float yaze::gui::CanvasTouchHandler::Config::inertia_min_velocity = 0.5f

◆ max_pan_x

float yaze::gui::CanvasTouchHandler::Config::max_pan_x = 0.0f

◆ max_pan_y

float yaze::gui::CanvasTouchHandler::Config::max_pan_y = 0.0f

◆ min_pan_x

float yaze::gui::CanvasTouchHandler::Config::min_pan_x = 0.0f

◆ min_pan_y

float yaze::gui::CanvasTouchHandler::Config::min_pan_y = 0.0f

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