ITransition
trait · ferroui-base · v0.5.0
trait ITransition: 'static
Interface for transition objects: animates a property from its old value to its new value whenever the value changes.
Members
apply
fn apply(self: &Self, control: &Animatable, clock: Rc<dyn IClock>, old_value: &BoxedValue, new_value: &BoxedValue) -> Rc<dyn IDisposable>
Applies the transition to the specified control: animates the
transition's property from old_value to new_value, which hold
exactly the value type of the property. Disposing the result ends the
transition.
property
fn property(self: &Self) -> &'static FerroProperty
The property to be animated. Panics when the transition has none.
set_property
fn set_property(self: &Self, value: &'static FerroProperty)
debug_display
fn debug_display(self: &Self) -> String
A description of the transition for diagnostics.
as_object
fn as_object(self: &Self) -> Option<crate::Ref<crate::FerroObject>>
The object of the object model that implements the contract, if one
does: the equivalent of is/as on the interface. Cast the object to
the class looked for (as_object()?.cast::<T>()).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.