C# 클래스 Blake.NUI.WPF.Gestures.EngineHandlerBase

Base class for engine handlers.
파일 보기 프로젝트 열기: TNOCS/csTouch 1 사용 예제들

공개 메소드들

메소드 설명
EngineHandlerBase ( Func engineCreator, UIElement trackedElement, bool handleTouchEvent = false ) : System

Initializes a new instance of the EngineHandler class.

StopTracking ( ) : void

Stops gesture recognition for the tracked element

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
RaiseGestureCompleted ( UIElement element, System.Windows.Input.TouchDevice device ) : void
engine_GestureAborted ( object sender, EventArgs e ) : void
engine_GestureCompleted ( object sender, EventArgs e ) : void
engine_GestureStarted ( object sender, EventArgs e ) : void

메소드 상세

CreateAndSetupGestureEngine() 보호된 메소드

Creates and setups event listeners for a new gesture engine.
protected CreateAndSetupGestureEngine ( System.Windows.Input.MouseDevice device ) : IGestureEngine
device System.Windows.Input.MouseDevice The touch device that caused started the potential gesture
리턴 IGestureEngine

CreateAndSetupGestureEngine() 보호된 메소드

Creates and setups event listeners for a new gesture engine.
protected CreateAndSetupGestureEngine ( System.Windows.Input.TouchDevice device ) : IGestureEngine
device System.Windows.Input.TouchDevice The touch device that caused started the potential gesture
리턴 IGestureEngine

EngineHandlerBase() 공개 메소드

Initializes a new instance of the EngineHandler class.
public EngineHandlerBase ( Func engineCreator, UIElement trackedElement, bool handleTouchEvent = false ) : System
engineCreator Func The function used to create an instance of the engine that actually recognizes the gesture.
trackedElement System.Windows.UIElement The tracked element.
handleTouchEvent bool if set to true then all touch events occurring on the tracked element will get e.Handled set to true to avoid further routing of the events.
리턴 System

OnGestureAborted() 보호된 메소드

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.
protected OnGestureAborted ( IGestureEngine engine ) : void
engine IGestureEngine The engine that was aborted
리턴 void

OnGestureCompleted() 보호된 메소드

Called when an engine has successfully recognized a gesture.
protected OnGestureCompleted ( IGestureEngine engine ) : void
engine IGestureEngine The engine that recognized a gesture
리턴 void

OnGestureStarted() 보호된 메소드

Called when an engine starts to recognize gestures
protected OnGestureStarted ( IGestureEngine engine ) : void
engine IGestureEngine The engine that was started
리턴 void

OnStopTracking() 보호된 메소드

Called when the TrackedElement is no longer tracked for touch events.
protected OnStopTracking ( ) : void
리턴 void

OnTrackedElementMouseDown() 보호된 메소드

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

OnTrackedElementMouseMove() 보호된 메소드

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

OnTrackedElementMouseUp() 보호된 메소드

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

OnTrackedElementTouchDown() 보호된 메소드

Called when a touch down event occurs on the TrackedElement.
protected OnTrackedElementTouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object The sender.
e System.Windows.Input.TouchEventArgs The instance containing the event data.
리턴 void

OnTrackedElementTouchMove() 보호된 메소드

Called when a touch move event occurs on the TrackedElement.
protected OnTrackedElementTouchMove ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object The sender.
e System.Windows.Input.TouchEventArgs The instance containing the event data.
리턴 void

OnTrackedElementTouchUp() 보호된 메소드

Called when a touch up event occurs on the TrackedElement.
protected OnTrackedElementTouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object The sender.
e System.Windows.Input.TouchEventArgs The instance containing the event data.
리턴 void

StopTracking() 공개 메소드

Stops gesture recognition for the tracked element
public StopTracking ( ) : void
리턴 void

TimestampToDateTime() 보호된 정적인 메소드

Converts the timestamp provided in TouchEventArgs to a proper DateTime struct.
protected static TimestampToDateTime ( int timestamp ) : System.DateTime
timestamp int The timestamp, as received from e.TimeStamp.
리턴 System.DateTime

UnregisterEngine() 보호된 메소드

Removes all event handlers for the specified engine
protected UnregisterEngine ( IGestureEngine engine ) : void
engine IGestureEngine The engine to stop listening to
리턴 void