DesktopRect record struct

Namespace Runic.Platform in Runic.Platform 0.23.0

public readonly record struct DesktopRect : IEquatable<DesktopRect>

Inherits or implements IEquatable.

A rectangle in a platform's screen coordinates, which grow right and down from the primary monitor's top-left corner.

Parameters

X

The left edge.

Y

The top edge.

Width

The width.

Height

The height.

Constructors

DesktopRect

public DesktopRect(int X, int Y, int Width, int Height)

A rectangle in a platform's screen coordinates, which grow right and down from the primary monitor's top-left corner.

Parameters

X

The left edge.

Y

The top edge.

Width

The width.

Height

The height.

Properties

Height

public int Height { get; init; }

The height.

Width

public int Width { get; init; }

The width.

X

public int X { get; init; }

The left edge.

Y

public int Y { get; init; }

The top edge.