Enum webrender::visibility::VisibilityState
source · pub enum VisibilityState {
Unset,
Culled,
PassThrough,
Visible {
vis_flags: PrimitiveVisibilityFlags,
sub_slice_index: SubSliceIndex,
},
}
Expand description
Contains the current state of the primitive’s visibility.
Variants§
Unset
Uninitialized - this should never be encountered after prim reset
Culled
Culled for being off-screen, or not possible to render (e.g. missing image resource)
PassThrough
A picture that doesn’t have a surface - primitives are composed into the parent picture with a surface.
Visible
A primitive that has been found to be visible
Fields
§
vis_flags: PrimitiveVisibilityFlags
A set of flags that define how this primitive should be handled during batching of visible primitives.
§
sub_slice_index: SubSliceIndex
Sub-slice within the picture cache that this prim exists on
Trait Implementations§
source§impl Debug for VisibilityState
impl Debug for VisibilityState
Auto Trait Implementations§
impl Freeze for VisibilityState
impl RefUnwindSafe for VisibilityState
impl Send for VisibilityState
impl Sync for VisibilityState
impl Unpin for VisibilityState
impl UnwindSafe for VisibilityState
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more