abuse macros..
This commit is contained in:
@@ -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