Struct MouseEventData
Represents the data of a mouse-related event.
[ExcludeFromCodeCoverage]
public struct MouseEventData : IEquatable<MouseEventData>
- Implements
- Inherited Members
Fields
Button
The mouse button.
public MouseButton Button
Field Value
- MouseButton
The mouse button.
Clicks
The number of clicks.
public ushort Clicks
Field Value
- ushort
The number of clicks.
X
The X-coordinate of the mouse cursor.
public short X
Field Value
- short
The X-coordinate of the mouse cursor.
Y
The Y-coordinate of the mouse cursor.
public short Y
Field Value
- short
The Y-coordinate of the mouse cursor.
Methods
Equals(MouseEventData)
Compares this object to another object for equality.
public readonly bool Equals(MouseEventData data)
Parameters
dataMouseEventDataThe object to compare
Returns
Equals(object?)
Compares this object to another object for equality.
public override readonly bool Equals(object? obj)
Parameters
objobjectThe object to compare
Returns
GetHashCode()
Gets the hash code of this object.
public override readonly int GetHashCode()
Returns
- int
The hash code of this object.
ToString()
Returns the string representation of this object.
public override readonly string ToString()
Returns
- string
The string representation of this object.
Operators
operator ==(MouseEventData, MouseEventData)
Compares two objects for equality.
public static bool operator ==(MouseEventData left, MouseEventData right)
Parameters
leftMouseEventDataThe first object to compare
rightMouseEventDataThe second object to compare
Returns
operator !=(MouseEventData, MouseEventData)
Compares two objects for inequality.
public static bool operator !=(MouseEventData left, MouseEventData right)
Parameters
leftMouseEventDataThe first object to compare
rightMouseEventDataThe second object to compare