Module event_loop

Source
Expand description

The EventLoop struct and assorted supporting types, including ControlFlow.

If you want to send custom events to the event loop, use EventLoop::create_proxy to acquire an EventLoopProxy and call its wake_up method. Then during handling the wake up you can poll your event sources.

See the root-level documentation for information on how to create and use an event loop to handle events.

Structs§

AsyncRequestSerial
A unique identifier of the winit’s async request.
EventLoop
Provides a way to retrieve events from the system and from the windows that were registered to the events loop.
EventLoopBuilder
Object that allows building the event loop.
EventLoopProxy
Control the EventLoop, possibly from a different thread, without referencing it directly.
OwnedDisplayHandle
A proxy for the underlying display handle.

Enums§

ControlFlow
Set through ActiveEventLoop::set_control_flow().
DeviceEvents
Control when device events are captured.

Traits§

ActiveEventLoop