Skip to main content

DesktopEventLoopBuilder

Type Alias DesktopEventLoopBuilder 

Source
pub type DesktopEventLoopBuilder = EventLoopBuilder<ShellUserEvent>;
Expand description

The winit event-loop builder this shell builds its loop from, named so a per-OS crate can take it in DesktopExtensions::on_event_loop_builder without spelling the shell’s own (doc-hidden) user-event type.

Windows’ menu accelerators are the motivating consumer: EventLoopBuilderExtWindows::with_msg_hook is implemented on exactly this type, and must be installed before the loop is built.

Aliased Type§

pub struct DesktopEventLoopBuilder { /* private fields */ }