Docs · API reference · Motus.Abstractions

ViewportSize Class#

Represents the viewport dimensions.

public sealed record ViewportSize : System.IEquatable<Motus.Abstractions.ViewportSize>

Inheritance System.Object → ViewportSize

Implements System.IEquatable<ViewportSize>

Constructors#

ViewportSize(int, int) Constructor#

Represents the viewport dimensions.

public ViewportSize(int Width, int Height);

Parameters#

Width System.Int32

The viewport width in pixels.

Height System.Int32

The viewport height in pixels.

Properties#

Height Property#

The viewport height in pixels.

public int Height { get; init; }

Property Value#

System.Int32

Width Property#

The viewport width in pixels.

public int Width { get; init; }

Property Value#

System.Int32