test
This commit is contained in:
+4
-2
@@ -5,7 +5,7 @@ use std::{
|
|||||||
|
|
||||||
pub mod text;
|
pub mod text;
|
||||||
|
|
||||||
pub trait Event: Any {}
|
pub trait Event {}
|
||||||
|
|
||||||
pub struct Screen {
|
pub struct Screen {
|
||||||
element: Box<dyn Element>,
|
element: Box<dyn Element>,
|
||||||
@@ -13,7 +13,9 @@ pub struct Screen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Screen {
|
impl Screen {
|
||||||
|
pub fn on_event<E: Event, F: FnMut(E)>(&mut self, f: F) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Element {
|
pub trait Element {
|
||||||
|
|||||||
Reference in New Issue
Block a user