@girs/bamf-3 3.0.0-3.2.5 → 3.0.0-3.2.7
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 +1 -1
- package/bamf-3.d.cts +46 -43
- package/bamf-3.d.ts +46 -43
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Bamf-3, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Bamf-3, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/bamf-3.d.cts
CHANGED
|
@@ -42,29 +42,29 @@ export enum WindowType {
|
|
|
42
42
|
SPLASHSCREEN,
|
|
43
43
|
UNKNOWN,
|
|
44
44
|
}
|
|
45
|
-
export const APPLICATION_SIGNAL_DESKTOP_FILE_UPDATED: string
|
|
46
|
-
export const APPLICATION_SIGNAL_WINDOW_ADDED: string
|
|
47
|
-
export const APPLICATION_SIGNAL_WINDOW_REMOVED: string
|
|
48
|
-
export const MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED: string
|
|
49
|
-
export const MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED: string
|
|
50
|
-
export const MATCHER_SIGNAL_STACKING_ORDER_CHANGED: string
|
|
51
|
-
export const MATCHER_SIGNAL_VIEW_CLOSED: string
|
|
52
|
-
export const MATCHER_SIGNAL_VIEW_OPENED: string
|
|
53
|
-
export const VIEW_SIGNAL_ACTIVE_CHANGED: string
|
|
54
|
-
export const VIEW_SIGNAL_CHILD_ADDED: string
|
|
55
|
-
export const VIEW_SIGNAL_CHILD_MOVED: string
|
|
56
|
-
export const VIEW_SIGNAL_CHILD_REMOVED: string
|
|
57
|
-
export const VIEW_SIGNAL_CLOSED: string
|
|
58
|
-
export const VIEW_SIGNAL_ICON_CHANGED: string
|
|
59
|
-
export const VIEW_SIGNAL_NAME_CHANGED: string
|
|
60
|
-
export const VIEW_SIGNAL_RUNNING_CHANGED: string
|
|
61
|
-
export const VIEW_SIGNAL_STARTING_CHANGED: string
|
|
62
|
-
export const VIEW_SIGNAL_URGENT_CHANGED: string
|
|
63
|
-
export const VIEW_SIGNAL_USER_VISIBLE_CHANGED: string
|
|
64
|
-
export const WINDOW_SIGNAL_MAXIMIZED_CHANGED: string
|
|
65
|
-
export const WINDOW_SIGNAL_MONITOR_CHANGED: string
|
|
45
|
+
export const APPLICATION_SIGNAL_DESKTOP_FILE_UPDATED: string
|
|
46
|
+
export const APPLICATION_SIGNAL_WINDOW_ADDED: string
|
|
47
|
+
export const APPLICATION_SIGNAL_WINDOW_REMOVED: string
|
|
48
|
+
export const MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED: string
|
|
49
|
+
export const MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED: string
|
|
50
|
+
export const MATCHER_SIGNAL_STACKING_ORDER_CHANGED: string
|
|
51
|
+
export const MATCHER_SIGNAL_VIEW_CLOSED: string
|
|
52
|
+
export const MATCHER_SIGNAL_VIEW_OPENED: string
|
|
53
|
+
export const VIEW_SIGNAL_ACTIVE_CHANGED: string
|
|
54
|
+
export const VIEW_SIGNAL_CHILD_ADDED: string
|
|
55
|
+
export const VIEW_SIGNAL_CHILD_MOVED: string
|
|
56
|
+
export const VIEW_SIGNAL_CHILD_REMOVED: string
|
|
57
|
+
export const VIEW_SIGNAL_CLOSED: string
|
|
58
|
+
export const VIEW_SIGNAL_ICON_CHANGED: string
|
|
59
|
+
export const VIEW_SIGNAL_NAME_CHANGED: string
|
|
60
|
+
export const VIEW_SIGNAL_RUNNING_CHANGED: string
|
|
61
|
+
export const VIEW_SIGNAL_STARTING_CHANGED: string
|
|
62
|
+
export const VIEW_SIGNAL_URGENT_CHANGED: string
|
|
63
|
+
export const VIEW_SIGNAL_USER_VISIBLE_CHANGED: string
|
|
64
|
+
export const WINDOW_SIGNAL_MAXIMIZED_CHANGED: string
|
|
65
|
+
export const WINDOW_SIGNAL_MONITOR_CHANGED: string
|
|
66
66
|
export interface TabPreviewReadyCallback {
|
|
67
|
-
(self: Tab, preview_data: string
|
|
67
|
+
(self: Tab, preview_data: string): void
|
|
68
68
|
}
|
|
69
69
|
export module Application {
|
|
70
70
|
|
|
@@ -113,13 +113,13 @@ export interface Application {
|
|
|
113
113
|
* @returns %TRUE if found, %FALSE otherwise.
|
|
114
114
|
*/
|
|
115
115
|
get_application_menu(): [ /* returnType */ boolean, /* name */ string | null, /* object_path */ string | null ]
|
|
116
|
-
get_application_type(): string
|
|
116
|
+
get_application_type(): string
|
|
117
117
|
/**
|
|
118
118
|
* Used to fetch the path to the .desktop file associated with the passed application. If
|
|
119
119
|
* none exists, the result is NULL.
|
|
120
120
|
* @returns A string representing the path to the desktop file.
|
|
121
121
|
*/
|
|
122
|
-
get_desktop_file(): string
|
|
122
|
+
get_desktop_file(): string
|
|
123
123
|
get_focusable_child(): View
|
|
124
124
|
/**
|
|
125
125
|
* Used to discover whether the application wants menu stubs shown.
|
|
@@ -214,8 +214,8 @@ export interface Control {
|
|
|
214
214
|
// Owm methods of Bamf-3.Bamf.Control
|
|
215
215
|
|
|
216
216
|
create_local_desktop_file(application: Application): void
|
|
217
|
-
insert_desktop_file(desktop_file: string
|
|
218
|
-
register_application_for_pid(desktop_file: string
|
|
217
|
+
insert_desktop_file(desktop_file: string): void
|
|
218
|
+
register_application_for_pid(desktop_file: string, pid: number): void
|
|
219
219
|
set_approver_behavior(behavior: number): void
|
|
220
220
|
|
|
221
221
|
// Class property signals of Bamf-3.Bamf.Control
|
|
@@ -296,7 +296,7 @@ export interface Matcher {
|
|
|
296
296
|
|
|
297
297
|
// Owm methods of Bamf-3.Bamf.Matcher
|
|
298
298
|
|
|
299
|
-
application_is_running(desktop_file: string
|
|
299
|
+
application_is_running(desktop_file: string): boolean
|
|
300
300
|
/**
|
|
301
301
|
* Used to fetch the active #BamfApplication.
|
|
302
302
|
* @returns The active #BamfApplication.
|
|
@@ -307,7 +307,7 @@ export interface Matcher {
|
|
|
307
307
|
* @returns The active #BamfWindow.
|
|
308
308
|
*/
|
|
309
309
|
get_active_window(): Window
|
|
310
|
-
get_application_for_desktop_file(desktop_file_path: string
|
|
310
|
+
get_application_for_desktop_file(desktop_file_path: string, create_if_not_found: boolean): Application
|
|
311
311
|
/**
|
|
312
312
|
* Used to fetch the #BamfApplication containing the passed window.
|
|
313
313
|
* @param window The window to look for
|
|
@@ -362,7 +362,7 @@ export interface Matcher {
|
|
|
362
362
|
* @param desktop_file
|
|
363
363
|
* @returns A list of xids.
|
|
364
364
|
*/
|
|
365
|
-
get_xids_for_application(desktop_file: string
|
|
365
|
+
get_xids_for_application(desktop_file: string): number[]
|
|
366
366
|
/**
|
|
367
367
|
* Used to effect how bamf performs matching. Desktop files passed to this method will
|
|
368
368
|
* be prefered by bamf to system desktop files.
|
|
@@ -428,7 +428,9 @@ export interface Tab {
|
|
|
428
428
|
// Own properties of Bamf-3.Bamf.Tab
|
|
429
429
|
|
|
430
430
|
readonly desktop_id: string | null
|
|
431
|
+
readonly desktopId: string | null
|
|
431
432
|
readonly is_foreground_tab: boolean
|
|
433
|
+
readonly isForegroundTab: boolean
|
|
432
434
|
readonly location: string | null
|
|
433
435
|
readonly xid: number
|
|
434
436
|
|
|
@@ -448,9 +450,9 @@ export interface Tab {
|
|
|
448
450
|
* Returns the desktop file for the tab.
|
|
449
451
|
* @returns The tab desktop id or %NULL if not set or available. Do not free the returned value, it belongs to @self.
|
|
450
452
|
*/
|
|
451
|
-
get_desktop_name(): string
|
|
453
|
+
get_desktop_name(): string
|
|
452
454
|
get_is_foreground_tab(): boolean
|
|
453
|
-
get_location(): string
|
|
455
|
+
get_location(): string
|
|
454
456
|
/**
|
|
455
457
|
* The desktop file for the tab.
|
|
456
458
|
* @returns The tab parent window XID id or 0 if not set or available.
|
|
@@ -470,9 +472,9 @@ export interface Tab {
|
|
|
470
472
|
* @virtual
|
|
471
473
|
* @returns The tab desktop id or %NULL if not set or available. Do not free the returned value, it belongs to @self.
|
|
472
474
|
*/
|
|
473
|
-
vfunc_get_desktop_name(): string
|
|
475
|
+
vfunc_get_desktop_name(): string
|
|
474
476
|
vfunc_get_is_foreground_tab(): boolean
|
|
475
|
-
vfunc_get_location(): string
|
|
477
|
+
vfunc_get_location(): string
|
|
476
478
|
/**
|
|
477
479
|
* The desktop file for the tab.
|
|
478
480
|
* @virtual
|
|
@@ -630,6 +632,7 @@ export interface View {
|
|
|
630
632
|
readonly starting: boolean
|
|
631
633
|
readonly urgent: boolean
|
|
632
634
|
readonly user_visible: boolean
|
|
635
|
+
readonly userVisible: boolean
|
|
633
636
|
|
|
634
637
|
// Own fields of Bamf-3.Bamf.View
|
|
635
638
|
|
|
@@ -656,7 +659,7 @@ export interface View {
|
|
|
656
659
|
* The view type of a window is a short string used to represent all views of the same class. These
|
|
657
660
|
* descriptions should not be used to do casting as they are not considered stable.
|
|
658
661
|
*/
|
|
659
|
-
get_view_type(): string
|
|
662
|
+
get_view_type(): string
|
|
660
663
|
has_child(child: View): boolean
|
|
661
664
|
/**
|
|
662
665
|
* Determines if the view is currently active and focused by the user. Useful for an active window indicator.
|
|
@@ -736,7 +739,7 @@ export interface View {
|
|
|
736
739
|
vfunc_is_user_visible(): boolean
|
|
737
740
|
vfunc_name_changed(old_name: string | null, new_name: string | null): void
|
|
738
741
|
vfunc_running_changed(running: boolean): void
|
|
739
|
-
vfunc_set_path(path: string
|
|
742
|
+
vfunc_set_path(path: string): void
|
|
740
743
|
vfunc_set_sticky(value: boolean): void
|
|
741
744
|
vfunc_starting_changed(starting: boolean): void
|
|
742
745
|
vfunc_urgent_changed(urgent: boolean): void
|
|
@@ -746,7 +749,7 @@ export interface View {
|
|
|
746
749
|
* descriptions should not be used to do casting as they are not considered stable.
|
|
747
750
|
* @virtual
|
|
748
751
|
*/
|
|
749
|
-
vfunc_view_type(): string
|
|
752
|
+
vfunc_view_type(): string
|
|
750
753
|
|
|
751
754
|
// Own signals of Bamf-3.Bamf.View
|
|
752
755
|
|
|
@@ -861,7 +864,7 @@ export interface Window {
|
|
|
861
864
|
get_monitor(): number
|
|
862
865
|
get_pid(): number
|
|
863
866
|
get_transient(): Window
|
|
864
|
-
get_utf8_prop(prop: string
|
|
867
|
+
get_utf8_prop(prop: string): string | null
|
|
865
868
|
get_window_type(): WindowType
|
|
866
869
|
get_xid(): number
|
|
867
870
|
last_active(): number
|
|
@@ -872,7 +875,7 @@ export interface Window {
|
|
|
872
875
|
vfunc_get_monitor(): number
|
|
873
876
|
vfunc_get_pid(): number
|
|
874
877
|
vfunc_get_transient(): Window
|
|
875
|
-
vfunc_get_utf8_prop(prop: string
|
|
878
|
+
vfunc_get_utf8_prop(prop: string): string | null
|
|
876
879
|
vfunc_get_window_type(): WindowType
|
|
877
880
|
vfunc_get_xid(): number
|
|
878
881
|
vfunc_last_active(): number
|
|
@@ -1005,8 +1008,8 @@ export interface TabClass {
|
|
|
1005
1008
|
// Own fields of Bamf-3.Bamf.TabClass
|
|
1006
1009
|
|
|
1007
1010
|
parent_class: ViewClass
|
|
1008
|
-
get_desktop_name: (self: Tab) => string
|
|
1009
|
-
get_location: (self: Tab) => string
|
|
1011
|
+
get_desktop_name: (self: Tab) => string
|
|
1012
|
+
get_location: (self: Tab) => string
|
|
1010
1013
|
get_xid: (self: Tab) => number
|
|
1011
1014
|
get_is_foreground_tab: (self: Tab) => boolean
|
|
1012
1015
|
}
|
|
@@ -1040,8 +1043,8 @@ export interface ViewClass {
|
|
|
1040
1043
|
is_user_visible: (view: View) => boolean
|
|
1041
1044
|
get_name: (view: View) => string | null
|
|
1042
1045
|
get_icon: (view: View) => string | null
|
|
1043
|
-
view_type: (view: View) => string
|
|
1044
|
-
set_path: (view: View, path: string
|
|
1046
|
+
view_type: (view: View) => string
|
|
1047
|
+
set_path: (view: View, path: string) => void
|
|
1045
1048
|
set_sticky: (view: View, value: boolean) => void
|
|
1046
1049
|
click_behavior: (view: View) => ClickBehavior
|
|
1047
1050
|
active_changed: (view: View, active: boolean) => void
|
|
@@ -1085,7 +1088,7 @@ export interface WindowClass {
|
|
|
1085
1088
|
get_xid: (self: Window) => number
|
|
1086
1089
|
get_pid: (self: Window) => number
|
|
1087
1090
|
get_monitor: (self: Window) => number
|
|
1088
|
-
get_utf8_prop: (self: Window, prop: string
|
|
1091
|
+
get_utf8_prop: (self: Window, prop: string) => string | null
|
|
1089
1092
|
maximized: (self: Window) => WindowMaximizationType
|
|
1090
1093
|
last_active: (self: Window) => number
|
|
1091
1094
|
monitor_changed: (window: Window, old_value: number, new_value: number) => void
|
package/bamf-3.d.ts
CHANGED
|
@@ -44,29 +44,29 @@ enum WindowType {
|
|
|
44
44
|
SPLASHSCREEN,
|
|
45
45
|
UNKNOWN,
|
|
46
46
|
}
|
|
47
|
-
const APPLICATION_SIGNAL_DESKTOP_FILE_UPDATED: string
|
|
48
|
-
const APPLICATION_SIGNAL_WINDOW_ADDED: string
|
|
49
|
-
const APPLICATION_SIGNAL_WINDOW_REMOVED: string
|
|
50
|
-
const MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED: string
|
|
51
|
-
const MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED: string
|
|
52
|
-
const MATCHER_SIGNAL_STACKING_ORDER_CHANGED: string
|
|
53
|
-
const MATCHER_SIGNAL_VIEW_CLOSED: string
|
|
54
|
-
const MATCHER_SIGNAL_VIEW_OPENED: string
|
|
55
|
-
const VIEW_SIGNAL_ACTIVE_CHANGED: string
|
|
56
|
-
const VIEW_SIGNAL_CHILD_ADDED: string
|
|
57
|
-
const VIEW_SIGNAL_CHILD_MOVED: string
|
|
58
|
-
const VIEW_SIGNAL_CHILD_REMOVED: string
|
|
59
|
-
const VIEW_SIGNAL_CLOSED: string
|
|
60
|
-
const VIEW_SIGNAL_ICON_CHANGED: string
|
|
61
|
-
const VIEW_SIGNAL_NAME_CHANGED: string
|
|
62
|
-
const VIEW_SIGNAL_RUNNING_CHANGED: string
|
|
63
|
-
const VIEW_SIGNAL_STARTING_CHANGED: string
|
|
64
|
-
const VIEW_SIGNAL_URGENT_CHANGED: string
|
|
65
|
-
const VIEW_SIGNAL_USER_VISIBLE_CHANGED: string
|
|
66
|
-
const WINDOW_SIGNAL_MAXIMIZED_CHANGED: string
|
|
67
|
-
const WINDOW_SIGNAL_MONITOR_CHANGED: string
|
|
47
|
+
const APPLICATION_SIGNAL_DESKTOP_FILE_UPDATED: string
|
|
48
|
+
const APPLICATION_SIGNAL_WINDOW_ADDED: string
|
|
49
|
+
const APPLICATION_SIGNAL_WINDOW_REMOVED: string
|
|
50
|
+
const MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED: string
|
|
51
|
+
const MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED: string
|
|
52
|
+
const MATCHER_SIGNAL_STACKING_ORDER_CHANGED: string
|
|
53
|
+
const MATCHER_SIGNAL_VIEW_CLOSED: string
|
|
54
|
+
const MATCHER_SIGNAL_VIEW_OPENED: string
|
|
55
|
+
const VIEW_SIGNAL_ACTIVE_CHANGED: string
|
|
56
|
+
const VIEW_SIGNAL_CHILD_ADDED: string
|
|
57
|
+
const VIEW_SIGNAL_CHILD_MOVED: string
|
|
58
|
+
const VIEW_SIGNAL_CHILD_REMOVED: string
|
|
59
|
+
const VIEW_SIGNAL_CLOSED: string
|
|
60
|
+
const VIEW_SIGNAL_ICON_CHANGED: string
|
|
61
|
+
const VIEW_SIGNAL_NAME_CHANGED: string
|
|
62
|
+
const VIEW_SIGNAL_RUNNING_CHANGED: string
|
|
63
|
+
const VIEW_SIGNAL_STARTING_CHANGED: string
|
|
64
|
+
const VIEW_SIGNAL_URGENT_CHANGED: string
|
|
65
|
+
const VIEW_SIGNAL_USER_VISIBLE_CHANGED: string
|
|
66
|
+
const WINDOW_SIGNAL_MAXIMIZED_CHANGED: string
|
|
67
|
+
const WINDOW_SIGNAL_MONITOR_CHANGED: string
|
|
68
68
|
interface TabPreviewReadyCallback {
|
|
69
|
-
(self: Tab, preview_data: string
|
|
69
|
+
(self: Tab, preview_data: string): void
|
|
70
70
|
}
|
|
71
71
|
module Application {
|
|
72
72
|
|
|
@@ -115,13 +115,13 @@ interface Application {
|
|
|
115
115
|
* @returns %TRUE if found, %FALSE otherwise.
|
|
116
116
|
*/
|
|
117
117
|
get_application_menu(): [ /* returnType */ boolean, /* name */ string | null, /* object_path */ string | null ]
|
|
118
|
-
get_application_type(): string
|
|
118
|
+
get_application_type(): string
|
|
119
119
|
/**
|
|
120
120
|
* Used to fetch the path to the .desktop file associated with the passed application. If
|
|
121
121
|
* none exists, the result is NULL.
|
|
122
122
|
* @returns A string representing the path to the desktop file.
|
|
123
123
|
*/
|
|
124
|
-
get_desktop_file(): string
|
|
124
|
+
get_desktop_file(): string
|
|
125
125
|
get_focusable_child(): View
|
|
126
126
|
/**
|
|
127
127
|
* Used to discover whether the application wants menu stubs shown.
|
|
@@ -216,8 +216,8 @@ interface Control {
|
|
|
216
216
|
// Owm methods of Bamf-3.Bamf.Control
|
|
217
217
|
|
|
218
218
|
create_local_desktop_file(application: Application): void
|
|
219
|
-
insert_desktop_file(desktop_file: string
|
|
220
|
-
register_application_for_pid(desktop_file: string
|
|
219
|
+
insert_desktop_file(desktop_file: string): void
|
|
220
|
+
register_application_for_pid(desktop_file: string, pid: number): void
|
|
221
221
|
set_approver_behavior(behavior: number): void
|
|
222
222
|
|
|
223
223
|
// Class property signals of Bamf-3.Bamf.Control
|
|
@@ -298,7 +298,7 @@ interface Matcher {
|
|
|
298
298
|
|
|
299
299
|
// Owm methods of Bamf-3.Bamf.Matcher
|
|
300
300
|
|
|
301
|
-
application_is_running(desktop_file: string
|
|
301
|
+
application_is_running(desktop_file: string): boolean
|
|
302
302
|
/**
|
|
303
303
|
* Used to fetch the active #BamfApplication.
|
|
304
304
|
* @returns The active #BamfApplication.
|
|
@@ -309,7 +309,7 @@ interface Matcher {
|
|
|
309
309
|
* @returns The active #BamfWindow.
|
|
310
310
|
*/
|
|
311
311
|
get_active_window(): Window
|
|
312
|
-
get_application_for_desktop_file(desktop_file_path: string
|
|
312
|
+
get_application_for_desktop_file(desktop_file_path: string, create_if_not_found: boolean): Application
|
|
313
313
|
/**
|
|
314
314
|
* Used to fetch the #BamfApplication containing the passed window.
|
|
315
315
|
* @param window The window to look for
|
|
@@ -364,7 +364,7 @@ interface Matcher {
|
|
|
364
364
|
* @param desktop_file
|
|
365
365
|
* @returns A list of xids.
|
|
366
366
|
*/
|
|
367
|
-
get_xids_for_application(desktop_file: string
|
|
367
|
+
get_xids_for_application(desktop_file: string): number[]
|
|
368
368
|
/**
|
|
369
369
|
* Used to effect how bamf performs matching. Desktop files passed to this method will
|
|
370
370
|
* be prefered by bamf to system desktop files.
|
|
@@ -430,7 +430,9 @@ interface Tab {
|
|
|
430
430
|
// Own properties of Bamf-3.Bamf.Tab
|
|
431
431
|
|
|
432
432
|
readonly desktop_id: string | null
|
|
433
|
+
readonly desktopId: string | null
|
|
433
434
|
readonly is_foreground_tab: boolean
|
|
435
|
+
readonly isForegroundTab: boolean
|
|
434
436
|
readonly location: string | null
|
|
435
437
|
readonly xid: number
|
|
436
438
|
|
|
@@ -450,9 +452,9 @@ interface Tab {
|
|
|
450
452
|
* Returns the desktop file for the tab.
|
|
451
453
|
* @returns The tab desktop id or %NULL if not set or available. Do not free the returned value, it belongs to @self.
|
|
452
454
|
*/
|
|
453
|
-
get_desktop_name(): string
|
|
455
|
+
get_desktop_name(): string
|
|
454
456
|
get_is_foreground_tab(): boolean
|
|
455
|
-
get_location(): string
|
|
457
|
+
get_location(): string
|
|
456
458
|
/**
|
|
457
459
|
* The desktop file for the tab.
|
|
458
460
|
* @returns The tab parent window XID id or 0 if not set or available.
|
|
@@ -472,9 +474,9 @@ interface Tab {
|
|
|
472
474
|
* @virtual
|
|
473
475
|
* @returns The tab desktop id or %NULL if not set or available. Do not free the returned value, it belongs to @self.
|
|
474
476
|
*/
|
|
475
|
-
vfunc_get_desktop_name(): string
|
|
477
|
+
vfunc_get_desktop_name(): string
|
|
476
478
|
vfunc_get_is_foreground_tab(): boolean
|
|
477
|
-
vfunc_get_location(): string
|
|
479
|
+
vfunc_get_location(): string
|
|
478
480
|
/**
|
|
479
481
|
* The desktop file for the tab.
|
|
480
482
|
* @virtual
|
|
@@ -632,6 +634,7 @@ interface View {
|
|
|
632
634
|
readonly starting: boolean
|
|
633
635
|
readonly urgent: boolean
|
|
634
636
|
readonly user_visible: boolean
|
|
637
|
+
readonly userVisible: boolean
|
|
635
638
|
|
|
636
639
|
// Own fields of Bamf-3.Bamf.View
|
|
637
640
|
|
|
@@ -658,7 +661,7 @@ interface View {
|
|
|
658
661
|
* The view type of a window is a short string used to represent all views of the same class. These
|
|
659
662
|
* descriptions should not be used to do casting as they are not considered stable.
|
|
660
663
|
*/
|
|
661
|
-
get_view_type(): string
|
|
664
|
+
get_view_type(): string
|
|
662
665
|
has_child(child: View): boolean
|
|
663
666
|
/**
|
|
664
667
|
* Determines if the view is currently active and focused by the user. Useful for an active window indicator.
|
|
@@ -738,7 +741,7 @@ interface View {
|
|
|
738
741
|
vfunc_is_user_visible(): boolean
|
|
739
742
|
vfunc_name_changed(old_name: string | null, new_name: string | null): void
|
|
740
743
|
vfunc_running_changed(running: boolean): void
|
|
741
|
-
vfunc_set_path(path: string
|
|
744
|
+
vfunc_set_path(path: string): void
|
|
742
745
|
vfunc_set_sticky(value: boolean): void
|
|
743
746
|
vfunc_starting_changed(starting: boolean): void
|
|
744
747
|
vfunc_urgent_changed(urgent: boolean): void
|
|
@@ -748,7 +751,7 @@ interface View {
|
|
|
748
751
|
* descriptions should not be used to do casting as they are not considered stable.
|
|
749
752
|
* @virtual
|
|
750
753
|
*/
|
|
751
|
-
vfunc_view_type(): string
|
|
754
|
+
vfunc_view_type(): string
|
|
752
755
|
|
|
753
756
|
// Own signals of Bamf-3.Bamf.View
|
|
754
757
|
|
|
@@ -863,7 +866,7 @@ interface Window {
|
|
|
863
866
|
get_monitor(): number
|
|
864
867
|
get_pid(): number
|
|
865
868
|
get_transient(): Window
|
|
866
|
-
get_utf8_prop(prop: string
|
|
869
|
+
get_utf8_prop(prop: string): string | null
|
|
867
870
|
get_window_type(): WindowType
|
|
868
871
|
get_xid(): number
|
|
869
872
|
last_active(): number
|
|
@@ -874,7 +877,7 @@ interface Window {
|
|
|
874
877
|
vfunc_get_monitor(): number
|
|
875
878
|
vfunc_get_pid(): number
|
|
876
879
|
vfunc_get_transient(): Window
|
|
877
|
-
vfunc_get_utf8_prop(prop: string
|
|
880
|
+
vfunc_get_utf8_prop(prop: string): string | null
|
|
878
881
|
vfunc_get_window_type(): WindowType
|
|
879
882
|
vfunc_get_xid(): number
|
|
880
883
|
vfunc_last_active(): number
|
|
@@ -1007,8 +1010,8 @@ interface TabClass {
|
|
|
1007
1010
|
// Own fields of Bamf-3.Bamf.TabClass
|
|
1008
1011
|
|
|
1009
1012
|
parent_class: ViewClass
|
|
1010
|
-
get_desktop_name: (self: Tab) => string
|
|
1011
|
-
get_location: (self: Tab) => string
|
|
1013
|
+
get_desktop_name: (self: Tab) => string
|
|
1014
|
+
get_location: (self: Tab) => string
|
|
1012
1015
|
get_xid: (self: Tab) => number
|
|
1013
1016
|
get_is_foreground_tab: (self: Tab) => boolean
|
|
1014
1017
|
}
|
|
@@ -1042,8 +1045,8 @@ interface ViewClass {
|
|
|
1042
1045
|
is_user_visible: (view: View) => boolean
|
|
1043
1046
|
get_name: (view: View) => string | null
|
|
1044
1047
|
get_icon: (view: View) => string | null
|
|
1045
|
-
view_type: (view: View) => string
|
|
1046
|
-
set_path: (view: View, path: string
|
|
1048
|
+
view_type: (view: View) => string
|
|
1049
|
+
set_path: (view: View, path: string) => void
|
|
1047
1050
|
set_sticky: (view: View, value: boolean) => void
|
|
1048
1051
|
click_behavior: (view: View) => ClickBehavior
|
|
1049
1052
|
active_changed: (view: View, active: boolean) => void
|
|
@@ -1087,7 +1090,7 @@ interface WindowClass {
|
|
|
1087
1090
|
get_xid: (self: Window) => number
|
|
1088
1091
|
get_pid: (self: Window) => number
|
|
1089
1092
|
get_monitor: (self: Window) => number
|
|
1090
|
-
get_utf8_prop: (self: Window, prop: string
|
|
1093
|
+
get_utf8_prop: (self: Window, prop: string) => string | null
|
|
1091
1094
|
maximized: (self: Window) => WindowMaximizationType
|
|
1092
1095
|
last_active: (self: Window) => number
|
|
1093
1096
|
monitor_changed: (window: Window, old_value: number, new_value: number) => void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/bamf-3",
|
|
3
|
-
"version": "3.0.0-3.2.
|
|
3
|
+
"version": "3.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Bamf-3, generated from library version 3.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "bamf-3.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit bamf-3.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gjs": "^3.2.
|
|
29
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
30
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gjs": "^3.2.7",
|
|
29
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
30
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "*"
|