pub struct AnimationConfig {
pub enabled: bool,
pub duration_ms: f32,
}Expand description
Global animation policy (theme-level). Toggle-style widgets
(Switch, Checkbox, Radio) and other transitions read this: when
enabled is false everything snaps; otherwise they ease over
duration_ms. Set it once on the theme and every widget follows.
Fields§
§enabled: bool§duration_ms: f32Trait Implementations§
Source§impl Clone for AnimationConfig
impl Clone for AnimationConfig
Source§fn clone(&self) -> AnimationConfig
fn clone(&self) -> AnimationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnimationConfig
Source§impl Debug for AnimationConfig
impl Debug for AnimationConfig
Source§impl Default for AnimationConfig
impl Default for AnimationConfig
Source§impl PartialEq for AnimationConfig
impl PartialEq for AnimationConfig
impl StructuralPartialEq for AnimationConfig
Auto Trait Implementations§
impl Freeze for AnimationConfig
impl RefUnwindSafe for AnimationConfig
impl Send for AnimationConfig
impl Sync for AnimationConfig
impl Unpin for AnimationConfig
impl UnsafeUnpin for AnimationConfig
impl UnwindSafe for AnimationConfig
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