Struct sdl2::video::WindowBuilder

source ·
pub struct WindowBuilder { /* private fields */ }
Expand description

The type that allows you to build windows.

Implementations

Initializes a new WindowBuilder.

Builds the window.

Gets the underlying window flags.

Sets the underlying window flags. This will effectively undo any previous build operations, excluding window size and position.

Sets the window position.

Centers the window.

Sets the window to fullscreen.

Sets the window to fullscreen at the current desktop resolution.

Sets the window to be usable with an OpenGL context

Sets the window to be usable with a Vulkan instance

Hides the window.

Removes the window decoration.

Sets the window to be resizable.

Minimizes the window.

Maximizes the window.

Sets the window to have grabbed input focus.

Creates the window in high-DPI mode if supported (>= SDL 2.0.1)

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.