|
Cogs.Core
|
Classes | |
| struct | DoubleTap |
| struct | Drag |
| struct | Hover |
| struct | Pan |
| struct | Pinch |
| struct | Press |
| struct | Rotate |
| struct | Swipe |
| struct | Tap |
| struct | Wheel |
Public Types | |
| enum struct | Kind : uint32_t { Hover , Wheel , Tap , DoubleTap , Press , Drag , Swipe , Pan , Rotate , Pinch } |
| enum struct | State : uint8_t { Started , Changed , Ended , Cancelled } |
Public Member Functions | |
| Gesture (const Gesture &src) | |
| void | operator= (const Gesture &src) |
Public Attributes | |
| Kind | kind |
| Gesture type, see Kind. | |
| uint32_t | id |
| Unique gesture id. | |
| State | state |
| Gesture state, see State. | |
| union { | |
| Hover hover | |
| < Specific gesture data. More... | |
| Wheel wheel | |
| Tap tap | |
| DoubleTap doubleTap | |
| Press press | |
| Drag drag | |
| Swipe swipe | |
| Pan pan | |
| Rotate rotate | |
| Pinch pinch | |
| }; | |
Definition at line 20 of file Gestures.h.
|
strong |
| 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. |
Definition at line 82 of file Gestures.h.
|
strong |
|
inline |
Definition at line 120 of file Gestures.h.
|
inline |
Definition at line 121 of file Gestures.h.
|
inline |
Definition at line 122 of file Gestures.h.
| DoubleTap Cogs::Gesture::doubleTap |
Definition at line 111 of file Gestures.h.
| Drag Cogs::Gesture::drag |
Definition at line 113 of file Gestures.h.
| Hover Cogs::Gesture::hover |
< Specific gesture data.
Definition at line 108 of file Gestures.h.
| uint32_t Cogs::Gesture::id |
Unique gesture id.
Definition at line 105 of file Gestures.h.
| Kind Cogs::Gesture::kind |
Definition at line 104 of file Gestures.h.
| Pan Cogs::Gesture::pan |
Definition at line 115 of file Gestures.h.
| Pinch Cogs::Gesture::pinch |
Definition at line 117 of file Gestures.h.
| Press Cogs::Gesture::press |
Definition at line 112 of file Gestures.h.
| Rotate Cogs::Gesture::rotate |
Definition at line 116 of file Gestures.h.
| State Cogs::Gesture::state |
Definition at line 106 of file Gestures.h.
| Swipe Cogs::Gesture::swipe |
Definition at line 114 of file Gestures.h.
| Tap Cogs::Gesture::tap |
Definition at line 110 of file Gestures.h.
| Wheel Cogs::Gesture::wheel |
Definition at line 109 of file Gestures.h.