FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TransitionObservableBase

    struct · ferroui-base · v0.5.0

    struct TransitionObservableBase<T: 'static, F: Fn(f64) -> T + 'static>
    

    Provides the base for observables implementing transitions: eases the progress and produces the value for it.

    View source

    Members

    new

    fn new(progress: Rc<dyn IObservable<f64>>, easing: Easing, produce_value: F) -> Rc<Self>
    

    Creates the observable. produce_value produces the value at the given eased progress.

    Source

    progress

    fn progress(self: &Self) -> &Rc<dyn IObservable<f64>>
    

    The progress the transition is driven by.

    Source

    Trait implementations

    Availability

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