[−][src]Trait winit::platform::windows::EventLoopExtWindows
Additional methods on EventLoop
that are specific to Windows.
Required methods
fn new_any_thread() -> Self where
Self: Sized,
Self: Sized,
Creates an event loop off of the main thread.
Window
caveats
Note that any Window
created on the new thread will be destroyed when the thread
terminates. Attempting to use a Window
after its parent thread terminates has
unspecified, although explicitly not undefined, behavior.
fn new_dpi_unaware() -> Self where
Self: Sized,
Self: Sized,
By default, winit on Windows will attempt to enable process-wide DPI awareness. If that's
undesirable, you can create an EventLoop
using this function instead.
fn new_dpi_unaware_any_thread() -> Self where
Self: Sized,
Self: Sized,
Creates a DPI-unaware event loop off of the main thread.
The Window
caveats in new_any_thread
also apply here.