PlatformAPI reference
Interface ISurface
Namespace: MicroEngine.Platform
Assembly: MicroEngine.Platform.dll
Guide: The platform host
A surface a host produces and a graphics device presents to: a window, a browser canvas, a phone’s screen. This is the graphics contract’s surface (version 1); only backends read NativeWindow.
public interface ISurfaceProperties
IsMinimized
True while the surface has nothing to present to (minimised, zero size).
bool IsMinimized { get; }Property Value
NativeWindow
Opaque native window (an SDL_Window* for SDL hosts, raylib’s window handle for raylib); 0 when there is none (headless). Only backends read it.
nint NativeWindow { get; }Property Value
PixelDensity
Pixels per logical unit.
float PixelDensity { get; }Property Value
PixelSize
Drawable size in pixels.
(int Width, int Height) PixelSize { get; }Property Value
Lost
Raised when a mobile surface is destroyed.
event Action? LostEvent Type
Resized
Raised when PixelSize changes, during the host’s event pump.
event Action? Resized