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

pub trait LoopEvent: From<Update> {
    fn from_winit_event(_: Event, _: &App) -> Option<Self>;
}

Event types that are compatible with the nannou app loop.

Required methods

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

Produce a loop event from the given winit event.

Loading content...

Implementors

impl LoopEvent for Event[src]

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

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

Loading content...