Skip to main content

AnimateCtx

Trait AnimateCtx 

Source
pub trait AnimateCtx: FrameClock {
    // Required method
    fn animate_after<T>(
        &mut self,
        motion: &mut Motion<T>,
        target: T,
        delay: f64,
        spec: AnimationSpec,
    ) -> bool
       where T: Interpolate + Copy + PartialEq;

    // Provided method
    fn animate<T>(
        &mut self,
        motion: &mut Motion<T>,
        target: T,
        spec: AnimationSpec,
    ) -> bool
       where T: Interpolate + Copy + PartialEq { ... }
}
Expand description

A context that can start Motion transitions: event, measure, and arrange contexts.

Required Methods§

Source

fn animate_after<T>( &mut self, motion: &mut Motion<T>, target: T, delay: f64, spec: AnimationSpec, ) -> bool
where T: Interpolate + Copy + PartialEq,

Provided Methods§

Source

fn animate<T>( &mut self, motion: &mut Motion<T>, target: T, spec: AnimationSpec, ) -> bool
where T: Interpolate + Copy + PartialEq,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§