pub struct IconAnimationSpec {
pub id: IconId,
pub target: Point,
pub duration: Duration,
pub curve_x: Curve,
pub curve_y: Curve,
pub effect: Option<Effect>,
}Expand description
Per-icon animation description.
X and Y are two independent axis animations that share the same
normalised time t = elapsed / duration ∈ [0, 1], so both axes tick in
lock-step but can use different curves.
Fields§
§id: IconId§target: Point§duration: Duration§curve_x: Curve§curve_y: Curve§effect: Option<Effect>Implementations§
Trait Implementations§
Source§impl Clone for IconAnimationSpec
impl Clone for IconAnimationSpec
Auto Trait Implementations§
impl Freeze for IconAnimationSpec
impl RefUnwindSafe for IconAnimationSpec
impl Send for IconAnimationSpec
impl Sync for IconAnimationSpec
impl Unpin for IconAnimationSpec
impl UnsafeUnpin for IconAnimationSpec
impl UnwindSafe for IconAnimationSpec
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