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
Afficher le fichier Open project: TNOCS/csTouch

Méthodes publiques

Méthode 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

Méthode Description
OnGestureAborted ( ) : void
OnGestureCompleted ( ) : void
OnGestureStarted ( ) : void
ProcessStatus ( ) : void

Method Details

AbortGesture() public méthode

public AbortGesture ( ) : void
Résultat void

HoldGestureEngine() public méthode

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
Résultat System

TrackTouchDown() public méthode

public TrackTouchDown ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
Résultat void

TrackTouchMove() public méthode

public TrackTouchMove ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
Résultat void

TrackTouchUp() public méthode

public TrackTouchUp ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
Résultat void