FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AnimatorBase

    struct · ferroui-base · v0.5.0

    struct AnimatorBase
    

    The state every animator has: its key frames and its target property.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    property

    fn property(self: &Self) -> Option<&'static FerroProperty>
    

    The target property.

    Source

    set_property

    fn set_property(self: &Self, value: Option<&'static FerroProperty>)
    

    Source

    count

    fn count(self: &Self) -> usize
    

    The number of key frames.

    Source

    get

    fn get(self: &Self, index: usize) -> Ref<AnimatorKeyFrame>
    

    The key frame at index. Panics when out of range.

    Source

    to_vec

    fn to_vec(self: &Self) -> Vec<Ref<AnimatorKeyFrame>>
    

    A copy of the key frames.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.