Track
struct · ferroui-designer-animation · v0.5.0
struct Track
Members
targetpropertykeyframesbase_valuemutednewrecordremove_keyframemove_keyframeset_easingvalidate
target
target: u64
property
property: String
keyframes
keyframes: Vec<Keyframe>
base_value
base_value: Option<crate::AnimationValue>
The value before animation. Required when importing a runtime track with implicit endpoint values when FillMode does not hold that endpoint. Authored tracks without it hold their closest explicit keyframe.
muted
muted: bool
new
fn new(target: u64, property: impl Into<String>) -> Self
record
fn record(self: &mut Self, time: f64, value: AnimationValue) -> Result<()>
remove_keyframe
fn remove_keyframe(self: &mut Self, time: f64) -> Result<Keyframe>
move_keyframe
fn move_keyframe(self: &mut Self, from: f64, to: f64) -> Result<()>
set_easing
fn set_easing(self: &mut Self, time: f64, easing: Easing) -> Result<()>
validate
fn validate(self: &Self, duration: f64) -> Result<()>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneDebugStructuralPartialEqPartialEqSerializeDeserialize<'de>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.