ScaleAnimation
struct · ferroui-xaml-behaviors-animations · v0.5.0
struct ScaleAnimation
Provides scale animation helpers using composition animations.
Members
set_scale_in
fn set_scale_in(element: &Control, milliseconds: f64)
Applies a scale-in animation to the element when loaded (from 0 to 1), over
milliseconds.
set_scale_out
fn set_scale_out(element: &Control, milliseconds: f64)
Applies a scale-out animation to the element when loaded (from 1 to 0), over
milliseconds.
set_zoom_in
fn set_zoom_in(element: &Control, milliseconds: f64)
Applies a zoom-in animation to the element when loaded (from 1.5 to 1), over
milliseconds.
set_zoom_out
fn set_zoom_out(element: &Control, milliseconds: f64)
Applies a zoom-out animation to the element when loaded (from 1 to 1.5), over
milliseconds.
set_bounce
fn set_bounce(element: &Control, milliseconds: f64)
Applies a bounce animation to the element when loaded, over milliseconds.
set_custom_scale
fn set_custom_scale(element: &Control, from_scale_x: f64, from_scale_y: f64, to_scale_x: f64, to_scale_y: f64, milliseconds: f64)
Applies a custom scale animation to the element when loaded: from (from_scale_x,
from_scale_y) to (to_scale_x, to_scale_y), over milliseconds.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.