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

pub enum Event {
    WindowEvent {
        id: Id,
        raw: WindowEvent,
        simple: Option<WindowEvent>,
    },
    DeviceEvent(DeviceIdDeviceEvent),
    Update(Update),
    Awakened,
    Suspended(bool),
}

The default application Event type.

Variants

WindowEvent

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

This event is portrayed both in its "raw" form (the winit::WindowEvent) and its simplified, new-user-friendly form SimpleWindowEvent.

Fields of WindowEvent

id: Idraw: WindowEventsimple: Option<WindowEvent>
DeviceEvent(DeviceIdDeviceEvent)

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

Update(Update)

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.

Awakened

The application has been awakened.

Suspended(bool)

The application has been suspended or resumed.

The parameter is true if app was suspended, and false if it has been resumed.

Trait Implementations

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.

impl Clone for Event[src]

impl From<Update> for Event[src]

impl Debug for Event[src]

Auto Trait Implementations

impl Send for Event

impl Unpin for Event

impl Sync for Event

impl UnwindSafe for Event

impl RefUnwindSafe for Event

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> Content for T[src]

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

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

impl<T> SetParameter for T

impl<T> SetParameter for T

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