@gtkx/ffi 0.18.5 → 0.18.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/dist/generated/adw/breakpoint-condition.js +24 -24
- package/dist/generated/adw/breakpoint-condition.js.map +1 -1
- package/dist/generated/adw/constants.d.ts +2 -2
- package/dist/generated/adw/constants.js +2 -2
- package/dist/generated/adw/spring-params.js +30 -30
- package/dist/generated/adw/spring-params.js.map +1 -1
- 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/glib/bytes.js +46 -46
- package/dist/generated/glib/bytes.js.map +1 -1
- package/dist/generated/glib/variant.js +259 -259
- package/dist/generated/glib/variant.js.map +1 -1
- 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/pango/attribute.js +52 -52
- package/dist/generated/pango/attribute.js.map +1 -1
- 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/breakpoint-condition.ts +24 -24
- package/src/generated/adw/constants.ts +2 -2
- package/src/generated/adw/spring-params.ts +30 -30
- 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/glib/bytes.ts +46 -46
- package/src/generated/glib/variant.ts +259 -259
- 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/pango/attribute.ts +52 -52
- package/src/generated/vte/constants.ts +1 -1
|
@@ -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":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,MAAM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AAE,KAAK;oBACX,IAAI,EAAE,EAAE;oBACR,QAAQ,EAAE,KAAK;iBAClB;gBACD,KAAK,EAAE,IAAI;aACd;SACJ,EACD;YACI,IAAI,EAAE,WAAW;SACpB,CACJ,CAAC;IACN,CAAC;IAED;;;;;;;;;;OAUG;IACH,wBAAwB,CAAC,SAAiB;QACtC,IAAI,CACA,eAAe,EACf,iDAAiD,EACjD;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,QAAQ;oBACd,SAAS,EAAE,UAAU;iBACxB;gBACD,KAAK,EAAE,SAAS;aACnB;SACJ,EACD;YACI,IAAI,EAAE,WAAW;SACpB,CACJ,CAAC;IACN,CAAC;;AAEL,mBAAmB,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -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,mBAAm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
|
+
*
|
|
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"}
|
|
@@ -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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U;iBACxB;gBACD,KAAK,EAAE,IAAI,CAAC,MAAM;aACrB;SACJ,EACD;YACI,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,eAAe;YACxB,SAAS,EAAE,sBAAsB;SACpC,CACW,CAAC;IACrB,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,KAAa,EAAE,MAAc,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"}
|