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

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

The default application Event type.

Variants

WindowEvent

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>
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.

Suspended

The application has been suspended or resumed.

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
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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

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

impl<T> SetParameter for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,