Struct libhelium::builders::SpringAnimationBuilder
source · pub struct SpringAnimationBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct SpringAnimation
objects.
Implementations§
source§impl SpringAnimationBuilder
impl SpringAnimationBuilder
pub fn epsilon(self, epsilon: f64) -> Self
pub fn estimated_duration(self, estimated_duration: u32) -> Self
pub fn initial_velocity(self, initial_velocity: f64) -> Self
pub fn latch(self, latch: bool) -> Self
pub fn spring_params(self, spring_params: &impl IsA<SpringParams>) -> Self
pub fn value_from(self, value_from: f64) -> Self
pub fn value_to(self, value_to: f64) -> Self
pub fn velocity(self, velocity: f64) -> Self
pub fn state(self, state: AnimationState) -> Self
pub fn target(self, target: &impl IsA<AnimationTarget>) -> Self
pub fn widget(self, widget: &impl IsA<Widget>) -> Self
pub fn avalue(self, avalue: f64) -> Self
sourcepub fn build(self) -> SpringAnimation
pub fn build(self) -> SpringAnimation
Build the SpringAnimation
.
Auto Trait Implementations§
impl Freeze for SpringAnimationBuilder
impl RefUnwindSafe for SpringAnimationBuilder
impl !Send for SpringAnimationBuilder
impl !Sync for SpringAnimationBuilder
impl Unpin for SpringAnimationBuilder
impl UnwindSafe for SpringAnimationBuilder
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