@girs/bamf-3 3.0.0-3.0.0-beta.12

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/bamf-3.d.ts ADDED
@@ -0,0 +1,1124 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * Bamf-3
10
+ */
11
+
12
+ import type GObject from '@girs/gobject-2.0';
13
+ import type GLib from '@girs/glib-2.0';
14
+
15
+ export namespace Bamf {
16
+
17
+ enum ClickBehavior {
18
+ NONE,
19
+ OPEN,
20
+ FOCUS,
21
+ FOCUS_ALL,
22
+ MINIMIZE,
23
+ RESTORE,
24
+ RESTORE_ALL,
25
+ PICKER,
26
+ }
27
+ enum WindowMaximizationType {
28
+ FLOATING,
29
+ HORIZONTAL_MAXIMIZED,
30
+ VERTICAL_MAXIMIZED,
31
+ MAXIMIZED,
32
+ }
33
+ enum WindowType {
34
+ NORMAL,
35
+ DESKTOP,
36
+ DOCK,
37
+ DIALOG,
38
+ TOOLBAR,
39
+ MENU,
40
+ UTILITY,
41
+ SPLASHSCREEN,
42
+ UNKNOWN,
43
+ }
44
+ const APPLICATION_SIGNAL_DESKTOP_FILE_UPDATED: string | null
45
+ const APPLICATION_SIGNAL_WINDOW_ADDED: string | null
46
+ const APPLICATION_SIGNAL_WINDOW_REMOVED: string | null
47
+ const MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED: string | null
48
+ const MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED: string | null
49
+ const MATCHER_SIGNAL_STACKING_ORDER_CHANGED: string | null
50
+ const MATCHER_SIGNAL_VIEW_CLOSED: string | null
51
+ const MATCHER_SIGNAL_VIEW_OPENED: string | null
52
+ const VIEW_SIGNAL_ACTIVE_CHANGED: string | null
53
+ const VIEW_SIGNAL_CHILD_ADDED: string | null
54
+ const VIEW_SIGNAL_CHILD_MOVED: string | null
55
+ const VIEW_SIGNAL_CHILD_REMOVED: string | null
56
+ const VIEW_SIGNAL_CLOSED: string | null
57
+ const VIEW_SIGNAL_ICON_CHANGED: string | null
58
+ const VIEW_SIGNAL_NAME_CHANGED: string | null
59
+ const VIEW_SIGNAL_RUNNING_CHANGED: string | null
60
+ const VIEW_SIGNAL_STARTING_CHANGED: string | null
61
+ const VIEW_SIGNAL_URGENT_CHANGED: string | null
62
+ const VIEW_SIGNAL_USER_VISIBLE_CHANGED: string | null
63
+ const WINDOW_SIGNAL_MAXIMIZED_CHANGED: string | null
64
+ const WINDOW_SIGNAL_MONITOR_CHANGED: string | null
65
+ interface TabPreviewReadyCallback {
66
+ (self: Tab, preview_data: string | null): void
67
+ }
68
+ module Application {
69
+
70
+ // Signal callback interfaces
71
+
72
+ /**
73
+ * Signal callback interface for `desktop-file-updated`
74
+ */
75
+ interface DesktopFileUpdatedSignalCallback {
76
+ ($obj: Application, object: string | null): void
77
+ }
78
+
79
+ /**
80
+ * Signal callback interface for `window-added`
81
+ */
82
+ interface WindowAddedSignalCallback {
83
+ ($obj: Application, object: Window): void
84
+ }
85
+
86
+ /**
87
+ * Signal callback interface for `window-removed`
88
+ */
89
+ interface WindowRemovedSignalCallback {
90
+ ($obj: Application, object: Window): void
91
+ }
92
+
93
+
94
+ // Constructor properties interface
95
+
96
+ interface ConstructorProperties extends View.ConstructorProperties {
97
+ }
98
+
99
+ }
100
+
101
+ interface Application {
102
+
103
+ // Own fields of Bamf-3.Bamf.Application
104
+
105
+ parent: View & GObject.InitiallyUnowned
106
+ priv: any
107
+
108
+ // Owm methods of Bamf-3.Bamf.Application
109
+
110
+ /**
111
+ * Used to fetch the bus name and the object path of the remote application menu.
112
+ * @returns %TRUE if found, %FALSE otherwise.
113
+ */
114
+ get_application_menu(): [ /* returnType */ boolean, /* name */ string | null, /* object_path */ string | null ]
115
+ get_application_type(): string | null
116
+ /**
117
+ * Used to fetch the path to the .desktop file associated with the passed application. If
118
+ * none exists, the result is NULL.
119
+ * @returns A string representing the path to the desktop file.
120
+ */
121
+ get_desktop_file(): string | null
122
+ get_focusable_child(): View
123
+ /**
124
+ * Used to discover whether the application wants menu stubs shown.
125
+ * @returns Whether the stubs should be shown.
126
+ */
127
+ get_show_menu_stubs(): boolean
128
+ get_supported_mime_types(): string[]
129
+ /**
130
+ * Used to fetch the application contains a Window with given `xid`.
131
+ * @param xid an X11 Window ID
132
+ * @returns a #BamfWindow for the passed @xid or %NULL if not found.
133
+ */
134
+ get_window_for_xid(xid: number): Window
135
+ /**
136
+ * Used to fetch all #BamfWindow's associated with the passed #BamfApplication.
137
+ * @returns A list of #BamfWindow's.
138
+ */
139
+ get_windows(): Window[]
140
+ /**
141
+ * Used to fetch all #BamfWindow's xids associated with the passed #BamfApplication.
142
+ * @returns An array of xids.
143
+ */
144
+ get_xids(): number[]
145
+
146
+ // Own signals of Bamf-3.Bamf.Application
147
+
148
+ connect(sigName: "desktop-file-updated", callback: Application.DesktopFileUpdatedSignalCallback): number
149
+ connect_after(sigName: "desktop-file-updated", callback: Application.DesktopFileUpdatedSignalCallback): number
150
+ emit(sigName: "desktop-file-updated", object: string | null, ...args: any[]): void
151
+ connect(sigName: "window-added", callback: Application.WindowAddedSignalCallback): number
152
+ connect_after(sigName: "window-added", callback: Application.WindowAddedSignalCallback): number
153
+ emit(sigName: "window-added", object: Window, ...args: any[]): void
154
+ connect(sigName: "window-removed", callback: Application.WindowRemovedSignalCallback): number
155
+ connect_after(sigName: "window-removed", callback: Application.WindowRemovedSignalCallback): number
156
+ emit(sigName: "window-removed", object: Window, ...args: any[]): void
157
+
158
+ // Class property signals of Bamf-3.Bamf.Application
159
+
160
+ connect(sigName: "notify::active", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
161
+ connect_after(sigName: "notify::active", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
162
+ emit(sigName: "notify::active", ...args: any[]): void
163
+ connect(sigName: "notify::path", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
164
+ connect_after(sigName: "notify::path", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
165
+ emit(sigName: "notify::path", ...args: any[]): void
166
+ connect(sigName: "notify::running", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
167
+ connect_after(sigName: "notify::running", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
168
+ emit(sigName: "notify::running", ...args: any[]): void
169
+ connect(sigName: "notify::starting", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
170
+ connect_after(sigName: "notify::starting", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
171
+ emit(sigName: "notify::starting", ...args: any[]): void
172
+ connect(sigName: "notify::urgent", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
173
+ connect_after(sigName: "notify::urgent", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
174
+ emit(sigName: "notify::urgent", ...args: any[]): void
175
+ connect(sigName: "notify::user-visible", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
176
+ connect_after(sigName: "notify::user-visible", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number
177
+ emit(sigName: "notify::user-visible", ...args: any[]): void
178
+ connect(sigName: string, callback: (...args: any[]) => void): number
179
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
180
+ emit(sigName: string, ...args: any[]): void
181
+ disconnect(id: number): void
182
+ }
183
+
184
+ class Application extends View {
185
+
186
+ // Own properties of Bamf-3.Bamf.Application
187
+
188
+ static name: string
189
+ static $gtype: GObject.GType<Application>
190
+
191
+ // Constructors of Bamf-3.Bamf.Application
192
+
193
+ constructor(config?: Application.ConstructorProperties)
194
+ _init(config?: Application.ConstructorProperties): void
195
+ }
196
+
197
+ module Control {
198
+
199
+ // Constructor properties interface
200
+
201
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
202
+ }
203
+
204
+ }
205
+
206
+ interface Control {
207
+
208
+ // Own fields of Bamf-3.Bamf.Control
209
+
210
+ parent: GObject.Object
211
+ priv: ControlPrivate
212
+
213
+ // Owm methods of Bamf-3.Bamf.Control
214
+
215
+ create_local_desktop_file(application: Application): void
216
+ insert_desktop_file(desktop_file: string | null): void
217
+ register_application_for_pid(desktop_file: string | null, pid: number): void
218
+ set_approver_behavior(behavior: number): void
219
+
220
+ // Class property signals of Bamf-3.Bamf.Control
221
+
222
+ connect(sigName: string, callback: (...args: any[]) => void): number
223
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
224
+ emit(sigName: string, ...args: any[]): void
225
+ disconnect(id: number): void
226
+ }
227
+
228
+ class Control extends GObject.Object {
229
+
230
+ // Own properties of Bamf-3.Bamf.Control
231
+
232
+ static name: string
233
+ static $gtype: GObject.GType<Control>
234
+
235
+ // Constructors of Bamf-3.Bamf.Control
236
+
237
+ constructor(config?: Control.ConstructorProperties)
238
+ _init(config?: Control.ConstructorProperties): void
239
+ static get_default(): Control
240
+ }
241
+
242
+ module Matcher {
243
+
244
+ // Signal callback interfaces
245
+
246
+ /**
247
+ * Signal callback interface for `active-application-changed`
248
+ */
249
+ interface ActiveApplicationChangedSignalCallback {
250
+ ($obj: Matcher, object: Application, p0: Application): void
251
+ }
252
+
253
+ /**
254
+ * Signal callback interface for `active-window-changed`
255
+ */
256
+ interface ActiveWindowChangedSignalCallback {
257
+ ($obj: Matcher, object: Window, p0: Window): void
258
+ }
259
+
260
+ /**
261
+ * Signal callback interface for `stacking-order-changed`
262
+ */
263
+ interface StackingOrderChangedSignalCallback {
264
+ ($obj: Matcher): void
265
+ }
266
+
267
+ /**
268
+ * Signal callback interface for `view-closed`
269
+ */
270
+ interface ViewClosedSignalCallback {
271
+ ($obj: Matcher, object: View): void
272
+ }
273
+
274
+ /**
275
+ * Signal callback interface for `view-opened`
276
+ */
277
+ interface ViewOpenedSignalCallback {
278
+ ($obj: Matcher, object: View): void
279
+ }
280
+
281
+
282
+ // Constructor properties interface
283
+
284
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
285
+ }
286
+
287
+ }
288
+
289
+ interface Matcher {
290
+
291
+ // Own fields of Bamf-3.Bamf.Matcher
292
+
293
+ parent: GObject.Object
294
+ priv: MatcherPrivate
295
+
296
+ // Owm methods of Bamf-3.Bamf.Matcher
297
+
298
+ application_is_running(desktop_file: string | null): boolean
299
+ /**
300
+ * Used to fetch the active #BamfApplication.
301
+ * @returns The active #BamfApplication.
302
+ */
303
+ get_active_application(): Application
304
+ /**
305
+ * Used to fetch the active #BamfWindow.
306
+ * @returns The active #BamfWindow.
307
+ */
308
+ get_active_window(): Window
309
+ get_application_for_desktop_file(desktop_file_path: string | null, create_if_not_found: boolean): Application
310
+ /**
311
+ * Used to fetch the #BamfApplication containing the passed window.
312
+ * @param window The window to look for
313
+ * @returns The #BamfApplication representing the xid passed, or NULL if none exists.
314
+ */
315
+ get_application_for_window(window: Window): Application
316
+ /**
317
+ * Used to fetch the #BamfApplication containing the passed xid.
318
+ * @param xid The XID to search for
319
+ * @returns The #BamfApplication representing the xid passed, or NULL if none exists.
320
+ */
321
+ get_application_for_xid(xid: number): Application
322
+ /**
323
+ * Used to fetch all #BamfApplication's running or not. Application authors who wish to only
324
+ * see running applications should use bamf_matcher_get_running_applications instead. The reason
325
+ * this method is needed is bamf will occasionally track applications which are not currently
326
+ * running for nefarious purposes.
327
+ * @returns A list of #BamfApplication's.
328
+ */
329
+ get_applications(): Application[]
330
+ /**
331
+ * Used to fetch all #BamfApplication's which are running.
332
+ * @returns A list of #BamfApplication's.
333
+ */
334
+ get_running_applications(): Application[]
335
+ /**
336
+ * Used to fetch all #BamfView's representing tabs. Currently unused.
337
+ * @returns A list of #BamfTab's.
338
+ */
339
+ get_tabs(): Tab[]
340
+ /**
341
+ * Used to fetch the #BamfWindow that wraps the given `window`.
342
+ * @param xid The X11 Window ID to search for
343
+ * @returns The #BamfWindow representing the xid passed, or NULL if none exists.
344
+ */
345
+ get_window_for_xid(xid: number): Window
346
+ /**
347
+ * Used to fetch all windows that BAMF knows about in the requested screen,
348
+ * in stacking bottom-to-top order. If the `monitor` is set to a negative value,
349
+ * then it fetches all the available windows in all monitors.
350
+ * @param monitor the monitor you want the stack from, negative value to get all
351
+ * @returns A list of #BamfWindow's.
352
+ */
353
+ get_window_stack_for_monitor(monitor: number): Window[]
354
+ /**
355
+ * Used to fetch all windows that BAMF knows about.
356
+ * @returns A list of #BamfWindow's.
357
+ */
358
+ get_windows(): Window[]
359
+ /**
360
+ * Used to fetch all xid's associated with an application. Useful for performing window
361
+ * @param desktop_file
362
+ * @returns A list of xids.
363
+ */
364
+ get_xids_for_application(desktop_file: string | null): number[]
365
+ /**
366
+ * Used to effect how bamf performs matching. Desktop files passed to this method will
367
+ * be prefered by bamf to system desktop files.
368
+ * @param favorites an array of strings, each containing an absolute path to a .desktop file
369
+ */
370
+ register_favorites(favorites: string[]): void
371
+
372
+ // Own signals of Bamf-3.Bamf.Matcher
373
+
374
+ connect(sigName: "active-application-changed", callback: Matcher.ActiveApplicationChangedSignalCallback): number
375
+ connect_after(sigName: "active-application-changed", callback: Matcher.ActiveApplicationChangedSignalCallback): number
376
+ emit(sigName: "active-application-changed", object: Application, p0: Application, ...args: any[]): void
377
+ connect(sigName: "active-window-changed", callback: Matcher.ActiveWindowChangedSignalCallback): number
378
+ connect_after(sigName: "active-window-changed", callback: Matcher.ActiveWindowChangedSignalCallback): number
379
+ emit(sigName: "active-window-changed", object: Window, p0: Window, ...args: any[]): void
380
+ connect(sigName: "stacking-order-changed", callback: Matcher.StackingOrderChangedSignalCallback): number
381
+ connect_after(sigName: "stacking-order-changed", callback: Matcher.StackingOrderChangedSignalCallback): number
382
+ emit(sigName: "stacking-order-changed", ...args: any[]): void
383
+ connect(sigName: "view-closed", callback: Matcher.ViewClosedSignalCallback): number
384
+ connect_after(sigName: "view-closed", callback: Matcher.ViewClosedSignalCallback): number
385
+ emit(sigName: "view-closed", object: View, ...args: any[]): void
386
+ connect(sigName: "view-opened", callback: Matcher.ViewOpenedSignalCallback): number
387
+ connect_after(sigName: "view-opened", callback: Matcher.ViewOpenedSignalCallback): number
388
+ emit(sigName: "view-opened", object: View, ...args: any[]): void
389
+
390
+ // Class property signals of Bamf-3.Bamf.Matcher
391
+
392
+ connect(sigName: string, callback: (...args: any[]) => void): number
393
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
394
+ emit(sigName: string, ...args: any[]): void
395
+ disconnect(id: number): void
396
+ }
397
+
398
+ class Matcher extends GObject.Object {
399
+
400
+ // Own properties of Bamf-3.Bamf.Matcher
401
+
402
+ static name: string
403
+ static $gtype: GObject.GType<Matcher>
404
+
405
+ // Constructors of Bamf-3.Bamf.Matcher
406
+
407
+ constructor(config?: Matcher.ConstructorProperties)
408
+ _init(config?: Matcher.ConstructorProperties): void
409
+ /**
410
+ * Returns the default matcher. This matcher is owned by bamf and shared between other callers.
411
+ * @returns A new #BamfMatcher
412
+ */
413
+ static get_default(): Matcher
414
+ }
415
+
416
+ module Tab {
417
+
418
+ // Constructor properties interface
419
+
420
+ interface ConstructorProperties extends View.ConstructorProperties {
421
+ }
422
+
423
+ }
424
+
425
+ interface Tab {
426
+
427
+ // Own properties of Bamf-3.Bamf.Tab
428
+
429
+ readonly desktop_id: string | null
430
+ readonly is_foreground_tab: boolean
431
+ readonly location: string | null
432
+ readonly xid: number
433
+
434
+ // Own fields of Bamf-3.Bamf.Tab
435
+
436
+ parent: View & GObject.InitiallyUnowned
437
+ priv: any
438
+
439
+ // Owm methods of Bamf-3.Bamf.Tab
440
+
441
+ /**
442
+ * Closes the selected `self` tab.
443
+ * @returns %TRUE if success, %FALSE otherwise.
444
+ */
445
+ close(): boolean
446
+ /**
447
+ * Returns the desktop file for the tab.
448
+ * @returns The tab desktop id or %NULL if not set or available. Do not free the returned value, it belongs to @self.
449
+ */
450
+ get_desktop_name(): string | null
451
+ get_is_foreground_tab(): boolean
452
+ get_location(): string | null
453
+ /**
454
+ * The desktop file for the tab.
455
+ * @returns The tab parent window XID id or 0 if not set or available.
456
+ */
457
+ get_xid(): number
458
+ /**
459
+ * Selects the `self` tab in the parent window.
460
+ * @returns %TRUE if success, %FALSE otherwise.
461
+ */
462
+ raise(): boolean
463
+ request_preview(callback: TabPreviewReadyCallback): void
464
+
465
+ // Own virtual methods of Bamf-3.Bamf.Tab
466
+
467
+ /**
468
+ * Returns the desktop file for the tab.
469
+ * @virtual
470
+ * @returns The tab desktop id or %NULL if not set or available. Do not free the returned value, it belongs to @self.
471
+ */
472
+ vfunc_get_desktop_name(): string | null
473
+ vfunc_get_is_foreground_tab(): boolean
474
+ vfunc_get_location(): string | null
475
+ /**
476
+ * The desktop file for the tab.
477
+ * @virtual
478
+ * @returns The tab parent window XID id or 0 if not set or available.
479
+ */
480
+ vfunc_get_xid(): number
481
+
482
+ // Class property signals of Bamf-3.Bamf.Tab
483
+
484
+ connect(sigName: "notify::desktop-id", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
485
+ connect_after(sigName: "notify::desktop-id", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
486
+ emit(sigName: "notify::desktop-id", ...args: any[]): void
487
+ connect(sigName: "notify::is-foreground-tab", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
488
+ connect_after(sigName: "notify::is-foreground-tab", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
489
+ emit(sigName: "notify::is-foreground-tab", ...args: any[]): void
490
+ connect(sigName: "notify::location", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
491
+ connect_after(sigName: "notify::location", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
492
+ emit(sigName: "notify::location", ...args: any[]): void
493
+ connect(sigName: "notify::xid", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
494
+ connect_after(sigName: "notify::xid", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
495
+ emit(sigName: "notify::xid", ...args: any[]): void
496
+ connect(sigName: "notify::active", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
497
+ connect_after(sigName: "notify::active", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
498
+ emit(sigName: "notify::active", ...args: any[]): void
499
+ connect(sigName: "notify::path", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
500
+ connect_after(sigName: "notify::path", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
501
+ emit(sigName: "notify::path", ...args: any[]): void
502
+ connect(sigName: "notify::running", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
503
+ connect_after(sigName: "notify::running", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
504
+ emit(sigName: "notify::running", ...args: any[]): void
505
+ connect(sigName: "notify::starting", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
506
+ connect_after(sigName: "notify::starting", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
507
+ emit(sigName: "notify::starting", ...args: any[]): void
508
+ connect(sigName: "notify::urgent", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
509
+ connect_after(sigName: "notify::urgent", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
510
+ emit(sigName: "notify::urgent", ...args: any[]): void
511
+ connect(sigName: "notify::user-visible", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
512
+ connect_after(sigName: "notify::user-visible", callback: (($obj: Tab, pspec: GObject.ParamSpec) => void)): number
513
+ emit(sigName: "notify::user-visible", ...args: any[]): void
514
+ connect(sigName: string, callback: (...args: any[]) => void): number
515
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
516
+ emit(sigName: string, ...args: any[]): void
517
+ disconnect(id: number): void
518
+ }
519
+
520
+ class Tab extends View {
521
+
522
+ // Own properties of Bamf-3.Bamf.Tab
523
+
524
+ static name: string
525
+ static $gtype: GObject.GType<Tab>
526
+
527
+ // Constructors of Bamf-3.Bamf.Tab
528
+
529
+ constructor(config?: Tab.ConstructorProperties)
530
+ _init(config?: Tab.ConstructorProperties): void
531
+ }
532
+
533
+ module View {
534
+
535
+ // Signal callback interfaces
536
+
537
+ /**
538
+ * Signal callback interface for `active-changed`
539
+ */
540
+ interface ActiveChangedSignalCallback {
541
+ ($obj: View, object: boolean): void
542
+ }
543
+
544
+ /**
545
+ * Signal callback interface for `child-added`
546
+ */
547
+ interface ChildAddedSignalCallback {
548
+ ($obj: View, object: View): void
549
+ }
550
+
551
+ /**
552
+ * Signal callback interface for `child-moved`
553
+ */
554
+ interface ChildMovedSignalCallback {
555
+ ($obj: View, object: View): void
556
+ }
557
+
558
+ /**
559
+ * Signal callback interface for `child-removed`
560
+ */
561
+ interface ChildRemovedSignalCallback {
562
+ ($obj: View, object: View): void
563
+ }
564
+
565
+ /**
566
+ * Signal callback interface for `closed`
567
+ */
568
+ interface ClosedSignalCallback {
569
+ ($obj: View): void
570
+ }
571
+
572
+ /**
573
+ * Signal callback interface for `icon-changed`
574
+ */
575
+ interface IconChangedSignalCallback {
576
+ ($obj: View, object: string | null): void
577
+ }
578
+
579
+ /**
580
+ * Signal callback interface for `name-changed`
581
+ */
582
+ interface NameChangedSignalCallback {
583
+ ($obj: View, object: string | null, p0: string | null): void
584
+ }
585
+
586
+ /**
587
+ * Signal callback interface for `running-changed`
588
+ */
589
+ interface RunningChangedSignalCallback {
590
+ ($obj: View, object: boolean): void
591
+ }
592
+
593
+ /**
594
+ * Signal callback interface for `starting-changed`
595
+ */
596
+ interface StartingChangedSignalCallback {
597
+ ($obj: View, object: boolean): void
598
+ }
599
+
600
+ /**
601
+ * Signal callback interface for `urgent-changed`
602
+ */
603
+ interface UrgentChangedSignalCallback {
604
+ ($obj: View, object: boolean): void
605
+ }
606
+
607
+ /**
608
+ * Signal callback interface for `user-visible-changed`
609
+ */
610
+ interface UserVisibleChangedSignalCallback {
611
+ ($obj: View, object: boolean): void
612
+ }
613
+
614
+
615
+ // Constructor properties interface
616
+
617
+ interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties {
618
+ }
619
+
620
+ }
621
+
622
+ interface View {
623
+
624
+ // Own properties of Bamf-3.Bamf.View
625
+
626
+ readonly active: boolean
627
+ readonly path: string | null
628
+ readonly running: boolean
629
+ readonly starting: boolean
630
+ readonly urgent: boolean
631
+ readonly user_visible: boolean
632
+
633
+ // Own fields of Bamf-3.Bamf.View
634
+
635
+ parent: GObject.InitiallyUnowned
636
+ priv: ViewPrivate
637
+
638
+ // Owm methods of Bamf-3.Bamf.View
639
+
640
+ /**
641
+ * Note: Makes sever dbus calls the first time this is called on a view. Dbus messaging is reduced afterwards.
642
+ * @returns Returns a list of #BamfView which must be freed after usage. Elements of the list are owned by bamf and should not be unreffed.
643
+ */
644
+ get_children(): View[]
645
+ get_click_suggestion(): ClickBehavior
646
+ /**
647
+ * Gets the icon of a view. This icon is used to visually represent the view.
648
+ */
649
+ get_icon(): string | null
650
+ /**
651
+ * Gets the name of a view. This name is a short name best used to represent the view with text.
652
+ */
653
+ get_name(): string | null
654
+ /**
655
+ * The view type of a window is a short string used to represent all views of the same class. These
656
+ * descriptions should not be used to do casting as they are not considered stable.
657
+ */
658
+ get_view_type(): string | null
659
+ has_child(child: View): boolean
660
+ /**
661
+ * Determines if the view is currently active and focused by the user. Useful for an active window indicator.
662
+ */
663
+ is_active(): boolean
664
+ /**
665
+ * Determines if the view is closed or not.
666
+ */
667
+ is_closed(): boolean
668
+ /**
669
+ * Determines if the view is currently running. Useful for a running window indicator.
670
+ */
671
+ is_running(): boolean
672
+ /**
673
+ * Determines if the view is currently starting. Useful for the startup animation.
674
+ */
675
+ is_starting(): boolean
676
+ is_sticky(): boolean
677
+ /**
678
+ * Determines if the view is currently requiring attention. Useful for a running window indicator.
679
+ */
680
+ is_urgent(): boolean
681
+ is_user_visible(): boolean
682
+ /**
683
+ * Note: Makes sever dbus calls the first time this is called on a view.
684
+ * Dbus messaging is reduced afterwards.
685
+ * @returns Returns a list of #BamfView which is owned by the #BamfView and should not freed or modified after usage.
686
+ */
687
+ peek_children(): View[]
688
+ set_sticky(value: boolean): void
689
+
690
+ // Own virtual methods of Bamf-3.Bamf.View
691
+
692
+ vfunc_active_changed(active: boolean): void
693
+ vfunc_child_added(child: View): void
694
+ vfunc_child_moved(child: View): void
695
+ vfunc_child_removed(child: View): void
696
+ vfunc_click_behavior(): ClickBehavior
697
+ vfunc_closed(): void
698
+ /**
699
+ * Note: Makes sever dbus calls the first time this is called on a view. Dbus messaging is reduced afterwards.
700
+ * @virtual
701
+ * @returns Returns a list of #BamfView which must be freed after usage. Elements of the list are owned by bamf and should not be unreffed.
702
+ */
703
+ vfunc_get_children(): View[]
704
+ /**
705
+ * Gets the icon of a view. This icon is used to visually represent the view.
706
+ * @virtual
707
+ */
708
+ vfunc_get_icon(): string | null
709
+ /**
710
+ * Gets the name of a view. This name is a short name best used to represent the view with text.
711
+ * @virtual
712
+ */
713
+ vfunc_get_name(): string | null
714
+ vfunc_icon_changed(icon: string | null): void
715
+ /**
716
+ * Determines if the view is currently active and focused by the user. Useful for an active window indicator.
717
+ * @virtual
718
+ */
719
+ vfunc_is_active(): boolean
720
+ /**
721
+ * Determines if the view is currently running. Useful for a running window indicator.
722
+ * @virtual
723
+ */
724
+ vfunc_is_running(): boolean
725
+ /**
726
+ * Determines if the view is currently starting. Useful for the startup animation.
727
+ * @virtual
728
+ */
729
+ vfunc_is_starting(): boolean
730
+ /**
731
+ * Determines if the view is currently requiring attention. Useful for a running window indicator.
732
+ * @virtual
733
+ */
734
+ vfunc_is_urgent(): boolean
735
+ vfunc_is_user_visible(): boolean
736
+ vfunc_name_changed(old_name: string | null, new_name: string | null): void
737
+ vfunc_running_changed(running: boolean): void
738
+ vfunc_set_path(path: string | null): void
739
+ vfunc_set_sticky(value: boolean): void
740
+ vfunc_starting_changed(starting: boolean): void
741
+ vfunc_urgent_changed(urgent: boolean): void
742
+ vfunc_user_visible_changed(user_visible: boolean): void
743
+ /**
744
+ * The view type of a window is a short string used to represent all views of the same class. These
745
+ * descriptions should not be used to do casting as they are not considered stable.
746
+ * @virtual
747
+ */
748
+ vfunc_view_type(): string | null
749
+
750
+ // Own signals of Bamf-3.Bamf.View
751
+
752
+ connect(sigName: "active-changed", callback: View.ActiveChangedSignalCallback): number
753
+ connect_after(sigName: "active-changed", callback: View.ActiveChangedSignalCallback): number
754
+ emit(sigName: "active-changed", object: boolean, ...args: any[]): void
755
+ connect(sigName: "child-added", callback: View.ChildAddedSignalCallback): number
756
+ connect_after(sigName: "child-added", callback: View.ChildAddedSignalCallback): number
757
+ emit(sigName: "child-added", object: View, ...args: any[]): void
758
+ connect(sigName: "child-moved", callback: View.ChildMovedSignalCallback): number
759
+ connect_after(sigName: "child-moved", callback: View.ChildMovedSignalCallback): number
760
+ emit(sigName: "child-moved", object: View, ...args: any[]): void
761
+ connect(sigName: "child-removed", callback: View.ChildRemovedSignalCallback): number
762
+ connect_after(sigName: "child-removed", callback: View.ChildRemovedSignalCallback): number
763
+ emit(sigName: "child-removed", object: View, ...args: any[]): void
764
+ connect(sigName: "closed", callback: View.ClosedSignalCallback): number
765
+ connect_after(sigName: "closed", callback: View.ClosedSignalCallback): number
766
+ emit(sigName: "closed", ...args: any[]): void
767
+ connect(sigName: "icon-changed", callback: View.IconChangedSignalCallback): number
768
+ connect_after(sigName: "icon-changed", callback: View.IconChangedSignalCallback): number
769
+ emit(sigName: "icon-changed", object: string | null, ...args: any[]): void
770
+ connect(sigName: "name-changed", callback: View.NameChangedSignalCallback): number
771
+ connect_after(sigName: "name-changed", callback: View.NameChangedSignalCallback): number
772
+ emit(sigName: "name-changed", object: string | null, p0: string | null, ...args: any[]): void
773
+ connect(sigName: "running-changed", callback: View.RunningChangedSignalCallback): number
774
+ connect_after(sigName: "running-changed", callback: View.RunningChangedSignalCallback): number
775
+ emit(sigName: "running-changed", object: boolean, ...args: any[]): void
776
+ connect(sigName: "starting-changed", callback: View.StartingChangedSignalCallback): number
777
+ connect_after(sigName: "starting-changed", callback: View.StartingChangedSignalCallback): number
778
+ emit(sigName: "starting-changed", object: boolean, ...args: any[]): void
779
+ connect(sigName: "urgent-changed", callback: View.UrgentChangedSignalCallback): number
780
+ connect_after(sigName: "urgent-changed", callback: View.UrgentChangedSignalCallback): number
781
+ emit(sigName: "urgent-changed", object: boolean, ...args: any[]): void
782
+ connect(sigName: "user-visible-changed", callback: View.UserVisibleChangedSignalCallback): number
783
+ connect_after(sigName: "user-visible-changed", callback: View.UserVisibleChangedSignalCallback): number
784
+ emit(sigName: "user-visible-changed", object: boolean, ...args: any[]): void
785
+
786
+ // Class property signals of Bamf-3.Bamf.View
787
+
788
+ connect(sigName: "notify::active", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
789
+ connect_after(sigName: "notify::active", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
790
+ emit(sigName: "notify::active", ...args: any[]): void
791
+ connect(sigName: "notify::path", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
792
+ connect_after(sigName: "notify::path", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
793
+ emit(sigName: "notify::path", ...args: any[]): void
794
+ connect(sigName: "notify::running", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
795
+ connect_after(sigName: "notify::running", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
796
+ emit(sigName: "notify::running", ...args: any[]): void
797
+ connect(sigName: "notify::starting", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
798
+ connect_after(sigName: "notify::starting", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
799
+ emit(sigName: "notify::starting", ...args: any[]): void
800
+ connect(sigName: "notify::urgent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
801
+ connect_after(sigName: "notify::urgent", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
802
+ emit(sigName: "notify::urgent", ...args: any[]): void
803
+ connect(sigName: "notify::user-visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
804
+ connect_after(sigName: "notify::user-visible", callback: (($obj: View, pspec: GObject.ParamSpec) => void)): number
805
+ emit(sigName: "notify::user-visible", ...args: any[]): void
806
+ connect(sigName: string, callback: (...args: any[]) => void): number
807
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
808
+ emit(sigName: string, ...args: any[]): void
809
+ disconnect(id: number): void
810
+ }
811
+
812
+ class View extends GObject.InitiallyUnowned {
813
+
814
+ // Own properties of Bamf-3.Bamf.View
815
+
816
+ static name: string
817
+ static $gtype: GObject.GType<View>
818
+
819
+ // Constructors of Bamf-3.Bamf.View
820
+
821
+ constructor(config?: View.ConstructorProperties)
822
+ _init(config?: View.ConstructorProperties): void
823
+ }
824
+
825
+ module Window {
826
+
827
+ // Signal callback interfaces
828
+
829
+ /**
830
+ * Signal callback interface for `maximized-changed`
831
+ */
832
+ interface MaximizedChangedSignalCallback {
833
+ ($obj: Window, object: number, p0: number): void
834
+ }
835
+
836
+ /**
837
+ * Signal callback interface for `monitor-changed`
838
+ */
839
+ interface MonitorChangedSignalCallback {
840
+ ($obj: Window, object: number, p0: number): void
841
+ }
842
+
843
+
844
+ // Constructor properties interface
845
+
846
+ interface ConstructorProperties extends View.ConstructorProperties {
847
+ }
848
+
849
+ }
850
+
851
+ interface Window {
852
+
853
+ // Own fields of Bamf-3.Bamf.Window
854
+
855
+ parent: View & GObject.InitiallyUnowned
856
+ priv: any
857
+
858
+ // Owm methods of Bamf-3.Bamf.Window
859
+
860
+ get_monitor(): number
861
+ get_pid(): number
862
+ get_transient(): Window
863
+ get_utf8_prop(prop: string | null): string | null
864
+ get_window_type(): WindowType
865
+ get_xid(): number
866
+ last_active(): number
867
+ maximized(): WindowMaximizationType
868
+
869
+ // Own virtual methods of Bamf-3.Bamf.Window
870
+
871
+ vfunc_get_monitor(): number
872
+ vfunc_get_pid(): number
873
+ vfunc_get_transient(): Window
874
+ vfunc_get_utf8_prop(prop: string | null): string | null
875
+ vfunc_get_window_type(): WindowType
876
+ vfunc_get_xid(): number
877
+ vfunc_last_active(): number
878
+ vfunc_maximized(): WindowMaximizationType
879
+ vfunc_maximized_changed(old_value: number, new_value: number): void
880
+ vfunc_monitor_changed(old_value: number, new_value: number): void
881
+
882
+ // Own signals of Bamf-3.Bamf.Window
883
+
884
+ connect(sigName: "maximized-changed", callback: Window.MaximizedChangedSignalCallback): number
885
+ connect_after(sigName: "maximized-changed", callback: Window.MaximizedChangedSignalCallback): number
886
+ emit(sigName: "maximized-changed", object: number, p0: number, ...args: any[]): void
887
+ connect(sigName: "monitor-changed", callback: Window.MonitorChangedSignalCallback): number
888
+ connect_after(sigName: "monitor-changed", callback: Window.MonitorChangedSignalCallback): number
889
+ emit(sigName: "monitor-changed", object: number, p0: number, ...args: any[]): void
890
+
891
+ // Class property signals of Bamf-3.Bamf.Window
892
+
893
+ connect(sigName: "notify::active", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
894
+ connect_after(sigName: "notify::active", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
895
+ emit(sigName: "notify::active", ...args: any[]): void
896
+ connect(sigName: "notify::path", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
897
+ connect_after(sigName: "notify::path", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
898
+ emit(sigName: "notify::path", ...args: any[]): void
899
+ connect(sigName: "notify::running", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
900
+ connect_after(sigName: "notify::running", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
901
+ emit(sigName: "notify::running", ...args: any[]): void
902
+ connect(sigName: "notify::starting", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
903
+ connect_after(sigName: "notify::starting", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
904
+ emit(sigName: "notify::starting", ...args: any[]): void
905
+ connect(sigName: "notify::urgent", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
906
+ connect_after(sigName: "notify::urgent", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
907
+ emit(sigName: "notify::urgent", ...args: any[]): void
908
+ connect(sigName: "notify::user-visible", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
909
+ connect_after(sigName: "notify::user-visible", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number
910
+ emit(sigName: "notify::user-visible", ...args: any[]): void
911
+ connect(sigName: string, callback: (...args: any[]) => void): number
912
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
913
+ emit(sigName: string, ...args: any[]): void
914
+ disconnect(id: number): void
915
+ }
916
+
917
+ class Window extends View {
918
+
919
+ // Own properties of Bamf-3.Bamf.Window
920
+
921
+ static name: string
922
+ static $gtype: GObject.GType<Window>
923
+
924
+ // Constructors of Bamf-3.Bamf.Window
925
+
926
+ constructor(config?: Window.ConstructorProperties)
927
+ _init(config?: Window.ConstructorProperties): void
928
+ }
929
+
930
+ interface ApplicationClass {
931
+
932
+ // Own fields of Bamf-3.Bamf.ApplicationClass
933
+
934
+ parent_class: ViewClass
935
+ }
936
+
937
+ abstract class ApplicationClass {
938
+
939
+ // Own properties of Bamf-3.Bamf.ApplicationClass
940
+
941
+ static name: string
942
+ }
943
+
944
+ interface ApplicationPrivate {
945
+ }
946
+
947
+ class ApplicationPrivate {
948
+
949
+ // Own properties of Bamf-3.Bamf.ApplicationPrivate
950
+
951
+ static name: string
952
+ }
953
+
954
+ interface ControlClass {
955
+
956
+ // Own fields of Bamf-3.Bamf.ControlClass
957
+
958
+ parent_class: GObject.ObjectClass
959
+ }
960
+
961
+ abstract class ControlClass {
962
+
963
+ // Own properties of Bamf-3.Bamf.ControlClass
964
+
965
+ static name: string
966
+ }
967
+
968
+ interface ControlPrivate {
969
+ }
970
+
971
+ class ControlPrivate {
972
+
973
+ // Own properties of Bamf-3.Bamf.ControlPrivate
974
+
975
+ static name: string
976
+ }
977
+
978
+ interface MatcherClass {
979
+
980
+ // Own fields of Bamf-3.Bamf.MatcherClass
981
+
982
+ parent_class: GObject.ObjectClass
983
+ }
984
+
985
+ abstract class MatcherClass {
986
+
987
+ // Own properties of Bamf-3.Bamf.MatcherClass
988
+
989
+ static name: string
990
+ }
991
+
992
+ interface MatcherPrivate {
993
+ }
994
+
995
+ class MatcherPrivate {
996
+
997
+ // Own properties of Bamf-3.Bamf.MatcherPrivate
998
+
999
+ static name: string
1000
+ }
1001
+
1002
+ interface TabClass {
1003
+
1004
+ // Own fields of Bamf-3.Bamf.TabClass
1005
+
1006
+ parent_class: ViewClass
1007
+ get_desktop_name: (self: Tab) => string | null
1008
+ get_location: (self: Tab) => string | null
1009
+ get_xid: (self: Tab) => number
1010
+ get_is_foreground_tab: (self: Tab) => boolean
1011
+ }
1012
+
1013
+ abstract class TabClass {
1014
+
1015
+ // Own properties of Bamf-3.Bamf.TabClass
1016
+
1017
+ static name: string
1018
+ }
1019
+
1020
+ interface TabPrivate {
1021
+ }
1022
+
1023
+ class TabPrivate {
1024
+
1025
+ // Own properties of Bamf-3.Bamf.TabPrivate
1026
+
1027
+ static name: string
1028
+ }
1029
+
1030
+ interface ViewClass {
1031
+
1032
+ // Own fields of Bamf-3.Bamf.ViewClass
1033
+
1034
+ parent_class: GObject.InitiallyUnownedClass
1035
+ get_children: (view: View) => View[]
1036
+ is_active: (view: View) => boolean
1037
+ is_running: (view: View) => boolean
1038
+ is_urgent: (view: View) => boolean
1039
+ is_user_visible: (view: View) => boolean
1040
+ get_name: (view: View) => string | null
1041
+ get_icon: (view: View) => string | null
1042
+ view_type: (view: View) => string | null
1043
+ set_path: (view: View, path: string | null) => void
1044
+ set_sticky: (view: View, value: boolean) => void
1045
+ click_behavior: (view: View) => ClickBehavior
1046
+ active_changed: (view: View, active: boolean) => void
1047
+ closed: (view: View) => void
1048
+ child_added: (view: View, child: View) => void
1049
+ child_removed: (view: View, child: View) => void
1050
+ running_changed: (view: View, running: boolean) => void
1051
+ urgent_changed: (view: View, urgent: boolean) => void
1052
+ user_visible_changed: (view: View, user_visible: boolean) => void
1053
+ name_changed: (view: View, old_name: string | null, new_name: string | null) => void
1054
+ icon_changed: (view: View, icon: string | null) => void
1055
+ child_moved: (view: View, child: View) => void
1056
+ is_starting: (view: View) => boolean
1057
+ starting_changed: (view: View, starting: boolean) => void
1058
+ }
1059
+
1060
+ abstract class ViewClass {
1061
+
1062
+ // Own properties of Bamf-3.Bamf.ViewClass
1063
+
1064
+ static name: string
1065
+ }
1066
+
1067
+ interface ViewPrivate {
1068
+ }
1069
+
1070
+ class ViewPrivate {
1071
+
1072
+ // Own properties of Bamf-3.Bamf.ViewPrivate
1073
+
1074
+ static name: string
1075
+ }
1076
+
1077
+ interface WindowClass {
1078
+
1079
+ // Own fields of Bamf-3.Bamf.WindowClass
1080
+
1081
+ parent_class: ViewClass
1082
+ get_transient: (self: Window) => Window
1083
+ get_window_type: (self: Window) => WindowType
1084
+ get_xid: (self: Window) => number
1085
+ get_pid: (self: Window) => number
1086
+ get_monitor: (self: Window) => number
1087
+ get_utf8_prop: (self: Window, prop: string | null) => string | null
1088
+ maximized: (self: Window) => WindowMaximizationType
1089
+ last_active: (self: Window) => number
1090
+ monitor_changed: (window: Window, old_value: number, new_value: number) => void
1091
+ maximized_changed: (window: Window, old_value: number, new_value: number) => void
1092
+ }
1093
+
1094
+ abstract class WindowClass {
1095
+
1096
+ // Own properties of Bamf-3.Bamf.WindowClass
1097
+
1098
+ static name: string
1099
+ }
1100
+
1101
+ interface WindowPrivate {
1102
+ }
1103
+
1104
+ class WindowPrivate {
1105
+
1106
+ // Own properties of Bamf-3.Bamf.WindowPrivate
1107
+
1108
+ static name: string
1109
+ }
1110
+
1111
+ /**
1112
+ * Name of the imported GIR library
1113
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
1114
+ */
1115
+ const __name__: string
1116
+ /**
1117
+ * Version of the imported GIR library
1118
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
1119
+ */
1120
+ const __version__: string
1121
+ }
1122
+
1123
+ export default Bamf;
1124
+ // END