Update runtime.Window

This commit is contained in:
Lea Anthony
2020-11-15 12:18:37 +11:00
parent 255b4e103a
commit 435ac02647
2 changed files with 28 additions and 1 deletions

View File

@@ -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",

View File

@@ -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();
}