Skip to main content

AnimationController

Trait AnimationController 

Source
pub trait AnimationController:
    Send
    + Sync
    + Any {
    // Provided methods
    fn on_start(&self, animation: &Animation) { ... }
    fn on_stop(&self, animation: &Animation) { ... }
}
Expand description

Animations controller.

See VARS.with_animation_controller for more details.

Provided Methods§

Source

fn on_start(&self, animation: &Animation)

Called for each animation that starts in the controller context.

Note that this handler itself is not called inside the controller context.

Source

fn on_stop(&self, animation: &Animation)

Called for each animation that ends in the controller context.

Note that this handler itself is not called inside the controller context.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AnimationController for ()

Implementors§