Un/Fullscreen, SetTitle in Runtime

This commit is contained in:
Lea Anthony
2020-11-15 15:09:33 +11:00
parent 32ba9e78fe
commit 98cc356b92
2 changed files with 43 additions and 0 deletions

View File

@@ -21,6 +21,34 @@ export function Center() {
SendMessage('Wc');
}
/**
* Sets the window title
*
* @param {string} title
* @export
*/
export function SetTitle(title) {
SendMessage('WT' + title);
}
/**
* Makes the window go fullscreen
*
* @export
*/
export function Fullscreen() {
SendMessage('WF');
}
/**
* Reverts the window from fullscreen
*
* @export
*/
export function UnFullscreen() {
SendMessage('Wf');
}
/**
* Set the Size of the window
*