Table of Contents

Struct MouseEventData

Namespace
SharpHook.Data
Assembly
SharpHook.dll

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

data MouseEventData

The object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

Equals(object?)

Compares this object to another object for equality.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

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

left MouseEventData

The first object to compare

right MouseEventData

The second object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

operator !=(MouseEventData, MouseEventData)

Compares two objects for inequality.

public static bool operator !=(MouseEventData left, MouseEventData right)

Parameters

left MouseEventData

The first object to compare

right MouseEventData

The second object to compare

Returns

bool

true if the objects are not equal. Otherwise, false.

See Also