Struct winit::window::WindowBuilder [−][src]
pub struct WindowBuilder {
pub window: WindowAttributes,
// some fields omitted
}
Expand description
Object that allows you to build windows.
Fields
window: WindowAttributes
The attributes to use to create the window.
Implementations
Requests the window to be of specific dimensions.
See Window::set_inner_size
for details.
Sets a minimum dimension size for the window.
See Window::set_min_inner_size
for details.
Sets a maximum dimension size for the window.
See Window::set_max_inner_size
for details.
Sets a desired initial position for the window.
See WindowAttributes::position
for details.
Sets whether the window is resizable or not.
See Window::set_resizable
for details.
Requests a specific title for the window.
See Window::set_title
for details.
Sets the window fullscreen state.
See Window::set_fullscreen
for details.
Requests maximized mode.
See Window::set_maximized
for details.
Sets whether the window will be initially hidden or visible.
See Window::set_visible
for details.
Sets whether the background of the window should be transparent.
Sets whether the window should have a border, a title bar, etc.
See Window::set_decorations
for details.
Sets whether or not the window will always be on top of other windows.
See Window::set_always_on_top
for details.
Sets the window icon.
See Window::set_window_icon
for details.
Builds the window.
Possible causes of error include denied permission, incompatible system, and lack of memory.
Platform-specific behavior:
- Web: The window is created but not inserted into the web page automatically. Please see the web platform module for more information.
Trait Implementations
Returns the “default value” for a type. Read more
Build window with WM_CLASS
hint; defaults to the name of the binary. Only relevant on X11.
Build window with override-redirect flag; defaults to false. Only relevant on X11.
Build window with _NET_WM_WINDOW_TYPE
hints; defaults to Normal
. Only relevant on X11.
Build window with _GTK_THEME_VARIANT
hint set to the specified value. Currently only relevant on X11.
Build window with resize increment hint. Only implemented on X11.
Build window with base size hint. Only implemented on X11.
Build window with a given application ID. It should match the .desktop
file distributed with
your program. Only relevant on Wayland. Read more
Auto Trait Implementations
impl !RefUnwindSafe for WindowBuilder
impl !Send for WindowBuilder
impl !Sync for WindowBuilder
impl Unpin for WindowBuilder
impl !UnwindSafe for WindowBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more