Expand description
The winit event loop, event translation, and app drivers. Everything winit-specific in this crate: the event loop, event translation, and the windowed app drivers.
A driver for another windowing library (SDL2, tao, a custom loop) would be a sibling module
with the same shape: create a window, translate its events into
Events pushed onto WindowBackend,
and call Presenter::present once per frame.
Re-exports§
pub use run::EventProxy;pub use run::EventProxyClosed;pub use run::WindowConfig;pub use run::run_app;pub use run::run_app_on;pub use run::run_app_with_proxy;pub use run::run_app_with_typed_proxy;pub use run::run_windowed;pub use run::run_windowed_with_proxy;pub use run::run_windowed_with_typed_proxy;
Modules§
- run
- The winit event loop,
WindowConfig, and therun_windowed/run_appdrivers. The winit event loop and the windowed app drivers. - translate
- winit-event -> retroglyph-event converters. winit-event -> retroglyph-event converters.
Structs§
- Event
Loop Error - The error winit’s event loop can fail with when starting or running.
- Windowed
- Pairs a windowed backend’s
PresenterBuilderwith the window titleLaunchneeds to open one.
Enums§
- Windowed
Launch Error - The error
Windowed’sLaunchimpl can fail with.