pub struct DisplayList { /* private fields */ }Expand description
DisplayList is an immutable recording of drawing commands.
Display lists are GPU-free, thread-safe, and nestable. Wrap a list in
Arc to share or replay it without copying its commands.
Implementations§
Source§impl DisplayList
impl DisplayList
Sourcepub fn id(&self) -> u64
pub fn id(&self) -> u64
id returns the process-unique identity of this live display list.
Deserialization creates a fresh identity; equal content does not imply equal identity.
Sourcepub fn bounds(&self) -> Option<Rect>
pub fn bounds(&self) -> Option<Rect>
bounds returns the union of visible draw bounds in list coordinates.
It returns None when the list draws nothing.
Sourcepub fn draw_count(&self) -> u32
pub fn draw_count(&self) -> u32
draw_count returns the number of draws, including nested lists.
Sourcepub fn depth_slots(&self) -> u32
pub fn depth_slots(&self) -> u32
depth_slots returns the ordering slots required to replay this list.
Sourcepub fn backdrop_reads(&self) -> u32
pub fn backdrop_reads(&self) -> u32
backdrop_reads counts backdrop reads when replayed, shared or not,
nested lists included.
Sourcepub fn backdrop_group(&self, key: u64) -> Option<&BackdropGroup>
pub fn backdrop_group(&self, key: u64) -> Option<&BackdropGroup>
backdrop_group returns the group recorded for key, if present.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DisplayList
impl !UnwindSafe for DisplayList
impl Freeze for DisplayList
impl Send for DisplayList
impl Sync for DisplayList
impl Unpin for DisplayList
impl UnsafeUnpin 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