@girs/gtksource-4 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/gtksource-4)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GtkSource-4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
8
+ GJS TypeScript type definitions for GtkSource-4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
9
9
 
10
10
  ## Install
11
11
 
@@ -183,6 +183,23 @@ export interface Widgets {
183
183
  /** Every GType this namespace can create. A consumer derives its own tag map. */
184
184
  export type WidgetGType = keyof Widgets;
185
185
 
186
+ // ---------------------------------------------------------------------------
187
+ // Child holders — the same shape, for objects that CARRY a widget without being one.
188
+ //
189
+ // `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
190
+ // `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
191
+ // them exactly like a container, so they belong in the vocabulary; a check asking "is
192
+ // this a widget" must still be able to say no. Hence a sibling table rather than four
193
+ // more rows in `Widgets`: concatenate them when you mean both.
194
+ // ---------------------------------------------------------------------------
195
+
196
+ export interface ChildHolders {
197
+
198
+ }
199
+
200
+ /** Every GType this namespace holds a child in without it being a widget. */
201
+ export type ChildHolderGType = keyof ChildHolders;
202
+
186
203
  /** The writable, optional, GObject-keyed property surface of one GType. */
187
204
  export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
188
205
 
@@ -218,6 +235,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
218
235
  /** Widget GType -> every declaration its members come from, self first. */
219
236
  export const DECLS: Readonly<Record<string, readonly string[]>>;
220
237
 
238
+ /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
239
+ export const CHILD_HOLDERS: readonly string[];
240
+
221
241
  /** Enum GType -> the nicks this surface offers. */
222
242
  export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
223
243
 
@@ -26,6 +26,12 @@ export const DECLS = {
26
26
  GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
27
27
  };
28
28
 
29
+ // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
30
+ // and descend from `GObject.Object`. A renderer places them like a container; a check
31
+ // asking "is this a widget" must not count them. Derived from the accessor pair, never
32
+ // from a list — the count is in the provenance line above.
33
+ export const CHILD_HOLDERS = [];
34
+
29
35
  export const ENUM_NICKS = {
30
36
  GtkSourceBackgroundPatternType: ['none', 'grid'],
31
37
  GtkSourceBracketMatchType: ['none', 'out-of-range', 'not-found', 'found'],