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]

[src]

Begin building a new OpenGL window.

[src]

Build the GL window with some custom window parameters.

[src]

Build the GL window with some custom OpenGL Context parameters.

[src]

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

[src]

Requests the window to be specific dimensions pixels.

[src]

Set the minimum dimensions in pixels for the window.

[src]

Set the maximum dimensions in pixels for the window.

[src]

Requests a specific title for the window.

[src]

Sets the window fullscreen state.

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

[src]

Requests maximized mode.

[src]

Sets whether the window will be initially hidden or visible.

[src]

Sets whether the background of the window should be transparent.

[src]

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

[src]

Enables multitouch.

[src]

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

[src]

Sets the desired OpenGL context profile.

[src]

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.

[src]

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

[src]

Requests that the window has vsync enabled.

By default, vsync is not enabled.

[src]

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.

[src]

Sets the number of bits in the depth buffer.

[src]

Sets the number of bits in the stencil buffer.

[src]

Sets the number of bits in the color buffer.

[src]

Request the backend to be stereoscopic.

[src]

Sets whether sRGB should be enabled on the window.

The default value is false.