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]

Requests fullscreen mode.

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

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

Provides a resize callback that is called by Mac (and potentially other operating systems) during resize operations. This can be used to repaint during window resizing.

[src]

Builds the window.

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

[src]

Builds the window.

The context is build in a strict way. That means that if the backend couldn't give you what you requested, an Err will be returned.

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