Method | Description | |
---|---|---|
EngineHandlerBase ( Func |
Initializes a new instance of the EngineHandler class.
|
|
StopTracking ( ) : void |
Stops gesture recognition for the tracked element
|
Method | Description | |
---|---|---|
CreateAndSetupGestureEngine ( System.Windows.Input.MouseDevice device ) : IGestureEngine |
Creates and setups event listeners for a new gesture engine.
|
|
CreateAndSetupGestureEngine ( System.Windows.Input.TouchDevice device ) : IGestureEngine |
Creates and setups event listeners for a new gesture engine.
|
|
OnGestureAborted ( IGestureEngine engine ) : void |
Called when an engine aborts its gesture recognition. Typically this is done when the touch events doesn't match the engine's gesture but can it can also be aborted for other reasons.
|
|
OnGestureCompleted ( IGestureEngine engine ) : void |
Called when an engine has successfully recognized a gesture.
|
|
OnGestureStarted ( IGestureEngine engine ) : void |
Called when an engine starts to recognize gestures
|
|
OnStopTracking ( ) : void |
Called when the TrackedElement is no longer tracked for touch events.
|
|
OnTrackedElementMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void | ||
OnTrackedElementMouseMove ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void | ||
OnTrackedElementMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void | ||
OnTrackedElementTouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void |
Called when a touch down event occurs on the TrackedElement.
|
|
OnTrackedElementTouchMove ( object sender, System.Windows.Input.TouchEventArgs e ) : void |
Called when a touch move event occurs on the TrackedElement.
|
|
OnTrackedElementTouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void |
Called when a touch up event occurs on the TrackedElement.
|
|
TimestampToDateTime ( int timestamp ) : System.DateTime |
Converts the timestamp provided in TouchEventArgs to a proper DateTime struct.
|
|
UnregisterEngine ( IGestureEngine engine ) : void |
Removes all event handlers for the specified engine
|
Method | Description | |
---|---|---|
RaiseGestureCompleted ( |
||
engine_GestureAborted ( object sender, |
||
engine_GestureCompleted ( object sender, |
||
engine_GestureStarted ( object sender, |
protected CreateAndSetupGestureEngine ( System.Windows.Input.MouseDevice device ) : IGestureEngine | ||
device | System.Windows.Input.MouseDevice | The touch device that caused started the potential gesture |
return | IGestureEngine |
protected CreateAndSetupGestureEngine ( System.Windows.Input.TouchDevice device ) : IGestureEngine | ||
device | System.Windows.Input.TouchDevice | The touch device that caused started the potential gesture |
return | IGestureEngine |
public EngineHandlerBase ( Func |
||
engineCreator | Func |
The function used to create an instance of the engine that actually recognizes the gesture. |
trackedElement | The tracked element. | |
handleTouchEvent | bool | if set to |
return | System |
protected OnGestureAborted ( IGestureEngine engine ) : void | ||
engine | IGestureEngine | The engine that was aborted |
return | void |
protected OnGestureCompleted ( IGestureEngine engine ) : void | ||
engine | IGestureEngine | The engine that recognized a gesture |
return | void |
protected OnGestureStarted ( IGestureEngine engine ) : void | ||
engine | IGestureEngine | The engine that was started |
return | void |
protected OnTrackedElementMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void | ||
sender | object | |
e | System.Windows.Input.MouseButtonEventArgs | |
return | void |
protected OnTrackedElementMouseMove ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void | ||
sender | object | |
e | System.Windows.Input.MouseButtonEventArgs | |
return | void |
protected OnTrackedElementMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void | ||
sender | object | |
e | System.Windows.Input.MouseButtonEventArgs | |
return | void |
protected OnTrackedElementTouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void | ||
sender | object | The sender. |
e | System.Windows.Input.TouchEventArgs | The |
return | void |
protected OnTrackedElementTouchMove ( object sender, System.Windows.Input.TouchEventArgs e ) : void | ||
sender | object | The sender. |
e | System.Windows.Input.TouchEventArgs | The |
return | void |
protected OnTrackedElementTouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void | ||
sender | object | The sender. |
e | System.Windows.Input.TouchEventArgs | The |
return | void |
protected static TimestampToDateTime ( int timestamp ) : System.DateTime | ||
timestamp | int | The timestamp, as received from e.TimeStamp. |
return | System.DateTime |
protected UnregisterEngine ( IGestureEngine engine ) : void | ||
engine | IGestureEngine | The engine to stop listening to |
return | void |