[]
        
(Showing Draft Content)

C1.Win.Touch.TouchProcessor

TouchProcessor Class

Accepts input from a touch device.

Inheritance
TouchProcessor
Namespace: C1.Win.Touch
Assembly: C1.Win.4.8.dll
Syntax
public class TouchProcessor

Constructors

Name Description
TouchProcessor(Control, HitTestDelegate)

Creates an instance of TouchProcessor for the given control.

Fields

Name Description
IsSupported

Indicates if the Windows Touch Technology is available on this platform.

IsWindows8

Indicates if the application is running on Windows 8 or upper OS.

Properties

Name Description
Enabled

Gets or sets whether the touch processor is enabled.

InertiaIsRunning

Gets a value indicating whether the inertia is currently processed.

IsCursorSuppressed

Indicates that the system is not drawing the cursor because the user is providing input through touch or pen instead of the mouse.

MaxTapDisplacement

Gets or sets the maximum possible displacement allowable for a tap, in DIPs.

MaxTapDuration

Gets or sets the maximum allowable duration for a tap, in milliseconds.

UseTimerForInertia

Gets or sets whether the animation timer should be created for processing inertia (true by default).

Methods

Name Description
Complete(ITouchDestination)

Forces to complete the currently running manipulations for the given destination.

CompleteAll()

Forces all currently running manipulations to complete.

GetTimestamp()

Calculates the timestamp in 100-nanosecond units.

GuessFromTouch(Point, long)

Tries to guess whether the mouse event being processed came from the touch device rather than from the mouse or pen.

GuessFromTouch(long)

Tries to guess whether the scroll event being processed came from the touch device rather than from the mouse or pen.

HandleMessage(ref Message)

Processes touch-related Windows messages.

IsCursorVisible()

Indicates whether cursor is hidden because the end-user uses touch or pen instead of mouse.

ProcessTimerTick(long)

Processes inertia animation for the specified timestamp.

SetDpi(float, float)

Sets the dots per inch (DPI) for the touch processor.

Events

Name Description
DoubleTap

Occurs when the user taps the control twice.

MissedTap

Occurs if the user taps the control but the touch duration exceeded MaxTapDuration or the touch point was moved.

QueryStatus

Occurs before the control starts processing input from touch device or pen at the given point.

SecondaryTap

Occurs as a result of the Press and Hold action.

Tap

Occurs when the user taps the control.

Touch

Occurs before processing any manipulations from touch device.