Struct tauri::test::MockWindowBuilder

source ·
pub struct MockWindowBuilder {}
Available on crate feature test only.

Trait Implementations§

source§

impl Clone for MockWindowBuilder

source§

fn clone(&self) -> MockWindowBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MockWindowBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl WindowBuilder for MockWindowBuilder

source§

fn new() -> Self

Initializes a new window attributes builder.
source§

fn with_config(config: WindowConfig) -> Self

Initializes a new webview builder from a WindowConfig
source§

fn menu(self, menu: Menu) -> Self

Sets the menu for the window.
source§

fn center(self) -> Self

Show window in the center of the screen.
source§

fn position(self, x: f64, y: f64) -> Self

The initial position of the window’s.
source§

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

Window min inner size.
source§

fn max_inner_size(self, max_width: f64, max_height: f64) -> Self

Window max inner size.
source§

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

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

Whether the window’s native minimize button is enabled or not. Read more
source§

fn closable(self, resizable: bool) -> Self

Whether the window’s native close button is enabled or not. Read more
source§

fn title<S: Into<String>>(self, title: S) -> Self

The title of the window in the title bar.
source§

fn fullscreen(self, fullscreen: bool) -> Self

Whether to start the window in fullscreen or not.
source§

fn focused(self, focused: bool) -> Self

Whether the window will be initially focused or not.
source§

fn maximized(self, maximized: bool) -> Self

Whether the window should be maximized upon creation.
source§

fn visible(self, visible: bool) -> Self

Whether the window should be immediately visible upon creation.
source§

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

Whether the window should have borders and bars.
source§

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

Prevents the window contents from being captured by other apps.
source§

fn icon(self, icon: Icon) -> Result<Self>

Sets the window icon.
source§

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

Sets a parent to the window to be created. Read more
source§

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

Forces a theme or uses the system settings if None was provided.
source§

fn has_icon(&self) -> bool

Whether the icon was set or not.
source§

fn get_menu(&self) -> Option<&Menu>

Gets the window menu.
source§

impl WindowBuilderBase for MockWindowBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> UserEvent for T
where T: Debug + Clone + Send + 'static,