mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 04:05:12 -07:00
Un/Fullscreen, SetTitle in Runtime
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user