pub struct PrimitiveVisibility {
pub clip_chain: ClipChainInstance,
pub state: VisibilityState,
pub clip_task_index: ClipTaskIndex,
}Expand description
Information stored for a visible primitive about the visible rect and associated clip information.
Fields§
§clip_chain: ClipChainInstanceThe clip chain instance that was built for this primitive.
state: VisibilityStateCurrent visibility state of the primitive.
clip_task_index: ClipTaskIndexAn index into the clip task instances array in the primitive store. If this is ClipTaskIndex::INVALID, then the primitive has no clip mask. Otherwise, it may store the offset of the global clip mask task for this primitive, or the first of a list of clip task ids (one per segment).
Implementations§
Trait Implementations§
Source§impl Debug for PrimitiveVisibility
impl Debug for PrimitiveVisibility
Auto Trait Implementations§
impl Freeze for PrimitiveVisibility
impl RefUnwindSafe for PrimitiveVisibility
impl Send for PrimitiveVisibility
impl Sync for PrimitiveVisibility
impl Unpin for PrimitiveVisibility
impl UnwindSafe for PrimitiveVisibility
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