Class WheelEvent
- Namespace
- AngleSharp.Html.Dom.Events
- Assembly
- AngleSharp.dll
Represents the event args for a mouse wheel event.
[DomName("WheelEvent")]
public class WheelEvent : MouseEvent
- Inheritance
-
WheelEvent
- Inherited Members
- Extension Methods
Constructors
WheelEvent()
Creates a new event.
public WheelEvent()
WheelEvent(string, bool, bool, IWindow?, int, int, int, int, int, MouseButton, IEventTarget?, string?, double, double, double, WheelMode)
Creates a new event and initializes it.
[DomConstructor]
[DomInitDict(1, true)]
public WheelEvent(string type, bool bubbles = false, bool cancelable = false, IWindow? view = null, int detail = 0, int screenX = 0, int screenY = 0, int clientX = 0, int clientY = 0, MouseButton button = MouseButton.Primary, IEventTarget? target = null, string? modifiersList = null, double deltaX = 0, double deltaY = 0, double deltaZ = 0, WheelMode deltaMode = WheelMode.Pixel)
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 UI event.
screenX
intSets the screen X coordinate.
screenY
intSets the screen Y coordinate.
clientX
intSets the client X coordinate.
clientY
intSets the client Y coordinate.
button
MouseButtonSets which button has been pressed.
target
IEventTargetThe target of the mouse event.
modifiersList
stringA list with keyboard modifiers that have been pressed.
deltaX
doubleThe mouse wheel delta in X direction.
deltaY
doubleThe mouse wheel delta in Y direction.
deltaZ
doubleThe mouse wheel delta in Z direction.
deltaMode
WheelModeThe delta mode for the wheel event.
Properties
DeltaMode
Gets the mouse wheel delta mode.
[DomName("deltaMode")]
public WheelMode DeltaMode { get; }
Property Value
DeltaX
Gets the mouse wheel delta X.
[DomName("deltaX")]
public double DeltaX { get; }
Property Value
DeltaY
Gets the mouse wheel delta Y.
[DomName("deltaY")]
public double DeltaY { get; }
Property Value
DeltaZ
Gets the mouse wheel delta Z.
[DomName("deltaZ")]
public double DeltaZ { get; }
Property Value
Methods
Init(string, bool, bool, IWindow?, int, int, int, int, int, MouseButton, IEventTarget?, string, double, double, double, WheelMode)
Initializes the mouse wheel event.
[DomName("initWheelEvent")]
public void Init(string type, bool bubbles, bool cancelable, IWindow? view, int detail, int screenX, int screenY, int clientX, int clientY, MouseButton button, IEventTarget? target, string modifiersList, double deltaX, double deltaY, double deltaZ, WheelMode deltaMode)
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.
screenX
intSets the screen X coordinate.
screenY
intSets the screen Y coordinate.
clientX
intSets the client X coordinate.
clientY
intSets the client Y coordinate.
button
MouseButtonSets which button has been pressed.
target
IEventTargetThe target of the mouse event.
modifiersList
stringA list with keyboard modifiers that have been pressed.
deltaX
doubleThe mouse wheel delta in X direction.
deltaY
doubleThe mouse wheel delta in Y direction.
deltaZ
doubleThe mouse wheel delta in Z direction.
deltaMode
WheelModeThe delta mode for the wheel event.