mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Update runtime.Window
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user