use crate::{position::Rect, style::Style};

#[derive(Debug, Clone)]
pub struct Circle {
    pub pos: Rect,
    pub radius: f32,
    pub style: Option<Style>,
}
crate::impl_pos!(Circle);
crate::impl_style!(Circle);
impl Circle {
    /// Default circle.
    pub const fn new() -> Circle {
        Circle {
            pos: Rect::new(),
            radius: 0.0,
            style: None,
        }
    }

    /// Create circle with radius.
    pub const fn with_radius(mut self, radius: f32) -> Self {
        self.radius = radius;
        self
    }
}
