Trait nannou::event::LoopEvent

source ·
pub trait LoopEvent: 'static + From<Update> {
    // Required method
    fn from_winit_event<'a, T>(_: &Event<'a, T>, _: &App) -> Option<Self>;
}
Expand description

Event types that are compatible with the nannou app loop.

Required Methods§

source

fn from_winit_event<'a, T>(_: &Event<'a, T>, _: &App) -> Option<Self>

Produce a loop event from the given winit event.

Object Safety§

This trait is not object safe.

Implementors§