Trait pilka_winit::winit::platform::windows::EventLoopExtWindows[][src]

pub trait EventLoopExtWindows {
    pub fn new_any_thread() -> Self;
pub fn new_dpi_unaware() -> Self;
pub fn new_dpi_unaware_any_thread() -> Self; }

Additional methods on EventLoop that are specific to Windows.

Required methods

pub fn new_any_thread() -> Self[src]

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.

pub fn new_dpi_unaware() -> Self[src]

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.

pub fn new_dpi_unaware_any_thread() -> Self[src]

Creates a DPI-unaware event loop off of the main thread.

The Window caveats in new_any_thread also apply here.

Loading content...

Implementors

Loading content...