Class TouchEvent
- Namespace
- AngleSharp.Html.Dom.Events
- Assembly
- AngleSharp.dll
Represents the event arguments for a touch event.
[DomName("TouchEvent")]
public class TouchEvent : UiEvent
- Inheritance
-
TouchEvent
- Inherited Members
- Extension Methods
Constructors
TouchEvent()
Creates a new event.
public TouchEvent()
TouchEvent(string, bool, bool, IWindow?, int, ITouchList?, ITouchList?, ITouchList?, bool, bool, bool, bool)
Creates a new event and initializes it.
[DomConstructor]
[DomInitDict(1, true)]
public TouchEvent(string type, bool bubbles = false, bool cancelable = false, IWindow? view = null, int detail = 0, ITouchList? touches = null, ITouchList? targetTouches = null, ITouchList? changedTouches = null, bool ctrlKey = false, bool altKey = false, bool shiftKey = false, bool metaKey = false)
Parameters
type
stringThe type of the event.
bubbles
boolIf the event is bubbling.
cancelable
boolIf the event is cancelable.
view
IWindowSets the associated view for the UI event.
detail
intSets the detail id for the UIevent.
touches
ITouchListThe list of active touches.
targetTouches
ITouchListThe list of target-active toches.
changedTouches
ITouchListThe list of changed touches.
ctrlKey
boolSets if the control key was pressed.
altKey
boolSets if the alt key was pressed.
shiftKey
boolSets if the shift key was pressed.
metaKey
boolSets if the meta key was pressed.
Properties
ChangedTouches
Gets a list with changed touch points.
[DomName("changedTouches")]
public ITouchList? ChangedTouches { get; }
Property Value
IsAltPressed
Gets if the alt key is pressed.
[DomName("altKey")]
public bool IsAltPressed { get; }
Property Value
IsCtrlPressed
Gets if the control key is pressed.
[DomName("ctrlKey")]
public bool IsCtrlPressed { get; }
Property Value
IsMetaPressed
Gets if the meta key is pressed.
[DomName("metaKey")]
public bool IsMetaPressed { get; }
Property Value
IsShiftPressed
Gets if the shift key is pressed.
[DomName("shiftKey")]
public bool IsShiftPressed { get; }
Property Value
TargetTouches
Gets a list with touch points over the target.
[DomName("targetTouches")]
public ITouchList? TargetTouches { get; }
Property Value
Touches
Gets a list with all active touch points.
[DomName("touches")]
public ITouchList? Touches { get; }
Property Value
Methods
Init(string, bool, bool, IWindow?, int, ITouchList?, ITouchList?, ITouchList?, bool, bool, bool, bool)
Initializes the focus event.
[DomName("initTouchEvent")]
public void Init(string type, bool bubbles, bool cancelable, IWindow? view, int detail, ITouchList? touches, ITouchList? targetTouches, ITouchList? changedTouches, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
Parameters
type
stringThe type of event.
bubbles
boolDetermines if the event bubbles.
cancelable
boolDetermines if the event is cancelable.
view
IWindowSets the associated view for the UI event.
detail
intSets the detail id for the UIevent.
touches
ITouchListThe list of active touches.
targetTouches
ITouchListThe list of target-active toches.
changedTouches
ITouchListThe list of changed touches.
ctrlKey
boolSets if the control key was pressed.
altKey
boolSets if the alt key was pressed.
shiftKey
boolSets if the shift key was pressed.
metaKey
boolSets if the meta key was pressed.