abuse macros..
This commit is contained in:
1 parent
bae17235c6
commit
fabc7d0b90
12 files changed
+125
-45
No files matched your search
+1
-1
@@ -3,7 +3,7 @@ use crate::prelude::*;
|
||||
pub mod eventable {
|
||||
use super::*;
|
||||
widget_trait! {
|
||||
pub trait Eventable<State: HasEvents + 'static>;
|
||||
pub trait Eventable<State: HasEvents + StateLike<State> + 'static>;
|
||||
fn on<E: EventLike>(
|
||||
self,
|
||||
event: E,
|
||||
|
||||
Reference in new issue
Block a user