Skip to content

IWindowSurface interface

Represents a platform-provided drawing/presentation surface for a window. Implementations are platform-specific and are consumed by graphics backends that support them.

public interface IWindowSurface
name description
DisplayIdentity { get; } Gets the platform display/output identity currently associated with this surface. Backends should treat an empty value as “unknown” and fall back to their existing platform-specific discovery path.
DpiScale { get; } Gets the DPI scale factor of the surface (1.0 at 96 DPI).
Handle { get; } Gets the primary native handle of the surface; its concrete type is defined by the platform.
PixelHeight { get; } Gets the height of the surface in device pixels.
PixelWidth { get; } Gets the width of the surface in device pixels.