Module nannou::window

source ·
Expand description

The nannou Window API.

Create a new window via app.new_window(). This produces a Builder which can be used to build a Window.

Structs

  • A context for building a window.
  • Identifier of a window. Unique for each window.
  • Surface configuration for which nannou will provide a default if unspecified.
  • A nannou window.

Enums

Constants

  • The default dimensions used for a window in the case that none are specified.
  • The default minimum dimensions used for the surface

Type Aliases

  • A function for processing window closed events.
  • A function for processing dropped file events.
  • A function for processing window events.
  • A function for processing window focused events.
  • A function for processing hovered file cancelled events.
  • A function for processing hovered file events.
  • A function for processing key press events.
  • A function for processing key release events.
  • A function for processing mouse entered events.
  • A function for processing mouse exited events.
  • A function for processing mouse moved events.
  • A function for processing mouse pressed events.
  • A function for processing mouse released events.
  • A function for processing mouse wheel events.
  • A function for processing window moved events.
  • A function for processing raw winit window events.
  • The user function type for drawing their model to the surface of a single window.
  • A function for processing received characters.
  • A function for processing window resized events.
  • The same as ViewFn, but provides no user model to draw from.
  • A function for processing touch events.
  • A function for processing touchpad pressure events.
  • A function for processing window unfocused events.
  • The user function type for drawing their model to the surface of a single window.