Class TouchScreen
- Namespace
- nanoFramework.UI
- Assembly
- nanoFramework.Graphics.dll
Represents a touch screen that can listen for touch events.
public class TouchScreen : IEventListener
- Inheritance
-
TouchScreen
- Implements
- Inherited Members
- Extension Methods
Constructors
TouchScreen(ActiveRectangle[])
Initializes a new instance of the TouchScreen class with the specified active regions.
public TouchScreen(TouchScreen.ActiveRectangle[] activeRectangles)
Parameters
activeRectangles
ActiveRectangle[]An array of active rectangles representing the regions of the screen that can be interacted with.
Properties
ActiveRegions
Gets or sets the ActiveRectangles that define the touchable regions on the TouchScreen.
public TouchScreen.ActiveRectangle[] ActiveRegions { get; set; }
Property Value
Events
OnGestureChanged
Event triggered when a gesture changes on the TouchScreen.
public event TouchGestureEventHandler OnGestureChanged
Event Type
OnGestureEnded
Event triggered when a gesture ends on the TouchScreen.
public event TouchGestureEventHandler OnGestureEnded
Event Type
OnGestureStarted
Event triggered when a gesture starts on the TouchScreen.
public event TouchGestureEventHandler OnGestureStarted
Event Type
OnTouchDown
Event triggered when a touch down event occurs on the TouchScreen.
public event TouchScreenEventHandler OnTouchDown
Event Type
OnTouchMove
Event triggered when a touch move event occurs on the TouchScreen.
public event TouchScreenEventHandler OnTouchMove
Event Type
OnTouchUp
Event triggered when a touch up event occurs on the TouchScreen.
public event TouchScreenEventHandler OnTouchUp