Struct tauri_utils::config::WindowConfig
source · [−]pub struct WindowConfig {Show 22 fields
pub label: String,
pub url: WindowUrl,
pub file_drop_enabled: bool,
pub center: bool,
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 focus: bool,
pub transparent: bool,
pub maximized: bool,
pub visible: bool,
pub decorations: bool,
pub always_on_top: bool,
pub skip_taskbar: bool,
}Expand description
The window configuration object.
Fields
label: StringThe window identifier. It must be alphanumeric.
url: WindowUrlThe window webview URL.
file_drop_enabled: boolWhether the file drop is enabled or not on the webview. By default it is enabled.
Disabling it is required to use drag and drop on the frontend on Windows.
center: boolWhether or not the window starts centered or not.
x: Option<f64>The horizontal position of the window’s top left corner
y: Option<f64>The vertical position of the window’s top left corner
width: f64The window width.
height: f64The window height.
min_width: Option<f64>The min window width.
min_height: Option<f64>The min window height.
max_width: Option<f64>The max window width.
max_height: Option<f64>The max window height.
resizable: boolWhether the window is resizable or not.
title: StringThe window title.
fullscreen: boolWhether the window starts as fullscreen or not.
focus: boolWhether the window will be initially hidden or focused.
transparent: boolWhether the window is transparent or not.
Note that on macOS this requires the macos-private-api feature flag, enabled under tauri.conf.json > tauri > macosPrivateApi.
WARNING: Using private APIs on macOS prevents your application from being accepted for the App Store.
maximized: boolWhether the window is maximized or not.
visible: boolWhether the window is visible or not.
decorations: boolWhether the window should have borders and bars.
always_on_top: boolWhether the window should always be on top of other windows.
skip_taskbar: boolWhether or not the window icon should be added to the taskbar.
Trait Implementations
sourceimpl Clone for WindowConfig
impl Clone for WindowConfig
sourcefn clone(&self) -> WindowConfig
fn clone(&self) -> WindowConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for WindowConfig
impl Debug for WindowConfig
sourceimpl Default for WindowConfig
impl Default for WindowConfig
sourceimpl<'de> Deserialize<'de> for WindowConfig
impl<'de> Deserialize<'de> for WindowConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<WindowConfig> for WindowConfig
impl PartialEq<WindowConfig> for WindowConfig
sourcefn eq(&self, other: &WindowConfig) -> bool
fn eq(&self, other: &WindowConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &WindowConfig) -> bool
fn ne(&self, other: &WindowConfig) -> bool
This method tests for !=.
sourceimpl Serialize for WindowConfig
impl Serialize for WindowConfig
impl StructuralPartialEq for WindowConfig
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more