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

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

Additional methods on EventLoop that are specific to Windows.

Required methods

fn new_any_thread() -> Self where
    Self: Sized
[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.

fn new_dpi_unaware() -> Self where
    Self: Sized
[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.

fn new_dpi_unaware_any_thread() -> Self where
    Self: Sized
[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...