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.
Members
newwith_step_countstep_countset_step_countinitial_stepset_initial_stepfinal_stepset_final_stepis_initial_step_single_frameset_is_initial_step_single_frameis_final_step_single_frameset_is_final_step_single_frame
new
fn new() -> StepEasingFunction
A function with one step.
with_step_count
fn with_step_count(step_count: i32) -> StepEasingFunction
A function with step_count steps.
step_count
fn step_count(self: &Self) -> i32
The number of steps between the starting value and the end value.
set_step_count
fn set_step_count(self: &Self, value: i32)
initial_step
fn initial_step(self: &Self) -> i32
The step to start at (0 by default).
set_initial_step
fn set_initial_step(self: &Self, value: i32)
final_step
fn final_step(self: &Self) -> i32
The step to end at: the step count until it is set.
set_final_step
fn set_final_step(self: &Self, value: i32)
is_initial_step_single_frame
fn is_initial_step_single_frame(self: &Self) -> bool
Whether the initial step lasts the smallest possible duration.
set_is_initial_step_single_frame
fn set_is_initial_step_single_frame(self: &Self, value: bool)
is_final_step_single_frame
fn is_final_step_single_frame(self: &Self) -> bool
Whether the final step lasts the smallest possible duration.
set_is_final_step_single_frame
fn set_is_final_step_single_frame(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefaultIEasingFrom<StepEasingFunction>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.