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
Plugin
that useswinit
to create and manage windows, and receive window and input events. - Settings for the
WinitPlugin
. - A resource mapping window entities to their
winit
-backendWindow
states.
Enums§
- Determines how frequently an
App
should update. - Wraps all
bevy_window
events 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_windows
system. - The
winit::event_loop::EventLoopProxy
with the specificwinit::event::Event::UserEvent
used in the [winit_runner
].