nuit_core/compose/shape/primitive/
circle.rs

1use crate::{Shape, ShapeNode};
2
3/// A circular shape.
4#[derive(Debug, Clone, PartialEq, Eq)]
5pub struct Circle;
6
7impl Circle {
8    pub fn new() -> Self {
9        Self
10    }
11}
12
13impl Shape for Circle {
14    fn render(&self) -> ShapeNode {
15        ShapeNode::Circle {}
16    }
17}