pub struct Overlay { /* private fields */ }Expand description
Helper shapes added to the scene now, invisible, animated by f from their added state, and
removed when the clip ends: e.g. circumscribe and flash.
Implementations§
Trait Implementations§
Source§impl Animation for Overlay
impl Animation for Overlay
Source§fn plan(&mut self, _: &SceneState)
fn plan(&mut self, _: &SceneState)
Called once when played, with the scene state at the start of the clip. Do the expensive
work (alignment, diffing) here.
Source§fn sample(&self, alpha: f32, state: &mut SceneState)
fn sample(&self, alpha: f32, state: &mut SceneState)
Writes the targets’ state at eased progress
alpha into state, which holds the scene
as it was at the start of the clip. Must be cheap and pure.Auto Trait Implementations§
impl !RefUnwindSafe for Overlay
impl !UnwindSafe for Overlay
impl Freeze for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnsafeUnpin for Overlay
Blanket Implementations§
Source§impl<A> AnimationExt for Awhere
A: Animation,
impl<A> AnimationExt for Awhere
A: Animation,
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