FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    StepEasingFunction

    struct · ferroui-base · v0.5.0

    struct StepEasingFunction
    

    A function that advances in steps (WinUI StepEasingFunction). The output is step / step_count for a step between initial_step and final_step.

    View source

    Members

    new

    fn new() -> StepEasingFunction
    

    A function with one step.

    Source

    with_step_count

    fn with_step_count(step_count: i32) -> StepEasingFunction
    

    A function with step_count steps.

    Source

    step_count

    fn step_count(self: &Self) -> i32
    

    The number of steps between the starting value and the end value.

    Source

    set_step_count

    fn set_step_count(self: &Self, value: i32)
    

    Source

    initial_step

    fn initial_step(self: &Self) -> i32
    

    The step to start at (0 by default).

    Source

    set_initial_step

    fn set_initial_step(self: &Self, value: i32)
    

    Source

    final_step

    fn final_step(self: &Self) -> i32
    

    The step to end at: the step count until it is set.

    Source

    set_final_step

    fn set_final_step(self: &Self, value: i32)
    

    Source

    is_initial_step_single_frame

    fn is_initial_step_single_frame(self: &Self) -> bool
    

    Whether the initial step lasts the smallest possible duration.

    Source

    set_is_initial_step_single_frame

    fn set_is_initial_step_single_frame(self: &Self, value: bool)
    

    Source

    is_final_step_single_frame

    fn is_final_step_single_frame(self: &Self) -> bool
    

    Whether the final step lasts the smallest possible duration.

    Source

    set_is_final_step_single_frame

    fn set_is_final_step_single_frame(self: &Self, value: bool)
    

    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
    • Default
    • IEasing
    • From<StepEasingFunction>

    Availability

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