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§
- Helpers for mapping window entities to accessibility types
Structs§
- The default event that can be used to wake the window loop Wakes up the loop if in wait state
- A
Pluginthat useswinitto create and manage windows, and receive window and input events. - Settings for the
WinitPlugin. - A resource mapping window entities to their
winit-backendWindowstates.
Enums§
- Determines how frequently an
Appshould update. - Wraps all
bevy_windowevents in a common enum.
Functions§
- Gets the “best” video-mode handle from a monitor.
- Gets the “best” video mode which fits the given dimensions.
- Compute the physical window position for a given
WindowPosition.
Type Aliases§
- The parameters of the
create_windowssystem. - The
winit::event_loop::EventLoopProxywith the specificwinit::event::Event::UserEventused in the [winit_runner].