cursor finally working properly and removed from render_text

This commit is contained in:
2025-09-15 20:30:26 -04:00
parent 9d659b6afd
commit 2700c31c13
15 changed files with 110 additions and 118 deletions

View File

@@ -212,6 +212,17 @@ pub struct RectPrimitive {
pub inner_radius: f32,
}
impl RectPrimitive {
pub fn color(color: Color<u8>) -> Self {
Self {
color,
radius: 0.0,
thickness: 0.0,
inner_radius: 0.0,
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct TexturePrimitive {