AnimationUtilities

Trait AnimationUtilities 

Source
pub trait AnimationUtilities {
Show 20 methods // Required methods fn animation(self, animation: Animation) -> Self; fn animation_with_duration( self, animation: Animation, duration_ms: u32, ) -> Self; fn animation_once(self, animation: Animation) -> Self; fn animation_repeat(self, animation: Animation, count: u32) -> Self; fn fade_in(self) -> Self; fn fade_out(self) -> Self; fn slide_in_left(self) -> Self; fn slide_in_right(self) -> Self; fn slide_in_top(self) -> Self; fn slide_in_bottom(self) -> Self; fn zoom_in(self) -> Self; fn zoom_out(self) -> Self; fn wobble(self) -> Self; fn shake(self) -> Self; fn flip(self) -> Self; fn heartbeat(self) -> Self; fn hover_animation(self, animation: Animation) -> Self; fn focus_animation(self, animation: Animation) -> Self; fn animation_pause(self) -> Self; fn animation_resume(self) -> Self;
}
Expand description

Trait for adding animation utilities to a class builder

Required Methods§

Source

fn animation(self, animation: Animation) -> Self

Source

fn animation_with_duration(self, animation: Animation, duration_ms: u32) -> Self

Add animation with custom duration

Source

fn animation_once(self, animation: Animation) -> Self

Add animation that runs only once

Source

fn animation_repeat(self, animation: Animation, count: u32) -> Self

Add animation that repeats a specific number of times

Source

fn fade_in(self) -> Self

Add fade in animation

Source

fn fade_out(self) -> Self

Add fade out animation

Source

fn slide_in_left(self) -> Self

Add slide in from left animation

Source

fn slide_in_right(self) -> Self

Add slide in from right animation

Source

fn slide_in_top(self) -> Self

Add slide in from top animation

Source

fn slide_in_bottom(self) -> Self

Add slide in from bottom animation

Source

fn zoom_in(self) -> Self

Add zoom in animation

Source

fn zoom_out(self) -> Self

Add zoom out animation

Source

fn wobble(self) -> Self

Add wobble animation

Source

fn shake(self) -> Self

Add shake animation

Source

fn flip(self) -> Self

Add flip animation

Source

fn heartbeat(self) -> Self

Add heartbeat animation

Source

fn hover_animation(self, animation: Animation) -> Self

Add hover animation (animation only on hover)

Source

fn focus_animation(self, animation: Animation) -> Self

Add focus animation (animation only on focus)

Source

fn animation_pause(self) -> Self

Pause animation

Source

fn animation_resume(self) -> Self

Resume animation

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§