[][src]Trait nannou::event::LoopEvent

pub trait LoopEvent: 'static + From<Update> {
    fn from_winit_event<'a, T>(_: &Event<'a, T>, _: &App) -> Option<Self>;

Event types that are compatible with the nannou app loop.

Required methods

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

Produce a loop event from the given winit event.

Loading content...


impl LoopEvent for Event[src]

fn from_winit_event<'a, T>(event: &Event<'a, T>, app: &App) -> Option<Self>[src]

Convert the given winit::event::Event to a nannou Event.

Loading content...