Testing new structure

This commit is contained in:
2025-11-20 17:10:12 +01:00
parent e4110976cd
commit ff351caee0
2 changed files with 43 additions and 8 deletions
+10 -5
View File
@@ -1,11 +1,16 @@
use osui::{Context, Node};
use osui::{Context, Event, Node};
pub struct ClickEvent;
impl Event for ClickEvent {
fn as_any(&self) -> &dyn std::any::Any {
self
}
}
fn app(cx: &mut Context) -> Node {
// Hooks
// Event handlers
// cx.event(|e: &ClickEvent| {
// });
cx.event(|_: &ClickEvent| {});
Box::new(|renderer| {
renderer.draw_text("Hello, World!", 0, 0).unwrap();