Struct tauri_utils::config::WindowConfig[][src]

pub struct WindowConfig {
Show fields pub label: String, pub url: WindowUrl, pub x: Option<f64>, pub y: Option<f64>, pub width: f64, pub height: f64, pub min_width: Option<f64>, pub min_height: Option<f64>, pub max_width: Option<f64>, pub max_height: Option<f64>, pub resizable: bool, pub title: String, pub fullscreen: bool, pub transparent: bool, pub maximized: bool, pub visible: bool, pub decorations: bool, pub always_on_top: bool,
}
Expand description

The window configuration object.

Fields

label: String
Expand description

The window identifier.

url: WindowUrl
Expand description

The window webview URL.

x: Option<f64>
Expand description

The horizontal position of the window’s top left corner

y: Option<f64>
Expand description

The vertical position of the window’s top left corner

width: f64
Expand description

The window width.

height: f64
Expand description

The window height.

min_width: Option<f64>
Expand description

The min window width.

min_height: Option<f64>
Expand description

The min window height.

max_width: Option<f64>
Expand description

The max window width.

max_height: Option<f64>
Expand description

The max window height.

resizable: bool
Expand description

Whether the window is resizable or not.

title: String
Expand description

The window title.

fullscreen: bool
Expand description

Whether the window starts as fullscreen or not.

transparent: bool
Expand description

Whether the window is transparent or not.

maximized: bool
Expand description

Whether the window is maximized or not.

visible: bool
Expand description

Whether the window is visible or not.

decorations: bool
Expand description

Whether the window should have borders and bars.

always_on_top: bool
Expand description

Whether the window should always be on top of other windows.

Trait Implementations

impl Clone for WindowConfig[src]

fn clone(&self) -> WindowConfig[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for WindowConfig[src]

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

Formats the value using the given formatter. Read more

impl Default for WindowConfig[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<'de> Deserialize<'de> for WindowConfig[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl PartialEq<WindowConfig> for WindowConfig[src]

fn eq(&self, other: &WindowConfig) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &WindowConfig) -> bool[src]

This method tests for !=.

impl StructuralPartialEq for WindowConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]