Table of Contents

Class DesktopSizes

Namespace
Icy.Rendering.Display
Assembly
IcyUI.dll

Provides static methods to get the desktop-size provider for the current platform.

public static class DesktopSizes
Inheritance
DesktopSizes
Inherited Members

Remarks

Only Windows has a dedicated provider today. Other platforms get a FixedDesktopSizeProvider that reports the size as unknown; a macOS (CoreGraphics), Linux (XRandR/Wayland) or engine-supplied (e.g. SDL) provider can be added without API changes.

Methods

GetProvider()

Gets the desktop-size provider for the current platform, or a FixedDesktopSizeProvider reporting the size as unknown when the platform has none.

public static IDesktopSizeProvider GetProvider()

Returns

IDesktopSizeProvider

A desktop-size provider; never null.