@gtkx/ffi 0.18.4 → 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
|
@@ -7,12 +7,12 @@ export declare const DURATION_INFINITE = 4294967295;
|
|
|
7
7
|
/** Adwaita major version component (e.g. 1 if the version is 1.2.3). */
|
|
8
8
|
export declare const MAJOR_VERSION = 1;
|
|
9
9
|
/** Adwaita micro version component (e.g. 3 if the version is 1.2.3). */
|
|
10
|
-
export declare const MICRO_VERSION =
|
|
10
|
+
export declare const MICRO_VERSION = 3;
|
|
11
11
|
/** Adwaita minor version component (e.g. 2 if the version is 1.2.3). */
|
|
12
12
|
export declare const MINOR_VERSION = 8;
|
|
13
13
|
/**
|
|
14
14
|
* Adwaita version, encoded as a string, useful for printing and
|
|
15
15
|
* concatenation.
|
|
16
16
|
*/
|
|
17
|
-
export declare const VERSION_S = "1.8.
|
|
17
|
+
export declare const VERSION_S = "1.8.3";
|
|
18
18
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -7,12 +7,12 @@ export const DURATION_INFINITE = 4294967295;
|
|
|
7
7
|
/** Adwaita major version component (e.g. 1 if the version is 1.2.3). */
|
|
8
8
|
export const MAJOR_VERSION = 1;
|
|
9
9
|
/** Adwaita micro version component (e.g. 3 if the version is 1.2.3). */
|
|
10
|
-
export const MICRO_VERSION =
|
|
10
|
+
export const MICRO_VERSION = 3;
|
|
11
11
|
/** Adwaita minor version component (e.g. 2 if the version is 1.2.3). */
|
|
12
12
|
export const MINOR_VERSION = 8;
|
|
13
13
|
/**
|
|
14
14
|
* Adwaita version, encoded as a string, useful for printing and
|
|
15
15
|
* concatenation.
|
|
16
16
|
*/
|
|
17
|
-
export const VERSION_S = "1.8.
|
|
17
|
+
export const VERSION_S = "1.8.3";
|
|
18
18
|
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./wayland-device.js";
|
|
2
|
+
export * from "./wayland-display.js";
|
|
3
|
+
export * from "./wayland-gl-context.js";
|
|
4
|
+
export * from "./wayland-monitor.js";
|
|
5
|
+
export * from "./wayland-popup.js";
|
|
6
|
+
export * from "./wayland-seat.js";
|
|
7
|
+
export * from "./wayland-surface.js";
|
|
8
|
+
export * from "./wayland-toplevel.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/gdkwayland/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./wayland-device.js";
|
|
2
|
+
export * from "./wayland-display.js";
|
|
3
|
+
export * from "./wayland-gl-context.js";
|
|
4
|
+
export * from "./wayland-monitor.js";
|
|
5
|
+
export * from "./wayland-popup.js";
|
|
6
|
+
export * from "./wayland-seat.js";
|
|
7
|
+
export * from "./wayland-surface.js";
|
|
8
|
+
export * from "./wayland-toplevel.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/gdkwayland/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Gdk from "../gdk/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The Wayland implementation of `GdkDevice`.
|
|
4
|
+
*
|
|
5
|
+
* Beyond the regular {@link Gdk.Device} API, the Wayland implementation
|
|
6
|
+
* provides access to Wayland objects such as the `wl_seat` with
|
|
7
|
+
* {@link GdkWayland.WaylandDevice.get_wl_seat}, the `wl_keyboard` with
|
|
8
|
+
* {@link GdkWayland.WaylandDevice.get_wl_keyboard} and the `wl_pointer` with
|
|
9
|
+
* {@link GdkWayland.WaylandDevice.get_wl_pointer}.
|
|
10
|
+
*/
|
|
11
|
+
export declare class WaylandDevice extends Gdk.Device {
|
|
12
|
+
static readonly glibTypeName: string;
|
|
13
|
+
static readonly objectType: "gobject";
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* Returns the `/dev/input/event*` path of this device.
|
|
17
|
+
*
|
|
18
|
+
* For `GdkDevice`s that possibly coalesce multiple hardware
|
|
19
|
+
* devices (eg. mouse, keyboard, touch,...), this function
|
|
20
|
+
* will return %NULL.
|
|
21
|
+
*
|
|
22
|
+
* This is most notably implemented for devices of type
|
|
23
|
+
* %GDK_SOURCE_PEN, %GDK_SOURCE_TABLET_PAD.
|
|
24
|
+
*/
|
|
25
|
+
getNodePath(): string | null;
|
|
26
|
+
/** Returns the `xkb_keymap` of a `GdkDevice`. */
|
|
27
|
+
getXkbKeymap(): number | null;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=wayland-device.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-device.d.ts","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-device.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AAEvC;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,GAAG,CAAC,MAAM;IACzC,gBAAyB,YAAY,EAAE,MAAM,CAAsB;IACnE,gBAAyB,UAAU,EAAG,SAAS,CAAU;;IA6BzD;;;;;;;;;OASG;IACH,WAAW,IAAI,MAAM,GAAG,IAAI;IAoB5B,iDAAiD;IACjD,YAAY,IAAI,MAAM,GAAG,IAAI;CAoBhC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 `GdkDevice`.
|
|
7
|
+
*
|
|
8
|
+
* Beyond the regular {@link Gdk.Device} API, the Wayland implementation
|
|
9
|
+
* provides access to Wayland objects such as the `wl_seat` with
|
|
10
|
+
* {@link GdkWayland.WaylandDevice.get_wl_seat}, the `wl_keyboard` with
|
|
11
|
+
* {@link GdkWayland.WaylandDevice.get_wl_keyboard} and the `wl_pointer` with
|
|
12
|
+
* {@link GdkWayland.WaylandDevice.get_wl_pointer}.
|
|
13
|
+
*/
|
|
14
|
+
export class WaylandDevice extends Gdk.Device {
|
|
15
|
+
static glibTypeName = "GdkWaylandDevice";
|
|
16
|
+
static objectType = "gobject";
|
|
17
|
+
constructor() {
|
|
18
|
+
if (!isInstantiating) {
|
|
19
|
+
setInstantiating(true);
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
super();
|
|
22
|
+
setInstantiating(false);
|
|
23
|
+
const gtype = call("libgtk-4.so.1", "gdk_wayland_device_get_type", [], {
|
|
24
|
+
type: "int",
|
|
25
|
+
size: 64,
|
|
26
|
+
unsigned: true,
|
|
27
|
+
});
|
|
28
|
+
this.handle = call("libgobject-2.0.so.0", "g_object_new", [
|
|
29
|
+
{ type: { type: "int", size: 64, unsigned: true }, value: gtype, optional: false },
|
|
30
|
+
{ type: { type: "null" }, value: null, optional: false },
|
|
31
|
+
], { type: "gobject", ownership: "full" });
|
|
32
|
+
registerNativeObject(this);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
super();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns the `/dev/input/event*` path of this device.
|
|
41
|
+
*
|
|
42
|
+
* For `GdkDevice`s that possibly coalesce multiple hardware
|
|
43
|
+
* devices (eg. mouse, keyboard, touch,...), this function
|
|
44
|
+
* will return %NULL.
|
|
45
|
+
*
|
|
46
|
+
* This is most notably implemented for devices of type
|
|
47
|
+
* %GDK_SOURCE_PEN, %GDK_SOURCE_TABLET_PAD.
|
|
48
|
+
*/
|
|
49
|
+
getNodePath() {
|
|
50
|
+
return call("libgtk-4.so.1", "gdk_wayland_device_get_node_path", [
|
|
51
|
+
{
|
|
52
|
+
type: {
|
|
53
|
+
type: "gobject",
|
|
54
|
+
ownership: "borrowed",
|
|
55
|
+
},
|
|
56
|
+
value: this.handle,
|
|
57
|
+
},
|
|
58
|
+
], {
|
|
59
|
+
type: "string",
|
|
60
|
+
ownership: "borrowed",
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/** Returns the `xkb_keymap` of a `GdkDevice`. */
|
|
64
|
+
getXkbKeymap() {
|
|
65
|
+
return call("libgtk-4.so.1", "gdk_wayland_device_get_xkb_keymap", [
|
|
66
|
+
{
|
|
67
|
+
type: {
|
|
68
|
+
type: "gobject",
|
|
69
|
+
ownership: "borrowed",
|
|
70
|
+
},
|
|
71
|
+
value: this.handle,
|
|
72
|
+
},
|
|
73
|
+
], {
|
|
74
|
+
type: "int",
|
|
75
|
+
size: 64,
|
|
76
|
+
unsigned: true,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
registerNativeClass(WaylandDevice);
|
|
81
|
+
//# sourceMappingURL=wayland-device.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-device.js","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-device.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;;;;;;;;GAQG;AACH,MAAM,OAAO,aAAc,SAAQ,GAAG,CAAC,MAAM;IACzC,MAAM,CAAmB,YAAY,GAAW,kBAAkB,CAAC;IACnE,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,6BAA6B,EAAE,EAAE,EAAE;gBACnE,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;;;;;;;;;OASG;IACH,WAAW;QACP,OAAO,IAAI,CACP,eAAe,EACf,kCAAkC,EAClC;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,QAAQ;YACd,SAAS,EAAE,UAAU;SACxB,CACa,CAAC;IACvB,CAAC;IAED,iDAAiD;IACjD,YAAY;QACR,OAAO,IAAI,CACP,eAAe,EACf,mCAAmC,EACnC;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,KAAK;YACX,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,IAAI;SACjB,CACa,CAAC;IACvB,CAAC;;AAEL,mBAAmB,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as Gdk from "../gdk/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The Wayland implementation of `GdkDisplay`.
|
|
4
|
+
*
|
|
5
|
+
* Beyond the regular {@link Gdk.Display} API, the Wayland implementation
|
|
6
|
+
* provides access to Wayland objects such as the `wl_display` with
|
|
7
|
+
* {@link GdkWayland.WaylandDisplay.get_wl_display}, the `wl_compositor` with
|
|
8
|
+
* {@link GdkWayland.WaylandDisplay.get_wl_compositor}.
|
|
9
|
+
*
|
|
10
|
+
* You can find out what Wayland globals are supported by a display
|
|
11
|
+
* with {@link GdkWayland.WaylandDisplay.query_registry}.
|
|
12
|
+
*/
|
|
13
|
+
export declare class WaylandDisplay extends Gdk.Display {
|
|
14
|
+
static readonly glibTypeName: string;
|
|
15
|
+
static readonly objectType: "gobject";
|
|
16
|
+
constructor();
|
|
17
|
+
/** Retrieves the EGL display connection object for the given GDK display. */
|
|
18
|
+
getEglDisplay(): number | null;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the startup notification ID for a Wayland display, or `NULL`
|
|
21
|
+
* if no ID has been defined.
|
|
22
|
+
*/
|
|
23
|
+
waylandDisplayGetStartupNotificationId(): string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the interface was found in the display
|
|
26
|
+
* `wl_registry.global` handler.
|
|
27
|
+
*/
|
|
28
|
+
queryRegistry(global: string): boolean;
|
|
29
|
+
/** Sets the cursor theme for the given `display`. */
|
|
30
|
+
setCursorTheme(name: string, size: number): void;
|
|
31
|
+
/**
|
|
32
|
+
* Sets the startup notification ID for a display.
|
|
33
|
+
*
|
|
34
|
+
* This is usually taken from the value of the `DESKTOP_STARTUP_ID`
|
|
35
|
+
* environment variable, but in some cases (such as the application not
|
|
36
|
+
* being launched using exec()) it can come from other sources.
|
|
37
|
+
*
|
|
38
|
+
* The startup ID is also what is used to signal that the startup is
|
|
39
|
+
* complete (for example, when opening a window or when calling
|
|
40
|
+
* {@link Gdk.Display.notify_startup_complete}).
|
|
41
|
+
*/
|
|
42
|
+
setStartupNotificationId(startupId: string): void;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=wayland-display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-display.d.ts","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-display.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AAEvC;;;;;;;;;;GAUG;AACH,qBAAa,cAAe,SAAQ,GAAG,CAAC,OAAO;IAC3C,gBAAyB,YAAY,EAAE,MAAM,CAAuB;IACpE,gBAAyB,UAAU,EAAG,SAAS,CAAU;;IA6BzD,6EAA6E;IAC7E,aAAa,IAAI,MAAM,GAAG,IAAI;IAqB9B;;;OAGG;IACH,sCAAsC,IAAI,MAAM,GAAG,IAAI;IAoBvD;;;OAGG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IA0BtC,qDAAqD;IACrD,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAkCzC;;;;;;;;;;OAUG;IACH,wBAAwB,CAAC,SAAS,EAAE,MAAM;CAyB7C"}
|
|
@@ -0,0 +1,161 @@
|
|
|
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 `GdkDisplay`.
|
|
7
|
+
*
|
|
8
|
+
* Beyond the regular {@link Gdk.Display} API, the Wayland implementation
|
|
9
|
+
* provides access to Wayland objects such as the `wl_display` with
|
|
10
|
+
* {@link GdkWayland.WaylandDisplay.get_wl_display}, the `wl_compositor` with
|
|
11
|
+
* {@link GdkWayland.WaylandDisplay.get_wl_compositor}.
|
|
12
|
+
*
|
|
13
|
+
* You can find out what Wayland globals are supported by a display
|
|
14
|
+
* with {@link GdkWayland.WaylandDisplay.query_registry}.
|
|
15
|
+
*/
|
|
16
|
+
export class WaylandDisplay extends Gdk.Display {
|
|
17
|
+
static glibTypeName = "GdkWaylandDisplay";
|
|
18
|
+
static objectType = "gobject";
|
|
19
|
+
constructor() {
|
|
20
|
+
if (!isInstantiating) {
|
|
21
|
+
setInstantiating(true);
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
super();
|
|
24
|
+
setInstantiating(false);
|
|
25
|
+
const gtype = call("libgtk-4.so.1", "gdk_wayland_display_get_type", [], {
|
|
26
|
+
type: "int",
|
|
27
|
+
size: 64,
|
|
28
|
+
unsigned: true,
|
|
29
|
+
});
|
|
30
|
+
this.handle = call("libgobject-2.0.so.0", "g_object_new", [
|
|
31
|
+
{ type: { type: "int", size: 64, unsigned: true }, value: gtype, optional: false },
|
|
32
|
+
{ type: { type: "null" }, value: null, optional: false },
|
|
33
|
+
], { type: "gobject", ownership: "full" });
|
|
34
|
+
registerNativeObject(this);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
super();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/** Retrieves the EGL display connection object for the given GDK display. */
|
|
42
|
+
getEglDisplay() {
|
|
43
|
+
return call("libgtk-4.so.1", "gdk_wayland_display_get_egl_display", [
|
|
44
|
+
{
|
|
45
|
+
type: {
|
|
46
|
+
type: "gobject",
|
|
47
|
+
ownership: "borrowed",
|
|
48
|
+
},
|
|
49
|
+
value: this.handle,
|
|
50
|
+
},
|
|
51
|
+
], {
|
|
52
|
+
type: "int",
|
|
53
|
+
size: 64,
|
|
54
|
+
unsigned: true,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Gets the startup notification ID for a Wayland display, or `NULL`
|
|
59
|
+
* if no ID has been defined.
|
|
60
|
+
*/
|
|
61
|
+
waylandDisplayGetStartupNotificationId() {
|
|
62
|
+
return call("libgtk-4.so.1", "gdk_wayland_display_get_startup_notification_id", [
|
|
63
|
+
{
|
|
64
|
+
type: {
|
|
65
|
+
type: "gobject",
|
|
66
|
+
ownership: "borrowed",
|
|
67
|
+
},
|
|
68
|
+
value: this.handle,
|
|
69
|
+
},
|
|
70
|
+
], {
|
|
71
|
+
type: "string",
|
|
72
|
+
ownership: "borrowed",
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns true if the interface was found in the display
|
|
77
|
+
* `wl_registry.global` handler.
|
|
78
|
+
*/
|
|
79
|
+
queryRegistry(global) {
|
|
80
|
+
return call("libgtk-4.so.1", "gdk_wayland_display_query_registry", [
|
|
81
|
+
{
|
|
82
|
+
type: {
|
|
83
|
+
type: "gobject",
|
|
84
|
+
ownership: "borrowed",
|
|
85
|
+
},
|
|
86
|
+
value: this.handle,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
type: {
|
|
90
|
+
type: "string",
|
|
91
|
+
ownership: "borrowed",
|
|
92
|
+
},
|
|
93
|
+
value: global,
|
|
94
|
+
},
|
|
95
|
+
], {
|
|
96
|
+
type: "boolean",
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/** Sets the cursor theme for the given `display`. */
|
|
100
|
+
setCursorTheme(name, size) {
|
|
101
|
+
call("libgtk-4.so.1", "gdk_wayland_display_set_cursor_theme", [
|
|
102
|
+
{
|
|
103
|
+
type: {
|
|
104
|
+
type: "gobject",
|
|
105
|
+
ownership: "borrowed",
|
|
106
|
+
},
|
|
107
|
+
value: this.handle,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
type: {
|
|
111
|
+
type: "string",
|
|
112
|
+
ownership: "borrowed",
|
|
113
|
+
},
|
|
114
|
+
value: name,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: {
|
|
118
|
+
type: "int",
|
|
119
|
+
size: 32,
|
|
120
|
+
unsigned: false,
|
|
121
|
+
},
|
|
122
|
+
value: size,
|
|
123
|
+
},
|
|
124
|
+
], {
|
|
125
|
+
type: "undefined",
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Sets the startup notification ID for a display.
|
|
130
|
+
*
|
|
131
|
+
* This is usually taken from the value of the `DESKTOP_STARTUP_ID`
|
|
132
|
+
* environment variable, but in some cases (such as the application not
|
|
133
|
+
* being launched using exec()) it can come from other sources.
|
|
134
|
+
*
|
|
135
|
+
* The startup ID is also what is used to signal that the startup is
|
|
136
|
+
* complete (for example, when opening a window or when calling
|
|
137
|
+
* {@link Gdk.Display.notify_startup_complete}).
|
|
138
|
+
*/
|
|
139
|
+
setStartupNotificationId(startupId) {
|
|
140
|
+
call("libgtk-4.so.1", "gdk_wayland_display_set_startup_notification_id", [
|
|
141
|
+
{
|
|
142
|
+
type: {
|
|
143
|
+
type: "gobject",
|
|
144
|
+
ownership: "borrowed",
|
|
145
|
+
},
|
|
146
|
+
value: this.handle,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
type: {
|
|
150
|
+
type: "string",
|
|
151
|
+
ownership: "borrowed",
|
|
152
|
+
},
|
|
153
|
+
value: startupId,
|
|
154
|
+
},
|
|
155
|
+
], {
|
|
156
|
+
type: "undefined",
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
registerNativeClass(WaylandDisplay);
|
|
161
|
+
//# sourceMappingURL=wayland-display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-display.js","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-display.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Gdk from "../gdk/index.js";
|
|
2
|
+
/** The Wayland implementation of `GdkGLContext`. */
|
|
3
|
+
export declare class WaylandGLContext extends Gdk.GLContext {
|
|
4
|
+
static readonly glibTypeName: string;
|
|
5
|
+
static readonly objectType: "gobject";
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=wayland-gl-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-gl-context.d.ts","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-gl-context.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AAEvC,oDAAoD;AACpD,qBAAa,gBAAiB,SAAQ,GAAG,CAAC,SAAS;IAC/C,gBAAyB,YAAY,EAAE,MAAM,CAAyB;IACtE,gBAAyB,UAAU,EAAG,SAAS,CAAU;;CA4B5D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
/** The Wayland implementation of `GdkGLContext`. */
|
|
6
|
+
export class WaylandGLContext extends Gdk.GLContext {
|
|
7
|
+
static glibTypeName = "GdkWaylandGLContext";
|
|
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_gl_context_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
|
+
}
|
|
32
|
+
registerNativeClass(WaylandGLContext);
|
|
33
|
+
//# sourceMappingURL=wayland-gl-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-gl-context.js","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-gl-context.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,oDAAoD;AACpD,MAAM,OAAO,gBAAiB,SAAQ,GAAG,CAAC,SAAS;IAC/C,MAAM,CAAmB,YAAY,GAAW,qBAAqB,CAAC;IACtE,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,iCAAiC,EAAE,EAAE,EAAE;gBACvE,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,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Gdk from "../gdk/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The Wayland implementation of `GdkMonitor`.
|
|
4
|
+
*
|
|
5
|
+
* Beyond the {@link Gdk.Monitor} API, the Wayland implementation
|
|
6
|
+
* offers access to the Wayland `wl_output` object with
|
|
7
|
+
* {@link GdkWayland.WaylandMonitor.get_wl_output}.
|
|
8
|
+
*/
|
|
9
|
+
export declare class WaylandMonitor extends Gdk.Monitor {
|
|
10
|
+
static readonly glibTypeName: string;
|
|
11
|
+
static readonly objectType: "gobject";
|
|
12
|
+
constructor();
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=wayland-monitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-monitor.d.ts","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-monitor.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;;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 `GdkMonitor`.
|
|
7
|
+
*
|
|
8
|
+
* Beyond the {@link Gdk.Monitor} API, the Wayland implementation
|
|
9
|
+
* offers access to the Wayland `wl_output` object with
|
|
10
|
+
* {@link GdkWayland.WaylandMonitor.get_wl_output}.
|
|
11
|
+
*/
|
|
12
|
+
export class WaylandMonitor extends Gdk.Monitor {
|
|
13
|
+
static glibTypeName = "GdkWaylandMonitor";
|
|
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_monitor_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(WaylandMonitor);
|
|
39
|
+
//# sourceMappingURL=wayland-monitor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-monitor.js","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-monitor.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;;AAEL,mBAAmB,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { WaylandSurface } from "./wayland-surface.js";
|
|
2
|
+
import * as Gdk from "../gdk/index.js";
|
|
3
|
+
/** The Wayland implementation of `GdkPopup`. */
|
|
4
|
+
export declare class WaylandPopup extends WaylandSurface {
|
|
5
|
+
static readonly glibTypeName: string;
|
|
6
|
+
static readonly objectType: "gobject";
|
|
7
|
+
constructor();
|
|
8
|
+
/** Returns whether this popup is set to hide on outside clicks. */
|
|
9
|
+
getAutohide(): boolean;
|
|
10
|
+
/** Returns the parent surface of a popup. */
|
|
11
|
+
getParent(): Gdk.Surface | null;
|
|
12
|
+
/** Obtains the position of the popup relative to its parent. */
|
|
13
|
+
getPositionX(): number;
|
|
14
|
+
/** Obtains the position of the popup relative to its parent. */
|
|
15
|
+
getPositionY(): number;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the current popup rectangle anchor.
|
|
18
|
+
*
|
|
19
|
+
* The value returned may change after calling {@link Gdk.Popup.present},
|
|
20
|
+
* or after the {@link Gdk.Surface.:layout} signal is emitted.
|
|
21
|
+
*/
|
|
22
|
+
getRectAnchor(): Gdk.Gravity;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the current popup surface anchor.
|
|
25
|
+
*
|
|
26
|
+
* The value returned may change after calling {@link Gdk.Popup.present},
|
|
27
|
+
* or after the {@link Gdk.Surface.:layout} signal is emitted.
|
|
28
|
+
*/
|
|
29
|
+
getSurfaceAnchor(): Gdk.Gravity;
|
|
30
|
+
/**
|
|
31
|
+
* Present `popup` after having processed the `GdkPopupLayout` rules.
|
|
32
|
+
*
|
|
33
|
+
* If the popup was previously not showing, it will be shown,
|
|
34
|
+
* otherwise it will change position according to `layout`.
|
|
35
|
+
*
|
|
36
|
+
* After calling this function, the result should be handled in response
|
|
37
|
+
* to the {@link Gdk.Surface.:layout} signal being emitted. The resulting
|
|
38
|
+
* popup position can be queried using {@link Gdk.Popup.get_position_x},
|
|
39
|
+
* {@link Gdk.Popup.get_position_y}, and the resulting size will be sent as
|
|
40
|
+
* parameters in the layout signal. Use {@link Gdk.Popup.get_rect_anchor}
|
|
41
|
+
* and {@link Gdk.Popup.get_surface_anchor} to get the resulting anchors.
|
|
42
|
+
*
|
|
43
|
+
* Presenting may fail, for example if the `popup` is set to autohide
|
|
44
|
+
* and is immediately hidden upon being presented. If presenting failed,
|
|
45
|
+
* the {@link Gdk.Surface.:layout} signal will not me emitted.
|
|
46
|
+
*/
|
|
47
|
+
present(width: number, height: number, layout: Gdk.PopupLayout): boolean;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=wayland-popup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wayland-popup.d.ts","sourceRoot":"","sources":["../../../src/generated/gdkwayland/wayland-popup.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AAEvC,gDAAgD;AAChD,qBAAa,YAAa,SAAQ,cAAc;IAC5C,gBAAyB,YAAY,EAAE,MAAM,CAAqB;IAClE,gBAAyB,UAAU,EAAG,SAAS,CAAU;;IA6BzD,mEAAmE;IACnE,WAAW,IAAI,OAAO;IAmBtB,6CAA6C;IAC7C,SAAS,IAAI,GAAG,CAAC,OAAO,GAAG,IAAI;IAsB/B,gEAAgE;IAChE,YAAY,IAAI,MAAM;IAqBtB,gEAAgE;IAChE,YAAY,IAAI,MAAM;IAqBtB;;;;;OAKG;IACH,aAAa,IAAI,GAAG,CAAC,OAAO;IAuB5B;;;;;OAKG;IACH,gBAAgB,IAAI,GAAG,CAAC,OAAO;IAuB/B;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,WAAW,GAAG,OAAO;CA4C3E"}
|