13 lines
317 B
Rust
13 lines
317 B
Rust
#[derive(Debug, Clone, Default)]
|
|
pub struct Animations {
|
|
pub enabled: Option<bool>,
|
|
pub duration_ms: Option<u32>,
|
|
pub style: Option<String>,
|
|
pub curve: Option<AnimationCurveConfig>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
pub enum AnimationCurveConfig {
|
|
Preset(String),
|
|
CubicBezier([f32; 4]),
|
|
}
|