AnimatorBase
struct · ferroui-base · v0.5.0
struct AnimatorBase
The state every animator has: its key frames and its target property.
Members
new
fn new() -> Self
property
fn property(self: &Self) -> Option<&'static FerroProperty>
The target property.
set_property
fn set_property(self: &Self, value: Option<&'static FerroProperty>)
count
fn count(self: &Self) -> usize
The number of key frames.
get
fn get(self: &Self, index: usize) -> Ref<AnimatorKeyFrame>
The key frame at index. Panics when out of range.
to_vec
fn to_vec(self: &Self) -> Vec<Ref<AnimatorKeyFrame>>
A copy of the key frames.
styled_property
fn styled_property<T: PropertyValue>(self: &Self) -> &'static StyledProperty<T>
The target property as a styled property of value type T. Panics
when the animator has no property or the property has another type.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.