From 011d8e309494afd721f2c97696aa4b40271a61f7 Mon Sep 17 00:00:00 2001 From: Dieter Zhu Date: Thu, 24 Nov 2022 03:08:15 +0800 Subject: [PATCH] Supplement the missing WindowSetAlwaysOnTop in runtime.d.ts and runtime.js (#2128) --- .../frontend/runtime/wrapper/runtime.d.ts | 4 ++++ .../frontend/runtime/wrapper/runtime.js | 4 ++++ .../frontend/wailsjs/runtime/runtime.d.ts | 20 ++++--------------- .../frontend/wailsjs/runtime/runtime.js | 20 ++++--------------- .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../lit/frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../lit/frontend/wailsjs/runtime/runtime.js | 4 ++++ .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../react/frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../frontend/wailsjs/runtime/runtime.js | 16 ++++----------- .../vue/frontend/wailsjs/runtime/runtime.d.ts | 4 ++++ .../vue/frontend/wailsjs/runtime/runtime.js | 16 ++++----------- 28 files changed, 112 insertions(+), 164 deletions(-) diff --git a/v2/internal/frontend/runtime/wrapper/runtime.d.ts b/v2/internal/frontend/runtime/wrapper/runtime.d.ts index 2dd46255..40068079 100644 --- a/v2/internal/frontend/runtime/wrapper/runtime.d.ts +++ b/v2/internal/frontend/runtime/wrapper/runtime.d.ts @@ -93,6 +93,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/internal/frontend/runtime/wrapper/runtime.js b/v2/internal/frontend/runtime/wrapper/runtime.js index d6149986..b9be812c 100644 --- a/v2/internal/frontend/runtime/wrapper/runtime.js +++ b/v2/internal/frontend/runtime/wrapper/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } diff --git a/v2/pkg/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.d.ts index 453e2776..e0d662b3 100644 --- a/v2/pkg/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). @@ -120,10 +124,6 @@ export function WindowFullscreen(): void; // Restores the previous window dimensions and position prior to full screen. export function WindowUnfullscreen(): void; -// [WindowIsFullscreen](https://wails.io/docs/reference/runtime/window#windowisfullscreen) -// Returns the state of the window, i.e. whether the window is in full screen mode or not. -export function WindowIsFullscreen(): Promise; - // [WindowSetSize](https://wails.io/docs/reference/runtime/window#windowsetsize) // Sets the width and height of the window. export function WindowSetSize(width: number, height: number): Promise; @@ -170,10 +170,6 @@ export function WindowToggleMaximise(): void; // Restores the window to the dimensions and position prior to maximising. export function WindowUnmaximise(): void; -// [WindowIsMaximised](https://wails.io/docs/reference/runtime/window#windowismaximised) -// Returns the state of the window, i.e. whether the window is maximised or not. -export function WindowIsMaximised(): Promise; - // [WindowMinimise](https://wails.io/docs/reference/runtime/window#windowminimise) // Minimises the window. export function WindowMinimise(): void; @@ -182,14 +178,6 @@ export function WindowMinimise(): void; // Restores the window to the dimensions and position prior to minimising. export function WindowUnminimise(): void; -// [WindowIsMinimised](https://wails.io/docs/reference/runtime/window#windowisminimised) -// Returns the state of the window, i.e. whether the window is minimised or not. -export function WindowIsMinimised(): Promise; - -// [WindowIsNormal](https://wails.io/docs/reference/runtime/window#windowisnormal) -// Returns the state of the window, i.e. whether the window is normal or not. -export function WindowIsNormal(): Promise; - // [WindowSetBackgroundColour](https://wails.io/docs/reference/runtime/window#windowsetbackgroundcolour) // Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels. export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void; diff --git a/v2/pkg/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js index 26df8943..2c3dafcc 100644 --- a/v2/pkg/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -93,10 +97,6 @@ export function WindowUnfullscreen() { window.runtime.WindowUnfullscreen(); } -export function WindowIsFullscreen() { - return window.runtime.WindowIsFullscreen(); -} - export function WindowGetSize() { return window.runtime.WindowGetSize(); } @@ -141,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -161,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/lit-ts/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/lit-ts/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/lit-ts/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/lit-ts/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/lit-ts/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/lit-ts/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/lit-ts/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/lit-ts/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/lit/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/lit/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/lit/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/lit/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/lit/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/lit/frontend/wailsjs/runtime/runtime.js index 26dbb224..2c3dafcc 100644 --- a/v2/pkg/templates/templates/lit/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/lit/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } diff --git a/v2/pkg/templates/templates/preact-ts/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/preact-ts/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/preact-ts/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/preact-ts/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/preact-ts/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/preact-ts/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/preact-ts/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/preact-ts/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/preact/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/preact/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/preact/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/preact/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/preact/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/preact/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/preact/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/preact/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/react-ts/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/react-ts/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/react-ts/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/react-ts/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/react-ts/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/react-ts/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/react-ts/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/react-ts/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/react/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/react/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/react/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/react/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/react/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/react/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/react/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/react/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/svelte-ts/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/svelte-ts/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/svelte-ts/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/svelte-ts/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/svelte-ts/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/svelte-ts/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/svelte-ts/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/svelte-ts/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/svelte/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/svelte/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/svelte/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/svelte/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/svelte/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/svelte/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/svelte/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/svelte/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/vanilla-ts/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/vanilla-ts/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/vanilla-ts/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/vanilla-ts/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/vanilla-ts/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/vanilla-ts/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/vanilla-ts/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/vanilla-ts/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/vanilla/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/vanilla/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/vanilla/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/vanilla/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/vanilla/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/vanilla/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/vanilla/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/vanilla/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/vue-ts/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/vue-ts/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/vue-ts/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/vue-ts/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/vue-ts/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/vue-ts/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/vue-ts/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/vue-ts/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); } diff --git a/v2/pkg/templates/templates/vue/frontend/wailsjs/runtime/runtime.d.ts b/v2/pkg/templates/templates/vue/frontend/wailsjs/runtime/runtime.d.ts index 14f322e4..e0d662b3 100644 --- a/v2/pkg/templates/templates/vue/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/pkg/templates/templates/vue/frontend/wailsjs/runtime/runtime.d.ts @@ -89,6 +89,10 @@ export function WindowReload(): void; // Reloads the application frontend. export function WindowReloadApp(): void; +// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop) +// Sets the window AlwaysOnTop or not on top. +export function WindowSetAlwaysOnTop(b: boolean): void; + // [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme) // *Windows only* // Sets window theme to system default (dark/light). diff --git a/v2/pkg/templates/templates/vue/frontend/wailsjs/runtime/runtime.js b/v2/pkg/templates/templates/vue/frontend/wailsjs/runtime/runtime.js index 6106bc74..2c3dafcc 100644 --- a/v2/pkg/templates/templates/vue/frontend/wailsjs/runtime/runtime.js +++ b/v2/pkg/templates/templates/vue/frontend/wailsjs/runtime/runtime.js @@ -65,6 +65,10 @@ export function WindowReloadApp() { window.runtime.WindowReloadApp(); } +export function WindowSetAlwaysOnTop(b) { + window.runtime.WindowSetAlwaysOnTop(b); +} + export function WindowSetSystemDefaultTheme() { window.runtime.WindowSetSystemDefaultTheme(); } @@ -137,10 +141,6 @@ export function WindowUnmaximise() { window.runtime.WindowUnmaximise(); } -export function WindowIsMaximised() { - return window.runtime.WindowIsMaximised(); -} - export function WindowMinimise() { window.runtime.WindowMinimise(); } @@ -157,14 +157,6 @@ export function ScreenGetAll() { return window.runtime.ScreenGetAll(); } -export function WindowIsMinimised() { - return window.runtime.WindowIsMinimised(); -} - -export function WindowIsNormal() { - return window.runtime.WindowIsNormal(); -} - export function BrowserOpenURL(url) { window.runtime.BrowserOpenURL(url); }