Enum layout_2013::display_list::items::DisplayItem
source · pub enum DisplayItem {
Show 15 variants
Rectangle(Box<CommonDisplayItem<RectangleDisplayItem>>),
Text(Box<CommonDisplayItem<TextDisplayItem, Vec<GlyphInstance>>>),
Image(Box<CommonDisplayItem<ImageDisplayItem>>),
RepeatingImage(Box<CommonDisplayItem<RepeatingImageDisplayItem>>),
Border(Box<CommonDisplayItem<BorderDisplayItem, Vec<GradientStop>>>),
Gradient(Box<CommonDisplayItem<GradientDisplayItem, Vec<GradientStop>>>),
RadialGradient(Box<CommonDisplayItem<RadialGradientDisplayItem, Vec<GradientStop>>>),
Line(Box<CommonDisplayItem<LineDisplayItem>>),
BoxShadow(Box<CommonDisplayItem<BoxShadowDisplayItem>>),
PushTextShadow(Box<PushTextShadowDisplayItem>),
PopAllTextShadows(Box<PopAllTextShadowsDisplayItem>),
Iframe(Box<IframeDisplayItem>),
PushStackingContext(Box<PushStackingContextItem>),
PopStackingContext(Box<PopStackingContextItem>),
DefineClipScrollNode(Box<DefineClipScrollNodeItem>),
}
Expand description
One drawing command in the list.
Variants§
Rectangle(Box<CommonDisplayItem<RectangleDisplayItem>>)
Text(Box<CommonDisplayItem<TextDisplayItem, Vec<GlyphInstance>>>)
Image(Box<CommonDisplayItem<ImageDisplayItem>>)
RepeatingImage(Box<CommonDisplayItem<RepeatingImageDisplayItem>>)
Border(Box<CommonDisplayItem<BorderDisplayItem, Vec<GradientStop>>>)
Gradient(Box<CommonDisplayItem<GradientDisplayItem, Vec<GradientStop>>>)
RadialGradient(Box<CommonDisplayItem<RadialGradientDisplayItem, Vec<GradientStop>>>)
Line(Box<CommonDisplayItem<LineDisplayItem>>)
BoxShadow(Box<CommonDisplayItem<BoxShadowDisplayItem>>)
PushTextShadow(Box<PushTextShadowDisplayItem>)
PopAllTextShadows(Box<PopAllTextShadowsDisplayItem>)
Iframe(Box<IframeDisplayItem>)
PushStackingContext(Box<PushStackingContextItem>)
PopStackingContext(Box<PopStackingContextItem>)
DefineClipScrollNode(Box<DefineClipScrollNodeItem>)
Implementations§
source§impl DisplayItem
impl DisplayItem
pub fn base(&self) -> &BaseDisplayItem
pub fn clipping_and_scrolling(&self) -> ClippingAndScrolling
pub fn stacking_context_id(&self) -> StackingContextId
pub fn section(&self) -> DisplayListSection
pub fn bounds(&self) -> LayoutRect
source§impl DisplayItem
impl DisplayItem
fn get_spatial_tree_item_key( &self, builder: &DisplayListBuilder, node_index: usize, ) -> SpatialTreeItemKey
fn convert_to_webrender( &mut self, state: &mut ClipScrollState<'_>, builder: &mut DisplayListBuilder, ) -> IsContentful
Trait Implementations§
source§impl Clone for DisplayItem
impl Clone for DisplayItem
source§fn clone(&self) -> DisplayItem
fn clone(&self) -> DisplayItem
Returns a copy 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 DisplayItem
impl Debug for DisplayItem
Auto Trait Implementations§
impl Freeze for DisplayItem
impl RefUnwindSafe for DisplayItem
impl Send for DisplayItem
impl Sync for DisplayItem
impl Unpin for DisplayItem
impl UnwindSafe for DisplayItem
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