diff --git a/.changes/api-tabbed.md b/.changes/api-tabbed.md new file mode 100644 index 000000000000..18eb3c47bbf4 --- /dev/null +++ b/.changes/api-tabbed.md @@ -0,0 +1,5 @@ +--- +"@tauri-apps/api": "patch:feat" +--- + +On Windows, add `Effect.Tabbed`,`Effect.TabbedDark` and `Effect.TabbedLight` effects. diff --git a/.changes/tauri-tabbed.md b/.changes/tauri-tabbed.md new file mode 100644 index 000000000000..db963815681c --- /dev/null +++ b/.changes/tauri-tabbed.md @@ -0,0 +1,5 @@ +--- +"tauri": "patch:feat" +--- + +On Windows, add `Effect::Tabbed`,`Effect::TabbedDark` and `Effect::TabbedLight` effects. diff --git a/.changes/tauri-utils-tabbed.md b/.changes/tauri-utils-tabbed.md new file mode 100644 index 000000000000..6de589411a7d --- /dev/null +++ b/.changes/tauri-utils-tabbed.md @@ -0,0 +1,6 @@ +--- +"tauri-utils": "patch:feat" +--- + +On Windows, add `WindowEffect::Tabbed`,`WindowEffect::TabbedDark` and `WindowEffect::TabbedLight` + diff --git a/core/tauri-config-schema/schema.json b/core/tauri-config-schema/schema.json index c41f4980dbd2..9c977517a184 100644 --- a/core/tauri-config-schema/schema.json +++ b/core/tauri-config-schema/schema.json @@ -796,6 +796,27 @@ "micaLight" ] }, + { + "description": "Tabbed effect that matches the system dark perefence **Windows 11 Only**", + "type": "string", + "enum": [ + "tabbed" + ] + }, + { + "description": "Tabbed effect with dark mode but only if dark mode is enabled on the system **Windows 11 Only**", + "type": "string", + "enum": [ + "tabbedDark" + ] + }, + { + "description": "Tabbed effect with light mode **Windows 11 Only**", + "type": "string", + "enum": [ + "tabbedLight" + ] + }, { "description": "**Windows 7/10/11(22H1) Only**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 11 build 22621.", "type": "string", diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index c78120b55eee..5949e16b5082 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -842,6 +842,12 @@ pub struct BundleConfig { #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct Color(pub u8, pub u8, pub u8, pub u8); +impl From for (u8, u8, u8, u8) { + fn from(value: Color) -> Self { + (value.0, value.1, value.2, value.3) + } +} + /// The window effects configuration object #[skip_serializing_none] #[derive(Debug, PartialEq, Clone, Deserialize, Serialize, Default)] @@ -2197,6 +2203,9 @@ mod build { WindowEffect::MicaLight => quote! { #prefix::MicaLight}, WindowEffect::Blur => quote! { #prefix::Blur}, WindowEffect::Acrylic => quote! { #prefix::Acrylic}, + WindowEffect::Tabbed => quote! { #prefix::Tabbed }, + WindowEffect::TabbedDark => quote! { #prefix::TabbedDark }, + WindowEffect::TabbedLight => quote! { #prefix::TabbedLight }, }) } } diff --git a/core/tauri-utils/src/lib.rs b/core/tauri-utils/src/lib.rs index 54a4328561fc..3821f80003b0 100644 --- a/core/tauri-utils/src/lib.rs +++ b/core/tauri-utils/src/lib.rs @@ -127,6 +127,12 @@ mod window_effects { MicaDark, /// Mica effect with light mode **Windows 11 Only** MicaLight, + /// Tabbed effect that matches the system dark perefence **Windows 11 Only** + Tabbed, + /// Tabbed effect with dark mode but only if dark mode is enabled on the system **Windows 11 Only** + TabbedDark, + /// Tabbed effect with light mode **Windows 11 Only** + TabbedLight, /// **Windows 7/10/11(22H1) Only** /// /// ## Notes diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index c5a67537610e..8096a9f5a2f2 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -71,6 +71,7 @@ infer = { version = "0.15", optional = true } png = { version = "0.17", optional = true } ico = { version = "0.3.0", optional = true } http-range = { version = "0.1.4", optional = true } +window-vibrancy = "0.4" [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\", target_os = \"windows\", target_os = \"macos\"))".dependencies] muda = { version = "0.8", default-features = false } diff --git a/core/tauri/scripts/bundle.global.js b/core/tauri/scripts/bundle.global.js index 40e931a145fb..c9a959636d5a 100644 --- a/core/tauri/scripts/bundle.global.js +++ b/core/tauri/scripts/bundle.global.js @@ -1,2 +1,2 @@ -"use strict";var __TAURI_IIFE__=(()=>{var D=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var Z=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var n in e)D(t,n,{get:e[n],enumerable:!0})},J=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Q(e))!Z.call(t,a)&&a!==n&&D(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t};var K=t=>J(D({},"__esModule",{value:!0}),t);var A=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var C=(t,e,n)=>(A(t,e,"read from private field"),n?n.call(t):e.get(t)),N=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},O=(t,e,n,o)=>(A(t,e,"write to private field"),o?o.call(t,n):e.set(t,n),n);var Ne={};p(Ne,{dpi:()=>W,event:()=>S,path:()=>k,primitives:()=>z,window:()=>T});var S={};p(S,{TauriEvent:()=>E,emit:()=>I,listen:()=>v,once:()=>L});var z={};p(z,{Channel:()=>y,PluginListener:()=>w,addPluginListener:()=>Y,convertFileSrc:()=>X,invoke:()=>i,transformCallback:()=>P});function P(t,e=!1){return window.__TAURI_INTERNALS__.transformCallback(t,e)}var h,y=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0;N(this,h,()=>{});this.id=P(e=>{C(this,h).call(this,e)})}set onmessage(e){O(this,h,e)}get onmessage(){return C(this,h)}toJSON(){return`__CHANNEL__:${this.id}`}};h=new WeakMap;var w=class{constructor(e,n,o){this.plugin=e,this.event=n,this.channelId=o}async unregister(){return i(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};async function Y(t,e,n){let o=new y;return o.onmessage=n,i(`plugin:${t}|register_listener`,{event:e,handler:o}).then(()=>new w(t,e,o.id))}async function i(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}function X(t,e="asset"){return window.__TAURI_INTERNALS__.convertFileSrc(t,e)}var E=(l=>(l.WINDOW_RESIZED="tauri://resize",l.WINDOW_MOVED="tauri://move",l.WINDOW_CLOSE_REQUESTED="tauri://close-requested",l.WINDOW_CREATED="tauri://window-created",l.WINDOW_DESTROYED="tauri://destroyed",l.WINDOW_FOCUS="tauri://focus",l.WINDOW_BLUR="tauri://blur",l.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",l.WINDOW_THEME_CHANGED="tauri://theme-changed",l.WINDOW_FILE_DROP="tauri://file-drop",l.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",l.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",l.MENU="tauri://menu",l))(E||{});async function x(t,e){await i("plugin:event|unlisten",{event:t,eventId:e})}async function v(t,e,n){return i("plugin:event|listen",{event:t,windowLabel:n?.target,handler:P(e)}).then(o=>async()=>x(t,o))}async function L(t,e,n){return v(t,o=>{e(o),x(t,o.id).catch(()=>{})},n)}async function I(t,e,n){await i("plugin:event|emit",{event:t,windowLabel:n?.target,payload:e})}var T={};p(T,{CloseRequestedEvent:()=>f,Effect:()=>H,EffectState:()=>V,LogicalPosition:()=>g,LogicalSize:()=>b,PhysicalPosition:()=>c,PhysicalSize:()=>u,UserAttentionType:()=>M,Window:()=>m,availableMonitors:()=>ie,currentMonitor:()=>B,getAll:()=>_,getCurrent:()=>U,primaryMonitor:()=>ee});var W={};p(W,{LogicalPosition:()=>g,LogicalSize:()=>b,PhysicalPosition:()=>c,PhysicalSize:()=>u});var b=class{constructor(e,n){this.type="Logical";this.width=e,this.height=n}},u=class{constructor(e,n){this.type="Physical";this.width=e,this.height=n}toLogical(e){return new b(this.width/e,this.height/e)}},g=class{constructor(e,n){this.type="Logical";this.x=e,this.y=n}},c=class{constructor(e,n){this.type="Physical";this.x=e,this.y=n}toLogical(e){return new g(this.x/e,this.y/e)}};var M=(n=>(n[n.Critical=1]="Critical",n[n.Informational=2]="Informational",n))(M||{}),f=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}};function U(){return new m(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}function _(){return window.__TAURI_INTERNALS__.metadata.windows.map(t=>new m(t.label,{skip:!0}))}var F=["tauri://created","tauri://error"],m=class{constructor(e,n={}){this.label=e,this.listeners=Object.create(null),n?.skip||i("plugin:window|create",{options:{...n,label:e}}).then(async()=>this.emit("tauri://created")).catch(async o=>this.emit("tauri://error",o))}static getByLabel(e){return _().some(n=>n.label===e)?new m(e,{skip:!0}):null}static getCurrent(){return U()}static getAll(){return _()}static async getFocusedWindow(){for(let e of _())if(await e.isFocused())return e;return null}async listen(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let o=this.listeners[e];o.splice(o.indexOf(n),1)}):v(e,n,{target:this.label})}async once(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let o=this.listeners[e];o.splice(o.indexOf(n),1)}):L(e,n,{target:this.label})}async emit(e,n){if(F.includes(e)){for(let o of this.listeners[e]||[])o({event:e,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return I(e,n,{target:this.label})}_handleTauriEvent(e,n){return F.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}async scaleFactor(){return i("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return i("plugin:window|inner_position",{label:this.label}).then(({x:e,y:n})=>new c(e,n))}async outerPosition(){return i("plugin:window|outer_position",{label:this.label}).then(({x:e,y:n})=>new c(e,n))}async innerSize(){return i("plugin:window|inner_size",{label:this.label}).then(({width:e,height:n})=>new u(e,n))}async outerSize(){return i("plugin:window|outer_size",{label:this.label}).then(({width:e,height:n})=>new u(e,n))}async isFullscreen(){return i("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return i("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return i("plugin:window|is_maximized",{label:this.label})}async isFocused(){return i("plugin:window|is_focused",{label:this.label})}async isDecorated(){return i("plugin:window|is_decorated",{label:this.label})}async isResizable(){return i("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return i("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return i("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return i("plugin:window|is_closable",{label:this.label})}async isVisible(){return i("plugin:window|is_visible",{label:this.label})}async title(){return i("plugin:window|title",{label:this.label})}async theme(){return i("plugin:window|theme",{label:this.label})}async center(){return i("plugin:window|center",{label:this.label})}async requestUserAttention(e){let n=null;return e&&(e===1?n={type:"Critical"}:n={type:"Informational"}),i("plugin:window|request_user_attention",{label:this.label,value:n})}async setResizable(e){return i("plugin:window|set_resizable",{label:this.label,value:e})}async setMaximizable(e){return i("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return i("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return i("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return i("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return i("plugin:window|maximize",{label:this.label})}async unmaximize(){return i("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return i("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return i("plugin:window|minimize",{label:this.label})}async unminimize(){return i("plugin:window|unminimize",{label:this.label})}async show(){return i("plugin:window|show",{label:this.label})}async hide(){return i("plugin:window|hide",{label:this.label})}async close(){return i("plugin:window|close",{label:this.label})}async setDecorations(e){return i("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return i("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return i("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return i("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return i("plugin:window|set_always_on_top",{label:this.label,value:e})}async setContentProtected(e){return i("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i("plugin:window|set_size",{label:this.label,value:{type:e.type,data:{width:e.width,height:e.height}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i("plugin:window|set_min_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i("plugin:window|set_max_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i("plugin:window|set_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setFullscreen(e){return i("plugin:window|set_fullscreen",{label:this.label,value:e})}async setFocus(){return i("plugin:window|set_focus",{label:this.label})}async setIcon(e){return i("plugin:window|set_icon",{label:this.label,value:typeof e=="string"?e:Array.from(e)})}async setSkipTaskbar(e){return i("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return i("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return i("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return i("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i("plugin:window|set_cursor_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setIgnoreCursorEvents(e){return i("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return i("plugin:window|start_dragging",{label:this.label})}async onResized(e){return this.listen("tauri://resize",n=>{n.payload=q(n.payload),e(n)})}async onMoved(e){return this.listen("tauri://move",n=>{n.payload=G(n.payload),e(n)})}async onCloseRequested(e){return this.listen("tauri://close-requested",n=>{let o=new f(n);Promise.resolve(e(o)).then(()=>{if(!o.isPreventDefault())return this.close()})})}async onFocusChanged(e){let n=await this.listen("tauri://focus",a=>{e({...a,payload:!0})}),o=await this.listen("tauri://blur",a=>{e({...a,payload:!1})});return()=>{n(),o()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let n=await this.listen("tauri://file-drop",d=>{e({...d,payload:{type:"drop",paths:d.payload}})}),o=await this.listen("tauri://file-drop-hover",d=>{e({...d,payload:{type:"hover",paths:d.payload}})}),a=await this.listen("tauri://file-drop-cancelled",d=>{e({...d,payload:{type:"cancel"}})});return()=>{n(),o(),a()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},H=(s=>(s.AppearanceBased="appearanceBased",s.Light="light",s.Dark="dark",s.MediumLight="mediumLight",s.UltraDark="ultraDark",s.Titlebar="titlebar",s.Selection="selection",s.Menu="menu",s.Popover="popover",s.Sidebar="sidebar",s.HeaderView="headerView",s.Sheet="sheet",s.WindowBackground="windowBackground",s.HudWindow="hudWindow",s.FullScreenUI="fullScreenUI",s.Tooltip="tooltip",s.ContentBackground="contentBackground",s.UnderWindowBackground="underWindowBackground",s.UnderPageBackground="underPageBackground",s.Mica="mica",s.Blur="blur",s.Acrylic="acrylic",s))(H||{}),V=(o=>(o.FollowsWindowActiveState="followsWindowActiveState",o.Active="active",o.Inactive="inactive",o))(V||{});function R(t){return t===null?null:{name:t.name,scaleFactor:t.scaleFactor,position:G(t.position),size:q(t.size)}}function G(t){return new c(t.x,t.y)}function q(t){return new u(t.width,t.height)}async function B(){return i("plugin:window|current_monitor").then(R)}async function ee(){return i("plugin:window|primary_monitor").then(R)}async function ie(){return i("plugin:window|available_monitors").then(t=>t.map(R))}var k={};p(k,{BaseDirectory:()=>$,appCacheDir:()=>oe,appConfigDir:()=>ne,appDataDir:()=>te,appLocalDataDir:()=>re,appLogDir:()=>Ce,audioDir:()=>se,basename:()=>ke,cacheDir:()=>le,configDir:()=>ae,dataDir:()=>ue,delimiter:()=>Le,desktopDir:()=>ce,dirname:()=>Re,documentDir:()=>de,downloadDir:()=>me,executableDir:()=>pe,extname:()=>Te,fontDir:()=>he,homeDir:()=>be,isAbsolute:()=>Ae,join:()=>We,localDataDir:()=>ge,normalize:()=>Se,pictureDir:()=>ye,publicDir:()=>we,resolve:()=>Ie,resolveResource:()=>ve,resourceDir:()=>Pe,runtimeDir:()=>_e,sep:()=>Ee,tempDir:()=>ze,templateDir:()=>fe,videoDir:()=>De});var $=(r=>(r[r.Audio=1]="Audio",r[r.Cache=2]="Cache",r[r.Config=3]="Config",r[r.Data=4]="Data",r[r.LocalData=5]="LocalData",r[r.Document=6]="Document",r[r.Download=7]="Download",r[r.Picture=8]="Picture",r[r.Public=9]="Public",r[r.Video=10]="Video",r[r.Resource=11]="Resource",r[r.Temp=12]="Temp",r[r.AppConfig=13]="AppConfig",r[r.AppData=14]="AppData",r[r.AppLocalData=15]="AppLocalData",r[r.AppCache=16]="AppCache",r[r.AppLog=17]="AppLog",r[r.Desktop=18]="Desktop",r[r.Executable=19]="Executable",r[r.Font=20]="Font",r[r.Home=21]="Home",r[r.Runtime=22]="Runtime",r[r.Template=23]="Template",r))($||{});async function ne(){return i("plugin:path|resolve_directory",{directory:13})}async function te(){return i("plugin:path|resolve_directory",{directory:14})}async function re(){return i("plugin:path|resolve_directory",{directory:15})}async function oe(){return i("plugin:path|resolve_directory",{directory:16})}async function se(){return i("plugin:path|resolve_directory",{directory:1})}async function le(){return i("plugin:path|resolve_directory",{directory:2})}async function ae(){return i("plugin:path|resolve_directory",{directory:3})}async function ue(){return i("plugin:path|resolve_directory",{directory:4})}async function ce(){return i("plugin:path|resolve_directory",{directory:18})}async function de(){return i("plugin:path|resolve_directory",{directory:6})}async function me(){return i("plugin:path|resolve_directory",{directory:7})}async function pe(){return i("plugin:path|resolve_directory",{directory:19})}async function he(){return i("plugin:path|resolve_directory",{directory:20})}async function be(){return i("plugin:path|resolve_directory",{directory:21})}async function ge(){return i("plugin:path|resolve_directory",{directory:5})}async function ye(){return i("plugin:path|resolve_directory",{directory:8})}async function we(){return i("plugin:path|resolve_directory",{directory:9})}async function Pe(){return i("plugin:path|resolve_directory",{directory:11})}async function ve(t){return i("plugin:path|resolve_directory",{directory:11,path:t})}async function _e(){return i("plugin:path|resolve_directory",{directory:22})}async function fe(){return i("plugin:path|resolve_directory",{directory:23})}async function De(){return i("plugin:path|resolve_directory",{directory:10})}async function Ce(){return i("plugin:path|resolve_directory",{directory:17})}async function ze(t){return i("plugin:path|resolve_directory",{directory:12})}function Ee(){return window.__TAURI_INTERNALS__.plugins.path.sep}function Le(){return window.__TAURI_INTERNALS__.plugins.path.delimiter}async function Ie(...t){return i("plugin:path|resolve",{paths:t})}async function Se(t){return i("plugin:path|normalize",{path:t})}async function We(...t){return i("plugin:path|join",{paths:t})}async function Re(t){return i("plugin:path|dirname",{path:t})}async function Te(t){return i("plugin:path|extname",{path:t})}async function ke(t,e){return i("plugin:path|basename",{path:t,ext:e})}async function Ae(t){return i("plugin:path|isAbsolute",{path:t})}return K(Ne);})(); +"use strict";var __TAURI_IIFE__=(()=>{var D=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var Z=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var n in e)D(t,n,{get:e[n],enumerable:!0})},J=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Q(e))!Z.call(t,a)&&a!==n&&D(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t};var K=t=>J(D({},"__esModule",{value:!0}),t);var A=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var C=(t,e,n)=>(A(t,e,"read from private field"),n?n.call(t):e.get(t)),N=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},O=(t,e,n,o)=>(A(t,e,"write to private field"),o?o.call(t,n):e.set(t,n),n);var Ne={};p(Ne,{dpi:()=>T,event:()=>S,path:()=>R,primitives:()=>z,window:()=>k});var S={};p(S,{TauriEvent:()=>L,emit:()=>E,listen:()=>v,once:()=>I});var z={};p(z,{Channel:()=>y,PluginListener:()=>w,addPluginListener:()=>Y,convertFileSrc:()=>X,invoke:()=>i,transformCallback:()=>P});function P(t,e=!1){return window.__TAURI_INTERNALS__.transformCallback(t,e)}var h,y=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0;N(this,h,()=>{});this.id=P(e=>{C(this,h).call(this,e)})}set onmessage(e){O(this,h,e)}get onmessage(){return C(this,h)}toJSON(){return`__CHANNEL__:${this.id}`}};h=new WeakMap;var w=class{constructor(e,n,o){this.plugin=e,this.event=n,this.channelId=o}async unregister(){return i(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};async function Y(t,e,n){let o=new y;return o.onmessage=n,i(`plugin:${t}|register_listener`,{event:e,handler:o}).then(()=>new w(t,e,o.id))}async function i(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}function X(t,e="asset"){return window.__TAURI_INTERNALS__.convertFileSrc(t,e)}var L=(l=>(l.WINDOW_RESIZED="tauri://resize",l.WINDOW_MOVED="tauri://move",l.WINDOW_CLOSE_REQUESTED="tauri://close-requested",l.WINDOW_CREATED="tauri://window-created",l.WINDOW_DESTROYED="tauri://destroyed",l.WINDOW_FOCUS="tauri://focus",l.WINDOW_BLUR="tauri://blur",l.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",l.WINDOW_THEME_CHANGED="tauri://theme-changed",l.WINDOW_FILE_DROP="tauri://file-drop",l.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",l.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",l.MENU="tauri://menu",l))(L||{});async function x(t,e){await i("plugin:event|unlisten",{event:t,eventId:e})}async function v(t,e,n){return i("plugin:event|listen",{event:t,windowLabel:n?.target,handler:P(e)}).then(o=>async()=>x(t,o))}async function I(t,e,n){return v(t,o=>{e(o),x(t,o.id).catch(()=>{})},n)}async function E(t,e,n){await i("plugin:event|emit",{event:t,windowLabel:n?.target,payload:e})}var k={};p(k,{CloseRequestedEvent:()=>f,Effect:()=>H,EffectState:()=>V,LogicalPosition:()=>g,LogicalSize:()=>b,PhysicalPosition:()=>c,PhysicalSize:()=>u,UserAttentionType:()=>M,Window:()=>m,availableMonitors:()=>ie,currentMonitor:()=>B,getAll:()=>_,getCurrent:()=>U,primaryMonitor:()=>ee});var T={};p(T,{LogicalPosition:()=>g,LogicalSize:()=>b,PhysicalPosition:()=>c,PhysicalSize:()=>u});var b=class{constructor(e,n){this.type="Logical";this.width=e,this.height=n}},u=class{constructor(e,n){this.type="Physical";this.width=e,this.height=n}toLogical(e){return new b(this.width/e,this.height/e)}},g=class{constructor(e,n){this.type="Logical";this.x=e,this.y=n}},c=class{constructor(e,n){this.type="Physical";this.x=e,this.y=n}toLogical(e){return new g(this.x/e,this.y/e)}};var M=(n=>(n[n.Critical=1]="Critical",n[n.Informational=2]="Informational",n))(M||{}),f=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}};function U(){return new m(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}function _(){return window.__TAURI_INTERNALS__.metadata.windows.map(t=>new m(t.label,{skip:!0}))}var F=["tauri://created","tauri://error"],m=class{constructor(e,n={}){this.label=e,this.listeners=Object.create(null),n?.skip||i("plugin:window|create",{options:{...n,label:e}}).then(async()=>this.emit("tauri://created")).catch(async o=>this.emit("tauri://error",o))}static getByLabel(e){return _().some(n=>n.label===e)?new m(e,{skip:!0}):null}static getCurrent(){return U()}static getAll(){return _()}static async getFocusedWindow(){for(let e of _())if(await e.isFocused())return e;return null}async listen(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let o=this.listeners[e];o.splice(o.indexOf(n),1)}):v(e,n,{target:this.label})}async once(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let o=this.listeners[e];o.splice(o.indexOf(n),1)}):I(e,n,{target:this.label})}async emit(e,n){if(F.includes(e)){for(let o of this.listeners[e]||[])o({event:e,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return E(e,n,{target:this.label})}_handleTauriEvent(e,n){return F.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}async scaleFactor(){return i("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return i("plugin:window|inner_position",{label:this.label}).then(({x:e,y:n})=>new c(e,n))}async outerPosition(){return i("plugin:window|outer_position",{label:this.label}).then(({x:e,y:n})=>new c(e,n))}async innerSize(){return i("plugin:window|inner_size",{label:this.label}).then(({width:e,height:n})=>new u(e,n))}async outerSize(){return i("plugin:window|outer_size",{label:this.label}).then(({width:e,height:n})=>new u(e,n))}async isFullscreen(){return i("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return i("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return i("plugin:window|is_maximized",{label:this.label})}async isFocused(){return i("plugin:window|is_focused",{label:this.label})}async isDecorated(){return i("plugin:window|is_decorated",{label:this.label})}async isResizable(){return i("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return i("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return i("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return i("plugin:window|is_closable",{label:this.label})}async isVisible(){return i("plugin:window|is_visible",{label:this.label})}async title(){return i("plugin:window|title",{label:this.label})}async theme(){return i("plugin:window|theme",{label:this.label})}async center(){return i("plugin:window|center",{label:this.label})}async requestUserAttention(e){let n=null;return e&&(e===1?n={type:"Critical"}:n={type:"Informational"}),i("plugin:window|request_user_attention",{label:this.label,value:n})}async setResizable(e){return i("plugin:window|set_resizable",{label:this.label,value:e})}async setMaximizable(e){return i("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return i("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return i("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return i("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return i("plugin:window|maximize",{label:this.label})}async unmaximize(){return i("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return i("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return i("plugin:window|minimize",{label:this.label})}async unminimize(){return i("plugin:window|unminimize",{label:this.label})}async show(){return i("plugin:window|show",{label:this.label})}async hide(){return i("plugin:window|hide",{label:this.label})}async close(){return i("plugin:window|close",{label:this.label})}async setDecorations(e){return i("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return i("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return i("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return i("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return i("plugin:window|set_always_on_top",{label:this.label,value:e})}async setContentProtected(e){return i("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i("plugin:window|set_size",{label:this.label,value:{type:e.type,data:{width:e.width,height:e.height}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i("plugin:window|set_min_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i("plugin:window|set_max_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i("plugin:window|set_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setFullscreen(e){return i("plugin:window|set_fullscreen",{label:this.label,value:e})}async setFocus(){return i("plugin:window|set_focus",{label:this.label})}async setIcon(e){return i("plugin:window|set_icon",{label:this.label,value:typeof e=="string"?e:Array.from(e)})}async setSkipTaskbar(e){return i("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return i("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return i("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return i("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i("plugin:window|set_cursor_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setIgnoreCursorEvents(e){return i("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return i("plugin:window|start_dragging",{label:this.label})}async onResized(e){return this.listen("tauri://resize",n=>{n.payload=q(n.payload),e(n)})}async onMoved(e){return this.listen("tauri://move",n=>{n.payload=G(n.payload),e(n)})}async onCloseRequested(e){return this.listen("tauri://close-requested",n=>{let o=new f(n);Promise.resolve(e(o)).then(()=>{if(!o.isPreventDefault())return this.close()})})}async onFocusChanged(e){let n=await this.listen("tauri://focus",a=>{e({...a,payload:!0})}),o=await this.listen("tauri://blur",a=>{e({...a,payload:!1})});return()=>{n(),o()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let n=await this.listen("tauri://file-drop",d=>{e({...d,payload:{type:"drop",paths:d.payload}})}),o=await this.listen("tauri://file-drop-hover",d=>{e({...d,payload:{type:"hover",paths:d.payload}})}),a=await this.listen("tauri://file-drop-cancelled",d=>{e({...d,payload:{type:"cancel"}})});return()=>{n(),o(),a()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},H=(s=>(s.AppearanceBased="appearanceBased",s.Light="light",s.Dark="dark",s.MediumLight="mediumLight",s.UltraDark="ultraDark",s.Titlebar="titlebar",s.Selection="selection",s.Menu="menu",s.Popover="popover",s.Sidebar="sidebar",s.HeaderView="headerView",s.Sheet="sheet",s.WindowBackground="windowBackground",s.HudWindow="hudWindow",s.FullScreenUI="fullScreenUI",s.Tooltip="tooltip",s.ContentBackground="contentBackground",s.UnderWindowBackground="underWindowBackground",s.UnderPageBackground="underPageBackground",s.Mica="mica",s.Blur="blur",s.Acrylic="acrylic",s.Tabbed="tabbed",s.TabbedDark="tabbedDark",s.TabbedLight="tabbedLight",s))(H||{}),V=(o=>(o.FollowsWindowActiveState="followsWindowActiveState",o.Active="active",o.Inactive="inactive",o))(V||{});function W(t){return t===null?null:{name:t.name,scaleFactor:t.scaleFactor,position:G(t.position),size:q(t.size)}}function G(t){return new c(t.x,t.y)}function q(t){return new u(t.width,t.height)}async function B(){return i("plugin:window|current_monitor").then(W)}async function ee(){return i("plugin:window|primary_monitor").then(W)}async function ie(){return i("plugin:window|available_monitors").then(t=>t.map(W))}var R={};p(R,{BaseDirectory:()=>$,appCacheDir:()=>oe,appConfigDir:()=>ne,appDataDir:()=>te,appLocalDataDir:()=>re,appLogDir:()=>Ce,audioDir:()=>se,basename:()=>Re,cacheDir:()=>le,configDir:()=>ae,dataDir:()=>ue,delimiter:()=>Ie,desktopDir:()=>ce,dirname:()=>We,documentDir:()=>de,downloadDir:()=>me,executableDir:()=>pe,extname:()=>ke,fontDir:()=>he,homeDir:()=>be,isAbsolute:()=>Ae,join:()=>Te,localDataDir:()=>ge,normalize:()=>Se,pictureDir:()=>ye,publicDir:()=>we,resolve:()=>Ee,resolveResource:()=>ve,resourceDir:()=>Pe,runtimeDir:()=>_e,sep:()=>Le,tempDir:()=>ze,templateDir:()=>fe,videoDir:()=>De});var $=(r=>(r[r.Audio=1]="Audio",r[r.Cache=2]="Cache",r[r.Config=3]="Config",r[r.Data=4]="Data",r[r.LocalData=5]="LocalData",r[r.Document=6]="Document",r[r.Download=7]="Download",r[r.Picture=8]="Picture",r[r.Public=9]="Public",r[r.Video=10]="Video",r[r.Resource=11]="Resource",r[r.Temp=12]="Temp",r[r.AppConfig=13]="AppConfig",r[r.AppData=14]="AppData",r[r.AppLocalData=15]="AppLocalData",r[r.AppCache=16]="AppCache",r[r.AppLog=17]="AppLog",r[r.Desktop=18]="Desktop",r[r.Executable=19]="Executable",r[r.Font=20]="Font",r[r.Home=21]="Home",r[r.Runtime=22]="Runtime",r[r.Template=23]="Template",r))($||{});async function ne(){return i("plugin:path|resolve_directory",{directory:13})}async function te(){return i("plugin:path|resolve_directory",{directory:14})}async function re(){return i("plugin:path|resolve_directory",{directory:15})}async function oe(){return i("plugin:path|resolve_directory",{directory:16})}async function se(){return i("plugin:path|resolve_directory",{directory:1})}async function le(){return i("plugin:path|resolve_directory",{directory:2})}async function ae(){return i("plugin:path|resolve_directory",{directory:3})}async function ue(){return i("plugin:path|resolve_directory",{directory:4})}async function ce(){return i("plugin:path|resolve_directory",{directory:18})}async function de(){return i("plugin:path|resolve_directory",{directory:6})}async function me(){return i("plugin:path|resolve_directory",{directory:7})}async function pe(){return i("plugin:path|resolve_directory",{directory:19})}async function he(){return i("plugin:path|resolve_directory",{directory:20})}async function be(){return i("plugin:path|resolve_directory",{directory:21})}async function ge(){return i("plugin:path|resolve_directory",{directory:5})}async function ye(){return i("plugin:path|resolve_directory",{directory:8})}async function we(){return i("plugin:path|resolve_directory",{directory:9})}async function Pe(){return i("plugin:path|resolve_directory",{directory:11})}async function ve(t){return i("plugin:path|resolve_directory",{directory:11,path:t})}async function _e(){return i("plugin:path|resolve_directory",{directory:22})}async function fe(){return i("plugin:path|resolve_directory",{directory:23})}async function De(){return i("plugin:path|resolve_directory",{directory:10})}async function Ce(){return i("plugin:path|resolve_directory",{directory:17})}async function ze(t){return i("plugin:path|resolve_directory",{directory:12})}function Le(){return window.__TAURI_INTERNALS__.plugins.path.sep}function Ie(){return window.__TAURI_INTERNALS__.plugins.path.delimiter}async function Ee(...t){return i("plugin:path|resolve",{paths:t})}async function Se(t){return i("plugin:path|normalize",{path:t})}async function Te(...t){return i("plugin:path|join",{paths:t})}async function We(t){return i("plugin:path|dirname",{path:t})}async function ke(t){return i("plugin:path|extname",{path:t})}async function Re(t,e){return i("plugin:path|basename",{path:t,ext:e})}async function Ae(t){return i("plugin:path|isAbsolute",{path:t})}return K(Ne);})(); window.__TAURI__ = __TAURI_IIFE__ diff --git a/core/tauri/src/vibrancy/macos.rs b/core/tauri/src/vibrancy/macos.rs index 26ddc1af3d5d..2c0ba377238c 100644 --- a/core/tauri/src/vibrancy/macos.rs +++ b/core/tauri/src/vibrancy/macos.rs @@ -7,25 +7,17 @@ use crate::utils::config::WindowEffectsConfig; use crate::window::{Effect, EffectState}; -use cocoa::{ - appkit::{ - NSAppKitVersionNumber, NSAppKitVersionNumber10_10, NSAppKitVersionNumber10_11, - NSAutoresizingMaskOptions, NSView, NSViewHeightSizable, NSViewWidthSizable, NSWindow, - NSWindowOrderingMode, - }, - base::{id, nil, BOOL}, - foundation::{NSAutoreleasePool, NSPoint, NSRect, NSSize}, -}; -use objc::{class, msg_send, sel, sel_impl}; +use raw_window_handle::HasRawWindowHandle; +use window_vibrancy::{NSVisualEffectMaterial, NSVisualEffectState}; -pub fn apply_effects(window: id, effects: WindowEffectsConfig) { +pub fn apply_effects(window: impl HasRawWindowHandle, effects: WindowEffectsConfig) { let WindowEffectsConfig { effects, radius, state, .. } = effects; - let mut appearance: NSVisualEffectMaterial = if let Some(effect) = effects.into_iter().find(|e| { + let effect = if let Some(effect) = effects.into_iter().find(|e| { matches!( e, Effect::AppearanceBased @@ -49,221 +41,14 @@ pub fn apply_effects(window: id, effects: WindowEffectsConfig) { | Effect::UnderPageBackground ) }) { - effect.into() + effect } else { return; }; - unsafe { - if NSAppKitVersionNumber < NSAppKitVersionNumber10_10 { - return; - } - - if !msg_send![class!(NSThread), isMainThread] { - return; - } - - if appearance as u32 > 4 && NSAppKitVersionNumber < NSAppKitVersionNumber10_11 { - appearance = NSVisualEffectMaterial::AppearanceBased; - } - - if appearance as u32 > 9 && NSAppKitVersionNumber < NSAppKitVersionNumber10_14 { - appearance = NSVisualEffectMaterial::AppearanceBased; - } - - let ns_view: id = window.contentView(); - let bounds = NSView::bounds(ns_view); - - let blurred_view = NSVisualEffectView::initWithFrame_(NSVisualEffectView::alloc(nil), bounds); - blurred_view.autorelease(); - - blurred_view.setMaterial_(appearance); - blurred_view.setCornerRadius_(radius.unwrap_or(0.0)); - blurred_view.setBlendingMode_(NSVisualEffectBlendingMode::BehindWindow); - blurred_view.setState_( - state - .map(Into::into) - .unwrap_or(NSVisualEffectState::FollowsWindowActiveState), - ); - NSVisualEffectView::setAutoresizingMask_( - blurred_view, - NSViewWidthSizable | NSViewHeightSizable, - ); - - let _: () = msg_send![ns_view, addSubview: blurred_view positioned: NSWindowOrderingMode::NSWindowBelow relativeTo: 0]; - } -} - -#[allow(non_upper_case_globals)] -const NSAppKitVersionNumber10_14: f64 = 1671.0; - -// https://developer.apple.com/documentation/appkit/nsvisualeffectview/blendingmode -#[allow(dead_code)] -#[repr(u64)] -#[derive(Clone, Copy, Debug, PartialEq)] -enum NSVisualEffectBlendingMode { - BehindWindow = 0, - WithinWindow = 1, -} - -// macos 10.10+ -// https://developer.apple.com/documentation/appkit/nsvisualeffectview -#[allow(non_snake_case)] -trait NSVisualEffectView: Sized { - unsafe fn alloc(_: Self) -> id { - msg_send![class!(NSVisualEffectView), alloc] - } - - unsafe fn init(self) -> id; - unsafe fn initWithFrame_(self, frameRect: NSRect) -> id; - unsafe fn bounds(self) -> NSRect; - unsafe fn frame(self) -> NSRect; - unsafe fn setFrameSize(self, frameSize: NSSize); - unsafe fn setFrameOrigin(self, frameOrigin: NSPoint); - - unsafe fn superview(self) -> id; - unsafe fn removeFromSuperview(self); - unsafe fn setAutoresizingMask_(self, autoresizingMask: NSAutoresizingMaskOptions); - - // API_AVAILABLE(macos(10.12)); - unsafe fn isEmphasized(self) -> BOOL; - // API_AVAILABLE(macos(10.12)); - unsafe fn setEmphasized_(self, emphasized: BOOL); - - unsafe fn setMaterial_(self, material: NSVisualEffectMaterial); - unsafe fn setCornerRadius_(self, radius: f64); - unsafe fn setState_(self, state: NSVisualEffectState); - unsafe fn setBlendingMode_(self, mode: NSVisualEffectBlendingMode); -} - -#[allow(non_snake_case)] -impl NSVisualEffectView for id { - unsafe fn init(self) -> id { - msg_send![self, init] - } - - unsafe fn initWithFrame_(self, frameRect: NSRect) -> id { - msg_send![self, initWithFrame: frameRect] - } - - unsafe fn bounds(self) -> NSRect { - msg_send![self, bounds] - } - - unsafe fn frame(self) -> NSRect { - msg_send![self, frame] - } - - unsafe fn setFrameSize(self, frameSize: NSSize) { - msg_send![self, setFrameSize: frameSize] - } - - unsafe fn setFrameOrigin(self, frameOrigin: NSPoint) { - msg_send![self, setFrameOrigin: frameOrigin] - } - - unsafe fn superview(self) -> id { - msg_send![self, superview] - } - - unsafe fn removeFromSuperview(self) { - msg_send![self, removeFromSuperview] - } - - unsafe fn setAutoresizingMask_(self, autoresizingMask: NSAutoresizingMaskOptions) { - msg_send![self, setAutoresizingMask: autoresizingMask] - } - - // API_AVAILABLE(macos(10.12)); - unsafe fn isEmphasized(self) -> BOOL { - msg_send![self, isEmphasized] - } - - // API_AVAILABLE(macos(10.12)); - unsafe fn setEmphasized_(self, emphasized: BOOL) { - msg_send![self, setEmphasized: emphasized] - } - - unsafe fn setMaterial_(self, material: NSVisualEffectMaterial) { - msg_send![self, setMaterial: material] - } - - unsafe fn setCornerRadius_(self, radius: f64) { - msg_send![self, setCornerRadius: radius] - } - - unsafe fn setState_(self, state: NSVisualEffectState) { - msg_send![self, setState: state] - } - - unsafe fn setBlendingMode_(self, mode: NSVisualEffectBlendingMode) { - msg_send![self, setBlendingMode: mode] - } -} - -/// -#[repr(u64)] -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -pub enum NSVisualEffectMaterial { - #[deprecated = "Since macOS 10.14 a default material appropriate for the view's effectiveAppearance. You should instead choose an appropriate semantic material."] - AppearanceBased = 0, - #[deprecated = "Since macOS 10.14 use a semantic material instead."] - Light = 1, - #[deprecated = "Since macOS 10.14 use a semantic material instead."] - Dark = 2, - #[deprecated = "Since macOS 10.14 use a semantic material instead."] - MediumLight = 8, - #[deprecated = "Since macOS 10.14 use a semantic material instead."] - UltraDark = 9, - - /// macOS 10.10+ - Titlebar = 3, - /// macOS 10.10+ - Selection = 4, - - /// macOS 10.11+ - Menu = 5, - /// macOS 10.11+ - Popover = 6, - /// macOS 10.11+ - Sidebar = 7, - - /// macOS 10.14+ - HeaderView = 10, - /// macOS 10.14+ - Sheet = 11, - /// macOS 10.14+ - WindowBackground = 12, - /// macOS 10.14+ - HudWindow = 13, - /// macOS 10.14+ - FullScreenUI = 15, - /// macOS 10.14+ - Tooltip = 17, - /// macOS 10.14+ - ContentBackground = 18, - /// macOS 10.14+ - UnderWindowBackground = 21, - /// macOS 10.14+ - UnderPageBackground = 22, -} - -/// -#[allow(dead_code)] -#[repr(u64)] -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -pub enum NSVisualEffectState { - /// Make window vibrancy state follow the window's active state - FollowsWindowActiveState = 0, - /// Make window vibrancy state always active - Active = 1, - /// Make window vibrancy state always inactive - Inactive = 2, -} - -impl From for NSVisualEffectMaterial { - fn from(value: crate::window::Effect) -> Self { - match value { + window_vibrancy::apply_vibrancy( + window, + match effect { Effect::AppearanceBased => NSVisualEffectMaterial::AppearanceBased, Effect::Light => NSVisualEffectMaterial::Light, Effect::Dark => NSVisualEffectMaterial::Dark, @@ -284,16 +69,12 @@ impl From for NSVisualEffectMaterial { Effect::UnderWindowBackground => NSVisualEffectMaterial::UnderWindowBackground, Effect::UnderPageBackground => NSVisualEffectMaterial::UnderPageBackground, _ => unreachable!(), - } - } -} - -impl From for NSVisualEffectState { - fn from(value: crate::window::EffectState) -> Self { - match value { + }, + state.map(|s| match s { EffectState::FollowsWindowActiveState => NSVisualEffectState::FollowsWindowActiveState, EffectState::Active => NSVisualEffectState::Active, EffectState::Inactive => NSVisualEffectState::Inactive, - } - } + }), + radius, + ); } diff --git a/core/tauri/src/vibrancy/mod.rs b/core/tauri/src/vibrancy/mod.rs index 2ede80e978e4..86bfa1610544 100644 --- a/core/tauri/src/vibrancy/mod.rs +++ b/core/tauri/src/vibrancy/mod.rs @@ -19,21 +19,12 @@ pub fn set_window_effects( ) -> crate::Result<()> { if let Some(_effects) = effects { #[cfg(windows)] - { - let hwnd = window.hwnd()?; - windows::apply_effects(hwnd, _effects); - } + windows::apply_effects(window, _effects); #[cfg(target_os = "macos")] - { - let ns_window = window.ns_window()?; - macos::apply_effects(ns_window as _, _effects); - } + macos::apply_effects(window, _effects); } else { #[cfg(windows)] - { - let hwnd = window.hwnd()?; - windows::clear_effects(hwnd); - } + windows::clear_effects(window); } Ok(()) } diff --git a/core/tauri/src/vibrancy/windows.rs b/core/tauri/src/vibrancy/windows.rs index c28f7552dde2..e6133b5430d8 100644 --- a/core/tauri/src/vibrancy/windows.rs +++ b/core/tauri/src/vibrancy/windows.rs @@ -11,24 +11,23 @@ use std::ffi::c_void; use crate::utils::config::WindowEffectsConfig; use crate::window::{Color, Effect}; +use raw_window_handle::HasRawWindowHandle; use tauri_utils::platform::{get_function_impl, is_windows_7, windows_version}; -use windows::Win32::Graphics::Dwm::{ - DwmSetWindowAttribute, DWMWA_USE_IMMERSIVE_DARK_MODE, DWMWINDOWATTRIBUTE, -}; -use windows::Win32::{ - Foundation::{BOOL, HWND}, - Graphics::{ - Dwm::{DwmEnableBlurBehindWindow, DWM_BB_ENABLE, DWM_BLURBEHIND}, - Gdi::HRGN, - }, -}; +use windows::Win32::Foundation::HWND; -pub fn apply_effects(window: HWND, effects: WindowEffectsConfig) { +pub fn apply_effects(window: impl HasRawWindowHandle, effects: WindowEffectsConfig) { let WindowEffectsConfig { effects, color, .. } = effects; let effect = if let Some(effect) = effects.iter().find(|e| { matches!( e, - Effect::Mica | Effect::MicaDark | Effect::MicaLight | Effect::Acrylic | Effect::Blur + Effect::Mica + | Effect::MicaDark + | Effect::MicaLight + | Effect::Acrylic + | Effect::Blur + | Effect::Tabbed + | Effect::TabbedDark + | Effect::TabbedLight ) }) { effect @@ -37,230 +36,20 @@ pub fn apply_effects(window: HWND, effects: WindowEffectsConfig) { }; match effect { - Effect::Blur => apply_blur(window, color), - Effect::Acrylic => apply_acrylic(window, color), - Effect::Mica => apply_mica(window, None), - Effect::MicaDark => apply_mica(window, Some(true)), - Effect::MicaLight => apply_mica(window, Some(false)), + Effect::Blur => window_vibrancy::apply_blur(window, color.map(Into::into)), + Effect::Acrylic => window_vibrancy::apply_acrylic(window, color.map(Into::into)), + Effect::Mica => window_vibrancy::apply_mica(window, None), + Effect::MicaDark => window_vibrancy::apply_mica(window, Some(true)), + Effect::MicaLight => window_vibrancy::apply_mica(window, Some(false)), + Effect::Tabbed => window_vibrancy::apply_tabbed(window, None), + Effect::TabbedDark => window_vibrancy::apply_tabbed(window, Some(true)), + Effect::TabbedLight => window_vibrancy::apply_tabbed(window, Some(false)), _ => unreachable!(), - } -} - -pub fn clear_effects(window: HWND) { - clear_blur(window); - clear_acrylic(window); - clear_mica(window); -} - -pub fn apply_blur(hwnd: HWND, color: Option) { - if is_windows_7() { - let bb = DWM_BLURBEHIND { - dwFlags: DWM_BB_ENABLE, - fEnable: true.into(), - hRgnBlur: HRGN::default(), - fTransitionOnMaximized: false.into(), - }; - let _ = unsafe { DwmEnableBlurBehindWindow(hwnd, &bb) }; - } else if is_swca_supported() { - unsafe { SetWindowCompositionAttribute(hwnd, ACCENT_STATE::ACCENT_ENABLE_BLURBEHIND, color) }; - } else { - return; - } -} - -fn clear_blur(hwnd: HWND) { - if is_windows_7() { - let bb = DWM_BLURBEHIND { - dwFlags: DWM_BB_ENABLE, - fEnable: false.into(), - hRgnBlur: HRGN::default(), - fTransitionOnMaximized: false.into(), - }; - let _ = unsafe { DwmEnableBlurBehindWindow(hwnd, &bb) }; - } else if is_swca_supported() { - unsafe { SetWindowCompositionAttribute(hwnd, ACCENT_STATE::ACCENT_DISABLED, None) }; - } else { - return; - } -} - -pub fn apply_acrylic(hwnd: HWND, color: Option) { - if is_backdroptype_supported() { - unsafe { - let _ = DwmSetWindowAttribute( - hwnd, - DWMWA_SYSTEMBACKDROP_TYPE, - &DWM_SYSTEMBACKDROP_TYPE::DWMSBT_TRANSIENTWINDOW as *const _ as _, - 4, - ); - } - } else if is_swca_supported() { - unsafe { - SetWindowCompositionAttribute(hwnd, ACCENT_STATE::ACCENT_ENABLE_ACRYLICBLURBEHIND, color); - } - } else { - return; - } -} - -pub fn clear_acrylic(hwnd: HWND) { - if is_backdroptype_supported() { - unsafe { - let _ = DwmSetWindowAttribute( - hwnd, - DWMWA_SYSTEMBACKDROP_TYPE, - &DWM_SYSTEMBACKDROP_TYPE::DWMSBT_DISABLE as *const _ as _, - 4, - ); - } - } else if is_swca_supported() { - unsafe { SetWindowCompositionAttribute(hwnd, ACCENT_STATE::ACCENT_DISABLED, None) }; - } else { - return; - } -} - -pub fn apply_mica(hwnd: HWND, dark: Option) { - if let Some(dark) = dark { - unsafe { - DwmSetWindowAttribute( - hwnd, - DWMWA_USE_IMMERSIVE_DARK_MODE, - &(dark as u32) as *const _ as _, - 4, - ); - } - } - - if is_backdroptype_supported() { - unsafe { - let _ = DwmSetWindowAttribute( - hwnd, - DWMWA_SYSTEMBACKDROP_TYPE, - &DWM_SYSTEMBACKDROP_TYPE::DWMSBT_MAINWINDOW as *const _ as _, - 4, - ); - } - } else if is_undocumented_mica_supported() { - let _ = unsafe { DwmSetWindowAttribute(hwnd, DWMWA_MICA_EFFECT, &1 as *const _ as _, 4) }; - } else { - return; - } -} - -pub fn clear_mica(hwnd: HWND) { - if is_backdroptype_supported() { - unsafe { - let _ = DwmSetWindowAttribute( - hwnd, - DWMWA_SYSTEMBACKDROP_TYPE, - &DWM_SYSTEMBACKDROP_TYPE::DWMSBT_DISABLE as *const _ as _, - 4, - ); - } - } else if is_undocumented_mica_supported() { - let _ = unsafe { DwmSetWindowAttribute(hwnd, DWMWA_MICA_EFFECT, &0 as *const _ as _, 4) }; - } else { - return; - } -} - -const DWMWA_MICA_EFFECT: DWMWINDOWATTRIBUTE = DWMWINDOWATTRIBUTE(1029i32); -const DWMWA_SYSTEMBACKDROP_TYPE: DWMWINDOWATTRIBUTE = DWMWINDOWATTRIBUTE(38i32); - -#[repr(C)] -struct ACCENT_POLICY { - AccentState: u32, - AccentFlags: u32, - GradientColor: u32, - AnimationId: u32, -} - -type WINDOWCOMPOSITIONATTRIB = u32; - -#[repr(C)] -struct WINDOWCOMPOSITIONATTRIBDATA { - Attrib: WINDOWCOMPOSITIONATTRIB, - pvData: *mut c_void, - cbData: usize, -} - -#[derive(PartialEq)] -#[repr(C)] -enum ACCENT_STATE { - ACCENT_DISABLED = 0, - ACCENT_ENABLE_BLURBEHIND = 3, - ACCENT_ENABLE_ACRYLICBLURBEHIND = 4, -} - -macro_rules! get_function { - ($lib:expr, $func:ident) => { - get_function_impl(concat!($lib, '\0'), concat!(stringify!($func), '\0')) - .map(|f| unsafe { std::mem::transmute::(f) }) }; } -unsafe fn SetWindowCompositionAttribute( - hwnd: HWND, - accent_state: ACCENT_STATE, - color: Option, -) { - type SetWindowCompositionAttribute = - unsafe extern "system" fn(HWND, *mut WINDOWCOMPOSITIONATTRIBDATA) -> BOOL; - - if let Some(set_window_composition_attribute) = - get_function!("user32.dll", SetWindowCompositionAttribute) - { - let mut color = color.unwrap_or_default(); - - let is_acrylic = accent_state == ACCENT_STATE::ACCENT_ENABLE_ACRYLICBLURBEHIND; - if is_acrylic && color.3 == 0 { - // acrylic doesn't like to have 0 alpha - color.3 = 1; - } - - let mut policy = ACCENT_POLICY { - AccentState: accent_state as _, - AccentFlags: if is_acrylic { 0 } else { 2 }, - GradientColor: (color.0 as u32) - | (color.1 as u32) << 8 - | (color.2 as u32) << 16 - | (color.3 as u32) << 24, - AnimationId: 0, - }; - - let mut data = WINDOWCOMPOSITIONATTRIBDATA { - Attrib: 0x13, - pvData: &mut policy as *mut _ as _, - cbData: std::mem::size_of_val(&policy), - }; - - set_window_composition_attribute(hwnd, &mut data as *mut _ as _); - } -} - -#[allow(unused)] -#[repr(C)] -enum DWM_SYSTEMBACKDROP_TYPE { - DWMSBT_DISABLE = 1, // None - DWMSBT_MAINWINDOW = 2, // Mica - DWMSBT_TRANSIENTWINDOW = 3, // Acrylic - DWMSBT_TABBEDWINDOW = 4, // Tabbed -} - -fn is_swca_supported() -> bool { - is_at_least_build(17763) -} - -fn is_undocumented_mica_supported() -> bool { - is_at_least_build(22000) -} - -fn is_backdroptype_supported() -> bool { - is_at_least_build(22523) -} - -fn is_at_least_build(build: u32) -> bool { - let v = windows_version().unwrap_or_default(); - v.2 >= build +pub fn clear_effects(window: impl HasRawWindowHandle) { + window_vibrancy::clear_blur(&window); + window_vibrancy::clear_acrylic(&window); + window_vibrancy::clear_mica(&window); } diff --git a/examples/api/dist/assets/index.js b/examples/api/dist/assets/index.js index fc0d6f2a46e4..faccb05a7793 100644 --- a/examples/api/dist/assets/index.js +++ b/examples/api/dist/assets/index.js @@ -1,10 +1,10 @@ -var Is=Object.defineProperty;var As=(e,t,i)=>t in e?Is(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var ot=(e,t,i)=>(As(e,typeof t!="symbol"?t+"":t,i),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const v of r.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&l(v)}).observe(document,{childList:!0,subtree:!0});function i(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function l(s){if(s.ep)return;s.ep=!0;const r=i(s);fetch(s.href,r)}})();function le(){}function _s(e){return e()}function Yl(){return Object.create(null)}function Ue(e){e.forEach(_s)}function ms(e){return typeof e=="function"}function Bt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ui;function Os(e,t){return e===t?!0:(ui||(ui=document.createElement("a")),ui.href=t,e===ui.href)}function Rs(e){return Object.keys(e).length===0}function Ws(e,...t){if(e==null){for(const l of t)l(void 0);return le}const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Ns(e,t,i){e.$$.on_destroy.push(Ws(t,i))}function n(e,t){e.appendChild(t)}function w(e,t,i){e.insertBefore(t,i||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function jt(e,t){for(let i=0;ie.removeEventListener(t,i,l)}function Kl(e){return function(t){return t.preventDefault(),e.call(this,t)}}function a(e,t,i){i==null?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function q(e){return e===""?null:+e}function Hs(e){return Array.from(e.childNodes)}function ue(e,t){t=""+t,e.data!==t&&(e.data=t)}function T(e,t){e.value=t??""}function Dt(e,t,i,l){i==null?e.style.removeProperty(t):e.style.setProperty(t,i,l?"important":"")}function at(e,t,i){for(let l=0;le.indexOf(l)===-1?t.push(l):i.push(l)),i.forEach(l=>l()),Ft=t}const di=new Set;let wt;function Vs(){wt={r:0,c:[],p:wt}}function Gs(){wt.r||Ue(wt.c),wt=wt.p}function Yi(e,t){e&&e.i&&(di.delete(e),e.i(t))}function Zl(e,t,i,l){if(e&&e.o){if(di.has(e))return;di.add(e),wt.c.push(()=>{di.delete(e),l&&(i&&e.d(1),l())}),e.o(t)}else l&&l()}function Te(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function xl(e){e&&e.c()}function Ki(e,t,i){const{fragment:l,after_update:s}=e.$$;l&&l.m(t,i),vt(()=>{const r=e.$$.on_mount.map(_s).filter(ms);e.$$.on_destroy?e.$$.on_destroy.push(...r):Ue(r),e.$$.on_mount=[]}),s.forEach(vt)}function Ji(e,t){const i=e.$$;i.fragment!==null&&(Bs(i.after_update),Ue(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function Xs(e,t){e.$$.dirty[0]===-1&&(Ut.push(e),Fs(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const M=y.length?y[0]:J;return d.ctx&&s(d.ctx[S],d.ctx[S]=M)&&(!d.skip_bound&&d.bound[S]&&d.bound[S](M),I&&Xs(e,S)),J}):[],d.update(),I=!0,Ue(d.before_update),d.fragment=l?l(d.ctx):!1,t.target){if(t.hydrate){const S=Hs(t.target);d.fragment&&d.fragment.l(S),S.forEach(m)}else d.fragment&&d.fragment.c();t.intro&&Yi(e.$$.fragment),Ki(e,t.target,t.anchor),ys()}sn(g)}class un{constructor(){ot(this,"$$");ot(this,"$$set")}$destroy(){Ji(this,1),this.$destroy=le}$on(t,i){if(!ms(i))return le;const l=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return l.push(i),()=>{const s=l.indexOf(i);s!==-1&&l.splice(s,1)}}$set(t){this.$$set&&!Rs(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ys="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ys);const qt=[];function Ks(e,t=le){let i;const l=new Set;function s(h){if(Bt(e,h)&&(e=h,i)){const g=!qt.length;for(const d of l)d[1](),qt.push(d,e);if(g){for(let d=0;d{l.delete(d),l.size===0&&i&&(i(),i=null)}}return{set:s,update:r,subscribe:v}}var Js=Object.defineProperty,gi=(e,t)=>{for(var i in t)Js(e,i,{get:t[i],enumerable:!0})},ks=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},$l=(e,t,i)=>(ks(e,t,"read from private field"),i?i.call(e):t.get(e)),Qs=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},Zs=(e,t,i,l)=>(ks(e,t,"write to private field"),l?l.call(e,i):t.set(e,i),i),xs={};gi(xs,{Channel:()=>zs,PluginListener:()=>Ls,addPluginListener:()=>$s,convertFileSrc:()=>eo,invoke:()=>b,transformCallback:()=>Zi});function Zi(e,t=!1){return window.__TAURI_INTERNALS__.transformCallback(e,t)}var ln,zs=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,Qs(this,ln,()=>{}),this.id=Zi(t=>{$l(this,ln).call(this,t)})}set onmessage(t){Zs(this,ln,t)}get onmessage(){return $l(this,ln)}toJSON(){return`__CHANNEL__:${this.id}`}};ln=new WeakMap;var Ls=class{constructor(e,t,i){this.plugin=e,this.event=t,this.channelId=i}async unregister(){return b(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};async function $s(e,t,i){let l=new zs;return l.onmessage=i,b(`plugin:${e}|register_listener`,{event:t,handler:l}).then(()=>new Ls(e,t,l.id))}async function b(e,t={},i){return window.__TAURI_INTERNALS__.invoke(e,t,i)}function eo(e,t="asset"){return window.__TAURI_INTERNALS__.convertFileSrc(e,t)}function to(e){let t,i,l,s,r,v;return{c(){t=o("div"),i=o("p"),i.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our +var Is=Object.defineProperty;var As=(e,t,i)=>t in e?Is(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var ot=(e,t,i)=>(As(e,typeof t!="symbol"?t+"":t,i),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const v of r.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&l(v)}).observe(document,{childList:!0,subtree:!0});function i(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function l(s){if(s.ep)return;s.ep=!0;const r=i(s);fetch(s.href,r)}})();function le(){}function _s(e){return e()}function Yl(){return Object.create(null)}function Ue(e){e.forEach(_s)}function ms(e){return typeof e=="function"}function Bt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ui;function Os(e,t){return e===t?!0:(ui||(ui=document.createElement("a")),ui.href=t,e===ui.href)}function Ws(e){return Object.keys(e).length===0}function Rs(e,...t){if(e==null){for(const l of t)l(void 0);return le}const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Ns(e,t,i){e.$$.on_destroy.push(Rs(t,i))}function n(e,t){e.appendChild(t)}function w(e,t,i){e.insertBefore(t,i||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function jt(e,t){for(let i=0;ie.removeEventListener(t,i,l)}function Kl(e){return function(t){return t.preventDefault(),e.call(this,t)}}function a(e,t,i){i==null?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function q(e){return e===""?null:+e}function Hs(e){return Array.from(e.childNodes)}function ue(e,t){t=""+t,e.data!==t&&(e.data=t)}function T(e,t){e.value=t??""}function Dt(e,t,i,l){i==null?e.style.removeProperty(t):e.style.setProperty(t,i,l?"important":"")}function at(e,t,i){for(let l=0;le.indexOf(l)===-1?t.push(l):i.push(l)),i.forEach(l=>l()),Ft=t}const di=new Set;let wt;function Vs(){wt={r:0,c:[],p:wt}}function Gs(){wt.r||Ue(wt.c),wt=wt.p}function Yi(e,t){e&&e.i&&(di.delete(e),e.i(t))}function Zl(e,t,i,l){if(e&&e.o){if(di.has(e))return;di.add(e),wt.c.push(()=>{di.delete(e),l&&(i&&e.d(1),l())}),e.o(t)}else l&&l()}function Te(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function xl(e){e&&e.c()}function Ki(e,t,i){const{fragment:l,after_update:s}=e.$$;l&&l.m(t,i),vt(()=>{const r=e.$$.on_mount.map(_s).filter(ms);e.$$.on_destroy?e.$$.on_destroy.push(...r):Ue(r),e.$$.on_mount=[]}),s.forEach(vt)}function Ji(e,t){const i=e.$$;i.fragment!==null&&(Bs(i.after_update),Ue(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function Xs(e,t){e.$$.dirty[0]===-1&&(Ut.push(e),Fs(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const M=y.length?y[0]:J;return d.ctx&&s(d.ctx[S],d.ctx[S]=M)&&(!d.skip_bound&&d.bound[S]&&d.bound[S](M),I&&Xs(e,S)),J}):[],d.update(),I=!0,Ue(d.before_update),d.fragment=l?l(d.ctx):!1,t.target){if(t.hydrate){const S=Hs(t.target);d.fragment&&d.fragment.l(S),S.forEach(m)}else d.fragment&&d.fragment.c();t.intro&&Yi(e.$$.fragment),Ki(e,t.target,t.anchor),ys()}sn(g)}class un{constructor(){ot(this,"$$");ot(this,"$$set")}$destroy(){Ji(this,1),this.$destroy=le}$on(t,i){if(!ms(i))return le;const l=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return l.push(i),()=>{const s=l.indexOf(i);s!==-1&&l.splice(s,1)}}$set(t){this.$$set&&!Ws(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ys="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ys);const qt=[];function Ks(e,t=le){let i;const l=new Set;function s(h){if(Bt(e,h)&&(e=h,i)){const g=!qt.length;for(const d of l)d[1](),qt.push(d,e);if(g){for(let d=0;d{l.delete(d),l.size===0&&i&&(i(),i=null)}}return{set:s,update:r,subscribe:v}}var Js=Object.defineProperty,gi=(e,t)=>{for(var i in t)Js(e,i,{get:t[i],enumerable:!0})},ks=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},$l=(e,t,i)=>(ks(e,t,"read from private field"),i?i.call(e):t.get(e)),Qs=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},Zs=(e,t,i,l)=>(ks(e,t,"write to private field"),l?l.call(e,i):t.set(e,i),i),xs={};gi(xs,{Channel:()=>zs,PluginListener:()=>Ls,addPluginListener:()=>$s,convertFileSrc:()=>eo,invoke:()=>b,transformCallback:()=>Zi});function Zi(e,t=!1){return window.__TAURI_INTERNALS__.transformCallback(e,t)}var ln,zs=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,Qs(this,ln,()=>{}),this.id=Zi(t=>{$l(this,ln).call(this,t)})}set onmessage(t){Zs(this,ln,t)}get onmessage(){return $l(this,ln)}toJSON(){return`__CHANNEL__:${this.id}`}};ln=new WeakMap;var Ls=class{constructor(e,t,i){this.plugin=e,this.event=t,this.channelId=i}async unregister(){return b(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};async function $s(e,t,i){let l=new zs;return l.onmessage=i,b(`plugin:${e}|register_listener`,{event:t,handler:l}).then(()=>new Ls(e,t,l.id))}async function b(e,t={},i){return window.__TAURI_INTERNALS__.invoke(e,t,i)}function eo(e,t="asset"){return window.__TAURI_INTERNALS__.convertFileSrc(e,t)}function to(e){let t,i,l,s,r,v;return{c(){t=o("div"),i=o("p"),i.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our development process. In the future, this app will be used on Tauri's integration - tests.`,l=c(),s=o("button"),s.textContent="Context menu",a(s,"class","btn")},m(h,g){w(h,t,g),n(t,i),n(t,l),n(t,s),r||(v=z(s,"click",e[0]),r=!0)},p:le,i:le,o:le,d(h){h&&m(t),r=!1,v()}}}function no(e){function t(){b("popup_context_menu")}return[t]}class io extends un{constructor(t){super(),rn(this,t,no,to,Bt,{})}}var lo={};gi(lo,{TauriEvent:()=>Es,emit:()=>xi,listen:()=>_i,once:()=>Cs});var Es=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e))(Es||{});async function Ss(e,t){await b("plugin:event|unlisten",{event:e,eventId:t})}async function _i(e,t,i){return b("plugin:event|listen",{event:e,windowLabel:i==null?void 0:i.target,handler:Zi(t)}).then(l=>async()=>Ss(e,l))}async function Cs(e,t,i){return _i(e,l=>{t(l),Ss(e,l.id).catch(()=>{})},i)}async function xi(e,t,i){await b("plugin:event|emit",{event:e,windowLabel:i==null?void 0:i.target,payload:t})}function so(e){let t,i,l,s,r,v,h,g;return{c(){t=o("div"),i=o("button"),i.textContent="Call Log API",l=c(),s=o("button"),s.textContent="Call Request (async) API",r=c(),v=o("button"),v.textContent="Send event to Rust",a(i,"class","btn"),a(i,"id","log"),a(s,"class","btn"),a(s,"id","request"),a(v,"class","btn"),a(v,"id","event")},m(d,I){w(d,t,I),n(t,i),n(t,l),n(t,s),n(t,r),n(t,v),h||(g=[z(i,"click",e[0]),z(s,"click",e[1]),z(v,"click",e[2])],h=!0)},p:le,i:le,o:le,d(d){d&&m(t),h=!1,Ue(g)}}}function oo(e,t,i){let{onMessage:l}=t,s;hi(async()=>{s=await _i("rust-event",l)}),vs(()=>{s&&s()});function r(){b("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function v(){b("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(l).catch(l)}function h(){xi("js-event","this is the payload string")}return e.$$set=g=>{"onMessage"in g&&i(3,l=g.onMessage)},[r,v,h,l]}class ao extends un{constructor(t){super(),rn(this,t,oo,so,Bt,{onMessage:3})}}var ro={};gi(ro,{LogicalPosition:()=>$i,LogicalSize:()=>an,PhysicalPosition:()=>Ye,PhysicalSize:()=>rt});var an=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},rt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new an(this.width/e,this.height/e)}},$i=class{constructor(t,i){this.type="Logical",this.x=t,this.y=i}},Ye=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new $i(this.x/e,this.y/e)}},uo={};gi(uo,{CloseRequestedEvent:()=>Ps,Effect:()=>pi,EffectState:()=>bi,LogicalPosition:()=>$i,LogicalSize:()=>an,PhysicalPosition:()=>Ye,PhysicalSize:()=>rt,UserAttentionType:()=>el,Window:()=>cn,availableMonitors:()=>ho,currentMonitor:()=>co,getAll:()=>fi,getCurrent:()=>tl,primaryMonitor:()=>fo});var el=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(el||{}),Ps=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}};function tl(){return new cn(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}function fi(){return window.__TAURI_INTERNALS__.metadata.windows.map(e=>new cn(e.label,{skip:!0}))}var es=["tauri://created","tauri://error"],cn=class{constructor(e,t={}){this.label=e,this.listeners=Object.create(null),t!=null&&t.skip||b("plugin:window|create",{options:{...t,label:e}}).then(async()=>this.emit("tauri://created")).catch(async i=>this.emit("tauri://error",i))}static getByLabel(e){return fi().some(t=>t.label===e)?new cn(e,{skip:!0}):null}static getCurrent(){return tl()}static getAll(){return fi()}static async getFocusedWindow(){for(let e of fi())if(await e.isFocused())return e;return null}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let i=this.listeners[e];i.splice(i.indexOf(t),1)}):_i(e,t,{target:this.label})}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let i=this.listeners[e];i.splice(i.indexOf(t),1)}):Cs(e,t,{target:this.label})}async emit(e,t){if(es.includes(e)){for(let i of this.listeners[e]||[])i({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return xi(e,t,{target:this.label})}_handleTauriEvent(e,t){return es.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}async scaleFactor(){return b("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return b("plugin:window|inner_position",{label:this.label}).then(({x:e,y:t})=>new Ye(e,t))}async outerPosition(){return b("plugin:window|outer_position",{label:this.label}).then(({x:e,y:t})=>new Ye(e,t))}async innerSize(){return b("plugin:window|inner_size",{label:this.label}).then(({width:e,height:t})=>new rt(e,t))}async outerSize(){return b("plugin:window|outer_size",{label:this.label}).then(({width:e,height:t})=>new rt(e,t))}async isFullscreen(){return b("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return b("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return b("plugin:window|is_maximized",{label:this.label})}async isFocused(){return b("plugin:window|is_focused",{label:this.label})}async isDecorated(){return b("plugin:window|is_decorated",{label:this.label})}async isResizable(){return b("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return b("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return b("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return b("plugin:window|is_closable",{label:this.label})}async isVisible(){return b("plugin:window|is_visible",{label:this.label})}async title(){return b("plugin:window|title",{label:this.label})}async theme(){return b("plugin:window|theme",{label:this.label})}async center(){return b("plugin:window|center",{label:this.label})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),b("plugin:window|request_user_attention",{label:this.label,value:t})}async setResizable(e){return b("plugin:window|set_resizable",{label:this.label,value:e})}async setMaximizable(e){return b("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return b("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return b("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return b("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return b("plugin:window|maximize",{label:this.label})}async unmaximize(){return b("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return b("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return b("plugin:window|minimize",{label:this.label})}async unminimize(){return b("plugin:window|unminimize",{label:this.label})}async show(){return b("plugin:window|show",{label:this.label})}async hide(){return b("plugin:window|hide",{label:this.label})}async close(){return b("plugin:window|close",{label:this.label})}async setDecorations(e){return b("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return b("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return b("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return b("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return b("plugin:window|set_always_on_top",{label:this.label,value:e})}async setContentProtected(e){return b("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return b("plugin:window|set_size",{label:this.label,value:{type:e.type,data:{width:e.width,height:e.height}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return b("plugin:window|set_min_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return b("plugin:window|set_max_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return b("plugin:window|set_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setFullscreen(e){return b("plugin:window|set_fullscreen",{label:this.label,value:e})}async setFocus(){return b("plugin:window|set_focus",{label:this.label})}async setIcon(e){return b("plugin:window|set_icon",{label:this.label,value:typeof e=="string"?e:Array.from(e)})}async setSkipTaskbar(e){return b("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return b("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return b("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return b("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return b("plugin:window|set_cursor_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setIgnoreCursorEvents(e){return b("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return b("plugin:window|start_dragging",{label:this.label})}async onResized(e){return this.listen("tauri://resize",t=>{t.payload=Ms(t.payload),e(t)})}async onMoved(e){return this.listen("tauri://move",t=>{t.payload=Ts(t.payload),e(t)})}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let i=new Ps(t);Promise.resolve(e(i)).then(()=>{if(!i.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",l=>{e({...l,payload:!0})}),i=await this.listen("tauri://blur",l=>{e({...l,payload:!1})});return()=>{t(),i()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",s=>{e({...s,payload:{type:"drop",paths:s.payload}})}),i=await this.listen("tauri://file-drop-hover",s=>{e({...s,payload:{type:"hover",paths:s.payload}})}),l=await this.listen("tauri://file-drop-cancelled",s=>{e({...s,payload:{type:"cancel"}})});return()=>{t(),i(),l()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},pi=(e=>(e.AppearanceBased="appearanceBased",e.Light="light",e.Dark="dark",e.MediumLight="mediumLight",e.UltraDark="ultraDark",e.Titlebar="titlebar",e.Selection="selection",e.Menu="menu",e.Popover="popover",e.Sidebar="sidebar",e.HeaderView="headerView",e.Sheet="sheet",e.WindowBackground="windowBackground",e.HudWindow="hudWindow",e.FullScreenUI="fullScreenUI",e.Tooltip="tooltip",e.ContentBackground="contentBackground",e.UnderWindowBackground="underWindowBackground",e.UnderPageBackground="underPageBackground",e.Mica="mica",e.Blur="blur",e.Acrylic="acrylic",e))(pi||{}),bi=(e=>(e.FollowsWindowActiveState="followsWindowActiveState",e.Active="active",e.Inactive="inactive",e))(bi||{});function nl(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:Ts(e.position),size:Ms(e.size)}}function Ts(e){return new Ye(e.x,e.y)}function Ms(e){return new rt(e.width,e.height)}async function co(){return b("plugin:window|current_monitor").then(nl)}async function fo(){return b("plugin:window|primary_monitor").then(nl)}async function ho(){return b("plugin:window|available_monitors").then(e=>e.map(nl))}function ts(e,t,i){const l=e.slice();return l[98]=t[i],l}function ns(e,t,i){const l=e.slice();return l[101]=t[i],l}function is(e,t,i){const l=e.slice();return l[104]=t[i],l}function ls(e,t,i){const l=e.slice();return l[107]=t[i],l}function ss(e){let t,i,l,s,r,v,h=Te(Object.keys(e[1])),g=[];for(let d=0;de[55].call(l))},m(d,I){w(d,t,I),w(d,i,I),w(d,l,I),n(l,s);for(let S=0;SEs,emit:()=>xi,listen:()=>_i,once:()=>Cs});var Es=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e))(Es||{});async function Ss(e,t){await b("plugin:event|unlisten",{event:e,eventId:t})}async function _i(e,t,i){return b("plugin:event|listen",{event:e,windowLabel:i==null?void 0:i.target,handler:Zi(t)}).then(l=>async()=>Ss(e,l))}async function Cs(e,t,i){return _i(e,l=>{t(l),Ss(e,l.id).catch(()=>{})},i)}async function xi(e,t,i){await b("plugin:event|emit",{event:e,windowLabel:i==null?void 0:i.target,payload:t})}function so(e){let t,i,l,s,r,v,h,g;return{c(){t=o("div"),i=o("button"),i.textContent="Call Log API",l=c(),s=o("button"),s.textContent="Call Request (async) API",r=c(),v=o("button"),v.textContent="Send event to Rust",a(i,"class","btn"),a(i,"id","log"),a(s,"class","btn"),a(s,"id","request"),a(v,"class","btn"),a(v,"id","event")},m(d,I){w(d,t,I),n(t,i),n(t,l),n(t,s),n(t,r),n(t,v),h||(g=[z(i,"click",e[0]),z(s,"click",e[1]),z(v,"click",e[2])],h=!0)},p:le,i:le,o:le,d(d){d&&m(t),h=!1,Ue(g)}}}function oo(e,t,i){let{onMessage:l}=t,s;hi(async()=>{s=await _i("rust-event",l)}),vs(()=>{s&&s()});function r(){b("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function v(){b("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(l).catch(l)}function h(){xi("js-event","this is the payload string")}return e.$$set=g=>{"onMessage"in g&&i(3,l=g.onMessage)},[r,v,h,l]}class ao extends un{constructor(t){super(),rn(this,t,oo,so,Bt,{onMessage:3})}}var ro={};gi(ro,{LogicalPosition:()=>$i,LogicalSize:()=>an,PhysicalPosition:()=>Ye,PhysicalSize:()=>rt});var an=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},rt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new an(this.width/e,this.height/e)}},$i=class{constructor(t,i){this.type="Logical",this.x=t,this.y=i}},Ye=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new $i(this.x/e,this.y/e)}},uo={};gi(uo,{CloseRequestedEvent:()=>Ps,Effect:()=>pi,EffectState:()=>bi,LogicalPosition:()=>$i,LogicalSize:()=>an,PhysicalPosition:()=>Ye,PhysicalSize:()=>rt,UserAttentionType:()=>el,Window:()=>cn,availableMonitors:()=>ho,currentMonitor:()=>co,getAll:()=>fi,getCurrent:()=>tl,primaryMonitor:()=>fo});var el=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(el||{}),Ps=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}};function tl(){return new cn(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}function fi(){return window.__TAURI_INTERNALS__.metadata.windows.map(e=>new cn(e.label,{skip:!0}))}var es=["tauri://created","tauri://error"],cn=class{constructor(e,t={}){this.label=e,this.listeners=Object.create(null),t!=null&&t.skip||b("plugin:window|create",{options:{...t,label:e}}).then(async()=>this.emit("tauri://created")).catch(async i=>this.emit("tauri://error",i))}static getByLabel(e){return fi().some(t=>t.label===e)?new cn(e,{skip:!0}):null}static getCurrent(){return tl()}static getAll(){return fi()}static async getFocusedWindow(){for(let e of fi())if(await e.isFocused())return e;return null}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let i=this.listeners[e];i.splice(i.indexOf(t),1)}):_i(e,t,{target:this.label})}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let i=this.listeners[e];i.splice(i.indexOf(t),1)}):Cs(e,t,{target:this.label})}async emit(e,t){if(es.includes(e)){for(let i of this.listeners[e]||[])i({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return xi(e,t,{target:this.label})}_handleTauriEvent(e,t){return es.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}async scaleFactor(){return b("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return b("plugin:window|inner_position",{label:this.label}).then(({x:e,y:t})=>new Ye(e,t))}async outerPosition(){return b("plugin:window|outer_position",{label:this.label}).then(({x:e,y:t})=>new Ye(e,t))}async innerSize(){return b("plugin:window|inner_size",{label:this.label}).then(({width:e,height:t})=>new rt(e,t))}async outerSize(){return b("plugin:window|outer_size",{label:this.label}).then(({width:e,height:t})=>new rt(e,t))}async isFullscreen(){return b("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return b("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return b("plugin:window|is_maximized",{label:this.label})}async isFocused(){return b("plugin:window|is_focused",{label:this.label})}async isDecorated(){return b("plugin:window|is_decorated",{label:this.label})}async isResizable(){return b("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return b("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return b("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return b("plugin:window|is_closable",{label:this.label})}async isVisible(){return b("plugin:window|is_visible",{label:this.label})}async title(){return b("plugin:window|title",{label:this.label})}async theme(){return b("plugin:window|theme",{label:this.label})}async center(){return b("plugin:window|center",{label:this.label})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),b("plugin:window|request_user_attention",{label:this.label,value:t})}async setResizable(e){return b("plugin:window|set_resizable",{label:this.label,value:e})}async setMaximizable(e){return b("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return b("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return b("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return b("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return b("plugin:window|maximize",{label:this.label})}async unmaximize(){return b("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return b("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return b("plugin:window|minimize",{label:this.label})}async unminimize(){return b("plugin:window|unminimize",{label:this.label})}async show(){return b("plugin:window|show",{label:this.label})}async hide(){return b("plugin:window|hide",{label:this.label})}async close(){return b("plugin:window|close",{label:this.label})}async setDecorations(e){return b("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return b("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return b("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return b("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return b("plugin:window|set_always_on_top",{label:this.label,value:e})}async setContentProtected(e){return b("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return b("plugin:window|set_size",{label:this.label,value:{type:e.type,data:{width:e.width,height:e.height}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return b("plugin:window|set_min_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return b("plugin:window|set_max_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return b("plugin:window|set_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setFullscreen(e){return b("plugin:window|set_fullscreen",{label:this.label,value:e})}async setFocus(){return b("plugin:window|set_focus",{label:this.label})}async setIcon(e){return b("plugin:window|set_icon",{label:this.label,value:typeof e=="string"?e:Array.from(e)})}async setSkipTaskbar(e){return b("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return b("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return b("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return b("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return b("plugin:window|set_cursor_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setIgnoreCursorEvents(e){return b("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return b("plugin:window|start_dragging",{label:this.label})}async onResized(e){return this.listen("tauri://resize",t=>{t.payload=Ms(t.payload),e(t)})}async onMoved(e){return this.listen("tauri://move",t=>{t.payload=Ts(t.payload),e(t)})}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let i=new Ps(t);Promise.resolve(e(i)).then(()=>{if(!i.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",l=>{e({...l,payload:!0})}),i=await this.listen("tauri://blur",l=>{e({...l,payload:!1})});return()=>{t(),i()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",s=>{e({...s,payload:{type:"drop",paths:s.payload}})}),i=await this.listen("tauri://file-drop-hover",s=>{e({...s,payload:{type:"hover",paths:s.payload}})}),l=await this.listen("tauri://file-drop-cancelled",s=>{e({...s,payload:{type:"cancel"}})});return()=>{t(),i(),l()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},pi=(e=>(e.AppearanceBased="appearanceBased",e.Light="light",e.Dark="dark",e.MediumLight="mediumLight",e.UltraDark="ultraDark",e.Titlebar="titlebar",e.Selection="selection",e.Menu="menu",e.Popover="popover",e.Sidebar="sidebar",e.HeaderView="headerView",e.Sheet="sheet",e.WindowBackground="windowBackground",e.HudWindow="hudWindow",e.FullScreenUI="fullScreenUI",e.Tooltip="tooltip",e.ContentBackground="contentBackground",e.UnderWindowBackground="underWindowBackground",e.UnderPageBackground="underPageBackground",e.Mica="mica",e.Blur="blur",e.Acrylic="acrylic",e.Tabbed="tabbed",e.TabbedDark="tabbedDark",e.TabbedLight="tabbedLight",e))(pi||{}),bi=(e=>(e.FollowsWindowActiveState="followsWindowActiveState",e.Active="active",e.Inactive="inactive",e))(bi||{});function nl(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:Ts(e.position),size:Ms(e.size)}}function Ts(e){return new Ye(e.x,e.y)}function Ms(e){return new rt(e.width,e.height)}async function co(){return b("plugin:window|current_monitor").then(nl)}async function fo(){return b("plugin:window|primary_monitor").then(nl)}async function ho(){return b("plugin:window|available_monitors").then(e=>e.map(nl))}function ts(e,t,i){const l=e.slice();return l[98]=t[i],l}function ns(e,t,i){const l=e.slice();return l[101]=t[i],l}function is(e,t,i){const l=e.slice();return l[104]=t[i],l}function ls(e,t,i){const l=e.slice();return l[107]=t[i],l}function ss(e){let t,i,l,s,r,v,h=Te(Object.keys(e[1])),g=[];for(let d=0;de[55].call(l))},m(d,I){w(d,t,I),w(d,i,I),w(d,l,I),n(l,s);for(let S=0;St in e?Is(e,t,{enumerable:!0,config `),Oe=o("input"),gn=c(),Je=o("div"),zt=o("div"),_n=p(`Min width `),He=o("input"),mn=c(),Lt=o("div"),wn=p(`Min height `),qe=o("input"),vn=c(),Qe=o("div"),Et=o("div"),yn=p(`Max width - `),Re=o("input"),kn=c(),St=o("div"),zn=p(`Max height - `),We=o("input"),Vt=c(),Gt=o("br"),Xt=c(),P=o("div"),Be=o("div"),Ne=o("div"),ut=o("div"),ut.textContent="Inner Size",Yt=c(),ct=o("span"),Kt=p("Width: "),Ct=p(dt),Jt=c(),ft=o("span"),Qt=p("Height: "),Pt=p(ht),Zt=c(),De=o("div"),pt=o("div"),pt.textContent="Outer Size",xt=c(),bt=o("span"),$t=p("Width: "),Tt=p(gt),Ln=c(),En=o("span"),il=p("Height: "),mi=p(Sn),ll=c(),Mt=o("div"),Ze=o("div"),Cn=o("div"),Cn.textContent="Inner Logical Size",sl=c(),Pn=o("span"),ol=p("Width: "),wi=p(Tn),al=c(),Mn=o("span"),rl=p("Height: "),vi=p(In),ul=c(),xe=o("div"),An=o("div"),An.textContent="Outer Logical Size",cl=c(),On=o("span"),dl=p("Width: "),yi=p(Rn),fl=c(),Wn=o("span"),hl=p("Height: "),ki=p(Nn),pl=c(),It=o("div"),$e=o("div"),Dn=o("div"),Dn.textContent="Inner Position",bl=c(),Hn=o("span"),gl=p("x: "),zi=p(qn),_l=c(),Un=o("span"),ml=p("y: "),Li=p(Fn),wl=c(),et=o("div"),jn=o("div"),jn.textContent="Outer Position",vl=c(),Bn=o("span"),yl=p("x: "),Ei=p(Vn),kl=c(),Gn=o("span"),zl=p("y: "),Si=p(Xn),Ll=c(),At=o("div"),tt=o("div"),Yn=o("div"),Yn.textContent="Inner Logical Position",El=c(),Kn=o("span"),Sl=p("x: "),Ci=p(Jn),Cl=c(),Qn=o("span"),Pl=p("y: "),Pi=p(Zn),Tl=c(),nt=o("div"),xn=o("div"),xn.textContent="Outer Logical Position",Ml=c(),$n=o("span"),Il=p("x: "),Ti=p(ei),Al=c(),ti=o("span"),Ol=p("y: "),Mi=p(ni),Ii=c(),Ai=o("br"),Oi=c(),en=o("h4"),en.textContent="Cursor",Ri=c(),Ve=o("div"),ii=o("label"),Ot=o("input"),Rl=p(` - Grab`),Wl=c(),li=o("label"),Rt=o("input"),Nl=p(` - Visible`),Dl=c(),si=o("label"),Wt=o("input"),Hl=p(` - Ignore events`),Wi=c(),Ge=o("div"),oi=o("label"),ql=p(`Icon + `),We=o("input"),kn=c(),St=o("div"),zn=p(`Max height + `),Re=o("input"),Vt=c(),Gt=o("br"),Xt=c(),P=o("div"),Be=o("div"),Ne=o("div"),ut=o("div"),ut.textContent="Inner Size",Yt=c(),ct=o("span"),Kt=p("Width: "),Ct=p(dt),Jt=c(),ft=o("span"),Qt=p("Height: "),Pt=p(ht),Zt=c(),De=o("div"),pt=o("div"),pt.textContent="Outer Size",xt=c(),bt=o("span"),$t=p("Width: "),Tt=p(gt),Ln=c(),En=o("span"),il=p("Height: "),mi=p(Sn),ll=c(),Mt=o("div"),Ze=o("div"),Cn=o("div"),Cn.textContent="Inner Logical Size",sl=c(),Pn=o("span"),ol=p("Width: "),wi=p(Tn),al=c(),Mn=o("span"),rl=p("Height: "),vi=p(In),ul=c(),xe=o("div"),An=o("div"),An.textContent="Outer Logical Size",cl=c(),On=o("span"),dl=p("Width: "),yi=p(Wn),fl=c(),Rn=o("span"),hl=p("Height: "),ki=p(Nn),pl=c(),It=o("div"),$e=o("div"),Dn=o("div"),Dn.textContent="Inner Position",bl=c(),Hn=o("span"),gl=p("x: "),zi=p(qn),_l=c(),Un=o("span"),ml=p("y: "),Li=p(Fn),wl=c(),et=o("div"),jn=o("div"),jn.textContent="Outer Position",vl=c(),Bn=o("span"),yl=p("x: "),Ei=p(Vn),kl=c(),Gn=o("span"),zl=p("y: "),Si=p(Xn),Ll=c(),At=o("div"),tt=o("div"),Yn=o("div"),Yn.textContent="Inner Logical Position",El=c(),Kn=o("span"),Sl=p("x: "),Ci=p(Jn),Cl=c(),Qn=o("span"),Pl=p("y: "),Pi=p(Zn),Tl=c(),nt=o("div"),xn=o("div"),xn.textContent="Outer Logical Position",Ml=c(),$n=o("span"),Il=p("x: "),Ti=p(ei),Al=c(),ti=o("span"),Ol=p("y: "),Mi=p(ni),Ii=c(),Ai=o("br"),Oi=c(),en=o("h4"),en.textContent="Cursor",Wi=c(),Ve=o("div"),ii=o("label"),Ot=o("input"),Wl=p(` + Grab`),Rl=c(),li=o("label"),Wt=o("input"),Nl=p(` + Visible`),Dl=c(),si=o("label"),Rt=o("input"),Hl=p(` + Ignore events`),Ri=c(),Ge=o("div"),oi=o("label"),ql=p(`Icon `),Xe=o("select");for(let u=0;ue[78].call(Xe)),a(it,"class","input"),a(it,"type","number"),a(lt,"class","input"),a(lt,"type","number"),a(Ge,"class","flex gap-2"),a(st,"class","input grow"),a(st,"id","title"),a(nn,"class","btn"),a(nn,"type","submit"),a(_t,"class","flex gap-1"),a(tn,"class","flex flex-col gap-1")},m(u,f){w(u,t,f),w(u,i,f),w(u,l,f),n(l,s),n(l,r),n(l,v),n(v,h),T(h,e[40]),n(v,g),n(v,d),w(u,I,f),w(u,S,f),w(u,J,f),w(u,y,f),n(y,M),n(y,N),n(y,D),n(y,X),n(y,O),n(y,Q),n(y,Y),w(u,K,f),w(u,A,f),n(A,Z),n(Z,se),n(Z,H),H.checked=e[6],n(A,L),n(A,W),n(W,U),n(W,ne),ne.checked=e[2],n(A,j),n(A,B),n(B,ge),n(B,ae),ae.checked=e[3],n(A,_e),n(A,me),n(me,ce),n(me,oe),oe.checked=e[4],n(A,F),n(A,re),n(re,R),n(re,$),$.checked=e[5],n(A,V),n(A,_),n(_,G),n(_,E),E.checked=e[7],n(A,ie),n(A,ke),n(ke,ze),n(ke,de),de.checked=e[8],n(A,Se),n(A,Le),n(Le,Me),n(Le,fe),fe.checked=e[9],n(A,we),n(A,Fe),n(Fe,je),n(Fe,he),he.checked=e[10],w(u,Ce,f),w(u,ee,f),w(u,Ee,f),w(u,be,f),n(be,ve),n(ve,te),n(te,k),n(te,x),T(x,e[17]),n(ve,C),n(ve,Pe),n(Pe,dn),n(Pe,Ie),T(Ie,e[18]),n(be,fn),n(be,Ke),n(Ke,yt),n(yt,hn),n(yt,Ae),T(Ae,e[11]),n(Ke,pn),n(Ke,kt),n(kt,bn),n(kt,Oe),T(Oe,e[12]),n(be,gn),n(be,Je),n(Je,zt),n(zt,_n),n(zt,He),T(He,e[13]),n(Je,mn),n(Je,Lt),n(Lt,wn),n(Lt,qe),T(qe,e[14]),n(be,vn),n(be,Qe),n(Qe,Et),n(Et,yn),n(Et,Re),T(Re,e[15]),n(Qe,kn),n(Qe,St),n(St,zn),n(St,We),T(We,e[16]),w(u,Vt,f),w(u,Gt,f),w(u,Xt,f),w(u,P,f),n(P,Be),n(Be,Ne),n(Ne,ut),n(Ne,Yt),n(Ne,ct),n(ct,Kt),n(ct,Ct),n(Ne,Jt),n(Ne,ft),n(ft,Qt),n(ft,Pt),n(Be,Zt),n(Be,De),n(De,pt),n(De,xt),n(De,bt),n(bt,$t),n(bt,Tt),n(De,Ln),n(De,En),n(En,il),n(En,mi),n(P,ll),n(P,Mt),n(Mt,Ze),n(Ze,Cn),n(Ze,sl),n(Ze,Pn),n(Pn,ol),n(Pn,wi),n(Ze,al),n(Ze,Mn),n(Mn,rl),n(Mn,vi),n(Mt,ul),n(Mt,xe),n(xe,An),n(xe,cl),n(xe,On),n(On,dl),n(On,yi),n(xe,fl),n(xe,Wn),n(Wn,hl),n(Wn,ki),n(P,pl),n(P,It),n(It,$e),n($e,Dn),n($e,bl),n($e,Hn),n(Hn,gl),n(Hn,zi),n($e,_l),n($e,Un),n(Un,ml),n(Un,Li),n(It,wl),n(It,et),n(et,jn),n(et,vl),n(et,Bn),n(Bn,yl),n(Bn,Ei),n(et,kl),n(et,Gn),n(Gn,zl),n(Gn,Si),n(P,Ll),n(P,At),n(At,tt),n(tt,Yn),n(tt,El),n(tt,Kn),n(Kn,Sl),n(Kn,Ci),n(tt,Cl),n(tt,Qn),n(Qn,Pl),n(Qn,Pi),n(At,Tl),n(At,nt),n(nt,xn),n(nt,Ml),n(nt,$n),n($n,Il),n($n,Ti),n(nt,Al),n(nt,ti),n(ti,Ol),n(ti,Mi),w(u,Ii,f),w(u,Ai,f),w(u,Oi,f),w(u,en,f),w(u,Ri,f),w(u,Ve,f),n(Ve,ii),n(ii,Ot),Ot.checked=e[19],n(ii,Rl),n(Ve,Wl),n(Ve,li),n(li,Rt),Rt.checked=e[20],n(li,Nl),n(Ve,Dl),n(Ve,si),n(si,Wt),Wt.checked=e[24],n(si,Hl),w(u,Wi,f),w(u,Ge,f),n(Ge,oi),n(oi,ql),n(oi,Xe);for(let pe=0;pee[78].call(Xe)),a(it,"class","input"),a(it,"type","number"),a(lt,"class","input"),a(lt,"type","number"),a(Ge,"class","flex gap-2"),a(st,"class","input grow"),a(st,"id","title"),a(nn,"class","btn"),a(nn,"type","submit"),a(_t,"class","flex gap-1"),a(tn,"class","flex flex-col gap-1")},m(u,f){w(u,t,f),w(u,i,f),w(u,l,f),n(l,s),n(l,r),n(l,v),n(v,h),T(h,e[40]),n(v,g),n(v,d),w(u,I,f),w(u,S,f),w(u,J,f),w(u,y,f),n(y,M),n(y,N),n(y,D),n(y,X),n(y,O),n(y,Q),n(y,Y),w(u,K,f),w(u,A,f),n(A,Z),n(Z,se),n(Z,H),H.checked=e[6],n(A,L),n(A,R),n(R,U),n(R,ne),ne.checked=e[2],n(A,j),n(A,B),n(B,ge),n(B,ae),ae.checked=e[3],n(A,_e),n(A,me),n(me,ce),n(me,oe),oe.checked=e[4],n(A,F),n(A,re),n(re,W),n(re,$),$.checked=e[5],n(A,V),n(A,_),n(_,G),n(_,E),E.checked=e[7],n(A,ie),n(A,ke),n(ke,ze),n(ke,de),de.checked=e[8],n(A,Se),n(A,Le),n(Le,Me),n(Le,fe),fe.checked=e[9],n(A,we),n(A,Fe),n(Fe,je),n(Fe,he),he.checked=e[10],w(u,Ce,f),w(u,ee,f),w(u,Ee,f),w(u,be,f),n(be,ve),n(ve,te),n(te,k),n(te,x),T(x,e[17]),n(ve,C),n(ve,Pe),n(Pe,dn),n(Pe,Ie),T(Ie,e[18]),n(be,fn),n(be,Ke),n(Ke,yt),n(yt,hn),n(yt,Ae),T(Ae,e[11]),n(Ke,pn),n(Ke,kt),n(kt,bn),n(kt,Oe),T(Oe,e[12]),n(be,gn),n(be,Je),n(Je,zt),n(zt,_n),n(zt,He),T(He,e[13]),n(Je,mn),n(Je,Lt),n(Lt,wn),n(Lt,qe),T(qe,e[14]),n(be,vn),n(be,Qe),n(Qe,Et),n(Et,yn),n(Et,We),T(We,e[15]),n(Qe,kn),n(Qe,St),n(St,zn),n(St,Re),T(Re,e[16]),w(u,Vt,f),w(u,Gt,f),w(u,Xt,f),w(u,P,f),n(P,Be),n(Be,Ne),n(Ne,ut),n(Ne,Yt),n(Ne,ct),n(ct,Kt),n(ct,Ct),n(Ne,Jt),n(Ne,ft),n(ft,Qt),n(ft,Pt),n(Be,Zt),n(Be,De),n(De,pt),n(De,xt),n(De,bt),n(bt,$t),n(bt,Tt),n(De,Ln),n(De,En),n(En,il),n(En,mi),n(P,ll),n(P,Mt),n(Mt,Ze),n(Ze,Cn),n(Ze,sl),n(Ze,Pn),n(Pn,ol),n(Pn,wi),n(Ze,al),n(Ze,Mn),n(Mn,rl),n(Mn,vi),n(Mt,ul),n(Mt,xe),n(xe,An),n(xe,cl),n(xe,On),n(On,dl),n(On,yi),n(xe,fl),n(xe,Rn),n(Rn,hl),n(Rn,ki),n(P,pl),n(P,It),n(It,$e),n($e,Dn),n($e,bl),n($e,Hn),n(Hn,gl),n(Hn,zi),n($e,_l),n($e,Un),n(Un,ml),n(Un,Li),n(It,wl),n(It,et),n(et,jn),n(et,vl),n(et,Bn),n(Bn,yl),n(Bn,Ei),n(et,kl),n(et,Gn),n(Gn,zl),n(Gn,Si),n(P,Ll),n(P,At),n(At,tt),n(tt,Yn),n(tt,El),n(tt,Kn),n(Kn,Sl),n(Kn,Ci),n(tt,Cl),n(tt,Qn),n(Qn,Pl),n(Qn,Pi),n(At,Tl),n(At,nt),n(nt,xn),n(nt,Ml),n(nt,$n),n($n,Il),n($n,Ti),n(nt,Al),n(nt,ti),n(ti,Ol),n(ti,Mi),w(u,Ii,f),w(u,Ai,f),w(u,Oi,f),w(u,en,f),w(u,Wi,f),w(u,Ve,f),n(Ve,ii),n(ii,Ot),Ot.checked=e[19],n(ii,Wl),n(Ve,Rl),n(Ve,li),n(li,Wt),Wt.checked=e[20],n(li,Nl),n(Ve,Dl),n(Ve,si),n(si,Rt),Rt.checked=e[24],n(si,Hl),w(u,Ri,f),w(u,Ge,f),n(Ge,oi),n(oi,ql),n(oi,Xe);for(let pe=0;pee[82].call(r)),a(d,"class","input"),e[34]===void 0&&vt(()=>e[83].call(d)),a(y,"class","input"),a(y,"type","number"),a(i,"class","flex"),Dt(Q,"max-width","120px"),a(Q,"class","input"),a(Q,"type","number"),a(Q,"placeholder","R"),Dt(K,"max-width","120px"),a(K,"class","input"),a(K,"type","number"),a(K,"placeholder","G"),Dt(Z,"max-width","120px"),a(Z,"class","input"),a(Z,"type","number"),a(Z,"placeholder","B"),Dt(H,"max-width","120px"),a(H,"class","input"),a(H,"type","number"),a(H,"placeholder","A"),a(O,"class","flex"),a(N,"class","flex"),a(U,"class","btn"),Dt(U,"width","80px"),a(W,"class","flex"),a(ce,"class","btn"),Dt(ce,"width","80px"),a(j,"class","flex"),a(t,"class","flex flex-col gap-1")},m(_,G){w(_,t,G),n(t,i),n(i,l),n(l,s),n(l,r);for(let E=0;E=1,I,S,J,y=d&&ss(e),M=e[1][e[0]]&&as(e);return{c(){t=o("div"),i=o("div"),l=o("input"),s=c(),r=o("button"),r.textContent="New window",v=c(),h=o("br"),g=c(),y&&y.c(),I=c(),M&&M.c(),a(l,"class","input grow"),a(l,"type","text"),a(l,"placeholder","New Window label.."),a(r,"class","btn"),a(i,"class","flex gap-1"),a(t,"class","flex flex-col children:grow gap-2")},m(N,D){w(N,t,D),n(t,i),n(i,l),T(l,e[25]),n(i,s),n(i,r),n(t,v),n(t,h),n(t,g),y&&y.m(t,null),n(t,I),M&&M.m(t,null),S||(J=[z(l,"input",e[54]),z(r,"click",e[49])],S=!0)},p(N,D){D[0]&33554432&&l.value!==N[25]&&T(l,N[25]),D[0]&2&&(d=Object.keys(N[1]).length>=1),d?y?y.p(N,D):(y=ss(N),y.c(),y.m(t,I)):y&&(y.d(1),y=null),N[1][N[0]]?M?M.p(N,D):(M=as(N),M.c(),M.m(t,null)):M&&(M.d(1),M=null)},i:le,o:le,d(N){N&&m(t),y&&y.d(),M&&M.d(),S=!1,Ue(J)}}}function go(e,t,i){const l=tl();let s=l.label;const r={[l.label]:l},v=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"],h=["mica","blur","acrylic"],g=navigator.appVersion.includes("windows"),d=navigator.appVersion.includes("macos");let I=g?h:Object.keys(pi).map(P=>pi[P]).filter(P=>!h.includes(P));const S=Object.keys(bi).map(P=>bi[P]);let{onMessage:J}=t;const y=document.querySelector("main");let M,N=!0,D=!0,X=!0,O=!0,Q=!1,Y=!0,K=!1,A=!0,Z=!1,se=null,H=null,L=null,W=null,U=null,ne=null,j=null,B=null,ge=1,ae=new Ye(j,B),_e=new Ye(j,B),me=new rt(se,H),ce=new rt(se,H),oe,F,re=!1,R=!0,$=null,V=null,_="default",G=!1,E="Awesome Tauri Example!",ie=[],ke,ze,de,Se,Le,Me,fe,we;function Fe(){r[s].setTitle(E)}function je(){r[s].hide(),setTimeout(r[s].show,2e3)}function he(){r[s].minimize(),setTimeout(r[s].unminimize,2e3)}function Ce(){if(!M)return;const P=new cn(M);i(1,r[M]=P,r),P.once("tauri://error",function(){J("Error creating new webview")})}function ee(){r[s].innerSize().then(P=>{i(29,me=P),i(11,se=me.width),i(12,H=me.height)}),r[s].outerSize().then(P=>{i(30,ce=P)})}function Ee(){r[s].innerPosition().then(P=>{i(27,ae=P)}),r[s].outerPosition().then(P=>{i(28,_e=P),i(17,j=_e.x),i(18,B=_e.y)})}async function be(P){P&&(oe&&oe(),F&&F(),F=await P.listen("tauri://move",Ee),oe=await P.listen("tauri://resize",ee))}async function ve(){await r[s].minimize(),await r[s].requestUserAttention(el.Critical),await new Promise(P=>setTimeout(P,3e3)),await r[s].requestUserAttention(null)}async function te(){ie.includes(ke)||i(32,ie=[...ie,ke]);const P={effects:ie,state:ze,radius:de};Number.isInteger(Se)&&Number.isInteger(Le)&&Number.isInteger(Me)&&Number.isInteger(fe)&&(P.color=[Se,Le,Me,fe]),y.classList.remove("bg-primary"),y.classList.remove("dark:bg-darkPrimary"),await r[s].clearEffects(),await r[s].setEffects(P)}async function k(){i(32,ie=[]),await r[s].clearEffects(),y.classList.add("bg-primary"),y.classList.add("dark:bg-darkPrimary")}function x(){M=this.value,i(25,M)}function C(){s=ci(this),i(0,s),i(1,r)}function Pe(){we=this.value,i(40,we)}const dn=()=>r[s].center();function Ie(){Q=this.checked,i(6,Q)}function fn(){N=this.checked,i(2,N)}function Ke(){D=this.checked,i(3,D)}function yt(){X=this.checked,i(4,X)}function hn(){O=this.checked,i(5,O)}function Ae(){Y=this.checked,i(7,Y)}function pn(){K=this.checked,i(8,K)}function kt(){A=this.checked,i(9,A)}function bn(){Z=this.checked,i(10,Z)}function Oe(){j=q(this.value),i(17,j)}function gn(){B=q(this.value),i(18,B)}function Je(){se=q(this.value),i(11,se)}function zt(){H=q(this.value),i(12,H)}function _n(){L=q(this.value),i(13,L)}function He(){W=q(this.value),i(14,W)}function mn(){U=q(this.value),i(15,U)}function Lt(){ne=q(this.value),i(16,ne)}function wn(){re=this.checked,i(19,re)}function qe(){R=this.checked,i(20,R)}function vn(){G=this.checked,i(24,G)}function Qe(){_=ci(this),i(23,_),i(41,v)}function Et(){$=q(this.value),i(21,$)}function yn(){V=q(this.value),i(22,V)}function Re(){E=this.value,i(31,E)}function kn(){ke=ci(this),i(33,ke),i(44,I)}function St(){ze=ci(this),i(34,ze),i(45,S)}function zn(){de=q(this.value),i(35,de)}function We(){Se=q(this.value),i(36,Se)}function Vt(){Le=q(this.value),i(37,Le)}function Gt(){Me=q(this.value),i(38,Me)}function Xt(){fe=q(this.value),i(39,fe)}return e.$$set=P=>{"onMessage"in P&&i(53,J=P.onMessage)},e.$$.update=()=>{var P,Be,Ne,ut,Yt,ct,Kt,dt,Ct,Jt,ft,Qt,ht,Pt,Zt,De,pt,xt,bt,$t,gt,Tt;e.$$.dirty[0]&3&&(r[s],Ee(),ee()),e.$$.dirty[0]&7&&((P=r[s])==null||P.setResizable(N)),e.$$.dirty[0]&11&&((Be=r[s])==null||Be.setMaximizable(D)),e.$$.dirty[0]&19&&((Ne=r[s])==null||Ne.setMinimizable(X)),e.$$.dirty[0]&35&&((ut=r[s])==null||ut.setClosable(O)),e.$$.dirty[0]&67&&(Q?(Yt=r[s])==null||Yt.maximize():(ct=r[s])==null||ct.unmaximize()),e.$$.dirty[0]&131&&((Kt=r[s])==null||Kt.setDecorations(Y)),e.$$.dirty[0]&259&&((dt=r[s])==null||dt.setAlwaysOnTop(K)),e.$$.dirty[0]&515&&((Ct=r[s])==null||Ct.setContentProtected(A)),e.$$.dirty[0]&1027&&((Jt=r[s])==null||Jt.setFullscreen(Z)),e.$$.dirty[0]&6147&&se&&H&&((ft=r[s])==null||ft.setSize(new rt(se,H))),e.$$.dirty[0]&24579&&(L&&W?(Qt=r[s])==null||Qt.setMinSize(new an(L,W)):(ht=r[s])==null||ht.setMinSize(null)),e.$$.dirty[0]&98307&&(U>800&&ne>400?(Pt=r[s])==null||Pt.setMaxSize(new an(U,ne)):(Zt=r[s])==null||Zt.setMaxSize(null)),e.$$.dirty[0]&393219&&j!==null&&B!==null&&((De=r[s])==null||De.setPosition(new Ye(j,B))),e.$$.dirty[0]&3&&((pt=r[s])==null||pt.scaleFactor().then(Ln=>i(26,ge=Ln))),e.$$.dirty[0]&3&&be(r[s]),e.$$.dirty[0]&524291&&((xt=r[s])==null||xt.setCursorGrab(re)),e.$$.dirty[0]&1048579&&((bt=r[s])==null||bt.setCursorVisible(R)),e.$$.dirty[0]&8388611&&(($t=r[s])==null||$t.setCursorIcon(_)),e.$$.dirty[0]&6291459&&$!==null&&V!==null&&((gt=r[s])==null||gt.setCursorPosition(new Ye($,V))),e.$$.dirty[0]&16777219&&((Tt=r[s])==null||Tt.setIgnoreCursorEvents(G))},[s,r,N,D,X,O,Q,Y,K,A,Z,se,H,L,W,U,ne,j,B,re,R,$,V,_,G,M,ge,ae,_e,me,ce,E,ie,ke,ze,de,Se,Le,Me,fe,we,v,g,d,I,S,Fe,je,he,Ce,ve,te,k,J,x,C,Pe,dn,Ie,fn,Ke,yt,hn,Ae,pn,kt,bn,Oe,gn,Je,zt,_n,He,mn,Lt,wn,qe,vn,Qe,Et,yn,Re,kn,St,zn,We,Vt,Gt,Xt]}class _o extends un{constructor(t){super(),rn(this,t,go,bo,Bt,{onMessage:53},null,[-1,-1,-1,-1])}}function mo(e){let t;return{c(){t=o("div"),t.innerHTML='
Not available for Linux
',a(t,"class","flex flex-col gap-2")},m(i,l){w(i,t,l)},p:le,i:le,o:le,d(i){i&&m(t)}}}function wo(e,t,i){let{onMessage:l}=t;const s=window.constraints={audio:!0,video:!0};function r(h){const g=document.querySelector("video"),d=h.getVideoTracks();l("Got stream with constraints:",s),l(`Using video device: ${d[0].label}`),window.stream=h,g.srcObject=h}function v(h){if(h.name==="ConstraintNotSatisfiedError"){const g=s.video;l(`The resolution ${g.width.exact}x${g.height.exact} px is not supported by your device.`)}else h.name==="PermissionDeniedError"&&l("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");l(`getUserMedia error: ${h.name}`,h)}return hi(async()=>{try{const h=await navigator.mediaDevices.getUserMedia(s);r(h)}catch(h){v(h)}}),vs(()=>{window.stream.getTracks().forEach(function(h){h.stop()})}),e.$$set=h=>{"onMessage"in h&&i(0,l=h.onMessage)},[l]}class vo extends un{constructor(t){super(),rn(this,t,wo,mo,Bt,{onMessage:0})}}function ds(e,t,i){const l=e.slice();return l[23]=t[i],l}function fs(e,t,i){const l=e.slice();return l[26]=t[i],l}function yo(e){let t;return{c(){t=o("span"),a(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(i,l){w(i,t,l)},d(i){i&&m(t)}}}function ko(e){let t;return{c(){t=o("span"),a(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(i,l){w(i,t,l)},d(i){i&&m(t)}}}function zo(e){let t,i;return{c(){t=p(`Switch to Dark mode + `),O=o("div"),Q=o("input"),Y=c(),K=o("input"),A=c(),Z=o("input"),se=c(),H=o("input"),L=c(),R=o("div"),U=o("button"),U.textContent="Add",ne=c(),j=o("div"),B=o("div"),ge=p("Applied effects: "),_e=p(ae),me=c(),ce=o("button"),ce.textContent="Clear",a(r,"class","input"),e[33]===void 0&&vt(()=>e[82].call(r)),a(d,"class","input"),e[34]===void 0&&vt(()=>e[83].call(d)),a(y,"class","input"),a(y,"type","number"),a(i,"class","flex"),Dt(Q,"max-width","120px"),a(Q,"class","input"),a(Q,"type","number"),a(Q,"placeholder","R"),Dt(K,"max-width","120px"),a(K,"class","input"),a(K,"type","number"),a(K,"placeholder","G"),Dt(Z,"max-width","120px"),a(Z,"class","input"),a(Z,"type","number"),a(Z,"placeholder","B"),Dt(H,"max-width","120px"),a(H,"class","input"),a(H,"type","number"),a(H,"placeholder","A"),a(O,"class","flex"),a(N,"class","flex"),a(U,"class","btn"),Dt(U,"width","80px"),a(R,"class","flex"),a(ce,"class","btn"),Dt(ce,"width","80px"),a(j,"class","flex"),a(t,"class","flex flex-col gap-1")},m(_,G){w(_,t,G),n(t,i),n(i,l),n(l,s),n(l,r);for(let E=0;E=1,I,S,J,y=d&&ss(e),M=e[1][e[0]]&&as(e);return{c(){t=o("div"),i=o("div"),l=o("input"),s=c(),r=o("button"),r.textContent="New window",v=c(),h=o("br"),g=c(),y&&y.c(),I=c(),M&&M.c(),a(l,"class","input grow"),a(l,"type","text"),a(l,"placeholder","New Window label.."),a(r,"class","btn"),a(i,"class","flex gap-1"),a(t,"class","flex flex-col children:grow gap-2")},m(N,D){w(N,t,D),n(t,i),n(i,l),T(l,e[25]),n(i,s),n(i,r),n(t,v),n(t,h),n(t,g),y&&y.m(t,null),n(t,I),M&&M.m(t,null),S||(J=[z(l,"input",e[54]),z(r,"click",e[49])],S=!0)},p(N,D){D[0]&33554432&&l.value!==N[25]&&T(l,N[25]),D[0]&2&&(d=Object.keys(N[1]).length>=1),d?y?y.p(N,D):(y=ss(N),y.c(),y.m(t,I)):y&&(y.d(1),y=null),N[1][N[0]]?M?M.p(N,D):(M=as(N),M.c(),M.m(t,null)):M&&(M.d(1),M=null)},i:le,o:le,d(N){N&&m(t),y&&y.d(),M&&M.d(),S=!1,Ue(J)}}}function go(e,t,i){const l=tl();let s=l.label;const r={[l.label]:l},v=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"],h=["mica","blur","acrylic","tabbed","tabbedDark","tabbedLight"],g=navigator.appVersion.includes("Windows"),d=navigator.appVersion.includes("Macintosh");let I=g?h:Object.keys(pi).map(P=>pi[P]).filter(P=>!h.includes(P));const S=Object.keys(bi).map(P=>bi[P]);let{onMessage:J}=t;const y=document.querySelector("main");let M,N=!0,D=!0,X=!0,O=!0,Q=!1,Y=!0,K=!1,A=!0,Z=!1,se=null,H=null,L=null,R=null,U=null,ne=null,j=null,B=null,ge=1,ae=new Ye(j,B),_e=new Ye(j,B),me=new rt(se,H),ce=new rt(se,H),oe,F,re=!1,W=!0,$=null,V=null,_="default",G=!1,E="Awesome Tauri Example!",ie=[],ke,ze,de,Se,Le,Me,fe,we;function Fe(){r[s].setTitle(E)}function je(){r[s].hide(),setTimeout(r[s].show,2e3)}function he(){r[s].minimize(),setTimeout(r[s].unminimize,2e3)}function Ce(){if(!M)return;const P=new cn(M);i(1,r[M]=P,r),P.once("tauri://error",function(){J("Error creating new webview")})}function ee(){r[s].innerSize().then(P=>{i(29,me=P),i(11,se=me.width),i(12,H=me.height)}),r[s].outerSize().then(P=>{i(30,ce=P)})}function Ee(){r[s].innerPosition().then(P=>{i(27,ae=P)}),r[s].outerPosition().then(P=>{i(28,_e=P),i(17,j=_e.x),i(18,B=_e.y)})}async function be(P){P&&(oe&&oe(),F&&F(),F=await P.listen("tauri://move",Ee),oe=await P.listen("tauri://resize",ee))}async function ve(){await r[s].minimize(),await r[s].requestUserAttention(el.Critical),await new Promise(P=>setTimeout(P,3e3)),await r[s].requestUserAttention(null)}async function te(){ie.includes(ke)||i(32,ie=[...ie,ke]);const P={effects:ie,state:ze,radius:de};Number.isInteger(Se)&&Number.isInteger(Le)&&Number.isInteger(Me)&&Number.isInteger(fe)&&(P.color=[Se,Le,Me,fe]),y.classList.remove("bg-primary"),y.classList.remove("dark:bg-darkPrimary"),await r[s].clearEffects(),await r[s].setEffects(P)}async function k(){i(32,ie=[]),await r[s].clearEffects(),y.classList.add("bg-primary"),y.classList.add("dark:bg-darkPrimary")}function x(){M=this.value,i(25,M)}function C(){s=ci(this),i(0,s),i(1,r)}function Pe(){we=this.value,i(40,we)}const dn=()=>r[s].center();function Ie(){Q=this.checked,i(6,Q)}function fn(){N=this.checked,i(2,N)}function Ke(){D=this.checked,i(3,D)}function yt(){X=this.checked,i(4,X)}function hn(){O=this.checked,i(5,O)}function Ae(){Y=this.checked,i(7,Y)}function pn(){K=this.checked,i(8,K)}function kt(){A=this.checked,i(9,A)}function bn(){Z=this.checked,i(10,Z)}function Oe(){j=q(this.value),i(17,j)}function gn(){B=q(this.value),i(18,B)}function Je(){se=q(this.value),i(11,se)}function zt(){H=q(this.value),i(12,H)}function _n(){L=q(this.value),i(13,L)}function He(){R=q(this.value),i(14,R)}function mn(){U=q(this.value),i(15,U)}function Lt(){ne=q(this.value),i(16,ne)}function wn(){re=this.checked,i(19,re)}function qe(){W=this.checked,i(20,W)}function vn(){G=this.checked,i(24,G)}function Qe(){_=ci(this),i(23,_),i(41,v)}function Et(){$=q(this.value),i(21,$)}function yn(){V=q(this.value),i(22,V)}function We(){E=this.value,i(31,E)}function kn(){ke=ci(this),i(33,ke),i(44,I)}function St(){ze=ci(this),i(34,ze),i(45,S)}function zn(){de=q(this.value),i(35,de)}function Re(){Se=q(this.value),i(36,Se)}function Vt(){Le=q(this.value),i(37,Le)}function Gt(){Me=q(this.value),i(38,Me)}function Xt(){fe=q(this.value),i(39,fe)}return e.$$set=P=>{"onMessage"in P&&i(53,J=P.onMessage)},e.$$.update=()=>{var P,Be,Ne,ut,Yt,ct,Kt,dt,Ct,Jt,ft,Qt,ht,Pt,Zt,De,pt,xt,bt,$t,gt,Tt;e.$$.dirty[0]&3&&(r[s],Ee(),ee()),e.$$.dirty[0]&7&&((P=r[s])==null||P.setResizable(N)),e.$$.dirty[0]&11&&((Be=r[s])==null||Be.setMaximizable(D)),e.$$.dirty[0]&19&&((Ne=r[s])==null||Ne.setMinimizable(X)),e.$$.dirty[0]&35&&((ut=r[s])==null||ut.setClosable(O)),e.$$.dirty[0]&67&&(Q?(Yt=r[s])==null||Yt.maximize():(ct=r[s])==null||ct.unmaximize()),e.$$.dirty[0]&131&&((Kt=r[s])==null||Kt.setDecorations(Y)),e.$$.dirty[0]&259&&((dt=r[s])==null||dt.setAlwaysOnTop(K)),e.$$.dirty[0]&515&&((Ct=r[s])==null||Ct.setContentProtected(A)),e.$$.dirty[0]&1027&&((Jt=r[s])==null||Jt.setFullscreen(Z)),e.$$.dirty[0]&6147&&se&&H&&((ft=r[s])==null||ft.setSize(new rt(se,H))),e.$$.dirty[0]&24579&&(L&&R?(Qt=r[s])==null||Qt.setMinSize(new an(L,R)):(ht=r[s])==null||ht.setMinSize(null)),e.$$.dirty[0]&98307&&(U>800&&ne>400?(Pt=r[s])==null||Pt.setMaxSize(new an(U,ne)):(Zt=r[s])==null||Zt.setMaxSize(null)),e.$$.dirty[0]&393219&&j!==null&&B!==null&&((De=r[s])==null||De.setPosition(new Ye(j,B))),e.$$.dirty[0]&3&&((pt=r[s])==null||pt.scaleFactor().then(Ln=>i(26,ge=Ln))),e.$$.dirty[0]&3&&be(r[s]),e.$$.dirty[0]&524291&&((xt=r[s])==null||xt.setCursorGrab(re)),e.$$.dirty[0]&1048579&&((bt=r[s])==null||bt.setCursorVisible(W)),e.$$.dirty[0]&8388611&&(($t=r[s])==null||$t.setCursorIcon(_)),e.$$.dirty[0]&6291459&&$!==null&&V!==null&&((gt=r[s])==null||gt.setCursorPosition(new Ye($,V))),e.$$.dirty[0]&16777219&&((Tt=r[s])==null||Tt.setIgnoreCursorEvents(G))},[s,r,N,D,X,O,Q,Y,K,A,Z,se,H,L,R,U,ne,j,B,re,W,$,V,_,G,M,ge,ae,_e,me,ce,E,ie,ke,ze,de,Se,Le,Me,fe,we,v,g,d,I,S,Fe,je,he,Ce,ve,te,k,J,x,C,Pe,dn,Ie,fn,Ke,yt,hn,Ae,pn,kt,bn,Oe,gn,Je,zt,_n,He,mn,Lt,wn,qe,vn,Qe,Et,yn,We,kn,St,zn,Re,Vt,Gt,Xt]}class _o extends un{constructor(t){super(),rn(this,t,go,bo,Bt,{onMessage:53},null,[-1,-1,-1,-1])}}function mo(e){let t;return{c(){t=o("div"),t.innerHTML='
Not available for Linux
',a(t,"class","flex flex-col gap-2")},m(i,l){w(i,t,l)},p:le,i:le,o:le,d(i){i&&m(t)}}}function wo(e,t,i){let{onMessage:l}=t;const s=window.constraints={audio:!0,video:!0};function r(h){const g=document.querySelector("video"),d=h.getVideoTracks();l("Got stream with constraints:",s),l(`Using video device: ${d[0].label}`),window.stream=h,g.srcObject=h}function v(h){if(h.name==="ConstraintNotSatisfiedError"){const g=s.video;l(`The resolution ${g.width.exact}x${g.height.exact} px is not supported by your device.`)}else h.name==="PermissionDeniedError"&&l("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");l(`getUserMedia error: ${h.name}`,h)}return hi(async()=>{try{const h=await navigator.mediaDevices.getUserMedia(s);r(h)}catch(h){v(h)}}),vs(()=>{window.stream.getTracks().forEach(function(h){h.stop()})}),e.$$set=h=>{"onMessage"in h&&i(0,l=h.onMessage)},[l]}class vo extends un{constructor(t){super(),rn(this,t,wo,mo,Bt,{onMessage:0})}}function ds(e,t,i){const l=e.slice();return l[23]=t[i],l}function fs(e,t,i){const l=e.slice();return l[26]=t[i],l}function yo(e){let t;return{c(){t=o("span"),a(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(i,l){w(i,t,l)},d(i){i&&m(t)}}}function ko(e){let t;return{c(){t=o("span"),a(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(i,l){w(i,t,l)},d(i){i&&m(t)}}}function zo(e){let t,i;return{c(){t=p(`Switch to Dark mode `),i=o("div"),a(i,"class","i-ph-moon")},m(l,s){w(l,t,s),w(l,i,s)},d(l){l&&(m(t),m(i))}}}function Lo(e){let t,i;return{c(){t=p(`Switch to Light mode - `),i=o("div"),a(i,"class","i-ph-sun")},m(l,s){w(l,t,s),w(l,i,s)},d(l){l&&(m(t),m(i))}}}function Eo(e){let t,i,l,s,r,v,h;function g(){return e[14](e[26])}return{c(){t=o("a"),i=o("div"),l=c(),s=o("p"),s.textContent=`${e[26].label}`,a(i,"class",e[26].icon+" mr-2"),a(t,"href","##"),a(t,"class",r="nv "+(e[1]===e[26]?"nv_selected":""))},m(d,I){w(d,t,I),n(t,i),n(t,l),n(t,s),v||(h=z(t,"click",g),v=!0)},p(d,I){e=d,I&2&&r!==(r="nv "+(e[1]===e[26]?"nv_selected":""))&&a(t,"class",r)},d(d){d&&m(t),v=!1,h()}}}function hs(e){let t,i=e[26]&&Eo(e);return{c(){i&&i.c(),t=Qi()},m(l,s){i&&i.m(l,s),w(l,t,s)},p(l,s){l[26]&&i.p(l,s)},d(l){l&&m(t),i&&i.d(l)}}}function ps(e){let t,i=e[23].html+"",l;return{c(){t=new qs(!1),l=Qi(),t.a=l},m(s,r){t.m(i,s,r),w(s,l,r)},p(s,r){r&16&&i!==(i=s[23].html+"")&&t.p(i)},d(s){s&&(m(l),t.d())}}}function So(e){let t,i,l,s,r,v,h,g,d,I,S,J,y,M,N,D,X,O,Q,Y,K,A,Z,se,H,L,W,U,ne,j,B,ge,ae=e[1].label+"",_e,me,ce,oe,F,re,R,$,V,_,G,E,ie,ke,ze,de,Se,Le;function Me(k,x){return k[0]?ko:yo}let fe=Me(e),we=fe(e);function Fe(k,x){return k[2]?Lo:zo}let je=Fe(e),he=je(e),Ce=Te(e[5]),ee=[];for(let k=0;k`,X=c(),O=o("a"),O.innerHTML=`GitHub `,Q=c(),Y=o("a"),Y.innerHTML=`Source - `,K=c(),A=o("br"),Z=c(),se=o("div"),H=c(),L=o("br"),W=c(),U=o("div");for(let k=0;k',ke=c(),ze=o("div");for(let k=0;k{Ji(C,1)}),Gs()}Ee?(F=Jl(Ee,be(k)),xl(F.$$.fragment),Yi(F.$$.fragment,1),Ki(F,oe,null)):F=null}if(x&16){ve=Te(k[4]);let C;for(C=0;C{L.ctrlKey&&L.key==="b"&&b("toggle_menu")});const s=[{label:"Welcome",component:io,icon:"i-ph-hand-waving"},{label:"Communication",component:ao,icon:"i-codicon-radio-tower"},{label:"Window",component:_o,icon:"i-codicon-window"},{label:"WebRTC",component:vo,icon:"i-ph-broadcast"}];let r=s[0];function v(L){i(1,r=L)}let h;hi(()=>{i(2,h=localStorage&&localStorage.getItem("theme")=="dark"),gs(h)});function g(){i(2,h=!h),gs(h)}let d=Ks([]);Ns(e,d,L=>i(4,l=L));function I(L){d.update(W=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof L=="string"?L:JSON.stringify(L,null,1))+"
"},...W])}function S(L){d.update(W=>[{html:`
[${new Date().toLocaleTimeString()}]: `+L+"
"},...W])}function J(){d.update(()=>[])}let y,M,N;function D(L){N=L.clientY;const W=window.getComputedStyle(y);M=parseInt(W.height,10);const U=j=>{const B=j.clientY-N,ge=M-B;i(3,y.style.height=`${ge{document.removeEventListener("mouseup",ne),document.removeEventListener("mousemove",U)};document.addEventListener("mouseup",ne),document.addEventListener("mousemove",U)}let X=!1,O,Q,Y=!1,K=0,A=0;const Z=(L,W,U)=>Math.min(Math.max(W,L),U);hi(()=>{i(13,O=document.querySelector("#sidebar")),Q=document.querySelector("#sidebarToggle"),document.addEventListener("click",L=>{Q.contains(L.target)?i(0,X=!X):X&&!O.contains(L.target)&&i(0,X=!1)}),document.addEventListener("touchstart",L=>{if(Q.contains(L.target))return;const W=L.touches[0].clientX;(0{if(Y){const W=L.touches[0].clientX;A=W;const U=(W-K)/10;O.style.setProperty("--translate-x",`-${Z(0,X?0-U:18.75-U,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(Y){const L=(A-K)/10;i(0,X=X?L>-(18.75/2):L>18.75/2)}Y=!1})});const se=L=>{v(L),i(0,X=!1)};function H(L){Gi[L?"unshift":"push"](()=>{y=L,i(3,y)})}return e.$$.update=()=>{if(e.$$.dirty&1){const L=document.querySelector("#sidebar");L&&Co(L,X)}},[X,r,h,y,l,s,v,g,d,I,S,J,D,O,se,H]}class To extends un{constructor(t){super(),rn(this,t,Po,So,Bt,{})}}new To({target:document.querySelector("#app")}); + `,K=c(),A=o("br"),Z=c(),se=o("div"),H=c(),L=o("br"),R=c(),U=o("div");for(let k=0;k',ke=c(),ze=o("div");for(let k=0;k{Ji(C,1)}),Gs()}Ee?(F=Jl(Ee,be(k)),xl(F.$$.fragment),Yi(F.$$.fragment,1),Ki(F,oe,null)):F=null}if(x&16){ve=Te(k[4]);let C;for(C=0;C{L.ctrlKey&&L.key==="b"&&b("toggle_menu")});const s=[{label:"Welcome",component:io,icon:"i-ph-hand-waving"},{label:"Communication",component:ao,icon:"i-codicon-radio-tower"},{label:"Window",component:_o,icon:"i-codicon-window"},{label:"WebRTC",component:vo,icon:"i-ph-broadcast"}];let r=s[0];function v(L){i(1,r=L)}let h;hi(()=>{i(2,h=localStorage&&localStorage.getItem("theme")=="dark"),gs(h)});function g(){i(2,h=!h),gs(h)}let d=Ks([]);Ns(e,d,L=>i(4,l=L));function I(L){d.update(R=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof L=="string"?L:JSON.stringify(L,null,1))+"
"},...R])}function S(L){d.update(R=>[{html:`
[${new Date().toLocaleTimeString()}]: `+L+"
"},...R])}function J(){d.update(()=>[])}let y,M,N;function D(L){N=L.clientY;const R=window.getComputedStyle(y);M=parseInt(R.height,10);const U=j=>{const B=j.clientY-N,ge=M-B;i(3,y.style.height=`${ge{document.removeEventListener("mouseup",ne),document.removeEventListener("mousemove",U)};document.addEventListener("mouseup",ne),document.addEventListener("mousemove",U)}let X=!1,O,Q,Y=!1,K=0,A=0;const Z=(L,R,U)=>Math.min(Math.max(R,L),U);hi(()=>{i(13,O=document.querySelector("#sidebar")),Q=document.querySelector("#sidebarToggle"),document.addEventListener("click",L=>{Q.contains(L.target)?i(0,X=!X):X&&!O.contains(L.target)&&i(0,X=!1)}),document.addEventListener("touchstart",L=>{if(Q.contains(L.target))return;const R=L.touches[0].clientX;(0{if(Y){const R=L.touches[0].clientX;A=R;const U=(R-K)/10;O.style.setProperty("--translate-x",`-${Z(0,X?0-U:18.75-U,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(Y){const L=(A-K)/10;i(0,X=X?L>-(18.75/2):L>18.75/2)}Y=!1})});const se=L=>{v(L),i(0,X=!1)};function H(L){Gi[L?"unshift":"push"](()=>{y=L,i(3,y)})}return e.$$.update=()=>{if(e.$$.dirty&1){const L=document.querySelector("#sidebar");L&&Co(L,X)}},[X,r,h,y,l,s,v,g,d,I,S,J,D,O,se,H]}class To extends un{constructor(t){super(),rn(this,t,Po,So,Bt,{})}}new To({target:document.querySelector("#app")}); diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 4b26ffdb8eb4..2ecc1625ef3a 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -2137,9 +2137,9 @@ dependencies = [ [[package]] name = "muda" -version = "0.8.2" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47e33f46fb20f85553edb85e30a6a5231567f4103276ccdb5a2050613d253b1d" +checksum = "41fe753ec4d3e8137a1d3ecb1aee1192b8f7661fe1247641968f5bf5f2e6ebbe" dependencies = [ "cocoa 0.25.0", "crossbeam-channel", @@ -3445,6 +3445,7 @@ dependencies = [ "uuid", "webkit2gtk", "webview2-com", + "window-vibrancy", "windows", ] @@ -4295,6 +4296,18 @@ dependencies = [ "windows-sys 0.42.0", ] +[[package]] +name = "window-vibrancy" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5931735e675b972fada30c7a402915d4d827aa5ef6c929c133d640c4b785e963" +dependencies = [ + "cocoa 0.25.0", + "objc", + "raw-window-handle", + "windows-sys 0.48.0", +] + [[package]] name = "windows" version = "0.48.0" diff --git a/examples/api/src/views/Window.svelte b/examples/api/src/views/Window.svelte index c00a09fe3937..f72b174a175e 100644 --- a/examples/api/src/views/Window.svelte +++ b/examples/api/src/views/Window.svelte @@ -60,9 +60,9 @@ "rowResize", ]; - const windowsEffects = ["mica", "blur", "acrylic"]; - const isWindows = navigator.appVersion.includes("windows"); - const isMacOS = navigator.appVersion.includes("macos"); + const windowsEffects = ["mica", "blur", "acrylic", "tabbed", "tabbedDark", "tabbedLight"]; + const isWindows = navigator.appVersion.includes("Windows"); + const isMacOS = navigator.appVersion.includes("Macintosh"); let effectOptions = isWindows ? windowsEffects : Object.keys(Effect) diff --git a/tooling/api/docs/js-api.json b/tooling/api/docs/js-api.json index e9ef84eea018..069246d70cf8 100644 --- a/tooling/api/docs/js-api.json +++ b/tooling/api/docs/js-api.json @@ -1 +1 @@ -{"id":0,"name":"@tauri-apps/api","variant":"project","kind":1,"flags":{},"children":[{"id":1,"name":"dpi","variant":"declaration","kind":2,"flags":{},"children":[{"id":2,"name":"LogicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":3,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"dpi.ts","line":62,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L62"}],"signatures":[{"id":4,"name":"new LogicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"dpi.ts","line":62,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L62"}],"parameters":[{"id":5,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":6,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":2,"name":"LogicalPosition","package":"@tauri-apps/api"}}]},{"id":7,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":58,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L58"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":8,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":59,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L59"}],"type":{"type":"intrinsic","name":"number"}},{"id":9,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":60,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L60"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[3]},{"title":"Properties","children":[7,8,9]}],"sources":[{"fileName":"dpi.ts","line":57,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L57"}]},{"id":10,"name":"LogicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":11,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"dpi.ts","line":15,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L15"}],"signatures":[{"id":12,"name":"new LogicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"dpi.ts","line":15,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L15"}],"parameters":[{"id":13,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":14,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"}}]},{"id":17,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":13,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L13"}],"type":{"type":"intrinsic","name":"number"}},{"id":15,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":11,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L11"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":16,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":12,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L12"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[11]},{"title":"Properties","children":[17,15,16]}],"sources":[{"fileName":"dpi.ts","line":10,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L10"}]},{"id":18,"name":"PhysicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":19,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"dpi.ts","line":78,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L78"}],"signatures":[{"id":20,"name":"new PhysicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"dpi.ts","line":78,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L78"}],"parameters":[{"id":21,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":22,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}}]},{"id":23,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":74,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L74"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":24,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":75,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L75"}],"type":{"type":"intrinsic","name":"number"}},{"id":25,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":76,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L76"}],"type":{"type":"intrinsic","name":"number"}},{"id":26,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"dpi.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L94"}],"signatures":[{"id":27,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical position to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst appWindow = getCurrent();\nconst factor = await appWindow.scaleFactor();\nconst position = await appWindow.innerPosition();\nconst logical = position.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"dpi.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L94"}],"parameters":[{"id":28,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":2,"name":"LogicalPosition","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[19]},{"title":"Properties","children":[23,24,25]},{"title":"Methods","children":[26]}],"sources":[{"fileName":"dpi.ts","line":73,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L73"}]},{"id":29,"name":"PhysicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":30,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"dpi.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L31"}],"signatures":[{"id":31,"name":"new PhysicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"dpi.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L31"}],"parameters":[{"id":32,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":33,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}}]},{"id":36,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":29,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L29"}],"type":{"type":"intrinsic","name":"number"}},{"id":34,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L27"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":35,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L28"}],"type":{"type":"intrinsic","name":"number"}},{"id":37,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"dpi.ts","line":47,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L47"}],"signatures":[{"id":38,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical size to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst appWindow = getCurrent();\nconst factor = await appWindow.scaleFactor();\nconst size = await appWindow.innerSize();\nconst logical = size.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"dpi.ts","line":47,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L47"}],"parameters":[{"id":39,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[30]},{"title":"Properties","children":[36,34,35]},{"title":"Methods","children":[37]}],"sources":[{"fileName":"dpi.ts","line":26,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L26"}]}],"groups":[{"title":"Classes","children":[2,10,18,29]}],"sources":[{"fileName":"dpi.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/dpi.ts#L1"}]},{"id":40,"name":"event","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The event system allows you to emit events to the backend and listen to events from it.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.event`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":75,"name":"TauriEvent","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":88,"name":"MENU","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":59,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L59"}],"type":{"type":"literal","value":"tauri://menu"}},{"id":82,"name":"WINDOW_BLUR","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":53,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L53"}],"type":{"type":"literal","value":"tauri://blur"}},{"id":78,"name":"WINDOW_CLOSE_REQUESTED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":49,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L49"}],"type":{"type":"literal","value":"tauri://close-requested"}},{"id":79,"name":"WINDOW_CREATED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":50,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L50"}],"type":{"type":"literal","value":"tauri://window-created"}},{"id":80,"name":"WINDOW_DESTROYED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":51,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L51"}],"type":{"type":"literal","value":"tauri://destroyed"}},{"id":85,"name":"WINDOW_FILE_DROP","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":56,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L56"}],"type":{"type":"literal","value":"tauri://file-drop"}},{"id":87,"name":"WINDOW_FILE_DROP_CANCELLED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":58,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L58"}],"type":{"type":"literal","value":"tauri://file-drop-cancelled"}},{"id":86,"name":"WINDOW_FILE_DROP_HOVER","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":57,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L57"}],"type":{"type":"literal","value":"tauri://file-drop-hover"}},{"id":81,"name":"WINDOW_FOCUS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":52,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L52"}],"type":{"type":"literal","value":"tauri://focus"}},{"id":77,"name":"WINDOW_MOVED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":48,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L48"}],"type":{"type":"literal","value":"tauri://move"}},{"id":76,"name":"WINDOW_RESIZED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":47,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L47"}],"type":{"type":"literal","value":"tauri://resize"}},{"id":83,"name":"WINDOW_SCALE_FACTOR_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":54,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L54"}],"type":{"type":"literal","value":"tauri://scale-change"}},{"id":84,"name":"WINDOW_THEME_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":55,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L55"}],"type":{"type":"literal","value":"tauri://theme-changed"}}],"groups":[{"title":"Enumeration Members","children":[88,82,78,79,80,85,87,86,81,77,76,83,84]}],"sources":[{"fileName":"event.ts","line":46,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L46"}]},{"id":41,"name":"Event","variant":"declaration","kind":256,"flags":{},"children":[{"id":42,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"event.ts","line":16,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L16"}],"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":44,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"event.ts","line":20,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L20"}],"type":{"type":"intrinsic","name":"number"}},{"id":45,"name":"payload","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event payload"}]},"sources":[{"fileName":"event.ts","line":22,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L22"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":43,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"event.ts","line":18,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L18"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[42,44,45,43]}],"sources":[{"fileName":"event.ts","line":14,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L14"}],"typeParameters":[{"id":46,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":56,"name":"Options","variant":"declaration","kind":256,"flags":{},"children":[{"id":57,"name":"target","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Label of the window the function targets.\n\nWhen listening to events and using this value,\nonly events triggered by the window with the given label are received.\n\nWhen emitting events, only the window with the given label will receive it."}]},"sources":[{"fileName":"event.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L40"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[57]}],"sources":[{"fileName":"event.ts","line":31,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L31"}]},{"id":47,"name":"EventCallback","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":25,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L25"}],"typeParameters":[{"id":51,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"type":{"type":"reflection","declaration":{"id":48,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"event.ts","line":25,"character":24,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L25"}],"signatures":[{"id":49,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":50,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":41,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":55,"name":"EventName","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":29,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L29"}],"type":{"type":"union","types":[{"type":"templateLiteral","head":"","tail":[[{"type":"reference","target":75,"name":"TauriEvent","package":"@tauri-apps/api"},""]]},{"type":"intersection","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"never"},{"type":"intrinsic","name":"never"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}]}]}},{"id":52,"name":"UnlistenFn","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":27,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L27"}],"type":{"type":"reflection","declaration":{"id":53,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"event.ts","line":27,"character":18,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L27"}],"signatures":[{"id":54,"name":"__type","variant":"signature","kind":4096,"flags":{},"type":{"type":"intrinsic","name":"void"}}]}}},{"id":70,"name":"emit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":164,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L164"}],"signatures":[{"id":71,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { emit } from '@tauri-apps/api/event';\nawait emit('frontend-loaded', { loggedIn: true, token: 'authToken' });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":164,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L164"}],"parameters":[{"id":72,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":73,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"intrinsic","name":"unknown"}},{"id":74,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":56,"name":"Options","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":58,"name":"listen","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":99,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L99"}],"signatures":[{"id":59,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event. The event can be either global or window-specific.\nSee "},{"kind":"inline-tag","tag":"@link","text":"windowLabel","target":43,"tsLinkText":""},{"kind":"text","text":" to check the event source."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { listen } from '@tauri-apps/api/event';\nconst unlisten = await listen('error', (event) => {\n console.log(`Got error in window ${event.windowLabel}, payload: ${event.payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":99,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L99"}],"typeParameter":[{"id":60,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":61,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":62,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler callback."}]},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}},{"id":63,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":56,"name":"Options","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":64,"name":"once","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":137,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L137"}],"signatures":[{"id":65,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event. See "},{"kind":"inline-tag","tag":"@link","text":"listen","target":58,"tsLinkText":""},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { once } from '@tauri-apps/api/event';\ninterface LoadedPayload {\n loggedIn: boolean,\n token: string\n}\nconst unlisten = await once('loaded', (event) => {\n console.log(`App is loaded, loggedIn: ${event.payload.loggedIn}, token: ${event.payload.token}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":137,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L137"}],"typeParameter":[{"id":66,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":67,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":68,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}},{"id":69,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":56,"name":"Options","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[75]},{"title":"Interfaces","children":[41,56]},{"title":"Type Aliases","children":[47,55,52]},{"title":"Functions","children":[70,58,64]}],"sources":[{"fileName":"event.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/event.ts#L1"}]},{"id":89,"name":"mocks","variant":"declaration","kind":2,"flags":{},"children":[{"id":101,"name":"clearMocks","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":163,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/mocks.ts#L163"}],"signatures":[{"id":102,"name":"clearMocks","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Clears mocked functions/data injected by the other functions in this module.\nWhen using a test runner that doesn't provide a fresh window object for each test, calling this function will reset tauri specific properties.\n\n# Example\n\n"},{"kind":"code","text":"```js\nimport { mockWindows, clearMocks } from \"@tauri-apps/api/mocks\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked windows\", () => {\n mockWindows(\"main\", \"second\", \"third\");\n\n expect(window.__TAURI_INTERNALS__).toHaveProperty(\"metadata\")\n})\n\ntest(\"no mocked windows\", () => {\n expect(window.__TAURI_INTERNALS__).not.toHaveProperty(\"metadata\")\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":163,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/mocks.ts#L163"}],"type":{"type":"intrinsic","name":"void"}}]},{"id":90,"name":"mockIPC","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":65,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/mocks.ts#L65"}],"signatures":[{"id":91,"name":"mockIPC","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Intercepts all IPC requests with the given mock handler.\n\nThis function can be used when testing tauri frontend applications or when running the frontend in a Node.js context during static site generation.\n\n# Examples\n\nTesting setup using vitest:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/primitives\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, payload) => {\n switch (cmd) {\n case \"add\":\n return (payload.a as number) + (payload.b as number);\n default:\n break;\n }\n });\n\n expect(invoke('add', { a: 12, b: 15 })).resolves.toBe(27);\n})\n```"},{"kind":"text","text":"\n\nThe callback function can also return a Promise:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/primitives\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, payload) => {\n if(cmd === \"get_data\") {\n return fetch(\"https://example.com/data.json\")\n .then((response) => response.json())\n }\n });\n\n expect(invoke('get_data')).resolves.toBe({ foo: 'bar' });\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":65,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/mocks.ts#L65"}],"parameters":[{"id":92,"name":"cb","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":93,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/mocks.ts#L66"}],"signatures":[{"id":94,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/mocks.ts#L66"}],"parameters":[{"id":95,"name":"cmd","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":96,"name":"payload","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"intrinsic","name":"any"}}]}}}],"type":{"type":"intrinsic","name":"void"}}]},{"id":97,"name":"mockWindows","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":127,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/mocks.ts#L127"}],"signatures":[{"id":98,"name":"mockWindows","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Mocks one or many window labels.\nIn non-tauri context it is required to call this function *before* using the "},{"kind":"code","text":"`@tauri-apps/api/window`"},{"kind":"text","text":" module.\n\nThis function only mocks the *presence* of windows,\nwindow properties (e.g. width and height) can be mocked like regular IPC calls using the "},{"kind":"code","text":"`mockIPC`"},{"kind":"text","text":" function.\n\n# Examples\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\nimport { getCurrent } from \"@tauri-apps/api/window\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nconst win = getCurrent();\n\nwin.label // \"main\"\n```"},{"kind":"text","text":"\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nmockIPC((cmd, args) => {\n if (cmd === \"plugin:event|emit\") {\n console.log('emit event', args?.event, args?.payload);\n }\n});\n\nconst { emit } = await import(\"@tauri-apps/api/event\");\nawait emit('loaded'); // this will cause the mocked IPC handler to log to the console.\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":127,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/mocks.ts#L127"}],"parameters":[{"id":99,"name":"current","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Label of window this JavaScript context is running in."}]},"type":{"type":"intrinsic","name":"string"}},{"id":100,"name":"additionalWindows","variant":"param","kind":32768,"flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"Label of additional windows the app has."}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Functions","children":[101,90,97]}],"sources":[{"fileName":"mocks.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/mocks.ts#L1"}]},{"id":103,"name":"path","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path module provides utilities for working with file and directory paths.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.path`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":104,"name":"BaseDirectory","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":120,"name":"AppCache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L35"}],"type":{"type":"literal","value":16}},{"id":117,"name":"AppConfig","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L32"}],"type":{"type":"literal","value":13}},{"id":118,"name":"AppData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L33"}],"type":{"type":"literal","value":14}},{"id":119,"name":"AppLocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L34"}],"type":{"type":"literal","value":15}},{"id":121,"name":"AppLog","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L36"}],"type":{"type":"literal","value":17}},{"id":105,"name":"Audio","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":20,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L20"}],"type":{"type":"literal","value":1}},{"id":106,"name":"Cache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":21,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L21"}],"type":{"type":"literal","value":2}},{"id":107,"name":"Config","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":22,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L22"}],"type":{"type":"literal","value":3}},{"id":108,"name":"Data","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L23"}],"type":{"type":"literal","value":4}},{"id":122,"name":"Desktop","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L38"}],"type":{"type":"literal","value":18}},{"id":110,"name":"Document","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L25"}],"type":{"type":"literal","value":6}},{"id":111,"name":"Download","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":26,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L26"}],"type":{"type":"literal","value":7}},{"id":123,"name":"Executable","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":39,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L39"}],"type":{"type":"literal","value":19}},{"id":124,"name":"Font","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L40"}],"type":{"type":"literal","value":20}},{"id":125,"name":"Home","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":41,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L41"}],"type":{"type":"literal","value":21}},{"id":109,"name":"LocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L24"}],"type":{"type":"literal","value":5}},{"id":112,"name":"Picture","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L27"}],"type":{"type":"literal","value":8}},{"id":113,"name":"Public","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L28"}],"type":{"type":"literal","value":9}},{"id":115,"name":"Resource","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":30,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L30"}],"type":{"type":"literal","value":11}},{"id":126,"name":"Runtime","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L42"}],"type":{"type":"literal","value":22}},{"id":116,"name":"Temp","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L31"}],"type":{"type":"literal","value":12}},{"id":127,"name":"Template","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":43,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L43"}],"type":{"type":"literal","value":23}},{"id":114,"name":"Video","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":29,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L29"}],"type":{"type":"literal","value":10}}],"groups":[{"title":"Enumeration Members","children":[120,117,118,119,121,105,106,107,108,122,110,111,123,124,125,109,112,113,115,126,116,127,114]}],"sources":[{"fileName":"path.ts","line":19,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L19"}]},{"id":134,"name":"appCacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":108,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L108"}],"signatures":[{"id":135,"name":"appCacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's cache files.\nResolves to "},{"kind":"code","text":"`${cacheDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appCacheDir } from '@tauri-apps/api/path';\nconst appCacheDirPath = await appCacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":108,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L108"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":128,"name":"appConfigDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":57,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L57"}],"signatures":[{"id":129,"name":"appConfigDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's config files.\nResolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appConfigDir } from '@tauri-apps/api/path';\nconst appConfigDirPath = await appConfigDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":57,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L57"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":130,"name":"appDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":74,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L74"}],"signatures":[{"id":131,"name":"appDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's data files.\nResolves to "},{"kind":"code","text":"`${dataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":74,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L74"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":132,"name":"appLocalDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":91,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L91"}],"signatures":[{"id":133,"name":"appLocalDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's local data files.\nResolves to "},{"kind":"code","text":"`${localDataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLocalDataDir } from '@tauri-apps/api/path';\nconst appLocalDataDirPath = await appLocalDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":91,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L91"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":136,"name":"appLogDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":520,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L520"}],"signatures":[{"id":137,"name":"appLogDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's log files.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`${homeDir}/Library/Logs/{bundleIdentifier}`"},{"kind":"text","text":"\n- **Windows:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLogDir } from '@tauri-apps/api/path';\nconst appLogDirPath = await appLogDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":520,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L520"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":138,"name":"audioDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":130,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L130"}],"signatures":[{"id":139,"name":"audioDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's audio directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_MUSIC_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Music`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Music}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { audioDir } from '@tauri-apps/api/path';\nconst audioDirPath = await audioDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":130,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L130"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":194,"name":"basename","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":653,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L653"}],"signatures":[{"id":195,"name":"basename","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the last portion of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { basename, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst base = await basename(resourcePath);\nassert(base === 'app.conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":653,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L653"}],"parameters":[{"id":196,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":197,"name":"ext","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"An optional file extension to be removed from the returned path."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":140,"name":"cacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":152,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L152"}],"signatures":[{"id":141,"name":"cacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's cache directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CACHE_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.cache`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Caches`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { cacheDir } from '@tauri-apps/api/path';\nconst cacheDirPath = await cacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":152,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L152"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":142,"name":"configDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":174,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L174"}],"signatures":[{"id":143,"name":"configDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's config directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CONFIG_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.config`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { configDir } from '@tauri-apps/api/path';\nconst configDirPath = await configDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":174,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L174"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":144,"name":"dataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":196,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L196"}],"signatures":[{"id":145,"name":"dataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dataDir } from '@tauri-apps/api/path';\nconst dataDirPath = await dataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":196,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L196"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":177,"name":"delimiter","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":560,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L560"}],"signatures":[{"id":178,"name":"delimiter","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the platform-specific path segment delimiter:\n- "},{"kind":"code","text":"`;`"},{"kind":"text","text":" on Windows\n- "},{"kind":"code","text":"`:`"},{"kind":"text","text":" on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"path.ts","line":560,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L560"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":146,"name":"desktopDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":218,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L218"}],"signatures":[{"id":147,"name":"desktopDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's desktop directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DESKTOP_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Desktop`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Desktop}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { desktopDir } from '@tauri-apps/api/path';\nconst desktopPath = await desktopDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":218,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L218"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":188,"name":"dirname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":619,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L619"}],"signatures":[{"id":189,"name":"dirname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the directory name of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dirname, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst dir = await dirname(appDataDirPath);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":619,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L619"}],"parameters":[{"id":190,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":148,"name":"documentDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":240,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L240"}],"signatures":[{"id":149,"name":"documentDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's document directory."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { documentDir } from '@tauri-apps/api/path';\nconst documentDirPath = await documentDir();\n```"},{"kind":"text","text":"\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOCUMENTS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Documents`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Documents}`"},{"kind":"text","text":"."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":240,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L240"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":150,"name":"downloadDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":262,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L262"}],"signatures":[{"id":151,"name":"downloadDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's download directory.\n\n#### Platform-specific\n\n- **Linux**: Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOWNLOAD_DIR`"},{"kind":"text","text":".\n- **macOS**: Resolves to "},{"kind":"code","text":"`$HOME/Downloads`"},{"kind":"text","text":".\n- **Windows**: Resolves to "},{"kind":"code","text":"`{FOLDERID_Downloads}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { downloadDir } from '@tauri-apps/api/path';\nconst downloadDirPath = await downloadDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":262,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L262"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":152,"name":"executableDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":284,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L284"}],"signatures":[{"id":153,"name":"executableDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's executable directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_BIN_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$XDG_DATA_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/bin`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { executableDir } from '@tauri-apps/api/path';\nconst executableDirPath = await executableDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":284,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L284"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":191,"name":"extname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":635,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L635"}],"signatures":[{"id":192,"name":"extname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the extension of the "},{"kind":"code","text":"`path`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { extname, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst ext = await extname(resourcePath);\nassert(ext === 'conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":635,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L635"}],"parameters":[{"id":193,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":154,"name":"fontDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":306,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L306"}],"signatures":[{"id":155,"name":"fontDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's font directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME/fonts`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share/fonts`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Fonts`"},{"kind":"text","text":".\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fontDir } from '@tauri-apps/api/path';\nconst fontDirPath = await fontDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":306,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L306"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":156,"name":"homeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":328,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L328"}],"signatures":[{"id":157,"name":"homeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's home directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Profile}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { homeDir } from '@tauri-apps/api/path';\nconst homeDirPath = await homeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":328,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L328"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":198,"name":"isAbsolute","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":667,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L667"}],"signatures":[{"id":199,"name":"isAbsolute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns whether the path is absolute or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isAbsolute } from '@tauri-apps/api/path';\nassert(await isAbsolute('/home/tauri'));\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":667,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L667"}],"parameters":[{"id":200,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":185,"name":"join","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":604,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L604"}],"signatures":[{"id":186,"name":"join","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Joins all given "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments together using the platform-specific separator as a delimiter, then normalizes the resulting path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { join, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await join(appDataDirPath, 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":604,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L604"}],"parameters":[{"id":187,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":158,"name":"localDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":350,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L350"}],"signatures":[{"id":159,"name":"localDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's local data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { localDataDir } from '@tauri-apps/api/path';\nconst localDataDirPath = await localDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":350,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L350"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":182,"name":"normalize","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":589,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L589"}],"signatures":[{"id":183,"name":"normalize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Normalizes the given "},{"kind":"code","text":"`path`"},{"kind":"text","text":", resolving "},{"kind":"code","text":"`'..'`"},{"kind":"text","text":" and "},{"kind":"code","text":"`'.'`"},{"kind":"text","text":" segments and resolve symbolic links."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { normalize, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await normalize(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":589,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L589"}],"parameters":[{"id":184,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":160,"name":"pictureDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":372,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L372"}],"signatures":[{"id":161,"name":"pictureDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's picture directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PICTURES_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Pictures`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Pictures}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { pictureDir } from '@tauri-apps/api/path';\nconst pictureDirPath = await pictureDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":372,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L372"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":162,"name":"publicDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":394,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L394"}],"signatures":[{"id":163,"name":"publicDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's public directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PUBLICSHARE_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Public`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Public}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { publicDir } from '@tauri-apps/api/path';\nconst publicDirPath = await publicDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":394,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L394"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":179,"name":"resolve","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":574,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L574"}],"signatures":[{"id":180,"name":"resolve","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolves a sequence of "},{"kind":"code","text":"`paths`"},{"kind":"text","text":" or "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments into an absolute path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolve, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await resolve(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":574,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L574"}],"parameters":[{"id":181,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":166,"name":"resolveResource","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":431,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L431"}],"signatures":[{"id":167,"name":"resolveResource","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolve the path to a resource file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('script.sh');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The full path to the resource."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":431,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L431"}],"parameters":[{"id":168,"name":"resourcePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path to the resource.\nMust follow the same syntax as defined in "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > resources`"},{"kind":"text","text":", i.e. keeping subfolders and parent dir components ("},{"kind":"code","text":"`../`"},{"kind":"text","text":")."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":164,"name":"resourceDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":411,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L411"}],"signatures":[{"id":165,"name":"resourceDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the application's resource directory.\nTo resolve a resource path, see the [[resolveResource | "},{"kind":"code","text":"`resolveResource API`"},{"kind":"text","text":"]]."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resourceDir } from '@tauri-apps/api/path';\nconst resourceDirPath = await resourceDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":411,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L411"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":169,"name":"runtimeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":454,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L454"}],"signatures":[{"id":170,"name":"runtimeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's runtime directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_RUNTIME_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { runtimeDir } from '@tauri-apps/api/path';\nconst runtimeDirPath = await runtimeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":454,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L454"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":175,"name":"sep","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":549,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L549"}],"signatures":[{"id":176,"name":"sep","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the platform-specific path segment separator:\n- "},{"kind":"code","text":"`\\` on Windows\n- `"},{"kind":"text","text":"/` on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"path.ts","line":549,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L549"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":201,"name":"tempDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":536,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L536"}],"signatures":[{"id":202,"name":"tempDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a temporary directory."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { tempDir } from '@tauri-apps/api/path';\nconst temp = await tempDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"path.ts","line":536,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L536"}],"parameters":[{"id":203,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":171,"name":"templateDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":476,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L476"}],"signatures":[{"id":172,"name":"templateDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's template directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_TEMPLATES_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Templates}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { templateDir } from '@tauri-apps/api/path';\nconst templateDirPath = await templateDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":476,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L476"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":173,"name":"videoDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":498,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L498"}],"signatures":[{"id":174,"name":"videoDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's video directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_VIDEOS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Movies`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Videos}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { videoDir } from '@tauri-apps/api/path';\nconst videoDirPath = await videoDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":498,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L498"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[104]},{"title":"Functions","children":[134,128,130,132,136,138,194,140,142,144,177,146,188,148,150,152,191,154,156,198,185,158,182,160,162,179,166,164,169,175,201,171,173]}],"sources":[{"fileName":"path.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/path.ts#L1"}]},{"id":204,"name":"primitives","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Invoke your custom commands.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.tauri`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":215,"name":"Channel","variant":"declaration","kind":128,"flags":{},"children":[{"id":216,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"primitives.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L35"}],"signatures":[{"id":217,"name":"new Channel","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"primitives.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L35"}],"typeParameter":[{"id":218,"name":"T","variant":"typeParam","kind":131072,"flags":{},"default":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":215,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Channel","package":"@tauri-apps/api"}}]},{"id":221,"name":"#onmessage","variant":"declaration","kind":1024,"flags":{"isPrivate":true},"sources":[{"fileName":"primitives.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L31"}],"type":{"type":"reflection","declaration":{"id":222,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":31,"character":14,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L31"}],"signatures":[{"id":223,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":31,"character":14,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L31"}],"parameters":[{"id":224,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"void"}}]}},"defaultValue":"..."},{"id":220,"name":"__TAURI_CHANNEL_MARKER__","variant":"declaration","kind":1024,"flags":{"isPrivate":true,"isReadonly":true},"sources":[{"fileName":"primitives.ts","line":30,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L30"}],"type":{"type":"literal","value":true},"defaultValue":"true"},{"id":219,"name":"id","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L28"}],"type":{"type":"intrinsic","name":"number"}},{"id":225,"name":"onmessage","variant":"declaration","kind":262144,"flags":{},"sources":[{"fileName":"primitives.ts","line":41,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L41"},{"fileName":"primitives.ts","line":45,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L45"}],"getSignature":{"id":226,"name":"onmessage","variant":"signature","kind":524288,"flags":{},"sources":[{"fileName":"primitives.ts","line":45,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L45"}],"type":{"type":"reflection","declaration":{"id":227,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":45,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L45"}],"signatures":[{"id":228,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":45,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L45"}],"parameters":[{"id":229,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"void"}}]}}},"setSignature":{"id":230,"name":"onmessage","variant":"signature","kind":1048576,"flags":{},"sources":[{"fileName":"primitives.ts","line":41,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L41"}],"parameters":[{"id":231,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":232,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":41,"character":25,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L41"}],"signatures":[{"id":233,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":41,"character":25,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L41"}],"parameters":[{"id":234,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"intrinsic","name":"void"}}},{"id":235,"name":"toJSON","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"primitives.ts","line":49,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L49"}],"signatures":[{"id":236,"name":"toJSON","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":49,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L49"}],"type":{"type":"intrinsic","name":"string"}}]}],"groups":[{"title":"Constructors","children":[216]},{"title":"Properties","children":[221,220,219]},{"title":"Accessors","children":[225]},{"title":"Methods","children":[235]}],"sources":[{"fileName":"primitives.ts","line":27,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L27"}],"typeParameters":[{"id":237,"name":"T","variant":"typeParam","kind":131072,"flags":{},"default":{"type":"intrinsic","name":"unknown"}}]},{"id":238,"name":"PluginListener","variant":"declaration","kind":128,"flags":{},"children":[{"id":239,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"primitives.ts","line":59,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L59"}],"signatures":[{"id":240,"name":"new PluginListener","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"primitives.ts","line":59,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L59"}],"parameters":[{"id":241,"name":"plugin","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":242,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":243,"name":"channelId","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":238,"name":"PluginListener","package":"@tauri-apps/api"}}]},{"id":246,"name":"channelId","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":57,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L57"}],"type":{"type":"intrinsic","name":"number"}},{"id":245,"name":"event","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":56,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L56"}],"type":{"type":"intrinsic","name":"string"}},{"id":244,"name":"plugin","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":55,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L55"}],"type":{"type":"intrinsic","name":"string"}},{"id":247,"name":"unregister","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"primitives.ts","line":65,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L65"}],"signatures":[{"id":248,"name":"unregister","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":65,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L65"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[239]},{"title":"Properties","children":[246,245,244]},{"title":"Methods","children":[247]}],"sources":[{"fileName":"primitives.ts","line":54,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L54"}]},{"id":206,"name":"InvokeOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":207,"name":"headers","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":103,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L103"}],"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.dom.d.ts","qualifiedName":"Headers"},"name":"Headers","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/API/Headers"}]}}],"groups":[{"title":"Properties","children":[207]}],"sources":[{"fileName":"primitives.ts","line":102,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L102"}]},{"id":205,"name":"InvokeArgs","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Command arguments."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":97,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L97"}],"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},{"type":"array","elementType":{"type":"intrinsic","name":"number"}},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}},{"id":249,"name":"addPluginListener","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"primitives.ts","line":80,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L80"}],"signatures":[{"id":250,"name":"addPluginListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a listener to a plugin event."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"The listener object to stop listening to the events."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":80,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L80"}],"typeParameter":[{"id":251,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":252,"name":"plugin","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":253,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":254,"name":"cb","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":255,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":83,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L83"}],"signatures":[{"id":256,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":83,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L83"}],"parameters":[{"id":257,"name":"payload","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":238,"name":"PluginListener","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":264,"name":"convertFileSrc","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"primitives.ts","line":159,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L159"}],"signatures":[{"id":265,"name":"convertFileSrc","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Convert a device file path to an URL that can be loaded by the webview.\nNote that "},{"kind":"code","text":"`asset:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`http://asset.localhost`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.security.csp`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#securityconfig.csp) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":".\nExample CSP value: "},{"kind":"code","text":"`\"csp\": \"default-src 'self' ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost\"`"},{"kind":"text","text":" to use the asset protocol on image sources.\n\nAdditionally, "},{"kind":"code","text":"`asset`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.allowlist.protocol`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.protocol)\nin "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" and its access scope must be defined on the "},{"kind":"code","text":"`assetScope`"},{"kind":"text","text":" array on the same "},{"kind":"code","text":"`protocol`"},{"kind":"text","text":" object."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir, join } from '@tauri-apps/api/path';\nimport { convertFileSrc } from '@tauri-apps/api/primitives';\nconst appDataDirPath = await appDataDir();\nconst filePath = await join(appDataDirPath, 'assets/video.mp4');\nconst assetUrl = convertFileSrc(filePath);\n\nconst video = document.getElementById('my-video');\nconst source = document.createElement('source');\nsource.type = 'video/mp4';\nsource.src = assetUrl;\nvideo.appendChild(source);\nvideo.load();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"the URL that can be used as source on the webview."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":159,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L159"}],"parameters":[{"id":266,"name":"filePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file path."}]},"type":{"type":"intrinsic","name":"string"}},{"id":267,"name":"protocol","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The protocol to use. Defaults to "},{"kind":"code","text":"`asset`"},{"kind":"text","text":". You only need to set this when using a custom protocol."}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'asset'"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":258,"name":"invoke","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"primitives.ts","line":121,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L121"}],"signatures":[{"id":259,"name":"invoke","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a message to the backend."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { invoke } from '@tauri-apps/api/primitives';\nawait invoke('login', { user: 'tauri', password: 'poiwe3h4r5ip3yrhtew9ty' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving or rejecting to the backend response."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":121,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L121"}],"typeParameter":[{"id":260,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":261,"name":"cmd","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The command name."}]},"type":{"type":"intrinsic","name":"string"}},{"id":262,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The optional arguments to pass to the command."}]},"type":{"type":"reference","target":205,"name":"InvokeArgs","package":"@tauri-apps/api"},"defaultValue":"{}"},{"id":263,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The request options."}]},"type":{"type":"reference","target":206,"name":"InvokeOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":208,"name":"transformCallback","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"primitives.ts","line":20,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L20"}],"signatures":[{"id":209,"name":"transformCallback","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Transforms a callback function to a string identifier that can be passed to the backend.\nThe backend uses the identifier to "},{"kind":"code","text":"`eval()`"},{"kind":"text","text":" the callback."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A unique identifier associated with the callback function."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":20,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L20"}],"parameters":[{"id":210,"name":"callback","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":211,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":21,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L21"}],"signatures":[{"id":212,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":21,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L21"}],"parameters":[{"id":213,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":214,"name":"once","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"}],"type":{"type":"intrinsic","name":"number"}}]}],"groups":[{"title":"Classes","children":[215,238]},{"title":"Interfaces","children":[206]},{"title":"Type Aliases","children":[205]},{"title":"Functions","children":[249,264,258,208]}],"sources":[{"fileName":"primitives.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/primitives.ts#L1"}]},{"id":268,"name":"window","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides APIs to create windows, communicate with other windows and manipulate the current window.\n\n## Window events\n\nEvents can be listened to using "},{"kind":"inline-tag","tag":"@link","text":"listen","target":292},{"kind":"text","text":":\n"},{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\ngetCurrent().listen(\"my-window-event\", ({ event, payload }) => { });\n```"}]},"children":[{"id":573,"name":"LogicalPosition","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"window.ts","line":2202,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2202"}],"target":2},{"id":571,"name":"LogicalSize","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"window.ts","line":2200,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2200"}],"target":10},{"id":574,"name":"PhysicalPosition","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"window.ts","line":2203,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2203"}],"target":18},{"id":572,"name":"PhysicalSize","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"window.ts","line":2201,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2201"}],"target":29},{"id":484,"name":"Effect","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Platform-specific window effects"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"children":[{"id":506,"name":"Acrylic","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**Windows 10/11**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000."}]},"sources":[{"fileName":"window.ts","line":1947,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1947"}],"type":{"type":"literal","value":"acrylic"}},{"id":485,"name":"AppearanceBased","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"A default material appropriate for the view's effectiveAppearance. **macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. You should instead choose an appropriate semantic material."}]}]},"sources":[{"fileName":"window.ts","line":1847,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1847"}],"type":{"type":"literal","value":"appearanceBased"}},{"id":505,"name":"Blur","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**Windows 7/10/11(22H1) Only**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 11 build 22621."}]},"sources":[{"fileName":"window.ts","line":1939,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1939"}],"type":{"type":"literal","value":"blur"}},{"id":501,"name":"ContentBackground","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1919,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1919"}],"type":{"type":"literal","value":"contentBackground"}},{"id":487,"name":"Dark","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. Use a semantic material instead."}]}]},"sources":[{"fileName":"window.ts","line":1859,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1859"}],"type":{"type":"literal","value":"dark"}},{"id":499,"name":"FullScreenUI","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1911,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1911"}],"type":{"type":"literal","value":"fullScreenUI"}},{"id":495,"name":"HeaderView","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1895,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1895"}],"type":{"type":"literal","value":"headerView"}},{"id":498,"name":"HudWindow","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1907,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1907"}],"type":{"type":"literal","value":"hudWindow"}},{"id":486,"name":"Light","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. Use a semantic material instead."}]}]},"sources":[{"fileName":"window.ts","line":1853,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1853"}],"type":{"type":"literal","value":"light"}},{"id":488,"name":"MediumLight","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. Use a semantic material instead."}]}]},"sources":[{"fileName":"window.ts","line":1865,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1865"}],"type":{"type":"literal","value":"mediumLight"}},{"id":492,"name":"Menu","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.11+**"}]},"sources":[{"fileName":"window.ts","line":1883,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1883"}],"type":{"type":"literal","value":"menu"}},{"id":504,"name":"Mica","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**Windows 11 Only**"}]},"sources":[{"fileName":"window.ts","line":1931,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1931"}],"type":{"type":"literal","value":"mica"}},{"id":493,"name":"Popover","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.11+**"}]},"sources":[{"fileName":"window.ts","line":1887,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1887"}],"type":{"type":"literal","value":"popover"}},{"id":491,"name":"Selection","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.10+**"}]},"sources":[{"fileName":"window.ts","line":1879,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1879"}],"type":{"type":"literal","value":"selection"}},{"id":496,"name":"Sheet","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1899,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1899"}],"type":{"type":"literal","value":"sheet"}},{"id":494,"name":"Sidebar","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.11+**"}]},"sources":[{"fileName":"window.ts","line":1891,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1891"}],"type":{"type":"literal","value":"sidebar"}},{"id":490,"name":"Titlebar","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.10+**"}]},"sources":[{"fileName":"window.ts","line":1875,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1875"}],"type":{"type":"literal","value":"titlebar"}},{"id":500,"name":"Tooltip","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1915,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1915"}],"type":{"type":"literal","value":"tooltip"}},{"id":489,"name":"UltraDark","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. Use a semantic material instead."}]}]},"sources":[{"fileName":"window.ts","line":1871,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1871"}],"type":{"type":"literal","value":"ultraDark"}},{"id":503,"name":"UnderPageBackground","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1927,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1927"}],"type":{"type":"literal","value":"underPageBackground"}},{"id":502,"name":"UnderWindowBackground","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1923,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1923"}],"type":{"type":"literal","value":"underWindowBackground"}},{"id":497,"name":"WindowBackground","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1903,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1903"}],"type":{"type":"literal","value":"windowBackground"}}],"groups":[{"title":"Enumeration Members","children":[506,485,505,501,487,499,495,498,486,488,492,504,493,491,496,494,490,500,489,503,502,497]}],"sources":[{"fileName":"window.ts","line":1841,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1841"}]},{"id":507,"name":"EffectState","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Window effect state **macOS only**"}],"blockTags":[{"tag":"@see","content":[{"kind":"text","text":"https://developer.apple.com/documentation/appkit/nsvisualeffectview/state"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"children":[{"id":509,"name":"Active","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"Make window effect state always active **macOS only**"}]},"sources":[{"fileName":"window.ts","line":1965,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1965"}],"type":{"type":"literal","value":"active"}},{"id":508,"name":"FollowsWindowActiveState","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"Make window effect state follow the window's active state **macOS only**"}]},"sources":[{"fileName":"window.ts","line":1961,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1961"}],"type":{"type":"literal","value":"followsWindowActiveState"}},{"id":510,"name":"Inactive","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"Make window effect state always inactive **macOS only**"}]},"sources":[{"fileName":"window.ts","line":1969,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1969"}],"type":{"type":"literal","value":"inactive"}}],"groups":[{"title":"Enumeration Members","children":[509,508,510]}],"sources":[{"fileName":"window.ts","line":1957,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1957"}]},{"id":481,"name":"UserAttentionType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Attention type to request on a window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":482,"name":"Critical","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon until the application is in focus.\n- **Windows:** Flashes both the window and the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":77,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L77"}],"type":{"type":"literal","value":1}},{"id":483,"name":"Informational","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon once.\n- **Windows:** Flashes the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L83"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[482,483]}],"sources":[{"fileName":"window.ts","line":71,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L71"}]},{"id":465,"name":"CloseRequestedEvent","variant":"declaration","kind":128,"flags":{},"children":[{"id":466,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L95"}],"signatures":[{"id":467,"name":"new CloseRequestedEvent","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L95"}],"parameters":[{"id":468,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":41,"typeArguments":[{"type":"literal","value":null}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":465,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}]},{"id":472,"name":"_preventDefault","variant":"declaration","kind":1024,"flags":{"isPrivate":true},"sources":[{"fileName":"window.ts","line":93,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L93"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"},{"id":469,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"window.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L88"}],"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":471,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"window.ts","line":92,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L92"}],"type":{"type":"intrinsic","name":"number"}},{"id":470,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"window.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L90"}],"type":{"type":"intrinsic","name":"string"}},{"id":475,"name":"isPreventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":105,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L105"}],"signatures":[{"id":476,"name":"isPreventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":105,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L105"}],"type":{"type":"intrinsic","name":"boolean"}}]},{"id":473,"name":"preventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L101"}],"signatures":[{"id":474,"name":"preventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L101"}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Constructors","children":[466]},{"title":"Properties","children":[472,469,471,470]},{"title":"Methods","children":[475,473]}],"sources":[{"fileName":"window.ts","line":86,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L86"}]},{"id":276,"name":"Window","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Create new webview window or get a handle to an existing one.\n\nWindows are identified by a *label* a unique identifier that can be used to reference it later.\nIt may only contain alphanumeric characters "},{"kind":"code","text":"`a-zA-Z`"},{"kind":"text","text":" plus the following special characters "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\n// loading embedded asset:\nconst appWindow = new Window('theUniqueLabel', {\n url: 'path/to/page.html'\n});\n// alternatively, load a remote URL:\nconst appWindow = new Window('theUniqueLabel', {\n url: 'https://github.com/tauri-apps/tauri'\n});\n\nappWindow.once('tauri://created', function () {\n // window successfully created\n});\nappWindow.once('tauri://error', function (e) {\n // an error happened creating the window\n});\n\n// emit an event to the backend\nawait appWindow.emit(\"some event\", \"data\");\n// listen to an event from the backend\nconst unlisten = await appWindow.listen(\"event name\", e => {});\nunlisten();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":286,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":245,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L245"}],"signatures":[{"id":287,"name":"new Window","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new Window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Window } from '@tauri-apps/api/window';\nconst appWindow = new Window('my-label', {\n url: 'https://github.com/tauri-apps/tauri'\n});\nappWindow.once('tauri://created', function () {\n // window successfully created\n});\nappWindow.once('tauri://error', function (e) {\n // an error happened creating the window\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The "},{"kind":"inline-tag","tag":"@link","text":"Window","target":276,"tsLinkText":""},{"kind":"text","text":" instance to communicate with the webview."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":245,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L245"}],"parameters":[{"id":288,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The unique webview window label. Must be alphanumeric: "},{"kind":"code","text":"`a-zA-Z-/:_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":289,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":536,"name":"WindowOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}]},{"id":290,"name":"label","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The window label. It is a unique identifier for the window, can be used to reference it later."}]},"sources":[{"fileName":"window.ts","line":219,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L219"}],"type":{"type":"intrinsic","name":"string"}},{"id":291,"name":"listeners","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Local event listeners."}]},"sources":[{"fileName":"window.ts","line":222,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L222"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"reference","target":47,"typeArguments":[{"type":"intrinsic","name":"any"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":345,"name":"center","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":767,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L767"}],"signatures":[{"id":346,"name":"center","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Centers the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().center();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":767,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L767"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":390,"name":"clearEffects","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1135,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1135"}],"signatures":[{"id":391,"name":"clearEffects","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Clear any applied effects if possible."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"sources":[{"fileName":"window.ts","line":1135,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1135"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":379,"name":"close","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1064,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1064"}],"signatures":[{"id":380,"name":"close","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().close();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1064,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1064"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":302,"name":"emit","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":401,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L401"}],"signatures":[{"id":303,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend, tied to the webview window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().emit('window-loaded', { loggedIn: true, token: 'authToken' });\n```"}]}]},"sources":[{"fileName":"window.ts","line":401,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L401"}],"parameters":[{"id":304,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":305,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Event payload."}]},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":377,"name":"hide","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1046,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1046"}],"signatures":[{"id":378,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to false."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().hide();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1046,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1046"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":313,"name":"innerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":458,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L458"}],"signatures":[{"id":314,"name":"innerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window's client area relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst position = await getCurrent().innerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner position."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":458,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L458"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":317,"name":"innerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":495,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L495"}],"signatures":[{"id":318,"name":"innerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the window's client area.\nThe client area is the content of the window, excluding the title bar and borders."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst size = await getCurrent().innerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner size."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":495,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L495"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":337,"name":"isClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":689,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L689"}],"signatures":[{"id":338,"name":"isClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native close button state.\n\n#### Platform-specific\n\n- **iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst closable = await getCurrent().isClosable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native close button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":689,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L689"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":329,"name":"isDecorated","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":608,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L608"}],"signatures":[{"id":330,"name":"isDecorated","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current decorated state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst decorated = await getCurrent().isDecorated();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is decorated or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":608,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L608"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":327,"name":"isFocused","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":590,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L590"}],"signatures":[{"id":328,"name":"isFocused","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current focus state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst focused = await getCurrent().isFocused();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is focused or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":590,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L590"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":321,"name":"isFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":538,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L538"}],"signatures":[{"id":322,"name":"isFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst fullscreen = await getCurrent().isFullscreen();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":538,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L538"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":333,"name":"isMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":647,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L647"}],"signatures":[{"id":334,"name":"isMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native maximize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst maximizable = await getCurrent().isMaximizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":647,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L647"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":325,"name":"isMaximized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":572,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L572"}],"signatures":[{"id":326,"name":"isMaximized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst maximized = await getCurrent().isMaximized();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is maximized or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":572,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L572"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":335,"name":"isMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":668,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L668"}],"signatures":[{"id":336,"name":"isMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native minimize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst minimizable = await getCurrent().isMinimizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":668,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L668"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":323,"name":"isMinimized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":554,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L554"}],"signatures":[{"id":324,"name":"isMinimized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current minimized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst minimized = await getCurrent().isMinimized();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":554,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L554"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":331,"name":"isResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":626,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L626"}],"signatures":[{"id":332,"name":"isResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current resizable state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst resizable = await getCurrent().isResizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is resizable or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":626,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L626"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":339,"name":"isVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":707,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L707"}],"signatures":[{"id":340,"name":"isVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current visible state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst visible = await getCurrent().isVisible();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is visible or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":707,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L707"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":292,"name":"listen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":344,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L344"}],"signatures":[{"id":293,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event emitted by the backend that is tied to the webview window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst unlisten = await getCurrent().listen('state-changed', (event) => {\n console.log(`Got error: ${payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L344"}],"typeParameter":[{"id":294,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":295,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":296,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":365,"name":"maximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":938,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L938"}],"signatures":[{"id":366,"name":"maximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Maximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().maximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":938,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L938"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":371,"name":"minimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":992,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L992"}],"signatures":[{"id":372,"name":"minimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Minimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().minimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":992,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L992"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":444,"name":"onCloseRequested","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1640,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1640"}],"signatures":[{"id":445,"name":"onCloseRequested","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window close requested. Emitted when the user requests to closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nimport { confirm } from '@tauri-apps/api/dialog';\nconst unlisten = await getCurrent().onCloseRequested(async (event) => {\n const confirmed = await confirm('Are you sure?');\n if (!confirmed) {\n // user did not confirm closing the window; let's prevent it\n event.preventDefault();\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1640,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1640"}],"parameters":[{"id":446,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":447,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"window.ts","line":1641,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1641"}],"signatures":[{"id":448,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":1641,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1641"}],"parameters":[{"id":449,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":465,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}],"type":{"type":"union","types":[{"type":"intrinsic","name":"void"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}]}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":459,"name":"onFileDropEvent","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1774,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1774"}],"signatures":[{"id":460,"name":"onFileDropEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to a file drop event.\nThe listener is triggered when the user hovers the selected files on the window,\ndrops the files or cancels the operation."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onFileDropEvent((event) => {\n if (event.payload.type === 'hover') {\n console.log('User hovering', event.payload.paths);\n } else if (event.payload.type === 'drop') {\n console.log('User dropped', event.payload.paths);\n } else {\n console.log('File drop cancelled');\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1774,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1774"}],"parameters":[{"id":461,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":527,"name":"FileDropEvent","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":450,"name":"onFocusChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1673,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1673"}],"signatures":[{"id":451,"name":"onFocusChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window focus change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onFocusChanged(({ payload: focused }) => {\n console.log('Focus changed, window is focused? ' + focused);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1673,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1673"}],"parameters":[{"id":452,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":456,"name":"onMenuClicked","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1743,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1743"}],"signatures":[{"id":457,"name":"onMenuClicked","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the window menu item click. The payload is the item id."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onMenuClicked(({ payload: menuId }) => {\n console.log('Menu clicked: ' + menuId);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1743,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1743"}],"parameters":[{"id":458,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":441,"name":"onMoved","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1608,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1608"}],"signatures":[{"id":442,"name":"onMoved","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window move."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onMoved(({ payload: position }) => {\n console.log('Window moved', position);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1608,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1608"}],"parameters":[{"id":443,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":438,"name":"onResized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1582,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1582"}],"signatures":[{"id":439,"name":"onResized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window resize."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onResized(({ payload: size }) => {\n console.log('Window resized', size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1582,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1582"}],"parameters":[{"id":440,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":453,"name":"onScaleChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1715,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1715"}],"signatures":[{"id":454,"name":"onScaleChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window scale change. Emitted when the window's scale factor has changed.\nThe following user actions can cause DPI changes:\n- Changing the display's resolution.\n- Changing the display's scale factor (e.g. in Control Panel on Windows).\n- Moving the window to a display with a different scale factor."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onScaleChanged(({ payload }) => {\n console.log('Scale changed', payload.scaleFactor, payload.size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1715,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1715"}],"parameters":[{"id":455,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":524,"name":"ScaleFactorChanged","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":462,"name":"onThemeChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1824,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1824"}],"signatures":[{"id":463,"name":"onThemeChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the system theme change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onThemeChanged(({ payload: theme }) => {\n console.log('New theme: ' + theme);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1824,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1824"}],"parameters":[{"id":464,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":522,"name":"Theme","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":297,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":379,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L379"}],"signatures":[{"id":298,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event emitted by the backend that is tied to the webview window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst unlisten = await getCurrent().once('initialized', (event) => {\n console.log(`Window initialized!`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":379,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L379"}],"typeParameter":[{"id":299,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":300,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":301,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":315,"name":"outerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":476,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L476"}],"signatures":[{"id":316,"name":"outerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst position = await getCurrent().outerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer position."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":476,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L476"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":319,"name":"outerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":517,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L517"}],"signatures":[{"id":320,"name":"outerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the entire window.\nThese dimensions include the title bar and borders. If you don't want that (and you usually don't), use inner_size instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst size = await getCurrent().outerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer size."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":517,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L517"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":347,"name":"requestUserAttention","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":796,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L796"}],"signatures":[{"id":348,"name":"requestUserAttention","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests user attention to the window, this has no effect if the application\nis already focused. How requesting for user attention manifests is platform dependent,\nsee "},{"kind":"code","text":"`UserAttentionType`"},{"kind":"text","text":" for details.\n\nProviding "},{"kind":"code","text":"`null`"},{"kind":"text","text":" will unset the request for user attention. Unsetting the request for\nuser attention might not be done automatically by the WM when the window receives input.\n\n#### Platform-specific\n\n- **macOS:** "},{"kind":"code","text":"`null`"},{"kind":"text","text":" has no effect.\n- **Linux:** Urgency levels have the same effect."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().requestUserAttention();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":796,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L796"}],"parameters":[{"id":349,"name":"requestType","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":481,"name":"UserAttentionType","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":311,"name":"scaleFactor","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":440,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L440"}],"signatures":[{"id":312,"name":"scaleFactor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst factor = await getCurrent().scaleFactor();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's monitor scale factor."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":440,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L440"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":392,"name":"setAlwaysOnTop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1155,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1155"}],"signatures":[{"id":393,"name":"setAlwaysOnTop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setAlwaysOnTop(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1155,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1155"}],"parameters":[{"id":394,"name":"alwaysOnTop","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":359,"name":"setClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":899,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L899"}],"signatures":[{"id":360,"name":"setClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native close button is enabled or not.\n\n#### Platform-specific\n\n- **Linux:** GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible\n- **iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setClosable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":899,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L899"}],"parameters":[{"id":361,"name":"closable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":395,"name":"setContentProtected","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1174,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1174"}],"signatures":[{"id":396,"name":"setContentProtected","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setContentProtected(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1174,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1174"}],"parameters":[{"id":397,"name":"protected_","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":421,"name":"setCursorGrab","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1432,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1432"}],"signatures":[{"id":422,"name":"setCursorGrab","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Grabs the cursor, preventing it from leaving the window.\n\nThere's no guarantee that the cursor will be hidden. You should\nhide it by yourself if you want so.\n\n#### Platform-specific\n\n- **Linux:** Unsupported.\n- **macOS:** This locks the cursor in a fixed location, which looks visually awkward."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setCursorGrab(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1432,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1432"}],"parameters":[{"id":423,"name":"grab","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to grab the cursor icon, "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to release it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":427,"name":"setCursorIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1478,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1478"}],"signatures":[{"id":428,"name":"setCursorIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor icon of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setCursorIcon('help');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1478,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1478"}],"parameters":[{"id":429,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor icon."}]},"type":{"type":"reference","target":274,"name":"CursorIcon","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":430,"name":"setCursorPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1498,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1498"}],"signatures":[{"id":431,"name":"setCursorPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the position of the cursor in window coordinates."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, LogicalPosition } from '@tauri-apps/api/window';\nawait getCurrent().setCursorPosition(new LogicalPosition(600, 300));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1498,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1498"}],"parameters":[{"id":432,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor position."}]},"type":{"type":"union","types":[{"type":"reference","target":2,"name":"LogicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":424,"name":"setCursorVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1458,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1458"}],"signatures":[{"id":425,"name":"setCursorVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor's visibility.\n\n#### Platform-specific\n\n- **Windows:** The cursor is only hidden within the confines of the window.\n- **macOS:** The cursor is hidden as long as the window has input focus, even if the cursor is\n outside of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setCursorVisible(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1458,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1458"}],"parameters":[{"id":426,"name":"visible","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`false`"},{"kind":"text","text":", this will hide the cursor. If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", this will show the cursor."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":381,"name":"setDecorations","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1083,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1083"}],"signatures":[{"id":382,"name":"setDecorations","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setDecorations(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1083,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1083"}],"parameters":[{"id":383,"name":"decorations","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":387,"name":"setEffects","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1123,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1123"}],"signatures":[{"id":388,"name":"setEffects","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Set window effects."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"sources":[{"fileName":"window.ts","line":1123,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1123"}],"parameters":[{"id":389,"name":"effects","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":517,"name":"Effects","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":413,"name":"setFocus","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1354,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1354"}],"signatures":[{"id":414,"name":"setFocus","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Bring the window to front and focus."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setFocus();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1354,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1354"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":410,"name":"setFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1335,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1335"}],"signatures":[{"id":411,"name":"setFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setFullscreen(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1335,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1335"}],"parameters":[{"id":412,"name":"fullscreen","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should go to fullscreen or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":415,"name":"setIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1380,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1380"}],"signatures":[{"id":416,"name":"setIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window icon."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setIcon('/tauri/awesome.png');\n```"},{"kind":"text","text":"\n\nNote that you need the "},{"kind":"code","text":"`icon-ico`"},{"kind":"text","text":" or "},{"kind":"code","text":"`icon-png`"},{"kind":"text","text":" Cargo features to use this API.\nTo enable it, change your Cargo.toml file:\n"},{"kind":"code","text":"```toml\n[dependencies]\ntauri = { version = \"...\", features = [\"...\", \"icon-png\"] }\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1380,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1380"}],"parameters":[{"id":417,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Icon bytes or path to the icon file."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":433,"name":"setIgnoreCursorEvents","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1536,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1536"}],"signatures":[{"id":434,"name":"setIgnoreCursorEvents","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the cursor events behavior."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setIgnoreCursorEvents(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1536,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1536"}],"parameters":[{"id":435,"name":"ignore","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to ignore the cursor events; "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to process them as usual."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":404,"name":"setMaxSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1262,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1262"}],"signatures":[{"id":405,"name":"setMaxSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window maximum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is undefined, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, LogicalSize } from '@tauri-apps/api/window';\nawait getCurrent().setMaxSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1262,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1262"}],"parameters":[{"id":406,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"},{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":353,"name":"setMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":852,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L852"}],"signatures":[{"id":354,"name":"setMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native maximize button is enabled or not.\nIf resizable is set to false, this setting is ignored.\n\n#### Platform-specific\n\n- **macOS:** Disables the \"zoom\" button in the window titlebar, which is also used to enter fullscreen mode.\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setMaximizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":852,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L852"}],"parameters":[{"id":355,"name":"maximizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":401,"name":"setMinSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1226,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1226"}],"signatures":[{"id":402,"name":"setMinSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window minimum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is not provided, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, PhysicalSize } from '@tauri-apps/api/window';\nawait getCurrent().setMinSize(new PhysicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1226,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1226"}],"parameters":[{"id":403,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"},{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":356,"name":"setMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":875,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L875"}],"signatures":[{"id":357,"name":"setMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native minimize button is enabled or not.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setMinimizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":875,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L875"}],"parameters":[{"id":358,"name":"minimizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":407,"name":"setPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1298,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1298"}],"signatures":[{"id":408,"name":"setPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window outer position."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, LogicalPosition } from '@tauri-apps/api/window';\nawait getCurrent().setPosition(new LogicalPosition(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1298,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1298"}],"parameters":[{"id":409,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new position, in logical or physical pixels."}]},"type":{"type":"union","types":[{"type":"reference","target":2,"name":"LogicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":350,"name":"setResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":827,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L827"}],"signatures":[{"id":351,"name":"setResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Updates the window resizable flag."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setResizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":827,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L827"}],"parameters":[{"id":352,"name":"resizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":384,"name":"setShadow","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1111,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1111"}],"signatures":[{"id":385,"name":"setShadow","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether or not the window should have shadow.\n\n#### Platform-specific\n\n- **Windows:**\n - "},{"kind":"code","text":"`false`"},{"kind":"text","text":" has no effect on decorated window, shadows are always ON.\n - "},{"kind":"code","text":"`true`"},{"kind":"text","text":" will make ndecorated window have a 1px white border,\nand on Windows 11, it will have a rounded corners.\n- **Linux:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setShadow(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1111,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1111"}],"parameters":[{"id":386,"name":"enable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":398,"name":"setSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1194,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1194"}],"signatures":[{"id":399,"name":"setSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resizes the window with a new inner size."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, LogicalSize } from '@tauri-apps/api/window';\nawait getCurrent().setSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1194,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1194"}],"parameters":[{"id":400,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size."}]},"type":{"type":"union","types":[{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"},{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":418,"name":"setSkipTaskbar","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1404,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1404"}],"signatures":[{"id":419,"name":"setSkipTaskbar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window icon should be hidden from the taskbar or not.\n\n#### Platform-specific\n\n- **macOS:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setSkipTaskbar(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1404,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1404"}],"parameters":[{"id":420,"name":"skip","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"true to hide window icon, false to show it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":362,"name":"setTitle","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":919,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L919"}],"signatures":[{"id":363,"name":"setTitle","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setTitle('Tauri');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":919,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L919"}],"parameters":[{"id":364,"name":"title","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new title"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":375,"name":"show","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1028,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1028"}],"signatures":[{"id":376,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to true."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().show();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1028,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1028"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":436,"name":"startDragging","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1555,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1555"}],"signatures":[{"id":437,"name":"startDragging","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Starts dragging the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().startDragging();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1555,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1555"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":343,"name":"theme","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":746,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L746"}],"signatures":[{"id":344,"name":"theme","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current theme.\n\n#### Platform-specific\n\n- **macOS:** Theme was introduced on macOS 10.14. Returns "},{"kind":"code","text":"`light`"},{"kind":"text","text":" on macOS 10.13 and below."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst theme = await getCurrent().theme();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window theme."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":746,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L746"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":522,"name":"Theme","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":341,"name":"title","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":723,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L723"}],"signatures":[{"id":342,"name":"title","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst title = await getCurrent().title();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":723,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L723"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":369,"name":"toggleMaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":974,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L974"}],"signatures":[{"id":370,"name":"toggleMaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Toggles the window maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().toggleMaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":974,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L974"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":367,"name":"unmaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":956,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L956"}],"signatures":[{"id":368,"name":"unmaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unmaximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().unmaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":956,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L956"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":373,"name":"unminimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1010,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1010"}],"signatures":[{"id":374,"name":"unminimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unminimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().unminimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1010,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1010"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":282,"name":"getAll","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":298,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L298"}],"signatures":[{"id":283,"name":"getAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets a list of instances of "},{"kind":"code","text":"`Window`"},{"kind":"text","text":" for all available windows."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":298,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L298"}],"type":{"type":"array","elementType":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}}]},{"id":277,"name":"getByLabel","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":276,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L276"}],"signatures":[{"id":278,"name":"getByLabel","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the Window for the webview associated with the given label."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Window } from '@tauri-apps/api/window';\nconst mainWindow = Window.getByLabel('main');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The Window instance to communicate with the webview or null if the webview doesn't exist."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L276"}],"parameters":[{"id":279,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The webview window label."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}]}}]},{"id":280,"name":"getCurrent","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":289,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L289"}],"signatures":[{"id":281,"name":"getCurrent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get an instance of "},{"kind":"code","text":"`Window`"},{"kind":"text","text":" for the current window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L289"}],"type":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}]},{"id":284,"name":"getFocusedWindow","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":314,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L314"}],"signatures":[{"id":285,"name":"getFocusedWindow","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the focused window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Window } from '@tauri-apps/api/window';\nconst focusedWindow = Window.getFocusedWindow();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The Window instance to communicate with the webview or "},{"kind":"code","text":"`undefined`"},{"kind":"text","text":" if there is not any focused window."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":314,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L314"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[286]},{"title":"Properties","children":[290,291]},{"title":"Methods","children":[345,390,379,302,377,313,317,337,329,327,321,333,325,335,323,331,339,292,365,371,444,459,450,456,441,438,453,462,297,315,319,347,311,392,359,395,421,427,430,424,381,387,413,410,415,433,404,353,401,356,407,350,384,398,418,362,375,436,343,341,369,367,373,282,277,280,284]}],"sources":[{"fileName":"window.ts","line":217,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L217"}]},{"id":517,"name":"Effects","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"The window effects configuration object"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"children":[{"id":521,"name":"color","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window effect color. Affects "},{"kind":"inline-tag","tag":"@link","text":"Effects.Blur"},{"kind":"text","text":" and "},{"kind":"inline-tag","tag":"@link","text":"Effects.Acrylic"},{"kind":"text","text":" only\non Windows 10 v1903+. Doesn't have any effect on Windows 7 or Windows 11."}]},"sources":[{"fileName":"window.ts","line":1994,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1994"}],"type":{"type":"reference","target":570,"name":"Color","package":"@tauri-apps/api"}},{"id":518,"name":"effects","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"List of Window effects to apply to the Window.\nConflicting effects will apply the first one and ignore the rest."}]},"sources":[{"fileName":"window.ts","line":1981,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1981"}],"type":{"type":"array","elementType":{"type":"reference","target":484,"name":"Effect","package":"@tauri-apps/api"}}},{"id":520,"name":"radius","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window effect corner radius **macOS Only**"}]},"sources":[{"fileName":"window.ts","line":1989,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1989"}],"type":{"type":"intrinsic","name":"number"}},{"id":519,"name":"state","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window effect state **macOS Only**"}]},"sources":[{"fileName":"window.ts","line":1985,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1985"}],"type":{"type":"reference","target":507,"name":"EffectState","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[521,518,520,519]}],"sources":[{"fileName":"window.ts","line":1976,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1976"}]},{"id":269,"name":"Monitor","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Allows you to retrieve information about a given monitor."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":270,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Human-readable name of the monitor"}]},"sources":[{"fileName":"window.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L36"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"}]}},{"id":272,"name":"position","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"the Top-left corner position of the monitor relative to the larger full screen area."}]},"sources":[{"fileName":"window.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L40"}],"type":{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}},{"id":273,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}]},"sources":[{"fileName":"window.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L42"}],"type":{"type":"intrinsic","name":"number"}},{"id":271,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The monitor's resolution."}]},"sources":[{"fileName":"window.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L38"}],"type":{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[270,272,273,271]}],"sources":[{"fileName":"window.ts","line":34,"character":17,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L34"}]},{"id":524,"name":"ScaleFactorChanged","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"The payload for the "},{"kind":"code","text":"`scaleChange`"},{"kind":"text","text":" event."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":525,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window scale factor."}]},"sources":[{"fileName":"window.ts","line":55,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L55"}],"type":{"type":"intrinsic","name":"number"}},{"id":526,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window size"}]},"sources":[{"fileName":"window.ts","line":57,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L57"}],"type":{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[525,526]}],"sources":[{"fileName":"window.ts","line":53,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L53"}]},{"id":536,"name":"WindowOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Configuration for the window to create."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":563,"name":"acceptFirstMouse","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether clicking an inactive window also clicks through to the webview on macOS."}]},"sources":[{"fileName":"window.ts","line":2092,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2092"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":555,"name":"alwaysOnTop","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"sources":[{"fileName":"window.ts","line":2050,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2050"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":538,"name":"center","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Show window in the center of the screen.."}]},"sources":[{"fileName":"window.ts","line":2012,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2012"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":569,"name":"closable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native close button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2123,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2123"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":556,"name":"contentProtected","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}]},"sources":[{"fileName":"window.ts","line":2052,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2052"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":554,"name":"decorations","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars or not."}]},"sources":[{"fileName":"window.ts","line":2048,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2048"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":559,"name":"fileDropEnabled","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the file drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use drag and drop on the frontend on Windows."}]},"sources":[{"fileName":"window.ts","line":2074,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2074"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":550,"name":"focus","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window will be initially focused or not."}]},"sources":[{"fileName":"window.ts","line":2036,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2036"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":549,"name":"fullscreen","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]},"sources":[{"fileName":"window.ts","line":2034,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2034"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":542,"name":"height","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial height."}]},"sources":[{"fileName":"window.ts","line":2020,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2020"}],"type":{"type":"intrinsic","name":"number"}},{"id":562,"name":"hiddenTitle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", sets the window title to be hidden on macOS."}]},"sources":[{"fileName":"window.ts","line":2088,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2088"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":566,"name":"incognito","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the webview should be launched in incognito mode.\n\n#### Platform-specific\n\n- **Android:** Unsupported."}]},"sources":[{"fileName":"window.ts","line":2111,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2111"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":546,"name":"maxHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum height. Only applies if "},{"kind":"code","text":"`maxWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2028,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2028"}],"type":{"type":"intrinsic","name":"number"}},{"id":545,"name":"maxWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum width. Only applies if "},{"kind":"code","text":"`maxHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2026,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2026"}],"type":{"type":"intrinsic","name":"number"}},{"id":567,"name":"maximizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2115,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2115"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":552,"name":"maximized","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be maximized upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2044,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2044"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":544,"name":"minHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum height. Only applies if "},{"kind":"code","text":"`minWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2024,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2024"}],"type":{"type":"intrinsic","name":"number"}},{"id":543,"name":"minWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum width. Only applies if "},{"kind":"code","text":"`minHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2022,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2022"}],"type":{"type":"intrinsic","name":"number"}},{"id":568,"name":"minimizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2119,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2119"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":547,"name":"resizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is resizable or not."}]},"sources":[{"fileName":"window.ts","line":2030,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2030"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":558,"name":"shadow","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the window has shadow.\n\n#### Platform-specific\n\n- **Windows:**\n - "},{"kind":"code","text":"`false`"},{"kind":"text","text":" has no effect on decorated window, shadows are always ON.\n - "},{"kind":"code","text":"`true`"},{"kind":"text","text":" will make ndecorated window have a 1px white border,\nand on Windows 11, it will have a rounded corners.\n- **Linux:** Unsupported."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2068,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2068"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":557,"name":"skipTaskbar","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the window icon should be added to the taskbar."}]},"sources":[{"fileName":"window.ts","line":2054,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2054"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":564,"name":"tabbingIdentifier","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the window [tabbing identifier](https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier) on macOS.\n\nWindows with the same tabbing identifier will be grouped together.\nIf the tabbing identifier is not set, automatic tabbing will be disabled."}]},"sources":[{"fileName":"window.ts","line":2099,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2099"}],"type":{"type":"intrinsic","name":"string"}},{"id":560,"name":"theme","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial window theme. Defaults to the system theme.\n\nOnly implemented on Windows and macOS 10.14+."}]},"sources":[{"fileName":"window.ts","line":2080,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2080"}],"type":{"type":"reference","target":522,"name":"Theme","package":"@tauri-apps/api"}},{"id":548,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window title."}]},"sources":[{"fileName":"window.ts","line":2032,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2032"}],"type":{"type":"intrinsic","name":"string"}},{"id":561,"name":"titleBarStyle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The style of the macOS title bar."}]},"sources":[{"fileName":"window.ts","line":2084,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2084"}],"type":{"type":"reference","target":523,"name":"TitleBarStyle","package":"@tauri-apps/api"}},{"id":551,"name":"transparent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is transparent or not.\nNote that on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" this requires the "},{"kind":"code","text":"`macos-private-api`"},{"kind":"text","text":" feature flag, enabled under "},{"kind":"code","text":"`tauri.conf.json > tauri > macOSPrivateApi`"},{"kind":"text","text":".\nWARNING: Using private APIs on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" prevents your application from being accepted to the "},{"kind":"code","text":"`App Store`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2042,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2042"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":537,"name":"url","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Remote URL or local file path to open.\n\n- URL such as "},{"kind":"code","text":"`https://github.com/tauri-apps`"},{"kind":"text","text":" is opened directly on a Tauri window.\n- data: URL such as "},{"kind":"code","text":"`data:text/html,...`"},{"kind":"text","text":" is only supported with the "},{"kind":"code","text":"`window-data-url`"},{"kind":"text","text":" Cargo feature for the "},{"kind":"code","text":"`tauri`"},{"kind":"text","text":" dependency.\n- local file path or route such as "},{"kind":"code","text":"`/path/to/page.html`"},{"kind":"text","text":" or "},{"kind":"code","text":"`/users`"},{"kind":"text","text":" is appended to the application URL (the devServer URL on development, or "},{"kind":"code","text":"`tauri://localhost/`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://tauri.localhost/`"},{"kind":"text","text":" on production)."}]},"sources":[{"fileName":"window.ts","line":2010,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2010"}],"type":{"type":"intrinsic","name":"string"}},{"id":565,"name":"userAgent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The user agent for the webview."}]},"sources":[{"fileName":"window.ts","line":2103,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2103"}],"type":{"type":"intrinsic","name":"string"}},{"id":553,"name":"visible","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be immediately visible upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2046,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2046"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":541,"name":"width","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial width."}]},"sources":[{"fileName":"window.ts","line":2018,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2018"}],"type":{"type":"intrinsic","name":"number"}},{"id":539,"name":"x","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial vertical position. Only applies if "},{"kind":"code","text":"`y`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2014,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2014"}],"type":{"type":"intrinsic","name":"number"}},{"id":540,"name":"y","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial horizontal position. Only applies if "},{"kind":"code","text":"`x`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2016,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2016"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[563,555,538,569,556,554,559,550,549,542,562,566,546,545,567,552,544,543,568,547,558,557,564,560,548,561,551,537,565,553,541,539,540]}],"sources":[{"fileName":"window.ts","line":2002,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2002"}]},{"id":570,"name":"Color","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"an array RGBA colors. Each value has minimum of 0 and maximum of 255."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"sources":[{"fileName":"window.ts","line":1834,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1834"}],"type":{"type":"tuple","elements":[{"type":"intrinsic","name":"number"},{"type":"intrinsic","name":"number"},{"type":"intrinsic","name":"number"},{"type":"intrinsic","name":"number"}]}},{"id":274,"name":"CursorIcon","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":110,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L110"}],"type":{"type":"union","types":[{"type":"literal","value":"default"},{"type":"literal","value":"crosshair"},{"type":"literal","value":"hand"},{"type":"literal","value":"arrow"},{"type":"literal","value":"move"},{"type":"literal","value":"text"},{"type":"literal","value":"wait"},{"type":"literal","value":"help"},{"type":"literal","value":"progress"},{"type":"literal","value":"notAllowed"},{"type":"literal","value":"contextMenu"},{"type":"literal","value":"cell"},{"type":"literal","value":"verticalText"},{"type":"literal","value":"alias"},{"type":"literal","value":"copy"},{"type":"literal","value":"noDrop"},{"type":"literal","value":"grab"},{"type":"literal","value":"grabbing"},{"type":"literal","value":"allScroll"},{"type":"literal","value":"zoomIn"},{"type":"literal","value":"zoomOut"},{"type":"literal","value":"eResize"},{"type":"literal","value":"nResize"},{"type":"literal","value":"neResize"},{"type":"literal","value":"nwResize"},{"type":"literal","value":"sResize"},{"type":"literal","value":"seResize"},{"type":"literal","value":"swResize"},{"type":"literal","value":"wResize"},{"type":"literal","value":"ewResize"},{"type":"literal","value":"nsResize"},{"type":"literal","value":"neswResize"},{"type":"literal","value":"nwseResize"},{"type":"literal","value":"colResize"},{"type":"literal","value":"rowResize"}]}},{"id":527,"name":"FileDropEvent","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file drop event types."}]},"sources":[{"fileName":"window.ts","line":61,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L61"}],"type":{"type":"union","types":[{"type":"reflection","declaration":{"id":528,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":530,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":62,"character":21,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L62"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":529,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":62,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L62"}],"type":{"type":"literal","value":"hover"}}],"groups":[{"title":"Properties","children":[530,529]}],"sources":[{"fileName":"window.ts","line":62,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L62"}]}},{"type":"reflection","declaration":{"id":531,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":533,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":63,"character":20,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L63"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":532,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":63,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L63"}],"type":{"type":"literal","value":"drop"}}],"groups":[{"title":"Properties","children":[533,532]}],"sources":[{"fileName":"window.ts","line":63,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L63"}]}},{"type":"reflection","declaration":{"id":534,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":535,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":64,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L64"}],"type":{"type":"literal","value":"cancel"}}],"groups":[{"title":"Properties","children":[535]}],"sources":[{"fileName":"window.ts","line":64,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L64"}]}}]}},{"id":522,"name":"Theme","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":45,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L45"}],"type":{"type":"union","types":[{"type":"literal","value":"light"},{"type":"literal","value":"dark"}]}},{"id":523,"name":"TitleBarStyle","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":46,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L46"}],"type":{"type":"union","types":[{"type":"literal","value":"visible"},{"type":"literal","value":"transparent"},{"type":"literal","value":"overlay"}]}},{"id":515,"name":"availableMonitors","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2189,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2189"}],"signatures":[{"id":516,"name":"availableMonitors","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the list of all the monitors available on the system."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { availableMonitors } from '@tauri-apps/api/window';\nconst monitors = availableMonitors();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2189,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2189"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":269,"name":"Monitor","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":511,"name":"currentMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2156,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2156"}],"signatures":[{"id":512,"name":"currentMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the monitor on which the window currently resides.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if current monitor can't be detected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { currentMonitor } from '@tauri-apps/api/window';\nconst monitor = currentMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2156,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2156"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":269,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":479,"name":"getAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":168,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L168"}],"signatures":[{"id":480,"name":"getAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets a list of instances of "},{"kind":"code","text":"`Window`"},{"kind":"text","text":" for all available windows."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":168,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L168"}],"type":{"type":"array","elementType":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}}]},{"id":477,"name":"getCurrent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":156,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L156"}],"signatures":[{"id":478,"name":"getCurrent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get an instance of "},{"kind":"code","text":"`Window`"},{"kind":"text","text":" for the current window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":156,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L156"}],"type":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}]},{"id":513,"name":"primaryMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2173,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2173"}],"signatures":[{"id":514,"name":"primaryMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the primary monitor of the system.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if it can't identify any monitor as a primary one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { primaryMonitor } from '@tauri-apps/api/window';\nconst monitor = primaryMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2173,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L2173"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":269,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[573,571,574,572]},{"title":"Enumerations","children":[484,507,481]},{"title":"Classes","children":[465,276]},{"title":"Interfaces","children":[517,269,524,536]},{"title":"Type Aliases","children":[570,274,527,522,523]},{"title":"Functions","children":[515,511,479,477,513]}],"sources":[{"fileName":"window.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/a7d6887ce/tooling/api/src/window.ts#L1"}]}],"groups":[{"title":"Modules","children":[1,40,89,103,204,268]}],"packageName":"@tauri-apps/api","symbolIdMap":{"1":{"sourceFileName":"src/dpi.ts","qualifiedName":""},"2":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition"},"3":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition.__constructor"},"4":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition"},"5":{"sourceFileName":"src/dpi.ts","qualifiedName":"x"},"6":{"sourceFileName":"src/dpi.ts","qualifiedName":"y"},"7":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition.type"},"8":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition.x"},"9":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition.y"},"10":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize"},"11":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize.__constructor"},"12":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize"},"13":{"sourceFileName":"src/dpi.ts","qualifiedName":"width"},"14":{"sourceFileName":"src/dpi.ts","qualifiedName":"height"},"15":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize.type"},"16":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize.width"},"17":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize.height"},"18":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition"},"19":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.__constructor"},"20":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition"},"21":{"sourceFileName":"src/dpi.ts","qualifiedName":"x"},"22":{"sourceFileName":"src/dpi.ts","qualifiedName":"y"},"23":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.type"},"24":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.x"},"25":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.y"},"26":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.toLogical"},"27":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.toLogical"},"28":{"sourceFileName":"src/dpi.ts","qualifiedName":"scaleFactor"},"29":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize"},"30":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.__constructor"},"31":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize"},"32":{"sourceFileName":"src/dpi.ts","qualifiedName":"width"},"33":{"sourceFileName":"src/dpi.ts","qualifiedName":"height"},"34":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.type"},"35":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.width"},"36":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.height"},"37":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.toLogical"},"38":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.toLogical"},"39":{"sourceFileName":"src/dpi.ts","qualifiedName":"scaleFactor"},"40":{"sourceFileName":"src/event.ts","qualifiedName":""},"41":{"sourceFileName":"src/event.ts","qualifiedName":"Event"},"42":{"sourceFileName":"src/event.ts","qualifiedName":"Event.event"},"43":{"sourceFileName":"src/event.ts","qualifiedName":"Event.windowLabel"},"44":{"sourceFileName":"src/event.ts","qualifiedName":"Event.id"},"45":{"sourceFileName":"src/event.ts","qualifiedName":"Event.payload"},"46":{"sourceFileName":"src/event.ts","qualifiedName":"Event.T"},"47":{"sourceFileName":"src/event.ts","qualifiedName":"EventCallback"},"48":{"sourceFileName":"src/event.ts","qualifiedName":"__type"},"49":{"sourceFileName":"src/event.ts","qualifiedName":"__type"},"50":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"51":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"52":{"sourceFileName":"src/event.ts","qualifiedName":"UnlistenFn"},"53":{"sourceFileName":"src/event.ts","qualifiedName":"__type"},"54":{"sourceFileName":"src/event.ts","qualifiedName":"__type"},"55":{"sourceFileName":"src/event.ts","qualifiedName":"EventName"},"56":{"sourceFileName":"src/event.ts","qualifiedName":"Options"},"57":{"sourceFileName":"src/event.ts","qualifiedName":"Options.target"},"58":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"59":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"60":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"61":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"62":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"63":{"sourceFileName":"src/event.ts","qualifiedName":"options"},"64":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"65":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"66":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"67":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"68":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"69":{"sourceFileName":"src/event.ts","qualifiedName":"options"},"70":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"71":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"72":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"73":{"sourceFileName":"src/event.ts","qualifiedName":"payload"},"74":{"sourceFileName":"src/event.ts","qualifiedName":"options"},"75":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent"},"76":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_RESIZED"},"77":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_MOVED"},"78":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CLOSE_REQUESTED"},"79":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CREATED"},"80":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_DESTROYED"},"81":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FOCUS"},"82":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_BLUR"},"83":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_SCALE_FACTOR_CHANGED"},"84":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_THEME_CHANGED"},"85":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP"},"86":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_HOVER"},"87":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_CANCELLED"},"88":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.MENU"},"89":{"sourceFileName":"src/mocks.ts","qualifiedName":""},"90":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"91":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"92":{"sourceFileName":"src/mocks.ts","qualifiedName":"cb"},"93":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"94":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"95":{"sourceFileName":"src/mocks.ts","qualifiedName":"cmd"},"96":{"sourceFileName":"src/mocks.ts","qualifiedName":"payload"},"97":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"98":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"99":{"sourceFileName":"src/mocks.ts","qualifiedName":"current"},"100":{"sourceFileName":"src/mocks.ts","qualifiedName":"additionalWindows"},"101":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"102":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"103":{"sourceFileName":"src/path.ts","qualifiedName":""},"104":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory"},"105":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Audio"},"106":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Cache"},"107":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Config"},"108":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Data"},"109":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.LocalData"},"110":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Document"},"111":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Download"},"112":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Picture"},"113":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Public"},"114":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Video"},"115":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Resource"},"116":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Temp"},"117":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppConfig"},"118":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppData"},"119":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppLocalData"},"120":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppCache"},"121":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppLog"},"122":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Desktop"},"123":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Executable"},"124":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Font"},"125":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Home"},"126":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Runtime"},"127":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Template"},"128":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"129":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"130":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"131":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"132":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"133":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"134":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"135":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"136":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"137":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"138":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"139":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"140":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"141":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"142":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"143":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"144":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"145":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"146":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"147":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"148":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"149":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"150":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"151":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"152":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"153":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"154":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"155":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"156":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"157":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"158":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"159":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"160":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"161":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"162":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"163":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"164":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"165":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"166":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"167":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"168":{"sourceFileName":"src/path.ts","qualifiedName":"resourcePath"},"169":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"170":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"171":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"172":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"173":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"174":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"175":{"sourceFileName":"src/path.ts","qualifiedName":"sep"},"176":{"sourceFileName":"src/path.ts","qualifiedName":"sep"},"177":{"sourceFileName":"src/path.ts","qualifiedName":"delimiter"},"178":{"sourceFileName":"src/path.ts","qualifiedName":"delimiter"},"179":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"180":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"181":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"182":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"183":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"184":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"185":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"186":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"187":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"188":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"189":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"190":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"191":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"192":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"193":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"194":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"195":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"196":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"197":{"sourceFileName":"src/path.ts","qualifiedName":"ext"},"198":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"199":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"200":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"201":{"sourceFileName":"src/path.ts","qualifiedName":"tempDir"},"202":{"sourceFileName":"src/path.ts","qualifiedName":"tempDir"},"203":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"204":{"sourceFileName":"src/primitives.ts","qualifiedName":""},"205":{"sourceFileName":"src/primitives.ts","qualifiedName":"InvokeArgs"},"206":{"sourceFileName":"src/primitives.ts","qualifiedName":"InvokeOptions"},"207":{"sourceFileName":"src/primitives.ts","qualifiedName":"InvokeOptions.headers"},"208":{"sourceFileName":"src/primitives.ts","qualifiedName":"transformCallback"},"209":{"sourceFileName":"src/primitives.ts","qualifiedName":"transformCallback"},"210":{"sourceFileName":"src/primitives.ts","qualifiedName":"callback"},"211":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"212":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"213":{"sourceFileName":"src/primitives.ts","qualifiedName":"response"},"214":{"sourceFileName":"src/primitives.ts","qualifiedName":"once"},"215":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel"},"216":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.__constructor"},"217":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel"},"218":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.T"},"219":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.id"},"220":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.__TAURI_CHANNEL_MARKER__"},"221":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.#onmessage"},"222":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"223":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"224":{"sourceFileName":"src/primitives.ts","qualifiedName":"response"},"225":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.onmessage"},"226":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.onmessage"},"227":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"228":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"229":{"sourceFileName":"src/primitives.ts","qualifiedName":"response"},"230":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.onmessage"},"231":{"sourceFileName":"src/primitives.ts","qualifiedName":"handler"},"232":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"233":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"234":{"sourceFileName":"src/primitives.ts","qualifiedName":"response"},"235":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.toJSON"},"236":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.toJSON"},"237":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.T"},"238":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener"},"239":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.__constructor"},"240":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener"},"241":{"sourceFileName":"src/primitives.ts","qualifiedName":"plugin"},"242":{"sourceFileName":"src/primitives.ts","qualifiedName":"event"},"243":{"sourceFileName":"src/primitives.ts","qualifiedName":"channelId"},"244":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.plugin"},"245":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.event"},"246":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.channelId"},"247":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.unregister"},"248":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.unregister"},"249":{"sourceFileName":"src/primitives.ts","qualifiedName":"addPluginListener"},"250":{"sourceFileName":"src/primitives.ts","qualifiedName":"addPluginListener"},"251":{"sourceFileName":"src/primitives.ts","qualifiedName":"T"},"252":{"sourceFileName":"src/primitives.ts","qualifiedName":"plugin"},"253":{"sourceFileName":"src/primitives.ts","qualifiedName":"event"},"254":{"sourceFileName":"src/primitives.ts","qualifiedName":"cb"},"255":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"256":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"257":{"sourceFileName":"src/primitives.ts","qualifiedName":"payload"},"258":{"sourceFileName":"src/primitives.ts","qualifiedName":"invoke"},"259":{"sourceFileName":"src/primitives.ts","qualifiedName":"invoke"},"260":{"sourceFileName":"src/primitives.ts","qualifiedName":"T"},"261":{"sourceFileName":"src/primitives.ts","qualifiedName":"cmd"},"262":{"sourceFileName":"src/primitives.ts","qualifiedName":"args"},"263":{"sourceFileName":"src/primitives.ts","qualifiedName":"options"},"264":{"sourceFileName":"src/primitives.ts","qualifiedName":"convertFileSrc"},"265":{"sourceFileName":"src/primitives.ts","qualifiedName":"convertFileSrc"},"266":{"sourceFileName":"src/primitives.ts","qualifiedName":"filePath"},"267":{"sourceFileName":"src/primitives.ts","qualifiedName":"protocol"},"268":{"sourceFileName":"src/window.ts","qualifiedName":""},"269":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor"},"270":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.name"},"271":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.size"},"272":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.position"},"273":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.scaleFactor"},"274":{"sourceFileName":"src/window.ts","qualifiedName":"CursorIcon"},"276":{"sourceFileName":"src/window.ts","qualifiedName":"Window"},"277":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getByLabel"},"278":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getByLabel"},"279":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"280":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getCurrent"},"281":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getCurrent"},"282":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getAll"},"283":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getAll"},"284":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getFocusedWindow"},"285":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getFocusedWindow"},"286":{"sourceFileName":"src/window.ts","qualifiedName":"Window.__constructor"},"287":{"sourceFileName":"src/window.ts","qualifiedName":"Window"},"288":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"289":{"sourceFileName":"src/window.ts","qualifiedName":"options"},"290":{"sourceFileName":"src/window.ts","qualifiedName":"Window.label"},"291":{"sourceFileName":"src/window.ts","qualifiedName":"Window.listeners"},"292":{"sourceFileName":"src/window.ts","qualifiedName":"Window.listen"},"293":{"sourceFileName":"src/window.ts","qualifiedName":"Window.listen"},"294":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"295":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"296":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"297":{"sourceFileName":"src/window.ts","qualifiedName":"Window.once"},"298":{"sourceFileName":"src/window.ts","qualifiedName":"Window.once"},"299":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"300":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"301":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"302":{"sourceFileName":"src/window.ts","qualifiedName":"Window.emit"},"303":{"sourceFileName":"src/window.ts","qualifiedName":"Window.emit"},"304":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"305":{"sourceFileName":"src/window.ts","qualifiedName":"payload"},"311":{"sourceFileName":"src/window.ts","qualifiedName":"Window.scaleFactor"},"312":{"sourceFileName":"src/window.ts","qualifiedName":"Window.scaleFactor"},"313":{"sourceFileName":"src/window.ts","qualifiedName":"Window.innerPosition"},"314":{"sourceFileName":"src/window.ts","qualifiedName":"Window.innerPosition"},"315":{"sourceFileName":"src/window.ts","qualifiedName":"Window.outerPosition"},"316":{"sourceFileName":"src/window.ts","qualifiedName":"Window.outerPosition"},"317":{"sourceFileName":"src/window.ts","qualifiedName":"Window.innerSize"},"318":{"sourceFileName":"src/window.ts","qualifiedName":"Window.innerSize"},"319":{"sourceFileName":"src/window.ts","qualifiedName":"Window.outerSize"},"320":{"sourceFileName":"src/window.ts","qualifiedName":"Window.outerSize"},"321":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isFullscreen"},"322":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isFullscreen"},"323":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMinimized"},"324":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMinimized"},"325":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMaximized"},"326":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMaximized"},"327":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isFocused"},"328":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isFocused"},"329":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isDecorated"},"330":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isDecorated"},"331":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isResizable"},"332":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isResizable"},"333":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMaximizable"},"334":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMaximizable"},"335":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMinimizable"},"336":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMinimizable"},"337":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isClosable"},"338":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isClosable"},"339":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isVisible"},"340":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isVisible"},"341":{"sourceFileName":"src/window.ts","qualifiedName":"Window.title"},"342":{"sourceFileName":"src/window.ts","qualifiedName":"Window.title"},"343":{"sourceFileName":"src/window.ts","qualifiedName":"Window.theme"},"344":{"sourceFileName":"src/window.ts","qualifiedName":"Window.theme"},"345":{"sourceFileName":"src/window.ts","qualifiedName":"Window.center"},"346":{"sourceFileName":"src/window.ts","qualifiedName":"Window.center"},"347":{"sourceFileName":"src/window.ts","qualifiedName":"Window.requestUserAttention"},"348":{"sourceFileName":"src/window.ts","qualifiedName":"Window.requestUserAttention"},"349":{"sourceFileName":"src/window.ts","qualifiedName":"requestType"},"350":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setResizable"},"351":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setResizable"},"352":{"sourceFileName":"src/window.ts","qualifiedName":"resizable"},"353":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMaximizable"},"354":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMaximizable"},"355":{"sourceFileName":"src/window.ts","qualifiedName":"maximizable"},"356":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMinimizable"},"357":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMinimizable"},"358":{"sourceFileName":"src/window.ts","qualifiedName":"minimizable"},"359":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setClosable"},"360":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setClosable"},"361":{"sourceFileName":"src/window.ts","qualifiedName":"closable"},"362":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setTitle"},"363":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setTitle"},"364":{"sourceFileName":"src/window.ts","qualifiedName":"title"},"365":{"sourceFileName":"src/window.ts","qualifiedName":"Window.maximize"},"366":{"sourceFileName":"src/window.ts","qualifiedName":"Window.maximize"},"367":{"sourceFileName":"src/window.ts","qualifiedName":"Window.unmaximize"},"368":{"sourceFileName":"src/window.ts","qualifiedName":"Window.unmaximize"},"369":{"sourceFileName":"src/window.ts","qualifiedName":"Window.toggleMaximize"},"370":{"sourceFileName":"src/window.ts","qualifiedName":"Window.toggleMaximize"},"371":{"sourceFileName":"src/window.ts","qualifiedName":"Window.minimize"},"372":{"sourceFileName":"src/window.ts","qualifiedName":"Window.minimize"},"373":{"sourceFileName":"src/window.ts","qualifiedName":"Window.unminimize"},"374":{"sourceFileName":"src/window.ts","qualifiedName":"Window.unminimize"},"375":{"sourceFileName":"src/window.ts","qualifiedName":"Window.show"},"376":{"sourceFileName":"src/window.ts","qualifiedName":"Window.show"},"377":{"sourceFileName":"src/window.ts","qualifiedName":"Window.hide"},"378":{"sourceFileName":"src/window.ts","qualifiedName":"Window.hide"},"379":{"sourceFileName":"src/window.ts","qualifiedName":"Window.close"},"380":{"sourceFileName":"src/window.ts","qualifiedName":"Window.close"},"381":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setDecorations"},"382":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setDecorations"},"383":{"sourceFileName":"src/window.ts","qualifiedName":"decorations"},"384":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setShadow"},"385":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setShadow"},"386":{"sourceFileName":"src/window.ts","qualifiedName":"enable"},"387":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setEffects"},"388":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setEffects"},"389":{"sourceFileName":"src/window.ts","qualifiedName":"effects"},"390":{"sourceFileName":"src/window.ts","qualifiedName":"Window.clearEffects"},"391":{"sourceFileName":"src/window.ts","qualifiedName":"Window.clearEffects"},"392":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setAlwaysOnTop"},"393":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setAlwaysOnTop"},"394":{"sourceFileName":"src/window.ts","qualifiedName":"alwaysOnTop"},"395":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setContentProtected"},"396":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setContentProtected"},"397":{"sourceFileName":"src/window.ts","qualifiedName":"protected_"},"398":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setSize"},"399":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setSize"},"400":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"401":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMinSize"},"402":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMinSize"},"403":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"404":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMaxSize"},"405":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMaxSize"},"406":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"407":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setPosition"},"408":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setPosition"},"409":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"410":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setFullscreen"},"411":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setFullscreen"},"412":{"sourceFileName":"src/window.ts","qualifiedName":"fullscreen"},"413":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setFocus"},"414":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setFocus"},"415":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setIcon"},"416":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setIcon"},"417":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"418":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setSkipTaskbar"},"419":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setSkipTaskbar"},"420":{"sourceFileName":"src/window.ts","qualifiedName":"skip"},"421":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorGrab"},"422":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorGrab"},"423":{"sourceFileName":"src/window.ts","qualifiedName":"grab"},"424":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorVisible"},"425":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorVisible"},"426":{"sourceFileName":"src/window.ts","qualifiedName":"visible"},"427":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorIcon"},"428":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorIcon"},"429":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"430":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorPosition"},"431":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorPosition"},"432":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"433":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setIgnoreCursorEvents"},"434":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setIgnoreCursorEvents"},"435":{"sourceFileName":"src/window.ts","qualifiedName":"ignore"},"436":{"sourceFileName":"src/window.ts","qualifiedName":"Window.startDragging"},"437":{"sourceFileName":"src/window.ts","qualifiedName":"Window.startDragging"},"438":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onResized"},"439":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onResized"},"440":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"441":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onMoved"},"442":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onMoved"},"443":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"444":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onCloseRequested"},"445":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onCloseRequested"},"446":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"447":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"448":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"449":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"450":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onFocusChanged"},"451":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onFocusChanged"},"452":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"453":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onScaleChanged"},"454":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onScaleChanged"},"455":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"456":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onMenuClicked"},"457":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onMenuClicked"},"458":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"459":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onFileDropEvent"},"460":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onFileDropEvent"},"461":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"462":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onThemeChanged"},"463":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onThemeChanged"},"464":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"465":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"466":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.__constructor"},"467":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"468":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"469":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.event"},"470":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.windowLabel"},"471":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.id"},"472":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent._preventDefault"},"473":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"474":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"475":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"476":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"477":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"478":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"479":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"480":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"481":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType"},"482":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Critical"},"483":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Informational"},"484":{"sourceFileName":"src/window.ts","qualifiedName":"Effect"},"485":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.AppearanceBased"},"486":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Light"},"487":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Dark"},"488":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.MediumLight"},"489":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.UltraDark"},"490":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Titlebar"},"491":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Selection"},"492":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Menu"},"493":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Popover"},"494":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Sidebar"},"495":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.HeaderView"},"496":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Sheet"},"497":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.WindowBackground"},"498":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.HudWindow"},"499":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.FullScreenUI"},"500":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Tooltip"},"501":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.ContentBackground"},"502":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.UnderWindowBackground"},"503":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.UnderPageBackground"},"504":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Mica"},"505":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Blur"},"506":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Acrylic"},"507":{"sourceFileName":"src/window.ts","qualifiedName":"EffectState"},"508":{"sourceFileName":"src/window.ts","qualifiedName":"EffectState.FollowsWindowActiveState"},"509":{"sourceFileName":"src/window.ts","qualifiedName":"EffectState.Active"},"510":{"sourceFileName":"src/window.ts","qualifiedName":"EffectState.Inactive"},"511":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"512":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"513":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"514":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"515":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"516":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"517":{"sourceFileName":"src/window.ts","qualifiedName":"Effects"},"518":{"sourceFileName":"src/window.ts","qualifiedName":"Effects.effects"},"519":{"sourceFileName":"src/window.ts","qualifiedName":"Effects.state"},"520":{"sourceFileName":"src/window.ts","qualifiedName":"Effects.radius"},"521":{"sourceFileName":"src/window.ts","qualifiedName":"Effects.color"},"522":{"sourceFileName":"src/window.ts","qualifiedName":"Theme"},"523":{"sourceFileName":"src/window.ts","qualifiedName":"TitleBarStyle"},"524":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged"},"525":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.scaleFactor"},"526":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.size"},"527":{"sourceFileName":"src/window.ts","qualifiedName":"FileDropEvent"},"528":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"529":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"530":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"531":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"532":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"533":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"534":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"535":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"536":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions"},"537":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.url"},"538":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.center"},"539":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.x"},"540":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.y"},"541":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.width"},"542":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.height"},"543":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minWidth"},"544":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minHeight"},"545":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxWidth"},"546":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxHeight"},"547":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.resizable"},"548":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.title"},"549":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fullscreen"},"550":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.focus"},"551":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.transparent"},"552":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximized"},"553":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.visible"},"554":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.decorations"},"555":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.alwaysOnTop"},"556":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.contentProtected"},"557":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.skipTaskbar"},"558":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.shadow"},"559":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fileDropEnabled"},"560":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.theme"},"561":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.titleBarStyle"},"562":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.hiddenTitle"},"563":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.acceptFirstMouse"},"564":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.tabbingIdentifier"},"565":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.userAgent"},"566":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.incognito"},"567":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximizable"},"568":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minimizable"},"569":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.closable"},"570":{"sourceFileName":"src/window.ts","qualifiedName":"Color"},"571":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"572":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"573":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"574":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"}}} \ No newline at end of file +{"id":0,"name":"@tauri-apps/api","variant":"project","kind":1,"flags":{},"children":[{"id":1,"name":"dpi","variant":"declaration","kind":2,"flags":{},"children":[{"id":2,"name":"LogicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":3,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"dpi.ts","line":62,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L62"}],"signatures":[{"id":4,"name":"new LogicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"dpi.ts","line":62,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L62"}],"parameters":[{"id":5,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":6,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":2,"name":"LogicalPosition","package":"@tauri-apps/api"}}]},{"id":7,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":58,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L58"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":8,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":59,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L59"}],"type":{"type":"intrinsic","name":"number"}},{"id":9,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":60,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L60"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[3]},{"title":"Properties","children":[7,8,9]}],"sources":[{"fileName":"dpi.ts","line":57,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L57"}]},{"id":10,"name":"LogicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":11,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"dpi.ts","line":15,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L15"}],"signatures":[{"id":12,"name":"new LogicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"dpi.ts","line":15,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L15"}],"parameters":[{"id":13,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":14,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"}}]},{"id":17,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":13,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L13"}],"type":{"type":"intrinsic","name":"number"}},{"id":15,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":11,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L11"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":16,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":12,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L12"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[11]},{"title":"Properties","children":[17,15,16]}],"sources":[{"fileName":"dpi.ts","line":10,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L10"}]},{"id":18,"name":"PhysicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":19,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"dpi.ts","line":78,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L78"}],"signatures":[{"id":20,"name":"new PhysicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"dpi.ts","line":78,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L78"}],"parameters":[{"id":21,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":22,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}}]},{"id":23,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":74,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L74"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":24,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":75,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L75"}],"type":{"type":"intrinsic","name":"number"}},{"id":25,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":76,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L76"}],"type":{"type":"intrinsic","name":"number"}},{"id":26,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"dpi.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L94"}],"signatures":[{"id":27,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical position to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst appWindow = getCurrent();\nconst factor = await appWindow.scaleFactor();\nconst position = await appWindow.innerPosition();\nconst logical = position.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"dpi.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L94"}],"parameters":[{"id":28,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":2,"name":"LogicalPosition","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[19]},{"title":"Properties","children":[23,24,25]},{"title":"Methods","children":[26]}],"sources":[{"fileName":"dpi.ts","line":73,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L73"}]},{"id":29,"name":"PhysicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":30,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"dpi.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L31"}],"signatures":[{"id":31,"name":"new PhysicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"dpi.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L31"}],"parameters":[{"id":32,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":33,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}}]},{"id":36,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":29,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L29"}],"type":{"type":"intrinsic","name":"number"}},{"id":34,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L27"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":35,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"dpi.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L28"}],"type":{"type":"intrinsic","name":"number"}},{"id":37,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"dpi.ts","line":47,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L47"}],"signatures":[{"id":38,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical size to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst appWindow = getCurrent();\nconst factor = await appWindow.scaleFactor();\nconst size = await appWindow.innerSize();\nconst logical = size.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"dpi.ts","line":47,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L47"}],"parameters":[{"id":39,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[30]},{"title":"Properties","children":[36,34,35]},{"title":"Methods","children":[37]}],"sources":[{"fileName":"dpi.ts","line":26,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L26"}]}],"groups":[{"title":"Classes","children":[2,10,18,29]}],"sources":[{"fileName":"dpi.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/dpi.ts#L1"}]},{"id":40,"name":"event","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The event system allows you to emit events to the backend and listen to events from it.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.event`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":75,"name":"TauriEvent","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":88,"name":"MENU","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":59,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L59"}],"type":{"type":"literal","value":"tauri://menu"}},{"id":82,"name":"WINDOW_BLUR","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":53,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L53"}],"type":{"type":"literal","value":"tauri://blur"}},{"id":78,"name":"WINDOW_CLOSE_REQUESTED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":49,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L49"}],"type":{"type":"literal","value":"tauri://close-requested"}},{"id":79,"name":"WINDOW_CREATED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":50,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L50"}],"type":{"type":"literal","value":"tauri://window-created"}},{"id":80,"name":"WINDOW_DESTROYED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":51,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L51"}],"type":{"type":"literal","value":"tauri://destroyed"}},{"id":85,"name":"WINDOW_FILE_DROP","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":56,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L56"}],"type":{"type":"literal","value":"tauri://file-drop"}},{"id":87,"name":"WINDOW_FILE_DROP_CANCELLED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":58,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L58"}],"type":{"type":"literal","value":"tauri://file-drop-cancelled"}},{"id":86,"name":"WINDOW_FILE_DROP_HOVER","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":57,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L57"}],"type":{"type":"literal","value":"tauri://file-drop-hover"}},{"id":81,"name":"WINDOW_FOCUS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":52,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L52"}],"type":{"type":"literal","value":"tauri://focus"}},{"id":77,"name":"WINDOW_MOVED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":48,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L48"}],"type":{"type":"literal","value":"tauri://move"}},{"id":76,"name":"WINDOW_RESIZED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":47,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L47"}],"type":{"type":"literal","value":"tauri://resize"}},{"id":83,"name":"WINDOW_SCALE_FACTOR_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":54,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L54"}],"type":{"type":"literal","value":"tauri://scale-change"}},{"id":84,"name":"WINDOW_THEME_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":55,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L55"}],"type":{"type":"literal","value":"tauri://theme-changed"}}],"groups":[{"title":"Enumeration Members","children":[88,82,78,79,80,85,87,86,81,77,76,83,84]}],"sources":[{"fileName":"event.ts","line":46,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L46"}]},{"id":41,"name":"Event","variant":"declaration","kind":256,"flags":{},"children":[{"id":42,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"event.ts","line":16,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L16"}],"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":44,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"event.ts","line":20,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L20"}],"type":{"type":"intrinsic","name":"number"}},{"id":45,"name":"payload","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event payload"}]},"sources":[{"fileName":"event.ts","line":22,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L22"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":43,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"event.ts","line":18,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L18"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[42,44,45,43]}],"sources":[{"fileName":"event.ts","line":14,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L14"}],"typeParameters":[{"id":46,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":56,"name":"Options","variant":"declaration","kind":256,"flags":{},"children":[{"id":57,"name":"target","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Label of the window the function targets.\n\nWhen listening to events and using this value,\nonly events triggered by the window with the given label are received.\n\nWhen emitting events, only the window with the given label will receive it."}]},"sources":[{"fileName":"event.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L40"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[57]}],"sources":[{"fileName":"event.ts","line":31,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L31"}]},{"id":47,"name":"EventCallback","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":25,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L25"}],"typeParameters":[{"id":51,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"type":{"type":"reflection","declaration":{"id":48,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"event.ts","line":25,"character":24,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L25"}],"signatures":[{"id":49,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":50,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":41,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":55,"name":"EventName","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":29,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L29"}],"type":{"type":"union","types":[{"type":"templateLiteral","head":"","tail":[[{"type":"reference","target":75,"name":"TauriEvent","package":"@tauri-apps/api"},""]]},{"type":"intersection","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"never"},{"type":"intrinsic","name":"never"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}]}]}},{"id":52,"name":"UnlistenFn","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":27,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L27"}],"type":{"type":"reflection","declaration":{"id":53,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"event.ts","line":27,"character":18,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L27"}],"signatures":[{"id":54,"name":"__type","variant":"signature","kind":4096,"flags":{},"type":{"type":"intrinsic","name":"void"}}]}}},{"id":70,"name":"emit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":164,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L164"}],"signatures":[{"id":71,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { emit } from '@tauri-apps/api/event';\nawait emit('frontend-loaded', { loggedIn: true, token: 'authToken' });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":164,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L164"}],"parameters":[{"id":72,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":73,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"intrinsic","name":"unknown"}},{"id":74,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":56,"name":"Options","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":58,"name":"listen","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":99,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L99"}],"signatures":[{"id":59,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event. The event can be either global or window-specific.\nSee "},{"kind":"inline-tag","tag":"@link","text":"windowLabel","target":43,"tsLinkText":""},{"kind":"text","text":" to check the event source."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { listen } from '@tauri-apps/api/event';\nconst unlisten = await listen('error', (event) => {\n console.log(`Got error in window ${event.windowLabel}, payload: ${event.payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":99,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L99"}],"typeParameter":[{"id":60,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":61,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":62,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler callback."}]},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}},{"id":63,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":56,"name":"Options","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":64,"name":"once","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":137,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L137"}],"signatures":[{"id":65,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event. See "},{"kind":"inline-tag","tag":"@link","text":"listen","target":58,"tsLinkText":""},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { once } from '@tauri-apps/api/event';\ninterface LoadedPayload {\n loggedIn: boolean,\n token: string\n}\nconst unlisten = await once('loaded', (event) => {\n console.log(`App is loaded, loggedIn: ${event.payload.loggedIn}, token: ${event.payload.token}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":137,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L137"}],"typeParameter":[{"id":66,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":67,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":68,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}},{"id":69,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":56,"name":"Options","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[75]},{"title":"Interfaces","children":[41,56]},{"title":"Type Aliases","children":[47,55,52]},{"title":"Functions","children":[70,58,64]}],"sources":[{"fileName":"event.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/event.ts#L1"}]},{"id":89,"name":"mocks","variant":"declaration","kind":2,"flags":{},"children":[{"id":101,"name":"clearMocks","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":163,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/mocks.ts#L163"}],"signatures":[{"id":102,"name":"clearMocks","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Clears mocked functions/data injected by the other functions in this module.\nWhen using a test runner that doesn't provide a fresh window object for each test, calling this function will reset tauri specific properties.\n\n# Example\n\n"},{"kind":"code","text":"```js\nimport { mockWindows, clearMocks } from \"@tauri-apps/api/mocks\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked windows\", () => {\n mockWindows(\"main\", \"second\", \"third\");\n\n expect(window.__TAURI_INTERNALS__).toHaveProperty(\"metadata\")\n})\n\ntest(\"no mocked windows\", () => {\n expect(window.__TAURI_INTERNALS__).not.toHaveProperty(\"metadata\")\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":163,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/mocks.ts#L163"}],"type":{"type":"intrinsic","name":"void"}}]},{"id":90,"name":"mockIPC","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":65,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/mocks.ts#L65"}],"signatures":[{"id":91,"name":"mockIPC","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Intercepts all IPC requests with the given mock handler.\n\nThis function can be used when testing tauri frontend applications or when running the frontend in a Node.js context during static site generation.\n\n# Examples\n\nTesting setup using vitest:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/primitives\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, payload) => {\n switch (cmd) {\n case \"add\":\n return (payload.a as number) + (payload.b as number);\n default:\n break;\n }\n });\n\n expect(invoke('add', { a: 12, b: 15 })).resolves.toBe(27);\n})\n```"},{"kind":"text","text":"\n\nThe callback function can also return a Promise:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/primitives\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, payload) => {\n if(cmd === \"get_data\") {\n return fetch(\"https://example.com/data.json\")\n .then((response) => response.json())\n }\n });\n\n expect(invoke('get_data')).resolves.toBe({ foo: 'bar' });\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":65,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/mocks.ts#L65"}],"parameters":[{"id":92,"name":"cb","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":93,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/mocks.ts#L66"}],"signatures":[{"id":94,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/mocks.ts#L66"}],"parameters":[{"id":95,"name":"cmd","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":96,"name":"payload","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"intrinsic","name":"any"}}]}}}],"type":{"type":"intrinsic","name":"void"}}]},{"id":97,"name":"mockWindows","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":127,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/mocks.ts#L127"}],"signatures":[{"id":98,"name":"mockWindows","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Mocks one or many window labels.\nIn non-tauri context it is required to call this function *before* using the "},{"kind":"code","text":"`@tauri-apps/api/window`"},{"kind":"text","text":" module.\n\nThis function only mocks the *presence* of windows,\nwindow properties (e.g. width and height) can be mocked like regular IPC calls using the "},{"kind":"code","text":"`mockIPC`"},{"kind":"text","text":" function.\n\n# Examples\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\nimport { getCurrent } from \"@tauri-apps/api/window\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nconst win = getCurrent();\n\nwin.label // \"main\"\n```"},{"kind":"text","text":"\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nmockIPC((cmd, args) => {\n if (cmd === \"plugin:event|emit\") {\n console.log('emit event', args?.event, args?.payload);\n }\n});\n\nconst { emit } = await import(\"@tauri-apps/api/event\");\nawait emit('loaded'); // this will cause the mocked IPC handler to log to the console.\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":127,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/mocks.ts#L127"}],"parameters":[{"id":99,"name":"current","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Label of window this JavaScript context is running in."}]},"type":{"type":"intrinsic","name":"string"}},{"id":100,"name":"additionalWindows","variant":"param","kind":32768,"flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"Label of additional windows the app has."}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Functions","children":[101,90,97]}],"sources":[{"fileName":"mocks.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/mocks.ts#L1"}]},{"id":103,"name":"path","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path module provides utilities for working with file and directory paths.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.path`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":104,"name":"BaseDirectory","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":120,"name":"AppCache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L35"}],"type":{"type":"literal","value":16}},{"id":117,"name":"AppConfig","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L32"}],"type":{"type":"literal","value":13}},{"id":118,"name":"AppData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L33"}],"type":{"type":"literal","value":14}},{"id":119,"name":"AppLocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L34"}],"type":{"type":"literal","value":15}},{"id":121,"name":"AppLog","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L36"}],"type":{"type":"literal","value":17}},{"id":105,"name":"Audio","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":20,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L20"}],"type":{"type":"literal","value":1}},{"id":106,"name":"Cache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":21,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L21"}],"type":{"type":"literal","value":2}},{"id":107,"name":"Config","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":22,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L22"}],"type":{"type":"literal","value":3}},{"id":108,"name":"Data","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L23"}],"type":{"type":"literal","value":4}},{"id":122,"name":"Desktop","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L38"}],"type":{"type":"literal","value":18}},{"id":110,"name":"Document","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L25"}],"type":{"type":"literal","value":6}},{"id":111,"name":"Download","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":26,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L26"}],"type":{"type":"literal","value":7}},{"id":123,"name":"Executable","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":39,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L39"}],"type":{"type":"literal","value":19}},{"id":124,"name":"Font","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L40"}],"type":{"type":"literal","value":20}},{"id":125,"name":"Home","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":41,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L41"}],"type":{"type":"literal","value":21}},{"id":109,"name":"LocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L24"}],"type":{"type":"literal","value":5}},{"id":112,"name":"Picture","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L27"}],"type":{"type":"literal","value":8}},{"id":113,"name":"Public","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L28"}],"type":{"type":"literal","value":9}},{"id":115,"name":"Resource","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":30,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L30"}],"type":{"type":"literal","value":11}},{"id":126,"name":"Runtime","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L42"}],"type":{"type":"literal","value":22}},{"id":116,"name":"Temp","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L31"}],"type":{"type":"literal","value":12}},{"id":127,"name":"Template","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":43,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L43"}],"type":{"type":"literal","value":23}},{"id":114,"name":"Video","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"path.ts","line":29,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L29"}],"type":{"type":"literal","value":10}}],"groups":[{"title":"Enumeration Members","children":[120,117,118,119,121,105,106,107,108,122,110,111,123,124,125,109,112,113,115,126,116,127,114]}],"sources":[{"fileName":"path.ts","line":19,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L19"}]},{"id":134,"name":"appCacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":108,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L108"}],"signatures":[{"id":135,"name":"appCacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's cache files.\nResolves to "},{"kind":"code","text":"`${cacheDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appCacheDir } from '@tauri-apps/api/path';\nconst appCacheDirPath = await appCacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":108,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L108"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":128,"name":"appConfigDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":57,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L57"}],"signatures":[{"id":129,"name":"appConfigDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's config files.\nResolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appConfigDir } from '@tauri-apps/api/path';\nconst appConfigDirPath = await appConfigDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":57,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L57"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":130,"name":"appDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":74,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L74"}],"signatures":[{"id":131,"name":"appDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's data files.\nResolves to "},{"kind":"code","text":"`${dataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":74,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L74"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":132,"name":"appLocalDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":91,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L91"}],"signatures":[{"id":133,"name":"appLocalDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's local data files.\nResolves to "},{"kind":"code","text":"`${localDataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLocalDataDir } from '@tauri-apps/api/path';\nconst appLocalDataDirPath = await appLocalDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":91,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L91"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":136,"name":"appLogDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":520,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L520"}],"signatures":[{"id":137,"name":"appLogDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's log files.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`${homeDir}/Library/Logs/{bundleIdentifier}`"},{"kind":"text","text":"\n- **Windows:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLogDir } from '@tauri-apps/api/path';\nconst appLogDirPath = await appLogDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":520,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L520"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":138,"name":"audioDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":130,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L130"}],"signatures":[{"id":139,"name":"audioDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's audio directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_MUSIC_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Music`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Music}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { audioDir } from '@tauri-apps/api/path';\nconst audioDirPath = await audioDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":130,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L130"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":194,"name":"basename","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":653,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L653"}],"signatures":[{"id":195,"name":"basename","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the last portion of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { basename, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst base = await basename(resourcePath);\nassert(base === 'app.conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":653,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L653"}],"parameters":[{"id":196,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":197,"name":"ext","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"An optional file extension to be removed from the returned path."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":140,"name":"cacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":152,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L152"}],"signatures":[{"id":141,"name":"cacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's cache directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CACHE_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.cache`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Caches`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { cacheDir } from '@tauri-apps/api/path';\nconst cacheDirPath = await cacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":152,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L152"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":142,"name":"configDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":174,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L174"}],"signatures":[{"id":143,"name":"configDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's config directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CONFIG_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.config`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { configDir } from '@tauri-apps/api/path';\nconst configDirPath = await configDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":174,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L174"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":144,"name":"dataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":196,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L196"}],"signatures":[{"id":145,"name":"dataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dataDir } from '@tauri-apps/api/path';\nconst dataDirPath = await dataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":196,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L196"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":177,"name":"delimiter","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":560,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L560"}],"signatures":[{"id":178,"name":"delimiter","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the platform-specific path segment delimiter:\n- "},{"kind":"code","text":"`;`"},{"kind":"text","text":" on Windows\n- "},{"kind":"code","text":"`:`"},{"kind":"text","text":" on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"path.ts","line":560,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L560"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":146,"name":"desktopDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":218,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L218"}],"signatures":[{"id":147,"name":"desktopDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's desktop directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DESKTOP_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Desktop`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Desktop}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { desktopDir } from '@tauri-apps/api/path';\nconst desktopPath = await desktopDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":218,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L218"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":188,"name":"dirname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":619,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L619"}],"signatures":[{"id":189,"name":"dirname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the directory name of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dirname, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst dir = await dirname(appDataDirPath);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":619,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L619"}],"parameters":[{"id":190,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":148,"name":"documentDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":240,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L240"}],"signatures":[{"id":149,"name":"documentDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's document directory."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { documentDir } from '@tauri-apps/api/path';\nconst documentDirPath = await documentDir();\n```"},{"kind":"text","text":"\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOCUMENTS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Documents`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Documents}`"},{"kind":"text","text":"."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":240,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L240"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":150,"name":"downloadDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":262,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L262"}],"signatures":[{"id":151,"name":"downloadDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's download directory.\n\n#### Platform-specific\n\n- **Linux**: Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOWNLOAD_DIR`"},{"kind":"text","text":".\n- **macOS**: Resolves to "},{"kind":"code","text":"`$HOME/Downloads`"},{"kind":"text","text":".\n- **Windows**: Resolves to "},{"kind":"code","text":"`{FOLDERID_Downloads}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { downloadDir } from '@tauri-apps/api/path';\nconst downloadDirPath = await downloadDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":262,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L262"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":152,"name":"executableDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":284,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L284"}],"signatures":[{"id":153,"name":"executableDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's executable directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_BIN_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$XDG_DATA_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/bin`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { executableDir } from '@tauri-apps/api/path';\nconst executableDirPath = await executableDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":284,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L284"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":191,"name":"extname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":635,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L635"}],"signatures":[{"id":192,"name":"extname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the extension of the "},{"kind":"code","text":"`path`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { extname, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst ext = await extname(resourcePath);\nassert(ext === 'conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":635,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L635"}],"parameters":[{"id":193,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":154,"name":"fontDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":306,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L306"}],"signatures":[{"id":155,"name":"fontDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's font directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME/fonts`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share/fonts`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Fonts`"},{"kind":"text","text":".\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fontDir } from '@tauri-apps/api/path';\nconst fontDirPath = await fontDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":306,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L306"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":156,"name":"homeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":328,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L328"}],"signatures":[{"id":157,"name":"homeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's home directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Profile}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { homeDir } from '@tauri-apps/api/path';\nconst homeDirPath = await homeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":328,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L328"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":198,"name":"isAbsolute","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":667,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L667"}],"signatures":[{"id":199,"name":"isAbsolute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns whether the path is absolute or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isAbsolute } from '@tauri-apps/api/path';\nassert(await isAbsolute('/home/tauri'));\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":667,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L667"}],"parameters":[{"id":200,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":185,"name":"join","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":604,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L604"}],"signatures":[{"id":186,"name":"join","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Joins all given "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments together using the platform-specific separator as a delimiter, then normalizes the resulting path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { join, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await join(appDataDirPath, 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":604,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L604"}],"parameters":[{"id":187,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":158,"name":"localDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":350,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L350"}],"signatures":[{"id":159,"name":"localDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's local data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { localDataDir } from '@tauri-apps/api/path';\nconst localDataDirPath = await localDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":350,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L350"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":182,"name":"normalize","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":589,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L589"}],"signatures":[{"id":183,"name":"normalize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Normalizes the given "},{"kind":"code","text":"`path`"},{"kind":"text","text":", resolving "},{"kind":"code","text":"`'..'`"},{"kind":"text","text":" and "},{"kind":"code","text":"`'.'`"},{"kind":"text","text":" segments and resolve symbolic links."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { normalize, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await normalize(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":589,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L589"}],"parameters":[{"id":184,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":160,"name":"pictureDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":372,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L372"}],"signatures":[{"id":161,"name":"pictureDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's picture directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PICTURES_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Pictures`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Pictures}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { pictureDir } from '@tauri-apps/api/path';\nconst pictureDirPath = await pictureDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":372,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L372"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":162,"name":"publicDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":394,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L394"}],"signatures":[{"id":163,"name":"publicDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's public directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PUBLICSHARE_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Public`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Public}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { publicDir } from '@tauri-apps/api/path';\nconst publicDirPath = await publicDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":394,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L394"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":179,"name":"resolve","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":574,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L574"}],"signatures":[{"id":180,"name":"resolve","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolves a sequence of "},{"kind":"code","text":"`paths`"},{"kind":"text","text":" or "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments into an absolute path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolve, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await resolve(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":574,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L574"}],"parameters":[{"id":181,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":166,"name":"resolveResource","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":431,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L431"}],"signatures":[{"id":167,"name":"resolveResource","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolve the path to a resource file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('script.sh');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The full path to the resource."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":431,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L431"}],"parameters":[{"id":168,"name":"resourcePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path to the resource.\nMust follow the same syntax as defined in "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > resources`"},{"kind":"text","text":", i.e. keeping subfolders and parent dir components ("},{"kind":"code","text":"`../`"},{"kind":"text","text":")."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":164,"name":"resourceDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":411,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L411"}],"signatures":[{"id":165,"name":"resourceDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the application's resource directory.\nTo resolve a resource path, see the [[resolveResource | "},{"kind":"code","text":"`resolveResource API`"},{"kind":"text","text":"]]."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resourceDir } from '@tauri-apps/api/path';\nconst resourceDirPath = await resourceDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":411,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L411"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":169,"name":"runtimeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":454,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L454"}],"signatures":[{"id":170,"name":"runtimeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's runtime directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_RUNTIME_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { runtimeDir } from '@tauri-apps/api/path';\nconst runtimeDirPath = await runtimeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":454,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L454"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":175,"name":"sep","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":549,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L549"}],"signatures":[{"id":176,"name":"sep","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the platform-specific path segment separator:\n- "},{"kind":"code","text":"`\\` on Windows\n- `"},{"kind":"text","text":"/` on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"path.ts","line":549,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L549"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":201,"name":"tempDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":536,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L536"}],"signatures":[{"id":202,"name":"tempDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a temporary directory."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { tempDir } from '@tauri-apps/api/path';\nconst temp = await tempDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"path.ts","line":536,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L536"}],"parameters":[{"id":203,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":171,"name":"templateDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":476,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L476"}],"signatures":[{"id":172,"name":"templateDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's template directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_TEMPLATES_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Templates}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { templateDir } from '@tauri-apps/api/path';\nconst templateDirPath = await templateDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":476,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L476"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":173,"name":"videoDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":498,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L498"}],"signatures":[{"id":174,"name":"videoDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's video directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_VIDEOS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Movies`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Videos}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { videoDir } from '@tauri-apps/api/path';\nconst videoDirPath = await videoDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":498,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L498"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[104]},{"title":"Functions","children":[134,128,130,132,136,138,194,140,142,144,177,146,188,148,150,152,191,154,156,198,185,158,182,160,162,179,166,164,169,175,201,171,173]}],"sources":[{"fileName":"path.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/path.ts#L1"}]},{"id":204,"name":"primitives","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Invoke your custom commands.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.tauri`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":215,"name":"Channel","variant":"declaration","kind":128,"flags":{},"children":[{"id":216,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"primitives.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L35"}],"signatures":[{"id":217,"name":"new Channel","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"primitives.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L35"}],"typeParameter":[{"id":218,"name":"T","variant":"typeParam","kind":131072,"flags":{},"default":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":215,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Channel","package":"@tauri-apps/api"}}]},{"id":221,"name":"#onmessage","variant":"declaration","kind":1024,"flags":{"isPrivate":true},"sources":[{"fileName":"primitives.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L31"}],"type":{"type":"reflection","declaration":{"id":222,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":31,"character":14,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L31"}],"signatures":[{"id":223,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":31,"character":14,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L31"}],"parameters":[{"id":224,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"void"}}]}},"defaultValue":"..."},{"id":220,"name":"__TAURI_CHANNEL_MARKER__","variant":"declaration","kind":1024,"flags":{"isPrivate":true,"isReadonly":true},"sources":[{"fileName":"primitives.ts","line":30,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L30"}],"type":{"type":"literal","value":true},"defaultValue":"true"},{"id":219,"name":"id","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L28"}],"type":{"type":"intrinsic","name":"number"}},{"id":225,"name":"onmessage","variant":"declaration","kind":262144,"flags":{},"sources":[{"fileName":"primitives.ts","line":41,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L41"},{"fileName":"primitives.ts","line":45,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L45"}],"getSignature":{"id":226,"name":"onmessage","variant":"signature","kind":524288,"flags":{},"sources":[{"fileName":"primitives.ts","line":45,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L45"}],"type":{"type":"reflection","declaration":{"id":227,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":45,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L45"}],"signatures":[{"id":228,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":45,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L45"}],"parameters":[{"id":229,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"void"}}]}}},"setSignature":{"id":230,"name":"onmessage","variant":"signature","kind":1048576,"flags":{},"sources":[{"fileName":"primitives.ts","line":41,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L41"}],"parameters":[{"id":231,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":232,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":41,"character":25,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L41"}],"signatures":[{"id":233,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":41,"character":25,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L41"}],"parameters":[{"id":234,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"intrinsic","name":"void"}}},{"id":235,"name":"toJSON","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"primitives.ts","line":49,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L49"}],"signatures":[{"id":236,"name":"toJSON","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":49,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L49"}],"type":{"type":"intrinsic","name":"string"}}]}],"groups":[{"title":"Constructors","children":[216]},{"title":"Properties","children":[221,220,219]},{"title":"Accessors","children":[225]},{"title":"Methods","children":[235]}],"sources":[{"fileName":"primitives.ts","line":27,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L27"}],"typeParameters":[{"id":237,"name":"T","variant":"typeParam","kind":131072,"flags":{},"default":{"type":"intrinsic","name":"unknown"}}]},{"id":238,"name":"PluginListener","variant":"declaration","kind":128,"flags":{},"children":[{"id":239,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"primitives.ts","line":59,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L59"}],"signatures":[{"id":240,"name":"new PluginListener","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"primitives.ts","line":59,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L59"}],"parameters":[{"id":241,"name":"plugin","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":242,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":243,"name":"channelId","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":238,"name":"PluginListener","package":"@tauri-apps/api"}}]},{"id":246,"name":"channelId","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":57,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L57"}],"type":{"type":"intrinsic","name":"number"}},{"id":245,"name":"event","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":56,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L56"}],"type":{"type":"intrinsic","name":"string"}},{"id":244,"name":"plugin","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":55,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L55"}],"type":{"type":"intrinsic","name":"string"}},{"id":247,"name":"unregister","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"primitives.ts","line":65,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L65"}],"signatures":[{"id":248,"name":"unregister","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":65,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L65"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[239]},{"title":"Properties","children":[246,245,244]},{"title":"Methods","children":[247]}],"sources":[{"fileName":"primitives.ts","line":54,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L54"}]},{"id":206,"name":"InvokeOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":207,"name":"headers","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"primitives.ts","line":103,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L103"}],"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.dom.d.ts","qualifiedName":"Headers"},"name":"Headers","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/API/Headers"}]}}],"groups":[{"title":"Properties","children":[207]}],"sources":[{"fileName":"primitives.ts","line":102,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L102"}]},{"id":205,"name":"InvokeArgs","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Command arguments."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":97,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L97"}],"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},{"type":"array","elementType":{"type":"intrinsic","name":"number"}},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}},{"id":249,"name":"addPluginListener","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"primitives.ts","line":80,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L80"}],"signatures":[{"id":250,"name":"addPluginListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a listener to a plugin event."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"The listener object to stop listening to the events."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":80,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L80"}],"typeParameter":[{"id":251,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":252,"name":"plugin","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":253,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":254,"name":"cb","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":255,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":83,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L83"}],"signatures":[{"id":256,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":83,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L83"}],"parameters":[{"id":257,"name":"payload","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":238,"name":"PluginListener","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":264,"name":"convertFileSrc","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"primitives.ts","line":159,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L159"}],"signatures":[{"id":265,"name":"convertFileSrc","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Convert a device file path to an URL that can be loaded by the webview.\nNote that "},{"kind":"code","text":"`asset:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`http://asset.localhost`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.security.csp`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#securityconfig.csp) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":".\nExample CSP value: "},{"kind":"code","text":"`\"csp\": \"default-src 'self' ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost\"`"},{"kind":"text","text":" to use the asset protocol on image sources.\n\nAdditionally, "},{"kind":"code","text":"`asset`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.allowlist.protocol`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.protocol)\nin "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" and its access scope must be defined on the "},{"kind":"code","text":"`assetScope`"},{"kind":"text","text":" array on the same "},{"kind":"code","text":"`protocol`"},{"kind":"text","text":" object."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir, join } from '@tauri-apps/api/path';\nimport { convertFileSrc } from '@tauri-apps/api/primitives';\nconst appDataDirPath = await appDataDir();\nconst filePath = await join(appDataDirPath, 'assets/video.mp4');\nconst assetUrl = convertFileSrc(filePath);\n\nconst video = document.getElementById('my-video');\nconst source = document.createElement('source');\nsource.type = 'video/mp4';\nsource.src = assetUrl;\nvideo.appendChild(source);\nvideo.load();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"the URL that can be used as source on the webview."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":159,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L159"}],"parameters":[{"id":266,"name":"filePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file path."}]},"type":{"type":"intrinsic","name":"string"}},{"id":267,"name":"protocol","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The protocol to use. Defaults to "},{"kind":"code","text":"`asset`"},{"kind":"text","text":". You only need to set this when using a custom protocol."}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'asset'"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":258,"name":"invoke","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"primitives.ts","line":121,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L121"}],"signatures":[{"id":259,"name":"invoke","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a message to the backend."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { invoke } from '@tauri-apps/api/primitives';\nawait invoke('login', { user: 'tauri', password: 'poiwe3h4r5ip3yrhtew9ty' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving or rejecting to the backend response."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":121,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L121"}],"typeParameter":[{"id":260,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":261,"name":"cmd","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The command name."}]},"type":{"type":"intrinsic","name":"string"}},{"id":262,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The optional arguments to pass to the command."}]},"type":{"type":"reference","target":205,"name":"InvokeArgs","package":"@tauri-apps/api"},"defaultValue":"{}"},{"id":263,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The request options."}]},"type":{"type":"reference","target":206,"name":"InvokeOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":208,"name":"transformCallback","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"primitives.ts","line":20,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L20"}],"signatures":[{"id":209,"name":"transformCallback","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Transforms a callback function to a string identifier that can be passed to the backend.\nThe backend uses the identifier to "},{"kind":"code","text":"`eval()`"},{"kind":"text","text":" the callback."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A unique identifier associated with the callback function."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"primitives.ts","line":20,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L20"}],"parameters":[{"id":210,"name":"callback","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":211,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"primitives.ts","line":21,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L21"}],"signatures":[{"id":212,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"primitives.ts","line":21,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L21"}],"parameters":[{"id":213,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":214,"name":"once","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"}],"type":{"type":"intrinsic","name":"number"}}]}],"groups":[{"title":"Classes","children":[215,238]},{"title":"Interfaces","children":[206]},{"title":"Type Aliases","children":[205]},{"title":"Functions","children":[249,264,258,208]}],"sources":[{"fileName":"primitives.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/primitives.ts#L1"}]},{"id":268,"name":"window","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides APIs to create windows, communicate with other windows and manipulate the current window.\n\n## Window events\n\nEvents can be listened to using "},{"kind":"inline-tag","tag":"@link","text":"listen","target":292},{"kind":"text","text":":\n"},{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\ngetCurrent().listen(\"my-window-event\", ({ event, payload }) => { });\n```"}]},"children":[{"id":576,"name":"LogicalPosition","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"window.ts","line":2214,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2214"}],"target":2},{"id":574,"name":"LogicalSize","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"window.ts","line":2212,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2212"}],"target":10},{"id":577,"name":"PhysicalPosition","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"window.ts","line":2215,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2215"}],"target":18},{"id":575,"name":"PhysicalSize","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"window.ts","line":2213,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2213"}],"target":29},{"id":484,"name":"Effect","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Platform-specific window effects"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"children":[{"id":506,"name":"Acrylic","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**Windows 10/11**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000."}]},"sources":[{"fileName":"window.ts","line":1947,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1947"}],"type":{"type":"literal","value":"acrylic"}},{"id":485,"name":"AppearanceBased","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"A default material appropriate for the view's effectiveAppearance. **macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. You should instead choose an appropriate semantic material."}]}]},"sources":[{"fileName":"window.ts","line":1847,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1847"}],"type":{"type":"literal","value":"appearanceBased"}},{"id":505,"name":"Blur","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**Windows 7/10/11(22H1) Only**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 11 build 22621."}]},"sources":[{"fileName":"window.ts","line":1939,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1939"}],"type":{"type":"literal","value":"blur"}},{"id":501,"name":"ContentBackground","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1919,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1919"}],"type":{"type":"literal","value":"contentBackground"}},{"id":487,"name":"Dark","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. Use a semantic material instead."}]}]},"sources":[{"fileName":"window.ts","line":1859,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1859"}],"type":{"type":"literal","value":"dark"}},{"id":499,"name":"FullScreenUI","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1911,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1911"}],"type":{"type":"literal","value":"fullScreenUI"}},{"id":495,"name":"HeaderView","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1895,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1895"}],"type":{"type":"literal","value":"headerView"}},{"id":498,"name":"HudWindow","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1907,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1907"}],"type":{"type":"literal","value":"hudWindow"}},{"id":486,"name":"Light","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. Use a semantic material instead."}]}]},"sources":[{"fileName":"window.ts","line":1853,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1853"}],"type":{"type":"literal","value":"light"}},{"id":488,"name":"MediumLight","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. Use a semantic material instead."}]}]},"sources":[{"fileName":"window.ts","line":1865,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1865"}],"type":{"type":"literal","value":"mediumLight"}},{"id":492,"name":"Menu","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.11+**"}]},"sources":[{"fileName":"window.ts","line":1883,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1883"}],"type":{"type":"literal","value":"menu"}},{"id":504,"name":"Mica","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**Windows 11 Only**"}]},"sources":[{"fileName":"window.ts","line":1931,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1931"}],"type":{"type":"literal","value":"mica"}},{"id":493,"name":"Popover","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.11+**"}]},"sources":[{"fileName":"window.ts","line":1887,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1887"}],"type":{"type":"literal","value":"popover"}},{"id":491,"name":"Selection","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.10+**"}]},"sources":[{"fileName":"window.ts","line":1879,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1879"}],"type":{"type":"literal","value":"selection"}},{"id":496,"name":"Sheet","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1899,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1899"}],"type":{"type":"literal","value":"sheet"}},{"id":494,"name":"Sidebar","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.11+**"}]},"sources":[{"fileName":"window.ts","line":1891,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1891"}],"type":{"type":"literal","value":"sidebar"}},{"id":507,"name":"Tabbed","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"Tabbed effect that matches the system dark perefence **Windows 11 Only**"}]},"sources":[{"fileName":"window.ts","line":1951,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1951"}],"type":{"type":"literal","value":"tabbed"}},{"id":508,"name":"TabbedDark","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"Tabbed effect with dark mode but only if dark mode is enabled on the system **Windows 11 Only**"}]},"sources":[{"fileName":"window.ts","line":1955,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1955"}],"type":{"type":"literal","value":"tabbedDark"}},{"id":509,"name":"TabbedLight","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"Tabbed effect with light mode **Windows 11 Only**"}]},"sources":[{"fileName":"window.ts","line":1959,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1959"}],"type":{"type":"literal","value":"tabbedLight"}},{"id":490,"name":"Titlebar","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.10+**"}]},"sources":[{"fileName":"window.ts","line":1875,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1875"}],"type":{"type":"literal","value":"titlebar"}},{"id":500,"name":"Tooltip","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1915,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1915"}],"type":{"type":"literal","value":"tooltip"}},{"id":489,"name":"UltraDark","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14-**"}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since macOS 10.14. Use a semantic material instead."}]}]},"sources":[{"fileName":"window.ts","line":1871,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1871"}],"type":{"type":"literal","value":"ultraDark"}},{"id":503,"name":"UnderPageBackground","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1927,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1927"}],"type":{"type":"literal","value":"underPageBackground"}},{"id":502,"name":"UnderWindowBackground","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1923,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1923"}],"type":{"type":"literal","value":"underWindowBackground"}},{"id":497,"name":"WindowBackground","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"**macOS 10.14+**"}]},"sources":[{"fileName":"window.ts","line":1903,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1903"}],"type":{"type":"literal","value":"windowBackground"}}],"groups":[{"title":"Enumeration Members","children":[506,485,505,501,487,499,495,498,486,488,492,504,493,491,496,494,507,508,509,490,500,489,503,502,497]}],"sources":[{"fileName":"window.ts","line":1841,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1841"}]},{"id":510,"name":"EffectState","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Window effect state **macOS only**"}],"blockTags":[{"tag":"@see","content":[{"kind":"text","text":"https://developer.apple.com/documentation/appkit/nsvisualeffectview/state"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"children":[{"id":512,"name":"Active","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"Make window effect state always active **macOS only**"}]},"sources":[{"fileName":"window.ts","line":1977,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1977"}],"type":{"type":"literal","value":"active"}},{"id":511,"name":"FollowsWindowActiveState","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"Make window effect state follow the window's active state **macOS only**"}]},"sources":[{"fileName":"window.ts","line":1973,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1973"}],"type":{"type":"literal","value":"followsWindowActiveState"}},{"id":513,"name":"Inactive","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"Make window effect state always inactive **macOS only**"}]},"sources":[{"fileName":"window.ts","line":1981,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1981"}],"type":{"type":"literal","value":"inactive"}}],"groups":[{"title":"Enumeration Members","children":[512,511,513]}],"sources":[{"fileName":"window.ts","line":1969,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1969"}]},{"id":481,"name":"UserAttentionType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Attention type to request on a window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":482,"name":"Critical","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon until the application is in focus.\n- **Windows:** Flashes both the window and the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":77,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L77"}],"type":{"type":"literal","value":1}},{"id":483,"name":"Informational","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon once.\n- **Windows:** Flashes the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L83"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[482,483]}],"sources":[{"fileName":"window.ts","line":71,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L71"}]},{"id":465,"name":"CloseRequestedEvent","variant":"declaration","kind":128,"flags":{},"children":[{"id":466,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L95"}],"signatures":[{"id":467,"name":"new CloseRequestedEvent","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L95"}],"parameters":[{"id":468,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":41,"typeArguments":[{"type":"literal","value":null}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":465,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}]},{"id":472,"name":"_preventDefault","variant":"declaration","kind":1024,"flags":{"isPrivate":true},"sources":[{"fileName":"window.ts","line":93,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L93"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"},{"id":469,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"window.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L88"}],"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":471,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"window.ts","line":92,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L92"}],"type":{"type":"intrinsic","name":"number"}},{"id":470,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"window.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L90"}],"type":{"type":"intrinsic","name":"string"}},{"id":475,"name":"isPreventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":105,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L105"}],"signatures":[{"id":476,"name":"isPreventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":105,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L105"}],"type":{"type":"intrinsic","name":"boolean"}}]},{"id":473,"name":"preventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L101"}],"signatures":[{"id":474,"name":"preventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L101"}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Constructors","children":[466]},{"title":"Properties","children":[472,469,471,470]},{"title":"Methods","children":[475,473]}],"sources":[{"fileName":"window.ts","line":86,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L86"}]},{"id":276,"name":"Window","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Create new webview window or get a handle to an existing one.\n\nWindows are identified by a *label* a unique identifier that can be used to reference it later.\nIt may only contain alphanumeric characters "},{"kind":"code","text":"`a-zA-Z`"},{"kind":"text","text":" plus the following special characters "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\n// loading embedded asset:\nconst appWindow = new Window('theUniqueLabel', {\n url: 'path/to/page.html'\n});\n// alternatively, load a remote URL:\nconst appWindow = new Window('theUniqueLabel', {\n url: 'https://github.com/tauri-apps/tauri'\n});\n\nappWindow.once('tauri://created', function () {\n // window successfully created\n});\nappWindow.once('tauri://error', function (e) {\n // an error happened creating the window\n});\n\n// emit an event to the backend\nawait appWindow.emit(\"some event\", \"data\");\n// listen to an event from the backend\nconst unlisten = await appWindow.listen(\"event name\", e => {});\nunlisten();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":286,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":245,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L245"}],"signatures":[{"id":287,"name":"new Window","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new Window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Window } from '@tauri-apps/api/window';\nconst appWindow = new Window('my-label', {\n url: 'https://github.com/tauri-apps/tauri'\n});\nappWindow.once('tauri://created', function () {\n // window successfully created\n});\nappWindow.once('tauri://error', function (e) {\n // an error happened creating the window\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The "},{"kind":"inline-tag","tag":"@link","text":"Window","target":276,"tsLinkText":""},{"kind":"text","text":" instance to communicate with the webview."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":245,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L245"}],"parameters":[{"id":288,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The unique webview window label. Must be alphanumeric: "},{"kind":"code","text":"`a-zA-Z-/:_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":289,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":539,"name":"WindowOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}]},{"id":290,"name":"label","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The window label. It is a unique identifier for the window, can be used to reference it later."}]},"sources":[{"fileName":"window.ts","line":219,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L219"}],"type":{"type":"intrinsic","name":"string"}},{"id":291,"name":"listeners","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Local event listeners."}]},"sources":[{"fileName":"window.ts","line":222,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L222"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"reference","target":47,"typeArguments":[{"type":"intrinsic","name":"any"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":345,"name":"center","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":767,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L767"}],"signatures":[{"id":346,"name":"center","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Centers the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().center();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":767,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L767"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":390,"name":"clearEffects","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1135,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1135"}],"signatures":[{"id":391,"name":"clearEffects","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Clear any applied effects if possible."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"sources":[{"fileName":"window.ts","line":1135,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1135"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":379,"name":"close","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1064,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1064"}],"signatures":[{"id":380,"name":"close","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().close();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1064,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1064"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":302,"name":"emit","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":401,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L401"}],"signatures":[{"id":303,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend, tied to the webview window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().emit('window-loaded', { loggedIn: true, token: 'authToken' });\n```"}]}]},"sources":[{"fileName":"window.ts","line":401,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L401"}],"parameters":[{"id":304,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":305,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Event payload."}]},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":377,"name":"hide","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1046,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1046"}],"signatures":[{"id":378,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to false."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().hide();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1046,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1046"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":313,"name":"innerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":458,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L458"}],"signatures":[{"id":314,"name":"innerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window's client area relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst position = await getCurrent().innerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner position."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":458,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L458"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":317,"name":"innerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":495,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L495"}],"signatures":[{"id":318,"name":"innerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the window's client area.\nThe client area is the content of the window, excluding the title bar and borders."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst size = await getCurrent().innerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner size."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":495,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L495"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":337,"name":"isClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":689,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L689"}],"signatures":[{"id":338,"name":"isClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native close button state.\n\n#### Platform-specific\n\n- **iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst closable = await getCurrent().isClosable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native close button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":689,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L689"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":329,"name":"isDecorated","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":608,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L608"}],"signatures":[{"id":330,"name":"isDecorated","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current decorated state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst decorated = await getCurrent().isDecorated();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is decorated or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":608,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L608"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":327,"name":"isFocused","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":590,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L590"}],"signatures":[{"id":328,"name":"isFocused","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current focus state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst focused = await getCurrent().isFocused();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is focused or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":590,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L590"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":321,"name":"isFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":538,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L538"}],"signatures":[{"id":322,"name":"isFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst fullscreen = await getCurrent().isFullscreen();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":538,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L538"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":333,"name":"isMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":647,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L647"}],"signatures":[{"id":334,"name":"isMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native maximize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst maximizable = await getCurrent().isMaximizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":647,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L647"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":325,"name":"isMaximized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":572,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L572"}],"signatures":[{"id":326,"name":"isMaximized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst maximized = await getCurrent().isMaximized();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is maximized or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":572,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L572"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":335,"name":"isMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":668,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L668"}],"signatures":[{"id":336,"name":"isMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native minimize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst minimizable = await getCurrent().isMinimizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":668,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L668"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":323,"name":"isMinimized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":554,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L554"}],"signatures":[{"id":324,"name":"isMinimized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current minimized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst minimized = await getCurrent().isMinimized();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":554,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L554"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":331,"name":"isResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":626,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L626"}],"signatures":[{"id":332,"name":"isResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current resizable state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst resizable = await getCurrent().isResizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is resizable or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":626,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L626"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":339,"name":"isVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":707,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L707"}],"signatures":[{"id":340,"name":"isVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current visible state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst visible = await getCurrent().isVisible();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is visible or not."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":707,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L707"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":292,"name":"listen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":344,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L344"}],"signatures":[{"id":293,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event emitted by the backend that is tied to the webview window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst unlisten = await getCurrent().listen('state-changed', (event) => {\n console.log(`Got error: ${payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L344"}],"typeParameter":[{"id":294,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":295,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":55,"name":"EventName","package":"@tauri-apps/api"}},{"id":296,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":365,"name":"maximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":938,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L938"}],"signatures":[{"id":366,"name":"maximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Maximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().maximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":938,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L938"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":371,"name":"minimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":992,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L992"}],"signatures":[{"id":372,"name":"minimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Minimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().minimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":992,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L992"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":444,"name":"onCloseRequested","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1640,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1640"}],"signatures":[{"id":445,"name":"onCloseRequested","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window close requested. Emitted when the user requests to closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nimport { confirm } from '@tauri-apps/api/dialog';\nconst unlisten = await getCurrent().onCloseRequested(async (event) => {\n const confirmed = await confirm('Are you sure?');\n if (!confirmed) {\n // user did not confirm closing the window; let's prevent it\n event.preventDefault();\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1640,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1640"}],"parameters":[{"id":446,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":447,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"window.ts","line":1641,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1641"}],"signatures":[{"id":448,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":1641,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1641"}],"parameters":[{"id":449,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":465,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}],"type":{"type":"union","types":[{"type":"intrinsic","name":"void"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}]}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":459,"name":"onFileDropEvent","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1774,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1774"}],"signatures":[{"id":460,"name":"onFileDropEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to a file drop event.\nThe listener is triggered when the user hovers the selected files on the window,\ndrops the files or cancels the operation."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onFileDropEvent((event) => {\n if (event.payload.type === 'hover') {\n console.log('User hovering', event.payload.paths);\n } else if (event.payload.type === 'drop') {\n console.log('User dropped', event.payload.paths);\n } else {\n console.log('File drop cancelled');\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1774,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1774"}],"parameters":[{"id":461,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":530,"name":"FileDropEvent","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":450,"name":"onFocusChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1673,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1673"}],"signatures":[{"id":451,"name":"onFocusChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window focus change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onFocusChanged(({ payload: focused }) => {\n console.log('Focus changed, window is focused? ' + focused);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1673,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1673"}],"parameters":[{"id":452,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":456,"name":"onMenuClicked","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1743,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1743"}],"signatures":[{"id":457,"name":"onMenuClicked","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the window menu item click. The payload is the item id."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onMenuClicked(({ payload: menuId }) => {\n console.log('Menu clicked: ' + menuId);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1743,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1743"}],"parameters":[{"id":458,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":441,"name":"onMoved","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1608,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1608"}],"signatures":[{"id":442,"name":"onMoved","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window move."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onMoved(({ payload: position }) => {\n console.log('Window moved', position);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1608,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1608"}],"parameters":[{"id":443,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":438,"name":"onResized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1582,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1582"}],"signatures":[{"id":439,"name":"onResized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window resize."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onResized(({ payload: size }) => {\n console.log('Window resized', size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1582,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1582"}],"parameters":[{"id":440,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":453,"name":"onScaleChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1715,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1715"}],"signatures":[{"id":454,"name":"onScaleChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window scale change. Emitted when the window's scale factor has changed.\nThe following user actions can cause DPI changes:\n- Changing the display's resolution.\n- Changing the display's scale factor (e.g. in Control Panel on Windows).\n- Moving the window to a display with a different scale factor."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onScaleChanged(({ payload }) => {\n console.log('Scale changed', payload.scaleFactor, payload.size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1715,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1715"}],"parameters":[{"id":455,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":527,"name":"ScaleFactorChanged","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":462,"name":"onThemeChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1824,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1824"}],"signatures":[{"id":463,"name":"onThemeChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the system theme change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from \"@tauri-apps/api/window\";\nconst unlisten = await getCurrent().onThemeChanged(({ payload: theme }) => {\n console.log('New theme: ' + theme);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1824,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1824"}],"parameters":[{"id":464,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":525,"name":"Theme","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":297,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":379,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L379"}],"signatures":[{"id":298,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event emitted by the backend that is tied to the webview window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst unlisten = await getCurrent().once('initialized', (event) => {\n console.log(`Window initialized!`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":379,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L379"}],"typeParameter":[{"id":299,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":300,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":301,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":47,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":52,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":315,"name":"outerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":476,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L476"}],"signatures":[{"id":316,"name":"outerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst position = await getCurrent().outerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer position."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":476,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L476"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":319,"name":"outerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":517,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L517"}],"signatures":[{"id":320,"name":"outerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the entire window.\nThese dimensions include the title bar and borders. If you don't want that (and you usually don't), use inner_size instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst size = await getCurrent().outerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer size."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":517,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L517"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":347,"name":"requestUserAttention","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":796,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L796"}],"signatures":[{"id":348,"name":"requestUserAttention","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests user attention to the window, this has no effect if the application\nis already focused. How requesting for user attention manifests is platform dependent,\nsee "},{"kind":"code","text":"`UserAttentionType`"},{"kind":"text","text":" for details.\n\nProviding "},{"kind":"code","text":"`null`"},{"kind":"text","text":" will unset the request for user attention. Unsetting the request for\nuser attention might not be done automatically by the WM when the window receives input.\n\n#### Platform-specific\n\n- **macOS:** "},{"kind":"code","text":"`null`"},{"kind":"text","text":" has no effect.\n- **Linux:** Urgency levels have the same effect."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().requestUserAttention();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":796,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L796"}],"parameters":[{"id":349,"name":"requestType","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":481,"name":"UserAttentionType","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":311,"name":"scaleFactor","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":440,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L440"}],"signatures":[{"id":312,"name":"scaleFactor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst factor = await getCurrent().scaleFactor();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's monitor scale factor."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":440,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L440"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":392,"name":"setAlwaysOnTop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1155,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1155"}],"signatures":[{"id":393,"name":"setAlwaysOnTop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setAlwaysOnTop(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1155,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1155"}],"parameters":[{"id":394,"name":"alwaysOnTop","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":359,"name":"setClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":899,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L899"}],"signatures":[{"id":360,"name":"setClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native close button is enabled or not.\n\n#### Platform-specific\n\n- **Linux:** GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible\n- **iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setClosable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":899,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L899"}],"parameters":[{"id":361,"name":"closable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":395,"name":"setContentProtected","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1174,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1174"}],"signatures":[{"id":396,"name":"setContentProtected","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setContentProtected(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1174,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1174"}],"parameters":[{"id":397,"name":"protected_","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":421,"name":"setCursorGrab","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1432,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1432"}],"signatures":[{"id":422,"name":"setCursorGrab","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Grabs the cursor, preventing it from leaving the window.\n\nThere's no guarantee that the cursor will be hidden. You should\nhide it by yourself if you want so.\n\n#### Platform-specific\n\n- **Linux:** Unsupported.\n- **macOS:** This locks the cursor in a fixed location, which looks visually awkward."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setCursorGrab(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1432,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1432"}],"parameters":[{"id":423,"name":"grab","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to grab the cursor icon, "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to release it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":427,"name":"setCursorIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1478,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1478"}],"signatures":[{"id":428,"name":"setCursorIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor icon of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setCursorIcon('help');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1478,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1478"}],"parameters":[{"id":429,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor icon."}]},"type":{"type":"reference","target":274,"name":"CursorIcon","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":430,"name":"setCursorPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1498,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1498"}],"signatures":[{"id":431,"name":"setCursorPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the position of the cursor in window coordinates."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, LogicalPosition } from '@tauri-apps/api/window';\nawait getCurrent().setCursorPosition(new LogicalPosition(600, 300));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1498,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1498"}],"parameters":[{"id":432,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor position."}]},"type":{"type":"union","types":[{"type":"reference","target":2,"name":"LogicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":424,"name":"setCursorVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1458,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1458"}],"signatures":[{"id":425,"name":"setCursorVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor's visibility.\n\n#### Platform-specific\n\n- **Windows:** The cursor is only hidden within the confines of the window.\n- **macOS:** The cursor is hidden as long as the window has input focus, even if the cursor is\n outside of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setCursorVisible(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1458,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1458"}],"parameters":[{"id":426,"name":"visible","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`false`"},{"kind":"text","text":", this will hide the cursor. If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", this will show the cursor."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":381,"name":"setDecorations","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1083,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1083"}],"signatures":[{"id":382,"name":"setDecorations","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setDecorations(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1083,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1083"}],"parameters":[{"id":383,"name":"decorations","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":387,"name":"setEffects","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1123,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1123"}],"signatures":[{"id":388,"name":"setEffects","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Set window effects."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"sources":[{"fileName":"window.ts","line":1123,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1123"}],"parameters":[{"id":389,"name":"effects","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":520,"name":"Effects","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":413,"name":"setFocus","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1354,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1354"}],"signatures":[{"id":414,"name":"setFocus","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Bring the window to front and focus."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setFocus();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1354,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1354"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":410,"name":"setFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1335,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1335"}],"signatures":[{"id":411,"name":"setFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setFullscreen(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1335,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1335"}],"parameters":[{"id":412,"name":"fullscreen","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should go to fullscreen or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":415,"name":"setIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1380,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1380"}],"signatures":[{"id":416,"name":"setIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window icon."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setIcon('/tauri/awesome.png');\n```"},{"kind":"text","text":"\n\nNote that you need the "},{"kind":"code","text":"`icon-ico`"},{"kind":"text","text":" or "},{"kind":"code","text":"`icon-png`"},{"kind":"text","text":" Cargo features to use this API.\nTo enable it, change your Cargo.toml file:\n"},{"kind":"code","text":"```toml\n[dependencies]\ntauri = { version = \"...\", features = [\"...\", \"icon-png\"] }\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1380,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1380"}],"parameters":[{"id":417,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Icon bytes or path to the icon file."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":433,"name":"setIgnoreCursorEvents","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1536,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1536"}],"signatures":[{"id":434,"name":"setIgnoreCursorEvents","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the cursor events behavior."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setIgnoreCursorEvents(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1536,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1536"}],"parameters":[{"id":435,"name":"ignore","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to ignore the cursor events; "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to process them as usual."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":404,"name":"setMaxSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1262,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1262"}],"signatures":[{"id":405,"name":"setMaxSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window maximum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is undefined, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, LogicalSize } from '@tauri-apps/api/window';\nawait getCurrent().setMaxSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1262,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1262"}],"parameters":[{"id":406,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"},{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":353,"name":"setMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":852,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L852"}],"signatures":[{"id":354,"name":"setMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native maximize button is enabled or not.\nIf resizable is set to false, this setting is ignored.\n\n#### Platform-specific\n\n- **macOS:** Disables the \"zoom\" button in the window titlebar, which is also used to enter fullscreen mode.\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setMaximizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":852,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L852"}],"parameters":[{"id":355,"name":"maximizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":401,"name":"setMinSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1226,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1226"}],"signatures":[{"id":402,"name":"setMinSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window minimum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is not provided, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, PhysicalSize } from '@tauri-apps/api/window';\nawait getCurrent().setMinSize(new PhysicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1226,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1226"}],"parameters":[{"id":403,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"},{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":356,"name":"setMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":875,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L875"}],"signatures":[{"id":357,"name":"setMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native minimize button is enabled or not.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setMinimizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":875,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L875"}],"parameters":[{"id":358,"name":"minimizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":407,"name":"setPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1298,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1298"}],"signatures":[{"id":408,"name":"setPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window outer position."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, LogicalPosition } from '@tauri-apps/api/window';\nawait getCurrent().setPosition(new LogicalPosition(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1298,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1298"}],"parameters":[{"id":409,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new position, in logical or physical pixels."}]},"type":{"type":"union","types":[{"type":"reference","target":2,"name":"LogicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":350,"name":"setResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":827,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L827"}],"signatures":[{"id":351,"name":"setResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Updates the window resizable flag."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setResizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":827,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L827"}],"parameters":[{"id":352,"name":"resizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":384,"name":"setShadow","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1111,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1111"}],"signatures":[{"id":385,"name":"setShadow","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether or not the window should have shadow.\n\n#### Platform-specific\n\n- **Windows:**\n - "},{"kind":"code","text":"`false`"},{"kind":"text","text":" has no effect on decorated window, shadows are always ON.\n - "},{"kind":"code","text":"`true`"},{"kind":"text","text":" will make ndecorated window have a 1px white border,\nand on Windows 11, it will have a rounded corners.\n- **Linux:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setShadow(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1111,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1111"}],"parameters":[{"id":386,"name":"enable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":398,"name":"setSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1194,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1194"}],"signatures":[{"id":399,"name":"setSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resizes the window with a new inner size."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent, LogicalSize } from '@tauri-apps/api/window';\nawait getCurrent().setSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1194,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1194"}],"parameters":[{"id":400,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size."}]},"type":{"type":"union","types":[{"type":"reference","target":10,"name":"LogicalSize","package":"@tauri-apps/api"},{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":418,"name":"setSkipTaskbar","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1404,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1404"}],"signatures":[{"id":419,"name":"setSkipTaskbar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window icon should be hidden from the taskbar or not.\n\n#### Platform-specific\n\n- **macOS:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setSkipTaskbar(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1404,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1404"}],"parameters":[{"id":420,"name":"skip","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"true to hide window icon, false to show it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":362,"name":"setTitle","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":919,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L919"}],"signatures":[{"id":363,"name":"setTitle","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().setTitle('Tauri');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":919,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L919"}],"parameters":[{"id":364,"name":"title","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new title"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":375,"name":"show","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1028,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1028"}],"signatures":[{"id":376,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to true."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().show();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1028,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1028"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":436,"name":"startDragging","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1555,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1555"}],"signatures":[{"id":437,"name":"startDragging","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Starts dragging the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().startDragging();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1555,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1555"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":343,"name":"theme","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":746,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L746"}],"signatures":[{"id":344,"name":"theme","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current theme.\n\n#### Platform-specific\n\n- **macOS:** Theme was introduced on macOS 10.14. Returns "},{"kind":"code","text":"`light`"},{"kind":"text","text":" on macOS 10.13 and below."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst theme = await getCurrent().theme();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window theme."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":746,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L746"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":525,"name":"Theme","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":341,"name":"title","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":723,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L723"}],"signatures":[{"id":342,"name":"title","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nconst title = await getCurrent().title();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":723,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L723"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":369,"name":"toggleMaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":974,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L974"}],"signatures":[{"id":370,"name":"toggleMaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Toggles the window maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().toggleMaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":974,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L974"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":367,"name":"unmaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":956,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L956"}],"signatures":[{"id":368,"name":"unmaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unmaximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().unmaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":956,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L956"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":373,"name":"unminimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1010,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1010"}],"signatures":[{"id":374,"name":"unminimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unminimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getCurrent } from '@tauri-apps/api/window';\nawait getCurrent().unminimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":1010,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1010"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":282,"name":"getAll","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":298,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L298"}],"signatures":[{"id":283,"name":"getAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets a list of instances of "},{"kind":"code","text":"`Window`"},{"kind":"text","text":" for all available windows."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":298,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L298"}],"type":{"type":"array","elementType":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}}]},{"id":277,"name":"getByLabel","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":276,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L276"}],"signatures":[{"id":278,"name":"getByLabel","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the Window for the webview associated with the given label."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Window } from '@tauri-apps/api/window';\nconst mainWindow = Window.getByLabel('main');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The Window instance to communicate with the webview or null if the webview doesn't exist."}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L276"}],"parameters":[{"id":279,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The webview window label."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}]}}]},{"id":280,"name":"getCurrent","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":289,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L289"}],"signatures":[{"id":281,"name":"getCurrent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get an instance of "},{"kind":"code","text":"`Window`"},{"kind":"text","text":" for the current window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L289"}],"type":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}]},{"id":284,"name":"getFocusedWindow","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":314,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L314"}],"signatures":[{"id":285,"name":"getFocusedWindow","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the focused window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Window } from '@tauri-apps/api/window';\nconst focusedWindow = Window.getFocusedWindow();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The Window instance to communicate with the webview or "},{"kind":"code","text":"`undefined`"},{"kind":"text","text":" if there is not any focused window."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":314,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L314"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[286]},{"title":"Properties","children":[290,291]},{"title":"Methods","children":[345,390,379,302,377,313,317,337,329,327,321,333,325,335,323,331,339,292,365,371,444,459,450,456,441,438,453,462,297,315,319,347,311,392,359,395,421,427,430,424,381,387,413,410,415,433,404,353,401,356,407,350,384,398,418,362,375,436,343,341,369,367,373,282,277,280,284]}],"sources":[{"fileName":"window.ts","line":217,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L217"}]},{"id":520,"name":"Effects","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"The window effects configuration object"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"children":[{"id":524,"name":"color","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window effect color. Affects "},{"kind":"inline-tag","tag":"@link","text":"Blur","target":505,"tsLinkText":""},{"kind":"text","text":" and "},{"kind":"inline-tag","tag":"@link","text":"Acrylic","target":506,"tsLinkText":""},{"kind":"text","text":" only\non Windows 10 v1903+. Doesn't have any effect on Windows 7 or Windows 11."}]},"sources":[{"fileName":"window.ts","line":2006,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2006"}],"type":{"type":"reference","target":573,"name":"Color","package":"@tauri-apps/api"}},{"id":521,"name":"effects","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"List of Window effects to apply to the Window.\nConflicting effects will apply the first one and ignore the rest."}]},"sources":[{"fileName":"window.ts","line":1993,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1993"}],"type":{"type":"array","elementType":{"type":"reference","target":484,"name":"Effect","package":"@tauri-apps/api"}}},{"id":523,"name":"radius","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window effect corner radius **macOS Only**"}]},"sources":[{"fileName":"window.ts","line":2001,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2001"}],"type":{"type":"intrinsic","name":"number"}},{"id":522,"name":"state","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window effect state **macOS Only**"}]},"sources":[{"fileName":"window.ts","line":1997,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1997"}],"type":{"type":"reference","target":510,"name":"EffectState","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[524,521,523,522]}],"sources":[{"fileName":"window.ts","line":1988,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1988"}]},{"id":269,"name":"Monitor","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Allows you to retrieve information about a given monitor."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":270,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Human-readable name of the monitor"}]},"sources":[{"fileName":"window.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L36"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"}]}},{"id":272,"name":"position","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"the Top-left corner position of the monitor relative to the larger full screen area."}]},"sources":[{"fileName":"window.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L40"}],"type":{"type":"reference","target":18,"name":"PhysicalPosition","package":"@tauri-apps/api"}},{"id":273,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}]},"sources":[{"fileName":"window.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L42"}],"type":{"type":"intrinsic","name":"number"}},{"id":271,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The monitor's resolution."}]},"sources":[{"fileName":"window.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L38"}],"type":{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[270,272,273,271]}],"sources":[{"fileName":"window.ts","line":34,"character":17,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L34"}]},{"id":527,"name":"ScaleFactorChanged","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"The payload for the "},{"kind":"code","text":"`scaleChange`"},{"kind":"text","text":" event."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":528,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window scale factor."}]},"sources":[{"fileName":"window.ts","line":55,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L55"}],"type":{"type":"intrinsic","name":"number"}},{"id":529,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window size"}]},"sources":[{"fileName":"window.ts","line":57,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L57"}],"type":{"type":"reference","target":29,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[528,529]}],"sources":[{"fileName":"window.ts","line":53,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L53"}]},{"id":539,"name":"WindowOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Configuration for the window to create."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"children":[{"id":566,"name":"acceptFirstMouse","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether clicking an inactive window also clicks through to the webview on macOS."}]},"sources":[{"fileName":"window.ts","line":2104,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2104"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":558,"name":"alwaysOnTop","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"sources":[{"fileName":"window.ts","line":2062,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2062"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":541,"name":"center","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Show window in the center of the screen.."}]},"sources":[{"fileName":"window.ts","line":2024,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2024"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":572,"name":"closable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native close button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2135,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2135"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":559,"name":"contentProtected","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}]},"sources":[{"fileName":"window.ts","line":2064,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2064"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":557,"name":"decorations","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars or not."}]},"sources":[{"fileName":"window.ts","line":2060,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2060"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":562,"name":"fileDropEnabled","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the file drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use drag and drop on the frontend on Windows."}]},"sources":[{"fileName":"window.ts","line":2086,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2086"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":553,"name":"focus","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window will be initially focused or not."}]},"sources":[{"fileName":"window.ts","line":2048,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2048"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":552,"name":"fullscreen","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]},"sources":[{"fileName":"window.ts","line":2046,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2046"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":545,"name":"height","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial height."}]},"sources":[{"fileName":"window.ts","line":2032,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2032"}],"type":{"type":"intrinsic","name":"number"}},{"id":565,"name":"hiddenTitle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", sets the window title to be hidden on macOS."}]},"sources":[{"fileName":"window.ts","line":2100,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2100"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":569,"name":"incognito","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the webview should be launched in incognito mode.\n\n#### Platform-specific\n\n- **Android:** Unsupported."}]},"sources":[{"fileName":"window.ts","line":2123,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2123"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":549,"name":"maxHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum height. Only applies if "},{"kind":"code","text":"`maxWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2040,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2040"}],"type":{"type":"intrinsic","name":"number"}},{"id":548,"name":"maxWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum width. Only applies if "},{"kind":"code","text":"`maxHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2038,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2038"}],"type":{"type":"intrinsic","name":"number"}},{"id":570,"name":"maximizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2127,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2127"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":555,"name":"maximized","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be maximized upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2056,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2056"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":547,"name":"minHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum height. Only applies if "},{"kind":"code","text":"`minWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2036,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2036"}],"type":{"type":"intrinsic","name":"number"}},{"id":546,"name":"minWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum width. Only applies if "},{"kind":"code","text":"`minHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2034,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2034"}],"type":{"type":"intrinsic","name":"number"}},{"id":571,"name":"minimizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2131,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2131"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":550,"name":"resizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is resizable or not."}]},"sources":[{"fileName":"window.ts","line":2042,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2042"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":561,"name":"shadow","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the window has shadow.\n\n#### Platform-specific\n\n- **Windows:**\n - "},{"kind":"code","text":"`false`"},{"kind":"text","text":" has no effect on decorated window, shadows are always ON.\n - "},{"kind":"code","text":"`true`"},{"kind":"text","text":" will make ndecorated window have a 1px white border,\nand on Windows 11, it will have a rounded corners.\n- **Linux:** Unsupported."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2080,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2080"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":560,"name":"skipTaskbar","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the window icon should be added to the taskbar."}]},"sources":[{"fileName":"window.ts","line":2066,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2066"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":567,"name":"tabbingIdentifier","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the window [tabbing identifier](https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier) on macOS.\n\nWindows with the same tabbing identifier will be grouped together.\nIf the tabbing identifier is not set, automatic tabbing will be disabled."}]},"sources":[{"fileName":"window.ts","line":2111,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2111"}],"type":{"type":"intrinsic","name":"string"}},{"id":563,"name":"theme","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial window theme. Defaults to the system theme.\n\nOnly implemented on Windows and macOS 10.14+."}]},"sources":[{"fileName":"window.ts","line":2092,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2092"}],"type":{"type":"reference","target":525,"name":"Theme","package":"@tauri-apps/api"}},{"id":551,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window title."}]},"sources":[{"fileName":"window.ts","line":2044,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2044"}],"type":{"type":"intrinsic","name":"string"}},{"id":564,"name":"titleBarStyle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The style of the macOS title bar."}]},"sources":[{"fileName":"window.ts","line":2096,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2096"}],"type":{"type":"reference","target":526,"name":"TitleBarStyle","package":"@tauri-apps/api"}},{"id":554,"name":"transparent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is transparent or not.\nNote that on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" this requires the "},{"kind":"code","text":"`macos-private-api`"},{"kind":"text","text":" feature flag, enabled under "},{"kind":"code","text":"`tauri.conf.json > tauri > macOSPrivateApi`"},{"kind":"text","text":".\nWARNING: Using private APIs on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" prevents your application from being accepted to the "},{"kind":"code","text":"`App Store`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2054,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2054"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":540,"name":"url","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Remote URL or local file path to open.\n\n- URL such as "},{"kind":"code","text":"`https://github.com/tauri-apps`"},{"kind":"text","text":" is opened directly on a Tauri window.\n- data: URL such as "},{"kind":"code","text":"`data:text/html,...`"},{"kind":"text","text":" is only supported with the "},{"kind":"code","text":"`window-data-url`"},{"kind":"text","text":" Cargo feature for the "},{"kind":"code","text":"`tauri`"},{"kind":"text","text":" dependency.\n- local file path or route such as "},{"kind":"code","text":"`/path/to/page.html`"},{"kind":"text","text":" or "},{"kind":"code","text":"`/users`"},{"kind":"text","text":" is appended to the application URL (the devServer URL on development, or "},{"kind":"code","text":"`tauri://localhost/`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://tauri.localhost/`"},{"kind":"text","text":" on production)."}]},"sources":[{"fileName":"window.ts","line":2022,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2022"}],"type":{"type":"intrinsic","name":"string"}},{"id":568,"name":"userAgent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The user agent for the webview."}]},"sources":[{"fileName":"window.ts","line":2115,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2115"}],"type":{"type":"intrinsic","name":"string"}},{"id":556,"name":"visible","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be immediately visible upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2058,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2058"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":544,"name":"width","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial width."}]},"sources":[{"fileName":"window.ts","line":2030,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2030"}],"type":{"type":"intrinsic","name":"number"}},{"id":542,"name":"x","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial vertical position. Only applies if "},{"kind":"code","text":"`y`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2026,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2026"}],"type":{"type":"intrinsic","name":"number"}},{"id":543,"name":"y","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial horizontal position. Only applies if "},{"kind":"code","text":"`x`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2028,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2028"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[566,558,541,572,559,557,562,553,552,545,565,569,549,548,570,555,547,546,571,550,561,560,567,563,551,564,554,540,568,556,544,542,543]}],"sources":[{"fileName":"window.ts","line":2014,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2014"}]},{"id":573,"name":"Color","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"an array RGBA colors. Each value has minimum of 0 and maximum of 255."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0"}]}]},"sources":[{"fileName":"window.ts","line":1834,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1834"}],"type":{"type":"tuple","elements":[{"type":"intrinsic","name":"number"},{"type":"intrinsic","name":"number"},{"type":"intrinsic","name":"number"},{"type":"intrinsic","name":"number"}]}},{"id":274,"name":"CursorIcon","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":110,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L110"}],"type":{"type":"union","types":[{"type":"literal","value":"default"},{"type":"literal","value":"crosshair"},{"type":"literal","value":"hand"},{"type":"literal","value":"arrow"},{"type":"literal","value":"move"},{"type":"literal","value":"text"},{"type":"literal","value":"wait"},{"type":"literal","value":"help"},{"type":"literal","value":"progress"},{"type":"literal","value":"notAllowed"},{"type":"literal","value":"contextMenu"},{"type":"literal","value":"cell"},{"type":"literal","value":"verticalText"},{"type":"literal","value":"alias"},{"type":"literal","value":"copy"},{"type":"literal","value":"noDrop"},{"type":"literal","value":"grab"},{"type":"literal","value":"grabbing"},{"type":"literal","value":"allScroll"},{"type":"literal","value":"zoomIn"},{"type":"literal","value":"zoomOut"},{"type":"literal","value":"eResize"},{"type":"literal","value":"nResize"},{"type":"literal","value":"neResize"},{"type":"literal","value":"nwResize"},{"type":"literal","value":"sResize"},{"type":"literal","value":"seResize"},{"type":"literal","value":"swResize"},{"type":"literal","value":"wResize"},{"type":"literal","value":"ewResize"},{"type":"literal","value":"nsResize"},{"type":"literal","value":"neswResize"},{"type":"literal","value":"nwseResize"},{"type":"literal","value":"colResize"},{"type":"literal","value":"rowResize"}]}},{"id":530,"name":"FileDropEvent","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file drop event types."}]},"sources":[{"fileName":"window.ts","line":61,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L61"}],"type":{"type":"union","types":[{"type":"reflection","declaration":{"id":531,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":533,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":62,"character":21,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L62"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":532,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":62,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L62"}],"type":{"type":"literal","value":"hover"}}],"groups":[{"title":"Properties","children":[533,532]}],"sources":[{"fileName":"window.ts","line":62,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L62"}]}},{"type":"reflection","declaration":{"id":534,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":536,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":63,"character":20,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L63"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":535,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":63,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L63"}],"type":{"type":"literal","value":"drop"}}],"groups":[{"title":"Properties","children":[536,535]}],"sources":[{"fileName":"window.ts","line":63,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L63"}]}},{"type":"reflection","declaration":{"id":537,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":538,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":64,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L64"}],"type":{"type":"literal","value":"cancel"}}],"groups":[{"title":"Properties","children":[538]}],"sources":[{"fileName":"window.ts","line":64,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L64"}]}}]}},{"id":525,"name":"Theme","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":45,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L45"}],"type":{"type":"union","types":[{"type":"literal","value":"light"},{"type":"literal","value":"dark"}]}},{"id":526,"name":"TitleBarStyle","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":46,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L46"}],"type":{"type":"union","types":[{"type":"literal","value":"visible"},{"type":"literal","value":"transparent"},{"type":"literal","value":"overlay"}]}},{"id":518,"name":"availableMonitors","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2201,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2201"}],"signatures":[{"id":519,"name":"availableMonitors","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the list of all the monitors available on the system."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { availableMonitors } from '@tauri-apps/api/window';\nconst monitors = availableMonitors();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2201,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2201"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":269,"name":"Monitor","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":514,"name":"currentMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2168,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2168"}],"signatures":[{"id":515,"name":"currentMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the monitor on which the window currently resides.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if current monitor can't be detected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { currentMonitor } from '@tauri-apps/api/window';\nconst monitor = currentMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2168,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2168"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":269,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":479,"name":"getAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":168,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L168"}],"signatures":[{"id":480,"name":"getAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets a list of instances of "},{"kind":"code","text":"`Window`"},{"kind":"text","text":" for all available windows."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":168,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L168"}],"type":{"type":"array","elementType":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}}]},{"id":477,"name":"getCurrent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":156,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L156"}],"signatures":[{"id":478,"name":"getCurrent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get an instance of "},{"kind":"code","text":"`Window`"},{"kind":"text","text":" for the current window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":156,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L156"}],"type":{"type":"reference","target":276,"name":"Window","package":"@tauri-apps/api"}}]},{"id":516,"name":"primaryMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2185,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2185"}],"signatures":[{"id":517,"name":"primaryMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the primary monitor of the system.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if it can't identify any monitor as a primary one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { primaryMonitor } from '@tauri-apps/api/window';\nconst monitor = primaryMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"2.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2185,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L2185"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":269,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[576,574,577,575]},{"title":"Enumerations","children":[484,510,481]},{"title":"Classes","children":[465,276]},{"title":"Interfaces","children":[520,269,527,539]},{"title":"Type Aliases","children":[573,274,530,525,526]},{"title":"Functions","children":[518,514,479,477,516]}],"sources":[{"fileName":"window.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/ca4954b07/tooling/api/src/window.ts#L1"}]}],"groups":[{"title":"Modules","children":[1,40,89,103,204,268]}],"packageName":"@tauri-apps/api","symbolIdMap":{"1":{"sourceFileName":"src/dpi.ts","qualifiedName":""},"2":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition"},"3":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition.__constructor"},"4":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition"},"5":{"sourceFileName":"src/dpi.ts","qualifiedName":"x"},"6":{"sourceFileName":"src/dpi.ts","qualifiedName":"y"},"7":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition.type"},"8":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition.x"},"9":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalPosition.y"},"10":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize"},"11":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize.__constructor"},"12":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize"},"13":{"sourceFileName":"src/dpi.ts","qualifiedName":"width"},"14":{"sourceFileName":"src/dpi.ts","qualifiedName":"height"},"15":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize.type"},"16":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize.width"},"17":{"sourceFileName":"src/dpi.ts","qualifiedName":"LogicalSize.height"},"18":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition"},"19":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.__constructor"},"20":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition"},"21":{"sourceFileName":"src/dpi.ts","qualifiedName":"x"},"22":{"sourceFileName":"src/dpi.ts","qualifiedName":"y"},"23":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.type"},"24":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.x"},"25":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.y"},"26":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.toLogical"},"27":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalPosition.toLogical"},"28":{"sourceFileName":"src/dpi.ts","qualifiedName":"scaleFactor"},"29":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize"},"30":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.__constructor"},"31":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize"},"32":{"sourceFileName":"src/dpi.ts","qualifiedName":"width"},"33":{"sourceFileName":"src/dpi.ts","qualifiedName":"height"},"34":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.type"},"35":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.width"},"36":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.height"},"37":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.toLogical"},"38":{"sourceFileName":"src/dpi.ts","qualifiedName":"PhysicalSize.toLogical"},"39":{"sourceFileName":"src/dpi.ts","qualifiedName":"scaleFactor"},"40":{"sourceFileName":"src/event.ts","qualifiedName":""},"41":{"sourceFileName":"src/event.ts","qualifiedName":"Event"},"42":{"sourceFileName":"src/event.ts","qualifiedName":"Event.event"},"43":{"sourceFileName":"src/event.ts","qualifiedName":"Event.windowLabel"},"44":{"sourceFileName":"src/event.ts","qualifiedName":"Event.id"},"45":{"sourceFileName":"src/event.ts","qualifiedName":"Event.payload"},"46":{"sourceFileName":"src/event.ts","qualifiedName":"Event.T"},"47":{"sourceFileName":"src/event.ts","qualifiedName":"EventCallback"},"48":{"sourceFileName":"src/event.ts","qualifiedName":"__type"},"49":{"sourceFileName":"src/event.ts","qualifiedName":"__type"},"50":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"51":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"52":{"sourceFileName":"src/event.ts","qualifiedName":"UnlistenFn"},"53":{"sourceFileName":"src/event.ts","qualifiedName":"__type"},"54":{"sourceFileName":"src/event.ts","qualifiedName":"__type"},"55":{"sourceFileName":"src/event.ts","qualifiedName":"EventName"},"56":{"sourceFileName":"src/event.ts","qualifiedName":"Options"},"57":{"sourceFileName":"src/event.ts","qualifiedName":"Options.target"},"58":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"59":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"60":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"61":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"62":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"63":{"sourceFileName":"src/event.ts","qualifiedName":"options"},"64":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"65":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"66":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"67":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"68":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"69":{"sourceFileName":"src/event.ts","qualifiedName":"options"},"70":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"71":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"72":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"73":{"sourceFileName":"src/event.ts","qualifiedName":"payload"},"74":{"sourceFileName":"src/event.ts","qualifiedName":"options"},"75":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent"},"76":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_RESIZED"},"77":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_MOVED"},"78":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CLOSE_REQUESTED"},"79":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CREATED"},"80":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_DESTROYED"},"81":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FOCUS"},"82":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_BLUR"},"83":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_SCALE_FACTOR_CHANGED"},"84":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_THEME_CHANGED"},"85":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP"},"86":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_HOVER"},"87":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_CANCELLED"},"88":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.MENU"},"89":{"sourceFileName":"src/mocks.ts","qualifiedName":""},"90":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"91":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"92":{"sourceFileName":"src/mocks.ts","qualifiedName":"cb"},"93":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"94":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"95":{"sourceFileName":"src/mocks.ts","qualifiedName":"cmd"},"96":{"sourceFileName":"src/mocks.ts","qualifiedName":"payload"},"97":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"98":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"99":{"sourceFileName":"src/mocks.ts","qualifiedName":"current"},"100":{"sourceFileName":"src/mocks.ts","qualifiedName":"additionalWindows"},"101":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"102":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"103":{"sourceFileName":"src/path.ts","qualifiedName":""},"104":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory"},"105":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Audio"},"106":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Cache"},"107":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Config"},"108":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Data"},"109":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.LocalData"},"110":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Document"},"111":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Download"},"112":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Picture"},"113":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Public"},"114":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Video"},"115":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Resource"},"116":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Temp"},"117":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppConfig"},"118":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppData"},"119":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppLocalData"},"120":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppCache"},"121":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.AppLog"},"122":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Desktop"},"123":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Executable"},"124":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Font"},"125":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Home"},"126":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Runtime"},"127":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory.Template"},"128":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"129":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"130":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"131":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"132":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"133":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"134":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"135":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"136":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"137":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"138":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"139":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"140":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"141":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"142":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"143":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"144":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"145":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"146":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"147":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"148":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"149":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"150":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"151":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"152":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"153":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"154":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"155":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"156":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"157":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"158":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"159":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"160":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"161":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"162":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"163":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"164":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"165":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"166":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"167":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"168":{"sourceFileName":"src/path.ts","qualifiedName":"resourcePath"},"169":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"170":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"171":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"172":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"173":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"174":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"175":{"sourceFileName":"src/path.ts","qualifiedName":"sep"},"176":{"sourceFileName":"src/path.ts","qualifiedName":"sep"},"177":{"sourceFileName":"src/path.ts","qualifiedName":"delimiter"},"178":{"sourceFileName":"src/path.ts","qualifiedName":"delimiter"},"179":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"180":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"181":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"182":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"183":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"184":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"185":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"186":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"187":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"188":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"189":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"190":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"191":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"192":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"193":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"194":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"195":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"196":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"197":{"sourceFileName":"src/path.ts","qualifiedName":"ext"},"198":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"199":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"200":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"201":{"sourceFileName":"src/path.ts","qualifiedName":"tempDir"},"202":{"sourceFileName":"src/path.ts","qualifiedName":"tempDir"},"203":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"204":{"sourceFileName":"src/primitives.ts","qualifiedName":""},"205":{"sourceFileName":"src/primitives.ts","qualifiedName":"InvokeArgs"},"206":{"sourceFileName":"src/primitives.ts","qualifiedName":"InvokeOptions"},"207":{"sourceFileName":"src/primitives.ts","qualifiedName":"InvokeOptions.headers"},"208":{"sourceFileName":"src/primitives.ts","qualifiedName":"transformCallback"},"209":{"sourceFileName":"src/primitives.ts","qualifiedName":"transformCallback"},"210":{"sourceFileName":"src/primitives.ts","qualifiedName":"callback"},"211":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"212":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"213":{"sourceFileName":"src/primitives.ts","qualifiedName":"response"},"214":{"sourceFileName":"src/primitives.ts","qualifiedName":"once"},"215":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel"},"216":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.__constructor"},"217":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel"},"218":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.T"},"219":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.id"},"220":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.__TAURI_CHANNEL_MARKER__"},"221":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.#onmessage"},"222":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"223":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"224":{"sourceFileName":"src/primitives.ts","qualifiedName":"response"},"225":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.onmessage"},"226":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.onmessage"},"227":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"228":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"229":{"sourceFileName":"src/primitives.ts","qualifiedName":"response"},"230":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.onmessage"},"231":{"sourceFileName":"src/primitives.ts","qualifiedName":"handler"},"232":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"233":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"234":{"sourceFileName":"src/primitives.ts","qualifiedName":"response"},"235":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.toJSON"},"236":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.toJSON"},"237":{"sourceFileName":"src/primitives.ts","qualifiedName":"Channel.T"},"238":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener"},"239":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.__constructor"},"240":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener"},"241":{"sourceFileName":"src/primitives.ts","qualifiedName":"plugin"},"242":{"sourceFileName":"src/primitives.ts","qualifiedName":"event"},"243":{"sourceFileName":"src/primitives.ts","qualifiedName":"channelId"},"244":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.plugin"},"245":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.event"},"246":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.channelId"},"247":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.unregister"},"248":{"sourceFileName":"src/primitives.ts","qualifiedName":"PluginListener.unregister"},"249":{"sourceFileName":"src/primitives.ts","qualifiedName":"addPluginListener"},"250":{"sourceFileName":"src/primitives.ts","qualifiedName":"addPluginListener"},"251":{"sourceFileName":"src/primitives.ts","qualifiedName":"T"},"252":{"sourceFileName":"src/primitives.ts","qualifiedName":"plugin"},"253":{"sourceFileName":"src/primitives.ts","qualifiedName":"event"},"254":{"sourceFileName":"src/primitives.ts","qualifiedName":"cb"},"255":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"256":{"sourceFileName":"src/primitives.ts","qualifiedName":"__type"},"257":{"sourceFileName":"src/primitives.ts","qualifiedName":"payload"},"258":{"sourceFileName":"src/primitives.ts","qualifiedName":"invoke"},"259":{"sourceFileName":"src/primitives.ts","qualifiedName":"invoke"},"260":{"sourceFileName":"src/primitives.ts","qualifiedName":"T"},"261":{"sourceFileName":"src/primitives.ts","qualifiedName":"cmd"},"262":{"sourceFileName":"src/primitives.ts","qualifiedName":"args"},"263":{"sourceFileName":"src/primitives.ts","qualifiedName":"options"},"264":{"sourceFileName":"src/primitives.ts","qualifiedName":"convertFileSrc"},"265":{"sourceFileName":"src/primitives.ts","qualifiedName":"convertFileSrc"},"266":{"sourceFileName":"src/primitives.ts","qualifiedName":"filePath"},"267":{"sourceFileName":"src/primitives.ts","qualifiedName":"protocol"},"268":{"sourceFileName":"src/window.ts","qualifiedName":""},"269":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor"},"270":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.name"},"271":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.size"},"272":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.position"},"273":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.scaleFactor"},"274":{"sourceFileName":"src/window.ts","qualifiedName":"CursorIcon"},"276":{"sourceFileName":"src/window.ts","qualifiedName":"Window"},"277":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getByLabel"},"278":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getByLabel"},"279":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"280":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getCurrent"},"281":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getCurrent"},"282":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getAll"},"283":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getAll"},"284":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getFocusedWindow"},"285":{"sourceFileName":"src/window.ts","qualifiedName":"Window.getFocusedWindow"},"286":{"sourceFileName":"src/window.ts","qualifiedName":"Window.__constructor"},"287":{"sourceFileName":"src/window.ts","qualifiedName":"Window"},"288":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"289":{"sourceFileName":"src/window.ts","qualifiedName":"options"},"290":{"sourceFileName":"src/window.ts","qualifiedName":"Window.label"},"291":{"sourceFileName":"src/window.ts","qualifiedName":"Window.listeners"},"292":{"sourceFileName":"src/window.ts","qualifiedName":"Window.listen"},"293":{"sourceFileName":"src/window.ts","qualifiedName":"Window.listen"},"294":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"295":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"296":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"297":{"sourceFileName":"src/window.ts","qualifiedName":"Window.once"},"298":{"sourceFileName":"src/window.ts","qualifiedName":"Window.once"},"299":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"300":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"301":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"302":{"sourceFileName":"src/window.ts","qualifiedName":"Window.emit"},"303":{"sourceFileName":"src/window.ts","qualifiedName":"Window.emit"},"304":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"305":{"sourceFileName":"src/window.ts","qualifiedName":"payload"},"311":{"sourceFileName":"src/window.ts","qualifiedName":"Window.scaleFactor"},"312":{"sourceFileName":"src/window.ts","qualifiedName":"Window.scaleFactor"},"313":{"sourceFileName":"src/window.ts","qualifiedName":"Window.innerPosition"},"314":{"sourceFileName":"src/window.ts","qualifiedName":"Window.innerPosition"},"315":{"sourceFileName":"src/window.ts","qualifiedName":"Window.outerPosition"},"316":{"sourceFileName":"src/window.ts","qualifiedName":"Window.outerPosition"},"317":{"sourceFileName":"src/window.ts","qualifiedName":"Window.innerSize"},"318":{"sourceFileName":"src/window.ts","qualifiedName":"Window.innerSize"},"319":{"sourceFileName":"src/window.ts","qualifiedName":"Window.outerSize"},"320":{"sourceFileName":"src/window.ts","qualifiedName":"Window.outerSize"},"321":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isFullscreen"},"322":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isFullscreen"},"323":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMinimized"},"324":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMinimized"},"325":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMaximized"},"326":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMaximized"},"327":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isFocused"},"328":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isFocused"},"329":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isDecorated"},"330":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isDecorated"},"331":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isResizable"},"332":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isResizable"},"333":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMaximizable"},"334":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMaximizable"},"335":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMinimizable"},"336":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isMinimizable"},"337":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isClosable"},"338":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isClosable"},"339":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isVisible"},"340":{"sourceFileName":"src/window.ts","qualifiedName":"Window.isVisible"},"341":{"sourceFileName":"src/window.ts","qualifiedName":"Window.title"},"342":{"sourceFileName":"src/window.ts","qualifiedName":"Window.title"},"343":{"sourceFileName":"src/window.ts","qualifiedName":"Window.theme"},"344":{"sourceFileName":"src/window.ts","qualifiedName":"Window.theme"},"345":{"sourceFileName":"src/window.ts","qualifiedName":"Window.center"},"346":{"sourceFileName":"src/window.ts","qualifiedName":"Window.center"},"347":{"sourceFileName":"src/window.ts","qualifiedName":"Window.requestUserAttention"},"348":{"sourceFileName":"src/window.ts","qualifiedName":"Window.requestUserAttention"},"349":{"sourceFileName":"src/window.ts","qualifiedName":"requestType"},"350":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setResizable"},"351":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setResizable"},"352":{"sourceFileName":"src/window.ts","qualifiedName":"resizable"},"353":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMaximizable"},"354":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMaximizable"},"355":{"sourceFileName":"src/window.ts","qualifiedName":"maximizable"},"356":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMinimizable"},"357":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMinimizable"},"358":{"sourceFileName":"src/window.ts","qualifiedName":"minimizable"},"359":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setClosable"},"360":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setClosable"},"361":{"sourceFileName":"src/window.ts","qualifiedName":"closable"},"362":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setTitle"},"363":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setTitle"},"364":{"sourceFileName":"src/window.ts","qualifiedName":"title"},"365":{"sourceFileName":"src/window.ts","qualifiedName":"Window.maximize"},"366":{"sourceFileName":"src/window.ts","qualifiedName":"Window.maximize"},"367":{"sourceFileName":"src/window.ts","qualifiedName":"Window.unmaximize"},"368":{"sourceFileName":"src/window.ts","qualifiedName":"Window.unmaximize"},"369":{"sourceFileName":"src/window.ts","qualifiedName":"Window.toggleMaximize"},"370":{"sourceFileName":"src/window.ts","qualifiedName":"Window.toggleMaximize"},"371":{"sourceFileName":"src/window.ts","qualifiedName":"Window.minimize"},"372":{"sourceFileName":"src/window.ts","qualifiedName":"Window.minimize"},"373":{"sourceFileName":"src/window.ts","qualifiedName":"Window.unminimize"},"374":{"sourceFileName":"src/window.ts","qualifiedName":"Window.unminimize"},"375":{"sourceFileName":"src/window.ts","qualifiedName":"Window.show"},"376":{"sourceFileName":"src/window.ts","qualifiedName":"Window.show"},"377":{"sourceFileName":"src/window.ts","qualifiedName":"Window.hide"},"378":{"sourceFileName":"src/window.ts","qualifiedName":"Window.hide"},"379":{"sourceFileName":"src/window.ts","qualifiedName":"Window.close"},"380":{"sourceFileName":"src/window.ts","qualifiedName":"Window.close"},"381":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setDecorations"},"382":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setDecorations"},"383":{"sourceFileName":"src/window.ts","qualifiedName":"decorations"},"384":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setShadow"},"385":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setShadow"},"386":{"sourceFileName":"src/window.ts","qualifiedName":"enable"},"387":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setEffects"},"388":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setEffects"},"389":{"sourceFileName":"src/window.ts","qualifiedName":"effects"},"390":{"sourceFileName":"src/window.ts","qualifiedName":"Window.clearEffects"},"391":{"sourceFileName":"src/window.ts","qualifiedName":"Window.clearEffects"},"392":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setAlwaysOnTop"},"393":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setAlwaysOnTop"},"394":{"sourceFileName":"src/window.ts","qualifiedName":"alwaysOnTop"},"395":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setContentProtected"},"396":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setContentProtected"},"397":{"sourceFileName":"src/window.ts","qualifiedName":"protected_"},"398":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setSize"},"399":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setSize"},"400":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"401":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMinSize"},"402":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMinSize"},"403":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"404":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMaxSize"},"405":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setMaxSize"},"406":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"407":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setPosition"},"408":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setPosition"},"409":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"410":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setFullscreen"},"411":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setFullscreen"},"412":{"sourceFileName":"src/window.ts","qualifiedName":"fullscreen"},"413":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setFocus"},"414":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setFocus"},"415":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setIcon"},"416":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setIcon"},"417":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"418":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setSkipTaskbar"},"419":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setSkipTaskbar"},"420":{"sourceFileName":"src/window.ts","qualifiedName":"skip"},"421":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorGrab"},"422":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorGrab"},"423":{"sourceFileName":"src/window.ts","qualifiedName":"grab"},"424":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorVisible"},"425":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorVisible"},"426":{"sourceFileName":"src/window.ts","qualifiedName":"visible"},"427":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorIcon"},"428":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorIcon"},"429":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"430":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorPosition"},"431":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setCursorPosition"},"432":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"433":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setIgnoreCursorEvents"},"434":{"sourceFileName":"src/window.ts","qualifiedName":"Window.setIgnoreCursorEvents"},"435":{"sourceFileName":"src/window.ts","qualifiedName":"ignore"},"436":{"sourceFileName":"src/window.ts","qualifiedName":"Window.startDragging"},"437":{"sourceFileName":"src/window.ts","qualifiedName":"Window.startDragging"},"438":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onResized"},"439":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onResized"},"440":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"441":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onMoved"},"442":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onMoved"},"443":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"444":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onCloseRequested"},"445":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onCloseRequested"},"446":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"447":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"448":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"449":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"450":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onFocusChanged"},"451":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onFocusChanged"},"452":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"453":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onScaleChanged"},"454":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onScaleChanged"},"455":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"456":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onMenuClicked"},"457":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onMenuClicked"},"458":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"459":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onFileDropEvent"},"460":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onFileDropEvent"},"461":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"462":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onThemeChanged"},"463":{"sourceFileName":"src/window.ts","qualifiedName":"Window.onThemeChanged"},"464":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"465":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"466":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.__constructor"},"467":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"468":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"469":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.event"},"470":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.windowLabel"},"471":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.id"},"472":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent._preventDefault"},"473":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"474":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"475":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"476":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"477":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"478":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"479":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"480":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"481":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType"},"482":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Critical"},"483":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Informational"},"484":{"sourceFileName":"src/window.ts","qualifiedName":"Effect"},"485":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.AppearanceBased"},"486":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Light"},"487":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Dark"},"488":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.MediumLight"},"489":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.UltraDark"},"490":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Titlebar"},"491":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Selection"},"492":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Menu"},"493":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Popover"},"494":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Sidebar"},"495":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.HeaderView"},"496":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Sheet"},"497":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.WindowBackground"},"498":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.HudWindow"},"499":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.FullScreenUI"},"500":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Tooltip"},"501":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.ContentBackground"},"502":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.UnderWindowBackground"},"503":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.UnderPageBackground"},"504":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Mica"},"505":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Blur"},"506":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Acrylic"},"507":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.Tabbed"},"508":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.TabbedDark"},"509":{"sourceFileName":"src/window.ts","qualifiedName":"Effect.TabbedLight"},"510":{"sourceFileName":"src/window.ts","qualifiedName":"EffectState"},"511":{"sourceFileName":"src/window.ts","qualifiedName":"EffectState.FollowsWindowActiveState"},"512":{"sourceFileName":"src/window.ts","qualifiedName":"EffectState.Active"},"513":{"sourceFileName":"src/window.ts","qualifiedName":"EffectState.Inactive"},"514":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"515":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"516":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"517":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"518":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"519":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"520":{"sourceFileName":"src/window.ts","qualifiedName":"Effects"},"521":{"sourceFileName":"src/window.ts","qualifiedName":"Effects.effects"},"522":{"sourceFileName":"src/window.ts","qualifiedName":"Effects.state"},"523":{"sourceFileName":"src/window.ts","qualifiedName":"Effects.radius"},"524":{"sourceFileName":"src/window.ts","qualifiedName":"Effects.color"},"525":{"sourceFileName":"src/window.ts","qualifiedName":"Theme"},"526":{"sourceFileName":"src/window.ts","qualifiedName":"TitleBarStyle"},"527":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged"},"528":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.scaleFactor"},"529":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.size"},"530":{"sourceFileName":"src/window.ts","qualifiedName":"FileDropEvent"},"531":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"532":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"533":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"534":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"535":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"536":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"537":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"538":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"539":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions"},"540":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.url"},"541":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.center"},"542":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.x"},"543":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.y"},"544":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.width"},"545":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.height"},"546":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minWidth"},"547":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minHeight"},"548":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxWidth"},"549":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxHeight"},"550":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.resizable"},"551":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.title"},"552":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fullscreen"},"553":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.focus"},"554":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.transparent"},"555":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximized"},"556":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.visible"},"557":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.decorations"},"558":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.alwaysOnTop"},"559":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.contentProtected"},"560":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.skipTaskbar"},"561":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.shadow"},"562":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fileDropEnabled"},"563":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.theme"},"564":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.titleBarStyle"},"565":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.hiddenTitle"},"566":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.acceptFirstMouse"},"567":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.tabbingIdentifier"},"568":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.userAgent"},"569":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.incognito"},"570":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximizable"},"571":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minimizable"},"572":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.closable"},"573":{"sourceFileName":"src/window.ts","qualifiedName":"Color"},"574":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"575":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"576":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"577":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"}}} \ No newline at end of file diff --git a/tooling/api/src/window.ts b/tooling/api/src/window.ts index 23f822aec968..b1a69bcbdb83 100644 --- a/tooling/api/src/window.ts +++ b/tooling/api/src/window.ts @@ -1944,7 +1944,19 @@ enum Effect { * * This effect has bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000. */ - Acrylic = 'acrylic' + Acrylic = 'acrylic', + /** + * Tabbed effect that matches the system dark perefence **Windows 11 Only** + */ + Tabbed = 'tabbed', + /** + * Tabbed effect with dark mode but only if dark mode is enabled on the system **Windows 11 Only** + */ + TabbedDark = 'tabbedDark', + /** + * Tabbed effect with light mode **Windows 11 Only** + */ + TabbedLight = 'tabbedLight' } /** @@ -1988,7 +2000,7 @@ interface Effects { */ radius?: number /** - * Window effect color. Affects {@link Effects.Blur} and {@link Effects.Acrylic} only + * Window effect color. Affects {@link Effect.Blur} and {@link Effect.Acrylic} only * on Windows 10 v1903+. Doesn't have any effect on Windows 7 or Windows 11. */ color?: Color diff --git a/tooling/cli/schema.json b/tooling/cli/schema.json index c41f4980dbd2..9c977517a184 100644 --- a/tooling/cli/schema.json +++ b/tooling/cli/schema.json @@ -796,6 +796,27 @@ "micaLight" ] }, + { + "description": "Tabbed effect that matches the system dark perefence **Windows 11 Only**", + "type": "string", + "enum": [ + "tabbed" + ] + }, + { + "description": "Tabbed effect with dark mode but only if dark mode is enabled on the system **Windows 11 Only**", + "type": "string", + "enum": [ + "tabbedDark" + ] + }, + { + "description": "Tabbed effect with light mode **Windows 11 Only**", + "type": "string", + "enum": [ + "tabbedLight" + ] + }, { "description": "**Windows 7/10/11(22H1) Only**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 11 build 22621.", "type": "string",