Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::GestureEvent Struct Reference

High-level gesture event for pinch (scale) and rotate. More...

#include <input_events.hpp>

Public Attributes

GesturePhase phase = GesturePhase::began
float scale = 1.0f
 Cumulative scale factor (1.0 = no change).
float rotation = 0.0f
 Cumulative rotation in radians.
float delta_scale = 0.0f
 Scale delta since last event.
float delta_rotation = 0.0f
 Rotation delta since last event.
Point position
 Center point of the gesture.

Detailed Description

High-level gesture event for pinch (scale) and rotate.

Fired by iOS multi-touch analysis or macOS trackpad magnify/rotate.

Member Data Documentation

◆ delta_rotation

float pulp::view::GestureEvent::delta_rotation = 0.0f

Rotation delta since last event.

◆ delta_scale

float pulp::view::GestureEvent::delta_scale = 0.0f

Scale delta since last event.

◆ phase

GesturePhase pulp::view::GestureEvent::phase = GesturePhase::began

◆ position

Point pulp::view::GestureEvent::position

Center point of the gesture.

◆ rotation

float pulp::view::GestureEvent::rotation = 0.0f

Cumulative rotation in radians.

◆ scale

float pulp::view::GestureEvent::scale = 1.0f

Cumulative scale factor (1.0 = no change).


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