Struct NativeWindowInfo
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
HandlenintThe native window handle: an
HWNDon Windows, or0when unavailable (Windows then falls back to the system DPI). Other platforms ignore it.WindowSizeSizeThe window client size in OS window units (points on macOS).
DrawableSizeSizeThe back-buffer size in physical pixels.
Properties
DrawableSize
The back-buffer size in physical pixels.
public Size DrawableSize { get; init; }
Property Value
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
WindowSize
The window client size in OS window units (points on macOS).
public Size WindowSize { get; init; }