PinchGestureDetector Class Reference

Pinch detector. More...

Inheritance diagram for PinchGestureDetector:
GestureDetector

List of all members.

Public Member Functions

 PinchGestureDetector ()
 Constructor.

Protected Member Functions

internal override
GestureDetectorResponse 
OnTouchEvent (TouchEventCollection touchEvents)
 Distributes a touch event.
internal override void OnResetState ()
 Resets the state of gesture analysis.

Properties

float MinPinchDistance [get, set]
 Obtains and sets the minimum pinch distance.

Events

EventHandler< PinchEventArgsPinchDetected
 Pinch event handler.
EventHandler< PinchEventArgsPinchStartDetected
 Pinch start event handler.
EventHandler< PinchEventArgsPinchEndDetected
 Pinch end event handler.

Detailed Description

Pinch detector.


Member Function Documentation

internal override GestureDetectorResponse OnTouchEvent ( TouchEventCollection  touchEvents) [protected, virtual]

Distributes a touch event.

Parameters:
touchEventsTouch event
Returns:
Response to touch event distribution

Implements GestureDetector.


Property Documentation

float MinPinchDistance [get, set]

Obtains and sets the minimum pinch distance.

Detects the pinch when the relative distance of two becomes equal to or greater than MinPinchDirection after two are moved down.