Update runtime.Window

This commit is contained in:
Lea Anthony 2020-11-15 12:18:37 +11:00
commit 435ac02647
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405
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();
}