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 |
Configuration for canvas touch behavior.
Definition at line 37 of file canvas_touch_handler.h.
| float yaze::gui::CanvasTouchHandler::Config::min_scale = 0.25f |
Definition at line 39 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ApplyZoomDelta(), yaze::gui::CanvasTouchHandler::ProcessGesture(), and yaze::gui::CanvasTouchHandler::SetScale().
| float yaze::gui::CanvasTouchHandler::Config::max_scale = 4.0f |
Definition at line 40 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ApplyZoomDelta(), yaze::gui::CanvasTouchHandler::ProcessGesture(), and yaze::gui::CanvasTouchHandler::SetScale().
| bool yaze::gui::CanvasTouchHandler::Config::enable_pan = true |
Definition at line 43 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ProcessGesture().
| bool yaze::gui::CanvasTouchHandler::Config::enable_zoom = true |
Definition at line 44 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ProcessGesture().
| 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().
| 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().
| bool yaze::gui::CanvasTouchHandler::Config::enable_inertia = true |
Definition at line 51 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ProcessGesture().
| float yaze::gui::CanvasTouchHandler::Config::inertia_deceleration = 0.92f |
Definition at line 52 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ProcessInertia().
| float yaze::gui::CanvasTouchHandler::Config::inertia_min_velocity = 0.5f |
Definition at line 53 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ProcessGesture(), and yaze::gui::CanvasTouchHandler::ProcessInertia().
| float yaze::gui::CanvasTouchHandler::Config::max_pan_x = 0.0f |
Definition at line 56 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ClampPanToBounds(), and yaze::gui::CanvasTouchHandler::Update().
| float yaze::gui::CanvasTouchHandler::Config::max_pan_y = 0.0f |
Definition at line 57 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ClampPanToBounds(), and yaze::gui::CanvasTouchHandler::Update().
| float yaze::gui::CanvasTouchHandler::Config::min_pan_x = 0.0f |
Definition at line 58 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ClampPanToBounds().
| float yaze::gui::CanvasTouchHandler::Config::min_pan_y = 0.0f |
Definition at line 59 of file canvas_touch_handler.h.
Referenced by yaze::gui::CanvasTouchHandler::ClampPanToBounds().