Struct MouseWheelEventData
Represents the data of a mouse wheel-related event.
Implements
Inherited Members
Namespace: SharpHook.Native
Assembly: SharpHook.dll
Syntax
public struct MouseWheelEventData : IEquatable<MouseWheelEventData>
Fields
| Improve this Doc View SourceAmount
The wheel scroll amount.
Declaration
public ushort Amount
Field Value
Type | Description |
---|---|
UInt16 | The wheel scroll amount. |
Clicks
The number of clicks.
Declaration
public ushort Clicks
Field Value
Type | Description |
---|---|
UInt16 | The number of clicks. |
Direction
The wheel scroll direction.
Declaration
public MouseWheelScrollDirection Direction
Field Value
Type | Description |
---|---|
MouseWheelScrollDirection | The wheel scroll direction. |
Rotation
The wheel rotation.
Declaration
public short Rotation
Field Value
Type | Description |
---|---|
Int16 | The wheel rotation. |
Remarks
A positive value indicates that the wheel was rotated down and a negative value indicates that the wheel was rotated up.
Type
The wheel scroll type.
Declaration
public MouseWheelScrollType Type
Field Value
Type | Description |
---|---|
MouseWheelScrollType | The wheel scroll type. |
X
The X-coordinate of the mouse cursor.
Declaration
public short X
Field Value
Type | Description |
---|---|
Int16 | The X-coordinate of the mouse cursor. |
Y
The Y-coordinate of the mouse cursor.
Declaration
public short Y
Field Value
Type | Description |
---|---|
Int16 | The Y-coordinate of the mouse cursor. |
Methods
| Improve this Doc View SourceEquals(MouseWheelEventData)
Compares this object to another object for equality.
Declaration
public bool Equals(MouseWheelEventData data)
Parameters
Type | Name | Description |
---|---|---|
MouseWheelEventData | data | The object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal. Otherwise, false. |
Equals(Object)
Compares this object to another object for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal. Otherwise, false. |
Overrides
| Improve this Doc View SourceGetHashCode()
Gets the hash code of this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of this object. |
Overrides
| Improve this Doc View SourceToString()
Returns the string representation of this object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The string representation of this object. |
Overrides
Operators
| Improve this Doc View SourceEquality(MouseWheelEventData, MouseWheelEventData)
Compares two objects for equality.
Declaration
public static bool operator ==(MouseWheelEventData left, MouseWheelEventData right)
Parameters
Type | Name | Description |
---|---|---|
MouseWheelEventData | left | The first object to compare |
MouseWheelEventData | right | The second object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal. Otherwise, false. |
Inequality(MouseWheelEventData, MouseWheelEventData)
Compares two objects for inequality.
Declaration
public static bool operator !=(MouseWheelEventData left, MouseWheelEventData right)
Parameters
Type | Name | Description |
---|---|---|
MouseWheelEventData | left | The first object to compare |
MouseWheelEventData | right | The second object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are not equal. Otherwise, false. |