RotateAnimation
struct · ferroui-xaml-behaviors-animations · v0.5.0
struct RotateAnimation
Provides rotation animation helpers using composition animations.
Members
set_rotate_clockwiseset_rotate_counter_clockwiseset_rotate_inset_rotate_outset_flipset_swingset_custom_rotate
set_rotate_clockwise
fn set_rotate_clockwise(element: &Control, milliseconds: f64)
Applies a clockwise rotation animation to the element when loaded (0 to 360 degrees),
over milliseconds.
set_rotate_counter_clockwise
fn set_rotate_counter_clockwise(element: &Control, milliseconds: f64)
Applies a counter-clockwise rotation animation to the element when loaded (0 to -360
degrees), over milliseconds.
set_rotate_in
fn set_rotate_in(element: &Control, milliseconds: f64)
Applies a rotate-in animation to the element when loaded (from -180 to 0 degrees), over
milliseconds.
set_rotate_out
fn set_rotate_out(element: &Control, milliseconds: f64)
Applies a rotate-out animation to the element when loaded (from 0 to 180 degrees), over
milliseconds.
set_flip
fn set_flip(element: &Control, milliseconds: f64)
Applies a flip animation to the element when loaded (180 degree rotation), over
milliseconds.
set_swing
fn set_swing(element: &Control, milliseconds: f64)
Applies a swing animation to the element when loaded (back and forth rotation), over
milliseconds.
set_custom_rotate
fn set_custom_rotate(element: &Control, from_angle: f64, to_angle: f64, milliseconds: f64)
Applies a custom rotation animation to the element when loaded: from from_angle to
to_angle degrees, 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.