idek stuff like stack

This commit is contained in:
iris committed 2025-08-15 22:59:58 -04:00
1 parent a7dfacb83e
commit f4aef3a983
15 files changed
+138 -42

No files matched your search

+5 -1
View File
@@ -1,4 +1,4 @@
use crate::{Painter, UiColor, Widget, primitive::RoundedRectData};
use crate::{primitive::RoundedRectData, Painter, UiNum, UiColor, Widget};
#[derive(Clone, Copy)]
pub struct Rect {
@@ -21,6 +21,10 @@ impl Rect {
self.color = color;
self
}
pub fn radius(mut self, radius: impl UiNum) -> Self {
self.radius = radius.to_f32();
self
}
}
impl<Ctx> Widget<Ctx> for Rect {