pub struct StackingContext {
pub children: ThinVec<HoistedPaintChild>,
pub negative_z_count: u32,
/* private fields */
}Fields§
§children: ThinVec<HoistedPaintChild>§negative_z_count: u32The number of hoisted point children with negative z_index
Implementations§
Source§impl StackingContext
impl StackingContext
Sourcepub fn hoisted_content_bbox(
&self,
tree: &NodeTree,
sc_root_id: NodeId,
scale: f64,
) -> Rect<f32>
pub fn hoisted_content_bbox( &self, tree: &NodeTree, sc_root_id: NodeId, scale: f64, ) -> Rect<f32>
Bounding box (in CSS pixels relative to the stacking-context root
sc_root_id, unscrolled) of the scrollable overflow of all hoisted
children, including their transforms. scale is the device pixel
ratio scrollable_overflow is stored in. Computed at most once per
geometry generation.
pub fn sort(&mut self)
pub fn neg_z_range(&self) -> Range<usize> ⓘ
pub fn pos_z_range(&self) -> Range<usize> ⓘ
pub fn neg_z_hoisted_children( &self, ) -> impl ExactSizeIterator<Item = &HoistedPaintChild> + DoubleEndedIterator
pub fn pos_z_hoisted_children( &self, ) -> impl ExactSizeIterator<Item = &HoistedPaintChild> + DoubleEndedIterator
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for StackingContext
impl !RefUnwindSafe for StackingContext
impl !Sync for StackingContext
impl Send for StackingContext
impl Unpin for StackingContext
impl UnsafeUnpin for StackingContext
impl UnwindSafe for StackingContext
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert