@girs/gdl-3 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 +1 -1
- package/gdl-3-surface.d.ts +20 -0
- package/gdl-3-surface.js +6 -0
- package/gdl-3.d.ts +58 -0
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Gdl-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for Gdl-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/gdl-3-surface.d.ts
CHANGED
|
@@ -284,6 +284,23 @@ export interface Widgets {
|
|
|
284
284
|
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
285
285
|
export type WidgetGType = keyof Widgets;
|
|
286
286
|
|
|
287
|
+
// ---------------------------------------------------------------------------
|
|
288
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
289
|
+
//
|
|
290
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
291
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
292
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
293
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
294
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
295
|
+
// ---------------------------------------------------------------------------
|
|
296
|
+
|
|
297
|
+
export interface ChildHolders {
|
|
298
|
+
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
302
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
303
|
+
|
|
287
304
|
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
288
305
|
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
289
306
|
|
|
@@ -319,6 +336,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
|
319
336
|
/** Widget GType -> every declaration its members come from, self first. */
|
|
320
337
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
321
338
|
|
|
339
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
340
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
341
|
+
|
|
322
342
|
/** Enum GType -> the nicks this surface offers. */
|
|
323
343
|
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
324
344
|
|
package/gdl-3-surface.js
CHANGED
|
@@ -43,6 +43,12 @@ export const DECLS = {
|
|
|
43
43
|
GdlSwitcher: ['GdlSwitcher', 'GtkNotebook', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
47
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
48
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
49
|
+
// from a list — the count is in the provenance line above.
|
|
50
|
+
export const CHILD_HOLDERS = [];
|
|
51
|
+
|
|
46
52
|
export const ENUM_NICKS = {
|
|
47
53
|
GdlDockBarStyle: ['icons', 'text', 'both', 'auto'],
|
|
48
54
|
GdlDockPlacement: ['none', 'top', 'bottom', 'right', 'left', 'center', 'floating'],
|
package/gdl-3.d.ts
CHANGED
|
@@ -588,6 +588,7 @@ export namespace Gdl {
|
|
|
588
588
|
* It does not search only in the children of this particular dock widget.
|
|
589
589
|
* @param name An item name
|
|
590
590
|
* @returns A {@link Gdl.DockPlaceholder} object or `null`
|
|
591
|
+
* @deprecated since 3.6: This function is always returning `null`.
|
|
591
592
|
*/
|
|
592
593
|
get_placeholder_by_name(name: string): DockPlaceholder;
|
|
593
594
|
|
|
@@ -613,6 +614,7 @@ export namespace Gdl {
|
|
|
613
614
|
* Sets whether or not a floating dock window should be prevented from
|
|
614
615
|
* appearing in the system taskbar.
|
|
615
616
|
* @param skip `true` if floating docks should be prevented from appearing in the taskbar
|
|
617
|
+
* @since 3.6
|
|
616
618
|
*/
|
|
617
619
|
set_skip_taskbar(skip: boolean): void;
|
|
618
620
|
|
|
@@ -625,11 +627,13 @@ export namespace Gdl {
|
|
|
625
627
|
/**
|
|
626
628
|
* Show a preview window used to materialize the dock target.
|
|
627
629
|
* @param rect The position and the size of the preview window
|
|
630
|
+
* @deprecated since 3.6: Use gdl_dock_show_preview instead.
|
|
628
631
|
*/
|
|
629
632
|
xor_rect(rect: Gdk.Rectangle): void;
|
|
630
633
|
|
|
631
634
|
/**
|
|
632
635
|
* Hide the preview window used to materialize the dock target.
|
|
636
|
+
* @deprecated since 3.6: Use gdl_dock_hide_preview instead.
|
|
633
637
|
*/
|
|
634
638
|
xor_rect_hide(): void;
|
|
635
639
|
}
|
|
@@ -757,6 +761,7 @@ export namespace Gdl {
|
|
|
757
761
|
/**
|
|
758
762
|
* Retrieves the orientation of the `dockbar`.
|
|
759
763
|
* @returns the orientation of the `docbar`
|
|
764
|
+
* @deprecated since 3.6: Use `gtk_orientable_get_orientation()` instead.
|
|
760
765
|
*/
|
|
761
766
|
get_orientation(): Gtk.Orientation;
|
|
762
767
|
|
|
@@ -775,6 +780,7 @@ export namespace Gdl {
|
|
|
775
780
|
/**
|
|
776
781
|
* Set the orientation of the `dockbar`.
|
|
777
782
|
* @param orientation the new orientation
|
|
783
|
+
* @deprecated since 3.6: Use `gtk_orientable_set_orientation()` instead.
|
|
778
784
|
*/
|
|
779
785
|
set_orientation(orientation: Gtk.Orientation): void;
|
|
780
786
|
|
|
@@ -1086,6 +1092,7 @@ export namespace Gdl {
|
|
|
1086
1092
|
/**
|
|
1087
1093
|
* Retrieves the behavior of the item.
|
|
1088
1094
|
* @returns the behavior of the item.
|
|
1095
|
+
* @since 3.6
|
|
1089
1096
|
*/
|
|
1090
1097
|
get_behavior_flags(): DockItemBehavior;
|
|
1091
1098
|
|
|
@@ -1094,12 +1101,14 @@ export namespace Gdl {
|
|
|
1094
1101
|
* no child widget. The returned widget does not have a reference
|
|
1095
1102
|
* added, so you do not need to unref it.
|
|
1096
1103
|
* @returns pointer to child of the {@link Gdl.DockItem}
|
|
1104
|
+
* @since 3.6
|
|
1097
1105
|
*/
|
|
1098
1106
|
get_child(): Gtk.Widget;
|
|
1099
1107
|
|
|
1100
1108
|
/**
|
|
1101
1109
|
* Gets the size and the position of the drag window in pixels.
|
|
1102
1110
|
* @param rect A pointer to a {@link Gdk.Rectangle} that will receive the drag position
|
|
1111
|
+
* @since 3.6
|
|
1103
1112
|
*/
|
|
1104
1113
|
get_drag_area(rect: Gdk.Rectangle): void;
|
|
1105
1114
|
|
|
@@ -1112,6 +1121,7 @@ export namespace Gdl {
|
|
|
1112
1121
|
/**
|
|
1113
1122
|
* Retrieves the orientation of the object.
|
|
1114
1123
|
* @returns the orientation of the object.
|
|
1124
|
+
* @since 3.6
|
|
1115
1125
|
*/
|
|
1116
1126
|
get_orientation(): Gtk.Orientation;
|
|
1117
1127
|
|
|
@@ -1148,12 +1158,14 @@ export namespace Gdl {
|
|
|
1148
1158
|
* Checks whether a given {@link Gdl.DockItem} is closed. It can be only hidden or
|
|
1149
1159
|
* detached.
|
|
1150
1160
|
* @returns `true` if the dock item is closed.
|
|
1161
|
+
* @since 3.6
|
|
1151
1162
|
*/
|
|
1152
1163
|
is_closed(): boolean;
|
|
1153
1164
|
|
|
1154
1165
|
/**
|
|
1155
1166
|
* Checks whether a given {@link Gdl.DockItem} is iconified.
|
|
1156
1167
|
* @returns `true` if the dock item is iconified.
|
|
1168
|
+
* @since 3.6
|
|
1157
1169
|
*/
|
|
1158
1170
|
is_iconified(): boolean;
|
|
1159
1171
|
|
|
@@ -1161,6 +1173,7 @@ export namespace Gdl {
|
|
|
1161
1173
|
* Checks whether a given {@link Gdl.DockItem} is a placeholder created by the
|
|
1162
1174
|
* {@link Gdl.DockLayout} object and does not contain a child.
|
|
1163
1175
|
* @returns `true` if the dock item is a placeholder
|
|
1176
|
+
* @since 3.6
|
|
1164
1177
|
*/
|
|
1165
1178
|
is_placeholder(): boolean;
|
|
1166
1179
|
|
|
@@ -1186,6 +1199,7 @@ export namespace Gdl {
|
|
|
1186
1199
|
* Checks whether a given {@link Gdl.DockItem} or its child widget has focus.
|
|
1187
1200
|
* This check is performed recursively on child widgets.
|
|
1188
1201
|
* @returns `true` if the dock item or its child widget has focus; `false` otherwise.
|
|
1202
|
+
* @since 3.3.2
|
|
1189
1203
|
*/
|
|
1190
1204
|
or_child_has_focus(): boolean;
|
|
1191
1205
|
|
|
@@ -1199,6 +1213,7 @@ export namespace Gdl {
|
|
|
1199
1213
|
* This function sets the behavior of the dock item.
|
|
1200
1214
|
* @param behavior Behavior flags to turn on
|
|
1201
1215
|
* @param clear Whether to clear state before turning on `flags`
|
|
1216
|
+
* @since 3.6
|
|
1202
1217
|
*/
|
|
1203
1218
|
set_behavior_flags(behavior: DockItemBehavior, clear: boolean): void;
|
|
1204
1219
|
|
|
@@ -1210,6 +1225,7 @@ export namespace Gdl {
|
|
|
1210
1225
|
* If a child is already present, it will be replaced. If `widget` is `null` the
|
|
1211
1226
|
* child will be removed.
|
|
1212
1227
|
* @param child a {@link Gtk.Widget}
|
|
1228
|
+
* @since 3.6
|
|
1213
1229
|
*/
|
|
1214
1230
|
set_child(child: Gtk.Widget | null): void;
|
|
1215
1231
|
|
|
@@ -1262,6 +1278,7 @@ export namespace Gdl {
|
|
|
1262
1278
|
/**
|
|
1263
1279
|
* This function sets the behavior of the dock item.
|
|
1264
1280
|
* @param behavior Behavior flags to turn off
|
|
1281
|
+
* @since 3.6
|
|
1265
1282
|
*/
|
|
1266
1283
|
unset_behavior_flags(behavior: DockItemBehavior): void;
|
|
1267
1284
|
}
|
|
@@ -1359,6 +1376,7 @@ export namespace Gdl {
|
|
|
1359
1376
|
* @param builder a {@link Gtk.Builder}
|
|
1360
1377
|
* @param child child to add
|
|
1361
1378
|
* @param type kind of child or `null`
|
|
1379
|
+
* @since 2.12
|
|
1362
1380
|
*/
|
|
1363
1381
|
add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
1364
1382
|
|
|
@@ -1370,6 +1388,7 @@ export namespace Gdl {
|
|
|
1370
1388
|
* @param builder {@link Gtk.Builder} used to construct this object
|
|
1371
1389
|
* @param name name of child to construct
|
|
1372
1390
|
* @returns the constructed child
|
|
1391
|
+
* @since 2.12
|
|
1373
1392
|
*/
|
|
1374
1393
|
construct_child<T = GObject.Object>(builder: Gtk.Builder, name: string): T;
|
|
1375
1394
|
|
|
@@ -1380,6 +1399,7 @@ export namespace Gdl {
|
|
|
1380
1399
|
* @param child child object or `null` for non-child tags
|
|
1381
1400
|
* @param tagname the name of the tag
|
|
1382
1401
|
* @param data user data created in custom_tag_start
|
|
1402
|
+
* @since 2.12
|
|
1383
1403
|
*/
|
|
1384
1404
|
custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
1385
1405
|
|
|
@@ -1390,6 +1410,7 @@ export namespace Gdl {
|
|
|
1390
1410
|
* @param child child object or `null` for non-child tags
|
|
1391
1411
|
* @param tagname name of tag
|
|
1392
1412
|
* @param data user data that will be passed in to parser functions
|
|
1413
|
+
* @since 2.12
|
|
1393
1414
|
*/
|
|
1394
1415
|
custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
1395
1416
|
|
|
@@ -1399,6 +1420,7 @@ export namespace Gdl {
|
|
|
1399
1420
|
* @param child child object or `null` for non-child tags
|
|
1400
1421
|
* @param tagname name of tag
|
|
1401
1422
|
* @returns `true` if a object has a custom implementation, `false` if it doesn't.
|
|
1423
|
+
* @since 2.12
|
|
1402
1424
|
*/
|
|
1403
1425
|
custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, null];
|
|
1404
1426
|
|
|
@@ -1407,6 +1429,7 @@ export namespace Gdl {
|
|
|
1407
1429
|
* @param builder a {@link Gtk.Builder}
|
|
1408
1430
|
* @param childname name of child
|
|
1409
1431
|
* @returns the internal child of the buildable object
|
|
1432
|
+
* @since 2.12
|
|
1410
1433
|
*/
|
|
1411
1434
|
get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
1412
1435
|
|
|
@@ -1417,6 +1440,7 @@ export namespace Gdl {
|
|
|
1417
1440
|
* [GtkBuilder UI definition][BUILDER-UI]
|
|
1418
1441
|
* used to construct the `buildable`.
|
|
1419
1442
|
* @returns the name set with `gtk_buildable_set_name()`
|
|
1443
|
+
* @since 2.12
|
|
1420
1444
|
*/
|
|
1421
1445
|
get_name(): string;
|
|
1422
1446
|
|
|
@@ -1427,6 +1451,7 @@ export namespace Gdl {
|
|
|
1427
1451
|
* `gtk_builder_add_from_file()` or `gtk_builder_add_from_string()`
|
|
1428
1452
|
* is called on a builder.
|
|
1429
1453
|
* @param builder a {@link Gtk.Builder}
|
|
1454
|
+
* @since 2.12
|
|
1430
1455
|
*/
|
|
1431
1456
|
parser_finished(builder: Gtk.Builder): void;
|
|
1432
1457
|
|
|
@@ -1435,12 +1460,14 @@ export namespace Gdl {
|
|
|
1435
1460
|
* @param builder a {@link Gtk.Builder}
|
|
1436
1461
|
* @param name name of property
|
|
1437
1462
|
* @param value value of property
|
|
1463
|
+
* @since 2.12
|
|
1438
1464
|
*/
|
|
1439
1465
|
set_buildable_property(builder: Gtk.Builder, name: string, value: GObject.Value | any): void;
|
|
1440
1466
|
|
|
1441
1467
|
/**
|
|
1442
1468
|
* Sets the name of the `buildable` object.
|
|
1443
1469
|
* @param name name to set
|
|
1470
|
+
* @since 2.12
|
|
1444
1471
|
*/
|
|
1445
1472
|
set_name(name: string): void;
|
|
1446
1473
|
|
|
@@ -1450,6 +1477,7 @@ export namespace Gdl {
|
|
|
1450
1477
|
* @param builder a {@link Gtk.Builder}
|
|
1451
1478
|
* @param child child to add
|
|
1452
1479
|
* @param type kind of child or `null`
|
|
1480
|
+
* @since 2.12
|
|
1453
1481
|
* @virtual
|
|
1454
1482
|
*/
|
|
1455
1483
|
vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
@@ -1461,6 +1489,7 @@ export namespace Gdl {
|
|
|
1461
1489
|
* specified in the UI definition.
|
|
1462
1490
|
* @param builder {@link Gtk.Builder} used to construct this object
|
|
1463
1491
|
* @param name name of child to construct
|
|
1492
|
+
* @since 2.12
|
|
1464
1493
|
* @virtual
|
|
1465
1494
|
*/
|
|
1466
1495
|
vfunc_construct_child<T = GObject.Object>(builder: Gtk.Builder, name: string): T;
|
|
@@ -1472,6 +1501,7 @@ export namespace Gdl {
|
|
|
1472
1501
|
* @param child child object or `null` for non-child tags
|
|
1473
1502
|
* @param tagname the name of the tag
|
|
1474
1503
|
* @param data user data created in custom_tag_start
|
|
1504
|
+
* @since 2.12
|
|
1475
1505
|
* @virtual
|
|
1476
1506
|
*/
|
|
1477
1507
|
vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
@@ -1483,6 +1513,7 @@ export namespace Gdl {
|
|
|
1483
1513
|
* @param child child object or `null` for non-child tags
|
|
1484
1514
|
* @param tagname name of tag
|
|
1485
1515
|
* @param data user data that will be passed in to parser functions
|
|
1516
|
+
* @since 2.12
|
|
1486
1517
|
* @virtual
|
|
1487
1518
|
*/
|
|
1488
1519
|
vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
@@ -1492,6 +1523,7 @@ export namespace Gdl {
|
|
|
1492
1523
|
* @param builder a {@link Gtk.Builder} used to construct this object
|
|
1493
1524
|
* @param child child object or `null` for non-child tags
|
|
1494
1525
|
* @param tagname name of tag
|
|
1526
|
+
* @since 2.12
|
|
1495
1527
|
* @virtual
|
|
1496
1528
|
*/
|
|
1497
1529
|
vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, never];
|
|
@@ -1500,6 +1532,7 @@ export namespace Gdl {
|
|
|
1500
1532
|
* Get the internal child called `childname` of the `buildable` object.
|
|
1501
1533
|
* @param builder a {@link Gtk.Builder}
|
|
1502
1534
|
* @param childname name of child
|
|
1535
|
+
* @since 2.12
|
|
1503
1536
|
* @virtual
|
|
1504
1537
|
*/
|
|
1505
1538
|
vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
@@ -1510,6 +1543,7 @@ export namespace Gdl {
|
|
|
1510
1543
|
* {@link Gtk.Builder} sets the name based on the
|
|
1511
1544
|
* [GtkBuilder UI definition][BUILDER-UI]
|
|
1512
1545
|
* used to construct the `buildable`.
|
|
1546
|
+
* @since 2.12
|
|
1513
1547
|
* @virtual
|
|
1514
1548
|
*/
|
|
1515
1549
|
vfunc_get_name(): string;
|
|
@@ -1521,6 +1555,7 @@ export namespace Gdl {
|
|
|
1521
1555
|
* `gtk_builder_add_from_file()` or `gtk_builder_add_from_string()`
|
|
1522
1556
|
* is called on a builder.
|
|
1523
1557
|
* @param builder a {@link Gtk.Builder}
|
|
1558
|
+
* @since 2.12
|
|
1524
1559
|
* @virtual
|
|
1525
1560
|
*/
|
|
1526
1561
|
vfunc_parser_finished(builder: Gtk.Builder): void;
|
|
@@ -1530,6 +1565,7 @@ export namespace Gdl {
|
|
|
1530
1565
|
* @param builder a {@link Gtk.Builder}
|
|
1531
1566
|
* @param name name of property
|
|
1532
1567
|
* @param value value of property
|
|
1568
|
+
* @since 2.12
|
|
1533
1569
|
* @virtual
|
|
1534
1570
|
*/
|
|
1535
1571
|
vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: unknown): void;
|
|
@@ -1537,6 +1573,7 @@ export namespace Gdl {
|
|
|
1537
1573
|
/**
|
|
1538
1574
|
* Sets the name of the `buildable` object.
|
|
1539
1575
|
* @param name name to set
|
|
1576
|
+
* @since 2.12
|
|
1540
1577
|
* @virtual
|
|
1541
1578
|
*/
|
|
1542
1579
|
vfunc_set_name(name: string): void;
|
|
@@ -1654,6 +1691,7 @@ export namespace Gdl {
|
|
|
1654
1691
|
/**
|
|
1655
1692
|
* Change the cursor when a drag operation is started.
|
|
1656
1693
|
* @param in_drag `true` if a drag operation is started
|
|
1694
|
+
* @since 3.6
|
|
1657
1695
|
*/
|
|
1658
1696
|
set_cursor(in_drag: boolean): void;
|
|
1659
1697
|
|
|
@@ -1761,6 +1799,7 @@ export namespace Gdl {
|
|
|
1761
1799
|
/**
|
|
1762
1800
|
* Retrieves the master of the object.
|
|
1763
1801
|
* @returns a {@link Gdl.DockMaster} object
|
|
1802
|
+
* @since 3.6
|
|
1764
1803
|
*/
|
|
1765
1804
|
get_master<T = GObject.Object>(): T;
|
|
1766
1805
|
|
|
@@ -1975,6 +2014,7 @@ export namespace Gdl {
|
|
|
1975
2014
|
/**
|
|
1976
2015
|
* Return an unique translated dock name.
|
|
1977
2016
|
* @returns a new translated name. The string has to be freed with `g_free()`.
|
|
2017
|
+
* @since 3.6
|
|
1978
2018
|
*/
|
|
1979
2019
|
get_dock_name(): string;
|
|
1980
2020
|
|
|
@@ -2437,6 +2477,7 @@ export namespace Gdl {
|
|
|
2437
2477
|
/**
|
|
2438
2478
|
* Retrieves the controller of the object.
|
|
2439
2479
|
* @returns a {@link Gdl.DockObject} object
|
|
2480
|
+
* @since 3.6
|
|
2440
2481
|
*/
|
|
2441
2482
|
get_controller(): DockObject;
|
|
2442
2483
|
|
|
@@ -2444,18 +2485,21 @@ export namespace Gdl {
|
|
|
2444
2485
|
* Retrieves the long name of the object. This name is an human readable string
|
|
2445
2486
|
* which can be displayed in the user interface.
|
|
2446
2487
|
* @returns the name of the object.
|
|
2488
|
+
* @since 3.6
|
|
2447
2489
|
*/
|
|
2448
2490
|
get_long_name(): string;
|
|
2449
2491
|
|
|
2450
2492
|
/**
|
|
2451
2493
|
* Retrieves the master of the object.
|
|
2452
2494
|
* @returns a {@link Gdl.DockMaster} object
|
|
2495
|
+
* @since 3.6
|
|
2453
2496
|
*/
|
|
2454
2497
|
get_master<T = GObject.Object>(): T;
|
|
2455
2498
|
|
|
2456
2499
|
/**
|
|
2457
2500
|
* Retrieves the name of the object. This name is used to identify the object.
|
|
2458
2501
|
* @returns the name of the object.
|
|
2502
|
+
* @since 3.6
|
|
2459
2503
|
*/
|
|
2460
2504
|
get_name(): string;
|
|
2461
2505
|
|
|
@@ -2468,12 +2512,14 @@ export namespace Gdl {
|
|
|
2468
2512
|
/**
|
|
2469
2513
|
* Retrieves a pixbuf used as the dock object icon.
|
|
2470
2514
|
* @returns icon for dock object
|
|
2515
|
+
* @since 3.6
|
|
2471
2516
|
*/
|
|
2472
2517
|
get_pixbuf(): GdkPixbuf.Pixbuf;
|
|
2473
2518
|
|
|
2474
2519
|
/**
|
|
2475
2520
|
* Retrieves the a stock id used as the object icon.
|
|
2476
2521
|
* @returns A stock id corresponding to the object icon.
|
|
2522
|
+
* @since 3.6
|
|
2477
2523
|
*/
|
|
2478
2524
|
get_stock_id(): string;
|
|
2479
2525
|
|
|
@@ -2487,6 +2533,7 @@ export namespace Gdl {
|
|
|
2487
2533
|
* Determine if an object is managed by the dock master, such object is
|
|
2488
2534
|
* destroyed automatically when it is not needed anymore.
|
|
2489
2535
|
* @returns `true` if the object is managed automatically by the dock master.
|
|
2536
|
+
* @since 3.6
|
|
2490
2537
|
*/
|
|
2491
2538
|
is_automatic(): boolean;
|
|
2492
2539
|
|
|
@@ -2500,6 +2547,7 @@ export namespace Gdl {
|
|
|
2500
2547
|
* Checks whether a given {@link Gdl.DockObject} is closed. It can be only hidden and
|
|
2501
2548
|
* still in the widget hierarchy or detached.
|
|
2502
2549
|
* @returns `true` if the dock object is closed.
|
|
2550
|
+
* @since 3.6
|
|
2503
2551
|
*/
|
|
2504
2552
|
is_closed(): boolean;
|
|
2505
2553
|
|
|
@@ -2513,12 +2561,14 @@ export namespace Gdl {
|
|
|
2513
2561
|
* Determine if an object is frozen and is not removed immediately from the
|
|
2514
2562
|
* widget hierarchy when it is reduced.
|
|
2515
2563
|
* @returns `true` if the object is frozen.
|
|
2564
|
+
* @since 3.6
|
|
2516
2565
|
*/
|
|
2517
2566
|
is_frozen(): boolean;
|
|
2518
2567
|
|
|
2519
2568
|
/**
|
|
2520
2569
|
* Emits the {@link Gdl.DockMaster.SignalSignatures.layout_changed | Gdl.DockMaster::layout-changed} signal on the master of the object
|
|
2521
2570
|
* if existing.
|
|
2571
|
+
* @since 3.6
|
|
2522
2572
|
*/
|
|
2523
2573
|
layout_changed_notify(): void;
|
|
2524
2574
|
|
|
@@ -2549,6 +2599,7 @@ export namespace Gdl {
|
|
|
2549
2599
|
* Set the long name of the object. This name is an human readable string
|
|
2550
2600
|
* which can be displayed in the user interface.
|
|
2551
2601
|
* @param name a name for the object
|
|
2602
|
+
* @since 3.6
|
|
2552
2603
|
*/
|
|
2553
2604
|
set_long_name(name: string): void;
|
|
2554
2605
|
|
|
@@ -2556,24 +2607,28 @@ export namespace Gdl {
|
|
|
2556
2607
|
* A {@link Gdl.DockObject} is managed by default by the dock master, use this function
|
|
2557
2608
|
* to make it a manual object if you want to manage the destruction of the
|
|
2558
2609
|
* object.
|
|
2610
|
+
* @since 3.6
|
|
2559
2611
|
*/
|
|
2560
2612
|
set_manual(): void;
|
|
2561
2613
|
|
|
2562
2614
|
/**
|
|
2563
2615
|
* Set the name of the object used to identify it.
|
|
2564
2616
|
* @param name a name for the object
|
|
2617
|
+
* @since 3.6
|
|
2565
2618
|
*/
|
|
2566
2619
|
set_name(name: string): void;
|
|
2567
2620
|
|
|
2568
2621
|
/**
|
|
2569
2622
|
* Set a icon for a dock object using a {@link GdkPixbuf.Pixbuf}.
|
|
2570
2623
|
* @param icon a icon or `null`
|
|
2624
|
+
* @since 3.6
|
|
2571
2625
|
*/
|
|
2572
2626
|
set_pixbuf(icon: GdkPixbuf.Pixbuf | null): void;
|
|
2573
2627
|
|
|
2574
2628
|
/**
|
|
2575
2629
|
* Set an icon for the dock object using a stock id.
|
|
2576
2630
|
* @param stock_id a stock id
|
|
2631
|
+
* @since 3.6
|
|
2577
2632
|
*/
|
|
2578
2633
|
set_stock_id(stock_id: string): void;
|
|
2579
2634
|
|
|
@@ -2903,6 +2958,7 @@ export namespace Gdl {
|
|
|
2903
2958
|
/**
|
|
2904
2959
|
* Move the placeholder to the position of `object`.
|
|
2905
2960
|
* @param object A new {@link Gdl.DockObject}
|
|
2961
|
+
* @deprecated since 3.6
|
|
2906
2962
|
*/
|
|
2907
2963
|
attach(object: DockObject): void;
|
|
2908
2964
|
}
|
|
@@ -3026,6 +3082,7 @@ export namespace Gdl {
|
|
|
3026
3082
|
// Methods
|
|
3027
3083
|
/**
|
|
3028
3084
|
* Set the widget in "activated" state.
|
|
3085
|
+
* @deprecated since 3.6
|
|
3029
3086
|
*/
|
|
3030
3087
|
activate(): void;
|
|
3031
3088
|
|
|
@@ -3037,6 +3094,7 @@ export namespace Gdl {
|
|
|
3037
3094
|
|
|
3038
3095
|
/**
|
|
3039
3096
|
* Set the widget in "deactivated" state.
|
|
3097
|
+
* @deprecated since 3.6
|
|
3040
3098
|
*/
|
|
3041
3099
|
deactivate(): void;
|
|
3042
3100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gdl-3",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gdl-3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gdl-3.js",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^4.
|
|
40
|
-
"@girs/gtk-3.0": "^4.
|
|
41
|
-
"@girs/xlib-2.0": "^4.
|
|
42
|
-
"@girs/gdk-3.0": "^4.
|
|
43
|
-
"@girs/cairo-1.0": "^4.
|
|
44
|
-
"@girs/gobject-2.0": "^4.
|
|
45
|
-
"@girs/glib-2.0": "^4.
|
|
46
|
-
"@girs/pango-1.0": "^4.
|
|
47
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
48
|
-
"@girs/freetype2-2.0": "^4.
|
|
49
|
-
"@girs/gio-2.0": "^4.
|
|
50
|
-
"@girs/gmodule-2.0": "^4.
|
|
51
|
-
"@girs/gdkpixbuf-2.0": "^4.
|
|
52
|
-
"@girs/atk-1.0": "^4.
|
|
39
|
+
"@girs/gjs": "^4.4.0",
|
|
40
|
+
"@girs/gtk-3.0": "^4.4.0",
|
|
41
|
+
"@girs/xlib-2.0": "^4.4.0",
|
|
42
|
+
"@girs/gdk-3.0": "^4.4.0",
|
|
43
|
+
"@girs/cairo-1.0": "^4.4.0",
|
|
44
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
45
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
46
|
+
"@girs/pango-1.0": "^4.4.0",
|
|
47
|
+
"@girs/harfbuzz-0.0": "^4.4.0",
|
|
48
|
+
"@girs/freetype2-2.0": "^4.4.0",
|
|
49
|
+
"@girs/gio-2.0": "^4.4.0",
|
|
50
|
+
"@girs/gmodule-2.0": "^4.4.0",
|
|
51
|
+
"@girs/gdkpixbuf-2.0": "^4.4.0",
|
|
52
|
+
"@girs/atk-1.0": "^4.4.0" },
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "*"
|
|
55
55
|
},
|