@gtkx/ffi 0.18.5 → 0.18.6
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/dist/generated/adw/constants.d.ts +2 -2
- package/dist/generated/adw/constants.js +2 -2
- package/dist/generated/gdkwayland/index.d.ts +9 -0
- package/dist/generated/gdkwayland/index.d.ts.map +1 -0
- package/dist/generated/gdkwayland/index.js +9 -0
- package/dist/generated/gdkwayland/index.js.map +1 -0
- package/dist/generated/gdkwayland/wayland-device.d.ts +29 -0
- package/dist/generated/gdkwayland/wayland-device.d.ts.map +1 -0
- package/dist/generated/gdkwayland/wayland-device.js +81 -0
- package/dist/generated/gdkwayland/wayland-device.js.map +1 -0
- package/dist/generated/gdkwayland/wayland-display.d.ts +44 -0
- package/dist/generated/gdkwayland/wayland-display.d.ts.map +1 -0
- package/dist/generated/gdkwayland/wayland-display.js +161 -0
- package/dist/generated/gdkwayland/wayland-display.js.map +1 -0
- package/dist/generated/gdkwayland/wayland-gl-context.d.ts +8 -0
- package/dist/generated/gdkwayland/wayland-gl-context.d.ts.map +1 -0
- package/dist/generated/gdkwayland/wayland-gl-context.js +33 -0
- package/dist/generated/gdkwayland/wayland-gl-context.js.map +1 -0
- package/dist/generated/gdkwayland/wayland-monitor.d.ts +14 -0
- package/dist/generated/gdkwayland/wayland-monitor.d.ts.map +1 -0
- package/dist/generated/gdkwayland/wayland-monitor.js +39 -0
- package/dist/generated/gdkwayland/wayland-monitor.js.map +1 -0
- package/dist/generated/gdkwayland/wayland-popup.d.ts +49 -0
- package/dist/generated/gdkwayland/wayland-popup.d.ts.map +1 -0
- package/dist/generated/gdkwayland/wayland-popup.js +199 -0
- package/dist/generated/gdkwayland/wayland-popup.js.map +1 -0
- package/dist/generated/gdkwayland/wayland-seat.d.ts +14 -0
- package/dist/generated/gdkwayland/wayland-seat.d.ts.map +1 -0
- package/dist/generated/gdkwayland/wayland-seat.js +39 -0
- package/dist/generated/gdkwayland/wayland-seat.js.map +1 -0
- package/dist/generated/gdkwayland/wayland-surface.d.ts +16 -0
- package/dist/generated/gdkwayland/wayland-surface.d.ts.map +1 -0
- package/dist/generated/gdkwayland/wayland-surface.js +53 -0
- package/dist/generated/gdkwayland/wayland-surface.js.map +1 -0
- package/dist/generated/gdkwayland/wayland-toplevel.d.ts +252 -0
- package/dist/generated/gdkwayland/wayland-toplevel.d.ts.map +1 -0
- package/dist/generated/gdkwayland/wayland-toplevel.js +1022 -0
- package/dist/generated/gdkwayland/wayland-toplevel.js.map +1 -0
- package/dist/generated/gst/constants.d.ts +1 -1
- package/dist/generated/gst/constants.d.ts.map +1 -1
- package/dist/generated/gst/constants.js +1 -1
- package/dist/generated/gst/constants.js.map +1 -1
- package/dist/generated/gtk4layershell/functions.d.ts +18 -7
- package/dist/generated/gtk4layershell/functions.d.ts.map +1 -1
- package/dist/generated/gtk4layershell/functions.js +50 -5
- package/dist/generated/gtk4layershell/functions.js.map +1 -1
- package/dist/generated/gtk4sessionlock/functions.d.ts +3 -0
- package/dist/generated/gtk4sessionlock/functions.d.ts.map +1 -0
- package/dist/generated/gtk4sessionlock/functions.js +8 -0
- package/dist/generated/gtk4sessionlock/functions.js.map +1 -0
- package/dist/generated/gtk4sessionlock/index.d.ts +3 -0
- package/dist/generated/gtk4sessionlock/index.d.ts.map +1 -0
- package/dist/generated/gtk4sessionlock/index.js +3 -0
- package/dist/generated/gtk4sessionlock/index.js.map +1 -0
- package/dist/generated/gtk4sessionlock/instance.d.ts +36 -0
- package/dist/generated/gtk4sessionlock/instance.d.ts.map +1 -0
- package/dist/generated/gtk4sessionlock/instance.js +215 -0
- package/dist/generated/gtk4sessionlock/instance.js.map +1 -0
- package/dist/generated/vte/constants.d.ts +1 -1
- package/dist/generated/vte/constants.js +1 -1
- package/package.json +3 -3
- package/src/generated/adw/constants.ts +2 -2
- package/src/generated/gdkwayland/index.ts +8 -0
- package/src/generated/gdkwayland/wayland-device.ts +99 -0
- package/src/generated/gdkwayland/wayland-display.ts +197 -0
- package/src/generated/gdkwayland/wayland-gl-context.ts +39 -0
- package/src/generated/gdkwayland/wayland-monitor.ts +45 -0
- package/src/generated/gdkwayland/wayland-popup.ts +247 -0
- package/src/generated/gdkwayland/wayland-seat.ts +45 -0
- package/src/generated/gdkwayland/wayland-surface.ts +65 -0
- package/src/generated/gdkwayland/wayland-toplevel.ts +1260 -0
- package/src/generated/gst/constants.ts +1 -1
- package/src/generated/gtk4layershell/functions.ts +62 -8
- package/src/generated/gtk4sessionlock/functions.ts +8 -0
- package/src/generated/gtk4sessionlock/index.ts +2 -0
- package/src/generated/gtk4sessionlock/instance.ts +271 -0
- package/src/generated/vte/constants.ts +1 -1
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { isInstantiating, setInstantiating } from "../../lifecycle.js";
|
|
2
|
+
import { call } from "../../native.js";
|
|
3
|
+
import { getNativeObject, registerNativeClass, registerNativeObject } from "../../registry.js";
|
|
4
|
+
import { WaylandSurface } from "./wayland-surface.js";
|
|
5
|
+
/** The Wayland implementation of `GdkPopup`. */
|
|
6
|
+
export class WaylandPopup extends WaylandSurface {
|
|
7
|
+
static glibTypeName = "GdkWaylandPopup";
|
|
8
|
+
static objectType = "gobject";
|
|
9
|
+
constructor() {
|
|
10
|
+
if (!isInstantiating) {
|
|
11
|
+
setInstantiating(true);
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
super();
|
|
14
|
+
setInstantiating(false);
|
|
15
|
+
const gtype = call("libgtk-4.so.1", "gdk_wayland_popup_get_type", [], {
|
|
16
|
+
type: "int",
|
|
17
|
+
size: 64,
|
|
18
|
+
unsigned: true,
|
|
19
|
+
});
|
|
20
|
+
this.handle = call("libgobject-2.0.so.0", "g_object_new", [
|
|
21
|
+
{ type: { type: "int", size: 64, unsigned: true }, value: gtype, optional: false },
|
|
22
|
+
{ type: { type: "null" }, value: null, optional: false },
|
|
23
|
+
], { type: "gobject", ownership: "full" });
|
|
24
|
+
registerNativeObject(this);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
super();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/** Returns whether this popup is set to hide on outside clicks. */
|
|
32
|
+
getAutohide() {
|
|
33
|
+
return call("libgtk-4.so.1", "gdk_popup_get_autohide", [
|
|
34
|
+
{
|
|
35
|
+
type: {
|
|
36
|
+
type: "gobject",
|
|
37
|
+
ownership: "borrowed",
|
|
38
|
+
},
|
|
39
|
+
value: this.handle,
|
|
40
|
+
},
|
|
41
|
+
], {
|
|
42
|
+
type: "boolean",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/** Returns the parent surface of a popup. */
|
|
46
|
+
getParent() {
|
|
47
|
+
const ptr = call("libgtk-4.so.1", "gdk_popup_get_parent", [
|
|
48
|
+
{
|
|
49
|
+
type: {
|
|
50
|
+
type: "gobject",
|
|
51
|
+
ownership: "borrowed",
|
|
52
|
+
},
|
|
53
|
+
value: this.handle,
|
|
54
|
+
},
|
|
55
|
+
], {
|
|
56
|
+
type: "gobject",
|
|
57
|
+
ownership: "borrowed",
|
|
58
|
+
});
|
|
59
|
+
if (ptr === null)
|
|
60
|
+
return null;
|
|
61
|
+
return getNativeObject(ptr);
|
|
62
|
+
}
|
|
63
|
+
/** Obtains the position of the popup relative to its parent. */
|
|
64
|
+
getPositionX() {
|
|
65
|
+
return call("libgtk-4.so.1", "gdk_popup_get_position_x", [
|
|
66
|
+
{
|
|
67
|
+
type: {
|
|
68
|
+
type: "gobject",
|
|
69
|
+
ownership: "borrowed",
|
|
70
|
+
},
|
|
71
|
+
value: this.handle,
|
|
72
|
+
},
|
|
73
|
+
], {
|
|
74
|
+
type: "int",
|
|
75
|
+
size: 32,
|
|
76
|
+
unsigned: false,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/** Obtains the position of the popup relative to its parent. */
|
|
80
|
+
getPositionY() {
|
|
81
|
+
return call("libgtk-4.so.1", "gdk_popup_get_position_y", [
|
|
82
|
+
{
|
|
83
|
+
type: {
|
|
84
|
+
type: "gobject",
|
|
85
|
+
ownership: "borrowed",
|
|
86
|
+
},
|
|
87
|
+
value: this.handle,
|
|
88
|
+
},
|
|
89
|
+
], {
|
|
90
|
+
type: "int",
|
|
91
|
+
size: 32,
|
|
92
|
+
unsigned: false,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Gets the current popup rectangle anchor.
|
|
97
|
+
*
|
|
98
|
+
* The value returned may change after calling {@link Gdk.Popup.present},
|
|
99
|
+
* or after the {@link Gdk.Surface.:layout} signal is emitted.
|
|
100
|
+
*/
|
|
101
|
+
getRectAnchor() {
|
|
102
|
+
return call("libgtk-4.so.1", "gdk_popup_get_rect_anchor", [
|
|
103
|
+
{
|
|
104
|
+
type: {
|
|
105
|
+
type: "gobject",
|
|
106
|
+
ownership: "borrowed",
|
|
107
|
+
},
|
|
108
|
+
value: this.handle,
|
|
109
|
+
},
|
|
110
|
+
], {
|
|
111
|
+
type: "int",
|
|
112
|
+
size: 32,
|
|
113
|
+
unsigned: false,
|
|
114
|
+
library: "libgtk-4.so.1",
|
|
115
|
+
getTypeFn: "gdk_gravity_get_type",
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Gets the current popup surface anchor.
|
|
120
|
+
*
|
|
121
|
+
* The value returned may change after calling {@link Gdk.Popup.present},
|
|
122
|
+
* or after the {@link Gdk.Surface.:layout} signal is emitted.
|
|
123
|
+
*/
|
|
124
|
+
getSurfaceAnchor() {
|
|
125
|
+
return call("libgtk-4.so.1", "gdk_popup_get_surface_anchor", [
|
|
126
|
+
{
|
|
127
|
+
type: {
|
|
128
|
+
type: "gobject",
|
|
129
|
+
ownership: "borrowed",
|
|
130
|
+
},
|
|
131
|
+
value: this.handle,
|
|
132
|
+
},
|
|
133
|
+
], {
|
|
134
|
+
type: "int",
|
|
135
|
+
size: 32,
|
|
136
|
+
unsigned: false,
|
|
137
|
+
library: "libgtk-4.so.1",
|
|
138
|
+
getTypeFn: "gdk_gravity_get_type",
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Present `popup` after having processed the `GdkPopupLayout` rules.
|
|
143
|
+
*
|
|
144
|
+
* If the popup was previously not showing, it will be shown,
|
|
145
|
+
* otherwise it will change position according to `layout`.
|
|
146
|
+
*
|
|
147
|
+
* After calling this function, the result should be handled in response
|
|
148
|
+
* to the {@link Gdk.Surface.:layout} signal being emitted. The resulting
|
|
149
|
+
* popup position can be queried using {@link Gdk.Popup.get_position_x},
|
|
150
|
+
* {@link Gdk.Popup.get_position_y}, and the resulting size will be sent as
|
|
151
|
+
* parameters in the layout signal. Use {@link Gdk.Popup.get_rect_anchor}
|
|
152
|
+
* and {@link Gdk.Popup.get_surface_anchor} to get the resulting anchors.
|
|
153
|
+
*
|
|
154
|
+
* Presenting may fail, for example if the `popup` is set to autohide
|
|
155
|
+
* and is immediately hidden upon being presented. If presenting failed,
|
|
156
|
+
* the {@link Gdk.Surface.:layout} signal will not me emitted.
|
|
157
|
+
*/
|
|
158
|
+
present(width, height, layout) {
|
|
159
|
+
return call("libgtk-4.so.1", "gdk_popup_present", [
|
|
160
|
+
{
|
|
161
|
+
type: {
|
|
162
|
+
type: "gobject",
|
|
163
|
+
ownership: "borrowed",
|
|
164
|
+
},
|
|
165
|
+
value: this.handle,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
type: {
|
|
169
|
+
type: "int",
|
|
170
|
+
size: 32,
|
|
171
|
+
unsigned: false,
|
|
172
|
+
},
|
|
173
|
+
value: width,
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
type: {
|
|
177
|
+
type: "int",
|
|
178
|
+
size: 32,
|
|
179
|
+
unsigned: false,
|
|
180
|
+
},
|
|
181
|
+
value: height,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
type: {
|
|
185
|
+
type: "boxed",
|
|
186
|
+
ownership: "borrowed",
|
|
187
|
+
innerType: "GdkPopupLayout",
|
|
188
|
+
library: "libgtk-4.so.1",
|
|
189
|
+
getTypeFn: "gdk_popup_layout_get_type",
|
|
190
|
+
},
|
|
191
|
+
value: layout.handle,
|
|
192
|
+
},
|
|
193
|
+
], {
|
|
194
|
+
type: "boolean",
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
registerNativeClass(WaylandPopup);
|
|
199
|
+
//# sourceMappingURL=wayland-popup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-popup.js","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-popup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,gDAAgD;AAChD,MAAM,OAAO,YAAa,SAAQ,cAAc;IAC5C,MAAM,CAAmB,YAAY,GAAW,iBAAiB,CAAC;IAClE,MAAM,CAAmB,UAAU,GAAG,SAAkB,CAAC;IAEzD;QACI,IAAI,CAAC,eAAe,EAAE,CAAC;YACnB,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACvB,aAAa;YACb,KAAK,EAAE,CAAC;YACR,gBAAgB,CAAC,KAAK,CAAC,CAAC;YACxB,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,EAAE,4BAA4B,EAAE,EAAE,EAAE;gBAClE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,IAAI;aACjB,CAAC,CAAC;YACH,IAAI,CAAC,MAAM,GAAG,IAAI,CACd,qBAAqB,EACrB,cAAc,EACd;gBACI,EAAE,IAAI,EAAE,EAAE,IA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Ac,EAAE,MAAuB;QAC1D,OAAO,IAAI,CACP,eAAe,EACf,mBAAmB,EACnB;YACI;gBACI,IAAI,EAAE;oBACF,IAAI,EAAE,SAAS;oBACf,SAAS,EAAE,UAAU;iBACxB;gBACD,KAAK,EAAE,IAAI,CAAC,MAAM;aACrB;YACD;gBACI,IAAI,EAAE;oBACF,IAAI,EAAE,KAAK;oBACX,IAAI,EAAE,EAAE;oBACR,QAAQ,EAAE,KAAK;iBAClB;gBACD,KAAK,EAAE,KAAK;aACf;YACD;gBACI,IAAI,EAAE;oBACF,IAAI,EAAE,KAAK;oBACX,IAAI,EAAE,EAAE;oBACR,QAAQ,EAAE,KAAK;iBAClB;gBACD,KAAK,EAAE,MAAM;aAChB;YACD;gBACI,IAAI,EAAE;oBACF,IAAI,EAAE,OAAO;oBACb,SAAS,EAAE,UAAU;oBACrB,SAAS,EAAE,gBAAgB;oBAC3B,OAAO,EAAE,eAAe;oBACxB,SAAS,EAAE,2BAA2B;iBACzC;gBACD,KAAK,EAAE,MAAM,CAAC,MAAM;aACvB;SACJ,EACD;YACI,IAAI,EAAE,SAAS;SAClB,CACO,CAAC;IACjB,CAAC;;AAEL,mBAAmB,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Gdk from "../gdk/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The Wayland implementation of `GdkSeat`.
|
|
4
|
+
*
|
|
5
|
+
* Beyond the regular {@link Gdk.Seat} API, the Wayland implementation
|
|
6
|
+
* provides access to the Wayland `wl_seat` object with
|
|
7
|
+
* {@link GdkWayland.WaylandSeat.get_wl_seat}.
|
|
8
|
+
*/
|
|
9
|
+
export declare class WaylandSeat extends Gdk.Seat {
|
|
10
|
+
static readonly glibTypeName: string;
|
|
11
|
+
static readonly objectType: "gobject";
|
|
12
|
+
constructor();
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=wayland-seat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-seat.d.ts","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-seat.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AAEvC;;;;;;GAMG;AACH,qBAAa,WAAY,SAAQ,GAAG,CAAC,IAAI;IACrC,gBAAyB,YAAY,EAAE,MAAM,CAAoB;IACjE,gBAAyB,UAAU,EAAG,SAAS,CAAU;;CA4B5D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { isInstantiating, setInstantiating } from "../../lifecycle.js";
|
|
2
|
+
import { call } from "../../native.js";
|
|
3
|
+
import { registerNativeClass, registerNativeObject } from "../../registry.js";
|
|
4
|
+
import * as Gdk from "../gdk/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* The Wayland implementation of `GdkSeat`.
|
|
7
|
+
*
|
|
8
|
+
* Beyond the regular {@link Gdk.Seat} API, the Wayland implementation
|
|
9
|
+
* provides access to the Wayland `wl_seat` object with
|
|
10
|
+
* {@link GdkWayland.WaylandSeat.get_wl_seat}.
|
|
11
|
+
*/
|
|
12
|
+
export class WaylandSeat extends Gdk.Seat {
|
|
13
|
+
static glibTypeName = "GdkWaylandSeat";
|
|
14
|
+
static objectType = "gobject";
|
|
15
|
+
constructor() {
|
|
16
|
+
if (!isInstantiating) {
|
|
17
|
+
setInstantiating(true);
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
super();
|
|
20
|
+
setInstantiating(false);
|
|
21
|
+
const gtype = call("libgtk-4.so.1", "gdk_wayland_seat_get_type", [], {
|
|
22
|
+
type: "int",
|
|
23
|
+
size: 64,
|
|
24
|
+
unsigned: true,
|
|
25
|
+
});
|
|
26
|
+
this.handle = call("libgobject-2.0.so.0", "g_object_new", [
|
|
27
|
+
{ type: { type: "int", size: 64, unsigned: true }, value: gtype, optional: false },
|
|
28
|
+
{ type: { type: "null" }, value: null, optional: false },
|
|
29
|
+
], { type: "gobject", ownership: "full" });
|
|
30
|
+
registerNativeObject(this);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
super();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
registerNativeClass(WaylandSeat);
|
|
39
|
+
//# sourceMappingURL=wayland-seat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-seat.js","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-seat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,OAAO,WAAY,SAAQ,GAAG,CAAC,IAAI;IACrC,MAAM,CAAmB,YAAY,GAAW,gBAAgB,CAAC;IACjE,MAAM,CAAmB,UAAU,GAAG,SAAkB,CAAC;IAEzD;QACI,IAAI,CAAC,eAAe,EAAE,CAAC;YACnB,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACvB,aAAa;YACb,KAAK,EAAE,CAAC;YACR,gBAAgB,CAAC,KAAK,CAAC,CAAC;YACxB,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,EAAE,2BAA2B,EAAE,EAAE,EAAE;gBACjE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,IAAI;aACjB,CAAC,CAAC;YACH,IAAI,CAAC,MAAM,GAAG,IAAI,CACd,qBAAqB,EACrB,cAAc,EACd;gBACI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE;gBAClF,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE;aAC3D,EACD,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,CACzB,CAAC;YAClB,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;aAAM,CAAC;YACJ,aAAa;YACb,KAAK,EAAE,CAAC;QACZ,CAAC;IACL,CAAC;;AAEL,mBAAmB,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Gdk from "../gdk/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The Wayland implementation of `GdkSurface`.
|
|
4
|
+
*
|
|
5
|
+
* Beyond the {@link Gdk.Surface} API, the Wayland implementation offers
|
|
6
|
+
* access to the Wayland `wl_surface` object with
|
|
7
|
+
* {@link GdkWayland.WaylandSurface.get_wl_surface}.
|
|
8
|
+
*/
|
|
9
|
+
export declare class WaylandSurface extends Gdk.Surface {
|
|
10
|
+
static readonly glibTypeName: string;
|
|
11
|
+
static readonly objectType: "gobject";
|
|
12
|
+
constructor();
|
|
13
|
+
/** Forces next commit. */
|
|
14
|
+
forceNextCommit(): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=wayland-surface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-surface.d.ts","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-surface.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AAEvC;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,GAAG,CAAC,OAAO;IAC3C,gBAAyB,YAAY,EAAE,MAAM,CAAuB;IACpE,gBAAyB,UAAU,EAAG,SAAS,CAAU;;IA6BzD,0BAA0B;IAC1B,eAAe;CAkBlB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { isInstantiating, setInstantiating } from "../../lifecycle.js";
|
|
2
|
+
import { call } from "../../native.js";
|
|
3
|
+
import { registerNativeClass, registerNativeObject } from "../../registry.js";
|
|
4
|
+
import * as Gdk from "../gdk/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* The Wayland implementation of `GdkSurface`.
|
|
7
|
+
*
|
|
8
|
+
* Beyond the {@link Gdk.Surface} API, the Wayland implementation offers
|
|
9
|
+
* access to the Wayland `wl_surface` object with
|
|
10
|
+
* {@link GdkWayland.WaylandSurface.get_wl_surface}.
|
|
11
|
+
*/
|
|
12
|
+
export class WaylandSurface extends Gdk.Surface {
|
|
13
|
+
static glibTypeName = "GdkWaylandSurface";
|
|
14
|
+
static objectType = "gobject";
|
|
15
|
+
constructor() {
|
|
16
|
+
if (!isInstantiating) {
|
|
17
|
+
setInstantiating(true);
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
super();
|
|
20
|
+
setInstantiating(false);
|
|
21
|
+
const gtype = call("libgtk-4.so.1", "gdk_wayland_surface_get_type", [], {
|
|
22
|
+
type: "int",
|
|
23
|
+
size: 64,
|
|
24
|
+
unsigned: true,
|
|
25
|
+
});
|
|
26
|
+
this.handle = call("libgobject-2.0.so.0", "g_object_new", [
|
|
27
|
+
{ type: { type: "int", size: 64, unsigned: true }, value: gtype, optional: false },
|
|
28
|
+
{ type: { type: "null" }, value: null, optional: false },
|
|
29
|
+
], { type: "gobject", ownership: "full" });
|
|
30
|
+
registerNativeObject(this);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
super();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/** Forces next commit. */
|
|
38
|
+
forceNextCommit() {
|
|
39
|
+
call("libgtk-4.so.1", "gdk_wayland_surface_force_next_commit", [
|
|
40
|
+
{
|
|
41
|
+
type: {
|
|
42
|
+
type: "gobject",
|
|
43
|
+
ownership: "borrowed",
|
|
44
|
+
},
|
|
45
|
+
value: this.handle,
|
|
46
|
+
},
|
|
47
|
+
], {
|
|
48
|
+
type: "undefined",
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
registerNativeClass(WaylandSurface);
|
|
53
|
+
//# sourceMappingURL=wayland-surface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-surface.js","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,OAAO,cAAe,SAAQ,GAAG,CAAC,OAAO;IAC3C,MAAM,CAAmB,YAAY,GAAW,mBAAmB,CAAC;IACpE,MAAM,CAAmB,UAAU,GAAG,SAAkB,CAAC;IAEzD;QACI,IAAI,CAAC,eAAe,EAAE,CAAC;YACnB,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACvB,aAAa;YACb,KAAK,EAAE,CAAC;YACR,gBAAgB,CAAC,KAAK,CAAC,CAAC;YACxB,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,EAAE,8BAA8B,EAAE,EAAE,EAAE;gBACpE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,IAAI;aACjB,CAAC,CAAC;YACH,IAAI,CAAC,MAAM,GAAG,IAAI,CACd,qBAAqB,EACrB,cAAc,EACd;gBACI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE;gBAClF,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE;aAC3D,EACD,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,CACzB,CAAC;YAClB,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;aAAM,CAAC;YACJ,aAAa;YACb,KAAK,EAAE,CAAC;QACZ,CAAC;IACL,CAAC;IAED,0BAA0B;IAC1B,eAAe;QACX,IAAI,CACA,eAAe,EACf,uCAAuC,EACvC;YACI;gBACI,IAAI,EAAE;oBACF,IAAI,EAAE,SAAS;oBACf,SAAS,EAAE,UAAU;iBACxB;gBACD,KAAK,EAAE,IAAI,CAAC,MAAM;aACrB;SACJ,EACD;YACI,IAAI,EAAE,WAAW;SACpB,CACJ,CAAC;IACN,CAAC;;AAEL,mBAAmB,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { WaylandSurface } from "./wayland-surface.js";
|
|
2
|
+
import * as Gdk from "../gdk/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* The Wayland implementation of `GdkToplevel`.
|
|
5
|
+
*
|
|
6
|
+
* Beyond the {@link Gdk.Toplevel} API, the Wayland implementation
|
|
7
|
+
* has API to set up cross-process parent-child relationships between
|
|
8
|
+
* surfaces with {@link GdkWayland.WaylandToplevel.export_handle} and
|
|
9
|
+
* {@link GdkWayland.WaylandToplevel.set_transient_for_exported}.
|
|
10
|
+
*/
|
|
11
|
+
export declare class WaylandToplevel extends WaylandSurface {
|
|
12
|
+
static readonly glibTypeName: string;
|
|
13
|
+
static readonly objectType: "gobject";
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* Destroy a handle that was obtained with gdk_wayland_toplevel_export_handle().
|
|
17
|
+
*
|
|
18
|
+
* Note that this API depends on an unstable Wayland protocol,
|
|
19
|
+
* and thus may require changes in the future.
|
|
20
|
+
*/
|
|
21
|
+
dropExportedHandle(handle: string): void;
|
|
22
|
+
/** Sets the application id on a `GdkToplevel`. */
|
|
23
|
+
setApplicationId(applicationId: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Marks `toplevel` as transient for the surface to which the given
|
|
26
|
+
* `parent_handle_str` refers.
|
|
27
|
+
*
|
|
28
|
+
* Typically, the handle will originate from a
|
|
29
|
+
* {@link GdkWayland.WaylandToplevel.export_handle} call in another process.
|
|
30
|
+
*
|
|
31
|
+
* Note that this API depends on an unstable Wayland protocol,
|
|
32
|
+
* and thus may require changes in the future.
|
|
33
|
+
*/
|
|
34
|
+
setTransientForExported(parentHandleStr: string): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Destroys the handle that was obtained with
|
|
37
|
+
* gdk_wayland_toplevel_export_handle().
|
|
38
|
+
*
|
|
39
|
+
* It is an error to call this function on a surface that
|
|
40
|
+
* does not have a handle.
|
|
41
|
+
*
|
|
42
|
+
* Since 4.12, this function does nothing. Use
|
|
43
|
+
* {@link GdkWayland.WaylandToplevel.drop_exported_handle} instead to drop a
|
|
44
|
+
* handle that was obtained with {@link GdkWayland.WaylandToplevel.export_handle}.
|
|
45
|
+
*
|
|
46
|
+
* Note that this API depends on an unstable Wayland protocol,
|
|
47
|
+
* and thus may require changes in the future.
|
|
48
|
+
*/
|
|
49
|
+
unexportHandle(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Begins an interactive move operation.
|
|
52
|
+
*
|
|
53
|
+
* You might use this function to implement draggable titlebars.
|
|
54
|
+
*/
|
|
55
|
+
beginMove(device: Gdk.Device, button: number, x: number, y: number, timestamp: number): void;
|
|
56
|
+
/**
|
|
57
|
+
* Begins an interactive resize operation.
|
|
58
|
+
*
|
|
59
|
+
* You might use this function to implement a “window resize grip.”
|
|
60
|
+
*/
|
|
61
|
+
beginResize(edge: Gdk.SurfaceEdge, button: number, x: number, y: number, timestamp: number, device?: Gdk.Device | null): void;
|
|
62
|
+
/**
|
|
63
|
+
* Sets keyboard focus to `surface`.
|
|
64
|
+
*
|
|
65
|
+
* In most cases, gtk_window_present_with_time()
|
|
66
|
+
* should be used on a GtkWindow, rather than
|
|
67
|
+
* calling this function.
|
|
68
|
+
*/
|
|
69
|
+
focus(timestamp: number): void;
|
|
70
|
+
/** The capabilities that are available for this toplevel. */
|
|
71
|
+
getCapabilities(): Gdk.ToplevelCapabilities;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the gravity that is used when changing the toplevel
|
|
74
|
+
* size programmatically.
|
|
75
|
+
*/
|
|
76
|
+
getGravity(): Gdk.Gravity;
|
|
77
|
+
/**
|
|
78
|
+
* Gets the bitwise or of the currently active surface state flags,
|
|
79
|
+
* from the `GdkToplevelState` enumeration.
|
|
80
|
+
*/
|
|
81
|
+
getState(): Gdk.ToplevelState;
|
|
82
|
+
/**
|
|
83
|
+
* Requests that the `toplevel` inhibit the system shortcuts.
|
|
84
|
+
*
|
|
85
|
+
* This is asking the desktop environment/windowing system to let all
|
|
86
|
+
* keyboard events reach the surface, as long as it is focused, instead
|
|
87
|
+
* of triggering system actions.
|
|
88
|
+
*
|
|
89
|
+
* If granted, the rerouting remains active until the default shortcuts
|
|
90
|
+
* processing is restored with {@link Gdk.Toplevel.restore_system_shortcuts},
|
|
91
|
+
* or the request is revoked by the desktop environment, windowing system
|
|
92
|
+
* or the user.
|
|
93
|
+
*
|
|
94
|
+
* A typical use case for this API is remote desktop or virtual machine
|
|
95
|
+
* viewers which need to inhibit the default system keyboard shortcuts
|
|
96
|
+
* so that the remote session or virtual host gets those instead of the
|
|
97
|
+
* local environment.
|
|
98
|
+
*
|
|
99
|
+
* The windowing system or desktop environment may ask the user to grant
|
|
100
|
+
* or deny the request or even choose to ignore the request entirely.
|
|
101
|
+
*
|
|
102
|
+
* The caller can be notified whenever the request is granted or revoked
|
|
103
|
+
* by listening to the {@link Gdk.Toplevel.shortcuts-inhibited} property.
|
|
104
|
+
*/
|
|
105
|
+
inhibitSystemShortcuts(event?: Gdk.Event | null): void;
|
|
106
|
+
/**
|
|
107
|
+
* Asks to lower the `toplevel` below other windows.
|
|
108
|
+
*
|
|
109
|
+
* The windowing system may choose to ignore the request.
|
|
110
|
+
*/
|
|
111
|
+
lower(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Asks to minimize the `toplevel`.
|
|
114
|
+
*
|
|
115
|
+
* The windowing system may choose to ignore the request.
|
|
116
|
+
*/
|
|
117
|
+
minimize(): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Present `toplevel` after having processed the `GdkToplevelLayout` rules.
|
|
120
|
+
*
|
|
121
|
+
* If the toplevel was previously not showing, it will be showed,
|
|
122
|
+
* otherwise it will change layout according to `layout`.
|
|
123
|
+
*
|
|
124
|
+
* GDK may emit the {@link Gdk.Toplevel.:compute-size} signal to let
|
|
125
|
+
* the user of this toplevel compute the preferred size of the toplevel
|
|
126
|
+
* surface.
|
|
127
|
+
*
|
|
128
|
+
* Presenting is asynchronous and the specified layout parameters are not
|
|
129
|
+
* guaranteed to be respected.
|
|
130
|
+
*/
|
|
131
|
+
present(layout: Gdk.ToplevelLayout): void;
|
|
132
|
+
/**
|
|
133
|
+
* Restore default system keyboard shortcuts which were previously
|
|
134
|
+
* inhibited.
|
|
135
|
+
*
|
|
136
|
+
* This undoes the effect of {@link Gdk.Toplevel.inhibit_system_shortcuts}.
|
|
137
|
+
*/
|
|
138
|
+
restoreSystemShortcuts(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Sets the toplevel to be decorated.
|
|
141
|
+
*
|
|
142
|
+
* Setting `decorated` to %FALSE hints the desktop environment
|
|
143
|
+
* that the surface has its own, client-side decorations and
|
|
144
|
+
* does not need to have window decorations added.
|
|
145
|
+
*/
|
|
146
|
+
setDecorated(decorated: boolean): void;
|
|
147
|
+
/**
|
|
148
|
+
* Sets the toplevel to be deletable.
|
|
149
|
+
*
|
|
150
|
+
* Setting `deletable` to %TRUE hints the desktop environment
|
|
151
|
+
* that it should offer the user a way to close the surface.
|
|
152
|
+
*/
|
|
153
|
+
setDeletable(deletable: boolean): void;
|
|
154
|
+
/**
|
|
155
|
+
* Sets the gravity that is used when changing the toplevel
|
|
156
|
+
* size programmatically.
|
|
157
|
+
*/
|
|
158
|
+
setGravity(gravity: Gdk.Gravity): void;
|
|
159
|
+
/**
|
|
160
|
+
* Sets a list of icons for the surface.
|
|
161
|
+
*
|
|
162
|
+
* One of these will be used to represent the surface in iconic form.
|
|
163
|
+
* The icon may be shown in window lists or task bars. Which icon
|
|
164
|
+
* size is shown depends on the window manager. The window manager
|
|
165
|
+
* can scale the icon but setting several size icons can give better
|
|
166
|
+
* image quality.
|
|
167
|
+
*
|
|
168
|
+
* Note that some platforms don't support surface icons.
|
|
169
|
+
*/
|
|
170
|
+
setIconList(surfaces: Gdk.Texture[]): void;
|
|
171
|
+
/**
|
|
172
|
+
* Sets the toplevel to be modal.
|
|
173
|
+
*
|
|
174
|
+
* The application can use this hint to tell the
|
|
175
|
+
* window manager that a certain surface has modal
|
|
176
|
+
* behaviour. The window manager can use this information
|
|
177
|
+
* to handle modal surfaces in a special way.
|
|
178
|
+
*
|
|
179
|
+
* You should only use this on surfaces for which you have
|
|
180
|
+
* previously called {@link Gdk.Toplevel.set_transient_for}.
|
|
181
|
+
*/
|
|
182
|
+
setModal(modal: boolean): void;
|
|
183
|
+
/**
|
|
184
|
+
* Sets the startup notification ID.
|
|
185
|
+
*
|
|
186
|
+
* When using GTK, typically you should use
|
|
187
|
+
* gtk_window_set_startup_id()
|
|
188
|
+
* instead of this low-level function.
|
|
189
|
+
*/
|
|
190
|
+
setStartupId(startupId: string): void;
|
|
191
|
+
/**
|
|
192
|
+
* Sets the title of a toplevel surface.
|
|
193
|
+
*
|
|
194
|
+
* The title maybe be displayed in the titlebar,
|
|
195
|
+
* in lists of windows, etc.
|
|
196
|
+
*/
|
|
197
|
+
setTitle(title: string): void;
|
|
198
|
+
/**
|
|
199
|
+
* Sets a transient-for parent.
|
|
200
|
+
*
|
|
201
|
+
* Indicates to the window manager that `surface` is a transient
|
|
202
|
+
* dialog associated with the application surface `parent`. This
|
|
203
|
+
* allows the window manager to do things like center `surface`
|
|
204
|
+
* on `parent` and keep `surface` above `parent`.
|
|
205
|
+
*
|
|
206
|
+
* See gtk_window_set_transient_for()
|
|
207
|
+
* if you’re using GtkWindow.
|
|
208
|
+
*/
|
|
209
|
+
setTransientFor(parent: Gdk.Surface): void;
|
|
210
|
+
/**
|
|
211
|
+
* Asks the windowing system to show the window menu.
|
|
212
|
+
*
|
|
213
|
+
* The window menu is the menu shown when right-clicking the titlebar
|
|
214
|
+
* on traditional windows managed by the window manager. This is useful
|
|
215
|
+
* for windows using client-side decorations, activating it with a
|
|
216
|
+
* right-click on the window decorations.
|
|
217
|
+
*/
|
|
218
|
+
showWindowMenu(event: Gdk.Event): boolean;
|
|
219
|
+
/**
|
|
220
|
+
* Returns whether the desktop environment supports
|
|
221
|
+
* tiled window states.
|
|
222
|
+
*/
|
|
223
|
+
supportsEdgeConstraints(): boolean;
|
|
224
|
+
/** Performs a title bar gesture. */
|
|
225
|
+
titlebarGesture(gesture: Gdk.TitlebarGesture): boolean;
|
|
226
|
+
connect(signal: "compute-size", handler: (self: WaylandToplevel, size: Gdk.ToplevelSize) => void, after?: boolean): number;
|
|
227
|
+
connect(signal: string, handler: (...args: any[]) => any, after?: boolean): number;
|
|
228
|
+
/** Gets Whether the window manager should add decorations. */
|
|
229
|
+
getDecorated(): boolean;
|
|
230
|
+
/** Gets Whether the window manager should allow to close the surface. */
|
|
231
|
+
getDeletable(): boolean;
|
|
232
|
+
/** Gets The fullscreen mode of the surface. */
|
|
233
|
+
getFullscreenMode(): Gdk.FullscreenMode;
|
|
234
|
+
/** Gets Whether the surface is modal. */
|
|
235
|
+
getModal(): boolean;
|
|
236
|
+
/** Gets Whether the surface should inhibit keyboard shortcuts. */
|
|
237
|
+
getShortcutsInhibited(): boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Gets The startup ID of the surface.
|
|
240
|
+
*
|
|
241
|
+
* See {@link Gdk.AppLaunchContext} for more information about
|
|
242
|
+
* startup feedback.
|
|
243
|
+
*/
|
|
244
|
+
getStartupId(): string;
|
|
245
|
+
/** Gets The title of the surface. */
|
|
246
|
+
getTitle(): string;
|
|
247
|
+
/** Gets The transient parent of the surface. */
|
|
248
|
+
getTransientFor(): Gdk.Surface;
|
|
249
|
+
/** Sets The fullscreen mode of the surface. */
|
|
250
|
+
setFullscreenMode(value: Gdk.FullscreenMode): void;
|
|
251
|
+
}
|
|
252
|
+
//# sourceMappingURL=wayland-toplevel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-toplevel.d.ts","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-toplevel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AAEvC;;;;;;;GAOG;AACH,qBAAa,eAAgB,SAAQ,cAAc;IAC/C,gBAAyB,YAAY,EAAE,MAAM,CAAwB;IACrE,gBAAyB,UAAU,EAAG,SAAS,CAAU;;IA6BzD;;;;;OAKG;IACH,kBAAkB,CAAC,MAAM,EAAE,MAAM;IA0BjC,kDAAkD;IAClD,gBAAgB,CAAC,aAAa,EAAE,MAAM;IA0BtC;;;;;;;;;OASG;IACH,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO;IA0BzD;;;;;;;;;;;;;OAaG;IACH,cAAc;IAmBd;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAwDrF;;;;OAIG;IACH,WAAW,CACP,IAAI,EAAE,GAAG,CAAC,WAAW,EACrB,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,MA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