Struct wry::application::event_loop::EventLoopWindowTarget
source · [−]pub struct EventLoopWindowTarget<T> where
T: 'static, { /* private fields */ }
Expand description
Target that associates windows with an EventLoop
.
This type exists to allow you to create new windows while Tao executes
your callback. EventLoop
will coerce into this type (impl<T> Deref for EventLoop<T>
), so functions that take this as a parameter can also take
&EventLoop
.
Implementations
sourceimpl<T> EventLoopWindowTarget<T>
impl<T> EventLoopWindowTarget<T>
sourcepub fn available_monitors(&self) -> impl Iterator<Item = MonitorHandle>
pub fn available_monitors(&self) -> impl Iterator<Item = MonitorHandle>
Returns the list of all the monitors available on the system.
sourcepub fn primary_monitor(&self) -> Option<MonitorHandle>
pub fn primary_monitor(&self) -> Option<MonitorHandle>
Returns the primary monitor of the system.
Returns None
if it can’t identify any monitor as a primary one.
Trait Implementations
sourceimpl<T> Clone for EventLoopWindowTarget<T> where
T: 'static + Clone,
impl<T> Clone for EventLoopWindowTarget<T> where
T: 'static + Clone,
sourcepub fn clone(&self) -> EventLoopWindowTarget<T>
pub fn clone(&self) -> EventLoopWindowTarget<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for EventLoopWindowTarget<T>
impl<T> !Send for EventLoopWindowTarget<T>
impl<T> !Sync for EventLoopWindowTarget<T>
impl<T> Unpin for EventLoopWindowTarget<T> where
T: Unpin,
impl<T> !UnwindSafe for EventLoopWindowTarget<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more