mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Update runtime.Window
This commit is contained in:
parent
255b4e103a
commit
435ac02647
2 changed files with 28 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@wails/runtime",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "Wails V2 Javascript runtime library",
|
||||
"main": "main.js",
|
||||
"types": "runtime.d.ts",
|
||||
|
|
|
|||
|
|
@ -102,3 +102,30 @@ export function Unminimise() {
|
|||
export function Close() {
|
||||
window.wails.Window.Close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the window title
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export function SetTitle(title) {
|
||||
window.wails.Window.SetTitle(title);
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes the window go fullscreen
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export function Fullscreen() {
|
||||
window.wails.Window.Fullscreen();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverts the window from fullscreen
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export function Unfullscreen() {
|
||||
window.wails.Window.Unfullscreen();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue