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§
- 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§
- Creates new windows on the [
winit
] backend for each entity with a newly-addedWindow
component. - Gets the “best” videomode from a monitor.
- Gets the “best” video mode which fits the given dimensions.
- The default
App::runner
for theWinitPlugin
plugin. - 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 specific [winit::event::Event::UserEvent
] used in thewinit_runner
.