FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InteractionTrackerInertiaRestingValue

    struct · ferroui-base · v0.5.0

    struct InteractionTrackerInertiaRestingValue
    

    An inertia modifier that changes where the inertia comes to rest (InteractionTrackerInertiaRestingValue): when Condition is true, the axis comes to rest at the value of RestingValue, evaluated once when the inertia starts.

    Both expressions read the tracker as this.Target (this.Target.NaturalRestingPosition.X, this.Target.Position, ...).

    View source

    Members

    create

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

    InteractionTrackerInertiaRestingValue.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

    resting_value

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

    The expression of the resting value of the axis: a scalar expression.

    Source

    set_resting_value

    fn set_resting_value(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.