mouse events

This commit is contained in:
2025-01-21 21:06:10 +01:00
parent 09d1ee21bf
commit 52f4dcfb2f
6 changed files with 72 additions and 104 deletions
+3 -5
View File
@@ -1,7 +1,7 @@
use osui::prelude::*;
fn main() -> osui::Result<()> {
let mut con = console::init(false)?;
fn main() -> Result<()> {
let mut con = init(true)?;
con.run(app())?;
@@ -10,8 +10,6 @@ fn main() -> osui::Result<()> {
pub fn app() -> Element {
rsx! {
btn { on_click: Box::new(|| {
panic!("Testing");
}), "Click me" }
btn { "Click me" } (x-center y-center)
}
}