pub struct WindowFocused {
pub focused: bool,
}Expand description
Emitted by window backends when the OS reports the window gained or
lost keyboard focus. Backends also pause the redraw scheduler while
focused = false so unfocused windows stop polling at vsync.
Fields§
§focused: booltrue on focus-in, false on focus-out.
Trait Implementations§
Source§impl Clone for WindowFocused
impl Clone for WindowFocused
Source§fn clone(&self) -> WindowFocused
fn clone(&self) -> WindowFocused
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowFocused
impl Debug for WindowFocused
impl Copy for WindowFocused
impl Message for WindowFocused
Auto Trait Implementations§
impl Freeze for WindowFocused
impl RefUnwindSafe for WindowFocused
impl Send for WindowFocused
impl Sync for WindowFocused
impl Unpin for WindowFocused
impl UnsafeUnpin for WindowFocused
impl UnwindSafe for WindowFocused
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.