pub trait WinitComponent { fn on_event( &mut self, event: &mut Event<'_, ()>, control_flow: &mut ControlFlow ); }
Trait for handling winit events on component.