Enum nannou::event::Event[][src]

pub enum Event {
    WindowEvent {
        id: Id,
        simple: Option<WindowEvent>,

The default application Event type.



A window-specific event has occurred for the window with the given Id.

The event is available as a WindowEvent, a more user-friendly form of winit::event::WindowEvent. Once winit#1387 is fixed, its “raw” form will also be available.

Fields of WindowEvent

id: Idsimple: Option<WindowEvent>

A device-specific event has occurred for the device with the given Id.


A timed update alongside the duration since the last update was emitted.

The first update’s delta will be the time since the model function returned.


The application has been suspended or resumed.


The application has been awakened.

Trait Implementations

impl Debug for Event[src]

impl From<Update> for Event[src]

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.

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,