Table of Contents

Struct ScreenData

Namespace
SharpHook.Native
Assembly
SharpHook.dll

Represents screen-related data.

public struct ScreenData : IEquatable<ScreenData>
Implements
Inherited Members

Fields

Height

The height of the screen.

public ushort Height

Field Value

ushort

The height of the screen.

Number

The ordinal number of the screen.

public byte Number

Field Value

byte

The ordinal number of the screen.

Width

The width of the screen.

public ushort Width

Field Value

ushort

The width of the screen.

X

The X-coordinate of the screen.

public short X

Field Value

short

The X-coordinate of the screen.

Y

The Y-coordinate of the screen.

public short Y

Field Value

short

The Y-coordinate of the screen.

Methods

Equals(ScreenData)

Compares this object to another object for equality.

public readonly bool Equals(ScreenData data)

Parameters

data ScreenData

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 ==(ScreenData, ScreenData)

Compares two objects for equality.

public static bool operator ==(ScreenData left, ScreenData right)

Parameters

left ScreenData

The first object to compare

right ScreenData

The second object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

operator !=(ScreenData, ScreenData)

Compares two objects for inequality.

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

Parameters

left ScreenData

The first object to compare

right ScreenData

The second object to compare

Returns

bool

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