testing for event handling

This commit is contained in:
2025-06-24 15:25:25 -05:00
parent 6c0dde8e85
commit 08f1d3364b
5 changed files with 16 additions and 67 deletions
+1 -10
View File
@@ -1,12 +1,3 @@
use osui::{
text::{text, DisplayComponent},
Element,
};
fn main() {
let mut e = text("Hello, World!");
if let Some(comp) = e.get_component::<DisplayComponent>() {
println!("Ok: {:?}", comp);
}
}