FluidMoveAnimation
struct · ferroui-xaml-behaviors-animations · v0.5.0
struct FluidMoveAnimation
Creates and runs the translation animation used for fluid layout movement.
Members
create
fn create(offset_x: f64, offset_y: f64, duration: SignedDuration) -> Ref<Animation>
Creates an animation from a previous layout offset (offset_x, offset_y) back to the
current position, over duration.
Panics
When duration is negative (the ArgumentOutOfRangeException of the reference).
run
fn run(target: &Control, offset_x: f64, offset_y: f64, duration: SignedDuration)
Creates and starts a fluid movement animation on a control: target is the target
control, offset_x and offset_y the previous offsets, duration the animation duration.
try_run
fn try_run(target: Option<&Control>, offset_x: f64, offset_y: f64, duration: SignedDuration) -> bool
Prepares a control's translation transform and starts a fluid movement animation. Returns
true when the target was prepared and the animation was started; otherwise, false.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.