OnEvent

Trait OnEvent 

Source
pub trait OnEvent {
    // Required method
    fn on_event(&mut self, e: &Event);
}
Expand description

OnEvent trait called to receive an event

Required Methods§

Source

fn on_event(&mut self, e: &Event)

Implementors§

Source§

impl<'a, Pixel> OnEvent for Window<'a, Pixel>