Struct nannou::window::Builder[][src]

pub struct Builder<'a, 'b> { /* fields omitted */ }

For building an OpenGL window.

Window parameters can be specified via the window method.

OpenGL context parameters can be specified via the context method.

Methods

impl<'a, 'b> Builder<'a, 'b>
[src]

Begin building a new OpenGL window.

Build the GL window with some custom window parameters.

Build the GL window with some custom OpenGL Context parameters.

Builds the window, inserts it into the App's display map and returns the unique ID.

Requests the window to be specific dimensions pixels.

Set the minimum dimensions in pixels for the window.

Set the maximum dimensions in pixels for the window.

Requests a specific title for the window.

Sets the window fullscreen state.

None means a normal window, Some(MonitorId) means a fullscreen window on that specific monitor.

Requests maximized mode.

Sets whether the window will be initially hidden or visible.

Sets whether the background of the window should be transparent.

Sets whether the window should have a border, a title bar, etc.

Enables multitouch.

Sets how the backend should choose the OpenGL API and version.

Sets the desired OpenGL context profile.

Sets the debug flag for the OpenGL context.

The default value for this flag is cfg!(debug_assertions), which means that it's enabled when you run cargo build and disabled when you run cargo build --release.

Sets the robustness of the OpenGL context. See the docs of Robustness.

Requests that the window has vsync enabled.

By default, vsync is not enabled.

Sets the multisampling level to request.

A value of 0 indicates that multisampling must not be enabled.

Panics if samples is not a power of 2.

Sets the number of bits in the depth buffer.

Sets the number of bits in the stencil buffer.

Sets the number of bits in the color buffer.

Request the backend to be stereoscopic.

Sets whether sRGB should be enabled on the window.

The default value is false.

Auto Trait Implementations

impl<'a, 'b> !Send for Builder<'a, 'b>

impl<'a, 'b> !Sync for Builder<'a, 'b>