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