Struct MouseEventData
Represents the data of a mouse-related event.
Implements
Inherited Members
Namespace: SharpHook.Native
Assembly: SharpHook.dll
Syntax
public struct MouseEventData : IEquatable<MouseEventData>
Fields
| Improve this Doc View SourceButton
The mouse button.
Declaration
public MouseButton Button
Field Value
Type | Description |
---|---|
MouseButton | The mouse button. |
Clicks
The number of clicks.
Declaration
public ushort Clicks
Field Value
Type | Description |
---|---|
UInt16 | The number of clicks. |
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(MouseEventData)
Compares this object to another object for equality.
Declaration
public bool Equals(MouseEventData data)
Parameters
Type | Name | Description |
---|---|---|
MouseEventData | 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(MouseEventData, MouseEventData)
Compares two objects for equality.
Declaration
public static bool operator ==(MouseEventData left, MouseEventData right)
Parameters
Type | Name | Description |
---|---|---|
MouseEventData | left | The first object to compare |
MouseEventData | right | The second object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal. Otherwise, false. |
Inequality(MouseEventData, MouseEventData)
Compares two objects for inequality.
Declaration
public static bool operator !=(MouseEventData left, MouseEventData right)
Parameters
Type | Name | Description |
---|---|---|
MouseEventData | left | The first object to compare |
MouseEventData | right | The second object to compare |
Returns
Type | Description |
---|---|
Boolean | true if the objects are not equal. Otherwise, false. |