MotionProperty
struct · ferroui-livecharts · v0.5.0
struct MotionProperty<T: Interpolate>
A retargetable value on a host-owned animation timeline.
The timeline has no global clock, platform timer or thread dependency. A compositor/dispatcher supplies one timestamp to every property in a frame.
Members
from_valueto_valuedefault_valueanimationnewis_completedrepeat_countset_movementget_movementfinishcopy_from
from_value
from_value: T
to_value
to_value: T
default_value
default_value: T
animation
animation: Option<super::Animation>
new
fn new(default_value: T) -> Self
is_completed
fn is_completed(self: &Self) -> bool
repeat_count
fn repeat_count(self: &Self) -> u32
set_movement
fn set_movement(self: &mut Self, value: T, now_ms: f64)
get_movement
fn get_movement(self: &mut Self, now_ms: f64) -> T
finish
fn finish(self: &mut Self)
copy_from
fn copy_from(self: &mut Self, source: &Self)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherCloneDebugDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.