pub struct WindowBuilderWrapper { /* private fields */ }
Trait Implementations§
Source§impl Clone for WindowBuilderWrapper
impl Clone for WindowBuilderWrapper
Source§fn clone(&self) -> WindowBuilderWrapper
fn clone(&self) -> WindowBuilderWrapper
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WindowBuilderWrapper
impl Debug for WindowBuilderWrapper
Source§impl Default for WindowBuilderWrapper
impl Default for WindowBuilderWrapper
Source§fn default() -> WindowBuilderWrapper
fn default() -> WindowBuilderWrapper
Returns the “default value” for a type. Read more
Source§impl WindowBuilder for WindowBuilderWrapper
impl WindowBuilder for WindowBuilderWrapper
Source§fn with_config(config: &WindowConfig) -> Self
fn with_config(config: &WindowConfig) -> Self
Initializes a new window builder from a
WindowConfig
Source§fn inner_size(self, width: f64, height: f64) -> Self
fn inner_size(self, width: f64, height: f64) -> Self
Window size.
Source§fn min_inner_size(self, min_width: f64, min_height: f64) -> Self
fn min_inner_size(self, min_width: f64, min_height: f64) -> Self
Window min inner size.
Source§fn max_inner_size(self, max_width: f64, max_height: f64) -> Self
fn max_inner_size(self, max_width: f64, max_height: f64) -> Self
Window max inner size.
Source§fn inner_size_constraints(self, constraints: WindowSizeConstraints) -> Self
fn inner_size_constraints(self, constraints: WindowSizeConstraints) -> Self
Window inner size constraints.
Source§fn resizable(self, resizable: bool) -> Self
fn resizable(self, resizable: bool) -> Self
Whether the window is resizable or not.
When resizable is set to false, native window’s maximize button is automatically disabled.
Source§fn maximizable(self, maximizable: bool) -> Self
fn maximizable(self, maximizable: bool) -> Self
Whether the window’s native maximize button is enabled or not.
If resizable is set to false, this setting is ignored. Read more
Source§fn minimizable(self, minimizable: bool) -> Self
fn minimizable(self, minimizable: bool) -> Self
Whether the window’s native minimize button is enabled or not. Read more
Source§fn closable(self, closable: bool) -> Self
fn closable(self, closable: bool) -> Self
Whether the window’s native close button is enabled or not. Read more
Source§fn fullscreen(self, fullscreen: bool) -> Self
fn fullscreen(self, fullscreen: bool) -> Self
Whether to start the window in fullscreen or not.
Source§fn maximized(self, maximized: bool) -> Self
fn maximized(self, maximized: bool) -> Self
Whether the window should be maximized upon creation.
Source§fn visible(self, visible: bool) -> Self
fn visible(self, visible: bool) -> Self
Whether the window should be immediately visible upon creation.
Source§fn transparent(self, transparent: bool) -> Self
fn transparent(self, transparent: bool) -> Self
Available on non-macOS or crate feature
macos-private-api
only.Whether the window should be transparent. If this is true, writing colors
with alpha values different than
1.0
will produce a transparent window.Source§fn decorations(self, decorations: bool) -> Self
fn decorations(self, decorations: bool) -> Self
Whether the window should have borders and bars.
Source§fn always_on_bottom(self, always_on_bottom: bool) -> Self
fn always_on_bottom(self, always_on_bottom: bool) -> Self
Whether the window should always be below other windows.
Source§fn always_on_top(self, always_on_top: bool) -> Self
fn always_on_top(self, always_on_top: bool) -> Self
Whether the window should always be on top of other windows.
Source§fn visible_on_all_workspaces(self, visible_on_all_workspaces: bool) -> Self
fn visible_on_all_workspaces(self, visible_on_all_workspaces: bool) -> Self
Whether the window should be visible on all workspaces or virtual desktops.
Source§fn content_protected(self, protected: bool) -> Self
fn content_protected(self, protected: bool) -> Self
Prevents the window contents from being captured by other apps.
Source§fn transient_for(self, parent: &impl IsA<Window>) -> Self
fn transient_for(self, parent: &impl IsA<Window>) -> Self
Sets the window to be created transient for parent. Read more
Source§fn background_color(self, color: Color) -> Self
fn background_color(self, color: Color) -> Self
Set the window background color.
Source§fn skip_taskbar(self, skip: bool) -> Self
fn skip_taskbar(self, skip: bool) -> Self
Sets whether or not the window icon should be added to the taskbar.
Source§fn theme(self, theme: Option<Theme>) -> Self
fn theme(self, theme: Option<Theme>) -> Self
Forces a theme or uses the system settings if None was provided.
fn get_theme(&self) -> Option<Theme>
Source§fn window_classname<S: Into<String>>(self, _window_classname: S) -> Self
fn window_classname<S: Into<String>>(self, _window_classname: S) -> Self
Sets custom name for Windows’ window class. Windows only.
impl Send for WindowBuilderWrapper
impl WindowBuilderBase for WindowBuilderWrapper
Auto Trait Implementations§
impl Freeze for WindowBuilderWrapper
impl RefUnwindSafe for WindowBuilderWrapper
impl Sync for WindowBuilderWrapper
impl Unpin for WindowBuilderWrapper
impl UnwindSafe for WindowBuilderWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)