pub struct Slices { /* private fields */ }Expand description
What slices makes of a scene.
Implementations§
Source§impl Slices
impl Slices
pub fn parts(&self) -> &[Part]
Sourcepub fn composition_layers(
&self,
) -> impl Iterator<Item = (&Arc<dyn CompositionLayer>, &Placement)>
pub fn composition_layers( &self, ) -> impl Iterator<Item = (&Arc<dyn CompositionLayer>, &Placement)>
The composition layers the scene places, each with its placement, the bottom-most first.
Sourcepub fn paints(&self) -> bool
pub fn paints(&self) -> bool
Whether the scene paints anything besides its composition layers. One that does not changes no pixel of a buffer the composition layers show beneath.
Sourcepub fn picture_with_room(&self) -> Picture
pub fn picture_with_room(&self) -> Picture
The slices as one picture with room made at each composition layer between them: what a host draws that shows every composition layer beneath its one buffer. The room is the composition layer’s rectangle cleared under the transforms and clips above it, by the opacity above it, so the buffer keeps that share of what was painted beneath and the composition layer shows through the rest. It is cleared between slices, in no layer of theirs, so it reaches the buffer.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Slices
impl !UnwindSafe for Slices
impl Freeze for Slices
impl Send for Slices
impl Sync for Slices
impl Unpin for Slices
impl UnsafeUnpin for Slices
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