pub struct StepEasingFunction { /* private fields */ }Expand description
A function that advances in steps (WinUI StepEasingFunction). The
output is step / step_count for a step between
initial_step and final_step.
Implementations§
Source§impl StepEasingFunction
impl StepEasingFunction
Sourcepub fn new() -> StepEasingFunction
pub fn new() -> StepEasingFunction
A function with one step.
Sourcepub fn with_step_count(step_count: i32) -> StepEasingFunction
pub fn with_step_count(step_count: i32) -> StepEasingFunction
A function with step_count steps.
Sourcepub fn step_count(&self) -> i32
pub fn step_count(&self) -> i32
The number of steps between the starting value and the end value.
pub fn set_step_count(&self, value: i32)
Sourcepub fn initial_step(&self) -> i32
pub fn initial_step(&self) -> i32
The step to start at (0 by default).
pub fn set_initial_step(&self, value: i32)
Sourcepub fn final_step(&self) -> i32
pub fn final_step(&self) -> i32
The step to end at: the step count until it is set.
pub fn set_final_step(&self, value: i32)
Sourcepub fn is_initial_step_single_frame(&self) -> bool
pub fn is_initial_step_single_frame(&self) -> bool
Whether the initial step lasts the smallest possible duration.
pub fn set_is_initial_step_single_frame(&self, value: bool)
Sourcepub fn is_final_step_single_frame(&self) -> bool
pub fn is_final_step_single_frame(&self) -> bool
Whether the final step lasts the smallest possible duration.
pub fn set_is_final_step_single_frame(&self, value: bool)
Trait Implementations§
Source§impl Default for StepEasingFunction
impl Default for StepEasingFunction
Source§impl From<StepEasingFunction> for Easing
impl From<StepEasingFunction> for Easing
Source§fn from(value: StepEasingFunction) -> Easing
fn from(value: StepEasingFunction) -> Easing
Converts to this type from the input type.
Source§impl IEasing for StepEasingFunction
impl IEasing for StepEasingFunction
A copy with the members the function has now.
Source§fn derives_from_easing(&self) -> bool
fn derives_from_easing(&self) -> bool
Whether the object is an easing class: upstream, a class deriving from
the
Easing base class, which code tests for with a cast. True for
every easing of this module and by default, because implementing this
trait is how an easing class is written here; an object that stands
for a bare implementation of the contract (not an easing class)
answers false.Auto Trait Implementations§
impl !Freeze for StepEasingFunction
impl !RefUnwindSafe for StepEasingFunction
impl !Sync for StepEasingFunction
impl Send for StepEasingFunction
impl Unpin for StepEasingFunction
impl UnsafeUnpin for StepEasingFunction
impl UnwindSafe for StepEasingFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more