public class VgISimpleGestureManipulatorListener extends VgReferenced
Constructor and Description |
---|
VgISimpleGestureManipulatorListener() |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
void |
onClick(float x,
float y) |
void |
onDoubleClick(float x,
float y) |
void |
onSimpleDrag(VgGestureState pState,
long pNbTouch,
float pAverageXOffset,
float pAverageYOffset)
Callback on a drag gesture.
|
void |
onSimplePinch(VgGestureState pState,
float pSpan,
float pVelocity)
Callback on a pinch gesture with two fingers.
|
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
getNbReferences, ref, unref
public void delete()
delete
in class VgReferenced
public void swigReleaseOwnership()
public void swigTakeOwnership()
public void onSimplePinch(VgGestureState pState, float pSpan, float pVelocity)
pState
- The state associated with the gesture.pSpan
- Distance in pixels between the two fingers.pVelocity
- Speed in pixels per milliseconds.public void onSimpleDrag(VgGestureState pState, long pNbTouch, float pAverageXOffset, float pAverageYOffset)
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.public void onClick(float x, float y)
public void onDoubleClick(float x, float y)