#include <Gestures.h>
|
| enum struct | Kind : uint32_t {
Hover
, Wheel
, Tap
, DoubleTap
,
Press
, Drag
, Swipe
, Pan
,
Rotate
, Pinch
} |
| |
| enum struct | State : uint8_t { Started
, Changed
, Ended
, Cancelled
} |
| |
◆ Kind
| Enumerator |
|---|
| Hover | Mouse pointer hovers over window without any buttons pressed, single-fire event.
|
| Wheel | Movemement of the mouse wheel, single-fire event.
|
| Tap | A short press, see tapMaxDuration, single-fire event.
|
| DoubleTap | Two taps in quick succession, see doubleTapTreshold, single-fire event.
First tap in a double tap gesture will be also sent as a separate Tap gesture.
|
| Press | A long press, a press that was too long to be a tap, events on press start and end.
|
| Drag | Pointer movement with a button pressed or touch, see mouseMoveThreshold and touchMoveThreshold, event gets updates.
|
| Swipe | Swift pointer movement with button pressed or touch, see swipeMaxDuration, mouseVelocityThreshold and touchVelocityThreshold, event gets updates.
|
| Pan | Two-finger touch movement where fingers are roughly equidistant, see mouseMoveThreshold and touchMoveThreshold, event gets updates.
|
| Rotate | Two-finger rotation movement where fingers are roughly equidistant, see rotateThreshold, event gets updates.
|
| Pinch | Two-finger movement where the two fingers comes closer or farther away, see pinchThreshold, event gets updates.
|
◆ State
| Enumerator |
|---|
| Started | Gesture started, used by: Press, Drag, Swipe, Pan, Rotate, Pinch.
|
| Changed | Gesture changed, used by: Drag, Swipe, Pan, Rotate, Pinch.
|
| Ended | Gesture ended or single-fire events, used by all gestures.
|
| Cancelled | Gesture cancelled, used by: Press, Drag, Swipe, Pan, Rotate, Pinch.
|
◆ Gesture() [1/2]
| Cogs::Gesture::Gesture |
( |
| ) |
|
|
inline |
◆ Gesture() [2/2]
| Cogs::Gesture::Gesture |
( |
const Gesture & |
src | ) |
|
|
inline |
◆ operator=()
| void Cogs::Gesture::operator= |
( |
const Gesture & |
src | ) |
|
|
inline |
| union { ... } Cogs::Gesture::@1 |
◆ doubleTap
◆ drag
◆ hover
| Hover Cogs::Gesture::hover |
◆ id
| uint32_t Cogs::Gesture::id |
◆ kind
◆ pan
◆ pinch
| Pinch Cogs::Gesture::pinch |
◆ press
| Press Cogs::Gesture::press |
◆ rotate
◆ state
| State Cogs::Gesture::state |
◆ swipe
| Swipe Cogs::Gesture::swipe |
◆ tap
◆ wheel
| Wheel Cogs::Gesture::wheel |
The documentation for this struct was generated from the following file: