[][src]Module nannou::window

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

Builder

A context for building a window.

Id

Identifier of a window. Unique for each window.

SwapchainBuilder

Swapchain building parameters for which Nannou will provide a default if unspecified.

SwapchainFramebuffers

A helper type for managing framebuffers associated with a window's swapchain images.

Window

A nannou window.

Enums

BuildError

The errors that might occur while constructing a Window.

Constants

DEFAULT_DIMENSIONS

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

Functions

preferred_present_mode_and_image_count

Determine the optimal present mode and image count for the given loop mode.

Type Definitions

ClosedFn

A function for processing window closed events.

DroppedFileFn

A function for processing dropped file events.

EventFn

A function for processing window events.

FocusedFn

A function for processing window focused events.

FramebufferBuildResult
HoveredFileCancelledFn

A function for processing hovered file cancelled events.

HoveredFileFn

A function for processing hovered file events.

KeyPressedFn

A function for processing key press events.

KeyReleasedFn

A function for processing key release events.

MouseEnteredFn

A function for processing mouse entered events.

MouseExitedFn

A function for processing mouse exited events.

MouseMovedFn

A function for processing mouse moved events.

MousePressedFn

A function for processing mouse pressed events.

MouseReleasedFn

A function for processing mouse released events.

MouseWheelFn

A function for processing mouse wheel events.

MovedFn

A function for processing window moved events.

RawEventFn

A function for processing raw winit window events.

RawViewFn

The user function type for drawing their model to the surface of a single window.

ResizedFn

A function for processing window resized events.

SketchFn

The same as ViewFn, but provides no user model to draw from.

Surface

The surface type associated with a winit window.

Swapchain

The swapchain type associated with a winit window surface.

SwapchainAcquireFuture

The future representing the moment that the GPU will have access to the swapchain image.

SwapchainFramebufferBuilder
SwapchainImage

The vulkan image type associated with a winit window surface.

TouchFn

A function for processing touch events.

TouchpadPressureFn

A function for processing touchpad pressure events.

UnfocusedFn

A function for processing window unfocused events.

ViewFn

The user function type for drawing their model to the surface of a single window.