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.
VgManipulatorListener.VgManipulatorListener |
( |
| ) |
|
void VgManipulatorListener.onClick |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
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
void VgManipulatorListener.onDoubleClick |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
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
void VgManipulatorListener.onSimpleDrag |
( |
VgGestureState |
pState, |
|
|
long |
pNbTouch, |
|
|
float |
pAverageXOffset, |
|
|
float |
pAverageYOffset |
|
) |
| |
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. |
void VgManipulatorListener.onSimplePinch |
( |
VgGestureState |
pState, |
|
|
float |
pSpan, |
|
|
float |
pVelocity |
|
) |
| |
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. |
void VgManipulatorListener.swigReleaseOwnership |
( |
| ) |
|
void VgManipulatorListener.swigTakeOwnership |
( |
| ) |
|
The documentation for this class was generated from the following file:
- VgManipulatorListener.java