Trait b3_core::EventHandler

source ·
pub trait EventHandler {
    // Required method
    fn on_event(&mut self, app: &mut ActiveApplication, event: Event);
}
Expand description

Event handler.

Implement this trait to capture events.

Required Methods§

source

fn on_event(&mut self, app: &mut ActiveApplication, event: Event)

Override this method to capture events.

§Parameters:
  • app - Active application.
  • event - Event.

Implementors§

source§

impl<F> EventHandler for F
where F: FnMut(&mut ActiveApplication, Event),