FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IEasing

    trait · ferroui-base · v0.5.0

    trait IEasing: std::any::Any
    

    Defines the interface for easing classes.

    The Any supertrait lets optional transition adapters recognize a physical easing and retain its parameters across interruptions, while ordinary easings keep the normalized-progress contract. Every existing 'static easing also implements Any.

    View source

    Members

    ease

    fn ease(self: &Self, progress: f64) -> f64
    

    Returns the transformed value for a linear progress.

    Source

    to_shared

    fn to_shared(self: &Self) -> std::sync::Arc<SharedEasing>
    

    The easing as the render thread evaluates it: a key frame animation of the compositor runs there. An easing without parameters returns itself; one with parameters returns a copy with the parameters it has now.

    Source

    derives_from_easing

    fn derives_from_easing(self: &Self) -> bool
    

    Whether the object is an easing class: upstream, a class deriving from the Easing base class, which code tests for with a cast. True for every easing of this module and by default, because implementing this trait is how an easing class is written here; an object that stands for a bare implementation of the contract (not an easing class) answers false.

    Source

    Trait implementations

    Availability

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