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