Fonts and text

This commit is contained in:
Michael Mikovsky
2025-10-27 10:43:40 -06:00
parent d83e81fabc
commit b46f2683ff
12 changed files with 233 additions and 38 deletions
+2 -2
View File
@@ -11,10 +11,10 @@ impl VerticalLayout {
}
impl View for VerticalLayout {
fn draw(&self, renderer: &mut crate::render::Renderer, x: f32, y: f32, w: f32, h: f32) {
fn draw(&mut self, renderer: &mut crate::render::Renderer, x: f32, y: f32, w: f32, h: f32) {
let mut cur_y = y;
for view in &self.views {
for view in &mut self.views {
let (vx, vy) = view.bounds(w, h);
let vx = match vx {