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