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

pub enum Event {
    WindowEvent(WindowIdWindowEvent),
    DeviceEvent(DeviceId, DeviceEvent),
    Update(Update),
    Awakened,
    Suspended(bool),
}

Variants

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

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Event
[src]

[src]

Formats the value using the given formatter.

impl From<Update> for Event
[src]

[src]

Performs the conversion.

impl From<Event> for Event
[src]

[src]

Performs the conversion.