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.
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).
Trait implementations
Transition<bool>Transition<BoxShadows>Transition<Option<Rc<dyn IBrush>>>Transition<Color>Transition<CornerRadius>Transition<f64>Transition<Option<Rc<dyn IEffect>>>Transition<f32>Transition<i32>Transition<Point>Transition<RelativePoint>Transition<Size>Transition<Thickness>Transition<Option<Rc<dyn ITransform>>>Transition<Vector>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.