GestureDetector Class Reference

Base class of gesture detection mechanism. More...

Inheritance diagram for GestureDetector:
DoubleTapGestureDetector DragGestureDetector FlickGestureDetector LongPressGestureDetector PinchGestureDetector TapGestureDetector

List of all members.

Public Member Functions

 GestureDetector ()
 Constructor.

Protected Member Functions

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

Properties

GestureDetectorResponse State [get, set]
 Obtains the state of GestureDetector.
Widget TargetWidget [get, set]
 Obtains the widget applicable for detecting gesture.

Detailed Description

Base class of gesture detection mechanism.


Member Function Documentation

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

Distributes a touch event.

Parameters:
touchEventsTouch event
Returns:
Response to touch event distribution

Implemented in DoubleTapGestureDetector, DragGestureDetector, FlickGestureDetector, LongPressGestureDetector, PinchGestureDetector, and TapGestureDetector.


Property Documentation

GestureDetectorResponse State [get, set]

Obtains the state of GestureDetector.

It is possible to obtain GestureDetectorResponse returned with the previous OnTouchEvent. When OnResetState is called, None is set.