@quickgui/native 0.0.1
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.
- package/README.md +49 -0
- package/binding.d.ts +746 -0
- package/binding.js +834 -0
- package/dialog.ts +176 -0
- package/host.ts +58 -0
- package/index.ts +1603 -0
- package/integrations.ts +258 -0
- package/native-tree.ts +377 -0
- package/package.json +63 -0
- package/protocol.ts +287 -0
- package/quickgui-native.darwin-arm64.node +0 -0
- package/quickgui-native.darwin-x64.node +0 -0
- package/scripts/build.ts +74 -0
- package/single-instance.ts +31 -0
- package/system.ts +1653 -0
- package/tray.ts +399 -0
package/binding.d.ts
ADDED
|
@@ -0,0 +1,746 @@
|
|
|
1
|
+
/* auto-generated by NAPI-RS */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export declare class NativePowerAssertion {
|
|
4
|
+
constructor(kind: string, reason: string)
|
|
5
|
+
get kind(): string
|
|
6
|
+
get reason(): string
|
|
7
|
+
get active(): boolean
|
|
8
|
+
release(): boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare function abortAppHost(message: string): void
|
|
12
|
+
|
|
13
|
+
export declare function addHostedRecentDocument(app: number, path: string): void
|
|
14
|
+
|
|
15
|
+
export declare function addRecentDocument(app: number, path: string): void
|
|
16
|
+
|
|
17
|
+
export declare function applyBatch(app: number, window: number, batch: Buffer): number
|
|
18
|
+
|
|
19
|
+
export declare function applyHostedBatch(app: number, window: number, batch: Buffer): number
|
|
20
|
+
|
|
21
|
+
export declare function checkForUpdate(endpoint: string, options: NativeUpdateClientOptions): Promise<NativeAvailableUpdate | undefined>
|
|
22
|
+
|
|
23
|
+
export declare function clearHostedRecentDocuments(app: number): void
|
|
24
|
+
|
|
25
|
+
export declare function clearRecentDocuments(app: number): void
|
|
26
|
+
|
|
27
|
+
export declare function closeHostedWindow(app: number, window: number): boolean
|
|
28
|
+
|
|
29
|
+
export declare function closeWindow(app: number, window: number): boolean
|
|
30
|
+
|
|
31
|
+
export declare function configureApp(app: number, options: NativeAppOptions): void
|
|
32
|
+
|
|
33
|
+
export declare function configureHostedApp(app: number, options: NativeAppOptions): void
|
|
34
|
+
|
|
35
|
+
export declare function createApp(options?: NativeAppOptions | undefined | null): number
|
|
36
|
+
|
|
37
|
+
export declare function createHostedApp(options?: NativeAppOptions | undefined | null): number
|
|
38
|
+
|
|
39
|
+
export declare function createHostedSystemPopover(app: number, parent: number, anchor: number, options?: NativeWindowOptions | undefined | null, initialBatch?: Buffer | undefined | null): number
|
|
40
|
+
|
|
41
|
+
export declare function createHostedWindow(app: number, options?: NativeWindowOptions | undefined | null, initialBatch?: Buffer | undefined | null): number
|
|
42
|
+
|
|
43
|
+
export declare function createSystemPopover(app: number, parent: number, anchor: number, options?: NativeWindowOptions | undefined | null, initialBatch?: Buffer | undefined | null): number
|
|
44
|
+
|
|
45
|
+
export declare function createWindow(app: number, options?: NativeWindowOptions | undefined | null, initialBatch?: Buffer | undefined | null): number
|
|
46
|
+
|
|
47
|
+
export declare function defaultUpdateTarget(): string
|
|
48
|
+
|
|
49
|
+
export declare function deleteSecureStorage(service: string, account: string): Promise<boolean>
|
|
50
|
+
|
|
51
|
+
export declare function destroyApp(app: number): boolean
|
|
52
|
+
|
|
53
|
+
export declare function destroyHostedApp(app: number): boolean
|
|
54
|
+
|
|
55
|
+
export declare function disableAutoStart(options: NativeAutoStartOptions): Promise<void>
|
|
56
|
+
|
|
57
|
+
export declare function dismissHostedNotification(app: number, tag: string): void
|
|
58
|
+
|
|
59
|
+
export declare function dismissNotification(app: number, tag: string): void
|
|
60
|
+
|
|
61
|
+
export declare function enableAutoStart(options: NativeAutoStartOptions): Promise<void>
|
|
62
|
+
|
|
63
|
+
export declare function exitApp(app: number): boolean
|
|
64
|
+
|
|
65
|
+
export declare function exitHostedApp(app: number): boolean
|
|
66
|
+
|
|
67
|
+
export declare function focusHostedNode(app: number, window: number, node: number): boolean
|
|
68
|
+
|
|
69
|
+
export declare function focusNode(app: number, window: number, node: number): boolean
|
|
70
|
+
|
|
71
|
+
export declare function getAppInfo(app: number): NativeAppInfo | null
|
|
72
|
+
|
|
73
|
+
export declare function getAppPaths(app: number): NativeAppPaths | null
|
|
74
|
+
|
|
75
|
+
export declare function getCursorScreenPosition(app: number): NativePoint
|
|
76
|
+
|
|
77
|
+
export declare function getDesktopIntegrationSupport(app: number): NativeDesktopIntegrationSupport
|
|
78
|
+
|
|
79
|
+
export declare function getDisplays(app: number): Array<NativeDisplay>
|
|
80
|
+
|
|
81
|
+
export declare function getHostedAppInfo(app: number): NativeAppInfo | null
|
|
82
|
+
|
|
83
|
+
export declare function getHostedAppPaths(app: number): NativeAppPaths | null
|
|
84
|
+
|
|
85
|
+
export declare function getHostedCursorScreenPosition(app: number): NativePoint
|
|
86
|
+
|
|
87
|
+
export declare function getHostedDesktopIntegrationSupport(app: number): NativeDesktopIntegrationSupport
|
|
88
|
+
|
|
89
|
+
export declare function getHostedDisplays(app: number): Array<NativeDisplay>
|
|
90
|
+
|
|
91
|
+
export declare function getHostedKeyboardLayout(app: number): NativeKeyboardLayout
|
|
92
|
+
|
|
93
|
+
export declare function getHostedSystemInfo(app: number): NativeSystemInfo
|
|
94
|
+
|
|
95
|
+
export declare function getHostedSystemPreferences(app: number): NativeSystemPreferences
|
|
96
|
+
|
|
97
|
+
export declare function getHostedWindowRegistry(app: number): NativeWindowRegistry
|
|
98
|
+
|
|
99
|
+
export declare function getHostedWindowState(app: number, window: number): NativeWindowState
|
|
100
|
+
|
|
101
|
+
export declare function getKeyboardLayout(app: number): NativeKeyboardLayout
|
|
102
|
+
|
|
103
|
+
export declare function getPermissionStatus(kind: string): string
|
|
104
|
+
|
|
105
|
+
export declare function getPowerState(): NativePowerState
|
|
106
|
+
|
|
107
|
+
export declare function getSecureStorage(service: string, account: string): Promise<Buffer | undefined>
|
|
108
|
+
|
|
109
|
+
export declare function getSessionState(): string
|
|
110
|
+
|
|
111
|
+
export declare function getSystemIdleState(thresholdSeconds: number): string
|
|
112
|
+
|
|
113
|
+
export declare function getSystemIdleTime(): number
|
|
114
|
+
|
|
115
|
+
export declare function getSystemInfo(app: number): NativeSystemInfo
|
|
116
|
+
|
|
117
|
+
export declare function getSystemPreferences(app: number): NativeSystemPreferences
|
|
118
|
+
|
|
119
|
+
export declare function getWindowRegistry(app: number): NativeWindowRegistry
|
|
120
|
+
|
|
121
|
+
export declare function getWindowState(app: number, window: number): NativeWindowState
|
|
122
|
+
|
|
123
|
+
export interface HostedAppUpdate {
|
|
124
|
+
events: Array<NativeEvent>
|
|
125
|
+
exitCode?: number
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export declare function installUpdate(update: NativeAvailableUpdate, artifact: string, installOptions: NativeUpdateInstallOptions, options: NativeUpdateClientOptions): Promise<NativeInstalledUpdate>
|
|
129
|
+
|
|
130
|
+
export declare function isAppReady(app: number): boolean
|
|
131
|
+
|
|
132
|
+
export declare function isAutoStartEnabled(options: NativeAutoStartOptions): Promise<boolean>
|
|
133
|
+
|
|
134
|
+
export declare function isAutoStartSupported(): boolean
|
|
135
|
+
|
|
136
|
+
export declare function isHostedAppReady(app: number): boolean
|
|
137
|
+
|
|
138
|
+
export declare function isProtocolRegistered(options: NativeProtocolRegistrationOptions): Promise<boolean>
|
|
139
|
+
|
|
140
|
+
export declare function isSecureStorageSupported(): boolean
|
|
141
|
+
|
|
142
|
+
export interface NativeAboutPanelOptions {
|
|
143
|
+
applicationName?: string
|
|
144
|
+
applicationVersion?: string
|
|
145
|
+
version?: string
|
|
146
|
+
copyright?: string
|
|
147
|
+
credits?: string
|
|
148
|
+
icon?: NativeImageSource
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface NativeAppInfo {
|
|
152
|
+
name: string
|
|
153
|
+
version: string
|
|
154
|
+
identifier: string
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface NativeAppOptions {
|
|
158
|
+
name?: string
|
|
159
|
+
version?: string
|
|
160
|
+
identifier?: string
|
|
161
|
+
resourceDir?: string
|
|
162
|
+
configDir?: string
|
|
163
|
+
dataDir?: string
|
|
164
|
+
localDataDir?: string
|
|
165
|
+
cacheDir?: string
|
|
166
|
+
logDir?: string
|
|
167
|
+
runtimeDir?: string
|
|
168
|
+
tempDir?: string
|
|
169
|
+
/** `default`, `last-window-closed`, or `explicit`. */
|
|
170
|
+
quitMode?: string
|
|
171
|
+
/** OpenType font files embedded by the JavaScript host and registered by the Rust core. */
|
|
172
|
+
fontData?: Array<Buffer>
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface NativeAppPaths {
|
|
176
|
+
executable: string
|
|
177
|
+
executableDir: string
|
|
178
|
+
resourceDir: string
|
|
179
|
+
homeDir?: string
|
|
180
|
+
configDir?: string
|
|
181
|
+
dataDir?: string
|
|
182
|
+
localDataDir?: string
|
|
183
|
+
cacheDir?: string
|
|
184
|
+
logDir?: string
|
|
185
|
+
runtimeDir?: string
|
|
186
|
+
tempDir: string
|
|
187
|
+
audioDir?: string
|
|
188
|
+
desktopDir?: string
|
|
189
|
+
documentDir?: string
|
|
190
|
+
downloadDir?: string
|
|
191
|
+
pictureDir?: string
|
|
192
|
+
videoDir?: string
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface NativeAutoStartOptions {
|
|
196
|
+
appName: string
|
|
197
|
+
executable?: string
|
|
198
|
+
arguments?: Array<string>
|
|
199
|
+
mode?: string
|
|
200
|
+
bundleIdentifier?: string
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface NativeAvailableUpdate {
|
|
204
|
+
version: string
|
|
205
|
+
currentVersion: string
|
|
206
|
+
target: string
|
|
207
|
+
url: string
|
|
208
|
+
signature: string
|
|
209
|
+
notes?: string
|
|
210
|
+
publishedAt?: string
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface NativeBatteryState {
|
|
214
|
+
chargePercent?: number
|
|
215
|
+
status: string
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface NativeClipboardEntry {
|
|
219
|
+
kind: string
|
|
220
|
+
text?: string
|
|
221
|
+
metadata?: string
|
|
222
|
+
format?: string
|
|
223
|
+
data?: Buffer
|
|
224
|
+
paths?: Array<string>
|
|
225
|
+
url?: string
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface NativeClipboardItem {
|
|
229
|
+
entries: Array<NativeClipboardEntry>
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface NativeDesktopIntegrationSupport {
|
|
233
|
+
systemNotifications: boolean
|
|
234
|
+
scheduledNotifications: boolean
|
|
235
|
+
notificationReplies: boolean
|
|
236
|
+
nativeApplicationMenus: boolean
|
|
237
|
+
nativePopupMenus: boolean
|
|
238
|
+
trayIcons: boolean
|
|
239
|
+
programmableTrayPopup: boolean
|
|
240
|
+
globalShortcuts: boolean
|
|
241
|
+
singleInstance: boolean
|
|
242
|
+
dynamicProtocolRegistration: boolean
|
|
243
|
+
autostart: boolean
|
|
244
|
+
windowIcons: boolean
|
|
245
|
+
windowFocusability: boolean
|
|
246
|
+
windowOpacity: boolean
|
|
247
|
+
skipTaskbar: boolean
|
|
248
|
+
visibleOnAllWorkspaces: boolean
|
|
249
|
+
cursorControl: boolean
|
|
250
|
+
cursorScreenPosition: boolean
|
|
251
|
+
taskbarProgress: boolean
|
|
252
|
+
taskbarOverlayIcons: boolean
|
|
253
|
+
dockBadges: boolean
|
|
254
|
+
dockIcons: boolean
|
|
255
|
+
dockMenus: boolean
|
|
256
|
+
recentDocuments: boolean
|
|
257
|
+
fileIcons: boolean
|
|
258
|
+
nativeAboutPanel: boolean
|
|
259
|
+
userTasks: boolean
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface NativeDialogButton {
|
|
263
|
+
label: string
|
|
264
|
+
role?: string
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export interface NativeDialogOptions {
|
|
268
|
+
level?: string
|
|
269
|
+
message: string
|
|
270
|
+
detail?: string
|
|
271
|
+
buttons: Array<NativeDialogButton>
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface NativeDisplay {
|
|
275
|
+
id: string
|
|
276
|
+
uuid?: string
|
|
277
|
+
name: string
|
|
278
|
+
bounds: NativeRect
|
|
279
|
+
workArea: NativeRect
|
|
280
|
+
scaleFactor: number
|
|
281
|
+
refreshRate?: number
|
|
282
|
+
primary: boolean
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export interface NativeEvent {
|
|
286
|
+
kind: string
|
|
287
|
+
window: number
|
|
288
|
+
target: number
|
|
289
|
+
value?: string
|
|
290
|
+
paths?: Array<string>
|
|
291
|
+
data?: Buffer
|
|
292
|
+
width?: number
|
|
293
|
+
height?: number
|
|
294
|
+
error?: string
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface NativeFileDialogFilter {
|
|
298
|
+
name: string
|
|
299
|
+
extensions: Array<string>
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface NativeImageSource {
|
|
303
|
+
/** Encoded image bytes, or raw RGBA8 when width and height are both supplied. */
|
|
304
|
+
data?: Buffer
|
|
305
|
+
/** Image path used when data is omitted. */
|
|
306
|
+
path?: string
|
|
307
|
+
width?: number
|
|
308
|
+
height?: number
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export interface NativeInstalledUpdate {
|
|
312
|
+
version: string
|
|
313
|
+
disposition: string
|
|
314
|
+
installedPath: string
|
|
315
|
+
backupPath?: string
|
|
316
|
+
installerProcessId?: number
|
|
317
|
+
requiresApplicationExit: boolean
|
|
318
|
+
relaunchRecommended: boolean
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface NativeKeyboardLayout {
|
|
322
|
+
id: string
|
|
323
|
+
name: string
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export interface NativeNotificationAction {
|
|
327
|
+
id: string
|
|
328
|
+
label: string
|
|
329
|
+
kind?: string
|
|
330
|
+
placeholder?: string
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export interface NativeNotificationAttachment {
|
|
334
|
+
id: string
|
|
335
|
+
path: string
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export interface NativeNotificationOptions {
|
|
339
|
+
tag: string
|
|
340
|
+
title: string
|
|
341
|
+
body: string
|
|
342
|
+
subtitle?: string
|
|
343
|
+
actions: Array<NativeNotificationAction>
|
|
344
|
+
/** `default`, `silent`, or a platform-recognized named sound. */
|
|
345
|
+
sound?: string
|
|
346
|
+
iconPath?: string
|
|
347
|
+
attachments?: Array<NativeNotificationAttachment>
|
|
348
|
+
/** Absolute Unix epoch milliseconds. */
|
|
349
|
+
deliveryAtMs?: number
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export interface NativeOpenDialogOptions {
|
|
353
|
+
files: boolean
|
|
354
|
+
directories: boolean
|
|
355
|
+
multiple: boolean
|
|
356
|
+
title?: string
|
|
357
|
+
prompt?: string
|
|
358
|
+
directory?: string
|
|
359
|
+
suggestedName?: string
|
|
360
|
+
filters: Array<NativeFileDialogFilter>
|
|
361
|
+
showsHiddenFiles: boolean
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export interface NativePoint {
|
|
365
|
+
x: number
|
|
366
|
+
y: number
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface NativePowerState {
|
|
370
|
+
source: string
|
|
371
|
+
battery?: NativeBatteryState
|
|
372
|
+
thermalState: string
|
|
373
|
+
lowPowerMode?: boolean
|
|
374
|
+
cpuSpeedLimitPercent?: number
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export interface NativeProtocolRegistrationOptions {
|
|
378
|
+
scheme: string
|
|
379
|
+
appName: string
|
|
380
|
+
appId: string
|
|
381
|
+
executable?: string
|
|
382
|
+
arguments?: Array<string>
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export interface NativeRect {
|
|
386
|
+
x: number
|
|
387
|
+
y: number
|
|
388
|
+
width: number
|
|
389
|
+
height: number
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export interface NativeRelaunchOptions {
|
|
393
|
+
executable?: string
|
|
394
|
+
arguments?: Array<string>
|
|
395
|
+
clearArguments?: boolean
|
|
396
|
+
workingDirectory?: string
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export interface NativeSaveDialogOptions {
|
|
400
|
+
directory: string
|
|
401
|
+
title?: string
|
|
402
|
+
suggestedName?: string
|
|
403
|
+
prompt?: string
|
|
404
|
+
filters: Array<NativeFileDialogFilter>
|
|
405
|
+
showsHiddenFiles: boolean
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export interface NativeSystemColor {
|
|
409
|
+
red: number
|
|
410
|
+
green: number
|
|
411
|
+
blue: number
|
|
412
|
+
alpha: number
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export interface NativeSystemInfo {
|
|
416
|
+
operatingSystem: string
|
|
417
|
+
family: string
|
|
418
|
+
name: string
|
|
419
|
+
version?: string
|
|
420
|
+
edition?: string
|
|
421
|
+
codename?: string
|
|
422
|
+
architecture: string
|
|
423
|
+
bitness: string
|
|
424
|
+
hostname?: string
|
|
425
|
+
locale?: string
|
|
426
|
+
preferredLanguages: Array<string>
|
|
427
|
+
languagesTruncated: boolean
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface NativeSystemPreferences {
|
|
431
|
+
colorScheme: string
|
|
432
|
+
reduceMotion?: boolean
|
|
433
|
+
reduceTransparency?: boolean
|
|
434
|
+
increaseContrast?: boolean
|
|
435
|
+
differentiateWithoutColor?: boolean
|
|
436
|
+
invertColors?: boolean
|
|
437
|
+
forcedColors?: boolean
|
|
438
|
+
screenReader?: boolean
|
|
439
|
+
switchControl?: boolean
|
|
440
|
+
accentColor?: NativeSystemColor
|
|
441
|
+
highlightColor?: NativeSystemColor
|
|
442
|
+
highlightTextColor?: NativeSystemColor
|
|
443
|
+
windowBackgroundColor?: NativeSystemColor
|
|
444
|
+
windowTextColor?: NativeSystemColor
|
|
445
|
+
controlBackgroundColor?: NativeSystemColor
|
|
446
|
+
controlTextColor?: NativeSystemColor
|
|
447
|
+
linkColor?: NativeSystemColor
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export interface NativeTrayIconOptions {
|
|
451
|
+
id: number
|
|
452
|
+
/** Encoded image bytes, or raw RGBA8 when width and height are both supplied. */
|
|
453
|
+
iconData?: Buffer
|
|
454
|
+
/** Image path used when iconData is omitted. */
|
|
455
|
+
iconPath?: string
|
|
456
|
+
width?: number
|
|
457
|
+
height?: number
|
|
458
|
+
tooltip?: string
|
|
459
|
+
title?: string
|
|
460
|
+
iconIsTemplate?: boolean
|
|
461
|
+
menuOnLeftClick?: boolean
|
|
462
|
+
visible?: boolean
|
|
463
|
+
/** Bounded JSON encoding of the declarative tray menu. */
|
|
464
|
+
menu: string
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export interface NativeUpdateClientOptions {
|
|
468
|
+
currentVersion: string
|
|
469
|
+
publicKey: string
|
|
470
|
+
target?: string
|
|
471
|
+
maximumDownloadBytes?: number
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export interface NativeUpdateInstallOptions {
|
|
475
|
+
targetExecutable?: string
|
|
476
|
+
retainBackup?: boolean
|
|
477
|
+
windowsMode?: string
|
|
478
|
+
installerArguments?: Array<string>
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export interface NativeUserTask {
|
|
482
|
+
title: string
|
|
483
|
+
arguments: string
|
|
484
|
+
program?: string
|
|
485
|
+
description?: string
|
|
486
|
+
workingDirectory?: string
|
|
487
|
+
iconPath?: string
|
|
488
|
+
iconIndex?: number
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export interface NativeWindowOptions {
|
|
492
|
+
title?: string
|
|
493
|
+
width?: number
|
|
494
|
+
height?: number
|
|
495
|
+
x?: number
|
|
496
|
+
y?: number
|
|
497
|
+
/** `normal`, `maximized`, or `fullscreen`. */
|
|
498
|
+
initialState?: string
|
|
499
|
+
displayId?: string
|
|
500
|
+
/** Set to false to remove QuickGUI's default minimum size. */
|
|
501
|
+
minimumSizeEnabled?: boolean
|
|
502
|
+
minimumWidth?: number
|
|
503
|
+
minimumHeight?: number
|
|
504
|
+
maximumWidth?: number
|
|
505
|
+
maximumHeight?: number
|
|
506
|
+
representedFile?: string
|
|
507
|
+
documentEdited?: boolean
|
|
508
|
+
tabbingIdentifier?: string
|
|
509
|
+
background?: number
|
|
510
|
+
performanceProfile?: string
|
|
511
|
+
appearance?: string
|
|
512
|
+
titleBarStyle?: string
|
|
513
|
+
kind?: string
|
|
514
|
+
focus?: boolean
|
|
515
|
+
focusable?: boolean
|
|
516
|
+
show?: boolean
|
|
517
|
+
movable?: boolean
|
|
518
|
+
resizable?: boolean
|
|
519
|
+
minimizable?: boolean
|
|
520
|
+
maximizable?: boolean
|
|
521
|
+
closable?: boolean
|
|
522
|
+
decorated?: boolean
|
|
523
|
+
shadow?: boolean
|
|
524
|
+
contentProtected?: boolean
|
|
525
|
+
windowLevel?: string
|
|
526
|
+
skipTaskbar?: boolean
|
|
527
|
+
visibleOnAllWorkspaces?: boolean
|
|
528
|
+
opacity?: number
|
|
529
|
+
icon?: NativeImageSource
|
|
530
|
+
taskbarProgressState?: string
|
|
531
|
+
taskbarProgress?: number
|
|
532
|
+
taskbarOverlayIcon?: NativeImageSource
|
|
533
|
+
taskbarOverlayDescription?: string
|
|
534
|
+
cursorVisible?: boolean
|
|
535
|
+
cursorGrab?: string
|
|
536
|
+
cursorHitTest?: boolean
|
|
537
|
+
cursorX?: number
|
|
538
|
+
cursorY?: number
|
|
539
|
+
/** Bounded JSON encoding of a per-window native menu. Omitted windows inherit the app menu. */
|
|
540
|
+
menu?: string
|
|
541
|
+
lineScrollPixels?: number
|
|
542
|
+
keySequenceTimeoutMs?: number
|
|
543
|
+
reduceMotion?: boolean
|
|
544
|
+
trafficLightX?: number
|
|
545
|
+
trafficLightY?: number
|
|
546
|
+
transparent?: boolean
|
|
547
|
+
blur?: boolean
|
|
548
|
+
popoverPlacement?: string
|
|
549
|
+
popoverGap?: number
|
|
550
|
+
popoverOffsetX?: number
|
|
551
|
+
popoverOffsetY?: number
|
|
552
|
+
popoverViewportMargin?: number
|
|
553
|
+
popoverDismissOnEscape?: boolean
|
|
554
|
+
popoverDismissOnPointerOutside?: boolean
|
|
555
|
+
popoverGrab?: boolean
|
|
556
|
+
popoverAcceptsKeyFocus?: boolean
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export interface NativeWindowRegistry {
|
|
560
|
+
windows: Array<number>
|
|
561
|
+
activeWindow?: number
|
|
562
|
+
truncated: boolean
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export interface NativeWindowState {
|
|
566
|
+
displayId?: string
|
|
567
|
+
kind: string
|
|
568
|
+
x: number
|
|
569
|
+
y: number
|
|
570
|
+
width: number
|
|
571
|
+
height: number
|
|
572
|
+
viewportWidth: number
|
|
573
|
+
viewportHeight: number
|
|
574
|
+
minimumWidth?: number
|
|
575
|
+
minimumHeight?: number
|
|
576
|
+
maximumWidth?: number
|
|
577
|
+
maximumHeight?: number
|
|
578
|
+
scaleFactor: number
|
|
579
|
+
appearance: string
|
|
580
|
+
backgroundAppearance: string
|
|
581
|
+
focused: boolean
|
|
582
|
+
focusable: boolean
|
|
583
|
+
visible: boolean
|
|
584
|
+
minimized: boolean
|
|
585
|
+
maximized: boolean
|
|
586
|
+
fullscreen: boolean
|
|
587
|
+
occluded: boolean
|
|
588
|
+
movable: boolean
|
|
589
|
+
resizable: boolean
|
|
590
|
+
minimizable: boolean
|
|
591
|
+
maximizable: boolean
|
|
592
|
+
closable: boolean
|
|
593
|
+
decorated: boolean
|
|
594
|
+
shadow: boolean
|
|
595
|
+
contentProtected: boolean
|
|
596
|
+
windowLevel: string
|
|
597
|
+
skipTaskbar: boolean
|
|
598
|
+
visibleOnAllWorkspaces: boolean
|
|
599
|
+
opacity: number
|
|
600
|
+
hasIcon: boolean
|
|
601
|
+
taskbarProgressState: string
|
|
602
|
+
taskbarProgress: number
|
|
603
|
+
hasTaskbarOverlayIcon: boolean
|
|
604
|
+
cursorVisible: boolean
|
|
605
|
+
cursorGrab: string
|
|
606
|
+
cursorHitTest: boolean
|
|
607
|
+
cursorX?: number
|
|
608
|
+
cursorY?: number
|
|
609
|
+
representedFile: boolean
|
|
610
|
+
documentEdited: boolean
|
|
611
|
+
nativeTabbing: boolean
|
|
612
|
+
nativeTabCount: number
|
|
613
|
+
nativeSelectedTab?: number
|
|
614
|
+
nativeTabBarVisible: boolean
|
|
615
|
+
nativeTabOverviewVisible: boolean
|
|
616
|
+
nativeTabsTruncated: boolean
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export declare function performGlobalShortcutAction(app: number, request: number, action: string, registration?: number | undefined | null, accelerator?: string | undefined | null): void
|
|
620
|
+
|
|
621
|
+
export declare function performHostedGlobalShortcutAction(app: number, request: number, action: string, registration?: number | undefined | null, accelerator?: string | undefined | null): void
|
|
622
|
+
|
|
623
|
+
export declare function performHostedNotificationPermissionRequest(app: number, request: number, prompt: boolean): void
|
|
624
|
+
|
|
625
|
+
export declare function performHostedShellAction(app: number, request: number, action: string, value: string): void
|
|
626
|
+
|
|
627
|
+
export declare function performHostedWindowAction(app: number, window: number, action: string, value?: string | undefined | null): void
|
|
628
|
+
|
|
629
|
+
export declare function performHostedWindowImageAction(app: number, window: number, action: string, image?: NativeImageSource | undefined | null, description?: string | undefined | null): void
|
|
630
|
+
|
|
631
|
+
export declare function performNotificationPermissionRequest(app: number, request: number, prompt: boolean): void
|
|
632
|
+
|
|
633
|
+
export declare function performShellAction(app: number, request: number, action: string, value: string): void
|
|
634
|
+
|
|
635
|
+
export declare function performWindowAction(app: number, window: number, action: string, value?: string | undefined | null): void
|
|
636
|
+
|
|
637
|
+
export declare function performWindowImageAction(app: number, window: number, action: string, image?: NativeImageSource | undefined | null, description?: string | undefined | null): void
|
|
638
|
+
|
|
639
|
+
export declare function prepareApp(app: number): void
|
|
640
|
+
|
|
641
|
+
export declare function prepareHostedApp(app: number): void
|
|
642
|
+
|
|
643
|
+
export declare function protocolVersion(): number
|
|
644
|
+
|
|
645
|
+
/** Return `-1` while running or the non-negative native exit code after termination. */
|
|
646
|
+
export declare function pumpApp(app: number, timeoutMs?: number | undefined | null): number
|
|
647
|
+
|
|
648
|
+
export declare function readClipboard(app: number): NativeClipboardItem | null
|
|
649
|
+
|
|
650
|
+
export declare function readHostedClipboard(app: number): NativeClipboardItem | null
|
|
651
|
+
|
|
652
|
+
export declare function registerProtocol(options: NativeProtocolRegistrationOptions): Promise<void>
|
|
653
|
+
|
|
654
|
+
export declare function relaunchApp(app: number, options: NativeRelaunchOptions): boolean
|
|
655
|
+
|
|
656
|
+
export declare function relaunchHostedApp(app: number, options: NativeRelaunchOptions): boolean
|
|
657
|
+
|
|
658
|
+
export declare function releaseHostedSingleInstanceLock(app: number): boolean
|
|
659
|
+
|
|
660
|
+
export declare function releaseSingleInstanceLock(app: number): boolean
|
|
661
|
+
|
|
662
|
+
export declare function removeHostedTrayIcon(app: number, request: number, id: number): void
|
|
663
|
+
|
|
664
|
+
export declare function removeTrayIcon(app: number, request: number, id: number): void
|
|
665
|
+
|
|
666
|
+
export declare function requestFileIcon(app: number, request: number, path: string, size: string): void
|
|
667
|
+
|
|
668
|
+
export declare function requestHostedFileIcon(app: number, request: number, path: string, size: string): void
|
|
669
|
+
|
|
670
|
+
export declare function requestHostedSingleInstanceLock(app: number, identifier: string): boolean
|
|
671
|
+
|
|
672
|
+
export declare function requestPermission(kind: string): Promise<string>
|
|
673
|
+
|
|
674
|
+
export declare function requestSingleInstanceLock(app: number, identifier: string): boolean
|
|
675
|
+
|
|
676
|
+
export declare function runAppHost(onReady?: (() => void) | undefined | null): number
|
|
677
|
+
|
|
678
|
+
export declare function setApplicationMenu(app: number, menu: string): void
|
|
679
|
+
|
|
680
|
+
export declare function setDockBadge(app: number, value?: string | undefined | null): void
|
|
681
|
+
|
|
682
|
+
export declare function setDockIcon(app: number, icon?: NativeImageSource | undefined | null): void
|
|
683
|
+
|
|
684
|
+
export declare function setDockMenu(app: number, menu?: string | undefined | null): void
|
|
685
|
+
|
|
686
|
+
export declare function setHostedApplicationMenu(app: number, menu: string): void
|
|
687
|
+
|
|
688
|
+
export declare function setHostedDockBadge(app: number, value?: string | undefined | null): void
|
|
689
|
+
|
|
690
|
+
export declare function setHostedDockIcon(app: number, icon?: NativeImageSource | undefined | null): void
|
|
691
|
+
|
|
692
|
+
export declare function setHostedDockMenu(app: number, menu?: string | undefined | null): void
|
|
693
|
+
|
|
694
|
+
export declare function setHostedTrayIcon(app: number, request: number, options: NativeTrayIconOptions): void
|
|
695
|
+
|
|
696
|
+
export declare function setHostedUserTasks(app: number, request: number, tasks: Array<NativeUserTask>): void
|
|
697
|
+
|
|
698
|
+
export declare function setSecureStorage(service: string, account: string, secret: Buffer): Promise<void>
|
|
699
|
+
|
|
700
|
+
export declare function setTrayIcon(app: number, request: number, options: NativeTrayIconOptions): void
|
|
701
|
+
|
|
702
|
+
export declare function setUserTasks(app: number, request: number, tasks: Array<NativeUserTask>): void
|
|
703
|
+
|
|
704
|
+
export declare function showAboutPanel(app: number, options: NativeAboutPanelOptions): void
|
|
705
|
+
|
|
706
|
+
export declare function showAlertDialog(app: number, window: number | undefined | null, request: number, options: NativeDialogOptions): void
|
|
707
|
+
|
|
708
|
+
export declare function showHostedAboutPanel(app: number, options: NativeAboutPanelOptions): void
|
|
709
|
+
|
|
710
|
+
export declare function showHostedAlertDialog(app: number, window: number | undefined | null, request: number, options: NativeDialogOptions): void
|
|
711
|
+
|
|
712
|
+
export declare function showHostedNotification(app: number, options: NativeNotificationOptions): void
|
|
713
|
+
|
|
714
|
+
export declare function showHostedOpenDialog(app: number, window: number | undefined | null, request: number, options: NativeOpenDialogOptions): void
|
|
715
|
+
|
|
716
|
+
export declare function showHostedSaveDialog(app: number, window: number | undefined | null, request: number, options: NativeSaveDialogOptions): void
|
|
717
|
+
|
|
718
|
+
export declare function showHostedTrayMenu(app: number, request: number, id: number): void
|
|
719
|
+
|
|
720
|
+
export declare function showNotification(app: number, options: NativeNotificationOptions): void
|
|
721
|
+
|
|
722
|
+
export declare function showOpenDialog(app: number, window: number | undefined | null, request: number, options: NativeOpenDialogOptions): void
|
|
723
|
+
|
|
724
|
+
export declare function showSaveDialog(app: number, window: number | undefined | null, request: number, options: NativeSaveDialogOptions): void
|
|
725
|
+
|
|
726
|
+
export declare function showTrayMenu(app: number, request: number, id: number): void
|
|
727
|
+
|
|
728
|
+
export declare function stageUpdate(update: NativeAvailableUpdate, destinationDirectory: string, options: NativeUpdateClientOptions): Promise<string>
|
|
729
|
+
|
|
730
|
+
export declare function startApp(app: number): void
|
|
731
|
+
|
|
732
|
+
export declare function startHostedApp(app: number): void
|
|
733
|
+
|
|
734
|
+
export declare function supportsDynamicProtocolRegistration(): boolean
|
|
735
|
+
|
|
736
|
+
export declare function takeEvents(app: number): Array<NativeEvent>
|
|
737
|
+
|
|
738
|
+
export declare function unregisterProtocol(options: NativeProtocolRegistrationOptions): Promise<boolean>
|
|
739
|
+
|
|
740
|
+
export declare function verifyUpdate(path: string, signature: string, options: NativeUpdateClientOptions): Promise<void>
|
|
741
|
+
|
|
742
|
+
export declare function waitForHostedEvents(app: number): Promise<HostedAppUpdate>
|
|
743
|
+
|
|
744
|
+
export declare function writeClipboard(app: number, item: NativeClipboardItem): void
|
|
745
|
+
|
|
746
|
+
export declare function writeHostedClipboard(app: number, item: NativeClipboardItem): void
|