pub struct WindowOccluded {
pub occluded: bool,
}Expand description
Emitted by window backends when the OS reports the window was
occluded (covered by another window or moved off-screen) or revealed.
Backends pause the redraw scheduler while occluded = true to avoid
spending GPU on invisible frames.
Fields§
§occluded: booltrue when the window is fully occluded, false when visible.
Trait Implementations§
Source§impl Clone for WindowOccluded
impl Clone for WindowOccluded
Source§fn clone(&self) -> WindowOccluded
fn clone(&self) -> WindowOccluded
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 WindowOccluded
impl Debug for WindowOccluded
impl Copy for WindowOccluded
impl Message for WindowOccluded
Auto Trait Implementations§
impl Freeze for WindowOccluded
impl RefUnwindSafe for WindowOccluded
impl Send for WindowOccluded
impl Sync for WindowOccluded
impl Unpin for WindowOccluded
impl UnsafeUnpin for WindowOccluded
impl UnwindSafe for WindowOccluded
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.