FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Transition

    trait · ferroui-base · v0.5.0

    trait Transition<T: PropertyValue>: TransitionBaseImpl + Upcast<crate::animation::TransitionBase>
    

    Defines how a property of value type T should be animated using a transition.

    A transition class derives from TransitionBase, is declared with ferro_transition_class! and implements this trait.

    View source

    Members

    do_transition

    fn do_transition(this: &Self, progress: Rc<dyn IObservable<f64>>, old_value: T, new_value: T) -> Rc<dyn IObservable<T>>
    

    Creates the observable of the values of the transition from old_value to new_value, driven by progress (from 0 to 1).

    Source

    Trait implementations

    Availability

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