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]

Sets the window icon. On Windows and X11, this is typically the small icon in the top-left corner of the titlebar.

Platform-specific

This only has an effect on Windows and X11.

On Windows, this sets ICON_SMALL. The base size for a window icon is 16x16, but it's recommended to account for screen scaling and pick a multiple of that, i.e. 32x32.

X11 has no universal guidelines for icon sizes, so you're at the whims of the WM. That said, it's usually in the same ballpark as on Windows.

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

Sets a parent to the window to be created.

[src]

This sets ICON_BIG. A good ceiling here is 256x256.

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

Auto Trait Implementations

impl Send for WindowBuilder

impl !Sync for WindowBuilder