Trait tao::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; }
Expand description
Additional methods on EventLoop
that are specific to Windows.
Required methods
fn new_any_thread() -> Self where
Self: Sized,
[src]
Self: Sized,
Expand description
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]
Self: Sized,
Expand description
By default, tao 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]
Self: Sized,
Expand description
Creates a DPI-unaware event loop off of the main thread.
The Window
caveats in new_any_thread
also apply here.
Implementors
impl<T> EventLoopExtWindows for EventLoop<T>
[src]
impl<T> EventLoopExtWindows for EventLoop<T>
[src]