MouseEventInit Class
https://w3c.github.io/uievents/#dictdef-mouseeventinit
public class MouseEventInit : EventModifierInit- Inheritance
EventModifierInitMouseEventInit
Constructors
| Name | Description |
|---|---|
| MouseEventInit() |
MouseEventInit()
public MouseEventInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Button | Gets the button that changed state: 0 for the main button, 1 for the auxiliary button, 2 for the secondary button. |
| Buttons | Gets the bit mask of the buttons that are pressed. |
| ClientX | Gets the horizontal coordinate of the pointer relative to the viewport. |
| ClientY | Gets the vertical coordinate of the pointer relative to the viewport. |
| MovementX | Gets the horizontal distance of the pointer movement since the previous event. |
| MovementY | Gets the vertical distance of the pointer movement since the previous event. |
| RelatedTarget | Gets the secondary target of the event (for example the element the pointer left), or null. |
| ScreenX | Gets the horizontal coordinate of the pointer relative to the screen. |
| ScreenY | Gets the vertical coordinate of the pointer relative to the screen. |
Button
UIEvents.csGets the button that changed state: 0 for the main button, 1 for the auxiliary button, 2 for the secondary button.
public short Button { get; init; }Buttons
UIEvents.csGets the bit mask of the buttons that are pressed.
public ushort Buttons { get; init; }ClientX
UIEvents.csGets the horizontal coordinate of the pointer relative to the viewport.
public double ClientX { get; init; }ClientY
UIEvents.csGets the vertical coordinate of the pointer relative to the viewport.
public double ClientY { get; init; }MovementX
UIEvents.csGets the horizontal distance of the pointer movement since the previous event.
public double MovementX { get; init; }MovementY
UIEvents.csGets the vertical distance of the pointer movement since the previous event.
public double MovementY { get; init; }RelatedTarget
UIEvents.csGets the secondary target of the event (for example the element the pointer left), or null.
public EventTarget? RelatedTarget { get; init; }ScreenX
UIEvents.csGets the horizontal coordinate of the pointer relative to the screen.
public double ScreenX { get; init; }ScreenY
UIEvents.csGets the vertical coordinate of the pointer relative to the screen.
public double ScreenY { get; init; }