Skip to content

Struct PixelSize

Namespace: Apogee.Platform
Assembly: Apogee.Platform.dll

A size in pixels: what a swapchain is created with (on a high-density display it is larger than the window's size in points).

public readonly record struct PixelSize : IEquatable<PixelSize>

Implements

IEquatable<PixelSize>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

PixelSize(int, int)

A size in pixels: what a swapchain is created with (on a high-density display it is larger than the window's size in points).

public PixelSize(int Width, int Height)

Parameters

Width int

Height int

Properties

Height

public int Height { get; init; }

Property Value

int

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Width

public int Width { get; init; }

Property Value

int

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.