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: StringExpand description
The window identifier.
url: WindowUrlExpand 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: f64Expand description
The window width.
height: f64Expand 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: boolExpand description
Whether the window is resizable or not.
title: StringExpand description
The window title.
fullscreen: boolExpand description
Whether the window starts as fullscreen or not.
transparent: boolExpand description
Whether the window is transparent or not.
maximized: boolExpand description
Whether the window is maximized or not.
visible: boolExpand description
Whether the window is visible or not.
decorations: boolExpand description
Whether the window should have borders and bars.
always_on_top: boolExpand description
Whether the window should always be on top of other windows.
Trait Implementations
impl Clone for WindowConfig[src]
impl Clone for WindowConfig[src]fn clone(&self) -> 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]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for WindowConfig[src]
impl Debug for WindowConfig[src]impl Default for WindowConfig[src]
impl Default for WindowConfig[src]impl<'de> Deserialize<'de> for WindowConfig[src]
impl<'de> Deserialize<'de> for WindowConfig[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [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]
impl PartialEq<WindowConfig> for WindowConfig[src]fn eq(&self, other: &WindowConfig) -> bool[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]
fn ne(&self, other: &WindowConfig) -> bool[src]This method tests for !=.
impl StructuralPartialEq for WindowConfig[src]
Auto Trait Implementations
impl RefUnwindSafe for WindowConfig
impl Send for WindowConfig
impl Sync for WindowConfig
impl Unpin for WindowConfig
impl UnwindSafe for WindowConfig
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
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]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,