Frontend structure

This commit is contained in:
2026-01-25 18:38:07 +01:00
parent 4afe1c24c2
commit f6a4bbd8ac
6 changed files with 76 additions and 12 deletions
+2 -8
View File
@@ -1,6 +1,6 @@
use std::sync::Arc;
use osui::prelude::*;
use osui::{prelude::*, rsx};
#[derive(Debug, Clone)]
pub struct KeyPress;
@@ -94,13 +94,7 @@ fn app(cx: &Arc<Context>) -> View {
);
}
Arc::new({
let cx = cx.clone();
move |ctx| {
cx.draw_children(ctx);
}
})
rsx! {}.view(cx.clone())
}
fn my_component(cx: &Arc<Context>) -> View {