Table of Contents

Struct NativeWindowInfo

Namespace
Icy.Rendering.Display
Assembly
IcyUI.dll

Describes the native window an engine renders into - the only data an engine integration supplies for display-scale detection.

public readonly record struct NativeWindowInfo : IEquatable<NativeWindowInfo>
Implements
Inherited Members
Extension Methods

Constructors

NativeWindowInfo(nint, Size, Size)

Describes the native window an engine renders into - the only data an engine integration supplies for display-scale detection.

public NativeWindowInfo(nint Handle, Size WindowSize, Size DrawableSize)

Parameters

Handle nint

The native window handle: an HWND on Windows, or 0 when unavailable (Windows then falls back to the system DPI). Other platforms ignore it.

WindowSize Size

The window client size in OS window units (points on macOS).

DrawableSize Size

The back-buffer size in physical pixels.

Properties

DrawableSize

The back-buffer size in physical pixels.

public Size DrawableSize { get; init; }

Property Value

Size

Handle

The native window handle: an HWND on Windows, or 0 when unavailable (Windows then falls back to the system DPI). Other platforms ignore it.

public nint Handle { get; init; }

Property Value

nint

WindowSize

The window client size in OS window units (points on macOS).

public Size WindowSize { get; init; }

Property Value

Size