Skip to main content

Module window_backend

Module window_backend 

Source
Expand description

The window backends a binary carries, and the window-free state every window backend shares with the app.

Each backend registers a WindowBackendEntry into the app’s WindowBackends from its own crate, and an interactive launch runs the app through the highest-priority one’s crate::traits::WindowBackend::run. The core and the runtime name no backend.

WindowCorePlugin is the half of a window that needs no display: the messages a window backend writes and the redraw state it reads. A backend installs it when it runs; a headless run installs it alone, so systems that read window state behave the same with no window open.

Structs§

RedrawScheduler
Redraw pacing: whether a frame is wanted, and whether the window can show one.
WindowBackendEntry
One window backend: its name, its rank, and how to make it.
WindowCorePlugin
The window-free half of every window backend.

Type Aliases§

WindowBackends
Main-world registry of the window backends this binary carries. A backend’s capability install adds itself with crate::backends::register_backend.