@girs/gtksource-300 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-300)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GtkSource-300 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
8
+ GJS TypeScript type definitions for GtkSource-300 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
9
9
 
10
10
  ## Install
11
11
 
@@ -132,6 +132,23 @@ export interface Widgets {
132
132
  /** Every GType this namespace can create. A consumer derives its own tag map. */
133
133
  export type WidgetGType = keyof Widgets;
134
134
 
135
+ // ---------------------------------------------------------------------------
136
+ // Child holders — the same shape, for objects that CARRY a widget without being one.
137
+ //
138
+ // `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
139
+ // `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
140
+ // them exactly like a container, so they belong in the vocabulary; a check asking "is
141
+ // this a widget" must still be able to say no. Hence a sibling table rather than four
142
+ // more rows in `Widgets`: concatenate them when you mean both.
143
+ // ---------------------------------------------------------------------------
144
+
145
+ export interface ChildHolders {
146
+
147
+ }
148
+
149
+ /** Every GType this namespace holds a child in without it being a widget. */
150
+ export type ChildHolderGType = keyof ChildHolders;
151
+
135
152
  /** The writable, optional, GObject-keyed property surface of one GType. */
136
153
  export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
137
154
 
@@ -167,6 +184,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
167
184
  /** Widget GType -> every declaration its members come from, self first. */
168
185
  export const DECLS: Readonly<Record<string, readonly string[]>>;
169
186
 
187
+ /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
188
+ export const CHILD_HOLDERS: readonly string[];
189
+
170
190
  /** Enum GType -> the nicks this surface offers. */
171
191
  export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
172
192
 
@@ -21,6 +21,12 @@ export const DECLS = {
21
21
  GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
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
  GtkSourceBracketMatchType: ['none', 'out-of-range', 'not-found', 'found'],
26
32
  GtkSourceChangeCaseType: ['lower', 'upper', 'toggle', 'title'],