pub struct BoxFragmentData {
pub children: Vec<ChildFragment>,
pub padding: PhysicalInsets,
pub border: PhysicalInsets,
pub scrollable_overflow: Size,
pub is_stacking_context: bool,
pub overflow_x: OverflowClip,
pub overflow_y: OverflowClip,
}Expand description
Data specific to box fragments (containers).
Chrome equivalent: NGPhysicalBoxFragment fields.
Fields§
§children: Vec<ChildFragment>Positioned children within this box.
padding: PhysicalInsetsPadding box insets (for hit-testing and paint).
border: PhysicalInsetsBorder box insets (for border painting).
scrollable_overflow: SizeContent overflow extent (for scrolling). If larger than the box’s size, there’s scrollable overflow.
is_stacking_context: boolWhether this box establishes a new stacking context.
overflow_x: OverflowClipOverflow behavior on inline axis.
overflow_y: OverflowClipOverflow behavior on block axis.
Trait Implementations§
Source§impl Clone for BoxFragmentData
impl Clone for BoxFragmentData
Source§fn clone(&self) -> BoxFragmentData
fn clone(&self) -> BoxFragmentData
Returns a duplicate of the value. Read more
1.0.0 · 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 BoxFragmentData
impl Debug for BoxFragmentData
Source§impl Default for BoxFragmentData
impl Default for BoxFragmentData
Source§fn default() -> BoxFragmentData
fn default() -> BoxFragmentData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BoxFragmentData
impl !RefUnwindSafe for BoxFragmentData
impl Send for BoxFragmentData
impl Sync for BoxFragmentData
impl Unpin for BoxFragmentData
impl UnsafeUnpin for BoxFragmentData
impl !UnwindSafe for BoxFragmentData
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,
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