Testing new structure
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
use osui::Node;
|
||||
use osui::{Context, Node};
|
||||
|
||||
fn app(cx: &mut Context) -> Node {
|
||||
// Hooks
|
||||
// Event handlers
|
||||
// cx.event(|e: &ClickEvent| {
|
||||
|
||||
// });
|
||||
|
||||
fn app() -> Node {
|
||||
Box::new(|renderer| {
|
||||
renderer.draw_text("Hello, World!", 0, 0).unwrap();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user