Skip to main content

ferroui_base/animation/
fill_mode.rs

1/// Determines which of an animation's values stay applied outside of its
2/// active period.
3#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum FillMode {
6    /// Nothing is applied before the animation starts or after it ends.
7    #[default]
8    None = 0,
9    /// The last value is retained after the animation ends.
10    Forward = 1,
11    /// The first value is applied during the initial delay.
12    Backward = 2,
13    /// Both of the above.
14    Both = 3,
15}