summaryrefslogtreecommitdiffstats
path: root/native/src/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/renderer.rs')
-rw-r--r--native/src/renderer.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/native/src/renderer.rs b/native/src/renderer.rs
index 3b04a5c0..ca7ad5a2 100644
--- a/native/src/renderer.rs
+++ b/native/src/renderer.rs
@@ -61,11 +61,19 @@ pub trait Renderer: Sized {
fn fill_quad(&mut self, quad: Quad, background: impl Into<Background>);
}
+/// A polygon with four sides.
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Quad {
+ /// The bounds of the [`Quad`].
pub bounds: Rectangle,
+
+ /// The border radius of the [`Quad`].
pub border_radius: f32,
+
+ /// The border width of the [`Quad`].
pub border_width: f32,
+
+ /// The border color of the [`Quad`].
pub border_color: Color,
}