mirror of
https://github.com/Astatin3/IntroToWebAuthoring.git
synced 2026-06-09 00:28:00 -06:00
Fonts and text
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user