Table of Contents

Struct MouseEventData

Namespace
SharpHook.Native
Assembly
SharpHook.dll

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 MouseEventData

The object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

See Also

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.

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 MouseEventData

The first object to compare

right MouseEventData

The second object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

See Also

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

See Also