Struct winit::WindowBuilder [] [src]

pub struct WindowBuilder {
    pub window: WindowAttributes,
    // some fields omitted
}

Object that allows you to build windows.

Fields

The attributes to use to create the window.

Methods

impl WindowBuilder
[src]

Initializes a new WindowBuilder with default values.

Requests the window to be of specific dimensions.

Width and height are in pixels.

Sets a minimum dimension size for the window

Width and height are in pixels.

Sets a maximum dimension size for the window

Width and height are in pixels.

Requests a specific title for the window.

Requests fullscreen mode.

If you don't specify dimensions for the window, it will match the monitor's.

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

Builds the window.

Error should be very rare and only occur in case of permission denied, incompatible system, out of memory, etc.

Trait Implementations

impl WindowBuilderExt for WindowBuilder
[src]

impl Clone for WindowBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more