KeyFrame
struct · ferroui-base · v0.5.0
struct KeyFrame
Stores data regarding a specific key point and value in an animation.
Members
TYPEto_refconstructnewwith_cuewith_key_timesetterskey_timeset_key_timecueset_cuekey_splineset_key_spline
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<KeyFrame>
Returns a strong reference to this object.
construct
fn construct() -> Self
Creates the class data; see FerroObject::construct.
new
fn new() -> Ref<Self>
with_cue
fn with_cue(cue: Cue, setters: impl IntoIterator<Item = Rc<dyn IAnimationSetter>>) -> Ref<Self>
Creates a key frame at cue with the given setters.
with_key_time
fn with_key_time(key_time: SignedDuration, setters: impl IntoIterator<Item = Rc<dyn IAnimationSetter>>) -> Ref<Self>
Creates a key frame at key_time with the given setters.
setters
fn setters(self: &Self) -> FerroList<Rc<dyn IAnimationSetter>>
The setters of the key frame: the values the animated properties have at its position.
key_time
fn key_time(self: &Self) -> SignedDuration
The key time of this key frame.
set_key_time
fn set_key_time(self: &Self, value: SignedDuration)
Sets the key time of this key frame. Panics when the cue has been set: only one of them can be.
cue
fn cue(self: &Self) -> Cue
The cue of this key frame.
set_cue
fn set_cue(self: &Self, value: Cue)
Sets the cue of this key frame. Panics when the key time has been set: only one of them can be.
key_spline
fn key_spline(self: &Self) -> Option<Ref<KeySpline>>
The key spline of this key frame.
set_key_spline
fn set_key_spline(self: &Self, value: Option<Ref<KeySpline>>)
Sets the key spline of this key frame. Panics when the spline is not valid; it is stored nevertheless.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<KeyFrame>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.