WindowOptions

external interface WindowOptions(source)

Configuration for the window to create.

Since

1.0.0

Inheritors

Properties

Link copied to clipboard
abstract var allowLinkPreview: Boolean?

on macOS and iOS there is a link preview on long pressing links, this is enabled by default. see https://docs.rs/objc2-web-kit/latest/objc2_web_kit/struct.WKWebView.html#method.allowsLinkPreview

Link copied to clipboard
abstract var alwaysOnBottom: Boolean?

Whether the window should always be below other windows.

Link copied to clipboard
abstract var alwaysOnTop: Boolean?

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

Link copied to clipboard
abstract var backgroundColor: Color?

Set the window background color.

Link copied to clipboard

Change the default background throttling behaviour.

Link copied to clipboard
abstract var center: Boolean?

Show window in the center of the screen..

Link copied to clipboard
abstract var closable: Boolean?

Whether the window's native close button is enabled or not. Defaults to true.

Link copied to clipboard
abstract var contentProtected: Boolean?

Prevents the window contents from being captured by other apps.

Link copied to clipboard
abstract var decorations: Boolean?

Whether the window should have borders and bars or not.

Link copied to clipboard

Allows disabling the input accessory view on iOS.

Link copied to clipboard
abstract var focus: Boolean?

Whether the window will be initially focused or not.

Link copied to clipboard
abstract var focusable: Boolean?

Whether the window can be focused or not.

Link copied to clipboard
abstract var fullscreen: Boolean?

Whether the window is in fullscreen mode or not.

Link copied to clipboard
abstract var height: Double?

The initial height.

Link copied to clipboard
abstract var hiddenTitle: Boolean?

If true, sets the window title to be hidden on macOS.

Link copied to clipboard

Whether we should disable JavaScript code execution on the webview or not.

Link copied to clipboard
abstract var maxHeight: Double?

The maximum height. Only applies if maxWidth is also set.

Link copied to clipboard
abstract var maximizable: Boolean?

Whether the window's native maximize button is enabled or not. Defaults to true.

Link copied to clipboard
abstract var maximized: Boolean?

Whether the window should be maximized upon creation or not.

Link copied to clipboard
abstract var maxWidth: Double?

The maximum width. Only applies if maxHeight is also set.

Link copied to clipboard
abstract var minHeight: Double?

The minimum height. Only applies if minWidth is also set.

Link copied to clipboard
abstract var minimizable: Boolean?

Whether the window's native minimize button is enabled or not. Defaults to true.

Link copied to clipboard
abstract var minWidth: Double?

The minimum width. Only applies if minHeight is also set.

Link copied to clipboard
abstract var parent: Any?

Sets a parent to the window to be created. Can be either a {@linkcode Window} or a label of the window.

Link copied to clipboard
abstract var preventOverflow: Any?

Prevent the window from overflowing the working area (e.g. monitor size - taskbar size) on creation, which means the window size will be limited to monitor size - taskbar size

Link copied to clipboard
abstract var resizable: Boolean?

Whether the window is resizable or not.

Link copied to clipboard

Specifies the native scrollbar style to use with the webview. CSS styles that modify the scrollbar are applied on top of the native appearance configured here.

Link copied to clipboard
abstract var shadow: Boolean?

Whether or not the window has shadow.

Link copied to clipboard
abstract var skipTaskbar: Boolean?

Whether or not the window icon should be added to the taskbar.

Link copied to clipboard
abstract var tabbingIdentifier: String?

Defines the window tabbing identifier on macOS.

Link copied to clipboard
abstract var theme: Theme?

The initial window theme. Defaults to the system theme.

Link copied to clipboard
abstract var title: String?

Window title.

Link copied to clipboard

The style of the macOS title bar.

Link copied to clipboard

The position of the window controls on macOS.

Link copied to clipboard
abstract var transparent: Boolean?

Whether the window is transparent or not. Note that on macOS this requires the macos-private-api feature flag, enabled under tauri.conf.json > app > macOSPrivateApi. WARNING: Using private APIs on macOS prevents your application from being accepted to the App Store.

Link copied to clipboard
abstract var visible: Boolean?

Whether the window should be immediately visible upon creation or not.

Link copied to clipboard

Whether the window should be visible on all workspaces or virtual desktops.

Link copied to clipboard
abstract var width: Double?

The initial width.

Link copied to clipboard
abstract var windowEffects: Effects?

Window effects.

Link copied to clipboard
abstract var x: Double?

The initial vertical position. Only applies if y is also set.

Link copied to clipboard
abstract var y: Double?

The initial horizontal position. Only applies if x is also set.