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

General purpose engine handler for gestures that only involve a single touch point (like "Tap" and "Hold")
This handler can simultaniously recognize gestures on different touch points since each contact is handled separately.
Inheritance: EngineHandlerBase
Mostrar archivo Open project: TNOCS/csTouch Class Usage Examples

Public Methods

Method Description
EngineHandler ( Func engineCreator, UIElement trackedElement, bool handleTouchEvent = false ) : System

Protected Methods

Method Description
OnGestureAborted ( IGestureEngine engine ) : void
OnGestureCompleted ( IGestureEngine engine ) : void
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
OnTrackedElementTouchMove ( object sender, System.Windows.Input.TouchEventArgs e ) : void
OnTrackedElementTouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void

Private Methods

Method Description
AbortExistingEngineIfAny ( System.Windows.Input.InputDevice device ) : void

Method Details

EngineHandler() public method

public EngineHandler ( Func engineCreator, UIElement trackedElement, bool handleTouchEvent = false ) : System
engineCreator Func
trackedElement System.Windows.UIElement
handleTouchEvent bool
return System

OnGestureAborted() protected method

protected OnGestureAborted ( IGestureEngine engine ) : void
engine IGestureEngine
return void

OnGestureCompleted() protected method

protected OnGestureCompleted ( IGestureEngine engine ) : void
engine IGestureEngine
return void

OnTrackedElementMouseDown() protected method

protected OnTrackedElementMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnTrackedElementMouseMove() protected method

protected OnTrackedElementMouseMove ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnTrackedElementMouseUp() protected method

protected OnTrackedElementMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnTrackedElementTouchDown() protected method

protected OnTrackedElementTouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
return void

OnTrackedElementTouchMove() protected method

protected OnTrackedElementTouchMove ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
return void

OnTrackedElementTouchUp() protected method

protected OnTrackedElementTouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
return void