@wailsio/runtime 3.0.0-alpha.4 → 3.0.0-alpha.40

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.
Files changed (119) hide show
  1. package/docs/.nojekyll +1 -0
  2. package/docs/assets/highlight.css +22 -0
  3. package/docs/assets/icons.js +15 -0
  4. package/docs/assets/icons.svg +1 -0
  5. package/docs/assets/main.js +59 -0
  6. package/docs/assets/navigation.js +1 -0
  7. package/docs/assets/search.js +1 -0
  8. package/docs/assets/style.css +1415 -0
  9. package/docs/classes/Events.WailsEvent.html +4 -0
  10. package/docs/functions/Application.Hide.html +2 -0
  11. package/docs/functions/Application.Quit.html +2 -0
  12. package/docs/functions/Application.Show.html +2 -0
  13. package/docs/functions/Browser.OpenURL.html +3 -0
  14. package/docs/functions/Call.ByID.html +7 -0
  15. package/docs/functions/Call.ByName.html +6 -0
  16. package/docs/functions/Call.Call.html +6 -0
  17. package/docs/functions/Call.Plugin.html +8 -0
  18. package/docs/functions/Clipboard.SetText.html +6 -0
  19. package/docs/functions/Clipboard.Text.html +3 -0
  20. package/docs/functions/Dialogs.Error.html +5 -0
  21. package/docs/functions/Dialogs.Info.html +5 -0
  22. package/docs/functions/Dialogs.OpenFile.html +3 -0
  23. package/docs/functions/Dialogs.Question.html +5 -0
  24. package/docs/functions/Dialogs.SaveFile.html +3 -0
  25. package/docs/functions/Dialogs.Warning.html +5 -0
  26. package/docs/functions/Events.Emit.html +6 -0
  27. package/docs/functions/Events.Off.html +4 -0
  28. package/docs/functions/Events.OffAll.html +3 -0
  29. package/docs/functions/Events.On.html +7 -0
  30. package/docs/functions/Events.OnMultiple.html +8 -0
  31. package/docs/functions/Events.Once.html +7 -0
  32. package/docs/functions/Events.setup.html +1 -0
  33. package/docs/functions/Flags.GetFlag.html +6 -0
  34. package/docs/functions/Screens.GetAll.html +3 -0
  35. package/docs/functions/Screens.GetCurrent.html +3 -0
  36. package/docs/functions/Screens.GetPrimary.html +3 -0
  37. package/docs/functions/System.Capabilities.html +4 -0
  38. package/docs/functions/System.Environment.html +5 -0
  39. package/docs/functions/System.IsAMD64.html +3 -0
  40. package/docs/functions/System.IsARM.html +3 -0
  41. package/docs/functions/System.IsARM64.html +5 -0
  42. package/docs/functions/System.IsDarkMode.html +5 -0
  43. package/docs/functions/System.IsDebug.html +1 -0
  44. package/docs/functions/System.IsLinux.html +3 -0
  45. package/docs/functions/System.IsMac.html +3 -0
  46. package/docs/functions/System.IsWindows.html +3 -0
  47. package/docs/functions/System.invoke.html +1 -0
  48. package/docs/functions/WML.Enable.html +2 -0
  49. package/docs/functions/WML.Reload.html +2 -0
  50. package/docs/index.html +5 -0
  51. package/docs/interfaces/Dialogs.Button.html +7 -0
  52. package/docs/interfaces/Dialogs.FileFilter.html +5 -0
  53. package/docs/interfaces/Dialogs.MessageDialogOptions.html +9 -0
  54. package/docs/interfaces/Dialogs.OpenFileDialogOptions.html +33 -0
  55. package/docs/interfaces/Dialogs.SaveFileDialogOptions.html +35 -0
  56. package/docs/interfaces/Screens.Position.html +5 -0
  57. package/docs/interfaces/Screens.Rect.html +9 -0
  58. package/docs/interfaces/Screens.Screen.html +19 -0
  59. package/docs/interfaces/Screens.Size.html +5 -0
  60. package/docs/interfaces/System.EnvironmentInfo.html +11 -0
  61. package/docs/interfaces/System.OSInfo.html +9 -0
  62. package/docs/modules/Application.html +4 -0
  63. package/docs/modules/Browser.html +2 -0
  64. package/docs/modules/Call.html +5 -0
  65. package/docs/modules/Clipboard.html +3 -0
  66. package/docs/modules/Dialogs.html +12 -0
  67. package/docs/modules/Events.html +10 -0
  68. package/docs/modules/Flags.html +2 -0
  69. package/docs/modules/Screens.html +8 -0
  70. package/docs/modules/System.html +14 -0
  71. package/docs/modules/WML.html +3 -0
  72. package/docs/modules.html +12 -0
  73. package/docs/variables/Events.Types.html +1 -0
  74. package/docs/variables/Window.html +2 -0
  75. package/package.json +38 -17
  76. package/{application.js → src/application.js} +46 -46
  77. package/{browser.js → src/browser.js} +24 -24
  78. package/src/calls.js +174 -0
  79. package/{clipboard.js → src/clipboard.js} +35 -35
  80. package/{contextmenu.js → src/contextmenu.js} +97 -96
  81. package/src/create.js +125 -0
  82. package/src/dialogs.js +200 -0
  83. package/{drag.js → src/drag.js} +119 -125
  84. package/src/event_types.js +217 -0
  85. package/{events.js → src/events.js} +140 -134
  86. package/src/flags.js +25 -0
  87. package/src/index.js +60 -0
  88. package/src/nanoid.js +42 -0
  89. package/{runtime.js → src/runtime.js} +123 -122
  90. package/src/screens.js +71 -0
  91. package/{system.js → src/system.js} +143 -118
  92. package/src/utils.js +86 -0
  93. package/src/window.js +638 -0
  94. package/src/wml.js +250 -0
  95. package/tsconfig.json +20 -0
  96. package/types/application.d.ts +19 -0
  97. package/types/browser.d.ts +6 -0
  98. package/types/calls.d.ts +33 -0
  99. package/types/clipboard.d.ts +12 -0
  100. package/types/create.d.ts +45 -0
  101. package/types/dialogs.d.ts +184 -0
  102. package/types/event_types.d.ts +217 -0
  103. package/types/events.d.ts +239 -0
  104. package/types/flags.d.ts +7 -0
  105. package/types/index.d.ts +13 -0
  106. package/types/runtime.d.ts +30 -0
  107. package/types/screens.d.ts +94 -0
  108. package/types/system.d.ts +112 -0
  109. package/types/utils.d.ts +14 -0
  110. package/types/window.d.ts +407 -0
  111. package/types/wml.d.ts +12 -0
  112. package/calls.js +0 -123
  113. package/dialogs.js +0 -138
  114. package/flags.js +0 -63
  115. package/index.js +0 -56
  116. package/screens.js +0 -45
  117. package/types.d.ts +0 -130
  118. package/window.js +0 -122
  119. package/wml.js +0 -148
@@ -0,0 +1,217 @@
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
+ WindowClosing: string,
23
+ WindowSetFocus: string,
24
+ WindowKillFocus: string,
25
+ WindowDragDrop: string,
26
+ WindowDragEnter: string,
27
+ WindowDragLeave: string,
28
+ WindowDragOver: string,
29
+ WindowDidMove: string,
30
+ WindowDidResize: string,
31
+ WindowShow: string,
32
+ WindowHide: string,
33
+ WindowStartMove: string,
34
+ WindowEndMove: string,
35
+ WindowStartResize: string,
36
+ WindowEndResize: string,
37
+ WindowKeyDown: string,
38
+ WindowKeyUp: string,
39
+ WindowZOrderChanged: string,
40
+ WindowPaint: string,
41
+ WindowBackgroundErase: string,
42
+ WindowNonClientHit: string,
43
+ WindowNonClientMouseDown: string,
44
+ WindowNonClientMouseUp: string,
45
+ WindowNonClientMouseMove: string,
46
+ WindowNonClientMouseLeave: string,
47
+ WindowDPIChanged: string,
48
+ },
49
+ Mac: {
50
+ ApplicationDidBecomeActive: string,
51
+ ApplicationDidChangeBackingProperties: string,
52
+ ApplicationDidChangeEffectiveAppearance: string,
53
+ ApplicationDidChangeIcon: string,
54
+ ApplicationDidChangeOcclusionState: string,
55
+ ApplicationDidChangeScreenParameters: string,
56
+ ApplicationDidChangeStatusBarFrame: string,
57
+ ApplicationDidChangeStatusBarOrientation: string,
58
+ ApplicationDidFinishLaunching: string,
59
+ ApplicationDidHide: string,
60
+ ApplicationDidResignActiveNotification: string,
61
+ ApplicationDidUnhide: string,
62
+ ApplicationDidUpdate: string,
63
+ ApplicationWillBecomeActive: string,
64
+ ApplicationWillFinishLaunching: string,
65
+ ApplicationWillHide: string,
66
+ ApplicationWillResignActive: string,
67
+ ApplicationWillTerminate: string,
68
+ ApplicationWillUnhide: string,
69
+ ApplicationWillUpdate: string,
70
+ ApplicationDidChangeTheme: string,
71
+ ApplicationShouldHandleReopen: string,
72
+ WindowDidBecomeKey: string,
73
+ WindowDidBecomeMain: string,
74
+ WindowDidBeginSheet: string,
75
+ WindowDidChangeAlpha: string,
76
+ WindowDidChangeBackingLocation: string,
77
+ WindowDidChangeBackingProperties: string,
78
+ WindowDidChangeCollectionBehavior: string,
79
+ WindowDidChangeEffectiveAppearance: string,
80
+ WindowDidChangeOcclusionState: string,
81
+ WindowDidChangeOrderingMode: string,
82
+ WindowDidChangeScreen: string,
83
+ WindowDidChangeScreenParameters: string,
84
+ WindowDidChangeScreenProfile: string,
85
+ WindowDidChangeScreenSpace: string,
86
+ WindowDidChangeScreenSpaceProperties: string,
87
+ WindowDidChangeSharingType: string,
88
+ WindowDidChangeSpace: string,
89
+ WindowDidChangeSpaceOrderingMode: string,
90
+ WindowDidChangeTitle: string,
91
+ WindowDidChangeToolbar: string,
92
+ WindowDidDeminiaturize: string,
93
+ WindowDidEndSheet: string,
94
+ WindowDidEnterFullScreen: string,
95
+ WindowMaximise: string,
96
+ WindowUnMaximise: string,
97
+ WindowDidZoom: string,
98
+ WindowZoomIn: string,
99
+ WindowZoomOut: string,
100
+ WindowZoomReset: string,
101
+ WindowDidEnterVersionBrowser: string,
102
+ WindowDidExitFullScreen: string,
103
+ WindowDidExitVersionBrowser: string,
104
+ WindowDidExpose: string,
105
+ WindowDidFocus: string,
106
+ WindowDidMiniaturize: string,
107
+ WindowDidMove: string,
108
+ WindowDidOrderOffScreen: string,
109
+ WindowDidOrderOnScreen: string,
110
+ WindowDidResignKey: string,
111
+ WindowDidResignMain: string,
112
+ WindowDidResize: string,
113
+ WindowDidUpdate: string,
114
+ WindowDidUpdateAlpha: string,
115
+ WindowDidUpdateCollectionBehavior: string,
116
+ WindowDidUpdateCollectionProperties: string,
117
+ WindowDidUpdateShadow: string,
118
+ WindowDidUpdateTitle: string,
119
+ WindowDidUpdateToolbar: string,
120
+ WindowShouldClose: string,
121
+ WindowWillBecomeKey: string,
122
+ WindowWillBecomeMain: string,
123
+ WindowWillBeginSheet: string,
124
+ WindowWillChangeOrderingMode: string,
125
+ WindowWillClose: string,
126
+ WindowWillDeminiaturize: string,
127
+ WindowWillEnterFullScreen: string,
128
+ WindowWillEnterVersionBrowser: string,
129
+ WindowWillExitFullScreen: string,
130
+ WindowWillExitVersionBrowser: string,
131
+ WindowWillFocus: string,
132
+ WindowWillMiniaturize: string,
133
+ WindowWillMove: string,
134
+ WindowWillOrderOffScreen: string,
135
+ WindowWillOrderOnScreen: string,
136
+ WindowWillResignMain: string,
137
+ WindowWillResize: string,
138
+ WindowWillUnfocus: string,
139
+ WindowWillUpdate: string,
140
+ WindowWillUpdateAlpha: string,
141
+ WindowWillUpdateCollectionBehavior: string,
142
+ WindowWillUpdateCollectionProperties: string,
143
+ WindowWillUpdateShadow: string,
144
+ WindowWillUpdateTitle: string,
145
+ WindowWillUpdateToolbar: string,
146
+ WindowWillUpdateVisibility: string,
147
+ WindowWillUseStandardFrame: string,
148
+ MenuWillOpen: string,
149
+ MenuDidOpen: string,
150
+ MenuDidClose: string,
151
+ MenuWillSendAction: string,
152
+ MenuDidSendAction: string,
153
+ MenuWillHighlightItem: string,
154
+ MenuDidHighlightItem: string,
155
+ MenuWillDisplayItem: string,
156
+ MenuDidDisplayItem: string,
157
+ MenuWillAddItem: string,
158
+ MenuDidAddItem: string,
159
+ MenuWillRemoveItem: string,
160
+ MenuDidRemoveItem: string,
161
+ MenuWillBeginTracking: string,
162
+ MenuDidBeginTracking: string,
163
+ MenuWillEndTracking: string,
164
+ MenuDidEndTracking: string,
165
+ MenuWillUpdate: string,
166
+ MenuDidUpdate: string,
167
+ MenuWillPopUp: string,
168
+ MenuDidPopUp: string,
169
+ MenuWillSendActionToItem: string,
170
+ MenuDidSendActionToItem: string,
171
+ WebViewDidStartProvisionalNavigation: string,
172
+ WebViewDidReceiveServerRedirectForProvisionalNavigation: string,
173
+ WebViewDidFinishNavigation: string,
174
+ WebViewDidCommitNavigation: string,
175
+ WindowFileDraggingEntered: string,
176
+ WindowFileDraggingPerformed: string,
177
+ WindowFileDraggingExited: string,
178
+ WindowShow: string,
179
+ WindowHide: string,
180
+ },
181
+ Linux: {
182
+ SystemThemeChanged: string,
183
+ WindowLoadChanged: string,
184
+ WindowDeleteEvent: string,
185
+ WindowDidMove: string,
186
+ WindowDidResize: string,
187
+ WindowFocusIn: string,
188
+ WindowFocusOut: string,
189
+ ApplicationStartup: string,
190
+ },
191
+ Common: {
192
+ ApplicationStarted: string,
193
+ WindowMaximise: string,
194
+ WindowUnMaximise: string,
195
+ WindowFullscreen: string,
196
+ WindowUnFullscreen: string,
197
+ WindowRestore: string,
198
+ WindowMinimise: string,
199
+ WindowUnMinimise: string,
200
+ WindowClosing: string,
201
+ WindowZoom: string,
202
+ WindowZoomIn: string,
203
+ WindowZoomOut: string,
204
+ WindowZoomReset: string,
205
+ WindowFocus: string,
206
+ WindowLostFocus: string,
207
+ WindowShow: string,
208
+ WindowHide: string,
209
+ WindowDPIChanged: string,
210
+ WindowFilesDropped: string,
211
+ WindowRuntimeReady: string,
212
+ ThemeChanged: string,
213
+ WindowDidMove: string,
214
+ WindowDidResize: string,
215
+ ApplicationOpenedWithFile: string,
216
+ },
217
+ };
@@ -0,0 +1,239 @@
1
+ export function setup(): void;
2
+ /**
3
+ * Register a callback function to be called multiple times for a specific event.
4
+ *
5
+ * @param {string} eventName - The name of the event to register the callback for.
6
+ * @param {function} callback - The callback function to be called when the event is triggered.
7
+ * @param {number} maxCallbacks - The maximum number of times the callback can be called for the event. Once the maximum number is reached, the callback will no longer be called.
8
+ *
9
+ @return {function} - A function that, when called, will unregister the callback from the event.
10
+ */
11
+ export function OnMultiple(eventName: string, callback: Function, maxCallbacks: number): Function;
12
+ /**
13
+ * Registers a callback function to be executed when the specified event occurs.
14
+ *
15
+ * @param {string} eventName - The name of the event.
16
+ * @param {function} callback - The callback function to be executed. It takes no parameters.
17
+ * @return {function} - A function that, when called, will unregister the callback from the event. */
18
+ export function On(eventName: string, callback: Function): Function;
19
+ /**
20
+ * Registers a callback function to be executed only once for the specified event.
21
+ *
22
+ * @param {string} eventName - The name of the event.
23
+ * @param {function} callback - The function to be executed when the event occurs.
24
+ * @return {function} - A function that, when called, will unregister the callback from the event.
25
+ */
26
+ export function Once(eventName: string, callback: Function): Function;
27
+ /**
28
+ * Removes event listeners for the specified event names.
29
+ *
30
+ * @param {string} eventName - The name of the event to remove listeners for.
31
+ * @param {...string} additionalEventNames - Additional event names to remove listeners for.
32
+ * @return {undefined}
33
+ */
34
+ export function Off(eventName: string, ...additionalEventNames: string[]): undefined;
35
+ /**
36
+ * Removes all event listeners.
37
+ *
38
+ * @function OffAll
39
+ * @returns {void}
40
+ */
41
+ export function OffAll(): void;
42
+ /**
43
+ * Emits an event using the given event name.
44
+ *
45
+ * @param {WailsEvent} event - The name of the event to emit.
46
+ * @returns {any} - The result of the emitted event.
47
+ */
48
+ export function Emit(event: WailsEvent): any;
49
+ export const Types: {
50
+ Windows: {
51
+ SystemThemeChanged: string;
52
+ APMPowerStatusChange: string;
53
+ APMSuspend: string;
54
+ APMResumeAutomatic: string;
55
+ APMResumeSuspend: string;
56
+ APMPowerSettingChange: string;
57
+ ApplicationStarted: string;
58
+ WebViewNavigationCompleted: string;
59
+ WindowInactive: string;
60
+ WindowActive: string;
61
+ WindowClickActive: string;
62
+ WindowMaximise: string;
63
+ WindowUnMaximise: string;
64
+ WindowFullscreen: string;
65
+ WindowUnFullscreen: string;
66
+ WindowRestore: string;
67
+ WindowMinimise: string;
68
+ WindowUnMinimise: string;
69
+ WindowClose: string;
70
+ WindowSetFocus: string;
71
+ WindowKillFocus: string;
72
+ WindowDragDrop: string;
73
+ WindowDragEnter: string;
74
+ WindowDragLeave: string;
75
+ WindowDragOver: string;
76
+ };
77
+ Mac: {
78
+ ApplicationDidBecomeActive: string;
79
+ ApplicationDidChangeBackingProperties: string;
80
+ ApplicationDidChangeEffectiveAppearance: string;
81
+ ApplicationDidChangeIcon: string;
82
+ ApplicationDidChangeOcclusionState: string;
83
+ ApplicationDidChangeScreenParameters: string;
84
+ ApplicationDidChangeStatusBarFrame: string;
85
+ ApplicationDidChangeStatusBarOrientation: string;
86
+ ApplicationDidFinishLaunching: string;
87
+ ApplicationDidHide: string;
88
+ ApplicationDidResignActiveNotification: string;
89
+ ApplicationDidUnhide: string;
90
+ ApplicationDidUpdate: string;
91
+ ApplicationWillBecomeActive: string;
92
+ ApplicationWillFinishLaunching: string;
93
+ ApplicationWillHide: string;
94
+ ApplicationWillResignActive: string;
95
+ ApplicationWillTerminate: string;
96
+ ApplicationWillUnhide: string;
97
+ ApplicationWillUpdate: string;
98
+ ApplicationDidChangeTheme: string;
99
+ ApplicationShouldHandleReopen: string;
100
+ WindowDidBecomeKey: string;
101
+ WindowDidBecomeMain: string;
102
+ WindowDidBeginSheet: string;
103
+ WindowDidChangeAlpha: string;
104
+ WindowDidChangeBackingLocation: string;
105
+ WindowDidChangeBackingProperties: string;
106
+ WindowDidChangeCollectionBehavior: string;
107
+ WindowDidChangeEffectiveAppearance: string;
108
+ WindowDidChangeOcclusionState: string;
109
+ WindowDidChangeOrderingMode: string;
110
+ WindowDidChangeScreen: string;
111
+ WindowDidChangeScreenParameters: string;
112
+ WindowDidChangeScreenProfile: string;
113
+ WindowDidChangeScreenSpace: string;
114
+ WindowDidChangeScreenSpaceProperties: string;
115
+ WindowDidChangeSharingType: string;
116
+ WindowDidChangeSpace: string;
117
+ WindowDidChangeSpaceOrderingMode: string;
118
+ WindowDidChangeTitle: string;
119
+ WindowDidChangeToolbar: string;
120
+ WindowDidChangeVisibility: string;
121
+ WindowDidDeminiaturize: string;
122
+ WindowDidEndSheet: string;
123
+ WindowDidEnterFullScreen: string;
124
+ WindowDidEnterVersionBrowser: string;
125
+ WindowDidExitFullScreen: string;
126
+ WindowDidExitVersionBrowser: string;
127
+ WindowDidExpose: string;
128
+ WindowDidFocus: string;
129
+ WindowDidMiniaturize: string;
130
+ WindowDidMove: string;
131
+ WindowDidOrderOffScreen: string;
132
+ WindowDidOrderOnScreen: string;
133
+ WindowDidResignKey: string;
134
+ WindowDidResignMain: string;
135
+ WindowDidResize: string;
136
+ WindowDidUpdate: string;
137
+ WindowDidUpdateAlpha: string;
138
+ WindowDidUpdateCollectionBehavior: string;
139
+ WindowDidUpdateCollectionProperties: string;
140
+ WindowDidUpdateShadow: string;
141
+ WindowDidUpdateTitle: string;
142
+ WindowDidUpdateToolbar: string;
143
+ WindowDidUpdateVisibility: string;
144
+ WindowShouldClose: string;
145
+ WindowWillBecomeKey: string;
146
+ WindowWillBecomeMain: string;
147
+ WindowWillBeginSheet: string;
148
+ WindowWillChangeOrderingMode: string;
149
+ WindowWillClose: string;
150
+ WindowWillDeminiaturize: string;
151
+ WindowWillEnterFullScreen: string;
152
+ WindowWillEnterVersionBrowser: string;
153
+ WindowWillExitFullScreen: string;
154
+ WindowWillExitVersionBrowser: string;
155
+ WindowWillFocus: string;
156
+ WindowWillMiniaturize: string;
157
+ WindowWillMove: string;
158
+ WindowWillOrderOffScreen: string;
159
+ WindowWillOrderOnScreen: string;
160
+ WindowWillResignMain: string;
161
+ WindowWillResize: string;
162
+ WindowWillUnfocus: string;
163
+ WindowWillUpdate: string;
164
+ WindowWillUpdateAlpha: string;
165
+ WindowWillUpdateCollectionBehavior: string;
166
+ WindowWillUpdateCollectionProperties: string;
167
+ WindowWillUpdateShadow: string;
168
+ WindowWillUpdateTitle: string;
169
+ WindowWillUpdateToolbar: string;
170
+ WindowWillUpdateVisibility: string;
171
+ WindowWillUseStandardFrame: string;
172
+ MenuWillOpen: string;
173
+ MenuDidOpen: string;
174
+ MenuDidClose: string;
175
+ MenuWillSendAction: string;
176
+ MenuDidSendAction: string;
177
+ MenuWillHighlightItem: string;
178
+ MenuDidHighlightItem: string;
179
+ MenuWillDisplayItem: string;
180
+ MenuDidDisplayItem: string;
181
+ MenuWillAddItem: string;
182
+ MenuDidAddItem: string;
183
+ MenuWillRemoveItem: string;
184
+ MenuDidRemoveItem: string;
185
+ MenuWillBeginTracking: string;
186
+ MenuDidBeginTracking: string;
187
+ MenuWillEndTracking: string;
188
+ MenuDidEndTracking: string;
189
+ MenuWillUpdate: string;
190
+ MenuDidUpdate: string;
191
+ MenuWillPopUp: string;
192
+ MenuDidPopUp: string;
193
+ MenuWillSendActionToItem: string;
194
+ MenuDidSendActionToItem: string;
195
+ WebViewDidStartProvisionalNavigation: string;
196
+ WebViewDidReceiveServerRedirectForProvisionalNavigation: string;
197
+ WebViewDidFinishNavigation: string;
198
+ WebViewDidCommitNavigation: string;
199
+ WindowFileDraggingEntered: string;
200
+ WindowFileDraggingPerformed: string;
201
+ WindowFileDraggingExited: string;
202
+ };
203
+ Linux: {
204
+ SystemThemeChanged: string;
205
+ WindowLoadChanged: string;
206
+ WindowDeleteEvent: string;
207
+ WindowFocusIn: string;
208
+ WindowFocusOut: string;
209
+ ApplicationStartup: string;
210
+ };
211
+ Common: {
212
+ ApplicationStarted: string;
213
+ WindowMaximise: string;
214
+ WindowUnMaximise: string;
215
+ WindowFullscreen: string;
216
+ WindowUnFullscreen: string;
217
+ WindowRestore: string;
218
+ WindowMinimise: string;
219
+ WindowUnMinimise: string;
220
+ WindowClosing: string;
221
+ WindowZoom: string;
222
+ WindowZoomIn: string;
223
+ WindowZoomOut: string;
224
+ WindowZoomReset: string;
225
+ WindowFocus: string;
226
+ WindowLostFocus: string;
227
+ WindowShow: string;
228
+ WindowHide: string;
229
+ WindowDPIChanged: string;
230
+ WindowFilesDropped: string;
231
+ WindowRuntimeReady: string;
232
+ ThemeChanged: string;
233
+ };
234
+ };
235
+ export class WailsEvent {
236
+ constructor(name: any, data?: any);
237
+ name: any;
238
+ data: any;
239
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Retrieves the value associated with the specified key from the flag map.
3
+ *
4
+ * @param {string} keyString - The key to retrieve the value for.
5
+ * @return {*} - The value associated with the specified key.
6
+ */
7
+ export function GetFlag(keyString: string): any;
@@ -0,0 +1,13 @@
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 Create from "./create";
6
+ import * as Dialogs from "./dialogs";
7
+ import * as Events from "./events";
8
+ import * as Flags from "./flags";
9
+ import * as Screens from "./screens";
10
+ import * as System from "./system";
11
+ import Window from "./window";
12
+ import * as WML from "./wml";
13
+ export { Application, Browser, Call, Clipboard, Create, Dialogs, Events, Flags, Screens, System, Window, WML };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Creates a runtime caller function that invokes a specified method on a given object within a specified window context.
3
+ *
4
+ * @param {Object} object - The object on which the method is to be invoked.
5
+ * @param {string} windowName - The name of the window context in which the method should be called.
6
+ * @returns {Function} A runtime caller function that takes the method name and optionally arguments and invokes the method within the specified window context.
7
+ */
8
+ export function newRuntimeCaller(object: any, windowName: string): Function;
9
+ /**
10
+ * Creates a new runtime caller with specified ID.
11
+ *
12
+ * @param {object} object - The object to invoke the method on.
13
+ * @param {string} windowName - The name of the window.
14
+ * @return {Function} - The new runtime caller function.
15
+ */
16
+ export function newRuntimeCallerWithID(object: object, windowName: string): Function;
17
+ export namespace objectNames {
18
+ let Call: number;
19
+ let Clipboard: number;
20
+ let Application: number;
21
+ let Events: number;
22
+ let ContextMenu: number;
23
+ let Dialog: number;
24
+ let Window: number;
25
+ let Screens: number;
26
+ let System: number;
27
+ let Browser: number;
28
+ let CancelCall: number;
29
+ }
30
+ export let clientId: string;
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Gets all screens.
3
+ * @returns {Promise<Screen[]>} A promise that resolves to an array of Screen objects.
4
+ */
5
+ export function GetAll(): Promise<Screen[]>;
6
+ /**
7
+ * Gets the primary screen.
8
+ * @returns {Promise<Screen>} A promise that resolves to the primary screen.
9
+ */
10
+ export function GetPrimary(): Promise<Screen>;
11
+ /**
12
+ * Gets the current active screen.
13
+ *
14
+ * @returns {Promise<Screen>} A promise that resolves with the current active screen.
15
+ */
16
+ export function GetCurrent(): Promise<Screen>;
17
+ export type Size = {
18
+ /**
19
+ * - The width.
20
+ */
21
+ Width: number;
22
+ /**
23
+ * - The height.
24
+ */
25
+ Height: number;
26
+ };
27
+ export type Rect = {
28
+ /**
29
+ * - The X coordinate of the origin.
30
+ */
31
+ X: number;
32
+ /**
33
+ * - The Y coordinate of the origin.
34
+ */
35
+ Y: number;
36
+ /**
37
+ * - The width of the rectangle.
38
+ */
39
+ Width: number;
40
+ /**
41
+ * - The height of the rectangle.
42
+ */
43
+ Height: number;
44
+ };
45
+ export type Screen = {
46
+ /**
47
+ * - Unique identifier for the screen.
48
+ */
49
+ ID: string;
50
+ /**
51
+ * - Human readable name of the screen.
52
+ */
53
+ Name: string;
54
+ /**
55
+ * - The scale factor of the screen (DPI/96). 1 = standard DPI, 2 = HiDPI (Retina), etc.
56
+ */
57
+ ScaleFactor: number;
58
+ /**
59
+ * - The X coordinate of the screen.
60
+ */
61
+ X: number;
62
+ /**
63
+ * - The Y coordinate of the screen.
64
+ */
65
+ Y: number;
66
+ /**
67
+ * - Contains the width and height of the screen.
68
+ */
69
+ Size: Size;
70
+ /**
71
+ * - Contains the bounds of the screen in terms of X, Y, Width, and Height.
72
+ */
73
+ Bounds: Rect;
74
+ /**
75
+ * - Contains the physical bounds of the screen in terms of X, Y, Width, and Height (before scaling).
76
+ */
77
+ PhysicalBounds: Rect;
78
+ /**
79
+ * - Contains the area of the screen that is actually usable (excluding taskbar and other system UI).
80
+ */
81
+ WorkArea: Rect;
82
+ /**
83
+ * - Contains the physical WorkArea of the screen (before scaling).
84
+ */
85
+ PhysicalWorkArea: Rect;
86
+ /**
87
+ * - True if this is the primary monitor selected by the user in the operating system.
88
+ */
89
+ IsPrimary: boolean;
90
+ /**
91
+ * - The rotation of the screen.
92
+ */
93
+ Rotation: number;
94
+ };