Expand description
bevy_winit provides utilities to handle window creation and the eventloop through winit
Most commonly, the [WinitPlugin] is used as part of
DefaultPlugins.
The app’s runner is set by WinitPlugin and handles the winit EventLoop.
See winit_runner for details.
Modules§
- accessibility
- Helpers for mapping window entities to accessibility types
Structs§
- HotWinit
Plugin - A
Pluginthat utilizeswinitfor window creation and event loop management. - Winit
Settings - A resource for configuring usage of the
winitlibrary. - Winit
Windows - A resource which maps window entities to
winitlibrary windows.
Enums§
- Update
Mode - Configure how the winit event loop should update.
Functions§
- get_
best_ videomode - Gets the “best” videomode from a monitor.
- get_
fitting_ videomode - Gets the “best” video mode which fits the given dimensions.
- winit_
runner - The default
App::runnerfor the [WinitPlugin] plugin. - winit_
window_ position - Compute the physical window position for a given
WindowPosition.