Skip to main content

Module winit

Module winit 

Source
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_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 the run_windowed/run_app drivers. The winit event loop and the windowed app drivers.
translate
winit-event -> retroglyph-event converters. winit-event -> retroglyph-event converters.