Struct web::MouseEventHandler [−][src]
pub struct MouseEventHandler { pub handler: Option<Box<dyn FnMut(MouseEvent) + 'static + Send + Sync, Global>>, }
Fields
handler: Option<Box<dyn FnMut(MouseEvent) + 'static + Send + Sync, Global>>
Implementations
impl MouseEventHandler
[src]
impl MouseEventHandler
[src]pub fn new(
f: impl Sync + FnMut(MouseEvent) + Send + 'static
) -> MouseEventHandler
[src]
f: impl Sync + FnMut(MouseEvent) + Send + 'static
) -> MouseEventHandler