Struct layout_2020::display_list::BuilderForBoxFragment
source · struct BuilderForBoxFragment<'a> {
fragment: &'a BoxFragment,
containing_block: &'a PhysicalRect<Au>,
border_rect: LayoutRect,
margin_rect: OnceCell<LayoutRect>,
padding_rect: OnceCell<LayoutRect>,
content_rect: OnceCell<LayoutRect>,
border_radius: BorderRadius,
border_edge_clip_chain_id: RefCell<Option<ClipChainId>>,
padding_edge_clip_chain_id: RefCell<Option<ClipChainId>>,
content_edge_clip_chain_id: RefCell<Option<ClipChainId>>,
}
Fields§
§fragment: &'a BoxFragment
§containing_block: &'a PhysicalRect<Au>
§border_rect: LayoutRect
§margin_rect: OnceCell<LayoutRect>
§padding_rect: OnceCell<LayoutRect>
§content_rect: OnceCell<LayoutRect>
§border_radius: BorderRadius
§border_edge_clip_chain_id: RefCell<Option<ClipChainId>>
§padding_edge_clip_chain_id: RefCell<Option<ClipChainId>>
§content_edge_clip_chain_id: RefCell<Option<ClipChainId>>
Implementations§
source§impl<'a> BuilderForBoxFragment<'a>
impl<'a> BuilderForBoxFragment<'a>
fn new( fragment: &'a BoxFragment, containing_block: &'a PhysicalRect<Au>, ) -> Self
fn content_rect(&self) -> &LayoutRect
fn padding_rect(&self) -> &LayoutRect
fn margin_rect(&self) -> &LayoutRect
fn border_edge_clip( &self, builder: &mut DisplayListBuilder<'_>, force_clip_creation: bool, ) -> Option<ClipChainId>
fn padding_edge_clip( &self, builder: &mut DisplayListBuilder<'_>, force_clip_creation: bool, ) -> Option<ClipChainId>
fn content_edge_clip( &self, builder: &mut DisplayListBuilder<'_>, force_clip_creation: bool, ) -> Option<ClipChainId>
fn build( &mut self, builder: &mut DisplayListBuilder<'_>, section: StackingContextSection, )
fn build_hit_test(&self, builder: &mut DisplayListBuilder<'_>)
fn build_background_for_painter( &mut self, builder: &mut DisplayListBuilder<'_>, painter: &BackgroundPainter<'_>, )
fn build_background(&mut self, builder: &mut DisplayListBuilder<'_>)
fn build_background_image( &mut self, builder: &mut DisplayListBuilder<'_>, painter: &BackgroundPainter<'_>, )
fn build_border_side(&mut self, style: BorderStyle, color: Color) -> BorderSide
fn build_border(&mut self, builder: &mut DisplayListBuilder<'_>)
sourcefn build_border_image(
&self,
builder: &mut DisplayListBuilder<'_>,
common: &CommonItemProperties,
border: &Border,
border_widths: SideOffsets2D<f32, LayoutPixel>,
) -> bool
fn build_border_image( &self, builder: &mut DisplayListBuilder<'_>, common: &CommonItemProperties, border: &Border, border_widths: SideOffsets2D<f32, LayoutPixel>, ) -> bool
Add a display item for image borders if necessary.
fn build_outline(&mut self, builder: &mut DisplayListBuilder<'_>)
fn build_box_shadow(&self, builder: &mut DisplayListBuilder<'_>)
Auto Trait Implementations§
impl<'a> !Freeze for BuilderForBoxFragment<'a>
impl<'a> !RefUnwindSafe for BuilderForBoxFragment<'a>
impl<'a> Send for BuilderForBoxFragment<'a>
impl<'a> !Sync for BuilderForBoxFragment<'a>
impl<'a> Unpin for BuilderForBoxFragment<'a>
impl<'a> !UnwindSafe for BuilderForBoxFragment<'a>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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