FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Vector2NaturalMotionAnimation

    struct · ferroui-base · v0.5.0

    struct Vector2NaturalMotionAnimation
    

    A natural motion animation of Vector2 values (WinUI Vector2NaturalMotionAnimation): where the motion starts and ends, and its initial velocity.

    View source

    Members

    final_value

    fn final_value(self: &Self) -> Option<Vector2>
    

    The value the motion comes to rest at. When None, an implicit animation moves to the new value of the property (this.FinalValue), and an explicit one to the current value.

    Source

    set_final_value

    fn set_final_value(self: &Self, value: Option<Vector2>)
    

    Source

    initial_value

    fn initial_value(self: &Self) -> Option<Vector2>
    

    The value the motion starts from; the current value of the property when None.

    Source

    set_initial_value

    fn set_initial_value(self: &Self, value: Option<Vector2>)
    

    Source

    initial_velocity

    fn initial_velocity(self: &Self) -> Vector2
    

    The velocity the motion starts with, in units of the property per second.

    Source

    set_initial_velocity

    fn set_initial_velocity(self: &Self, value: Vector2)
    

    Source

    Trait implementations

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

    Availability

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