Listener of simple gestures. It is a convenience class to ease simple gestures handling.
- Note
- A drag event always follows a pinch.
- Version
- 2.0
-
2.1.19 Renamed from VgISimpleGestureManipulatorListener to VgManipulatorListener.
virtual void VgApplication::VgManipulatorListener::onClick |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
pure virtual |
Callback on a click gesture. This gesture has no state.
- Parameters
-
x | normalized screen coordinate. 0.0f is left of screen, 1.0f is right. |
y | normalized screen coordinate. 0.0f is top, 1.0f is bottom. |
- Version
- 2.0.8002
virtual void VgApplication::VgManipulatorListener::onDoubleClick |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
pure virtual |
Callback on a double click gesture. This gesture has no state.
- Parameters
-
x | normalized screen coordinate. 0.0f is left of screen, 1.0f is right. |
y | normalized screen coordinate. 0.0f is top, 1.0f is bottom. |
- Version
- 2.0.8002
virtual void VgApplication::VgManipulatorListener::onSimpleDrag |
( |
const VgEngine::VgGestureState |
pState, |
|
|
const unsigned int |
pNbTouch, |
|
|
const float |
pAverageXOffset, |
|
|
const float |
pAverageYOffset |
|
) |
| |
|
pure virtual |
Callback on a drag gesture.
- Parameters
-
pState | The state associated with the gesture. |
pNbTouch | Number of fingers on the touchpad. |
pAverageXOffset | Average dragging offset in pixels since previous callback. The offset is computed as an average of each finger's offset. |
pAverageYOffset | Average dragging offset in pixels since previous callback. The offset is computed as an average of each finger's offset. |
virtual void VgApplication::VgManipulatorListener::onSimplePinch |
( |
const VgEngine::VgGestureState |
pState, |
|
|
const float |
pSpan, |
|
|
const float |
pVelocity |
|
) |
| |
|
pure virtual |
Callback on a pinch gesture with two fingers.
- Parameters
-
pState | The state associated with the gesture. |
pSpan | Distance in pixels between the two fingers. |
pVelocity | Speed in pixels per milliseconds. |
The documentation for this interface was generated from the following file: