FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InterpolatingAnimator

    trait · ferroui-base · v0.5.0

    trait InterpolatingAnimator: 'static
    

    The base of user-defined animators: an interpolation function for a value type.

    View source

    Members

    Value

    type Value: PropertyValue + Default
    

    The type of the values the animator interpolates, which is the value type of the properties it animates.

    Source

    interpolate

    fn interpolate(self: &Self, progress: f64, old_value: &<Self as >::Value, new_value: &<Self as >::Value) -> <Self as >::Value
    

    Interpolates between two values using the specified progress.

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.