Large structural changes

This commit is contained in:
2024-11-05 17:26:19 +01:00
parent 196c6094d2
commit 4f9a143008
10 changed files with 672 additions and 361 deletions
+7 -6
View File
@@ -1,10 +1,11 @@
use osui::{rsx, ui::*, App};
use osui::{rsx, ui::*};
fn main() {
let element = rsx! {
button { "Hello, World!" }
};
osui::app::run(&mut app());
}
let mut app_screen = App::from(element);
app_screen.run();
fn app() -> Box<dyn osui::Element> {
rsx! {
text { "Hello, World!" }
}
}