FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    from_value

    from_value: T
    

    Source

    to_value

    to_value: T
    

    Source

    default_value

    default_value: T
    

    Source

    animation

    animation: Option<super::Animation>
    

    Source

    new

    fn new(default_value: T) -> Self
    

    Source

    is_completed

    fn is_completed(self: &Self) -> bool
    

    Source

    repeat_count

    fn repeat_count(self: &Self) -> u32
    

    Source

    set_movement

    fn set_movement(self: &mut Self, value: T, now_ms: f64)
    

    Source

    get_movement

    fn get_movement(self: &mut Self, now_ms: f64) -> T
    

    Source

    finish

    fn finish(self: &mut Self)
    

    Source

    copy_from

    fn copy_from(self: &mut Self, source: &Self)
    

    Source

    Trait implementations

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

    Availability

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