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.
pub trait WinitComponent {
// Required method
fn on_event(
&mut self,
event: &mut Event<'_, ()>,
control_flow: &mut ControlFlow,
);
}
Trait for handling winit events on component.