DragPointerState Struct

The state of the pointing device for the drag-and-drop events: its position in the viewport and its pressed buttons.

public readonly struct DragPointerState : IEquatable<DragPointerState>
Implements

Constructors

NameDescription
DragPointerState(double, double, ushort)The state of the pointing device for the drag-and-drop events: its position in the viewport and its pressed buttons.

DragPointerState(double, double, ushort)

The state of the pointing device for the drag-and-drop events: its position in the viewport and its pressed buttons.

public DragPointerState(double X, double Y, ushort Buttons)

Parameters

X double
The horizontal position of the pointer in the viewport.
Y double
The vertical position of the pointer in the viewport.
Buttons ushort
The pressed buttons (MouseEvent.Buttons).

Properties

NameDescription
ButtonsThe pressed buttons (MouseEvent.Buttons).
XThe horizontal position of the pointer in the viewport.
YThe vertical position of the pointer in the viewport.

The pressed buttons (MouseEvent.Buttons).

public ushort Buttons { get; init; }

Property value

ushort

The horizontal position of the pointer in the viewport.

public double X { get; init; }

Property value

double

The vertical position of the pointer in the viewport.

public double Y { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(double, double, ushort)
Equals(DragPointerState)
Equals(object)
GetHashCode()
ToString()

Deconstruct(double, double, ushort)

public void Deconstruct(out double X, out double Y, out ushort Buttons)

Parameters

X double
Y double
Buttons ushort

No documentation is available.

Equals overloads

Equals(DragPointerState)

public bool Equals(DragPointerState other)
Parameters
other DragPointerState
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(DragPointerState, DragPointerState)
operator !=(DragPointerState, DragPointerState)

operator ==(DragPointerState, DragPointerState)

public static bool operator ==(DragPointerState left, DragPointerState right)

Parameters

left DragPointerState
right DragPointerState

Returns

bool

No documentation is available.

operator !=(DragPointerState, DragPointerState)

public static bool operator !=(DragPointerState left, DragPointerState right)

Parameters

left DragPointerState
right DragPointerState

Returns

bool

No documentation is available.