#[repr(C)]pub struct AnimationMetrics {
pub animations_enabled: bool,
pub animation_duration_factor: f32,
pub focus_indicator_behavior: FocusBehavior,
}Expand description
Animation-related preferences from the OS.
These control whether UI animations (transitions, fades, slides) should play and at what speed.
§Platform APIs
- Windows:
SystemParametersInfo(SPI_GETCLIENTAREAANIMATION),SPI_GETKEYBOARDCUES - macOS:
NSWorkspace.accessibilityDisplayShouldReduceMotion - Linux:
org.gnome.desktop.interface enable-animations, KDEAnimationDurationFactor
Fields§
§animations_enabled: boolGlobal enable/disable for UI animations.
animation_duration_factor: f32Animation speed factor (1.0 = normal, 0.5 = 2× faster, 2.0 = 2× slower). Primarily used in KDE.
focus_indicator_behavior: FocusBehaviorWhen to show focus rectangles / rings.
Trait Implementations§
Source§impl Clone for AnimationMetrics
impl Clone for AnimationMetrics
Source§fn clone(&self) -> AnimationMetrics
fn clone(&self) -> AnimationMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnimationMetrics
impl Debug for AnimationMetrics
Source§impl Default for AnimationMetrics
impl Default for AnimationMetrics
Source§impl PartialEq for AnimationMetrics
impl PartialEq for AnimationMetrics
impl Copy for AnimationMetrics
impl StructuralPartialEq for AnimationMetrics
Auto Trait Implementations§
impl Freeze for AnimationMetrics
impl RefUnwindSafe for AnimationMetrics
impl Send for AnimationMetrics
impl Sync for AnimationMetrics
impl Unpin for AnimationMetrics
impl UnsafeUnpin for AnimationMetrics
impl UnwindSafe for AnimationMetrics
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