Struct glutin::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.
sourcepub fn set_device_event_filter(&self, _filter: DeviceEventFilter)
pub fn set_device_event_filter(&self, _filter: DeviceEventFilter)
Change DeviceEvent
filter mode.
Since the DeviceEvent
capture can lead to high CPU usage for unfocused windows, winit
will ignore them by default for unfocused windows on Linux/BSD. This method allows changing
this filter at runtime to explicitly capture them again.
Platform-specific
- ** Linux / macOS / iOS / Android / Web**: Unsupported.
Trait Implementations
sourceimpl<T> Clone for EventLoopWindowTarget<T>where
T: 'static + Clone,
impl<T> Clone for EventLoopWindowTarget<T>where
T: 'static + Clone,
sourcefn clone(&self) -> EventLoopWindowTarget<T>
fn clone(&self) -> EventLoopWindowTarget<T>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl<T> Debug for EventLoopWindowTarget<T>
impl<T> Debug for EventLoopWindowTarget<T>
sourceimpl<T> EventLoopWindowTargetExtMacOS for EventLoopWindowTarget<T>
impl<T> EventLoopWindowTargetExtMacOS for EventLoopWindowTarget<T>
sourcefn hide_application(&self)
fn hide_application(&self)
sourcefn show_application(&self)
fn show_application(&self)
sourcefn hide_other_applications(&self)
fn hide_other_applications(&self)
sourcefn set_activation_policy_at_runtime(&self, activation_policy: ActivationPolicy)
fn set_activation_policy_at_runtime(&self, activation_policy: ActivationPolicy)
NSApplicationActivationPolicyRegular
by default. Read moresourceimpl<T> HasRawDisplayHandle for EventLoopWindowTarget<T>
impl<T> HasRawDisplayHandle for EventLoopWindowTarget<T>
sourcefn raw_display_handle(&self) -> RawDisplayHandle
fn raw_display_handle(&self) -> RawDisplayHandle
Returns a [raw_window_handle::RawDisplayHandle
] for the event loop.