testing for event handling
This commit is contained in:
+1
-10
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user