iced-yoda/core/src/shadow.rs

15 lines
295 B
Rust
Raw Normal View History

2023-11-08 19:12:53 -08:00
use crate::{Color, Vector};
/// A shadow.
#[derive(Debug, Clone, Copy, PartialEq, Default)]
2023-11-08 19:12:53 -08:00
pub struct Shadow {
/// The color of the shadow.
2023-11-08 19:12:53 -08:00
pub color: Color,
/// The offset of the shadow.
2023-11-08 19:12:53 -08:00
pub offset: Vector,
/// The blur radius of the shadow.
2023-11-08 19:12:53 -08:00
pub blur_radius: f32,
}