AnimatorKeyFrame
struct · ferroui-base · v0.5.0
struct AnimatorKeyFrame
Defines a key frame that is used for an animator.
Members
TYPEto_refvalue_propertynewanimator_typeanimator_factorycuekey_splinefill_beforeset_fill_beforefill_afterset_fill_afterpropertyvalueset_valuebind_setterget_typed_value
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<AnimatorKeyFrame>
Returns a strong reference to this object.
value_property
fn value_property() -> &'static DirectProperty<AnimatorKeyFrame, Option<BoxedValue>>
Defines the Value property.
new
fn new(animator_type: Option<TypeId>, animator_factory: Option<AnimatorFactory>, cue: Cue, key_spline: Option<Ref<KeySpline>>) -> Ref<Self>
Creates a key frame for the animator type animator_type, which
animator_factory creates.
animator_type
fn animator_type(self: &Self) -> Option<TypeId>
The type of the animator the key frame belongs to.
animator_factory
fn animator_factory(self: &Self) -> Option<AnimatorFactory>
The factory of the animator the key frame belongs to.
cue
fn cue(self: &Self) -> Cue
The position of the key frame within an iteration.
key_spline
fn key_spline(self: &Self) -> Option<&Ref<KeySpline>>
The spline applied to the progress towards this key frame.
fill_before
fn fill_before(self: &Self) -> bool
Whether the value of this key frame applies before its cue.
set_fill_before
fn set_fill_before(self: &Self, value: bool)
fill_after
fn fill_after(self: &Self) -> bool
Whether the value of this key frame applies after its cue.
set_fill_after
fn set_fill_after(self: &Self, value: bool)
property
fn property(self: &Self) -> Option<&'static FerroProperty>
The property the key frame animates.
value
fn value(self: &Self) -> Option<BoxedValue>
The value of the key frame: a value of exactly the animated
property's value type, or None.
set_value
fn set_value(self: &Self, value: Option<BoxedValue>)
bind_setter
fn bind_setter(self: &Self, setter: &dyn IAnimationSetter, target_control: &Animatable) -> Rc<dyn IDisposable>
Takes the property and the value from setter. When the setter's
value is a source of values, the key frame's value follows it for as
long as the returned handle is not disposed.
get_typed_value
fn get_typed_value<T: PropertyValue>(self: &Self) -> T
The value of the key frame as a T. Panics when the key frame has no
value or the value is of another type.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToStringErasedDestructorIntoEitherDerefUpcast<T>Upcast<AnimatorKeyFrame>StaticTypeObjectTypeSubclassable<T>FerroObjectImplDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.