@wailsio/runtime 3.0.0-alpha.13 → 3.0.0-alpha.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,181 @@
1
+
2
+ export declare const EventTypes: {
3
+ Windows: {
4
+ SystemThemeChanged: string,
5
+ APMPowerStatusChange: string,
6
+ APMSuspend: string,
7
+ APMResumeAutomatic: string,
8
+ APMResumeSuspend: string,
9
+ APMPowerSettingChange: string,
10
+ ApplicationStarted: string,
11
+ WebViewNavigationCompleted: string,
12
+ WindowInactive: string,
13
+ WindowActive: string,
14
+ WindowClickActive: string,
15
+ WindowMaximise: string,
16
+ WindowUnMaximise: string,
17
+ WindowFullscreen: string,
18
+ WindowUnFullscreen: string,
19
+ WindowRestore: string,
20
+ WindowMinimise: string,
21
+ WindowUnMinimise: string,
22
+ WindowClose: string,
23
+ WindowSetFocus: string,
24
+ WindowKillFocus: string,
25
+ WindowDragDrop: string,
26
+ WindowDragEnter: string,
27
+ WindowDragLeave: string,
28
+ WindowDragOver: string,
29
+ },
30
+ Mac: {
31
+ ApplicationDidBecomeActive: string,
32
+ ApplicationDidChangeBackingProperties: string,
33
+ ApplicationDidChangeEffectiveAppearance: string,
34
+ ApplicationDidChangeIcon: string,
35
+ ApplicationDidChangeOcclusionState: string,
36
+ ApplicationDidChangeScreenParameters: string,
37
+ ApplicationDidChangeStatusBarFrame: string,
38
+ ApplicationDidChangeStatusBarOrientation: string,
39
+ ApplicationDidFinishLaunching: string,
40
+ ApplicationDidHide: string,
41
+ ApplicationDidResignActiveNotification: string,
42
+ ApplicationDidUnhide: string,
43
+ ApplicationDidUpdate: string,
44
+ ApplicationWillBecomeActive: string,
45
+ ApplicationWillFinishLaunching: string,
46
+ ApplicationWillHide: string,
47
+ ApplicationWillResignActive: string,
48
+ ApplicationWillTerminate: string,
49
+ ApplicationWillUnhide: string,
50
+ ApplicationWillUpdate: string,
51
+ ApplicationDidChangeTheme: string,
52
+ ApplicationShouldHandleReopen: string,
53
+ WindowDidBecomeKey: string,
54
+ WindowDidBecomeMain: string,
55
+ WindowDidBeginSheet: string,
56
+ WindowDidChangeAlpha: string,
57
+ WindowDidChangeBackingLocation: string,
58
+ WindowDidChangeBackingProperties: string,
59
+ WindowDidChangeCollectionBehavior: string,
60
+ WindowDidChangeEffectiveAppearance: string,
61
+ WindowDidChangeOcclusionState: string,
62
+ WindowDidChangeOrderingMode: string,
63
+ WindowDidChangeScreen: string,
64
+ WindowDidChangeScreenParameters: string,
65
+ WindowDidChangeScreenProfile: string,
66
+ WindowDidChangeScreenSpace: string,
67
+ WindowDidChangeScreenSpaceProperties: string,
68
+ WindowDidChangeSharingType: string,
69
+ WindowDidChangeSpace: string,
70
+ WindowDidChangeSpaceOrderingMode: string,
71
+ WindowDidChangeTitle: string,
72
+ WindowDidChangeToolbar: string,
73
+ WindowDidChangeVisibility: string,
74
+ WindowDidDeminiaturize: string,
75
+ WindowDidEndSheet: string,
76
+ WindowDidEnterFullScreen: string,
77
+ WindowDidEnterVersionBrowser: string,
78
+ WindowDidExitFullScreen: string,
79
+ WindowDidExitVersionBrowser: string,
80
+ WindowDidExpose: string,
81
+ WindowDidFocus: string,
82
+ WindowDidMiniaturize: string,
83
+ WindowDidMove: string,
84
+ WindowDidOrderOffScreen: string,
85
+ WindowDidOrderOnScreen: string,
86
+ WindowDidResignKey: string,
87
+ WindowDidResignMain: string,
88
+ WindowDidResize: string,
89
+ WindowDidUpdate: string,
90
+ WindowDidUpdateAlpha: string,
91
+ WindowDidUpdateCollectionBehavior: string,
92
+ WindowDidUpdateCollectionProperties: string,
93
+ WindowDidUpdateShadow: string,
94
+ WindowDidUpdateTitle: string,
95
+ WindowDidUpdateToolbar: string,
96
+ WindowDidUpdateVisibility: string,
97
+ WindowShouldClose: string,
98
+ WindowWillBecomeKey: string,
99
+ WindowWillBecomeMain: string,
100
+ WindowWillBeginSheet: string,
101
+ WindowWillChangeOrderingMode: string,
102
+ WindowWillClose: string,
103
+ WindowWillDeminiaturize: string,
104
+ WindowWillEnterFullScreen: string,
105
+ WindowWillEnterVersionBrowser: string,
106
+ WindowWillExitFullScreen: string,
107
+ WindowWillExitVersionBrowser: string,
108
+ WindowWillFocus: string,
109
+ WindowWillMiniaturize: string,
110
+ WindowWillMove: string,
111
+ WindowWillOrderOffScreen: string,
112
+ WindowWillOrderOnScreen: string,
113
+ WindowWillResignMain: string,
114
+ WindowWillResize: string,
115
+ WindowWillUnfocus: string,
116
+ WindowWillUpdate: string,
117
+ WindowWillUpdateAlpha: string,
118
+ WindowWillUpdateCollectionBehavior: string,
119
+ WindowWillUpdateCollectionProperties: string,
120
+ WindowWillUpdateShadow: string,
121
+ WindowWillUpdateTitle: string,
122
+ WindowWillUpdateToolbar: string,
123
+ WindowWillUpdateVisibility: string,
124
+ WindowWillUseStandardFrame: string,
125
+ MenuWillOpen: string,
126
+ MenuDidOpen: string,
127
+ MenuDidClose: string,
128
+ MenuWillSendAction: string,
129
+ MenuDidSendAction: string,
130
+ MenuWillHighlightItem: string,
131
+ MenuDidHighlightItem: string,
132
+ MenuWillDisplayItem: string,
133
+ MenuDidDisplayItem: string,
134
+ MenuWillAddItem: string,
135
+ MenuDidAddItem: string,
136
+ MenuWillRemoveItem: string,
137
+ MenuDidRemoveItem: string,
138
+ MenuWillBeginTracking: string,
139
+ MenuDidBeginTracking: string,
140
+ MenuWillEndTracking: string,
141
+ MenuDidEndTracking: string,
142
+ MenuWillUpdate: string,
143
+ MenuDidUpdate: string,
144
+ MenuWillPopUp: string,
145
+ MenuDidPopUp: string,
146
+ MenuWillSendActionToItem: string,
147
+ MenuDidSendActionToItem: string,
148
+ WebViewDidStartProvisionalNavigation: string,
149
+ WebViewDidReceiveServerRedirectForProvisionalNavigation: string,
150
+ WebViewDidFinishNavigation: string,
151
+ WebViewDidCommitNavigation: string,
152
+ WindowFileDraggingEntered: string,
153
+ WindowFileDraggingPerformed: string,
154
+ WindowFileDraggingExited: string,
155
+ },
156
+ Linux: {
157
+ SystemThemeChanged: string,
158
+ },
159
+ Common: {
160
+ ApplicationStarted: string,
161
+ WindowMaximise: string,
162
+ WindowUnMaximise: string,
163
+ WindowFullscreen: string,
164
+ WindowUnFullscreen: string,
165
+ WindowRestore: string,
166
+ WindowMinimise: string,
167
+ WindowUnMinimise: string,
168
+ WindowClosing: string,
169
+ WindowZoom: string,
170
+ WindowZoomIn: string,
171
+ WindowZoomOut: string,
172
+ WindowZoomReset: string,
173
+ WindowFocus: string,
174
+ WindowLostFocus: string,
175
+ WindowShow: string,
176
+ WindowHide: string,
177
+ WindowDPIChanged: string,
178
+ WindowFilesDropped: string,
179
+ ThemeChanged: string,
180
+ },
181
+ };
package/types/events.d.ts CHANGED
@@ -1,4 +1,14 @@
1
- export function dispatchWailsEvent(event: any): void;
1
+ /**
2
+ * Sets up event callbacks for Wails.
3
+ *
4
+ * @function setupEventCallbacks
5
+ *
6
+ * @description This method is responsible for setting up event callbacks for Wails. It checks if the global object `_wails` exists on the `window` object, and if not, initializes it
7
+ *. It then assigns the `dispatchWailsEvent` function as a property on the `_wails` object.
8
+ *
9
+ * @returns {undefined} Returns nothing.
10
+ */
11
+ export function setupEventCallbacks(): undefined;
2
12
  /**
3
13
  * Register a callback function to be called multiple times for a specific event.
4
14
  *
@@ -21,9 +31,9 @@ export function On(eventName: string, callback: Function): Function;
21
31
  *
22
32
  * @param {string} eventName - The name of the event.
23
33
  * @param {function} callback - The function to be executed when the event occurs.
24
- * @return {void@return {function} - A function that, when called, will unregister the callback from the event.
34
+ * @return {function} - A function that, when called, will unregister the callback from the event.
25
35
  */
26
- export function Once(eventName: string, callback: Function): void;
36
+ export function Once(eventName: string, callback: Function): Function;
27
37
  /**
28
38
  * Removes event listeners for the specified event names.
29
39
  *
@@ -46,6 +56,199 @@ export function OffAll(): void;
46
56
  * @returns {any} - The result of the emitted event.
47
57
  */
48
58
  export function Emit(event: WailsEvent): any;
59
+ export const Types: {
60
+ Windows: {
61
+ SystemThemeChanged: string;
62
+ APMPowerStatusChange: string;
63
+ APMSuspend: string;
64
+ APMResumeAutomatic: string;
65
+ APMResumeSuspend: string;
66
+ APMPowerSettingChange: string;
67
+ ApplicationStarted: string;
68
+ WebViewNavigationCompleted: string;
69
+ WindowInactive: string;
70
+ WindowActive: string;
71
+ WindowClickActive: string;
72
+ WindowMaximise: string;
73
+ WindowUnMaximise: string;
74
+ WindowFullscreen: string;
75
+ WindowUnFullscreen: string;
76
+ WindowRestore: string;
77
+ WindowMinimise: string;
78
+ WindowUnMinimise: string;
79
+ WindowClose: string;
80
+ WindowSetFocus: string;
81
+ WindowKillFocus: string;
82
+ WindowDragDrop: string;
83
+ WindowDragEnter: string;
84
+ WindowDragLeave: string;
85
+ WindowDragOver: string;
86
+ };
87
+ Mac: {
88
+ ApplicationDidBecomeActive: string;
89
+ ApplicationDidChangeBackingProperties: string;
90
+ ApplicationDidChangeEffectiveAppearance: string;
91
+ ApplicationDidChangeIcon: string;
92
+ ApplicationDidChangeOcclusionState: string;
93
+ ApplicationDidChangeScreenParameters: string;
94
+ ApplicationDidChangeStatusBarFrame: string;
95
+ ApplicationDidChangeStatusBarOrientation: string;
96
+ ApplicationDidFinishLaunching: string;
97
+ ApplicationDidHide: string;
98
+ ApplicationDidResignActiveNotification: string;
99
+ ApplicationDidUnhide: string;
100
+ ApplicationDidUpdate: string;
101
+ ApplicationWillBecomeActive: string;
102
+ ApplicationWillFinishLaunching: string;
103
+ ApplicationWillHide: string;
104
+ ApplicationWillResignActive: string;
105
+ ApplicationWillTerminate: string;
106
+ ApplicationWillUnhide: string;
107
+ ApplicationWillUpdate: string;
108
+ ApplicationDidChangeTheme: string;
109
+ ApplicationShouldHandleReopen: string;
110
+ WindowDidBecomeKey: string;
111
+ WindowDidBecomeMain: string;
112
+ WindowDidBeginSheet: string;
113
+ WindowDidChangeAlpha: string;
114
+ WindowDidChangeBackingLocation: string;
115
+ WindowDidChangeBackingProperties: string;
116
+ WindowDidChangeCollectionBehavior: string;
117
+ WindowDidChangeEffectiveAppearance: string;
118
+ WindowDidChangeOcclusionState: string;
119
+ WindowDidChangeOrderingMode: string;
120
+ WindowDidChangeScreen: string;
121
+ WindowDidChangeScreenParameters: string;
122
+ WindowDidChangeScreenProfile: string;
123
+ WindowDidChangeScreenSpace: string;
124
+ WindowDidChangeScreenSpaceProperties: string;
125
+ WindowDidChangeSharingType: string;
126
+ WindowDidChangeSpace: string;
127
+ WindowDidChangeSpaceOrderingMode: string;
128
+ /**
129
+ * Removes the specified listener from the event listeners collection.
130
+ * If all listeners for the event are removed, the event key is deleted from the collection.
131
+ *
132
+ * @param {Object} listener - The listener to be removed.
133
+ */
134
+ WindowDidChangeTitle: string;
135
+ WindowDidChangeToolbar: string;
136
+ WindowDidChangeVisibility: string;
137
+ WindowDidDeminiaturize: string;
138
+ WindowDidEndSheet: string;
139
+ WindowDidEnterFullScreen: string;
140
+ WindowDidEnterVersionBrowser: string;
141
+ WindowDidExitFullScreen: string;
142
+ WindowDidExitVersionBrowser: string;
143
+ /**
144
+ * Removes event listeners for the specified event names.
145
+ *
146
+ * @param {string} eventName - The name of the event to remove listeners for.
147
+ * @param {...string} additionalEventNames - Additional event names to remove listeners for.
148
+ * @return {undefined}
149
+ */
150
+ WindowDidExpose: string;
151
+ WindowDidFocus: string;
152
+ WindowDidMiniaturize: string;
153
+ WindowDidMove: string;
154
+ WindowDidOrderOffScreen: string;
155
+ WindowDidOrderOnScreen: string;
156
+ WindowDidResignKey: string;
157
+ WindowDidResignMain: string;
158
+ WindowDidResize: string;
159
+ WindowDidUpdate: string;
160
+ WindowDidUpdateAlpha: string;
161
+ WindowDidUpdateCollectionBehavior: string;
162
+ WindowDidUpdateCollectionProperties: string;
163
+ WindowDidUpdateShadow: string;
164
+ WindowDidUpdateTitle: string;
165
+ WindowDidUpdateToolbar: string;
166
+ WindowDidUpdateVisibility: string;
167
+ WindowShouldClose: string;
168
+ WindowWillBecomeKey: string;
169
+ WindowWillBecomeMain: string;
170
+ WindowWillBeginSheet: string;
171
+ WindowWillChangeOrderingMode: string;
172
+ WindowWillClose: string;
173
+ WindowWillDeminiaturize: string;
174
+ WindowWillEnterFullScreen: string;
175
+ WindowWillEnterVersionBrowser: string;
176
+ WindowWillExitFullScreen: string;
177
+ WindowWillExitVersionBrowser: string;
178
+ WindowWillFocus: string;
179
+ WindowWillMiniaturize: string;
180
+ WindowWillMove: string;
181
+ WindowWillOrderOffScreen: string;
182
+ WindowWillOrderOnScreen: string;
183
+ WindowWillResignMain: string;
184
+ WindowWillResize: string;
185
+ WindowWillUnfocus: string;
186
+ WindowWillUpdate: string;
187
+ WindowWillUpdateAlpha: string;
188
+ WindowWillUpdateCollectionBehavior: string;
189
+ WindowWillUpdateCollectionProperties: string;
190
+ WindowWillUpdateShadow: string;
191
+ WindowWillUpdateTitle: string;
192
+ WindowWillUpdateToolbar: string;
193
+ WindowWillUpdateVisibility: string;
194
+ WindowWillUseStandardFrame: string;
195
+ MenuWillOpen: string;
196
+ MenuDidOpen: string;
197
+ MenuDidClose: string;
198
+ MenuWillSendAction: string;
199
+ MenuDidSendAction: string;
200
+ MenuWillHighlightItem: string;
201
+ MenuDidHighlightItem: string;
202
+ MenuWillDisplayItem: string;
203
+ MenuDidDisplayItem: string;
204
+ MenuWillAddItem: string;
205
+ MenuDidAddItem: string;
206
+ MenuWillRemoveItem: string;
207
+ MenuDidRemoveItem: string;
208
+ MenuWillBeginTracking: string;
209
+ MenuDidBeginTracking: string;
210
+ MenuWillEndTracking: string;
211
+ MenuDidEndTracking: string;
212
+ MenuWillUpdate: string;
213
+ MenuDidUpdate: string;
214
+ MenuWillPopUp: string;
215
+ MenuDidPopUp: string;
216
+ MenuWillSendActionToItem: string;
217
+ MenuDidSendActionToItem: string;
218
+ WebViewDidStartProvisionalNavigation: string;
219
+ WebViewDidReceiveServerRedirectForProvisionalNavigation: string;
220
+ WebViewDidFinishNavigation: string;
221
+ WebViewDidCommitNavigation: string;
222
+ WindowFileDraggingEntered: string;
223
+ WindowFileDraggingPerformed: string;
224
+ WindowFileDraggingExited: string;
225
+ };
226
+ Linux: {
227
+ SystemThemeChanged: string;
228
+ };
229
+ Common: {
230
+ ApplicationStarted: string;
231
+ WindowMaximise: string;
232
+ WindowUnMaximise: string;
233
+ WindowFullscreen: string;
234
+ WindowUnFullscreen: string;
235
+ WindowRestore: string;
236
+ WindowMinimise: string;
237
+ WindowUnMinimise: string;
238
+ WindowClosing: string;
239
+ WindowZoom: string;
240
+ WindowZoomIn: string;
241
+ WindowZoomOut: string;
242
+ WindowZoomReset: string;
243
+ WindowFocus: string;
244
+ WindowLostFocus: string;
245
+ WindowShow: string;
246
+ WindowHide: string;
247
+ WindowDPIChanged: string;
248
+ WindowFilesDropped: string;
249
+ ThemeChanged: string;
250
+ };
251
+ };
49
252
  export class WailsEvent {
50
253
  constructor(name: any, data?: any);
51
254
  name: any;
package/types/index.d.ts CHANGED
@@ -1,49 +1,12 @@
1
- export namespace Events {
2
- export { On };
3
- export { Off };
4
- export { OnMultiple };
5
- export { WailsEvent };
6
- export { OffAll };
7
- export { Emit };
8
- export { Once };
9
- }
10
- export namespace Call {
11
- export { Plugin };
12
- export { ByID };
13
- export { ByName };
14
- }
15
- export namespace Dialogs {
16
- export { Info };
17
- export { Error };
18
- export { OpenFile };
19
- export { Question };
20
- export { Warning };
21
- export { SaveFile };
22
- }
23
- import * as Application from "./application";
24
- import * as Browser from "./browser";
25
- import * as Clipboard from "./clipboard";
26
- import * as ContextMenu from "./contextmenu";
27
- import * as Flags from "./flags";
28
- import * as Runtime from "./runtime";
29
- import * as Screens from "./screens";
30
- import * as System from "./system";
31
- import * as Window from "./window";
32
- import * as WML from "./wml";
33
- import { On } from './events';
34
- import { Off } from './events';
35
- import { OnMultiple } from './events';
36
- import { WailsEvent } from './events';
37
- import { OffAll } from './events';
38
- import { Emit } from './events';
39
- import { Once } from './events';
40
- import { Plugin } from "./calls";
41
- import { ByID } from "./calls";
42
- import { ByName } from "./calls";
43
- import { Info } from "./dialogs";
44
- import { Error } from "./dialogs";
45
- import { OpenFile } from "./dialogs";
46
- import { Question } from "./dialogs";
47
- import { Warning } from "./dialogs";
48
- import { SaveFile } from "./dialogs";
49
- export { Application, Browser, Clipboard, ContextMenu, Flags, Runtime, Screens, System, Window, WML };
1
+ import * as Application from "./application";
2
+ import * as Browser from "./browser";
3
+ import * as Call from "./calls";
4
+ import * as Clipboard from "./clipboard";
5
+ import * as Dialogs from "./dialogs";
6
+ import * as Events from "./events";
7
+ import * as Flags from "./flags";
8
+ import * as Screens from "./screens";
9
+ import * as System from "./system";
10
+ import * as Window from "./window";
11
+ import * as WML from './wml';
12
+ export { Application, Browser, Call, Clipboard, Dialogs, Events, Flags, Screens, System, Window, WML };
@@ -14,4 +14,41 @@ export function GetPrimary(): Promise<Screen>;
14
14
  * @returns {Promise<Screen>} A promise that resolves with the current active screen.
15
15
  */
16
16
  export function GetCurrent(): Promise<Screen>;
17
- export type Screen = any;
17
+ export type Screen = {
18
+ /**
19
+ * - Unique identifier for the screen.
20
+ */
21
+ Id: string;
22
+ /**
23
+ * - Human readable name of the screen.
24
+ */
25
+ Name: string;
26
+ /**
27
+ * - The resolution scale of the screen. 1 = standard resolution, 2 = high (Retina), etc.
28
+ */
29
+ Scale: number;
30
+ /**
31
+ * - Contains the X and Y coordinates of the screen's position.
32
+ */
33
+ Position: Position;
34
+ /**
35
+ * - Contains the width and height of the screen.
36
+ */
37
+ Size: Size;
38
+ /**
39
+ * - Contains the bounds of the screen in terms of X, Y, Width, and Height.
40
+ */
41
+ Bounds: Rect;
42
+ /**
43
+ * - Contains the area of the screen that is actually usable (excluding taskbar and other system UI).
44
+ */
45
+ WorkArea: Rect;
46
+ /**
47
+ * - True if this is the primary monitor selected by the user in the operating system.
48
+ */
49
+ IsPrimary: boolean;
50
+ /**
51
+ * - The rotation of the screen.
52
+ */
53
+ Rotation: Rotation;
54
+ };
package/types/window.d.ts CHANGED
@@ -6,12 +6,177 @@
6
6
  */
7
7
  export function Get(windowName: string): any;
8
8
  /**
9
- * Returns a map of all methods in the current window.
10
- * @returns {Map} - A map of window methods.
11
- */
12
- export function WindowMethods(targetWindow: any): Map<any, any>;
13
- declare const _default: any;
14
- export default _default;
15
- export type Size = any;
16
- export type Position = any;
17
- export type Screen = any;
9
+ * Centers the window on the screen.
10
+ */
11
+ export function Center(): void;
12
+ /**
13
+ * Sets the title of the window.
14
+ * @param {string} title - The title to set.
15
+ */
16
+ export function SetTitle(title: string): void;
17
+ /**
18
+ * Sets the window to fullscreen.
19
+ */
20
+ export function Fullscreen(): void;
21
+ /**
22
+ * Sets the size of the window.
23
+ * @param {number} width - The width of the window.
24
+ * @param {number} height - The height of the window.
25
+ */
26
+ export function SetSize(width: number, height: number): void;
27
+ /**
28
+ * Gets the size of the window.
29
+ */
30
+ export function Size(): any;
31
+ export type Size = {
32
+ /**
33
+ * - The width.
34
+ */
35
+ X: number;
36
+ /**
37
+ * - The height.
38
+ */
39
+ Y: number;
40
+ };
41
+ /**
42
+ * Sets the maximum size of the window.
43
+ * @param {number} width - The maximum width of the window.
44
+ * @param {number} height - The maximum height of the window.
45
+ */
46
+ export function SetMaxSize(width: number, height: number): void;
47
+ /**
48
+ * Sets the minimum size of the window.
49
+ * @param {number} width - The minimum width of the window.
50
+ * @param {number} height - The minimum height of the window.
51
+ */
52
+ export function SetMinSize(width: number, height: number): void;
53
+ /**
54
+ * Sets the window to always be on top.
55
+ * @param {boolean} onTop - Whether the window should always be on top.
56
+ */
57
+ export function SetAlwaysOnTop(onTop: boolean): void;
58
+ /**
59
+ * Sets the relative position of the window.
60
+ * @param {number} x - The x-coordinate of the window's position.
61
+ * @param {number} y - The y-coordinate of the window's position.
62
+ */
63
+ export function SetRelativePosition(x: number, y: number): void;
64
+ /**
65
+ * Gets the relative position of the window.
66
+ */
67
+ export function RelativePosition(): any;
68
+ /**
69
+ * Gets the screen that the window is on.
70
+ */
71
+ export function Screen(): any;
72
+ export type Screen = import("./screens").Screen;
73
+ /**
74
+ * Hides the window.
75
+ */
76
+ export function Hide(): void;
77
+ /**
78
+ * Maximises the window.
79
+ */
80
+ export function Maximise(): void;
81
+ /**
82
+ * Un-maximises the window.
83
+ */
84
+ export function UnMaximise(): void;
85
+ /**
86
+ * Toggles the maximisation of the window.
87
+ */
88
+ export function ToggleMaximise(): void;
89
+ /**
90
+ * Minimises the window.
91
+ */
92
+ export function Minimise(): void;
93
+ /**
94
+ * Un-minimises the window.
95
+ */
96
+ export function UnMinimise(): void;
97
+ /**
98
+ * Restores the window.
99
+ */
100
+ export function Restore(): void;
101
+ /**
102
+ * Shows the window.
103
+ */
104
+ export function Show(): void;
105
+ /**
106
+ * Closes the window.
107
+ */
108
+ export function Close(): void;
109
+ /**
110
+ * Sets the background colour of the window.
111
+ * @param {number} r - The red component of the colour.
112
+ * @param {number} g - The green component of the colour.
113
+ * @param {number} b - The blue component of the colour.
114
+ * @param {number} a - The alpha component of the colour.
115
+ */
116
+ export function SetBackgroundColour(r: number, g: number, b: number, a: number): void;
117
+ /**
118
+ * Sets whether the window is resizable.
119
+ * @param {boolean} resizable - Whether the window should be resizable.
120
+ */
121
+ export function SetResizable(resizable: boolean): void;
122
+ /**
123
+ * Gets the width of the window.
124
+ */
125
+ export function Width(): any;
126
+ /**
127
+ * Gets the height of the window.
128
+ */
129
+ export function Height(): any;
130
+ /**
131
+ * Zooms in the window.
132
+ */
133
+ export function ZoomIn(): void;
134
+ /**
135
+ * Zooms out the window.
136
+ */
137
+ export function ZoomOut(): void;
138
+ /**
139
+ * Resets the zoom of the window.
140
+ */
141
+ export function ZoomReset(): void;
142
+ /**
143
+ * Gets the zoom level of the window.
144
+ */
145
+ export function GetZoomLevel(): any;
146
+ /**
147
+ * Sets the zoom level of the window.
148
+ * @param {number} zoomLevel - The zoom level to set.
149
+ */
150
+ export function SetZoomLevel(zoomLevel: number): void;
151
+ export type Position = {
152
+ /**
153
+ * - The X coordinate.
154
+ */
155
+ X: number;
156
+ /**
157
+ * - The Y coordinate.
158
+ */
159
+ Y: number;
160
+ };
161
+ export type Rect = {
162
+ /**
163
+ * - The X coordinate of the top-left corner.
164
+ */
165
+ X: number;
166
+ /**
167
+ * - The Y coordinate of the top-left corner.
168
+ */
169
+ Y: number;
170
+ /**
171
+ * - The width of the rectangle.
172
+ */
173
+ Width: number;
174
+ /**
175
+ * - The height of the rectangle.
176
+ */
177
+ Height: number;
178
+ };
179
+ /**
180
+ * The rotation of the screen. Can be one of 'Zero', 'Ninety', 'OneEighty', 'TwoSeventy'.
181
+ */
182
+ export type Rotation = ('Zero' | 'Ninety' | 'OneEighty' | 'TwoSeventy');