pub struct FilmBuilder { /* private fields */ }Expand description
Puts a film together from what the app draws, keeping each different thing once.
Implementations§
Source§impl FilmBuilder
impl FilmBuilder
Sourcepub fn new(logical: Size, background: Color) -> Self
pub fn new(logical: Size, background: Color) -> Self
A film of an app of this logical size, over this color.
Sourcepub fn frame(&mut self, at_ms: u64, primitives: &[Primitive])
pub fn frame(&mut self, at_ms: u64, primitives: &[Primitive])
Adds what the app draws at at_ms. Nothing is added when it is the same
as the last time: that picture just stays longer on screen.
Trait Implementations§
Source§impl Clone for FilmBuilder
impl Clone for FilmBuilder
Source§fn clone(&self) -> FilmBuilder
fn clone(&self) -> FilmBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FilmBuilder
impl RefUnwindSafe for FilmBuilder
impl Send for FilmBuilder
impl Sync for FilmBuilder
impl Unpin for FilmBuilder
impl UnsafeUnpin for FilmBuilder
impl UnwindSafe for FilmBuilder
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