use derive_default_constructor::DefaultConstructor;
use derive_setters::Setters;
#[derive(Debug, Clone, Copy, PartialEq, Setters, DefaultConstructor)]
pub struct Border<Color>
where
Color: Default + Copy + PartialEq + crate::style::KaolinColor<Color>,
{
pub width: f32,
pub color: Color,
}
impl<Color> Default for Border<Color>
where
Color: Default + Copy + PartialEq + crate::style::KaolinColor<Color>,
{
fn default() -> Self {
Border {
width: 0.0,
color: Color::default_foreground_color(),
}
}
}