Table of Contents

Class TouchScreenEventArgs

Namespace
nanoFramework.UI
Assembly
nanoFramework.Graphics.dll

Event arguments for touch screen events.

public class TouchScreenEventArgs : EventArgs
Inheritance
TouchScreenEventArgs
Inherited Members
Extension Methods

Constructors

TouchScreenEventArgs(DateTime, TouchInput[], object)

Initializes a new instance of the TouchScreenEventArgs class.

public TouchScreenEventArgs(DateTime timestamp, TouchInput[] touches, object target)

Parameters

timestamp DateTime

The time stamp for the event.

touches TouchInput[]

An array of TouchInput structures containing information about each touch point.

target object

The target object for the event.

Fields

Target

Gets or sets the target object for the event.

public object Target

Field Value

object

TimeStamp

Gets or sets the time stamp for the event.

public DateTime TimeStamp

Field Value

DateTime

Touches

Gets or sets an array of TouchInput structures, containing information about each touch point.

public TouchInput[] Touches

Field Value

TouchInput[]

Methods

GetPosition(int, out int, out int)

Gets the X and Y position of the touch point at the specified index.

public void GetPosition(int touchIndex, out int x, out int y)

Parameters

touchIndex int

The index of the touch point to get the position for.

x int

When this method returns, contains the X position of the touch point.

y int

When this method returns, contains the Y position of the touch point.