TransitionBase
struct · ferroui-base · v0.5.0
struct TransitionBase
Defines how a property should be animated using a transition.
Members
TYPEto_refapplyvalue_typeduration_propertydelay_propertyeasing_propertyproperty_propertyconstructdurationset_durationdelayset_delayeasingset_easingpropertyset_propertydebug_display
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TransitionBase>
Returns a strong reference to this object.
apply
fn apply(self: &Self, control: &Animatable, clock: Rc<dyn IClock>, old_value: &BoxedValue, new_value: &BoxedValue) -> Rc<dyn IDisposable>
Applies the transition to control: animates the transition's
property from old_value to new_value.
value_type
fn value_type(self: &Self) -> (TypeId, &'static str)
The type of the values the transition animates, which the value type of its property has to match.
duration_property
fn duration_property() -> &'static DirectProperty<TransitionBase, SignedDuration>
Defines the Duration property.
delay_property
fn delay_property() -> &'static DirectProperty<TransitionBase, SignedDuration>
Defines the Delay property.
easing_property
fn easing_property() -> &'static DirectProperty<TransitionBase, Easing>
Defines the Easing property.
property_property
fn property_property() -> &'static DirectProperty<TransitionBase, Option<&'static FerroProperty>>
Defines the Property property.
construct
fn construct() -> Self
Creates the class data; see FerroObject::construct.
duration
fn duration(self: &Self) -> SignedDuration
The duration of the transition.
set_duration
fn set_duration(self: &Self, value: SignedDuration)
delay
fn delay(self: &Self) -> SignedDuration
The delay before the transition starts.
set_delay
fn set_delay(self: &Self, value: SignedDuration)
easing
fn easing(self: &Self) -> Easing
The easing class to be used.
set_easing
fn set_easing(self: &Self, value: impl Into<Easing>)
property
fn property(self: &Self) -> Option<&'static FerroProperty>
The property to be animated.
set_property
fn set_property(self: &Self, value: Option<&'static FerroProperty>)
debug_display
fn debug_display(self: &Self) -> String
A description of the transition for diagnostics.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTransitionBaseImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<TransitionBase>StaticTypeObjectTypeSubclassable<T>FerroObjectImplTransitionBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.