pub struct DisplayList { /* private fields */ }Expand description
The display list — all draw commands for one paint pass.
Chrome equivalent: PaintArtifact (items + chunks).
Built by the painter, consumed by the renderer backend.
Implementations§
Source§impl DisplayList
impl DisplayList
Sourcepub fn builder() -> DisplayListBuilder
pub fn builder() -> DisplayListBuilder
Start building a new display list.
Sourcepub fn items(&self) -> &[DisplayItem]
pub fn items(&self) -> &[DisplayItem]
Get all display items in paint order.
Sourcepub fn chunks(&self) -> &[PaintChunk]
pub fn chunks(&self) -> &[PaintChunk]
Get all paint chunks.
Sourcepub fn iter(&self) -> impl Iterator<Item = &DisplayItem>
pub fn iter(&self) -> impl Iterator<Item = &DisplayItem>
Iterate over display items.
Sourcepub fn chunk_items(&self, chunk: &PaintChunk) -> &[DisplayItem]
pub fn chunk_items(&self, chunk: &PaintChunk) -> &[DisplayItem]
Get items for a specific chunk.
Trait Implementations§
Source§impl Clone for DisplayList
impl Clone for DisplayList
Source§fn clone(&self) -> DisplayList
fn clone(&self) -> DisplayList
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 DisplayList
impl Debug for DisplayList
Source§impl Default for DisplayList
impl Default for DisplayList
Source§fn default() -> DisplayList
fn default() -> DisplayList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DisplayList
impl !RefUnwindSafe for DisplayList
impl Send for DisplayList
impl Sync for DisplayList
impl Unpin for DisplayList
impl UnsafeUnpin for DisplayList
impl !UnwindSafe for DisplayList
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