TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::WheelNavigation Struct Reference

What a wheel or pinch event asks of a canvas. More...

#include <gui_core/input/gui_navigation.h>

Public Member Functions

bool Any () const

Public Attributes

float zoom = 1.0f
 by how much to zoom round the pointer; above 1 is in, 1 is none
float2 pan {}
 how far to scroll, in wheel notches: x right, y down

Detailed Description

What a wheel or pinch event asks of a canvas.

Member Function Documentation

◆ Any()

bool tachyon::WheelNavigation::Any ( ) const
inline

Member Data Documentation

◆ zoom

float tachyon::WheelNavigation::zoom = 1.0f

by how much to zoom round the pointer; above 1 is in, 1 is none

◆ pan

float2 tachyon::WheelNavigation::pan {}

how far to scroll, in wheel notches: x right, y down


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