Struct MouseWheelEventData
Represents the data of a mouse wheel-related event.
[ExcludeFromCodeCoverage]
public struct MouseWheelEventData : IEquatable<MouseWheelEventData>
- Implements
- Inherited Members
Fields
Delta
The wheel delta.
public ushort Delta
Field Value
- ushort
The wheel delta.
Remarks
On Windows, this value is equal to the WHEEL_DELTA constant (120).
On macOS, this value is the number of pixels per line.
On Linux, this value is always equal to 100.
Direction
The wheel scroll direction.
public MouseWheelScrollDirection Direction
Field Value
- MouseWheelScrollDirection
The wheel scroll direction.
Rotation
The wheel rotation.
public short Rotation
Field Value
- short
The wheel rotation.
Remarks
A positive value indicates that the wheel was rotated up or left, and a negative value indicates that the wheel was rotated down or right.
Type
The wheel scroll type.
public MouseWheelScrollType Type
Field Value
- MouseWheelScrollType
The wheel scroll type.
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(MouseWheelEventData)
Compares this object to another object for equality.
public readonly bool Equals(MouseWheelEventData data)
Parameters
dataMouseWheelEventDataThe 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 ==(MouseWheelEventData, MouseWheelEventData)
Compares two objects for equality.
public static bool operator ==(MouseWheelEventData left, MouseWheelEventData right)
Parameters
leftMouseWheelEventDataThe first object to compare
rightMouseWheelEventDataThe second object to compare
Returns
operator !=(MouseWheelEventData, MouseWheelEventData)
Compares two objects for inequality.
public static bool operator !=(MouseWheelEventData left, MouseWheelEventData right)
Parameters
leftMouseWheelEventDataThe first object to compare
rightMouseWheelEventDataThe second object to compare