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