FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InteractionTrackerInertiaMotion

    struct · ferroui-base · v0.5.0

    struct InteractionTrackerInertiaMotion
    

    An inertia modifier that replaces the motion of the inertia (InteractionTrackerInertiaMotion): when Condition is true, the value of the axis is the value of Motion, evaluated every frame of the inertia, until it stops changing.

    Deviation (winui-composition.md): WinUI does not document what the value of Motion is; here it is the value of the axis for the frame (a position for the position axes, a scale for the scale axis).

    View source

    Members

    create

    fn create(compositor: &Rc<Compositor>) -> Rc<InteractionTrackerInertiaMotion>
    

    InteractionTrackerInertiaMotion.Create(compositor).

    Source

    compositor

    fn compositor(self: &Self) -> &Rc<Compositor>
    

    The compositor of the modifier.

    Source

    condition

    fn condition(self: &Self) -> Option<Rc<ExpressionAnimation>>
    

    The expression that decides whether the modifier applies: a boolean expression.

    Source

    set_condition

    fn set_condition(self: &Self, value: Option<Rc<ExpressionAnimation>>)
    

    Source

    motion

    fn motion(self: &Self) -> Option<Rc<ExpressionAnimation>>
    

    The expression of the motion: a scalar expression.

    Source

    set_motion

    fn set_motion(self: &Self, value: Option<Rc<ExpressionAnimation>>)
    

    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

    Availability

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