@girs/garcongtk-1.0 1.0.0-4.0.0-beta.3

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/README.md ADDED
@@ -0,0 +1,86 @@
1
+
2
+ # GarconGtk-1.0
3
+
4
+ ![version](https://img.shields.io/npm/v/@girs/garcongtk-1.0)
5
+ ![downloads/week](https://img.shields.io/npm/dw/@girs/garcongtk-1.0)
6
+
7
+
8
+ GJS TypeScript type definitions for GarconGtk-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.3.
9
+
10
+
11
+ ## Install
12
+
13
+ To use this type definitions, install them with NPM:
14
+ ```bash
15
+ npm install @girs/garcongtk-1.0
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ You can import this package into your project like this:
21
+ ```ts
22
+ import GarconGtk from '@girs/garcongtk-1.0';
23
+ ```
24
+
25
+ ### Ambient Modules
26
+
27
+ You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
28
+ For this you need to include `@girs/garcongtk-1.0` or `@girs/garcongtk-1.0/ambient` in your `tsconfig` or entry point Typescript file:
29
+
30
+ `index.ts`:
31
+ ```ts
32
+ import '@girs/garcongtk-1.0'
33
+ ```
34
+
35
+ `tsconfig.json`:
36
+ ```json
37
+ {
38
+ "compilerOptions": {
39
+ ...
40
+ },
41
+ "include": ["@girs/garcongtk-1.0"],
42
+ ...
43
+ }
44
+ ```
45
+
46
+ Now you can import the ambient module with TypeScript support:
47
+
48
+ ```ts
49
+ import GarconGtk from 'gi://GarconGtk?version=1.0';
50
+ ```
51
+
52
+ ### Global import
53
+
54
+ You can also import the module with Typescript support using the global `imports.gi` object of GJS.
55
+ For this you need to include `@girs/garcongtk-1.0` or `@girs/garcongtk-1.0/import` in your `tsconfig` or entry point Typescript file:
56
+
57
+ `index.ts`:
58
+ ```ts
59
+ import '@girs/garcongtk-1.0'
60
+ ```
61
+
62
+ `tsconfig.json`:
63
+ ```json
64
+ {
65
+ "compilerOptions": {
66
+ ...
67
+ },
68
+ "include": ["@girs/garcongtk-1.0"],
69
+ ...
70
+ }
71
+ ```
72
+
73
+ Now you have also type support for this, too:
74
+
75
+ ```ts
76
+ const GarconGtk = imports.gi.GarconGtk;
77
+ ```
78
+
79
+ ### Bundle
80
+
81
+ Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
82
+
83
+ ## Other packages
84
+
85
+ All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
86
+
@@ -0,0 +1,12 @@
1
+
2
+ declare module 'gi://GarconGtk?version=1.0' {
3
+ import GarconGtk from '@girs/garcongtk-1.0';
4
+ export default GarconGtk;
5
+ }
6
+
7
+ declare module 'gi://GarconGtk' {
8
+ import GarconGtk10 from 'gi://GarconGtk?version=1.0';
9
+ export default GarconGtk10;
10
+ }
11
+
12
+
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,12 @@
1
+
2
+ import GarconGtk10 from '@girs/garcongtk-1.0';
3
+
4
+ declare global {
5
+ export interface GjsGiImports {
6
+ GarconGtk: typeof GarconGtk10;
7
+ }
8
+ }
9
+
10
+ export default GjsGiImports;
11
+
12
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
@@ -0,0 +1,502 @@
1
+ /*
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ */
7
+
8
+ import './garcongtk-1.0-ambient.d.ts';
9
+
10
+ /**
11
+ * GarconGtk-1.0
12
+ */
13
+
14
+ import type Libxfce4util from '@girs/libxfce4util-1.0';
15
+ import type Gio from '@girs/gio-2.0';
16
+ import type GObject from '@girs/gobject-2.0';
17
+ import type GLib from '@girs/glib-2.0';
18
+ import type Libxfce4ui from '@girs/libxfce4ui-2.0';
19
+ import type Gtk from '@girs/gtk-3.0';
20
+ import type xlib from '@girs/xlib-2.0';
21
+ import type Gdk from '@girs/gdk-3.0';
22
+ import type cairo from '@girs/cairo-1.0';
23
+ import type Pango from '@girs/pango-1.0';
24
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
25
+ import type freetype2 from '@girs/freetype2-2.0';
26
+ import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
27
+ import type GModule from '@girs/gmodule-2.0';
28
+ import type Atk from '@girs/atk-1.0';
29
+ import type Garcon from '@girs/garcon-1.0';
30
+
31
+ export namespace GarconGtk {
32
+ module Menu {
33
+ // Constructor properties interface
34
+
35
+ interface ConstructorProps
36
+ extends Gtk.Menu.ConstructorProps,
37
+ Atk.ImplementorIface.ConstructorProps,
38
+ Gtk.Buildable.ConstructorProps {
39
+ menu: Garcon.Menu;
40
+ right_click_edits: boolean;
41
+ rightClickEdits: boolean;
42
+ show_desktop_actions: boolean;
43
+ showDesktopActions: boolean;
44
+ show_generic_names: boolean;
45
+ showGenericNames: boolean;
46
+ show_menu_icons: boolean;
47
+ showMenuIcons: boolean;
48
+ show_tooltips: boolean;
49
+ showTooltips: boolean;
50
+ }
51
+ }
52
+
53
+ class Menu extends Gtk.Menu implements Atk.ImplementorIface, Gtk.Buildable {
54
+ static $gtype: GObject.GType<Menu>;
55
+
56
+ // Own properties of GarconGtk.Menu
57
+
58
+ get menu(): Garcon.Menu;
59
+ set menu(val: Garcon.Menu);
60
+ get right_click_edits(): boolean;
61
+ set right_click_edits(val: boolean);
62
+ get rightClickEdits(): boolean;
63
+ set rightClickEdits(val: boolean);
64
+ get show_desktop_actions(): boolean;
65
+ set show_desktop_actions(val: boolean);
66
+ get showDesktopActions(): boolean;
67
+ set showDesktopActions(val: boolean);
68
+ get show_generic_names(): boolean;
69
+ set show_generic_names(val: boolean);
70
+ get showGenericNames(): boolean;
71
+ set showGenericNames(val: boolean);
72
+ get show_menu_icons(): boolean;
73
+ set show_menu_icons(val: boolean);
74
+ get showMenuIcons(): boolean;
75
+ set showMenuIcons(val: boolean);
76
+ get show_tooltips(): boolean;
77
+ set show_tooltips(val: boolean);
78
+ get showTooltips(): boolean;
79
+ set showTooltips(val: boolean);
80
+
81
+ // Constructors of GarconGtk.Menu
82
+
83
+ constructor(properties?: Partial<Menu.ConstructorProps>, ...args: any[]);
84
+
85
+ _init(...args: any[]): void;
86
+
87
+ static ['new'](garcon_menu?: Garcon.Menu | null): Menu;
88
+ // Conflicted with Gtk.Menu.new
89
+
90
+ static ['new'](...args: never[]): any;
91
+
92
+ // Own static methods of GarconGtk.Menu
93
+
94
+ /**
95
+ * Application icons are never shown on the action menu items.
96
+ * @param item A #GarconMenuItem
97
+ */
98
+ static get_desktop_actions_menu(item: Garcon.MenuItem): Gtk.Menu;
99
+
100
+ // Own methods of GarconGtk.Menu
101
+
102
+ /**
103
+ * The #GarconMenu used to create the #GtkMenu.
104
+ *
105
+ * The caller is responsible to releasing the returned #GarconMenu
106
+ * using g_object_unref().
107
+ * @returns the #GarconMenu for @menu.
108
+ */
109
+ get_menu(): Garcon.Menu;
110
+ get_right_click_edits(): boolean;
111
+ get_show_desktop_actions(): boolean;
112
+ get_show_generic_names(): boolean;
113
+ get_show_menu_icons(): boolean;
114
+ get_show_tooltips(): boolean;
115
+ set_menu(garcon_menu: Garcon.Menu): void;
116
+ set_right_click_edits(enable_right_click_edits: boolean): void;
117
+ set_show_desktop_actions(show_desktop_actions: boolean): void;
118
+ set_show_generic_names(show_generic_names: boolean): void;
119
+ set_show_menu_icons(show_menu_icons: boolean): void;
120
+ set_show_tooltips(show_tooltips: boolean): void;
121
+
122
+ // Inherited methods
123
+ /**
124
+ * Creates a binding between `source_property` on `source` and `target_property`
125
+ * on `target`.
126
+ *
127
+ * Whenever the `source_property` is changed the `target_property` is
128
+ * updated using the same value. For instance:
129
+ *
130
+ *
131
+ * ```c
132
+ * g_object_bind_property (action, "active", widget, "sensitive", 0);
133
+ * ```
134
+ *
135
+ *
136
+ * Will result in the "sensitive" property of the widget #GObject instance to be
137
+ * updated with the same value of the "active" property of the action #GObject
138
+ * instance.
139
+ *
140
+ * If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
141
+ * if `target_property` on `target` changes then the `source_property` on `source`
142
+ * will be updated as well.
143
+ *
144
+ * The binding will automatically be removed when either the `source` or the
145
+ * `target` instances are finalized. To remove the binding without affecting the
146
+ * `source` and the `target` you can just call g_object_unref() on the returned
147
+ * #GBinding instance.
148
+ *
149
+ * Removing the binding by calling g_object_unref() on it must only be done if
150
+ * the binding, `source` and `target` are only used from a single thread and it
151
+ * is clear that both `source` and `target` outlive the binding. Especially it
152
+ * is not safe to rely on this if the binding, `source` or `target` can be
153
+ * finalized from different threads. Keep another reference to the binding and
154
+ * use g_binding_unbind() instead to be on the safe side.
155
+ *
156
+ * A #GObject can have multiple bindings.
157
+ * @param source_property the property on @source to bind
158
+ * @param target the target #GObject
159
+ * @param target_property the property on @target to bind
160
+ * @param flags flags to pass to #GBinding
161
+ * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
162
+ */
163
+ bind_property(
164
+ source_property: string,
165
+ target: GObject.Object,
166
+ target_property: string,
167
+ flags: GObject.BindingFlags,
168
+ ): GObject.Binding;
169
+ /**
170
+ * Complete version of g_object_bind_property().
171
+ *
172
+ * Creates a binding between `source_property` on `source` and `target_property`
173
+ * on `target,` allowing you to set the transformation functions to be used by
174
+ * the binding.
175
+ *
176
+ * If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
177
+ * if `target_property` on `target` changes then the `source_property` on `source`
178
+ * will be updated as well. The `transform_from` function is only used in case
179
+ * of bidirectional bindings, otherwise it will be ignored
180
+ *
181
+ * The binding will automatically be removed when either the `source` or the
182
+ * `target` instances are finalized. This will release the reference that is
183
+ * being held on the #GBinding instance; if you want to hold on to the
184
+ * #GBinding instance, you will need to hold a reference to it.
185
+ *
186
+ * To remove the binding, call g_binding_unbind().
187
+ *
188
+ * A #GObject can have multiple bindings.
189
+ *
190
+ * The same `user_data` parameter will be used for both `transform_to`
191
+ * and `transform_from` transformation functions; the `notify` function will
192
+ * be called once, when the binding is removed. If you need different data
193
+ * for each transformation function, please use
194
+ * g_object_bind_property_with_closures() instead.
195
+ * @param source_property the property on @source to bind
196
+ * @param target the target #GObject
197
+ * @param target_property the property on @target to bind
198
+ * @param flags flags to pass to #GBinding
199
+ * @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
200
+ * @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
201
+ * @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
202
+ * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
203
+ */
204
+ bind_property_full(
205
+ source_property: string,
206
+ target: GObject.Object,
207
+ target_property: string,
208
+ flags: GObject.BindingFlags,
209
+ transform_to?: GObject.BindingTransformFunc | null,
210
+ transform_from?: GObject.BindingTransformFunc | null,
211
+ notify?: GLib.DestroyNotify | null,
212
+ ): GObject.Binding;
213
+ // Conflicted with GObject.Object.bind_property_full
214
+ bind_property_full(...args: never[]): any;
215
+ /**
216
+ * This function is intended for #GObject implementations to re-enforce
217
+ * a [floating][floating-ref] object reference. Doing this is seldom
218
+ * required: all #GInitiallyUnowneds are created with a floating reference
219
+ * which usually just needs to be sunken by calling g_object_ref_sink().
220
+ */
221
+ force_floating(): void;
222
+ /**
223
+ * Increases the freeze count on `object`. If the freeze count is
224
+ * non-zero, the emission of "notify" signals on `object` is
225
+ * stopped. The signals are queued until the freeze count is decreased
226
+ * to zero. Duplicate notifications are squashed so that at most one
227
+ * #GObject::notify signal is emitted for each property modified while the
228
+ * object is frozen.
229
+ *
230
+ * This is necessary for accessors that modify multiple properties to prevent
231
+ * premature notification while the object is still being modified.
232
+ */
233
+ freeze_notify(): void;
234
+ /**
235
+ * Gets a named field from the objects table of associations (see g_object_set_data()).
236
+ * @param key name of the key for that association
237
+ * @returns the data if found, or %NULL if no such data exists.
238
+ */
239
+ get_data(key: string): any | null;
240
+ get_property(property_name: string): any;
241
+ /**
242
+ * This function gets back user data pointers stored via
243
+ * g_object_set_qdata().
244
+ * @param quark A #GQuark, naming the user data pointer
245
+ * @returns The user data pointer set, or %NULL
246
+ */
247
+ get_qdata(quark: GLib.Quark): any | null;
248
+ /**
249
+ * Gets `n_properties` properties for an `object`.
250
+ * Obtained properties will be set to `values`. All properties must be valid.
251
+ * Warnings will be emitted and undefined behaviour may result if invalid
252
+ * properties are passed in.
253
+ * @param names the names of each property to get
254
+ * @param values the values of each property to get
255
+ */
256
+ getv(names: string[], values: (GObject.Value | any)[]): void;
257
+ /**
258
+ * Checks whether `object` has a [floating][floating-ref] reference.
259
+ * @returns %TRUE if @object has a floating reference
260
+ */
261
+ is_floating(): boolean;
262
+ /**
263
+ * Emits a "notify" signal for the property `property_name` on `object`.
264
+ *
265
+ * When possible, eg. when signaling a property change from within the class
266
+ * that registered the property, you should use g_object_notify_by_pspec()
267
+ * instead.
268
+ *
269
+ * Note that emission of the notify signal may be blocked with
270
+ * g_object_freeze_notify(). In this case, the signal emissions are queued
271
+ * and will be emitted (in reverse order) when g_object_thaw_notify() is
272
+ * called.
273
+ * @param property_name the name of a property installed on the class of @object.
274
+ */
275
+ notify(property_name: string): void;
276
+ /**
277
+ * Emits a "notify" signal for the property specified by `pspec` on `object`.
278
+ *
279
+ * This function omits the property name lookup, hence it is faster than
280
+ * g_object_notify().
281
+ *
282
+ * One way to avoid using g_object_notify() from within the
283
+ * class that registered the properties, and using g_object_notify_by_pspec()
284
+ * instead, is to store the GParamSpec used with
285
+ * g_object_class_install_property() inside a static array, e.g.:
286
+ *
287
+ *
288
+ * ```c
289
+ * typedef enum
290
+ * {
291
+ * PROP_FOO = 1,
292
+ * PROP_LAST
293
+ * } MyObjectProperty;
294
+ *
295
+ * static GParamSpec *properties[PROP_LAST];
296
+ *
297
+ * static void
298
+ * my_object_class_init (MyObjectClass *klass)
299
+ * {
300
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
301
+ * 0, 100,
302
+ * 50,
303
+ * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
304
+ * g_object_class_install_property (gobject_class,
305
+ * PROP_FOO,
306
+ * properties[PROP_FOO]);
307
+ * }
308
+ * ```
309
+ *
310
+ *
311
+ * and then notify a change on the "foo" property with:
312
+ *
313
+ *
314
+ * ```c
315
+ * g_object_notify_by_pspec (self, properties[PROP_FOO]);
316
+ * ```
317
+ *
318
+ * @param pspec the #GParamSpec of a property installed on the class of @object.
319
+ */
320
+ notify_by_pspec(pspec: GObject.ParamSpec): void;
321
+ /**
322
+ * Increases the reference count of `object`.
323
+ *
324
+ * Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
325
+ * of `object` will be propagated to the return type (using the GCC typeof()
326
+ * extension), so any casting the caller needs to do on the return type must be
327
+ * explicit.
328
+ * @returns the same @object
329
+ */
330
+ ref(): GObject.Object;
331
+ /**
332
+ * Increase the reference count of `object,` and possibly remove the
333
+ * [floating][floating-ref] reference, if `object` has a floating reference.
334
+ *
335
+ * In other words, if the object is floating, then this call "assumes
336
+ * ownership" of the floating reference, converting it to a normal
337
+ * reference by clearing the floating flag while leaving the reference
338
+ * count unchanged. If the object is not floating, then this call
339
+ * adds a new normal reference increasing the reference count by one.
340
+ *
341
+ * Since GLib 2.56, the type of `object` will be propagated to the return type
342
+ * under the same conditions as for g_object_ref().
343
+ * @returns @object
344
+ */
345
+ ref_sink(): GObject.Object;
346
+ /**
347
+ * Releases all references to other objects. This can be used to break
348
+ * reference cycles.
349
+ *
350
+ * This function should only be called from object system implementations.
351
+ */
352
+ run_dispose(): void;
353
+ /**
354
+ * Each object carries around a table of associations from
355
+ * strings to pointers. This function lets you set an association.
356
+ *
357
+ * If the object already had an association with that name,
358
+ * the old association will be destroyed.
359
+ *
360
+ * Internally, the `key` is converted to a #GQuark using g_quark_from_string().
361
+ * This means a copy of `key` is kept permanently (even after `object` has been
362
+ * finalized) — so it is recommended to only use a small, bounded set of values
363
+ * for `key` in your program, to avoid the #GQuark storage growing unbounded.
364
+ * @param key name of the key
365
+ * @param data data to associate with that key
366
+ */
367
+ set_data(key: string, data?: any | null): void;
368
+ set_property(property_name: string, value: any): void;
369
+ /**
370
+ * Remove a specified datum from the object's data associations,
371
+ * without invoking the association's destroy handler.
372
+ * @param key name of the key
373
+ * @returns the data if found, or %NULL if no such data exists.
374
+ */
375
+ steal_data(key: string): any | null;
376
+ /**
377
+ * This function gets back user data pointers stored via
378
+ * g_object_set_qdata() and removes the `data` from object
379
+ * without invoking its destroy() function (if any was
380
+ * set).
381
+ * Usually, calling this function is only required to update
382
+ * user data pointers with a destroy notifier, for example:
383
+ *
384
+ * ```c
385
+ * void
386
+ * object_add_to_user_list (GObject *object,
387
+ * const gchar *new_string)
388
+ * {
389
+ * // the quark, naming the object data
390
+ * GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
391
+ * // retrieve the old string list
392
+ * GList *list = g_object_steal_qdata (object, quark_string_list);
393
+ *
394
+ * // prepend new string
395
+ * list = g_list_prepend (list, g_strdup (new_string));
396
+ * // this changed 'list', so we need to set it again
397
+ * g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
398
+ * }
399
+ * static void
400
+ * free_string_list (gpointer data)
401
+ * {
402
+ * GList *node, *list = data;
403
+ *
404
+ * for (node = list; node; node = node->next)
405
+ * g_free (node->data);
406
+ * g_list_free (list);
407
+ * }
408
+ * ```
409
+ *
410
+ * Using g_object_get_qdata() in the above example, instead of
411
+ * g_object_steal_qdata() would have left the destroy function set,
412
+ * and thus the partial string list would have been freed upon
413
+ * g_object_set_qdata_full().
414
+ * @param quark A #GQuark, naming the user data pointer
415
+ * @returns The user data pointer set, or %NULL
416
+ */
417
+ steal_qdata(quark: GLib.Quark): any | null;
418
+ /**
419
+ * Reverts the effect of a previous call to
420
+ * g_object_freeze_notify(). The freeze count is decreased on `object`
421
+ * and when it reaches zero, queued "notify" signals are emitted.
422
+ *
423
+ * Duplicate notifications for each property are squashed so that at most one
424
+ * #GObject::notify signal is emitted for each property, in the reverse order
425
+ * in which they have been queued.
426
+ *
427
+ * It is an error to call this function when the freeze count is zero.
428
+ */
429
+ thaw_notify(): void;
430
+ /**
431
+ * Decreases the reference count of `object`. When its reference count
432
+ * drops to 0, the object is finalized (i.e. its memory is freed).
433
+ *
434
+ * If the pointer to the #GObject may be reused in future (for example, if it is
435
+ * an instance variable of another object), it is recommended to clear the
436
+ * pointer to %NULL rather than retain a dangling pointer to a potentially
437
+ * invalid #GObject instance. Use g_clear_object() for this.
438
+ */
439
+ unref(): void;
440
+ /**
441
+ * This function essentially limits the life time of the `closure` to
442
+ * the life time of the object. That is, when the object is finalized,
443
+ * the `closure` is invalidated by calling g_closure_invalidate() on
444
+ * it, in order to prevent invocations of the closure with a finalized
445
+ * (nonexisting) object. Also, g_object_ref() and g_object_unref() are
446
+ * added as marshal guards to the `closure,` to ensure that an extra
447
+ * reference count is held on `object` during invocation of the
448
+ * `closure`. Usually, this function will be called on closures that
449
+ * use this `object` as closure data.
450
+ * @param closure #GClosure to watch
451
+ */
452
+ watch_closure(closure: GObject.Closure): void;
453
+ vfunc_constructed(): void;
454
+ vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
455
+ vfunc_dispose(): void;
456
+ vfunc_finalize(): void;
457
+ vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
458
+ /**
459
+ * Emits a "notify" signal for the property `property_name` on `object`.
460
+ *
461
+ * When possible, eg. when signaling a property change from within the class
462
+ * that registered the property, you should use g_object_notify_by_pspec()
463
+ * instead.
464
+ *
465
+ * Note that emission of the notify signal may be blocked with
466
+ * g_object_freeze_notify(). In this case, the signal emissions are queued
467
+ * and will be emitted (in reverse order) when g_object_thaw_notify() is
468
+ * called.
469
+ * @param pspec
470
+ */
471
+ vfunc_notify(pspec: GObject.ParamSpec): void;
472
+ vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
473
+ disconnect(id: number): void;
474
+ set(properties: { [key: string]: any }): void;
475
+ block_signal_handler(id: number): any;
476
+ unblock_signal_handler(id: number): any;
477
+ stop_emission_by_name(detailedName: string): any;
478
+ }
479
+
480
+ type MenuClass = typeof Menu;
481
+ abstract class MenuPrivate {
482
+ static $gtype: GObject.GType<MenuPrivate>;
483
+
484
+ // Constructors of GarconGtk.MenuPrivate
485
+
486
+ _init(...args: any[]): void;
487
+ }
488
+
489
+ /**
490
+ * Name of the imported GIR library
491
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
492
+ */
493
+ const __name__: string;
494
+ /**
495
+ * Version of the imported GIR library
496
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
497
+ */
498
+ const __version__: string;
499
+ }
500
+
501
+ export default GarconGtk;
502
+ // END
@@ -0,0 +1,6 @@
1
+
2
+ // @ts-expect-error
3
+ import GarconGtk from 'gi://GarconGtk?version=1.0';
4
+ export { GarconGtk };
5
+ export default GarconGtk;
6
+
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@girs/garcongtk-1.0",
3
+ "version": "1.0.0-4.0.0-beta.3",
4
+ "description": "GJS TypeScript type definitions for GarconGtk-1.0, generated from library version 1.0.0",
5
+ "type": "module",
6
+ "module": "garcongtk-1.0.js",
7
+ "main": "garcongtk-1.0.js",
8
+ "exports": {
9
+ "./ambient": {
10
+ "types": "./garcongtk-1.0-ambient.d.ts",
11
+ "import": "./garcongtk-1.0-ambient.js",
12
+ "default": "./garcongtk-1.0-ambient.js"
13
+ },
14
+ "./import": {
15
+ "types": "./garcongtk-1.0-import.d.ts",
16
+ "import": "./garcongtk-1.0-import.js",
17
+ "default": "./garcongtk-1.0-import.js"
18
+ },
19
+ ".": {
20
+ "types": "./garcongtk-1.0.d.ts",
21
+ "import": "./garcongtk-1.0.js",
22
+ "default": "./garcongtk-1.0.js"
23
+ }
24
+ },
25
+ "scripts": {
26
+ "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit garcongtk-1.0.d.ts"
27
+ },
28
+ "dependencies": {
29
+ "@girs/atk-1.0": "^2.52.0-4.0.0-beta.3",
30
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.3",
31
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.3",
32
+ "@girs/garcon-1.0": "^4.18.2-4.0.0-beta.3",
33
+ "@girs/gdk-3.0": "^3.24.41-4.0.0-beta.3",
34
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.3",
35
+ "@girs/gio-2.0": "^2.80.0-4.0.0-beta.3",
36
+ "@girs/gjs": "^4.0.0-beta.3",
37
+ "@girs/glib-2.0": "^2.80.0-4.0.0-beta.3",
38
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.3",
39
+ "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.3",
40
+ "@girs/gtk-3.0": "^3.24.41-4.0.0-beta.3",
41
+ "@girs/harfbuzz-0.0": "^8.3.1-4.0.0-beta.3",
42
+ "@girs/libxfce4ui-2.0": "^2.0.0-4.0.0-beta.3",
43
+ "@girs/libxfce4util-1.0": "^1.0.0-4.0.0-beta.3",
44
+ "@girs/pango-1.0": "^1.51.0-4.0.0-beta.3",
45
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.3"
46
+ },
47
+ "devDependencies": {
48
+ "typescript": "*"
49
+ },
50
+ "keywords": [
51
+ "Gir",
52
+ "TypeScript",
53
+ "types",
54
+ "GObject-Introspection",
55
+ "GJS",
56
+ "GarconGtk-1.0"
57
+ ],
58
+ "author": "ts-for-gir",
59
+ "license": "MIT",
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
63
+ },
64
+ "bugs": {
65
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
66
+ },
67
+ "homepage": "https://github.com/gjsify/types/tree/main/garcongtk-1.0#readme"
68
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "compilerOptions": {
3
+ // General settings for code interpretation
4
+ "target": "ESNext",
5
+ "module": "ESNext",
6
+ "lib": ["ESNext"],
7
+ "types": [],
8
+ "experimentalDecorators": true,
9
+ "moduleResolution": "node",
10
+ "noEmit": true,
11
+ "noEmitOnError": false,
12
+ "baseUrl": "./",
13
+ "rootDir": ".",
14
+ // General settings for code generation
15
+ "removeComments": false,
16
+ "inlineSourceMap": false,
17
+ "inlineSources": false,
18
+ "newLine": "LF"
19
+ },
20
+ "include": ["./garcongtk-1.0.d.ts"]
21
+ }
22
+
23
+
package/typedoc.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "entryPoints": ["./garcongtk-1.0.d.ts"],
3
+ "readme": "./README.md",
4
+ "name": "GarconGtk-1.0",
5
+ "tsconfig": "./tsconfig.json"
6
+ }
7
+