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

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

Additional methods on EventLoop that are specific to Windows.

Required methods

pub 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.

pub 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.

pub 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

impl<T> EventLoopExtWindows for EventLoop<T>[src]

Loading content...