@girs/amtk-5 5.0.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.
package/amtk-5.d.ts ADDED
@@ -0,0 +1,1145 @@
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
+ * Amtk-5
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
+
26
+ export namespace Amtk {
27
+
28
+ /**
29
+ * #AmtkFactoryFlags permits to control how a factory function creates the
30
+ * object, to ignore some steps.
31
+ * @bitfield
32
+ */
33
+ enum FactoryFlags {
34
+ /**
35
+ * No flags.
36
+ */
37
+ FLAGS_NONE,
38
+ /**
39
+ * Do not associate the created object with the
40
+ * #GAction. For example if the object to create is a #GtkActionable, do not
41
+ * call gtk_actionable_set_detailed_action_name().
42
+ */
43
+ IGNORE_GACTION,
44
+ /**
45
+ * Do not set an icon.
46
+ */
47
+ IGNORE_ICON,
48
+ /**
49
+ * Do not set a label/short description.
50
+ */
51
+ IGNORE_LABEL,
52
+ /**
53
+ * Do not set a tooltip/long description.
54
+ */
55
+ IGNORE_TOOLTIP,
56
+ /**
57
+ * Ignore completely the accelerators.
58
+ */
59
+ IGNORE_ACCELS,
60
+ /**
61
+ * Ignore the accelerators for
62
+ * documentation purposes only. For example do not add/configure a
63
+ * #GtkAccelLabel.
64
+ */
65
+ IGNORE_ACCELS_FOR_DOC,
66
+ /**
67
+ * Do not call
68
+ * gtk_application_set_accels_for_action().
69
+ */
70
+ IGNORE_ACCELS_FOR_APP,
71
+ }
72
+ /**
73
+ * A wrapper function for g_action_map_add_action_entries() that checks
74
+ * duplicates.
75
+ *
76
+ * This function first checks - for each entry - that the `action_map` doesn't
77
+ * already contain a #GAction with the same name. A warning is printed if an old
78
+ * action will be dropped. In any case, it then calls
79
+ * g_action_map_add_action_entries() with the same arguments as passed to this
80
+ * function.
81
+ *
82
+ * This function also checks if there are duplicates in the `entries` array
83
+ * itself.
84
+ * @param action_map a #GActionMap.
85
+ * @param entries a pointer to the first item in an array of #GActionEntry structs.
86
+ * @param user_data the user data for signal connections.
87
+ */
88
+ function action_map_add_action_entries_check_dups(action_map: Gio.ActionMap, entries: Gio.ActionEntry[], user_data: any | null): void
89
+ /**
90
+ * Free the resources allocated by Amtk. For example it unrefs the singleton
91
+ * objects.
92
+ *
93
+ * It is not mandatory to call this function, it's just to be friendlier to
94
+ * memory debugging tools. This function is meant to be called at the end of
95
+ * main(). It can be called several times.
96
+ */
97
+ function finalize(): void
98
+ /**
99
+ * Like g_menu_append_item() but with (transfer full) for the `item` parameter.
100
+ * @param menu a #GMenu.
101
+ * @param item a #GMenuItem to append.
102
+ */
103
+ function gmenu_append_item(menu: Gio.Menu, item: Gio.MenuItem): void
104
+ /**
105
+ * Like g_menu_append_section() but with (transfer full) and a different type
106
+ * for the `section` parameter, and calls g_menu_freeze() on `section`.
107
+ * @param menu a #GMenu.
108
+ * @param label the section label, or %NULL.
109
+ * @param section a #GMenu with the items of the section.
110
+ */
111
+ function gmenu_append_section(menu: Gio.Menu, label: string | null, section: Gio.Menu): void
112
+ /**
113
+ * Initializes the Amtk library (e.g. for the internationalization).
114
+ *
115
+ * This function can be called several times, but is meant to be called at the
116
+ * beginning of main(), before any other Amtk function call.
117
+ */
118
+ function init(): void
119
+ function menu_item_get_long_description(menu_item: Gtk.MenuItem): string | null
120
+ /**
121
+ * Sets an icon to a #GtkMenuItem.
122
+ *
123
+ * If the child widget of `item` is already a #GtkBox, all #GtkImage widgets
124
+ * inside that box are first destroyed. A #GtkImage for `icon_name` is then
125
+ * inserted to the box.
126
+ *
127
+ * If the child widget of `item` is not a #GtkBox (it's usually the
128
+ * #GtkAccelLabel), it is replaced by a new #GtkBox and the initial child widget
129
+ * is inserted to the #GtkBox, alongside the icon.
130
+ *
131
+ * As a consequence, if you want to call functions on the #GtkAccelLabel, it's
132
+ * easier to do it before calling this function.
133
+ * @param item a #GtkMenuItem.
134
+ * @param icon_name an icon name.
135
+ */
136
+ function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string | null): void
137
+ /**
138
+ * Sets the long description of `menu_item`. A possible use-case is to display it
139
+ * in a #GtkStatusbar, or as a tooltip.
140
+ * @param menu_item a #GtkMenuItem.
141
+ * @param long_description the long description, or %NULL to unset it.
142
+ */
143
+ function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_description: string | null): void
144
+ function shortcuts_group_new(title: string | null): Gtk.Container
145
+ function shortcuts_section_new(title: string | null): Gtk.Container
146
+ /**
147
+ * Creates a new #GtkShortcutsWindow. The #GtkWindow:modal property is set to
148
+ * %TRUE.
149
+ *
150
+ * It is on purpose that the return type is #GtkShortcutsWindow, not #GtkWidget
151
+ * or something else, so in C when you declare the variable as
152
+ * #GtkShortcutsWindow it's easier to find it later (searching "GtkShortcuts"
153
+ * will return something in your codebase).
154
+ * @param parent the #GtkWindow:transient-for.
155
+ * @returns a new #GtkShortcutsWindow.
156
+ */
157
+ function shortcuts_window_new(parent: Gtk.Window): Gtk.ShortcutsWindow
158
+ /**
159
+ * Utility function to be able to port an application gradually to #GAction,
160
+ * when #GtkUIManager and #GtkAction are still used. Porting to #GAction should
161
+ * be the first step.
162
+ *
163
+ * For `detailed_g_action_name_without_prefix,` see the
164
+ * g_action_parse_detailed_name() function. The `"app."` or `"win."` prefix (or
165
+ * any other #GActionMap prefix) must not be included in
166
+ * `detailed_g_action_name_without_prefix`. For example a valid
167
+ * `detailed_g_action_name_without_prefix` is `"open"` or
168
+ * `"insert-command::foobar"`.
169
+ *
170
+ * The same #GAction can be bound to several #GtkAction's (with different
171
+ * parameter values for the #GAction), but the reverse is not true, one
172
+ * #GtkAction cannot be bound to several #GAction's.
173
+ *
174
+ * This function:
175
+ * - Calls g_action_activate() when the #GtkAction #GtkAction::activate signal
176
+ * is emitted.
177
+ * - Binds the #GAction #GAction:enabled property to the #GtkAction
178
+ * #GtkAction:sensitive property. The binding is done with the
179
+ * %G_BINDING_BIDIRECTIONAL and %G_BINDING_SYNC_CREATE flags, the source is
180
+ * the #GAction and the target is the #GtkAction.
181
+ *
182
+ * When using this function, you should set the callback to %NULL in the
183
+ * corresponding #GtkActionEntry.
184
+ * @param g_action_map a #GActionMap.
185
+ * @param detailed_g_action_name_without_prefix a detailed #GAction name without the #GActionMap prefix; the #GAction must be present in `g_action_map`.
186
+ * @param gtk_action_group a #GtkActionGroup.
187
+ * @param gtk_action_name a #GtkAction name present in `gtk_action_group`.
188
+ */
189
+ function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_without_prefix: string | null, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string | null): void
190
+ /**
191
+ * Utility function to be able to port an application gradually to #GAction and
192
+ * #AmtkActionInfo, when #GtkUIManager is still used. This function goes one
193
+ * step further compared to amtk_utils_bind_g_action_to_gtk_action(). With
194
+ * amtk_utils_bind_g_action_to_gtk_action(), only the #GAction must exist. With
195
+ * amtk_utils_create_gtk_action(), both the #GAction and #AmtkActionInfo must
196
+ * exist (so typically you need to convert the #GtkActionEntry's into
197
+ * #AmtkActionInfoEntry's).
198
+ *
199
+ * This function creates a #GtkAction from a #GAction plus its corresponding
200
+ * #AmtkActionInfo.
201
+ *
202
+ * The #GtkAction is created with the information provided by the
203
+ * #AmtkActionInfo (retrieved with amtk_action_info_central_store_lookup() with
204
+ * `detailed_g_action_name_with_prefix` as argument). Only the first accelerator
205
+ * is taken into account.
206
+ *
207
+ * Once the #GtkAction is created, it is added to the `gtk_action_group,` and
208
+ * amtk_utils_bind_g_action_to_gtk_action() is called.
209
+ * @param g_action_map a #GActionMap.
210
+ * @param detailed_g_action_name_with_prefix a detailed #GAction name with the #GActionMap prefix; the #GAction must be present in `g_action_map`.
211
+ * @param gtk_action_group a #GtkActionGroup.
212
+ * @param gtk_action_name the name of the #GtkAction to create and add to `gtk_action_group`.
213
+ */
214
+ function utils_create_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_with_prefix: string | null, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string | null): void
215
+ /**
216
+ * This function wraps `menubar` into a container, to allow the menubar to shrink
217
+ * below its minimum width.
218
+ *
219
+ * A possible use-case: have two applications side-by-side on a single screen.
220
+ * @param menubar a #GtkMenuBar.
221
+ * @returns a new widget that contains @menubar.
222
+ */
223
+ function utils_get_shrinkable_menubar(menubar: Gtk.MenuBar): Gtk.Widget
224
+ /**
225
+ * Gets the URI of `item`. `item` must be a child of `menu`. `menu` must be a
226
+ * #GtkRecentChooserMenu.
227
+ *
228
+ * This function has been written because the value returned by
229
+ * gtk_recent_chooser_get_current_uri() is not updated when #GtkMenuItem's of a
230
+ * #GtkRecentChooserMenu are selected/deselected.
231
+ * @param menu a #GtkRecentChooserMenu.
232
+ * @param item a #GtkMenuItem.
233
+ * @returns the URI of @item. Free with g_free() when no longer needed.
234
+ */
235
+ function utils_recent_chooser_menu_get_item_uri(menu: Gtk.RecentChooserMenu, item: Gtk.MenuItem): string | null
236
+ /**
237
+ * Removes the mnemonics from `str`. Single underscores are removed, and two
238
+ * consecutive underscores are replaced by one underscore (see the documentation
239
+ * of gtk_label_new_with_mnemonic()).
240
+ * @param str a string.
241
+ * @returns the new string with the mnemonics removed. Free with g_free() when no longer needed.
242
+ */
243
+ function utils_remove_mnemonic(str: string | null): string | null
244
+ module ActionInfoCentralStore {
245
+
246
+ // Constructor properties interface
247
+
248
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
249
+ }
250
+
251
+ }
252
+
253
+ interface ActionInfoCentralStore {
254
+
255
+ // Own fields of Amtk-5.Amtk.ActionInfoCentralStore
256
+
257
+ parent: GObject.Object
258
+ priv: ActionInfoCentralStorePrivate
259
+
260
+ // Owm methods of Amtk-5.Amtk.ActionInfoCentralStore
261
+
262
+ lookup(action_name: string | null): ActionInfo
263
+
264
+ // Class property signals of Amtk-5.Amtk.ActionInfoCentralStore
265
+
266
+ connect(sigName: string, callback: (...args: any[]) => void): number
267
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
268
+ emit(sigName: string, ...args: any[]): void
269
+ disconnect(id: number): void
270
+ }
271
+
272
+ class ActionInfoCentralStore extends GObject.Object {
273
+
274
+ // Own properties of Amtk-5.Amtk.ActionInfoCentralStore
275
+
276
+ static name: string
277
+ static $gtype: GObject.GType<ActionInfoCentralStore>
278
+
279
+ // Constructors of Amtk-5.Amtk.ActionInfoCentralStore
280
+
281
+ constructor(config?: ActionInfoCentralStore.ConstructorProperties)
282
+ _init(config?: ActionInfoCentralStore.ConstructorProperties): void
283
+ static get_singleton(): ActionInfoCentralStore
284
+ }
285
+
286
+ module ActionInfoStore {
287
+
288
+ // Constructor properties interface
289
+
290
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
291
+ }
292
+
293
+ }
294
+
295
+ interface ActionInfoStore {
296
+
297
+ // Own fields of Amtk-5.Amtk.ActionInfoStore
298
+
299
+ parent: GObject.Object
300
+ priv: ActionInfoStorePrivate
301
+
302
+ // Owm methods of Amtk-5.Amtk.ActionInfoStore
303
+
304
+ /**
305
+ * Inserts `info` into `store` and into the #AmtkActionInfoCentralStore. Both the
306
+ * `store` and central store must <emphasis>not</emphasis> already contain an
307
+ * #AmtkActionInfo with the same action name. The stores take their own
308
+ * reference on `info`.
309
+ * @param info an #AmtkActionInfo.
310
+ */
311
+ add(info: ActionInfo): void
312
+ /**
313
+ * Calls amtk_action_info_store_add() for each entry.
314
+ *
315
+ * If `translation_domain` is not %NULL, g_dgettext() is used to translate the
316
+ * `label` and `tooltip` of each entry before setting them to the #AmtkActionInfo.
317
+ *
318
+ * An API similar to g_action_map_add_action_entries().
319
+ * @param entries a pointer to the first item in an array of #AmtkActionInfoEntry structs.
320
+ * @param translation_domain a gettext domain, or %NULL.
321
+ */
322
+ add_entries(entries: ActionInfoEntry[], translation_domain: string | null): void
323
+ /**
324
+ * Checks for each #AmtkActionInfo of `store` that it has been used (see
325
+ * amtk_action_info_has_been_used()). If an #AmtkActionInfo has not been used, a
326
+ * warning is printed and might indicate dead code.
327
+ *
328
+ * You probably want to call this function on the application store after
329
+ * creating the menu and toolbar. But it can also be useful for a store provided
330
+ * by a library, to easily see which actions are not used by the application.
331
+ */
332
+ check_all_used(): void
333
+ lookup(action_name: string | null): ActionInfo
334
+ /**
335
+ * Calls gtk_application_set_accels_for_action() for all #AmtkActionInfo's part
336
+ * of `store` with the accelerators returned by amtk_action_info_get_accels().
337
+ * This function does *not* call amtk_action_info_mark_as_used(), because if it
338
+ * did it would not be possible to detect dead code in `store` with
339
+ * amtk_action_info_store_check_all_used().
340
+ *
341
+ * This function is not recommended if `store` is provided by a library, because
342
+ * a future version of the library may add accelerators that are not wanted in
343
+ * the application. So for a library store, you should let #AmtkFactory call
344
+ * gtk_application_set_accels_for_action().
345
+ *
346
+ * This function can be convenient for an application store, in combination with
347
+ * %AMTK_FACTORY_IGNORE_ACCELS_FOR_APP (and/or having a %NULL #GtkApplication in
348
+ * #AmtkFactory). It has the advantage that
349
+ * gtk_application_set_accels_for_action() is called only once per action, not
350
+ * each time that a #GtkApplicationWindow is created.
351
+ *
352
+ * This function can also be useful if – for some actions – the objects are not
353
+ * created directly with #AmtkFactory on application startup, but are created
354
+ * later, on demand. For example to create a #GtkShortcutsWindow with
355
+ * #AmtkFactory, containing information about actions that are not added to any
356
+ * menu or toolbar.
357
+ * @param application a #GtkApplication.
358
+ */
359
+ set_all_accels_to_app(application: Gtk.Application): void
360
+
361
+ // Class property signals of Amtk-5.Amtk.ActionInfoStore
362
+
363
+ connect(sigName: string, callback: (...args: any[]) => void): number
364
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
365
+ emit(sigName: string, ...args: any[]): void
366
+ disconnect(id: number): void
367
+ }
368
+
369
+ class ActionInfoStore extends GObject.Object {
370
+
371
+ // Own properties of Amtk-5.Amtk.ActionInfoStore
372
+
373
+ static name: string
374
+ static $gtype: GObject.GType<ActionInfoStore>
375
+
376
+ // Constructors of Amtk-5.Amtk.ActionInfoStore
377
+
378
+ constructor(config?: ActionInfoStore.ConstructorProperties)
379
+ constructor()
380
+ static new(): ActionInfoStore
381
+ _init(config?: ActionInfoStore.ConstructorProperties): void
382
+ }
383
+
384
+ module ApplicationWindow {
385
+
386
+ // Constructor properties interface
387
+
388
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
389
+
390
+ // Own constructor properties of Amtk-5.Amtk.ApplicationWindow
391
+
392
+ /**
393
+ * The #GtkApplicationWindow.
394
+ */
395
+ application_window?: Gtk.ApplicationWindow | null
396
+ /**
397
+ * The #GtkStatusbar. %NULL by default.
398
+ */
399
+ statusbar?: Gtk.Statusbar | null
400
+ }
401
+
402
+ }
403
+
404
+ interface ApplicationWindow {
405
+
406
+ // Own properties of Amtk-5.Amtk.ApplicationWindow
407
+
408
+ /**
409
+ * The #GtkApplicationWindow.
410
+ */
411
+ readonly application_window: Gtk.ApplicationWindow
412
+ /**
413
+ * The #GtkStatusbar. %NULL by default.
414
+ */
415
+ statusbar: Gtk.Statusbar
416
+
417
+ // Own fields of Amtk-5.Amtk.ApplicationWindow
418
+
419
+ parent: GObject.Object
420
+ priv: ApplicationWindowPrivate
421
+
422
+ // Owm methods of Amtk-5.Amtk.ApplicationWindow
423
+
424
+ /**
425
+ * Connects to the #AmtkMenuShell::menu-item-selected and
426
+ * #AmtkMenuShell::menu-item-deselected signals of `menu_shell` to push/pop the
427
+ * long description of #GtkMenuItem's to the #AmtkApplicationWindow:statusbar.
428
+ *
429
+ * The long description is retrieved with amtk_menu_item_get_long_description().
430
+ * So amtk_menu_item_set_long_description() must have been called, which is the
431
+ * case if the #GtkMenuItem has been created with #AmtkFactory.
432
+ * @param menu_shell a #GtkMenuShell.
433
+ */
434
+ connect_menu_to_statusbar(menu_shell: Gtk.MenuShell): void
435
+ /**
436
+ * An alternative to gtk_recent_chooser_set_show_tips(). Shows the full path in
437
+ * the #AmtkApplicationWindow:statusbar when a #GtkMenuItem of `menu` is
438
+ * selected.
439
+ *
440
+ * The full path is retrieved with
441
+ * amtk_utils_recent_chooser_menu_get_item_uri().
442
+ * @param menu a #GtkRecentChooserMenu.
443
+ */
444
+ connect_recent_chooser_menu_to_statusbar(menu: Gtk.RecentChooserMenu): void
445
+ /**
446
+ * This function creates a #GtkRecentChooserMenu with
447
+ * amtk_application_window_create_open_recent_menu_base(), and setup these
448
+ * additional things:
449
+ *
450
+ * - The #GtkRecentChooserMenu is connected to the statusbar with
451
+ * amtk_application_window_connect_recent_chooser_menu_to_statusbar().
452
+ *
453
+ * - When the #GtkRecentChooser::item-activated signal is emitted,
454
+ * g_application_open() is called (with an empty hint), so the #GApplication
455
+ * must have the %G_APPLICATION_HANDLES_OPEN flag set.
456
+ * @returns a new #GtkRecentChooserMenu.
457
+ */
458
+ create_open_recent_menu(): Gtk.Widget
459
+ /**
460
+ * Creates a #GtkMenuItem with a simple and generic #GtkRecentChooserMenu as
461
+ * submenu. The #GtkRecentChooserMenu is created with
462
+ * amtk_application_window_create_open_recent_menu().
463
+ * @returns a new #GtkMenuItem.
464
+ */
465
+ create_open_recent_menu_item(): Gtk.Widget
466
+ get_application_window(): Gtk.ApplicationWindow
467
+ get_statusbar(): Gtk.Statusbar | null
468
+ /**
469
+ * Sets the #AmtkApplicationWindow:statusbar property.
470
+ * @param statusbar a #GtkStatusbar, or %NULL.
471
+ */
472
+ set_statusbar(statusbar: Gtk.Statusbar | null): void
473
+
474
+ // Class property signals of Amtk-5.Amtk.ApplicationWindow
475
+
476
+ connect(sigName: "notify::application-window", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
477
+ connect_after(sigName: "notify::application-window", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
478
+ emit(sigName: "notify::application-window", ...args: any[]): void
479
+ connect(sigName: "notify::statusbar", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
480
+ connect_after(sigName: "notify::statusbar", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number
481
+ emit(sigName: "notify::statusbar", ...args: any[]): void
482
+ connect(sigName: string, callback: (...args: any[]) => void): number
483
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
484
+ emit(sigName: string, ...args: any[]): void
485
+ disconnect(id: number): void
486
+ }
487
+
488
+ class ApplicationWindow extends GObject.Object {
489
+
490
+ // Own properties of Amtk-5.Amtk.ApplicationWindow
491
+
492
+ static name: string
493
+ static $gtype: GObject.GType<ApplicationWindow>
494
+
495
+ // Constructors of Amtk-5.Amtk.ApplicationWindow
496
+
497
+ constructor(config?: ApplicationWindow.ConstructorProperties)
498
+ _init(config?: ApplicationWindow.ConstructorProperties): void
499
+ /**
500
+ * Creates the base of a simple and generic #GtkRecentChooserMenu.
501
+ *
502
+ * The #GtkRecentChooser is configured to show files only recently used with the
503
+ * current application, as returned by g_get_application_name(). If recent files
504
+ * are added to the default #GtkRecentManager with
505
+ * gtk_recent_manager_add_item(), the files will normally show up in the
506
+ * #GtkRecentChooserMenu.
507
+ * @returns a new #GtkRecentChooserMenu.
508
+ */
509
+ static create_open_recent_menu_base(): Gtk.RecentChooserMenu
510
+ /**
511
+ * Returns the #AmtkApplicationWindow of `gtk_window`. The returned object is
512
+ * guaranteed to be the same for the lifetime of `gtk_window`.
513
+ * @param gtk_window a #GtkApplicationWindow.
514
+ * @returns the #AmtkApplicationWindow of @gtk_window.
515
+ */
516
+ static get_from_gtk_application_window(gtk_window: Gtk.ApplicationWindow): ApplicationWindow
517
+ }
518
+
519
+ module Factory {
520
+
521
+ // Constructor properties interface
522
+
523
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
524
+
525
+ // Own constructor properties of Amtk-5.Amtk.Factory
526
+
527
+ /**
528
+ * The associated #GtkApplication (it is optional, it can be %NULL).
529
+ * #AmtkFactory has a weak reference to the #GtkApplication.
530
+ */
531
+ application?: Gtk.Application | null
532
+ /**
533
+ * The default #AmtkFactoryFlags.
534
+ */
535
+ default_flags?: FactoryFlags | null
536
+ }
537
+
538
+ }
539
+
540
+ interface Factory {
541
+
542
+ // Own properties of Amtk-5.Amtk.Factory
543
+
544
+ /**
545
+ * The associated #GtkApplication (it is optional, it can be %NULL).
546
+ * #AmtkFactory has a weak reference to the #GtkApplication.
547
+ */
548
+ readonly application: Gtk.Application
549
+ /**
550
+ * The default #AmtkFactoryFlags.
551
+ */
552
+ default_flags: FactoryFlags
553
+
554
+ // Own fields of Amtk-5.Amtk.Factory
555
+
556
+ parent: GObject.Object
557
+ priv: FactoryPrivate
558
+
559
+ // Owm methods of Amtk-5.Amtk.Factory
560
+
561
+ /**
562
+ * Creates a new #GtkCheckMenuItem for `action_name` with the
563
+ * #AmtkFactory:default-flags.
564
+ *
565
+ * See the documentation of amtk_factory_create_check_menu_item_full() for more
566
+ * information.
567
+ * @param action_name an action name.
568
+ * @returns a new #GtkCheckMenuItem for @action_name.
569
+ */
570
+ create_check_menu_item(action_name: string | null): Gtk.Widget
571
+ /**
572
+ * This function ignores the #AmtkFactory:default-flags property and takes the
573
+ * `flags` argument instead.
574
+ *
575
+ * Note that since it is a #GtkCheckMenuItem the icon is not set, even if it
576
+ * would be possible with amtk_menu_item_set_icon_name().
577
+ *
578
+ * If the action controls a boolean property, think about using
579
+ * #GPropertyAction.
580
+ * @param action_name an action name.
581
+ * @param flags #AmtkFactoryFlags.
582
+ * @returns a new #GtkCheckMenuItem for @action_name.
583
+ */
584
+ create_check_menu_item_full(action_name: string | null, flags: FactoryFlags): Gtk.Widget
585
+ /**
586
+ * Calls amtk_factory_create_gmenu_item_full() with the
587
+ * #AmtkFactory:default-flags.
588
+ * @param action_name an action name.
589
+ * @returns a new #GMenuItem for @action_name.
590
+ */
591
+ create_gmenu_item(action_name: string | null): Gio.MenuItem
592
+ /**
593
+ * This function ignores the #AmtkFactory:default-flags property and takes the
594
+ * `flags` argument instead.
595
+ *
596
+ * Creates a new #GMenuItem for `action_name`. It ignores the tooltip, i.e. the
597
+ * return value of amtk_action_info_get_tooltip().
598
+ * @param action_name an action name.
599
+ * @param flags #AmtkFactoryFlags.
600
+ * @returns a new #GMenuItem for @action_name.
601
+ */
602
+ create_gmenu_item_full(action_name: string | null, flags: FactoryFlags): Gio.MenuItem
603
+ /**
604
+ * Creates a new #GtkMenuItem for `action_name` with the
605
+ * #AmtkFactory:default-flags.
606
+ * @param action_name an action name.
607
+ * @returns a new #GtkMenuItem for @action_name.
608
+ */
609
+ create_menu_item(action_name: string | null): Gtk.Widget
610
+ /**
611
+ * This function ignores the #AmtkFactory:default-flags property and takes the
612
+ * `flags` argument instead.
613
+ * @param action_name an action name.
614
+ * @param flags #AmtkFactoryFlags.
615
+ * @returns a new #GtkMenuItem for @action_name.
616
+ */
617
+ create_menu_item_full(action_name: string | null, flags: FactoryFlags): Gtk.Widget
618
+ /**
619
+ * Creates a new #GtkMenuToolButton for `action_name` with the
620
+ * #AmtkFactory:default-flags.
621
+ *
622
+ * See the documentation of amtk_factory_create_menu_tool_button_full() for more
623
+ * information.
624
+ * @param action_name an action name.
625
+ * @returns a new #GtkMenuToolButton for @action_name.
626
+ */
627
+ create_menu_tool_button(action_name: string | null): Gtk.MenuToolButton
628
+ /**
629
+ * This function ignores the #AmtkFactory:default-flags property and takes the
630
+ * `flags` argument instead.
631
+ *
632
+ * After calling this function, you need to use the #GtkMenuToolButton API to
633
+ * set the menu and also possibly set a tooltip to the arrow.
634
+ * @param action_name an action name.
635
+ * @param flags #AmtkFactoryFlags.
636
+ * @returns a new #GtkMenuToolButton for @action_name.
637
+ */
638
+ create_menu_tool_button_full(action_name: string | null, flags: FactoryFlags): Gtk.MenuToolButton
639
+ /**
640
+ * Calls amtk_factory_create_shortcut_full() with the
641
+ * #AmtkFactory:default-flags.
642
+ * @param action_name an action name.
643
+ * @returns a new #GtkShortcutsShortcut for @action_name.
644
+ */
645
+ create_shortcut(action_name: string | null): Gtk.Widget
646
+ /**
647
+ * This function ignores the #AmtkFactory:default-flags property and takes the
648
+ * `flags` argument instead.
649
+ *
650
+ * This function creates a new #GtkShortcutsShortcut for `action_name`.
651
+ *
652
+ * For the #GtkShortcutsShortcut:title, the tooltip has the priorioty, with the
653
+ * label as fallback if the tooltip is %NULL (the mnemonic is removed from the
654
+ * label with amtk_utils_remove_mnemonic()). This can be controlled with the
655
+ * %AMTK_FACTORY_IGNORE_TOOLTIP and %AMTK_FACTORY_IGNORE_LABEL flags.
656
+ *
657
+ * The #GtkShortcutsShortcut:accelerator property is set with only the *first*
658
+ * accel returned by amtk_action_info_get_accels(). This step can be ignored
659
+ * with %AMTK_FACTORY_IGNORE_ACCELS or %AMTK_FACTORY_IGNORE_ACCELS_FOR_DOC.
660
+ *
661
+ * The #GtkShortcutsShortcut:action-name property is set to `action_name` if the
662
+ * %AMTK_FACTORY_IGNORE_GACTION flag isn't set. Note that with
663
+ * #GtkShortcutsShortcut:action-name all accelerators are displayed (if set to
664
+ * the #GtkApplication).
665
+ *
666
+ * So depending on whether you want to show only the first accelerator or all
667
+ * accelerators, you need to set `flags` appropriately.
668
+ * @param action_name an action name.
669
+ * @param flags #AmtkFactoryFlags.
670
+ * @returns a new #GtkShortcutsShortcut for @action_name.
671
+ */
672
+ create_shortcut_full(action_name: string | null, flags: FactoryFlags): Gtk.Widget
673
+ /**
674
+ * Calls amtk_factory_create_simple_menu_full() with the
675
+ * #AmtkFactory:default-flags.
676
+ * @param entries a pointer to the first item in an array of #AmtkActionInfoEntry structs.
677
+ * @returns a new simple #GtkMenu for @entries.
678
+ */
679
+ create_simple_menu(entries: ActionInfoEntry[]): Gtk.Widget
680
+ /**
681
+ * This function ignores the #AmtkFactory:default-flags property and takes the
682
+ * `flags` argument instead.
683
+ *
684
+ * This function:
685
+ * - Creates a #GtkMenu;
686
+ * - For each #AmtkActionInfoEntry action name from `entries,` creates a
687
+ * #GtkMenuItem with amtk_factory_create_menu_item_full() with the same `flags`
688
+ * as passed in to this function, and appends it to the #GtkMenu, in the same
689
+ * order as provided by the `entries` array.
690
+ *
691
+ * So this function is useful only if the #GtkMenu contains only simple
692
+ * #GtkMenuItem's, not #GtkCheckMenuItem's nor #GtkRadioMenuItem's.
693
+ * @param entries a pointer to the first item in an array of #AmtkActionInfoEntry structs.
694
+ * @param flags #AmtkFactoryFlags.
695
+ * @returns a new simple #GtkMenu for @entries.
696
+ */
697
+ create_simple_menu_full(entries: ActionInfoEntry[], flags: FactoryFlags): Gtk.Widget
698
+ /**
699
+ * Creates a new #GtkToolButton for `action_name` with the
700
+ * #AmtkFactory:default-flags.
701
+ * @param action_name an action name.
702
+ * @returns a new #GtkToolButton for @action_name.
703
+ */
704
+ create_tool_button(action_name: string | null): Gtk.ToolItem
705
+ /**
706
+ * This function ignores the #AmtkFactory:default-flags property and takes the
707
+ * `flags` argument instead.
708
+ * @param action_name an action name.
709
+ * @param flags #AmtkFactoryFlags.
710
+ * @returns a new #GtkToolButton for @action_name.
711
+ */
712
+ create_tool_button_full(action_name: string | null, flags: FactoryFlags): Gtk.ToolItem
713
+ get_application(): Gtk.Application | null
714
+ get_default_flags(): FactoryFlags
715
+ /**
716
+ * Sets the #AmtkFactory:default-flags property.
717
+ * @param default_flags the new value.
718
+ */
719
+ set_default_flags(default_flags: FactoryFlags): void
720
+
721
+ // Class property signals of Amtk-5.Amtk.Factory
722
+
723
+ connect(sigName: "notify::application", callback: (($obj: Factory, pspec: GObject.ParamSpec) => void)): number
724
+ connect_after(sigName: "notify::application", callback: (($obj: Factory, pspec: GObject.ParamSpec) => void)): number
725
+ emit(sigName: "notify::application", ...args: any[]): void
726
+ connect(sigName: "notify::default-flags", callback: (($obj: Factory, pspec: GObject.ParamSpec) => void)): number
727
+ connect_after(sigName: "notify::default-flags", callback: (($obj: Factory, pspec: GObject.ParamSpec) => void)): number
728
+ emit(sigName: "notify::default-flags", ...args: any[]): void
729
+ connect(sigName: string, callback: (...args: any[]) => void): number
730
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
731
+ emit(sigName: string, ...args: any[]): void
732
+ disconnect(id: number): void
733
+ }
734
+
735
+ class Factory extends GObject.Object {
736
+
737
+ // Own properties of Amtk-5.Amtk.Factory
738
+
739
+ static name: string
740
+ static $gtype: GObject.GType<Factory>
741
+
742
+ // Constructors of Amtk-5.Amtk.Factory
743
+
744
+ constructor(config?: Factory.ConstructorProperties)
745
+ /**
746
+ * Creates a new #AmtkFactory object. Associating a #GtkApplication is optional,
747
+ * if it is %NULL gtk_application_set_accels_for_action() won't be called.
748
+ * @constructor
749
+ * @param application a #GtkApplication, or %NULL.
750
+ * @returns a new #AmtkFactory.
751
+ */
752
+ constructor(application: Gtk.Application | null)
753
+ /**
754
+ * Creates a new #AmtkFactory object. Associating a #GtkApplication is optional,
755
+ * if it is %NULL gtk_application_set_accels_for_action() won't be called.
756
+ * @constructor
757
+ * @param application a #GtkApplication, or %NULL.
758
+ * @returns a new #AmtkFactory.
759
+ */
760
+ static new(application: Gtk.Application | null): Factory
761
+ /**
762
+ * Calls amtk_factory_new() with g_application_get_default() (it must be a
763
+ * #GtkApplication).
764
+ * @constructor
765
+ * @returns a new #AmtkFactory with the default #GtkApplication.
766
+ */
767
+ static new_with_default_application(): Factory
768
+ _init(config?: Factory.ConstructorProperties): void
769
+ }
770
+
771
+ module MenuShell {
772
+
773
+ // Signal callback interfaces
774
+
775
+ /**
776
+ * Signal callback interface for `menu-item-deselected`
777
+ */
778
+ interface MenuItemDeselectedSignalCallback {
779
+ ($obj: MenuShell, menu_item: Gtk.MenuItem): void
780
+ }
781
+
782
+ /**
783
+ * Signal callback interface for `menu-item-selected`
784
+ */
785
+ interface MenuItemSelectedSignalCallback {
786
+ ($obj: MenuShell, menu_item: Gtk.MenuItem): void
787
+ }
788
+
789
+
790
+ // Constructor properties interface
791
+
792
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
793
+
794
+ // Own constructor properties of Amtk-5.Amtk.MenuShell
795
+
796
+ /**
797
+ * The #GtkMenuShell.
798
+ */
799
+ menu_shell?: Gtk.MenuShell | null
800
+ }
801
+
802
+ }
803
+
804
+ interface MenuShell {
805
+
806
+ // Own properties of Amtk-5.Amtk.MenuShell
807
+
808
+ /**
809
+ * The #GtkMenuShell.
810
+ */
811
+ readonly menu_shell: Gtk.MenuShell
812
+
813
+ // Own fields of Amtk-5.Amtk.MenuShell
814
+
815
+ parent: GObject.Object
816
+ priv: MenuShellPrivate
817
+
818
+ // Owm methods of Amtk-5.Amtk.MenuShell
819
+
820
+ get_menu_shell(): Gtk.MenuShell
821
+
822
+ // Own virtual methods of Amtk-5.Amtk.MenuShell
823
+
824
+ vfunc_menu_item_deselected(menu_item: Gtk.MenuItem): void
825
+ vfunc_menu_item_selected(menu_item: Gtk.MenuItem): void
826
+
827
+ // Own signals of Amtk-5.Amtk.MenuShell
828
+
829
+ connect(sigName: "menu-item-deselected", callback: MenuShell.MenuItemDeselectedSignalCallback): number
830
+ connect_after(sigName: "menu-item-deselected", callback: MenuShell.MenuItemDeselectedSignalCallback): number
831
+ emit(sigName: "menu-item-deselected", menu_item: Gtk.MenuItem, ...args: any[]): void
832
+ connect(sigName: "menu-item-selected", callback: MenuShell.MenuItemSelectedSignalCallback): number
833
+ connect_after(sigName: "menu-item-selected", callback: MenuShell.MenuItemSelectedSignalCallback): number
834
+ emit(sigName: "menu-item-selected", menu_item: Gtk.MenuItem, ...args: any[]): void
835
+
836
+ // Class property signals of Amtk-5.Amtk.MenuShell
837
+
838
+ connect(sigName: "notify::menu-shell", callback: (($obj: MenuShell, pspec: GObject.ParamSpec) => void)): number
839
+ connect_after(sigName: "notify::menu-shell", callback: (($obj: MenuShell, pspec: GObject.ParamSpec) => void)): number
840
+ emit(sigName: "notify::menu-shell", ...args: any[]): void
841
+ connect(sigName: string, callback: (...args: any[]) => void): number
842
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
843
+ emit(sigName: string, ...args: any[]): void
844
+ disconnect(id: number): void
845
+ }
846
+
847
+ class MenuShell extends GObject.Object {
848
+
849
+ // Own properties of Amtk-5.Amtk.MenuShell
850
+
851
+ static name: string
852
+ static $gtype: GObject.GType<MenuShell>
853
+
854
+ // Constructors of Amtk-5.Amtk.MenuShell
855
+
856
+ constructor(config?: MenuShell.ConstructorProperties)
857
+ _init(config?: MenuShell.ConstructorProperties): void
858
+ /**
859
+ * Returns the #AmtkMenuShell of `gtk_menu_shell`. The returned object is
860
+ * guaranteed to be the same for the lifetime of `gtk_menu_shell`.
861
+ * @param gtk_menu_shell a #GtkMenuShell.
862
+ * @returns the #AmtkMenuShell of @gtk_menu_shell.
863
+ */
864
+ static get_from_gtk_menu_shell(gtk_menu_shell: Gtk.MenuShell): MenuShell
865
+ }
866
+
867
+ interface ActionInfo {
868
+
869
+ // Owm methods of Amtk-5.Amtk.ActionInfo
870
+
871
+ copy(): ActionInfo
872
+ /**
873
+ * Returns the accelerators. This function never returns %NULL, it always
874
+ * returns a %NULL-terminated array, to be suitable for
875
+ * gtk_application_set_accels_for_action().
876
+ * @returns a %NULL-terminated array of accelerators in the format understood by gtk_accelerator_parse().
877
+ */
878
+ get_accels(): string[]
879
+ get_action_name(): string | null
880
+ get_icon_name(): string | null
881
+ /**
882
+ * Gets the label. The label has normally a mnemonic. To remove the mnemonic,
883
+ * there is the amtk_utils_remove_mnemonic() function.
884
+ * @returns the label (i.e. a short description), or %NULL.
885
+ */
886
+ get_label(): string | null
887
+ get_tooltip(): string | null
888
+ /**
889
+ * Returns whether `info` has been used (for example by an #AmtkFactory
890
+ * function). See also amtk_action_info_store_check_all_used().
891
+ * @returns whether @info has been used.
892
+ */
893
+ has_been_used(): boolean
894
+ /**
895
+ * Mark `info` as used. An #AmtkFactory function that uses an #AmtkActionInfo
896
+ * should call this function. See amtk_action_info_store_check_all_used().
897
+ */
898
+ mark_as_used(): void
899
+ /**
900
+ * Increments the reference count of `info` by one.
901
+ * @returns the passed in @info.
902
+ */
903
+ ref(): ActionInfo
904
+ /**
905
+ * A function similar to gtk_application_set_accels_for_action().
906
+ *
907
+ * `accels` must not be %NULL, it must be a %NULL-terminated array, to be
908
+ * consistent with gtk_application_set_accels_for_action().
909
+ * @param accels a %NULL-terminated array of accelerators in the format understood by gtk_accelerator_parse().
910
+ */
911
+ set_accels(accels: string[]): void
912
+ /**
913
+ * Sets the action name, for example `"win.save"`. Can be a detailed action
914
+ * name, see g_action_parse_detailed_name().
915
+ * @param action_name the action name.
916
+ */
917
+ set_action_name(action_name: string | null): void
918
+ set_icon_name(icon_name: string | null): void
919
+ /**
920
+ * Sets the label with a mnemonic. To know how to encode the mnemonic, see the
921
+ * documentation of gtk_label_new_with_mnemonic().
922
+ * @param label the label (i.e. a short description), or %NULL.
923
+ */
924
+ set_label(label: string | null): void
925
+ set_tooltip(tooltip: string | null): void
926
+ /**
927
+ * Decrements the reference count of `info` by one. If the reference count drops
928
+ * to 0, `info` is freed.
929
+ */
930
+ unref(): void
931
+ }
932
+
933
+ class ActionInfo {
934
+
935
+ // Own properties of Amtk-5.Amtk.ActionInfo
936
+
937
+ static name: string
938
+
939
+ // Constructors of Amtk-5.Amtk.ActionInfo
940
+
941
+ constructor()
942
+ static new(): ActionInfo
943
+ /**
944
+ * Creates a new #AmtkActionInfo from an #AmtkActionInfoEntry.
945
+ *
946
+ * If `translation_domain` is not %NULL, g_dgettext() is used to translate the
947
+ * `label` and `tooltip` before setting them to the #AmtkActionInfo.
948
+ * @constructor
949
+ * @param info_entry an #AmtkActionInfoEntry.
950
+ * @param translation_domain a gettext domain, or %NULL.
951
+ * @returns a new #AmtkActionInfo.
952
+ */
953
+ static new_from_entry(info_entry: ActionInfoEntry, translation_domain: string | null): ActionInfo
954
+ }
955
+
956
+ interface ActionInfoCentralStoreClass {
957
+
958
+ // Own fields of Amtk-5.Amtk.ActionInfoCentralStoreClass
959
+
960
+ parent_class: GObject.ObjectClass
961
+ padding: any[]
962
+ }
963
+
964
+ abstract class ActionInfoCentralStoreClass {
965
+
966
+ // Own properties of Amtk-5.Amtk.ActionInfoCentralStoreClass
967
+
968
+ static name: string
969
+ }
970
+
971
+ interface ActionInfoCentralStorePrivate {
972
+ }
973
+
974
+ class ActionInfoCentralStorePrivate {
975
+
976
+ // Own properties of Amtk-5.Amtk.ActionInfoCentralStorePrivate
977
+
978
+ static name: string
979
+ }
980
+
981
+ interface ActionInfoEntry {
982
+
983
+ // Own fields of Amtk-5.Amtk.ActionInfoEntry
984
+
985
+ /**
986
+ * the action name. Can be a detailed action name, see
987
+ * g_action_parse_detailed_name().
988
+ * @field
989
+ */
990
+ action_name: string | null
991
+ /**
992
+ * the icon name, or %NULL.
993
+ * @field
994
+ */
995
+ icon_name: string | null
996
+ /**
997
+ * the label (i.e. a short description) with a mnemonic, or %NULL.
998
+ * @field
999
+ */
1000
+ label: string | null
1001
+ /**
1002
+ * the accelerator, in the format understood by gtk_accelerator_parse().
1003
+ * Or %NULL.
1004
+ * @field
1005
+ */
1006
+ accel: string | null
1007
+ /**
1008
+ * the tooltip (i.e. a long description), or %NULL.
1009
+ * @field
1010
+ */
1011
+ tooltip: string | null
1012
+ }
1013
+
1014
+ /**
1015
+ * This struct defines a set of information for a single action. It is for use
1016
+ * with amtk_action_info_store_add_entries().
1017
+ *
1018
+ * Like #GActionEntry, it is permissible to use an incomplete initialiser in
1019
+ * order to leave some of the later values as %NULL. Additional optional fields
1020
+ * may be added in the future.
1021
+ * @record
1022
+ */
1023
+ class ActionInfoEntry {
1024
+
1025
+ // Own properties of Amtk-5.Amtk.ActionInfoEntry
1026
+
1027
+ static name: string
1028
+ }
1029
+
1030
+ interface ActionInfoStoreClass {
1031
+
1032
+ // Own fields of Amtk-5.Amtk.ActionInfoStoreClass
1033
+
1034
+ parent_class: GObject.ObjectClass
1035
+ padding: any[]
1036
+ }
1037
+
1038
+ abstract class ActionInfoStoreClass {
1039
+
1040
+ // Own properties of Amtk-5.Amtk.ActionInfoStoreClass
1041
+
1042
+ static name: string
1043
+ }
1044
+
1045
+ interface ActionInfoStorePrivate {
1046
+ }
1047
+
1048
+ class ActionInfoStorePrivate {
1049
+
1050
+ // Own properties of Amtk-5.Amtk.ActionInfoStorePrivate
1051
+
1052
+ static name: string
1053
+ }
1054
+
1055
+ interface ApplicationWindowClass {
1056
+
1057
+ // Own fields of Amtk-5.Amtk.ApplicationWindowClass
1058
+
1059
+ parent_class: GObject.ObjectClass
1060
+ padding: any[]
1061
+ }
1062
+
1063
+ abstract class ApplicationWindowClass {
1064
+
1065
+ // Own properties of Amtk-5.Amtk.ApplicationWindowClass
1066
+
1067
+ static name: string
1068
+ }
1069
+
1070
+ interface ApplicationWindowPrivate {
1071
+ }
1072
+
1073
+ class ApplicationWindowPrivate {
1074
+
1075
+ // Own properties of Amtk-5.Amtk.ApplicationWindowPrivate
1076
+
1077
+ static name: string
1078
+ }
1079
+
1080
+ interface FactoryClass {
1081
+
1082
+ // Own fields of Amtk-5.Amtk.FactoryClass
1083
+
1084
+ parent_class: GObject.ObjectClass
1085
+ padding: any[]
1086
+ }
1087
+
1088
+ abstract class FactoryClass {
1089
+
1090
+ // Own properties of Amtk-5.Amtk.FactoryClass
1091
+
1092
+ static name: string
1093
+ }
1094
+
1095
+ interface FactoryPrivate {
1096
+ }
1097
+
1098
+ class FactoryPrivate {
1099
+
1100
+ // Own properties of Amtk-5.Amtk.FactoryPrivate
1101
+
1102
+ static name: string
1103
+ }
1104
+
1105
+ interface MenuShellClass {
1106
+
1107
+ // Own fields of Amtk-5.Amtk.MenuShellClass
1108
+
1109
+ parent_class: GObject.ObjectClass
1110
+ menu_item_selected: (amtk_menu_shell: MenuShell, menu_item: Gtk.MenuItem) => void
1111
+ menu_item_deselected: (amtk_menu_shell: MenuShell, menu_item: Gtk.MenuItem) => void
1112
+ padding: any[]
1113
+ }
1114
+
1115
+ abstract class MenuShellClass {
1116
+
1117
+ // Own properties of Amtk-5.Amtk.MenuShellClass
1118
+
1119
+ static name: string
1120
+ }
1121
+
1122
+ interface MenuShellPrivate {
1123
+ }
1124
+
1125
+ class MenuShellPrivate {
1126
+
1127
+ // Own properties of Amtk-5.Amtk.MenuShellPrivate
1128
+
1129
+ static name: string
1130
+ }
1131
+
1132
+ /**
1133
+ * Name of the imported GIR library
1134
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
1135
+ */
1136
+ const __name__: string
1137
+ /**
1138
+ * Version of the imported GIR library
1139
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
1140
+ */
1141
+ const __version__: string
1142
+ }
1143
+
1144
+ export default Amtk;
1145
+ // END