initial text impl

This commit is contained in:
2025-08-23 21:15:39 -04:00
parent abcbc267b5
commit 5ce6fca275
33 changed files with 530 additions and 117 deletions

21
src/layout/num.rs Normal file
View File

@@ -0,0 +1,21 @@
pub trait UiNum {
fn to_f32(self) -> f32;
}
impl UiNum for f32 {
fn to_f32(self) -> f32 {
self
}
}
impl UiNum for u32 {
fn to_f32(self) -> f32 {
self as f32
}
}
impl UiNum for i32 {
fn to_f32(self) -> f32 {
self as f32
}
}