pub struct Scene {
pub shadows: Vec<Shadow>,
pub quads: Vec<Quad>,
pub paths: Vec<PaintedPath>,
pub underlines: Vec<Underline>,
pub monochrome_sprites: Vec<MonochromeSprite>,
pub subpixel_sprites: Vec<SubpixelSprite>,
pub polychrome_sprites: Vec<PolychromeSprite>,
pub surfaces: Vec<PaintSurface>,
pub native_views: Vec<PaintNativeView>,
/* private fields */
}Fields§
§shadows: Vec<Shadow>§quads: Vec<Quad>§paths: Vec<PaintedPath>§underlines: Vec<Underline>§monochrome_sprites: Vec<MonochromeSprite>§subpixel_sprites: Vec<SubpixelSprite>§polychrome_sprites: Vec<PolychromeSprite>§surfaces: Vec<PaintSurface>§native_views: Vec<PaintNativeView>Implementations§
Source§impl Scene
impl Scene
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn push_layer(&mut self)
pub fn pop_layer(&mut self)
pub fn insert_primitive(&mut self, primitive: impl Into<Primitive>)
pub fn replay(&mut self, range: Range<usize>, prev_scene: &Scene)
pub fn finish(&mut self)
pub fn batches(&self) -> impl Iterator<Item = PrimitiveBatch> + '_
Trait Implementations§
Auto Trait Implementations§
impl !Send for Scene
impl !Sync for Scene
impl Forget for Scene
impl Freeze for Scenewhere
*const u8 is !null: Freeze,
PhantomData<PaintOperation>: Freeze,
PhantomData<Node<ScaledPixels>>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<NonNull<Node<ScaledPixels>>>: Freeze,
PhantomData<Layer>: Freeze,
PhantomData<Shadow>: Freeze,
PhantomData<Quad>: Freeze,
PhantomData<PaintedPath>: Freeze,
PhantomData<Underline>: Freeze,
PhantomData<MonochromeSprite>: Freeze,
PhantomData<SubpixelSprite>: Freeze,
PhantomData<PolychromeSprite>: Freeze,
PhantomData<PaintSurface>: Freeze,
PhantomData<PaintNativeView>: Freeze,
PhantomData<SpriteAnimation>: Freeze,
impl Move for Scene
impl RefUnwindSafe for Scene
impl Unpin for Scene
impl UnsafeUnpin for Scenewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PaintOperation>: UnsafeUnpin,
PhantomData<Node<ScaledPixels>>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<NonNull<Node<ScaledPixels>>>: UnsafeUnpin,
PhantomData<Layer>: UnsafeUnpin,
PhantomData<Shadow>: UnsafeUnpin,
PhantomData<Quad>: UnsafeUnpin,
PhantomData<PaintedPath>: UnsafeUnpin,
PhantomData<Underline>: UnsafeUnpin,
PhantomData<MonochromeSprite>: UnsafeUnpin,
PhantomData<SubpixelSprite>: UnsafeUnpin,
PhantomData<PolychromeSprite>: UnsafeUnpin,
PhantomData<PaintSurface>: UnsafeUnpin,
PhantomData<PaintNativeView>: UnsafeUnpin,
PhantomData<SpriteAnimation>: UnsafeUnpin,
impl UnwindSafe for Scenewhere
RawVecInner: UnwindSafe,
Rc<PathTiles>: UnwindSafe,
NonNull<Node<ScaledPixels>>: UnwindSafe,
NonNull<Range<usize>>: UnwindSafe,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().