Struct tauri::test::MockWindowBuilder
source · pub struct MockWindowBuilder {}
Available on crate feature
test
only.Trait Implementations§
source§impl Clone for MockWindowBuilder
impl Clone for MockWindowBuilder
source§fn clone(&self) -> MockWindowBuilder
fn clone(&self) -> MockWindowBuilder
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 MockWindowBuilder
impl Debug for MockWindowBuilder
source§impl WindowBuilder for MockWindowBuilder
impl WindowBuilder for MockWindowBuilder
source§fn with_config(config: WindowConfig) -> Self
fn with_config(config: WindowConfig) -> Self
Initializes a new webview builder from a
WindowConfig
Sets the menu for the window.
source§fn inner_size(self, min_width: f64, min_height: f64) -> Self
fn inner_size(self, min_width: f64, min_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 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, resizable: bool) -> Self
fn maximizable(self, resizable: 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, resizable: bool) -> Self
fn minimizable(self, resizable: bool) -> Self
Whether the window’s native minimize button is enabled or not. Read more
source§fn closable(self, resizable: bool) -> Self
fn closable(self, resizable: 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
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_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 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 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 parent_window(self, parent: HWND) -> Self
fn parent_window(self, parent: HWND) -> Self
Sets a parent to the window to be created. Read more
source§fn owner_window(self, owner: HWND) -> Self
fn owner_window(self, owner: HWND) -> Self
Set an owner to the window to be created. Read more
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.
Gets the window menu.
impl WindowBuilderBase for MockWindowBuilder
Auto Trait Implementations§
impl Freeze for MockWindowBuilder
impl RefUnwindSafe for MockWindowBuilder
impl Send for MockWindowBuilder
impl Sync for MockWindowBuilder
impl Unpin for MockWindowBuilder
impl UnwindSafe for MockWindowBuilder
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