pub struct Motion {Show 29 fields
pub instant_ms: u64,
pub quick_ms: u64,
pub menu_ms: u64,
pub dialog_ms: u64,
pub resize_ms: u64,
pub entrance_ms: u64,
pub spin_ms: u64,
pub slow_ms: u64,
pub stagger_step_ms: u64,
pub pulse_ms: u64,
pub shimmer_ms: u64,
pub toast_ms: u64,
pub linear: [f32; 4],
pub standard: [f32; 4],
pub ease_in: [f32; 4],
pub ease_out: [f32; 4],
pub ease_in_out: [f32; 4],
pub emphasized: [f32; 4],
pub overshoot: [f32; 4],
pub exit: [f32; 4],
pub settle: [f32; 4],
pub snappy: SpringTokens,
pub smooth: SpringTokens,
pub bouncy: SpringTokens,
pub grab: SpringTokens,
pub press_offset: f32,
pub hover_lift: f32,
pub flick_velocity: f32,
pub rubber_band_tension: f32,
}Fields§
§instant_ms: u64§quick_ms: u64§dialog_ms: u64§resize_ms: u64§entrance_ms: u64§spin_ms: u64§slow_ms: u64§stagger_step_ms: u64The gap between one member of a staggered group and the next.
pulse_ms: u64§shimmer_ms: u64§toast_ms: u64§linear: [f32; 4]§standard: [f32; 4]§ease_in: [f32; 4]§ease_out: [f32; 4]§ease_in_out: [f32; 4]§emphasized: [f32; 4]§overshoot: [f32; 4]§exit: [f32; 4]§settle: [f32; 4]§snappy: SpringTokens§smooth: SpringTokens§bouncy: SpringTokens§grab: SpringTokens§press_offset: f32How far a pressed control sinks, in pixels.
hover_lift: f32How far a hovered control rises, in pixels.
flick_velocity: f32The speed past which a released gesture is a flick, in pixels a second.
rubber_band_tension: f32How much of an overscroll is shown at the boundary.
Trait Implementations§
impl Copy for Motion
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more