Table of Contents

Class TouchGestureEventArgs

Namespace
nanoFramework.UI
Assembly
nanoFramework.Graphics.dll

Represents the event data for a touch gesture event.

public class TouchGestureEventArgs : EventArgs
Inheritance
TouchGestureEventArgs
Inherited Members
Extension Methods

Constructors

TouchGestureEventArgs()

public TouchGestureEventArgs()

Fields

Arguments

Gets or sets the arguments associated with the gesture.

public ushort Arguments

Field Value

ushort

Remarks

2 bytes for gesture-specific arguments. TouchGesture.Zoom: Arguments = distance between fingers TouchGesture.Rotate: Arguments = angle in degrees (0-360)

Gesture

Gets or sets the type of gesture.

public TouchGesture Gesture

Field Value

TouchGesture

Timestamp

Gets the time when the gesture occurred.

public readonly DateTime Timestamp

Field Value

DateTime

X

Gets or sets the X-coordinate of the gesture center or start location.

public int X

Field Value

int

Remarks

X and Y form the center location of the gesture for multi-touch or the starting location for single touch.

Y

Gets or sets the Y-coordinate of the gesture center or start location.

public int Y

Field Value

int

Remarks

X and Y form the center location of the gesture for multi-touch or the starting location for single touch.

Properties

Angle

Gets the angle of rotation for a Rotate gesture in degrees.

public double Angle { get; }

Property Value

double