ux-components 0.1.3

Backend agnostic GUI framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum AnimationBehavior {
    // The AnimationController will reduce its duration when AccessibilityFeatures.disableAnimations is true.
    Normal = 0,
    // The AnimationController will preserve its behavior.
    // This is the default for repeating animations in order to prevent them from flashing rapidly on the screen 
    // if the widget does not take the AccessibilityFeatures.disableAnimations flag into account.
    Preserve = 1,
}

impl Default for AnimationBehavior {
    fn default() -> Self {
        Self::Normal
    }
}