Trait WinitComponent

Source
pub trait WinitComponent {
    // Required method
    fn on_event(
        &mut self,
        event: &mut Event<'_, ()>,
        control_flow: &mut ControlFlow,
    );
}
Expand description

Trait for handling winit events on component.

Required Methods§

Source

fn on_event( &mut self, event: &mut Event<'_, ()>, control_flow: &mut ControlFlow, )

Implementors§