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]

[src]

Initializes a new WindowBuilder with default values.

[src]

Requests the window to be of specific dimensions.

Width and height are in pixels.

[src]

Sets a minimum dimension size for the window

Width and height are in pixels.

[src]

Sets a maximum dimension size for the window

Width and height are in pixels.

[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]

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]

[src]

[src]

impl Clone for WindowBuilder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more