FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InteractionTrackerInertiaModifier

    enum · ferroui-base · v0.5.0

    enum InteractionTrackerInertiaModifier
    

    A modifier of the inertia of one axis of an interaction tracker (InteractionTrackerInertiaModifier): what configure_position_x_inertia_modifiers and its siblings take.

    When the tracker enters inertia it evaluates the conditions of the modifiers of an axis in order; the first modifier whose condition is true applies to the axis for the whole inertia.

    Deviation (winui-composition.md): WinUI also has InteractionTrackerInertiaNaturalMotion, which runs a ScalarNaturalMotionAnimation; the natural motion animations are not ported yet, so that subclass is missing.

    View source

    Members

    RestingValue

    RestingValue(std::rc::Rc<InteractionTrackerInertiaRestingValue>)
    

    InteractionTrackerInertiaRestingValue: replaces the resting value.

    Source

    Motion

    Motion(std::rc::Rc<InteractionTrackerInertiaMotion>)
    

    InteractionTrackerInertiaMotion: replaces the motion.

    Source

    condition

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

    The condition of the modifier.

    Source

    Trait implementations

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

    Availability

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