Struct nannou::app::App [] [src]

pub struct App { /* fields omitted */ }

An App represents the entire context of your application.

The App owns and manages:

  • the event loop (used to drive the application forward)
  • all OpenGL windows (for graphics and user input, can be referenced via IDs).

Methods

impl App
[src]

DEFAULT_EXIT_ON_ESCAPE: bool = true

[src]

Begin building a new OpenGL window.

[src]

The number of windows currently in the application.

[src]

Return whether or not the App is currently set to exit when the Escape key is pressed.

[src]

Specify whether or not the app should close when the Escape key is pressed.

By default this is true.

[src]

Returns the App's current LoopMode.

[src]

Sets the loop mode of the App.

Note: Setting the loop mode will not affect anything until the end of the current loop iteration. The behaviour of a single loop iteration is described under each of the LoopMode variants.

[src]

A handle to the App that can be shared across threads.

This can be used to "wake up" the App's inner event loop.