Skip to content

Engine → Platform

null_backend.h

The virtual window: no OS call of any kind, constructible without a display server, deterministic. Tests and headless_engine drive it through push_event() and the simulate_*() controls, which queue events for the next pump_events(); every setter updates state so the getters round-trip, except set_size and set_position while fullscreen. One virtual monitor: "Null Monitor", 1920 x 1080 @ 60 Hz at the origin, content scale nullContentScale (simulate_content_scale changes window and monitor together, simulate_monitor_scale the monitor alone). Error contracts match the glfw backend so a caller tested here sees the same codes there: CLIPBOARD_UNAVAILABLE until text (even empty text) has been copied, INVALID_ARGUMENT for null pointers passed to create_vulkan_surface before VULKAN_UNSUPPORTED. Fullscreen behaves like glfw's borderless fullscreen: the window covers the monitor from its origin, set_size and set_position change nothing while it does, and leaving fullscreen restores the windowed size and position from before; a window created fullscreen without window_desc::position is centred on the virtual monitor instead.

Structs

File Description
null_backend::drop_range

Classes

File Description
null_backend