pub struct Anim {
pub hover: f32,
pub focus: f32,
pub press: f32,
pub opacity: f32,
}Expand description
A widget’s animation progresses (0.0..=1.0).
Fields§
§hover: f32The hover transition’s progress.
focus: f32The focus transition’s progress.
press: f32The press (0 at rest), on its own clock: 200 ms against the 120 the other two
run on, because the reference gives the press highlight four times the fade it
gives hover and focus (ink_well.dart:995).
opacity: f32Opacity (1 at rest; started at 0 on mount for the fade-in).
Trait Implementations§
impl Copy for Anim
impl StructuralPartialEq for Anim
Auto Trait Implementations§
impl Freeze for Anim
impl RefUnwindSafe for Anim
impl Send for Anim
impl Sync for Anim
impl Unpin for Anim
impl UnsafeUnpin for Anim
impl UnwindSafe for Anim
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