@girs/gd-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 +1 -1
- package/gd-1.0-surface.d.ts +20 -0
- package/gd-1.0-surface.js +6 -0
- package/gd-1.0.d.ts +98 -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 Gd-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for Gd-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/gd-1.0-surface.d.ts
CHANGED
|
@@ -271,6 +271,23 @@ export interface Widgets {
|
|
|
271
271
|
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
272
272
|
export type WidgetGType = keyof Widgets;
|
|
273
273
|
|
|
274
|
+
// ---------------------------------------------------------------------------
|
|
275
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
276
|
+
//
|
|
277
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
278
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
279
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
280
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
281
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
282
|
+
// ---------------------------------------------------------------------------
|
|
283
|
+
|
|
284
|
+
export interface ChildHolders {
|
|
285
|
+
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
289
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
290
|
+
|
|
274
291
|
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
275
292
|
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
276
293
|
|
|
@@ -306,6 +323,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
|
306
323
|
/** Widget GType -> every declaration its members come from, self first. */
|
|
307
324
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
308
325
|
|
|
326
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
327
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
328
|
+
|
|
309
329
|
/** Enum GType -> the nicks this surface offers. */
|
|
310
330
|
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
311
331
|
|
package/gd-1.0-surface.js
CHANGED
|
@@ -40,6 +40,12 @@ export const DECLS = {
|
|
|
40
40
|
GdTaggedEntry: ['GdTaggedEntry', 'GtkSearchEntry', 'GtkEntry', 'GtkWidget', 'GtkBuildable', 'GtkCellEditable', 'GtkEditable'],
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
44
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
45
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
46
|
+
// from a list — the count is in the provenance line above.
|
|
47
|
+
export const CHILD_HOLDERS = [];
|
|
48
|
+
|
|
43
49
|
export const ENUM_NICKS = {};
|
|
44
50
|
|
|
45
51
|
export const SLOT_CANDIDATES = {
|
package/gd-1.0.d.ts
CHANGED
|
@@ -427,6 +427,8 @@ export namespace Gd {
|
|
|
427
427
|
* Returns whether the button grabs focus when it is clicked with the mouse.
|
|
428
428
|
* See `gtk_button_set_focus_on_click()`.
|
|
429
429
|
* @returns `true` if the button grabs focus when it is clicked with the mouse.
|
|
430
|
+
* @since 2.4
|
|
431
|
+
* @deprecated since 3.20: Use `gtk_widget_get_focus_on_click()` instead
|
|
430
432
|
*/
|
|
431
433
|
get_focus_on_click(): boolean;
|
|
432
434
|
|
|
@@ -436,6 +438,8 @@ export namespace Gd {
|
|
|
436
438
|
* you don’t want the keyboard focus removed from the main area of the
|
|
437
439
|
* application.
|
|
438
440
|
* @param focus_on_click whether the button grabs focus when clicked with the mouse
|
|
441
|
+
* @since 2.4
|
|
442
|
+
* @deprecated since 3.20: Use `gtk_widget_set_focus_on_click()` instead
|
|
439
443
|
*/
|
|
440
444
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
441
445
|
|
|
@@ -662,6 +666,8 @@ export namespace Gd {
|
|
|
662
666
|
* Returns whether the button grabs focus when it is clicked with the mouse.
|
|
663
667
|
* See `gtk_button_set_focus_on_click()`.
|
|
664
668
|
* @returns `true` if the button grabs focus when it is clicked with the mouse.
|
|
669
|
+
* @since 2.4
|
|
670
|
+
* @deprecated since 3.20: Use `gtk_widget_get_focus_on_click()` instead
|
|
665
671
|
*/
|
|
666
672
|
get_focus_on_click(): boolean;
|
|
667
673
|
|
|
@@ -671,6 +677,8 @@ export namespace Gd {
|
|
|
671
677
|
* you don’t want the keyboard focus removed from the main area of the
|
|
672
678
|
* application.
|
|
673
679
|
* @param focus_on_click whether the button grabs focus when clicked with the mouse
|
|
680
|
+
* @since 2.4
|
|
681
|
+
* @deprecated since 3.20: Use `gtk_widget_set_focus_on_click()` instead
|
|
674
682
|
*/
|
|
675
683
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
676
684
|
|
|
@@ -948,6 +956,7 @@ export namespace Gd {
|
|
|
948
956
|
*
|
|
949
957
|
* See `gtk_actionable_set_action_name()` for more information.
|
|
950
958
|
* @returns the action name, or `null` if none is set
|
|
959
|
+
* @since 3.4
|
|
951
960
|
*/
|
|
952
961
|
get_action_name(): string | null;
|
|
953
962
|
|
|
@@ -956,6 +965,7 @@ export namespace Gd {
|
|
|
956
965
|
*
|
|
957
966
|
* See `gtk_actionable_set_action_target_value()` for more information.
|
|
958
967
|
* @returns the current target value
|
|
968
|
+
* @since 3.4
|
|
959
969
|
*/
|
|
960
970
|
get_action_target_value(): GLib.Variant;
|
|
961
971
|
|
|
@@ -972,6 +982,7 @@ export namespace Gd {
|
|
|
972
982
|
* respectively. This is the same form used for actions in the {@link Gio.Menu}
|
|
973
983
|
* associated with the window.
|
|
974
984
|
* @param action_name an action name, or `null`
|
|
985
|
+
* @since 3.4
|
|
975
986
|
*/
|
|
976
987
|
set_action_name(action_name: string | null): void;
|
|
977
988
|
|
|
@@ -996,6 +1007,7 @@ export namespace Gd {
|
|
|
996
1007
|
* be rendered as active (and the other buttons, with different targets,
|
|
997
1008
|
* rendered inactive).
|
|
998
1009
|
* @param target_value a {@link GLib.Variant} to set as the target value, or `null`
|
|
1010
|
+
* @since 3.4
|
|
999
1011
|
*/
|
|
1000
1012
|
set_action_target_value(target_value: GLib.Variant | null): void;
|
|
1001
1013
|
|
|
@@ -1012,6 +1024,7 @@ export namespace Gd {
|
|
|
1012
1024
|
* `action` is the action name and `target` is the string to use
|
|
1013
1025
|
* as the target.)
|
|
1014
1026
|
* @param detailed_action_name the detailed action name
|
|
1027
|
+
* @since 3.4
|
|
1015
1028
|
*/
|
|
1016
1029
|
set_detailed_action_name(detailed_action_name: string): void;
|
|
1017
1030
|
|
|
@@ -1019,6 +1032,7 @@ export namespace Gd {
|
|
|
1019
1032
|
* Gets the action name for `actionable`.
|
|
1020
1033
|
*
|
|
1021
1034
|
* See `gtk_actionable_set_action_name()` for more information.
|
|
1035
|
+
* @since 3.4
|
|
1022
1036
|
* @virtual
|
|
1023
1037
|
*/
|
|
1024
1038
|
vfunc_get_action_name(): string | null;
|
|
@@ -1027,6 +1041,7 @@ export namespace Gd {
|
|
|
1027
1041
|
* Gets the current target value of `actionable`.
|
|
1028
1042
|
*
|
|
1029
1043
|
* See `gtk_actionable_set_action_target_value()` for more information.
|
|
1044
|
+
* @since 3.4
|
|
1030
1045
|
* @virtual
|
|
1031
1046
|
*/
|
|
1032
1047
|
vfunc_get_action_target_value(): GLib.Variant;
|
|
@@ -1044,6 +1059,7 @@ export namespace Gd {
|
|
|
1044
1059
|
* respectively. This is the same form used for actions in the {@link Gio.Menu}
|
|
1045
1060
|
* associated with the window.
|
|
1046
1061
|
* @param action_name an action name, or `null`
|
|
1062
|
+
* @since 3.4
|
|
1047
1063
|
* @virtual
|
|
1048
1064
|
*/
|
|
1049
1065
|
vfunc_set_action_name(action_name: string | null): void;
|
|
@@ -1069,6 +1085,7 @@ export namespace Gd {
|
|
|
1069
1085
|
* be rendered as active (and the other buttons, with different targets,
|
|
1070
1086
|
* rendered inactive).
|
|
1071
1087
|
* @param target_value a {@link GLib.Variant} to set as the target value, or `null`
|
|
1088
|
+
* @since 3.4
|
|
1072
1089
|
* @virtual
|
|
1073
1090
|
*/
|
|
1074
1091
|
vfunc_set_action_target_value(target_value: GLib.Variant | null): void;
|
|
@@ -1090,12 +1107,16 @@ export namespace Gd {
|
|
|
1090
1107
|
* > `gtk_activatable_get_related_action()` to retrieve the
|
|
1091
1108
|
* > previous action.
|
|
1092
1109
|
* @param action the {@link Gtk.Action} to set
|
|
1110
|
+
* @since 2.16
|
|
1111
|
+
* @deprecated since 3.10
|
|
1093
1112
|
*/
|
|
1094
1113
|
do_set_related_action(action: Gtk.Action): void;
|
|
1095
1114
|
|
|
1096
1115
|
/**
|
|
1097
1116
|
* Gets the related {@link Gtk.Action} for `activatable`.
|
|
1098
1117
|
* @returns the related {@link Gtk.Action} if one is set.
|
|
1118
|
+
* @since 2.16
|
|
1119
|
+
* @deprecated since 3.10
|
|
1099
1120
|
*/
|
|
1100
1121
|
get_related_action(): Gtk.Action;
|
|
1101
1122
|
|
|
@@ -1104,6 +1125,8 @@ export namespace Gd {
|
|
|
1104
1125
|
* and appearance when setting the related action or when
|
|
1105
1126
|
* the action changes appearance.
|
|
1106
1127
|
* @returns whether `activatable` uses its actions appearance.
|
|
1128
|
+
* @since 2.16
|
|
1129
|
+
* @deprecated since 3.10
|
|
1107
1130
|
*/
|
|
1108
1131
|
get_use_action_appearance(): boolean;
|
|
1109
1132
|
|
|
@@ -1113,6 +1136,8 @@ export namespace Gd {
|
|
|
1113
1136
|
* > {@link Gtk.Activatable} implementors need to handle the {@link Gtk.Activatable.related_action}
|
|
1114
1137
|
* > property and call `gtk_activatable_do_set_related_action()` when it changes.
|
|
1115
1138
|
* @param action the {@link Gtk.Action} to set
|
|
1139
|
+
* @since 2.16
|
|
1140
|
+
* @deprecated since 3.10
|
|
1116
1141
|
*/
|
|
1117
1142
|
set_related_action(action: Gtk.Action): void;
|
|
1118
1143
|
|
|
@@ -1125,6 +1150,8 @@ export namespace Gd {
|
|
|
1125
1150
|
* > `gtk_activatable_sync_action_properties()` to update `activatable`
|
|
1126
1151
|
* > if needed.
|
|
1127
1152
|
* @param use_appearance whether to use the actions appearance
|
|
1153
|
+
* @since 2.16
|
|
1154
|
+
* @deprecated since 3.10
|
|
1128
1155
|
*/
|
|
1129
1156
|
set_use_action_appearance(use_appearance: boolean): void;
|
|
1130
1157
|
|
|
@@ -1134,6 +1161,8 @@ export namespace Gd {
|
|
|
1134
1161
|
* or unset and by the implementing class when
|
|
1135
1162
|
* {@link Gtk.Activatable.use_action_appearance} changes.
|
|
1136
1163
|
* @param action the related {@link Gtk.Action} or `null`
|
|
1164
|
+
* @since 2.16
|
|
1165
|
+
* @deprecated since 3.10
|
|
1137
1166
|
*/
|
|
1138
1167
|
sync_action_properties(action: Gtk.Action | null): void;
|
|
1139
1168
|
|
|
@@ -1143,6 +1172,8 @@ export namespace Gd {
|
|
|
1143
1172
|
* or unset and by the implementing class when
|
|
1144
1173
|
* {@link Gtk.Activatable.use_action_appearance} changes.
|
|
1145
1174
|
* @param action the related {@link Gtk.Action} or `null`
|
|
1175
|
+
* @since 2.16
|
|
1176
|
+
* @deprecated since 3.10
|
|
1146
1177
|
* @virtual
|
|
1147
1178
|
*/
|
|
1148
1179
|
vfunc_sync_action_properties(action: Gtk.Action | null): void;
|
|
@@ -1161,6 +1192,8 @@ export namespace Gd {
|
|
|
1161
1192
|
* Returns whether the button grabs focus when it is clicked with the mouse.
|
|
1162
1193
|
* See `gtk_button_set_focus_on_click()`.
|
|
1163
1194
|
* @returns `true` if the button grabs focus when it is clicked with the mouse.
|
|
1195
|
+
* @since 2.4
|
|
1196
|
+
* @deprecated since 3.20: Use `gtk_widget_get_focus_on_click()` instead
|
|
1164
1197
|
*/
|
|
1165
1198
|
get_focus_on_click(): boolean;
|
|
1166
1199
|
|
|
@@ -1170,6 +1203,8 @@ export namespace Gd {
|
|
|
1170
1203
|
* you don’t want the keyboard focus removed from the main area of the
|
|
1171
1204
|
* application.
|
|
1172
1205
|
* @param focus_on_click whether the button grabs focus when clicked with the mouse
|
|
1206
|
+
* @since 2.4
|
|
1207
|
+
* @deprecated since 3.20: Use `gtk_widget_set_focus_on_click()` instead
|
|
1173
1208
|
*/
|
|
1174
1209
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
1175
1210
|
|
|
@@ -1359,6 +1394,8 @@ export namespace Gd {
|
|
|
1359
1394
|
* Returns whether the button grabs focus when it is clicked with the mouse.
|
|
1360
1395
|
* See `gtk_button_set_focus_on_click()`.
|
|
1361
1396
|
* @returns `true` if the button grabs focus when it is clicked with the mouse.
|
|
1397
|
+
* @since 2.4
|
|
1398
|
+
* @deprecated since 3.20: Use `gtk_widget_get_focus_on_click()` instead
|
|
1362
1399
|
*/
|
|
1363
1400
|
get_focus_on_click(): boolean;
|
|
1364
1401
|
|
|
@@ -1368,6 +1405,8 @@ export namespace Gd {
|
|
|
1368
1405
|
* you don’t want the keyboard focus removed from the main area of the
|
|
1369
1406
|
* application.
|
|
1370
1407
|
* @param focus_on_click whether the button grabs focus when clicked with the mouse
|
|
1408
|
+
* @since 2.4
|
|
1409
|
+
* @deprecated since 3.20: Use `gtk_widget_set_focus_on_click()` instead
|
|
1371
1410
|
*/
|
|
1372
1411
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
1373
1412
|
|
|
@@ -1659,12 +1698,14 @@ export namespace Gd {
|
|
|
1659
1698
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1660
1699
|
* @param attribute an attribute on the renderer
|
|
1661
1700
|
* @param column the column position on the model to get the attribute from
|
|
1701
|
+
* @since 2.4
|
|
1662
1702
|
*/
|
|
1663
1703
|
add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
|
|
1664
1704
|
|
|
1665
1705
|
/**
|
|
1666
1706
|
* Unsets all the mappings on all renderers on `cell_layout` and
|
|
1667
1707
|
* removes all renderers from `cell_layout`.
|
|
1708
|
+
* @since 2.4
|
|
1668
1709
|
*/
|
|
1669
1710
|
clear(): void;
|
|
1670
1711
|
|
|
@@ -1672,6 +1713,7 @@ export namespace Gd {
|
|
|
1672
1713
|
* Clears all existing attributes previously set with
|
|
1673
1714
|
* `gtk_cell_layout_set_attributes()`.
|
|
1674
1715
|
* @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
|
|
1716
|
+
* @since 2.4
|
|
1675
1717
|
*/
|
|
1676
1718
|
clear_attributes(cell: Gtk.CellRenderer): void;
|
|
1677
1719
|
|
|
@@ -1680,12 +1722,14 @@ export namespace Gd {
|
|
|
1680
1722
|
* if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
|
|
1681
1723
|
* is used by `cell_layout`.
|
|
1682
1724
|
* @returns the cell area used by `cell_layout`, or `null` in case no cell area is used.
|
|
1725
|
+
* @since 3.0
|
|
1683
1726
|
*/
|
|
1684
1727
|
get_area(): Gtk.CellArea | null;
|
|
1685
1728
|
|
|
1686
1729
|
/**
|
|
1687
1730
|
* Returns the cell renderers which have been added to `cell_layout`.
|
|
1688
1731
|
* @returns a list of cell renderers. The list, but not the renderers has been newly allocated and should be freed with `g_list_free()` when no longer needed.
|
|
1732
|
+
* @since 2.12
|
|
1689
1733
|
*/
|
|
1690
1734
|
get_cells(): Gtk.CellRenderer[];
|
|
1691
1735
|
|
|
@@ -1697,6 +1741,7 @@ export namespace Gd {
|
|
|
1697
1741
|
* Note that reusing the same cell renderer is not supported.
|
|
1698
1742
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1699
1743
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1744
|
+
* @since 2.4
|
|
1700
1745
|
*/
|
|
1701
1746
|
pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
1702
1747
|
|
|
@@ -1708,6 +1753,7 @@ export namespace Gd {
|
|
|
1708
1753
|
* Note that reusing the same cell renderer is not supported.
|
|
1709
1754
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1710
1755
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1756
|
+
* @since 2.4
|
|
1711
1757
|
*/
|
|
1712
1758
|
pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
1713
1759
|
|
|
@@ -1718,6 +1764,7 @@ export namespace Gd {
|
|
|
1718
1764
|
* for this to function properly.
|
|
1719
1765
|
* @param cell a {@link Gtk.CellRenderer} to reorder
|
|
1720
1766
|
* @param position new position to insert `cell` at
|
|
1767
|
+
* @since 2.4
|
|
1721
1768
|
*/
|
|
1722
1769
|
reorder(cell: Gtk.CellRenderer, position: number): void;
|
|
1723
1770
|
|
|
@@ -1731,6 +1778,7 @@ export namespace Gd {
|
|
|
1731
1778
|
* `func` may be `null` to remove a previously set function.
|
|
1732
1779
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1733
1780
|
* @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
|
|
1781
|
+
* @since 2.4
|
|
1734
1782
|
*/
|
|
1735
1783
|
set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
|
|
1736
1784
|
|
|
@@ -1744,6 +1792,7 @@ export namespace Gd {
|
|
|
1744
1792
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1745
1793
|
* @param attribute an attribute on the renderer
|
|
1746
1794
|
* @param column the column position on the model to get the attribute from
|
|
1795
|
+
* @since 2.4
|
|
1747
1796
|
* @virtual
|
|
1748
1797
|
*/
|
|
1749
1798
|
vfunc_add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
|
|
@@ -1751,6 +1800,7 @@ export namespace Gd {
|
|
|
1751
1800
|
/**
|
|
1752
1801
|
* Unsets all the mappings on all renderers on `cell_layout` and
|
|
1753
1802
|
* removes all renderers from `cell_layout`.
|
|
1803
|
+
* @since 2.4
|
|
1754
1804
|
* @virtual
|
|
1755
1805
|
*/
|
|
1756
1806
|
vfunc_clear(): void;
|
|
@@ -1759,6 +1809,7 @@ export namespace Gd {
|
|
|
1759
1809
|
* Clears all existing attributes previously set with
|
|
1760
1810
|
* `gtk_cell_layout_set_attributes()`.
|
|
1761
1811
|
* @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
|
|
1812
|
+
* @since 2.4
|
|
1762
1813
|
* @virtual
|
|
1763
1814
|
*/
|
|
1764
1815
|
vfunc_clear_attributes(cell: Gtk.CellRenderer): void;
|
|
@@ -1767,12 +1818,14 @@ export namespace Gd {
|
|
|
1767
1818
|
* Returns the underlying {@link Gtk.CellArea} which might be `cell_layout`
|
|
1768
1819
|
* if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
|
|
1769
1820
|
* is used by `cell_layout`.
|
|
1821
|
+
* @since 3.0
|
|
1770
1822
|
* @virtual
|
|
1771
1823
|
*/
|
|
1772
1824
|
vfunc_get_area(): Gtk.CellArea | null;
|
|
1773
1825
|
|
|
1774
1826
|
/**
|
|
1775
1827
|
* Returns the cell renderers which have been added to `cell_layout`.
|
|
1828
|
+
* @since 2.12
|
|
1776
1829
|
* @virtual
|
|
1777
1830
|
*/
|
|
1778
1831
|
vfunc_get_cells(): Gtk.CellRenderer[];
|
|
@@ -1785,6 +1838,7 @@ export namespace Gd {
|
|
|
1785
1838
|
* Note that reusing the same cell renderer is not supported.
|
|
1786
1839
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1787
1840
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1841
|
+
* @since 2.4
|
|
1788
1842
|
* @virtual
|
|
1789
1843
|
*/
|
|
1790
1844
|
vfunc_pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
@@ -1797,6 +1851,7 @@ export namespace Gd {
|
|
|
1797
1851
|
* Note that reusing the same cell renderer is not supported.
|
|
1798
1852
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1799
1853
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1854
|
+
* @since 2.4
|
|
1800
1855
|
* @virtual
|
|
1801
1856
|
*/
|
|
1802
1857
|
vfunc_pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
@@ -1808,6 +1863,7 @@ export namespace Gd {
|
|
|
1808
1863
|
* for this to function properly.
|
|
1809
1864
|
* @param cell a {@link Gtk.CellRenderer} to reorder
|
|
1810
1865
|
* @param position new position to insert `cell` at
|
|
1866
|
+
* @since 2.4
|
|
1811
1867
|
* @virtual
|
|
1812
1868
|
*/
|
|
1813
1869
|
vfunc_reorder(cell: Gtk.CellRenderer, position: number): void;
|
|
@@ -1822,6 +1878,7 @@ export namespace Gd {
|
|
|
1822
1878
|
* `func` may be `null` to remove a previously set function.
|
|
1823
1879
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1824
1880
|
* @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
|
|
1881
|
+
* @since 2.4
|
|
1825
1882
|
* @virtual
|
|
1826
1883
|
*/
|
|
1827
1884
|
vfunc_set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
|
|
@@ -1833,36 +1890,42 @@ export namespace Gd {
|
|
|
1833
1890
|
* display overlayed graphics, like the overshoot indication,
|
|
1834
1891
|
* at the right position.
|
|
1835
1892
|
* @returns `true` if `border` has been set
|
|
1893
|
+
* @since 3.16
|
|
1836
1894
|
*/
|
|
1837
1895
|
get_border(): [boolean, Gtk.Border];
|
|
1838
1896
|
|
|
1839
1897
|
/**
|
|
1840
1898
|
* Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
|
|
1841
1899
|
* @returns horizontal {@link Gtk.Adjustment}.
|
|
1900
|
+
* @since 3.0
|
|
1842
1901
|
*/
|
|
1843
1902
|
get_hadjustment(): Gtk.Adjustment;
|
|
1844
1903
|
|
|
1845
1904
|
/**
|
|
1846
1905
|
* Gets the horizontal {@link Gtk.ScrollablePolicy}.
|
|
1847
1906
|
* @returns The horizontal {@link Gtk.ScrollablePolicy}.
|
|
1907
|
+
* @since 3.0
|
|
1848
1908
|
*/
|
|
1849
1909
|
get_hscroll_policy(): Gtk.ScrollablePolicy;
|
|
1850
1910
|
|
|
1851
1911
|
/**
|
|
1852
1912
|
* Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
|
|
1853
1913
|
* @returns vertical {@link Gtk.Adjustment}.
|
|
1914
|
+
* @since 3.0
|
|
1854
1915
|
*/
|
|
1855
1916
|
get_vadjustment(): Gtk.Adjustment;
|
|
1856
1917
|
|
|
1857
1918
|
/**
|
|
1858
1919
|
* Gets the vertical {@link Gtk.ScrollablePolicy}.
|
|
1859
1920
|
* @returns The vertical {@link Gtk.ScrollablePolicy}.
|
|
1921
|
+
* @since 3.0
|
|
1860
1922
|
*/
|
|
1861
1923
|
get_vscroll_policy(): Gtk.ScrollablePolicy;
|
|
1862
1924
|
|
|
1863
1925
|
/**
|
|
1864
1926
|
* Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
|
|
1865
1927
|
* @param hadjustment a {@link Gtk.Adjustment}
|
|
1928
|
+
* @since 3.0
|
|
1866
1929
|
*/
|
|
1867
1930
|
set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
|
|
1868
1931
|
|
|
@@ -1871,12 +1934,14 @@ export namespace Gd {
|
|
|
1871
1934
|
* horizontal scrolling should start below the minimum width or
|
|
1872
1935
|
* below the natural width.
|
|
1873
1936
|
* @param policy the horizontal {@link Gtk.ScrollablePolicy}
|
|
1937
|
+
* @since 3.0
|
|
1874
1938
|
*/
|
|
1875
1939
|
set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
1876
1940
|
|
|
1877
1941
|
/**
|
|
1878
1942
|
* Sets the vertical adjustment of the {@link Gtk.Scrollable}.
|
|
1879
1943
|
* @param vadjustment a {@link Gtk.Adjustment}
|
|
1944
|
+
* @since 3.0
|
|
1880
1945
|
*/
|
|
1881
1946
|
set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
|
|
1882
1947
|
|
|
@@ -1885,6 +1950,7 @@ export namespace Gd {
|
|
|
1885
1950
|
* vertical scrolling should start below the minimum height or
|
|
1886
1951
|
* below the natural height.
|
|
1887
1952
|
* @param policy the vertical {@link Gtk.ScrollablePolicy}
|
|
1953
|
+
* @since 3.0
|
|
1888
1954
|
*/
|
|
1889
1955
|
set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
1890
1956
|
|
|
@@ -1894,6 +1960,7 @@ export namespace Gd {
|
|
|
1894
1960
|
* be treeview headers. GTK+ can use this information to
|
|
1895
1961
|
* display overlayed graphics, like the overshoot indication,
|
|
1896
1962
|
* at the right position.
|
|
1963
|
+
* @since 3.16
|
|
1897
1964
|
* @virtual
|
|
1898
1965
|
*/
|
|
1899
1966
|
vfunc_get_border(): [boolean, Gtk.Border];
|
|
@@ -2176,36 +2243,42 @@ export namespace Gd {
|
|
|
2176
2243
|
* display overlayed graphics, like the overshoot indication,
|
|
2177
2244
|
* at the right position.
|
|
2178
2245
|
* @returns `true` if `border` has been set
|
|
2246
|
+
* @since 3.16
|
|
2179
2247
|
*/
|
|
2180
2248
|
get_border(): [boolean, Gtk.Border];
|
|
2181
2249
|
|
|
2182
2250
|
/**
|
|
2183
2251
|
* Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
|
|
2184
2252
|
* @returns horizontal {@link Gtk.Adjustment}.
|
|
2253
|
+
* @since 3.0
|
|
2185
2254
|
*/
|
|
2186
2255
|
get_hadjustment(): Gtk.Adjustment;
|
|
2187
2256
|
|
|
2188
2257
|
/**
|
|
2189
2258
|
* Gets the horizontal {@link Gtk.ScrollablePolicy}.
|
|
2190
2259
|
* @returns The horizontal {@link Gtk.ScrollablePolicy}.
|
|
2260
|
+
* @since 3.0
|
|
2191
2261
|
*/
|
|
2192
2262
|
get_hscroll_policy(): Gtk.ScrollablePolicy;
|
|
2193
2263
|
|
|
2194
2264
|
/**
|
|
2195
2265
|
* Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
|
|
2196
2266
|
* @returns vertical {@link Gtk.Adjustment}.
|
|
2267
|
+
* @since 3.0
|
|
2197
2268
|
*/
|
|
2198
2269
|
get_vadjustment(): Gtk.Adjustment;
|
|
2199
2270
|
|
|
2200
2271
|
/**
|
|
2201
2272
|
* Gets the vertical {@link Gtk.ScrollablePolicy}.
|
|
2202
2273
|
* @returns The vertical {@link Gtk.ScrollablePolicy}.
|
|
2274
|
+
* @since 3.0
|
|
2203
2275
|
*/
|
|
2204
2276
|
get_vscroll_policy(): Gtk.ScrollablePolicy;
|
|
2205
2277
|
|
|
2206
2278
|
/**
|
|
2207
2279
|
* Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
|
|
2208
2280
|
* @param hadjustment a {@link Gtk.Adjustment}
|
|
2281
|
+
* @since 3.0
|
|
2209
2282
|
*/
|
|
2210
2283
|
set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
|
|
2211
2284
|
|
|
@@ -2214,12 +2287,14 @@ export namespace Gd {
|
|
|
2214
2287
|
* horizontal scrolling should start below the minimum width or
|
|
2215
2288
|
* below the natural width.
|
|
2216
2289
|
* @param policy the horizontal {@link Gtk.ScrollablePolicy}
|
|
2290
|
+
* @since 3.0
|
|
2217
2291
|
*/
|
|
2218
2292
|
set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
2219
2293
|
|
|
2220
2294
|
/**
|
|
2221
2295
|
* Sets the vertical adjustment of the {@link Gtk.Scrollable}.
|
|
2222
2296
|
* @param vadjustment a {@link Gtk.Adjustment}
|
|
2297
|
+
* @since 3.0
|
|
2223
2298
|
*/
|
|
2224
2299
|
set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
|
|
2225
2300
|
|
|
@@ -2228,6 +2303,7 @@ export namespace Gd {
|
|
|
2228
2303
|
* vertical scrolling should start below the minimum height or
|
|
2229
2304
|
* below the natural height.
|
|
2230
2305
|
* @param policy the vertical {@link Gtk.ScrollablePolicy}
|
|
2306
|
+
* @since 3.0
|
|
2231
2307
|
*/
|
|
2232
2308
|
set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
2233
2309
|
|
|
@@ -2237,6 +2313,7 @@ export namespace Gd {
|
|
|
2237
2313
|
* be treeview headers. GTK+ can use this information to
|
|
2238
2314
|
* display overlayed graphics, like the overshoot indication,
|
|
2239
2315
|
* at the right position.
|
|
2316
|
+
* @since 3.16
|
|
2240
2317
|
* @virtual
|
|
2241
2318
|
*/
|
|
2242
2319
|
vfunc_get_border(): [boolean, Gtk.Border];
|
|
@@ -2428,12 +2505,14 @@ export namespace Gd {
|
|
|
2428
2505
|
/**
|
|
2429
2506
|
* Retrieves the orientation of the `orientable`.
|
|
2430
2507
|
* @returns the orientation of the `orientable`.
|
|
2508
|
+
* @since 2.16
|
|
2431
2509
|
*/
|
|
2432
2510
|
get_orientation(): Gtk.Orientation;
|
|
2433
2511
|
|
|
2434
2512
|
/**
|
|
2435
2513
|
* Sets the orientation of the `orientable`.
|
|
2436
2514
|
* @param orientation the orientable’s new orientation.
|
|
2515
|
+
* @since 2.16
|
|
2437
2516
|
*/
|
|
2438
2517
|
set_orientation(orientation: Gtk.Orientation): void;
|
|
2439
2518
|
|
|
@@ -2442,6 +2521,7 @@ export namespace Gd {
|
|
|
2442
2521
|
* call this function directly, but rely on `gtk_tool_item_get_ellipsize_mode()`
|
|
2443
2522
|
* instead.
|
|
2444
2523
|
* @returns the current ellipsize mode of `shell`
|
|
2524
|
+
* @since 2.20
|
|
2445
2525
|
*/
|
|
2446
2526
|
get_ellipsize_mode(): Pango.EllipsizeMode;
|
|
2447
2527
|
|
|
@@ -2449,6 +2529,7 @@ export namespace Gd {
|
|
|
2449
2529
|
* Retrieves the icon size for the tool shell. Tool items must not call this
|
|
2450
2530
|
* function directly, but rely on `gtk_tool_item_get_icon_size()` instead.
|
|
2451
2531
|
* @returns the current size ({@link Gtk.IconSize}) for icons of `shell`
|
|
2532
|
+
* @since 2.14
|
|
2452
2533
|
*/
|
|
2453
2534
|
get_icon_size(): number;
|
|
2454
2535
|
|
|
@@ -2462,6 +2543,7 @@ export namespace Gd {
|
|
|
2462
2543
|
* Returns the relief style of buttons on `shell`. Tool items must not call this
|
|
2463
2544
|
* function directly, but rely on `gtk_tool_item_get_relief_style()` instead.
|
|
2464
2545
|
* @returns The relief style of buttons on `shell`.
|
|
2546
|
+
* @since 2.14
|
|
2465
2547
|
*/
|
|
2466
2548
|
get_relief_style(): Gtk.ReliefStyle;
|
|
2467
2549
|
|
|
@@ -2470,6 +2552,7 @@ export namespace Gd {
|
|
|
2470
2552
|
* not call this function directly, but rely on `gtk_tool_item_get_toolbar_style()`
|
|
2471
2553
|
* instead.
|
|
2472
2554
|
* @returns the current style of `shell`
|
|
2555
|
+
* @since 2.14
|
|
2473
2556
|
*/
|
|
2474
2557
|
get_style(): Gtk.ToolbarStyle;
|
|
2475
2558
|
|
|
@@ -2484,6 +2567,7 @@ export namespace Gd {
|
|
|
2484
2567
|
* call this function directly, but rely on `gtk_tool_item_get_text_alignment()`
|
|
2485
2568
|
* instead.
|
|
2486
2569
|
* @returns the current text alignment of `shell`
|
|
2570
|
+
* @since 2.20
|
|
2487
2571
|
*/
|
|
2488
2572
|
get_text_alignment(): number;
|
|
2489
2573
|
|
|
@@ -2492,6 +2576,7 @@ export namespace Gd {
|
|
|
2492
2576
|
* call this function directly, but rely on `gtk_tool_item_get_text_orientation()`
|
|
2493
2577
|
* instead.
|
|
2494
2578
|
* @returns the current text orientation of `shell`
|
|
2579
|
+
* @since 2.20
|
|
2495
2580
|
*/
|
|
2496
2581
|
get_text_orientation(): Gtk.Orientation;
|
|
2497
2582
|
|
|
@@ -2500,6 +2585,7 @@ export namespace Gd {
|
|
|
2500
2585
|
* call this function directly, but rely on `gtk_tool_item_get_text_size_group()`
|
|
2501
2586
|
* instead.
|
|
2502
2587
|
* @returns the current text size group of `shell`
|
|
2588
|
+
* @since 2.20
|
|
2503
2589
|
*/
|
|
2504
2590
|
get_text_size_group(): Gtk.SizeGroup;
|
|
2505
2591
|
|
|
@@ -2510,6 +2596,7 @@ export namespace Gd {
|
|
|
2510
2596
|
*
|
|
2511
2597
|
* Tool items must not call this function directly, but rely on
|
|
2512
2598
|
* `gtk_tool_item_rebuild_menu()` instead.
|
|
2599
|
+
* @since 2.14
|
|
2513
2600
|
*/
|
|
2514
2601
|
rebuild_menu(): void;
|
|
2515
2602
|
|
|
@@ -2517,6 +2604,7 @@ export namespace Gd {
|
|
|
2517
2604
|
* Retrieves the current ellipsize mode for the tool shell. Tool items must not
|
|
2518
2605
|
* call this function directly, but rely on `gtk_tool_item_get_ellipsize_mode()`
|
|
2519
2606
|
* instead.
|
|
2607
|
+
* @since 2.20
|
|
2520
2608
|
* @virtual
|
|
2521
2609
|
*/
|
|
2522
2610
|
vfunc_get_ellipsize_mode(): Pango.EllipsizeMode;
|
|
@@ -2531,6 +2619,7 @@ export namespace Gd {
|
|
|
2531
2619
|
* Retrieves the current orientation for the tool shell. Tool items must not
|
|
2532
2620
|
* call this function directly, but rely on `gtk_tool_item_get_orientation()`
|
|
2533
2621
|
* instead.
|
|
2622
|
+
* @since 2.14
|
|
2534
2623
|
* @virtual
|
|
2535
2624
|
*/
|
|
2536
2625
|
vfunc_get_orientation(): Gtk.Orientation;
|
|
@@ -2538,6 +2627,7 @@ export namespace Gd {
|
|
|
2538
2627
|
/**
|
|
2539
2628
|
* Returns the relief style of buttons on `shell`. Tool items must not call this
|
|
2540
2629
|
* function directly, but rely on `gtk_tool_item_get_relief_style()` instead.
|
|
2630
|
+
* @since 2.14
|
|
2541
2631
|
* @virtual
|
|
2542
2632
|
*/
|
|
2543
2633
|
vfunc_get_relief_style(): Gtk.ReliefStyle;
|
|
@@ -2546,6 +2636,7 @@ export namespace Gd {
|
|
|
2546
2636
|
* Retrieves whether the tool shell has text, icons, or both. Tool items must
|
|
2547
2637
|
* not call this function directly, but rely on `gtk_tool_item_get_toolbar_style()`
|
|
2548
2638
|
* instead.
|
|
2639
|
+
* @since 2.14
|
|
2549
2640
|
* @virtual
|
|
2550
2641
|
*/
|
|
2551
2642
|
vfunc_get_style(): Gtk.ToolbarStyle;
|
|
@@ -2554,6 +2645,7 @@ export namespace Gd {
|
|
|
2554
2645
|
* Retrieves the current text alignment for the tool shell. Tool items must not
|
|
2555
2646
|
* call this function directly, but rely on `gtk_tool_item_get_text_alignment()`
|
|
2556
2647
|
* instead.
|
|
2648
|
+
* @since 2.20
|
|
2557
2649
|
* @virtual
|
|
2558
2650
|
*/
|
|
2559
2651
|
vfunc_get_text_alignment(): number;
|
|
@@ -2562,6 +2654,7 @@ export namespace Gd {
|
|
|
2562
2654
|
* Retrieves the current text orientation for the tool shell. Tool items must not
|
|
2563
2655
|
* call this function directly, but rely on `gtk_tool_item_get_text_orientation()`
|
|
2564
2656
|
* instead.
|
|
2657
|
+
* @since 2.20
|
|
2565
2658
|
* @virtual
|
|
2566
2659
|
*/
|
|
2567
2660
|
vfunc_get_text_orientation(): Gtk.Orientation;
|
|
@@ -2570,6 +2663,7 @@ export namespace Gd {
|
|
|
2570
2663
|
* Retrieves the current text size group for the tool shell. Tool items must not
|
|
2571
2664
|
* call this function directly, but rely on `gtk_tool_item_get_text_size_group()`
|
|
2572
2665
|
* instead.
|
|
2666
|
+
* @since 2.20
|
|
2573
2667
|
* @virtual
|
|
2574
2668
|
*/
|
|
2575
2669
|
vfunc_get_text_size_group(): Gtk.SizeGroup;
|
|
@@ -2581,6 +2675,7 @@ export namespace Gd {
|
|
|
2581
2675
|
*
|
|
2582
2676
|
* Tool items must not call this function directly, but rely on
|
|
2583
2677
|
* `gtk_tool_item_rebuild_menu()` instead.
|
|
2678
|
+
* @since 2.14
|
|
2584
2679
|
* @virtual
|
|
2585
2680
|
*/
|
|
2586
2681
|
vfunc_rebuild_menu(): void;
|
|
@@ -2607,6 +2702,7 @@ export namespace Gd {
|
|
|
2607
2702
|
* Used to set the {@link Gtk.Style} for a widget (`widget`->style). Since
|
|
2608
2703
|
* GTK 3, this function does nothing, the passed in style is ignored.
|
|
2609
2704
|
* @param style a {@link Gtk.Style}, or `null` to remove the effect of a previous call to `gtk_widget_set_style()` and go back to the default style
|
|
2705
|
+
* @deprecated since 3.0: Use {@link Gtk.StyleContext} instead
|
|
2610
2706
|
*/
|
|
2611
2707
|
set_style(style: Gtk.Style | null): void;
|
|
2612
2708
|
|
|
@@ -3256,12 +3352,14 @@ export namespace Gd {
|
|
|
3256
3352
|
/**
|
|
3257
3353
|
* Retrieves the orientation of the `orientable`.
|
|
3258
3354
|
* @returns the orientation of the `orientable`.
|
|
3355
|
+
* @since 2.16
|
|
3259
3356
|
*/
|
|
3260
3357
|
get_orientation(): Gtk.Orientation;
|
|
3261
3358
|
|
|
3262
3359
|
/**
|
|
3263
3360
|
* Sets the orientation of the `orientable`.
|
|
3264
3361
|
* @param orientation the orientable’s new orientation.
|
|
3362
|
+
* @since 2.16
|
|
3265
3363
|
*/
|
|
3266
3364
|
set_orientation(orientation: Gtk.Orientation): void;
|
|
3267
3365
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gd-1.0",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gd-1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gd-1.0.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
|
},
|