pub struct Motion {
pub pulse_period: Duration,
pub flash: Duration,
pub cursor_blink: Duration,
pub step: Duration,
pub slide: bool,
pub enter: Duration,
pub spinner: Duration,
pub shimmer: Duration,
pub hover_delay: Duration,
pub page: Duration,
}Expand description
Timing values from the theme’s [motion] table.
Fields§
§pulse_period: DurationOne full breath of pulse() paints.
flash: DurationHow long a pressed control flashes.
cursor_blink: DurationHalf period of the text cursor blink.
step: DurationTime between frames of cell-stepped animations such as the switch knob.
slide: boolWhether selected rows slide their leading text one cell to the right.
enter: DurationHow long layers such as dropdowns and dialogs take to appear.
spinner: DurationTime each spinner frame is shown.
shimmer: DurationOne pass of light across shimmering text.
hover_delay: DurationHow long the pointer rests on something before its tooltip appears. Optional in theme files; 450ms when missing.
page: DurationHow long a page change takes. Optional in theme files; twice enter when missing.
Implementations§
Trait Implementations§
impl Copy for Motion
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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