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

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

The default application Event type.


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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Event

Formats the value using the given formatter. Read more

impl LoopEvent for Event

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

impl From<Update> for Event

Performs the conversion.

Auto Trait Implementations

impl Send for Event

impl Sync for Event