Trait mina::KeyframeBuilder

source ·
pub trait KeyframeBuilder {
    type Data: Clone + Debug;

    // Required methods
    fn build(&self) -> Keyframe<Self::Data>;
    fn easing(self, easing: Easing) -> Self;
}
Expand description

Builder interface for creating a typed Keyframe.

Implementations will normally expose additional builder-type methods to configure the animation property values; this trait only encapsulates the behavior common to all keyframes.

Required Associated Types§

source

type Data: Clone + Debug

Data type (animation properties) that the keyframe will hold.

Required Methods§

source

fn build(&self) -> Keyframe<Self::Data>

Creates a Keyframe from this builder.

source

fn easing(self, easing: Easing) -> Self

Configures the easing that will be used starting from the beginning of this keyframe, and applying to all subsequent keyframes until another one specifies its own easing.

Implementors§