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

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

The default application Event type.

Variants

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

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

Fields of 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 awakened.

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 Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Event
[src]

Formats the value using the given formatter. Read more

impl LoopEvent for Event
[src]

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

impl From<Update> for Event
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Event

impl Sync for Event