C# Class Blake.NUI.WPF.Gestures.HoldGestureEngine

Gesture engine that detects the "Hold" gesture. This gesture is defined as a touch down and hold for a (configurable) amount of time. Releasing the touch point or moving it too far before the timeout has been reached will abort the gesture.
See IGestureEngine documentation for details about the behavior.
Inheritance: IGestureEngine
Show file Open project: TNOCS/csTouch

Public Methods

Method Description
AbortGesture ( ) : void
HoldGestureEngine ( System.TimeSpan timeout, double maxMovement ) : System

Initializes a new instance of the HoldGestureEngine class.

TrackTouchDown ( Point position, System.DateTime timestamp ) : void
TrackTouchMove ( Point position, System.DateTime timestamp ) : void
TrackTouchUp ( Point position, System.DateTime timestamp ) : void

Private Methods

Method Description
OnGestureAborted ( ) : void
OnGestureCompleted ( ) : void
OnGestureStarted ( ) : void
ProcessStatus ( ) : void

Method Details

AbortGesture() public method

public AbortGesture ( ) : void
return void

HoldGestureEngine() public method

Initializes a new instance of the HoldGestureEngine class.
public HoldGestureEngine ( System.TimeSpan timeout, double maxMovement ) : System
timeout System.TimeSpan The time that the user must keep the touch pressed in order for it to be considered a hold gesture.
maxMovement double The maximum movement the user is allowed to move the touch point in order for it to still be considered a hold gesture. Unit is WPF device independent pixels
return System

TrackTouchDown() public method

public TrackTouchDown ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
return void

TrackTouchMove() public method

public TrackTouchMove ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
return void

TrackTouchUp() public method

public TrackTouchUp ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
return void