@girs/gtd-1.0 4.3.0 → 4.4.0

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gtd-1.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gtd-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
8
+ GJS TypeScript type definitions for Gtd-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
9
9
 
10
10
  ## Install
11
11
 
@@ -186,6 +186,23 @@ export interface Widgets {
186
186
  /** Every GType this namespace can create. A consumer derives its own tag map. */
187
187
  export type WidgetGType = keyof Widgets;
188
188
 
189
+ // ---------------------------------------------------------------------------
190
+ // Child holders — the same shape, for objects that CARRY a widget without being one.
191
+ //
192
+ // `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
193
+ // `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
194
+ // them exactly like a container, so they belong in the vocabulary; a check asking "is
195
+ // this a widget" must still be able to say no. Hence a sibling table rather than four
196
+ // more rows in `Widgets`: concatenate them when you mean both.
197
+ // ---------------------------------------------------------------------------
198
+
199
+ export interface ChildHolders {
200
+
201
+ }
202
+
203
+ /** Every GType this namespace holds a child in without it being a widget. */
204
+ export type ChildHolderGType = keyof ChildHolders;
205
+
189
206
  /** The writable, optional, GObject-keyed property surface of one GType. */
190
207
  export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
191
208
 
@@ -221,6 +238,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
221
238
  /** Widget GType -> every declaration its members come from, self first. */
222
239
  export const DECLS: Readonly<Record<string, readonly string[]>>;
223
240
 
241
+ /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
242
+ export const CHILD_HOLDERS: readonly string[];
243
+
224
244
  /** Enum GType -> the nicks this surface offers. */
225
245
  export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
226
246
 
@@ -29,6 +29,12 @@ export const DECLS = {
29
29
  GtdWindow: ['GtdWindow', 'GtkApplicationWindow', 'GtkWindow', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkNative', 'GtkRoot', 'GtkShortcutManager'],
30
30
  };
31
31
 
32
+ // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
33
+ // and descend from `GObject.Object`. A renderer places them like a container; a check
34
+ // asking "is this a widget" must not count them. Derived from the accessor pair, never
35
+ // from a list — the count is in the provenance line above.
36
+ export const CHILD_HOLDERS = [];
37
+
32
38
  export const ENUM_NICKS = {};
33
39
 
34
40
  export const SLOT_CANDIDATES = {
package/gtd-1.0.d.ts CHANGED
@@ -259,6 +259,7 @@ export namespace Gtd {
259
259
  * The item type of a {@link Gio.ListModel} can not change during the life of the
260
260
  * model.
261
261
  * @returns the {@link GObject.GType} of the items contained in `list`.
262
+ * @since 2.44
262
263
  */
263
264
  get_item_type(): GObject.GType;
264
265
 
@@ -269,6 +270,7 @@ export namespace Gtd {
269
270
  * less efficient than iterating the list with increasing values for
270
271
  * `position` until `g_list_model_get_item()` returns `null`.
271
272
  * @returns the number of items in `list`.
273
+ * @since 2.44
272
274
  */
273
275
  get_n_items(): number;
274
276
 
@@ -287,6 +289,7 @@ export namespace Gtd {
287
289
  * See also: `g_list_model_get_n_items()`
288
290
  * @param position the position of the item to fetch
289
291
  * @returns the object at `position`.
292
+ * @since 2.44
290
293
  */
291
294
  get_item(position: number): A | null;
292
295
 
@@ -314,6 +317,7 @@ export namespace Gtd {
314
317
  * @param position the position at which `list` changed
315
318
  * @param removed the number of items removed
316
319
  * @param added the number of items added
320
+ * @since 2.44
317
321
  */
318
322
  items_changed(position: number, removed: number, added: number): void;
319
323
 
@@ -326,6 +330,7 @@ export namespace Gtd {
326
330
  *
327
331
  * The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
328
332
  * @param position the position of the item to fetch
333
+ * @since 2.44
329
334
  * @virtual
330
335
  */
331
336
  vfunc_get_item(position: number): A | null;
@@ -339,6 +344,7 @@ export namespace Gtd {
339
344
  *
340
345
  * The item type of a {@link Gio.ListModel} can not change during the life of the
341
346
  * model.
347
+ * @since 2.44
342
348
  * @virtual
343
349
  */
344
350
  vfunc_get_item_type(): GObject.GType;
@@ -349,6 +355,7 @@ export namespace Gtd {
349
355
  * Depending on the model implementation, calling this function may be
350
356
  * less efficient than iterating the list with increasing values for
351
357
  * `position` until `g_list_model_get_item()` returns `null`.
358
+ * @since 2.44
352
359
  * @virtual
353
360
  */
354
361
  vfunc_get_n_items(): number;
@@ -532,6 +539,7 @@ export namespace Gtd {
532
539
  * The item type of a {@link Gio.ListModel} can not change during the life of the
533
540
  * model.
534
541
  * @returns the {@link GObject.GType} of the items contained in `list`.
542
+ * @since 2.44
535
543
  */
536
544
  get_item_type(): GObject.GType;
537
545
 
@@ -542,6 +550,7 @@ export namespace Gtd {
542
550
  * less efficient than iterating the list with increasing values for
543
551
  * `position` until `g_list_model_get_item()` returns `null`.
544
552
  * @returns the number of items in `list`.
553
+ * @since 2.44
545
554
  */
546
555
  get_n_items(): number;
547
556
 
@@ -560,6 +569,7 @@ export namespace Gtd {
560
569
  * See also: `g_list_model_get_n_items()`
561
570
  * @param position the position of the item to fetch
562
571
  * @returns the object at `position`.
572
+ * @since 2.44
563
573
  */
564
574
  get_item(position: number): A | null;
565
575
 
@@ -587,6 +597,7 @@ export namespace Gtd {
587
597
  * @param position the position at which `list` changed
588
598
  * @param removed the number of items removed
589
599
  * @param added the number of items added
600
+ * @since 2.44
590
601
  */
591
602
  items_changed(position: number, removed: number, added: number): void;
592
603
 
@@ -599,6 +610,7 @@ export namespace Gtd {
599
610
  *
600
611
  * The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
601
612
  * @param position the position of the item to fetch
613
+ * @since 2.44
602
614
  * @virtual
603
615
  */
604
616
  vfunc_get_item(position: number): A | null;
@@ -612,6 +624,7 @@ export namespace Gtd {
612
624
  *
613
625
  * The item type of a {@link Gio.ListModel} can not change during the life of the
614
626
  * model.
627
+ * @since 2.44
615
628
  * @virtual
616
629
  */
617
630
  vfunc_get_item_type(): GObject.GType;
@@ -622,6 +635,7 @@ export namespace Gtd {
622
635
  * Depending on the model implementation, calling this function may be
623
636
  * less efficient than iterating the list with increasing values for
624
637
  * `position` until `g_list_model_get_item()` returns `null`.
638
+ * @since 2.44
625
639
  * @virtual
626
640
  */
627
641
  vfunc_get_n_items(): number;
@@ -1414,6 +1428,7 @@ export namespace Gtd {
1414
1428
  * does not interrupts the user's current screen reader output.
1415
1429
  * @param message the string to announce
1416
1430
  * @param priority the priority of the announcement
1431
+ * @since 4.14
1417
1432
  */
1418
1433
  announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
1419
1434
 
@@ -1426,6 +1441,7 @@ export namespace Gtd {
1426
1441
  * It is left to the accessible implementation to define the scope
1427
1442
  * and uniqueness of the identifier.
1428
1443
  * @returns the accessible identifier
1444
+ * @since 4.22
1429
1445
  */
1430
1446
  get_accessible_id(): string | null;
1431
1447
 
@@ -1434,6 +1450,7 @@ export namespace Gtd {
1434
1450
  *
1435
1451
  * This function returns `NULL` for top level widgets.
1436
1452
  * @returns the accessible parent
1453
+ * @since 4.10
1437
1454
  */
1438
1455
  get_accessible_parent(): Gtk.Accessible | null;
1439
1456
 
@@ -1446,6 +1463,7 @@ export namespace Gtd {
1446
1463
  /**
1447
1464
  * Retrieves the implementation for the given accessible object.
1448
1465
  * @returns the accessible implementation object
1466
+ * @since 4.10
1449
1467
  */
1450
1468
  get_at_context(): Gtk.ATContext;
1451
1469
 
@@ -1456,18 +1474,21 @@ export namespace Gtd {
1456
1474
  * implementations, e.g. to get the bounds from an ignored
1457
1475
  * child widget.
1458
1476
  * @returns true if the bounds are valid, and false otherwise
1477
+ * @since 4.10
1459
1478
  */
1460
1479
  get_bounds(): [boolean, number, number, number, number];
1461
1480
 
1462
1481
  /**
1463
1482
  * Retrieves the first accessible child of an accessible object.
1464
1483
  * @returns the first accessible child
1484
+ * @since 4.10
1465
1485
  */
1466
1486
  get_first_accessible_child(): Gtk.Accessible | null;
1467
1487
 
1468
1488
  /**
1469
1489
  * Retrieves the next accessible sibling of an accessible object
1470
1490
  * @returns the next accessible sibling
1491
+ * @since 4.10
1471
1492
  */
1472
1493
  get_next_accessible_sibling(): Gtk.Accessible | null;
1473
1494
 
@@ -1479,6 +1500,7 @@ export namespace Gtd {
1479
1500
  * child widget, as is the case for {@link Gtk.Text} wrappers.
1480
1501
  * @param state platform state to query
1481
1502
  * @returns the value of state for the accessible
1503
+ * @since 4.10
1482
1504
  */
1483
1505
  get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
1484
1506
 
@@ -1512,6 +1534,7 @@ export namespace Gtd {
1512
1534
  * object is the container widget.
1513
1535
  * @param parent the parent accessible object
1514
1536
  * @param next_sibling the sibling accessible object
1537
+ * @since 4.10
1515
1538
  */
1516
1539
  set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
1517
1540
 
@@ -1521,6 +1544,7 @@ export namespace Gtd {
1521
1544
  * That might be useful when a new child of a custom accessible
1522
1545
  * is created, and it needs to be linked to a previous child.
1523
1546
  * @param new_sibling the new next accessible sibling to set
1547
+ * @since 4.10
1524
1548
  */
1525
1549
  update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
1526
1550
 
@@ -1531,6 +1555,7 @@ export namespace Gtd {
1531
1555
  * have a platform state but are not widgets. Widgets handle platform
1532
1556
  * states automatically.
1533
1557
  * @param state the platform state to update
1558
+ * @since 4.18
1534
1559
  */
1535
1560
  update_platform_state(state: Gtk.AccessiblePlatformState): void;
1536
1561
 
@@ -1578,6 +1603,7 @@ export namespace Gtd {
1578
1603
  *
1579
1604
  * It is left to the accessible implementation to define the scope
1580
1605
  * and uniqueness of the identifier.
1606
+ * @since 4.22
1581
1607
  * @virtual
1582
1608
  */
1583
1609
  vfunc_get_accessible_id(): string | null;
@@ -1586,12 +1612,14 @@ export namespace Gtd {
1586
1612
  * Retrieves the accessible parent for an accessible object.
1587
1613
  *
1588
1614
  * This function returns `NULL` for top level widgets.
1615
+ * @since 4.10
1589
1616
  * @virtual
1590
1617
  */
1591
1618
  vfunc_get_accessible_parent(): Gtk.Accessible | null;
1592
1619
 
1593
1620
  /**
1594
1621
  * Retrieves the implementation for the given accessible object.
1622
+ * @since 4.10
1595
1623
  * @virtual
1596
1624
  */
1597
1625
  vfunc_get_at_context(): Gtk.ATContext | null;
@@ -1602,18 +1630,21 @@ export namespace Gtd {
1602
1630
  * This functionality can be overridden by {@link Gtk.Accessible}
1603
1631
  * implementations, e.g. to get the bounds from an ignored
1604
1632
  * child widget.
1633
+ * @since 4.10
1605
1634
  * @virtual
1606
1635
  */
1607
1636
  vfunc_get_bounds(): [boolean, number, number, number, number];
1608
1637
 
1609
1638
  /**
1610
1639
  * Retrieves the first accessible child of an accessible object.
1640
+ * @since 4.10
1611
1641
  * @virtual
1612
1642
  */
1613
1643
  vfunc_get_first_accessible_child(): Gtk.Accessible | null;
1614
1644
 
1615
1645
  /**
1616
1646
  * Retrieves the next accessible sibling of an accessible object
1647
+ * @since 4.10
1617
1648
  * @virtual
1618
1649
  */
1619
1650
  vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
@@ -1625,6 +1656,7 @@ export namespace Gtd {
1625
1656
  * implementations, e.g. to get platform state from an ignored
1626
1657
  * child widget, as is the case for {@link Gtk.Text} wrappers.
1627
1658
  * @param state platform state to query
1659
+ * @since 4.10
1628
1660
  * @virtual
1629
1661
  */
1630
1662
  vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
@@ -2994,6 +3026,7 @@ export namespace Gtd {
2994
3026
  * The item type of a {@link Gio.ListModel} can not change during the life of the
2995
3027
  * model.
2996
3028
  * @returns the {@link GObject.GType} of the items contained in `list`.
3029
+ * @since 2.44
2997
3030
  */
2998
3031
  get_item_type(): GObject.GType;
2999
3032
 
@@ -3004,6 +3037,7 @@ export namespace Gtd {
3004
3037
  * less efficient than iterating the list with increasing values for
3005
3038
  * `position` until `g_list_model_get_item()` returns `null`.
3006
3039
  * @returns the number of items in `list`.
3040
+ * @since 2.44
3007
3041
  */
3008
3042
  get_n_items(): number;
3009
3043
 
@@ -3022,6 +3056,7 @@ export namespace Gtd {
3022
3056
  * See also: `g_list_model_get_n_items()`
3023
3057
  * @param position the position of the item to fetch
3024
3058
  * @returns the object at `position`.
3059
+ * @since 2.44
3025
3060
  */
3026
3061
  get_item(position: number): A | null;
3027
3062
 
@@ -3049,6 +3084,7 @@ export namespace Gtd {
3049
3084
  * @param position the position at which `list` changed
3050
3085
  * @param removed the number of items removed
3051
3086
  * @param added the number of items added
3087
+ * @since 2.44
3052
3088
  */
3053
3089
  items_changed(position: number, removed: number, added: number): void;
3054
3090
 
@@ -3061,6 +3097,7 @@ export namespace Gtd {
3061
3097
  *
3062
3098
  * The same {@link GObject.Object} instance may not appear more than once in a {@link Gio.ListModel}.
3063
3099
  * @param position the position of the item to fetch
3100
+ * @since 2.44
3064
3101
  * @virtual
3065
3102
  */
3066
3103
  vfunc_get_item(position: number): A | null;
@@ -3074,6 +3111,7 @@ export namespace Gtd {
3074
3111
  *
3075
3112
  * The item type of a {@link Gio.ListModel} can not change during the life of the
3076
3113
  * model.
3114
+ * @since 2.44
3077
3115
  * @virtual
3078
3116
  */
3079
3117
  vfunc_get_item_type(): GObject.GType;
@@ -3084,6 +3122,7 @@ export namespace Gtd {
3084
3122
  * Depending on the model implementation, calling this function may be
3085
3123
  * less efficient than iterating the list with increasing values for
3086
3124
  * `position` until `g_list_model_get_item()` returns `null`.
3125
+ * @since 2.44
3087
3126
  * @virtual
3088
3127
  */
3089
3128
  vfunc_get_n_items(): number;
@@ -4102,6 +4141,7 @@ export namespace Gtd {
4102
4141
  * property.
4103
4142
  * @param name the name of the transition to add
4104
4143
  * @param transition the {@link Gtd.Transition} to add
4144
+ * @since 1.10
4105
4145
  */
4106
4146
  add_transition(name: string, transition: Transition): void;
4107
4147
 
@@ -4114,6 +4154,7 @@ export namespace Gtd {
4114
4154
  * Retrieves the delay that should be applied when tweening animatable
4115
4155
  * properties.
4116
4156
  * @returns a delay, in milliseconds
4157
+ * @since 1.10
4117
4158
  */
4118
4159
  get_easing_delay(): number;
4119
4160
 
@@ -4121,6 +4162,7 @@ export namespace Gtd {
4121
4162
  * Retrieves the duration of the tweening for animatable
4122
4163
  * properties of `self` for the current easing state.
4123
4164
  * @returns the duration of the tweening, in milliseconds
4165
+ * @since 1.10
4124
4166
  */
4125
4167
  get_easing_duration(): number;
4126
4168
 
@@ -4182,6 +4224,7 @@ export namespace Gtd {
4182
4224
 
4183
4225
  /**
4184
4226
  * Removes all transitions associated to `self`.
4227
+ * @since 1.10
4185
4228
  */
4186
4229
  remove_all_transitions(): void;
4187
4230
 
@@ -4194,12 +4237,14 @@ export namespace Gtd {
4194
4237
  * This function releases the reference acquired when the transition
4195
4238
  * was added to the {@link Gtd.Widget}.
4196
4239
  * @param name the name of the transition to remove
4240
+ * @since 1.10
4197
4241
  */
4198
4242
  remove_transition(name: string): void;
4199
4243
 
4200
4244
  /**
4201
4245
  * Restores the easing state as it was prior to a call to
4202
4246
  * `gtd_widget_save_easing_state()`.
4247
+ * @since 1.10
4203
4248
  */
4204
4249
  restore_easing_state(): void;
4205
4250
 
@@ -4217,6 +4262,7 @@ export namespace Gtd {
4217
4262
  * Sets the delay that should be applied before tweening animatable
4218
4263
  * properties.
4219
4264
  * @param msecs the delay before the start of the tweening, in milliseconds
4265
+ * @since 1.10
4220
4266
  */
4221
4267
  set_easing_delay(msecs: number): void;
4222
4268
 
@@ -4224,6 +4270,7 @@ export namespace Gtd {
4224
4270
  * Sets the duration of the tweening for animatable properties
4225
4271
  * of `self` for the current easing state.
4226
4272
  * @param msecs the duration of the easing, or `null`
4273
+ * @since 1.10
4227
4274
  */
4228
4275
  set_easing_duration(msecs: number): void;
4229
4276
 
@@ -4285,6 +4332,7 @@ export namespace Gtd {
4285
4332
  * does not interrupts the user's current screen reader output.
4286
4333
  * @param message the string to announce
4287
4334
  * @param priority the priority of the announcement
4335
+ * @since 4.14
4288
4336
  */
4289
4337
  announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
4290
4338
 
@@ -4297,6 +4345,7 @@ export namespace Gtd {
4297
4345
  * It is left to the accessible implementation to define the scope
4298
4346
  * and uniqueness of the identifier.
4299
4347
  * @returns the accessible identifier
4348
+ * @since 4.22
4300
4349
  */
4301
4350
  get_accessible_id(): string | null;
4302
4351
 
@@ -4305,6 +4354,7 @@ export namespace Gtd {
4305
4354
  *
4306
4355
  * This function returns `NULL` for top level widgets.
4307
4356
  * @returns the accessible parent
4357
+ * @since 4.10
4308
4358
  */
4309
4359
  get_accessible_parent(): Gtk.Accessible | null;
4310
4360
 
@@ -4317,6 +4367,7 @@ export namespace Gtd {
4317
4367
  /**
4318
4368
  * Retrieves the implementation for the given accessible object.
4319
4369
  * @returns the accessible implementation object
4370
+ * @since 4.10
4320
4371
  */
4321
4372
  get_at_context(): Gtk.ATContext;
4322
4373
 
@@ -4327,18 +4378,21 @@ export namespace Gtd {
4327
4378
  * implementations, e.g. to get the bounds from an ignored
4328
4379
  * child widget.
4329
4380
  * @returns true if the bounds are valid, and false otherwise
4381
+ * @since 4.10
4330
4382
  */
4331
4383
  get_bounds(): [boolean, number, number, number, number];
4332
4384
 
4333
4385
  /**
4334
4386
  * Retrieves the first accessible child of an accessible object.
4335
4387
  * @returns the first accessible child
4388
+ * @since 4.10
4336
4389
  */
4337
4390
  get_first_accessible_child(): Gtk.Accessible | null;
4338
4391
 
4339
4392
  /**
4340
4393
  * Retrieves the next accessible sibling of an accessible object
4341
4394
  * @returns the next accessible sibling
4395
+ * @since 4.10
4342
4396
  */
4343
4397
  get_next_accessible_sibling(): Gtk.Accessible | null;
4344
4398
 
@@ -4350,6 +4404,7 @@ export namespace Gtd {
4350
4404
  * child widget, as is the case for {@link Gtk.Text} wrappers.
4351
4405
  * @param state platform state to query
4352
4406
  * @returns the value of state for the accessible
4407
+ * @since 4.10
4353
4408
  */
4354
4409
  get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
4355
4410
 
@@ -4383,6 +4438,7 @@ export namespace Gtd {
4383
4438
  * object is the container widget.
4384
4439
  * @param parent the parent accessible object
4385
4440
  * @param next_sibling the sibling accessible object
4441
+ * @since 4.10
4386
4442
  */
4387
4443
  set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
4388
4444
 
@@ -4392,6 +4448,7 @@ export namespace Gtd {
4392
4448
  * That might be useful when a new child of a custom accessible
4393
4449
  * is created, and it needs to be linked to a previous child.
4394
4450
  * @param new_sibling the new next accessible sibling to set
4451
+ * @since 4.10
4395
4452
  */
4396
4453
  update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
4397
4454
 
@@ -4402,6 +4459,7 @@ export namespace Gtd {
4402
4459
  * have a platform state but are not widgets. Widgets handle platform
4403
4460
  * states automatically.
4404
4461
  * @param state the platform state to update
4462
+ * @since 4.18
4405
4463
  */
4406
4464
  update_platform_state(state: Gtk.AccessiblePlatformState): void;
4407
4465
 
@@ -4449,6 +4507,7 @@ export namespace Gtd {
4449
4507
  *
4450
4508
  * It is left to the accessible implementation to define the scope
4451
4509
  * and uniqueness of the identifier.
4510
+ * @since 4.22
4452
4511
  * @virtual
4453
4512
  */
4454
4513
  vfunc_get_accessible_id(): string | null;
@@ -4457,12 +4516,14 @@ export namespace Gtd {
4457
4516
  * Retrieves the accessible parent for an accessible object.
4458
4517
  *
4459
4518
  * This function returns `NULL` for top level widgets.
4519
+ * @since 4.10
4460
4520
  * @virtual
4461
4521
  */
4462
4522
  vfunc_get_accessible_parent(): Gtk.Accessible | null;
4463
4523
 
4464
4524
  /**
4465
4525
  * Retrieves the implementation for the given accessible object.
4526
+ * @since 4.10
4466
4527
  * @virtual
4467
4528
  */
4468
4529
  vfunc_get_at_context(): Gtk.ATContext | null;
@@ -4473,18 +4534,21 @@ export namespace Gtd {
4473
4534
  * This functionality can be overridden by {@link Gtk.Accessible}
4474
4535
  * implementations, e.g. to get the bounds from an ignored
4475
4536
  * child widget.
4537
+ * @since 4.10
4476
4538
  * @virtual
4477
4539
  */
4478
4540
  vfunc_get_bounds(): [boolean, number, number, number, number];
4479
4541
 
4480
4542
  /**
4481
4543
  * Retrieves the first accessible child of an accessible object.
4544
+ * @since 4.10
4482
4545
  * @virtual
4483
4546
  */
4484
4547
  vfunc_get_first_accessible_child(): Gtk.Accessible | null;
4485
4548
 
4486
4549
  /**
4487
4550
  * Retrieves the next accessible sibling of an accessible object
4551
+ * @since 4.10
4488
4552
  * @virtual
4489
4553
  */
4490
4554
  vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
@@ -4496,6 +4560,7 @@ export namespace Gtd {
4496
4560
  * implementations, e.g. to get platform state from an ignored
4497
4561
  * child widget, as is the case for {@link Gtk.Text} wrappers.
4498
4562
  * @param state platform state to query
4563
+ * @since 4.10
4499
4564
  * @virtual
4500
4565
  */
4501
4566
  vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
@@ -4742,6 +4807,7 @@ export namespace Gtd {
4742
4807
  *
4743
4808
  * This function should only be called by {@link Gio.ActionGroup} implementations.
4744
4809
  * @param action_name the name of an action in the group
4810
+ * @since 2.28
4745
4811
  */
4746
4812
  action_added(action_name: string): void;
4747
4813
 
@@ -4751,6 +4817,7 @@ export namespace Gtd {
4751
4817
  * This function should only be called by {@link Gio.ActionGroup} implementations.
4752
4818
  * @param action_name the name of an action in the group
4753
4819
  * @param enabled whether the action is now enabled
4820
+ * @since 2.28
4754
4821
  */
4755
4822
  action_enabled_changed(action_name: string, enabled: boolean): void;
4756
4823
 
@@ -4759,6 +4826,7 @@ export namespace Gtd {
4759
4826
  *
4760
4827
  * This function should only be called by {@link Gio.ActionGroup} implementations.
4761
4828
  * @param action_name the name of an action in the group
4829
+ * @since 2.28
4762
4830
  */
4763
4831
  action_removed(action_name: string): void;
4764
4832
 
@@ -4768,6 +4836,7 @@ export namespace Gtd {
4768
4836
  * This function should only be called by {@link Gio.ActionGroup} implementations.
4769
4837
  * @param action_name the name of an action in the group
4770
4838
  * @param state the new state of the named action
4839
+ * @since 2.28
4771
4840
  */
4772
4841
  action_state_changed(action_name: string, state: GLib.Variant): void;
4773
4842
 
@@ -4807,6 +4876,7 @@ export namespace Gtd {
4807
4876
  * ```
4808
4877
  * @param action_name the name of the action to activate
4809
4878
  * @param parameter parameters to the activation
4879
+ * @since 2.28
4810
4880
  */
4811
4881
  activate_action(action_name: string, parameter: GLib.Variant | null): void;
4812
4882
 
@@ -4830,6 +4900,7 @@ export namespace Gtd {
4830
4900
  * If the `value` GVariant is floating, it is consumed.
4831
4901
  * @param action_name the name of the action to request the change on
4832
4902
  * @param value the new state
4903
+ * @since 2.28
4833
4904
  */
4834
4905
  change_action_state(action_name: string, value: GLib.Variant): void;
4835
4906
 
@@ -4840,6 +4911,7 @@ export namespace Gtd {
4840
4911
  * have its state changed from outside callers.
4841
4912
  * @param action_name the name of the action to query
4842
4913
  * @returns whether the action is currently enabled
4914
+ * @since 2.28
4843
4915
  */
4844
4916
  get_action_enabled(action_name: string): boolean;
4845
4917
 
@@ -4859,6 +4931,7 @@ export namespace Gtd {
4859
4931
  * with the same name but a different parameter type.
4860
4932
  * @param action_name the name of the action to query
4861
4933
  * @returns the parameter type
4934
+ * @since 2.28
4862
4935
  */
4863
4936
  get_action_parameter_type(action_name: string): GLib.VariantType | null;
4864
4937
 
@@ -4873,6 +4946,7 @@ export namespace Gtd {
4873
4946
  * {@link GLib.Variant.unref} when it is no longer required.
4874
4947
  * @param action_name the name of the action to query
4875
4948
  * @returns the current state of the action
4949
+ * @since 2.28
4876
4950
  */
4877
4951
  get_action_state(action_name: string): GLib.Variant | null;
4878
4952
 
@@ -4897,6 +4971,7 @@ export namespace Gtd {
4897
4971
  * {@link GLib.Variant.unref} when it is no longer required.
4898
4972
  * @param action_name the name of the action to query
4899
4973
  * @returns the state range hint
4974
+ * @since 2.28
4900
4975
  */
4901
4976
  get_action_state_hint(action_name: string): GLib.Variant | null;
4902
4977
 
@@ -4919,6 +4994,7 @@ export namespace Gtd {
4919
4994
  * with the same name but a different state type.
4920
4995
  * @param action_name the name of the action to query
4921
4996
  * @returns the state type, if the action is stateful
4997
+ * @since 2.28
4922
4998
  */
4923
4999
  get_action_state_type(action_name: string): GLib.VariantType | null;
4924
5000
 
@@ -4926,6 +5002,7 @@ export namespace Gtd {
4926
5002
  * Checks if the named action exists within `action_group`.
4927
5003
  * @param action_name the name of the action to check for
4928
5004
  * @returns whether the named action exists
5005
+ * @since 2.28
4929
5006
  */
4930
5007
  has_action(action_name: string): boolean;
4931
5008
 
@@ -4935,6 +5012,7 @@ export namespace Gtd {
4935
5012
  * The caller is responsible for freeing the list with {@link GLib.strfreev} when
4936
5013
  * it is no longer required.
4937
5014
  * @returns a `NULL`-terminated array of the names of the actions in the group
5015
+ * @since 2.28
4938
5016
  */
4939
5017
  list_actions(): string[];
4940
5018
 
@@ -4968,6 +5046,7 @@ export namespace Gtd {
4968
5046
  * fields may or may not have been modified.
4969
5047
  * @param action_name the name of an action in the group
4970
5048
  * @returns `TRUE` if the action exists, else `FALSE`
5049
+ * @since 2.32
4971
5050
  */
4972
5051
  query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null];
4973
5052
 
@@ -4976,6 +5055,7 @@ export namespace Gtd {
4976
5055
  *
4977
5056
  * This function should only be called by {@link Gio.ActionGroup} implementations.
4978
5057
  * @param action_name the name of an action in the group
5058
+ * @since 2.28
4979
5059
  * @virtual
4980
5060
  */
4981
5061
  vfunc_action_added(action_name: string): void;
@@ -4986,6 +5066,7 @@ export namespace Gtd {
4986
5066
  * This function should only be called by {@link Gio.ActionGroup} implementations.
4987
5067
  * @param action_name the name of an action in the group
4988
5068
  * @param enabled whether the action is now enabled
5069
+ * @since 2.28
4989
5070
  * @virtual
4990
5071
  */
4991
5072
  vfunc_action_enabled_changed(action_name: string, enabled: boolean): void;
@@ -4995,6 +5076,7 @@ export namespace Gtd {
4995
5076
  *
4996
5077
  * This function should only be called by {@link Gio.ActionGroup} implementations.
4997
5078
  * @param action_name the name of an action in the group
5079
+ * @since 2.28
4998
5080
  * @virtual
4999
5081
  */
5000
5082
  vfunc_action_removed(action_name: string): void;
@@ -5005,6 +5087,7 @@ export namespace Gtd {
5005
5087
  * This function should only be called by {@link Gio.ActionGroup} implementations.
5006
5088
  * @param action_name the name of an action in the group
5007
5089
  * @param state the new state of the named action
5090
+ * @since 2.28
5008
5091
  * @virtual
5009
5092
  */
5010
5093
  vfunc_action_state_changed(action_name: string, state: GLib.Variant): void;
@@ -5045,6 +5128,7 @@ export namespace Gtd {
5045
5128
  * ```
5046
5129
  * @param action_name the name of the action to activate
5047
5130
  * @param parameter parameters to the activation
5131
+ * @since 2.28
5048
5132
  * @virtual
5049
5133
  */
5050
5134
  vfunc_activate_action(action_name: string, parameter: GLib.Variant | null): void;
@@ -5063,6 +5147,7 @@ export namespace Gtd {
5063
5147
  * If the `value` GVariant is floating, it is consumed.
5064
5148
  * @param action_name the name of the action to request the change on
5065
5149
  * @param value the new state
5150
+ * @since 2.28
5066
5151
  * @virtual
5067
5152
  */
5068
5153
  vfunc_change_action_state(action_name: string, value: GLib.Variant): void;
@@ -5073,6 +5158,7 @@ export namespace Gtd {
5073
5158
  * An action must be enabled in order to be activated or in order to
5074
5159
  * have its state changed from outside callers.
5075
5160
  * @param action_name the name of the action to query
5161
+ * @since 2.28
5076
5162
  * @virtual
5077
5163
  */
5078
5164
  vfunc_get_action_enabled(action_name: string): boolean;
@@ -5092,6 +5178,7 @@ export namespace Gtd {
5092
5178
  * possible for an action to be removed and for a new action to be added
5093
5179
  * with the same name but a different parameter type.
5094
5180
  * @param action_name the name of the action to query
5181
+ * @since 2.28
5095
5182
  * @virtual
5096
5183
  */
5097
5184
  vfunc_get_action_parameter_type(action_name: string): GLib.VariantType | null;
@@ -5106,6 +5193,7 @@ export namespace Gtd {
5106
5193
  * The return value (if non-`NULL`) should be freed with
5107
5194
  * {@link GLib.Variant.unref} when it is no longer required.
5108
5195
  * @param action_name the name of the action to query
5196
+ * @since 2.28
5109
5197
  * @virtual
5110
5198
  */
5111
5199
  vfunc_get_action_state(action_name: string): GLib.Variant | null;
@@ -5130,6 +5218,7 @@ export namespace Gtd {
5130
5218
  * The return value (if non-`NULL`) should be freed with
5131
5219
  * {@link GLib.Variant.unref} when it is no longer required.
5132
5220
  * @param action_name the name of the action to query
5221
+ * @since 2.28
5133
5222
  * @virtual
5134
5223
  */
5135
5224
  vfunc_get_action_state_hint(action_name: string): GLib.Variant | null;
@@ -5152,6 +5241,7 @@ export namespace Gtd {
5152
5241
  * possible for an action to be removed and for a new action to be added
5153
5242
  * with the same name but a different state type.
5154
5243
  * @param action_name the name of the action to query
5244
+ * @since 2.28
5155
5245
  * @virtual
5156
5246
  */
5157
5247
  vfunc_get_action_state_type(action_name: string): GLib.VariantType | null;
@@ -5159,6 +5249,7 @@ export namespace Gtd {
5159
5249
  /**
5160
5250
  * Checks if the named action exists within `action_group`.
5161
5251
  * @param action_name the name of the action to check for
5252
+ * @since 2.28
5162
5253
  * @virtual
5163
5254
  */
5164
5255
  vfunc_has_action(action_name: string): boolean;
@@ -5168,6 +5259,7 @@ export namespace Gtd {
5168
5259
  *
5169
5260
  * The caller is responsible for freeing the list with {@link GLib.strfreev} when
5170
5261
  * it is no longer required.
5262
+ * @since 2.28
5171
5263
  * @virtual
5172
5264
  */
5173
5265
  vfunc_list_actions(): string[];
@@ -5201,6 +5293,7 @@ export namespace Gtd {
5201
5293
  * filled. If the action doesn’t exist, `FALSE` is returned and the
5202
5294
  * fields may or may not have been modified.
5203
5295
  * @param action_name the name of an action in the group
5296
+ * @since 2.32
5204
5297
  * @virtual
5205
5298
  */
5206
5299
  vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null];
@@ -5213,6 +5306,7 @@ export namespace Gtd {
5213
5306
  *
5214
5307
  * The action map takes its own reference on `action`.
5215
5308
  * @param action a {@link Gio.Action}
5309
+ * @since 2.32
5216
5310
  */
5217
5311
  add_action(action: Gio.Action): void;
5218
5312
 
@@ -5229,6 +5323,7 @@ export namespace Gtd {
5229
5323
  * If no such action exists, returns `NULL`.
5230
5324
  * @param action_name the name of an action
5231
5325
  * @returns a {@link Gio.Action}
5326
+ * @since 2.32
5232
5327
  */
5233
5328
  lookup_action(action_name: string): Gio.Action | null;
5234
5329
 
@@ -5237,6 +5332,7 @@ export namespace Gtd {
5237
5332
  *
5238
5333
  * If no action of this name is in the map then nothing happens.
5239
5334
  * @param action_name the name of the action
5335
+ * @since 2.32
5240
5336
  */
5241
5337
  remove_action(action_name: string): void;
5242
5338
 
@@ -5264,6 +5360,7 @@ export namespace Gtd {
5264
5360
  * }
5265
5361
  * ```
5266
5362
  * @param entries a pointer to the first item in an array of {@link Gio.ActionEntry} structs
5363
+ * @since 2.78
5267
5364
  */
5268
5365
  remove_action_entries(entries: Gio.ActionEntry[]): void;
5269
5366
 
@@ -5275,6 +5372,7 @@ export namespace Gtd {
5275
5372
  *
5276
5373
  * The action map takes its own reference on `action`.
5277
5374
  * @param action a {@link Gio.Action}
5375
+ * @since 2.32
5278
5376
  * @virtual
5279
5377
  */
5280
5378
  vfunc_add_action(action: Gio.Action): void;
@@ -5284,6 +5382,7 @@ export namespace Gtd {
5284
5382
  *
5285
5383
  * If no such action exists, returns `NULL`.
5286
5384
  * @param action_name the name of an action
5385
+ * @since 2.32
5287
5386
  * @virtual
5288
5387
  */
5289
5388
  vfunc_lookup_action(action_name: string): Gio.Action | null;
@@ -5293,6 +5392,7 @@ export namespace Gtd {
5293
5392
  *
5294
5393
  * If no action of this name is in the map then nothing happens.
5295
5394
  * @param action_name the name of the action
5395
+ * @since 2.32
5296
5396
  * @virtual
5297
5397
  */
5298
5398
  vfunc_remove_action(action_name: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtd-1.0",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "GJS TypeScript type definitions for Gtd-1.0",
5
5
  "type": "module",
6
6
  "module": "gtd-1.0.js",
@@ -36,21 +36,21 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^4.3.0",
40
- "@girs/gtk-4.0": "^4.3.0",
41
- "@girs/gsk-4.0": "^4.3.0",
42
- "@girs/graphene-1.0": "^4.3.0",
43
- "@girs/gobject-2.0": "^4.3.0",
44
- "@girs/glib-2.0": "^4.3.0",
45
- "@girs/gdk-4.0": "^4.3.0",
46
- "@girs/cairo-1.0": "^4.3.0",
47
- "@girs/pangocairo-1.0": "^4.3.0",
48
- "@girs/pango-1.0": "^4.3.0",
49
- "@girs/harfbuzz-0.0": "^4.3.0",
50
- "@girs/freetype2-2.0": "^4.3.0",
51
- "@girs/gio-2.0": "^4.3.0",
52
- "@girs/gmodule-2.0": "^4.3.0",
53
- "@girs/gdkpixbuf-2.0": "^4.3.0" },
39
+ "@girs/gjs": "^4.4.0",
40
+ "@girs/gtk-4.0": "^4.4.0",
41
+ "@girs/gsk-4.0": "^4.4.0",
42
+ "@girs/graphene-1.0": "^4.4.0",
43
+ "@girs/gobject-2.0": "^4.4.0",
44
+ "@girs/glib-2.0": "^4.4.0",
45
+ "@girs/gdk-4.0": "^4.4.0",
46
+ "@girs/cairo-1.0": "^4.4.0",
47
+ "@girs/pangocairo-1.0": "^4.4.0",
48
+ "@girs/pango-1.0": "^4.4.0",
49
+ "@girs/harfbuzz-0.0": "^4.4.0",
50
+ "@girs/freetype2-2.0": "^4.4.0",
51
+ "@girs/gio-2.0": "^4.4.0",
52
+ "@girs/gmodule-2.0": "^4.4.0",
53
+ "@girs/gdkpixbuf-2.0": "^4.4.0" },
54
54
  "devDependencies": {
55
55
  "typescript": "*"
56
56
  },