FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BounceEasingFunction

    struct · ferroui-base · v0.5.0

    struct BounceEasingFunction
    

    A bouncing curve (WinUI BounceEasingFunction): bounces bounces, each bounciness times smaller than the one before.

    View source

    Members

    new

    fn new(mode: CompositionEasingFunctionMode, bounces: i32, bounciness: f32) -> BounceEasingFunction
    

    Source

    mode

    fn mode(self: &Self) -> CompositionEasingFunctionMode
    

    The mode of the curve.

    Source

    bounces

    fn bounces(self: &Self) -> i32
    

    The number of bounces.

    Source

    bounciness

    fn bounciness(self: &Self) -> f32
    

    The bounciness of the curve: a larger value makes the bounces shrink faster.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • IEasing
    • From<BounceEasingFunction>

    Availability

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