@girs/dbusmenugtk3-0.4 0.4.0-3.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,691 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * DbusmenuGtk3-0.4
10
+ */
11
+
12
+ import type Gtk from '@girs/gtk-3.0';
13
+ import type xlib from '@girs/xlib-2.0';
14
+ import type Gdk from '@girs/gdk-3.0';
15
+ import type cairo from '@girs/cairo-1.0';
16
+ import type Pango from '@girs/pango-1.0';
17
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
18
+ import type freetype2 from '@girs/freetype2-2.0';
19
+ import type GObject from '@girs/gobject-2.0';
20
+ import type GLib from '@girs/glib-2.0';
21
+ import type Gio from '@girs/gio-2.0';
22
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
23
+ import type GModule from '@girs/gmodule-2.0';
24
+ import type Atk from '@girs/atk-1.0';
25
+ import type Dbusmenu from '@girs/dbusmenu-0.4';
26
+
27
+ export namespace DbusmenuGtk3 {
28
+
29
+ const GTK_MENUITEM_H__: number
30
+ /**
31
+ * The Dbusmenu GTK parser adds cached items on the various
32
+ * menu items throughout the tree. Sometimes it can be useful
33
+ * to get that cached item to use directly. This function
34
+ * will retrieve it for you.
35
+ * @param widget A #GtkMenuItem that may have a cached #DbusmenuMenuitem from the parser
36
+ * @returns A pointer to the cached item or NULL if it isn't there.
37
+ */
38
+ function gtk_parse_get_cached_item(widget: Gtk.Widget): Dbusmenu.Menuitem
39
+ /**
40
+ * Goes through the GTK structures and turns them into the appropraite
41
+ * Dbusmenu structures along with setting up all the relationships
42
+ * between the objects. It also stores the dbusmenu items as a cache
43
+ * on the GTK items so that they'll be reused if necissary.
44
+ * @param widget A #GtkMenuItem or #GtkMenuShell to turn into a #DbusmenuMenuitem
45
+ * @returns A dbusmenu item representing the menu structure
46
+ */
47
+ function gtk_parse_menu_structure(widget: Gtk.Widget): Dbusmenu.Menuitem
48
+ /**
49
+ * This function looks on the menu item for a property by the
50
+ * name of `property`. If one exists it tries to turn it into
51
+ * a #GdkPixbuf. It assumes that the property is a base64 encoded
52
+ * PNG file like the one created by #dbusmenu_menuite_property_set_image.
53
+ * @param menuitem The #DbusmenuMenuitem to look for the property on
54
+ * @param property The name of the property to look for.
55
+ * @returns A pixbuf or #NULL to signal error.
56
+ */
57
+ function menuitem_property_get_image(menuitem: Dbusmenu.Menuitem, property: string | null): GdkPixbuf.Pixbuf
58
+ /**
59
+ * This function gets a GTK shortcut as a key and a mask
60
+ * for use to set the accelerators.
61
+ * @param menuitem The #DbusmenuMenuitem to get the shortcut off
62
+ */
63
+ function menuitem_property_get_shortcut(menuitem: Dbusmenu.Menuitem): [ /* key */ number, /* modifier */ Gdk.ModifierType ]
64
+ /**
65
+ * This function takes the pixbuf that is stored in `data` and
66
+ * turns it into a base64 encoded PNG so that it can be placed
67
+ * onto a standard #DbusmenuMenuitem property.
68
+ * @param menuitem The #DbusmenuMenuitem to set the property on.
69
+ * @param property Name of the property to set.
70
+ * @param data The image to place on the property.
71
+ * @returns Whether the function was able to set the property or not.
72
+ */
73
+ function menuitem_property_set_image(menuitem: Dbusmenu.Menuitem, property: string | null, data: GdkPixbuf.Pixbuf): boolean
74
+ /**
75
+ * Takes the modifer described by `key` and `modifier` and places that into
76
+ * the format sending across Dbus for shortcuts.
77
+ * @param menuitem The #DbusmenuMenuitem to set the shortcut on
78
+ * @param key The keycode of the key to send
79
+ * @param modifier A bitmask of modifiers used to activate the item
80
+ * @returns Whether it was successful at setting the property.
81
+ */
82
+ function menuitem_property_set_shortcut(menuitem: Dbusmenu.Menuitem, key: number, modifier: Gdk.ModifierType): boolean
83
+ /**
84
+ * Takes the shortcut that is installed on a menu item and calls
85
+ * #dbusmenu_menuitem_property_set_shortcut with it. It also sets
86
+ * up listeners to watch it change.
87
+ * @param menuitem The #DbusmenuMenuitem to set the shortcut on
88
+ * @param gmi A menu item to steal the shortcut off of
89
+ * @returns Whether it was successful at setting the property.
90
+ */
91
+ function menuitem_property_set_shortcut_menuitem(menuitem: Dbusmenu.Menuitem, gmi: Gtk.MenuItem): boolean
92
+ /**
93
+ * This function takes a GTK shortcut string as defined in
94
+ * #gtk_accelerator_parse and turns that into the information
95
+ * required to send it over DBusmenu.
96
+ * @param menuitem The #DbusmenuMenuitem to set the shortcut on
97
+ * @param shortcut String describing the shortcut
98
+ * @returns Whether it was successful at setting the property.
99
+ */
100
+ function menuitem_property_set_shortcut_string(menuitem: Dbusmenu.Menuitem, shortcut: string | null): boolean
101
+ module Client {
102
+
103
+ // Constructor properties interface
104
+
105
+ interface ConstructorProperties extends Dbusmenu.Client.ConstructorProperties {
106
+ }
107
+
108
+ }
109
+
110
+ interface Client {
111
+
112
+ // Owm methods of DbusmenuGtk3-0.4.DbusmenuGtk3.Client
113
+
114
+ /**
115
+ * Gets the accel group for this client.
116
+ * @returns Either a valid group or #NULL on error or none set.
117
+ */
118
+ get_accel_group(): Gtk.AccelGroup
119
+ /**
120
+ * This grabs the #GtkMenuItem that is associated with the
121
+ * #DbusmenuMenuitem.
122
+ * @param item #DbusmenuMenuitem to get associated #GtkMenuItem on.
123
+ * @returns The #GtkMenuItem that can be played with.
124
+ */
125
+ menuitem_get(item: Dbusmenu.Menuitem): Gtk.MenuItem
126
+ /**
127
+ * This grabs the submenu associated with the menuitem.
128
+ * @param item #DbusmenuMenuitem to get associated #GtkMenu on.
129
+ * @returns The #GtkMenu if there is one.
130
+ */
131
+ menuitem_get_submenu(item: Dbusmenu.Menuitem): Gtk.Menu
132
+ /**
133
+ * This function provides some of the basic connectivity for being in
134
+ * the GTK world. Things like visibility and sensitivity of the item are
135
+ * handled here so that the subclasses don't have to. If you're building
136
+ * your on GTK menu item you can use this function to apply those basic
137
+ * attributes so that you don't have to deal with them either.
138
+ *
139
+ * This also handles passing the "activate" signal back to the
140
+ * #DbusmenuMenuitem side of thing.
141
+ * @param item The #DbusmenuMenuitem to attach the GTK-isms to
142
+ * @param gmi A #GtkMenuItem representing the GTK world's view of this menuitem
143
+ * @param parent The parent #DbusmenuMenuitem
144
+ */
145
+ newitem_base(item: Dbusmenu.Menuitem, gmi: Gtk.MenuItem, parent: Dbusmenu.Menuitem): void
146
+ /**
147
+ * Sets the acceleration group for the menu items with accelerators
148
+ * on this client.
149
+ * @param agroup The new acceleration group
150
+ */
151
+ set_accel_group(agroup: Gtk.AccelGroup): void
152
+
153
+ // Class property signals of DbusmenuGtk3-0.4.DbusmenuGtk3.Client
154
+
155
+ connect(sigName: "notify::dbus-name", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
156
+ connect_after(sigName: "notify::dbus-name", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
157
+ emit(sigName: "notify::dbus-name", ...args: any[]): void
158
+ connect(sigName: "notify::dbus-object", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
159
+ connect_after(sigName: "notify::dbus-object", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
160
+ emit(sigName: "notify::dbus-object", ...args: any[]): void
161
+ connect(sigName: "notify::group-events", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
162
+ connect_after(sigName: "notify::group-events", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
163
+ emit(sigName: "notify::group-events", ...args: any[]): void
164
+ connect(sigName: string, callback: (...args: any[]) => void): number
165
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
166
+ emit(sigName: string, ...args: any[]): void
167
+ disconnect(id: number): void
168
+ }
169
+
170
+ /**
171
+ * A subclass of #DbusmenuClient to add functionality with regarding
172
+ * building GTK items out of the abstract tree.
173
+ * @class
174
+ */
175
+ class Client extends Dbusmenu.Client {
176
+
177
+ // Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.Client
178
+
179
+ static name: string
180
+ static $gtype: GObject.GType<Client>
181
+
182
+ // Constructors of DbusmenuGtk3-0.4.DbusmenuGtk3.Client
183
+
184
+ constructor(config?: Client.ConstructorProperties)
185
+ /**
186
+ * Creates a new #DbusmenuGtkClient object and creates a #DbusmenuClient
187
+ * that connects across DBus to a #DbusmenuServer.
188
+ * @constructor
189
+ * @param dbus_name Name of the #DbusmenuServer on DBus
190
+ * @param dbus_object Name of the object on the #DbusmenuServer
191
+ * @returns A new #DbusmenuGtkClient sync'd with a server
192
+ */
193
+ constructor(dbus_name: string | null, dbus_object: string | null)
194
+ /**
195
+ * Creates a new #DbusmenuGtkClient object and creates a #DbusmenuClient
196
+ * that connects across DBus to a #DbusmenuServer.
197
+ * @constructor
198
+ * @param dbus_name Name of the #DbusmenuServer on DBus
199
+ * @param dbus_object Name of the object on the #DbusmenuServer
200
+ * @returns A new #DbusmenuGtkClient sync'd with a server
201
+ */
202
+ static new(dbus_name: string | null, dbus_object: string | null): Client
203
+
204
+ // Overloads of new
205
+
206
+ /**
207
+ * This function creates a new client that connects to a specific
208
+ * server on DBus. That server is at a specific location sharing
209
+ * a known object. The interface is assumed by the code to be
210
+ * the DBus menu interface. The newly created client will start
211
+ * sending out events as it syncs up with the server.
212
+ * @constructor
213
+ * @param name The DBus name for the server to connect to
214
+ * @param object The object on the server to monitor
215
+ * @returns A brand new #DbusmenuClient
216
+ */
217
+ static new(name: string | null, object: string | null): Dbusmenu.Client
218
+ _init(config?: Client.ConstructorProperties): void
219
+ }
220
+
221
+ module Menu {
222
+
223
+ // Constructor properties interface
224
+
225
+ interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.Menu.ConstructorProperties {
226
+
227
+ // Own constructor properties of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
228
+
229
+ dbus_name?: string | null
230
+ dbus_object?: string | null
231
+ }
232
+
233
+ }
234
+
235
+ interface Menu extends Atk.ImplementorIface, Gtk.Buildable {
236
+
237
+ // Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
238
+
239
+ readonly dbus_name: string | null
240
+ readonly dbus_object: string | null
241
+
242
+ // Own fields of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
243
+
244
+ parent: Gtk.Menu & Gtk.Container
245
+ priv: MenuPrivate
246
+
247
+ // Owm methods of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
248
+
249
+ /**
250
+ * An accessor for the client that this menu is using to
251
+ * communicate with the server.
252
+ * @returns A valid #DbusmenuGtkClient or NULL on error.
253
+ */
254
+ get_client(): Client
255
+
256
+ // Conflicting methods
257
+
258
+ /**
259
+ * Sets an accelerator path for this menu from which accelerator paths
260
+ * for its immediate children, its menu items, can be constructed.
261
+ * The main purpose of this function is to spare the programmer the
262
+ * inconvenience of having to call gtk_menu_item_set_accel_path() on
263
+ * each menu item that should support runtime user changable accelerators.
264
+ * Instead, by just calling gtk_menu_set_accel_path() on their parent,
265
+ * each menu item of this menu, that contains a label describing its
266
+ * purpose, automatically gets an accel path assigned.
267
+ *
268
+ * For example, a menu containing menu items “New” and “Exit”, will, after
269
+ * `gtk_menu_set_accel_path (menu, "<Gnumeric-Sheet>/File");` has been
270
+ * called, assign its items the accel paths: `"<Gnumeric-Sheet>/File/New"`
271
+ * and `"<Gnumeric-Sheet>/File/Exit"`.
272
+ *
273
+ * Assigning accel paths to menu items then enables the user to change
274
+ * their accelerators at runtime. More details about accelerator paths
275
+ * and their default setups can be found at gtk_accel_map_add_entry().
276
+ *
277
+ * Note that `accel_path` string will be stored in a #GQuark. Therefore,
278
+ * if you pass a static string, you can save some memory by interning
279
+ * it first with g_intern_static_string().
280
+ * @param accel_path a valid accelerator path, or %NULL to unset the path
281
+ */
282
+ set_accel_path(accel_path: string | null): void
283
+
284
+ // Overloads of set_accel_path
285
+
286
+ /**
287
+ * Given an accelerator group, `accel_group,` and an accelerator path,
288
+ * `accel_path,` sets up an accelerator in `accel_group` so whenever the
289
+ * key binding that is defined for `accel_path` is pressed, `widget`
290
+ * will be activated. This removes any accelerators (for any
291
+ * accelerator group) installed by previous calls to
292
+ * gtk_widget_set_accel_path(). Associating accelerators with
293
+ * paths allows them to be modified by the user and the modifications
294
+ * to be saved for future use. (See gtk_accel_map_save().)
295
+ *
296
+ * This function is a low level function that would most likely
297
+ * be used by a menu creation system like #GtkUIManager. If you
298
+ * use #GtkUIManager, setting up accelerator paths will be done
299
+ * automatically.
300
+ *
301
+ * Even when you you aren’t using #GtkUIManager, if you only want to
302
+ * set up accelerators on menu items gtk_menu_item_set_accel_path()
303
+ * provides a somewhat more convenient interface.
304
+ *
305
+ * Note that `accel_path` string will be stored in a #GQuark. Therefore, if you
306
+ * pass a static string, you can save some memory by interning it first with
307
+ * g_intern_static_string().
308
+ * @param accel_path path used to look up the accelerator
309
+ * @param accel_group a #GtkAccelGroup.
310
+ */
311
+ set_accel_path(accel_path: string | null, accel_group: Gtk.AccelGroup | null): void
312
+ /**
313
+ * Given an accelerator group, `accel_group,` and an accelerator path,
314
+ * `accel_path,` sets up an accelerator in `accel_group` so whenever the
315
+ * key binding that is defined for `accel_path` is pressed, `widget`
316
+ * will be activated. This removes any accelerators (for any
317
+ * accelerator group) installed by previous calls to
318
+ * gtk_widget_set_accel_path(). Associating accelerators with
319
+ * paths allows them to be modified by the user and the modifications
320
+ * to be saved for future use. (See gtk_accel_map_save().)
321
+ *
322
+ * This function is a low level function that would most likely
323
+ * be used by a menu creation system like #GtkUIManager. If you
324
+ * use #GtkUIManager, setting up accelerator paths will be done
325
+ * automatically.
326
+ *
327
+ * Even when you you aren’t using #GtkUIManager, if you only want to
328
+ * set up accelerators on menu items gtk_menu_item_set_accel_path()
329
+ * provides a somewhat more convenient interface.
330
+ *
331
+ * Note that `accel_path` string will be stored in a #GQuark. Therefore, if you
332
+ * pass a static string, you can save some memory by interning it first with
333
+ * g_intern_static_string().
334
+ * @param accel_path path used to look up the accelerator
335
+ * @param accel_group a #GtkAccelGroup.
336
+ */
337
+ set_accel_path(accel_path: string | null, accel_group: Gtk.AccelGroup | null): void
338
+ /**
339
+ * Emits a #GtkWidget::child-notify signal for the
340
+ * [child property][child-properties]
341
+ * `child_property` on the child.
342
+ *
343
+ * This is an analogue of g_object_notify() for child properties.
344
+ *
345
+ * Also see gtk_widget_child_notify().
346
+ * @param child the child widget
347
+ * @param child_property the name of a child property installed on the class of `container`
348
+ */
349
+ child_notify(child: Gtk.Widget, child_property: string | null): void
350
+
351
+ // Overloads of child_notify
352
+
353
+ /**
354
+ * Emits a #GtkWidget::child-notify signal for the
355
+ * [child property][child-properties] `child_property`
356
+ * on `widget`.
357
+ *
358
+ * This is the analogue of g_object_notify() for child properties.
359
+ *
360
+ * Also see gtk_container_child_notify().
361
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
362
+ */
363
+ child_notify(child_property: string | null): void
364
+ /**
365
+ * Emits a #GtkWidget::child-notify signal for the
366
+ * [child property][child-properties] `child_property`
367
+ * on `widget`.
368
+ *
369
+ * This is the analogue of g_object_notify() for child properties.
370
+ *
371
+ * Also see gtk_container_child_notify().
372
+ * @param child_property the name of a child property installed on the class of `widget’`s parent
373
+ */
374
+ child_notify(child_property: string | null): void
375
+
376
+ // Class property signals of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
377
+
378
+ connect(sigName: "notify::dbus-name", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
379
+ connect_after(sigName: "notify::dbus-name", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
380
+ emit(sigName: "notify::dbus-name", ...args: any[]): void
381
+ connect(sigName: "notify::dbus-object", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
382
+ connect_after(sigName: "notify::dbus-object", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
383
+ emit(sigName: "notify::dbus-object", ...args: any[]): void
384
+ connect(sigName: "notify::accel-group", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
385
+ connect_after(sigName: "notify::accel-group", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
386
+ emit(sigName: "notify::accel-group", ...args: any[]): void
387
+ connect(sigName: "notify::accel-path", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
388
+ connect_after(sigName: "notify::accel-path", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
389
+ emit(sigName: "notify::accel-path", ...args: any[]): void
390
+ connect(sigName: "notify::active", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
391
+ connect_after(sigName: "notify::active", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
392
+ emit(sigName: "notify::active", ...args: any[]): void
393
+ connect(sigName: "notify::anchor-hints", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
394
+ connect_after(sigName: "notify::anchor-hints", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
395
+ emit(sigName: "notify::anchor-hints", ...args: any[]): void
396
+ connect(sigName: "notify::attach-widget", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
397
+ connect_after(sigName: "notify::attach-widget", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
398
+ emit(sigName: "notify::attach-widget", ...args: any[]): void
399
+ connect(sigName: "notify::menu-type-hint", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
400
+ connect_after(sigName: "notify::menu-type-hint", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
401
+ emit(sigName: "notify::menu-type-hint", ...args: any[]): void
402
+ connect(sigName: "notify::monitor", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
403
+ connect_after(sigName: "notify::monitor", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
404
+ emit(sigName: "notify::monitor", ...args: any[]): void
405
+ connect(sigName: "notify::rect-anchor-dx", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
406
+ connect_after(sigName: "notify::rect-anchor-dx", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
407
+ emit(sigName: "notify::rect-anchor-dx", ...args: any[]): void
408
+ connect(sigName: "notify::rect-anchor-dy", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
409
+ connect_after(sigName: "notify::rect-anchor-dy", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
410
+ emit(sigName: "notify::rect-anchor-dy", ...args: any[]): void
411
+ connect(sigName: "notify::reserve-toggle-size", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
412
+ connect_after(sigName: "notify::reserve-toggle-size", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
413
+ emit(sigName: "notify::reserve-toggle-size", ...args: any[]): void
414
+ connect(sigName: "notify::tearoff-state", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
415
+ connect_after(sigName: "notify::tearoff-state", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
416
+ emit(sigName: "notify::tearoff-state", ...args: any[]): void
417
+ connect(sigName: "notify::tearoff-title", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
418
+ connect_after(sigName: "notify::tearoff-title", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
419
+ emit(sigName: "notify::tearoff-title", ...args: any[]): void
420
+ connect(sigName: "notify::take-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
421
+ connect_after(sigName: "notify::take-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
422
+ emit(sigName: "notify::take-focus", ...args: any[]): void
423
+ connect(sigName: "notify::border-width", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
424
+ connect_after(sigName: "notify::border-width", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
425
+ emit(sigName: "notify::border-width", ...args: any[]): void
426
+ connect(sigName: "notify::child", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
427
+ connect_after(sigName: "notify::child", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
428
+ emit(sigName: "notify::child", ...args: any[]): void
429
+ connect(sigName: "notify::resize-mode", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
430
+ connect_after(sigName: "notify::resize-mode", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
431
+ emit(sigName: "notify::resize-mode", ...args: any[]): void
432
+ connect(sigName: "notify::app-paintable", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
433
+ connect_after(sigName: "notify::app-paintable", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
434
+ emit(sigName: "notify::app-paintable", ...args: any[]): void
435
+ connect(sigName: "notify::can-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
436
+ connect_after(sigName: "notify::can-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
437
+ emit(sigName: "notify::can-default", ...args: any[]): void
438
+ connect(sigName: "notify::can-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
439
+ connect_after(sigName: "notify::can-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
440
+ emit(sigName: "notify::can-focus", ...args: any[]): void
441
+ connect(sigName: "notify::composite-child", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
442
+ connect_after(sigName: "notify::composite-child", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
443
+ emit(sigName: "notify::composite-child", ...args: any[]): void
444
+ connect(sigName: "notify::double-buffered", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
445
+ connect_after(sigName: "notify::double-buffered", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
446
+ emit(sigName: "notify::double-buffered", ...args: any[]): void
447
+ connect(sigName: "notify::events", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
448
+ connect_after(sigName: "notify::events", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
449
+ emit(sigName: "notify::events", ...args: any[]): void
450
+ connect(sigName: "notify::expand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
451
+ connect_after(sigName: "notify::expand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
452
+ emit(sigName: "notify::expand", ...args: any[]): void
453
+ connect(sigName: "notify::focus-on-click", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
454
+ connect_after(sigName: "notify::focus-on-click", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
455
+ emit(sigName: "notify::focus-on-click", ...args: any[]): void
456
+ connect(sigName: "notify::halign", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
457
+ connect_after(sigName: "notify::halign", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
458
+ emit(sigName: "notify::halign", ...args: any[]): void
459
+ connect(sigName: "notify::has-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
460
+ connect_after(sigName: "notify::has-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
461
+ emit(sigName: "notify::has-default", ...args: any[]): void
462
+ connect(sigName: "notify::has-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
463
+ connect_after(sigName: "notify::has-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
464
+ emit(sigName: "notify::has-focus", ...args: any[]): void
465
+ connect(sigName: "notify::has-tooltip", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
466
+ connect_after(sigName: "notify::has-tooltip", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
467
+ emit(sigName: "notify::has-tooltip", ...args: any[]): void
468
+ connect(sigName: "notify::height-request", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
469
+ connect_after(sigName: "notify::height-request", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
470
+ emit(sigName: "notify::height-request", ...args: any[]): void
471
+ connect(sigName: "notify::hexpand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
472
+ connect_after(sigName: "notify::hexpand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
473
+ emit(sigName: "notify::hexpand", ...args: any[]): void
474
+ connect(sigName: "notify::hexpand-set", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
475
+ connect_after(sigName: "notify::hexpand-set", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
476
+ emit(sigName: "notify::hexpand-set", ...args: any[]): void
477
+ connect(sigName: "notify::is-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
478
+ connect_after(sigName: "notify::is-focus", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
479
+ emit(sigName: "notify::is-focus", ...args: any[]): void
480
+ connect(sigName: "notify::margin", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
481
+ connect_after(sigName: "notify::margin", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
482
+ emit(sigName: "notify::margin", ...args: any[]): void
483
+ connect(sigName: "notify::margin-bottom", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
484
+ connect_after(sigName: "notify::margin-bottom", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
485
+ emit(sigName: "notify::margin-bottom", ...args: any[]): void
486
+ connect(sigName: "notify::margin-end", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
487
+ connect_after(sigName: "notify::margin-end", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
488
+ emit(sigName: "notify::margin-end", ...args: any[]): void
489
+ connect(sigName: "notify::margin-left", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
490
+ connect_after(sigName: "notify::margin-left", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
491
+ emit(sigName: "notify::margin-left", ...args: any[]): void
492
+ connect(sigName: "notify::margin-right", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
493
+ connect_after(sigName: "notify::margin-right", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
494
+ emit(sigName: "notify::margin-right", ...args: any[]): void
495
+ connect(sigName: "notify::margin-start", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
496
+ connect_after(sigName: "notify::margin-start", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
497
+ emit(sigName: "notify::margin-start", ...args: any[]): void
498
+ connect(sigName: "notify::margin-top", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
499
+ connect_after(sigName: "notify::margin-top", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
500
+ emit(sigName: "notify::margin-top", ...args: any[]): void
501
+ connect(sigName: "notify::name", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
502
+ connect_after(sigName: "notify::name", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
503
+ emit(sigName: "notify::name", ...args: any[]): void
504
+ connect(sigName: "notify::no-show-all", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
505
+ connect_after(sigName: "notify::no-show-all", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
506
+ emit(sigName: "notify::no-show-all", ...args: any[]): void
507
+ connect(sigName: "notify::opacity", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
508
+ connect_after(sigName: "notify::opacity", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
509
+ emit(sigName: "notify::opacity", ...args: any[]): void
510
+ connect(sigName: "notify::parent", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
511
+ connect_after(sigName: "notify::parent", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
512
+ emit(sigName: "notify::parent", ...args: any[]): void
513
+ connect(sigName: "notify::receives-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
514
+ connect_after(sigName: "notify::receives-default", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
515
+ emit(sigName: "notify::receives-default", ...args: any[]): void
516
+ connect(sigName: "notify::scale-factor", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
517
+ connect_after(sigName: "notify::scale-factor", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
518
+ emit(sigName: "notify::scale-factor", ...args: any[]): void
519
+ connect(sigName: "notify::sensitive", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
520
+ connect_after(sigName: "notify::sensitive", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
521
+ emit(sigName: "notify::sensitive", ...args: any[]): void
522
+ connect(sigName: "notify::style", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
523
+ connect_after(sigName: "notify::style", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
524
+ emit(sigName: "notify::style", ...args: any[]): void
525
+ connect(sigName: "notify::tooltip-markup", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
526
+ connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
527
+ emit(sigName: "notify::tooltip-markup", ...args: any[]): void
528
+ connect(sigName: "notify::tooltip-text", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
529
+ connect_after(sigName: "notify::tooltip-text", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
530
+ emit(sigName: "notify::tooltip-text", ...args: any[]): void
531
+ connect(sigName: "notify::valign", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
532
+ connect_after(sigName: "notify::valign", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
533
+ emit(sigName: "notify::valign", ...args: any[]): void
534
+ connect(sigName: "notify::vexpand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
535
+ connect_after(sigName: "notify::vexpand", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
536
+ emit(sigName: "notify::vexpand", ...args: any[]): void
537
+ connect(sigName: "notify::vexpand-set", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
538
+ connect_after(sigName: "notify::vexpand-set", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
539
+ emit(sigName: "notify::vexpand-set", ...args: any[]): void
540
+ connect(sigName: "notify::visible", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
541
+ connect_after(sigName: "notify::visible", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
542
+ emit(sigName: "notify::visible", ...args: any[]): void
543
+ connect(sigName: "notify::width-request", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
544
+ connect_after(sigName: "notify::width-request", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
545
+ emit(sigName: "notify::width-request", ...args: any[]): void
546
+ connect(sigName: "notify::window", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
547
+ connect_after(sigName: "notify::window", callback: (($obj: Menu, pspec: GObject.ParamSpec) => void)): number
548
+ emit(sigName: "notify::window", ...args: any[]): void
549
+ connect(sigName: string, callback: (...args: any[]) => void): number
550
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
551
+ emit(sigName: string, ...args: any[]): void
552
+ disconnect(id: number): void
553
+ }
554
+
555
+ /**
556
+ * A #GtkMenu that is built using an abstract tree built from
557
+ * a #DbusmenuGtkClient.
558
+ * @class
559
+ */
560
+ class Menu extends Gtk.Menu {
561
+
562
+ // Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
563
+
564
+ static name: string
565
+ static $gtype: GObject.GType<Menu>
566
+
567
+ // Constructors of DbusmenuGtk3-0.4.DbusmenuGtk3.Menu
568
+
569
+ constructor(config?: Menu.ConstructorProperties)
570
+ /**
571
+ * Creates a new #DbusmenuGtkMenu object and creates a #DbusmenuClient
572
+ * that connects across DBus to a #DbusmenuServer.
573
+ * @constructor
574
+ * @param dbus_name Name of the #DbusmenuServer on DBus
575
+ * @param dbus_object Name of the object on the #DbusmenuServer
576
+ * @returns A new #DbusmenuGtkMenu sync'd with a server
577
+ */
578
+ constructor(dbus_name: string | null, dbus_object: string | null)
579
+ /**
580
+ * Creates a new #DbusmenuGtkMenu object and creates a #DbusmenuClient
581
+ * that connects across DBus to a #DbusmenuServer.
582
+ * @constructor
583
+ * @param dbus_name Name of the #DbusmenuServer on DBus
584
+ * @param dbus_object Name of the object on the #DbusmenuServer
585
+ * @returns A new #DbusmenuGtkMenu sync'd with a server
586
+ */
587
+ static new(dbus_name: string | null, dbus_object: string | null): Menu
588
+
589
+ // Overloads of new
590
+
591
+ /**
592
+ * Creates a new #GtkMenu
593
+ * @constructor
594
+ * @returns a new #GtkMenu
595
+ */
596
+ static new(): Gtk.Menu
597
+ _init(config?: Menu.ConstructorProperties): void
598
+ }
599
+
600
+ interface ClientClass {
601
+
602
+ // Own fields of DbusmenuGtk3-0.4.DbusmenuGtk3.ClientClass
603
+
604
+ /**
605
+ * #GtkMenuClass
606
+ * @field
607
+ */
608
+ parent_class: Dbusmenu.ClientClass
609
+ root_changed: (newroot: Dbusmenu.Menuitem) => void
610
+ reserved1: () => void
611
+ reserved2: () => void
612
+ reserved3: () => void
613
+ reserved4: () => void
614
+ reserved5: () => void
615
+ reserved6: () => void
616
+ }
617
+
618
+ /**
619
+ * Functions and signal slots for using a #DbusmenuGtkClient
620
+ * @record
621
+ */
622
+ abstract class ClientClass {
623
+
624
+ // Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.ClientClass
625
+
626
+ static name: string
627
+ }
628
+
629
+ interface ClientPrivate {
630
+ }
631
+
632
+ class ClientPrivate {
633
+
634
+ // Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.ClientPrivate
635
+
636
+ static name: string
637
+ }
638
+
639
+ interface MenuClass {
640
+
641
+ // Own fields of DbusmenuGtk3-0.4.DbusmenuGtk3.MenuClass
642
+
643
+ /**
644
+ * #GtkMenuClass
645
+ * @field
646
+ */
647
+ parent_class: Gtk.MenuClass
648
+ reserved1: () => void
649
+ reserved2: () => void
650
+ reserved3: () => void
651
+ reserved4: () => void
652
+ reserved5: () => void
653
+ reserved6: () => void
654
+ }
655
+
656
+ /**
657
+ * All of the subclassable functions and signal slots for a
658
+ * #DbusmenuGtkMenu.
659
+ * @record
660
+ */
661
+ abstract class MenuClass {
662
+
663
+ // Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.MenuClass
664
+
665
+ static name: string
666
+ }
667
+
668
+ interface MenuPrivate {
669
+ }
670
+
671
+ class MenuPrivate {
672
+
673
+ // Own properties of DbusmenuGtk3-0.4.DbusmenuGtk3.MenuPrivate
674
+
675
+ static name: string
676
+ }
677
+
678
+ /**
679
+ * Name of the imported GIR library
680
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
681
+ */
682
+ const __name__: string
683
+ /**
684
+ * Version of the imported GIR library
685
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
686
+ */
687
+ const __version__: string
688
+ }
689
+
690
+ export default DbusmenuGtk3;
691
+ // END