@girs/braseroburn-3.1 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/braseroburn-3.1-surface.d.ts +20 -0
- package/braseroburn-3.1-surface.js +6 -0
- package/braseroburn-3.1.d.ts +5 -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 BraseroBurn-3.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for BraseroBurn-3.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
@@ -121,6 +121,23 @@ export interface Widgets {
|
|
|
121
121
|
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
122
122
|
export type WidgetGType = keyof Widgets;
|
|
123
123
|
|
|
124
|
+
// ---------------------------------------------------------------------------
|
|
125
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
126
|
+
//
|
|
127
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
128
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
129
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
130
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
131
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
132
|
+
// ---------------------------------------------------------------------------
|
|
133
|
+
|
|
134
|
+
export interface ChildHolders {
|
|
135
|
+
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
139
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
140
|
+
|
|
124
141
|
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
125
142
|
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
126
143
|
|
|
@@ -156,6 +173,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
|
156
173
|
/** Widget GType -> every declaration its members come from, self first. */
|
|
157
174
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
158
175
|
|
|
176
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
177
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
178
|
+
|
|
159
179
|
/** Enum GType -> the nicks this surface offers. */
|
|
160
180
|
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
161
181
|
|
|
@@ -21,6 +21,12 @@ export const DECLS = {
|
|
|
21
21
|
BraseroToolDialog: ['BraseroToolDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
25
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
26
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
27
|
+
// from a list — the count is in the provenance line above.
|
|
28
|
+
export const CHILD_HOLDERS = [];
|
|
29
|
+
|
|
24
30
|
export const ENUM_NICKS = {};
|
|
25
31
|
|
|
26
32
|
export const SLOT_CANDIDATES = {
|
package/braseroburn-3.1.d.ts
CHANGED
|
@@ -2593,6 +2593,7 @@ export namespace BraseroBurn {
|
|
|
2593
2593
|
* and `root` as the virtual root.
|
|
2594
2594
|
* @param root A {@link Gtk.TreePath} or `null`.
|
|
2595
2595
|
* @returns A new {@link Gtk.TreeModel}.
|
|
2596
|
+
* @since 2.4
|
|
2596
2597
|
*/
|
|
2597
2598
|
filter_new(root: Gtk.TreePath | null): Gtk.TreeModel;
|
|
2598
2599
|
|
|
@@ -2669,6 +2670,7 @@ export namespace BraseroBurn {
|
|
|
2669
2670
|
* return value for this string.
|
|
2670
2671
|
* @param iter a {@link Gtk.TreeIter}-struct
|
|
2671
2672
|
* @returns a newly-allocated string. Must be freed with `g_free()`.
|
|
2673
|
+
* @since 2.2
|
|
2672
2674
|
*/
|
|
2673
2675
|
get_string_from_iter(iter: Gtk.TreeIter): string;
|
|
2674
2676
|
|
|
@@ -2759,6 +2761,7 @@ export namespace BraseroBurn {
|
|
|
2759
2761
|
* set to be invalid.
|
|
2760
2762
|
* @param iter the {@link Gtk.TreeIter}-struct
|
|
2761
2763
|
* @returns `true` if `iter` has been changed to the previous node
|
|
2764
|
+
* @since 3.0
|
|
2762
2765
|
*/
|
|
2763
2766
|
iter_previous(iter: Gtk.TreeIter): boolean;
|
|
2764
2767
|
|
|
@@ -2828,6 +2831,7 @@ export namespace BraseroBurn {
|
|
|
2828
2831
|
* @param path a {@link Gtk.TreePath}-struct pointing to the tree node whose children have been reordered
|
|
2829
2832
|
* @param iter a valid {@link Gtk.TreeIter}-struct pointing to the node whose children have been reordered, or `null` if the depth of `path` is 0
|
|
2830
2833
|
* @param new_order an array of integers mapping the current position of each child to its old position before the re-ordering, i.e. `new_order``[newpos] = oldpos`
|
|
2834
|
+
* @since 3.10
|
|
2831
2835
|
*/
|
|
2832
2836
|
rows_reordered(path: Gtk.TreePath, iter: Gtk.TreeIter | null, new_order: number[]): void;
|
|
2833
2837
|
|
|
@@ -2971,6 +2975,7 @@ export namespace BraseroBurn {
|
|
|
2971
2975
|
* If there is no previous `iter`, `false` is returned and `iter` is
|
|
2972
2976
|
* set to be invalid.
|
|
2973
2977
|
* @param iter the {@link Gtk.TreeIter}-struct
|
|
2978
|
+
* @since 3.0
|
|
2974
2979
|
* @virtual
|
|
2975
2980
|
*/
|
|
2976
2981
|
vfunc_iter_previous(iter: Gtk.TreeIter): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/braseroburn-3.1",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for BraseroBurn-3.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "braseroburn-3.1.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
|
},
|