@girs/gobject-2.0 2.80.0-4.0.0-beta.3 → 2.80.0-4.0.0-beta.4

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.
Files changed (2) hide show
  1. package/gobject-2.0.d.ts +580 -401
  2. package/package.json +3 -3
package/gobject-2.0.d.ts CHANGED
@@ -46,7 +46,7 @@ export namespace GObject {
46
46
  /**
47
47
  * A bit in the type number that's supposed to be left untouched.
48
48
  */
49
- const TYPE_FLAG_RESERVED_ID_BIT: never;
49
+ const TYPE_FLAG_RESERVED_ID_BIT: Type;
50
50
  /**
51
51
  * An integer constant that represents the number of identifiers reserved
52
52
  * for types that are assigned at compile-time.
@@ -79,6 +79,11 @@ export namespace GObject {
79
79
  * type id with G_TYPE_MAKE_FUNDAMENTAL().
80
80
  */
81
81
  const TYPE_RESERVED_USER_FIRST: number;
82
+ /**
83
+ * The maximal number of #GTypeCValues which can be collected for a
84
+ * single #GValue.
85
+ */
86
+ const VALUE_COLLECT_FORMAT_MAX_LENGTH: number;
82
87
  /**
83
88
  * For string values, indicates that the string contained is canonical and will
84
89
  * exist for the duration of the process. See g_value_set_interned_string().
@@ -104,6 +109,22 @@ export namespace GObject {
104
109
  * @param boxed The boxed structure to be freed.
105
110
  */
106
111
  function boxed_free(boxed_type: GType, boxed: any): void;
112
+ /**
113
+ * This function creates a new %G_TYPE_BOXED derived type id for a new
114
+ * boxed type with name `name`.
115
+ *
116
+ * Boxed type handling functions have to be provided to copy and free
117
+ * opaque boxed structures of this type.
118
+ *
119
+ * For the general case, it is recommended to use G_DEFINE_BOXED_TYPE()
120
+ * instead of calling g_boxed_type_register_static() directly. The macro
121
+ * will create the appropriate `*_get_type()` function for the boxed type.
122
+ * @param name Name of the new boxed type.
123
+ * @param boxed_copy Boxed structure copy function.
124
+ * @param boxed_free Boxed structure free function.
125
+ * @returns New %G_TYPE_BOXED derived type id for @name.
126
+ */
127
+ function boxed_type_register_static(name: string, boxed_copy: BoxedCopyFunc, boxed_free: BoxedFreeFunc): GType;
107
128
  /**
108
129
  * A #GClosureMarshal function for use with signals with handlers that
109
130
  * take two boxed pointers as arguments and return a boolean. If you
@@ -125,15 +146,16 @@ export namespace GObject {
125
146
  marshal_data?: any | null,
126
147
  ): void;
127
148
  /**
128
- * A marshaller for a #GCClosure with a callback of type
129
- * `gboolean (*callback) (gpointer instance, gint arg1, gpointer user_data)` where the #gint parameter
130
- * denotes a flags type.
131
- * @param closure the #GClosure to which the marshaller belongs
132
- * @param return_value a #GValue which can store the returned #gboolean
133
- * @param n_param_values 2
134
- * @param param_values a #GValue array holding instance and arg1
135
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
136
- * @param marshal_data additional data specified when registering the marshaller
149
+ * A #GClosureMarshal function for use with signals with handlers that
150
+ * take a flags type as an argument and return a boolean. If you have
151
+ * such a signal, you will probably also need to use an accumulator,
152
+ * such as g_signal_accumulator_true_handled().
153
+ * @param closure A #GClosure.
154
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
155
+ * @param n_param_values The length of the @param_values array.
156
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
157
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
158
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
137
159
  */
138
160
  function cclosure_marshal_BOOLEAN__FLAGS(
139
161
  closure: Closure,
@@ -144,14 +166,15 @@ export namespace GObject {
144
166
  marshal_data?: any | null,
145
167
  ): void;
146
168
  /**
147
- * A marshaller for a #GCClosure with a callback of type
148
- * `gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data)`.
149
- * @param closure the #GClosure to which the marshaller belongs
150
- * @param return_value a #GValue, which can store the returned string
151
- * @param n_param_values 3
152
- * @param param_values a #GValue array holding instance, arg1 and arg2
153
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
154
- * @param marshal_data additional data specified when registering the marshaller
169
+ * A #GClosureMarshal function for use with signals with handlers that
170
+ * take a #GObject and a pointer and produce a string. It is highly
171
+ * unlikely that your signal handler fits this description.
172
+ * @param closure A #GClosure.
173
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
174
+ * @param n_param_values The length of the @param_values array.
175
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
176
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
177
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
155
178
  */
156
179
  function cclosure_marshal_STRING__OBJECT_POINTER(
157
180
  closure: Closure,
@@ -162,14 +185,14 @@ export namespace GObject {
162
185
  marshal_data?: any | null,
163
186
  ): void;
164
187
  /**
165
- * A marshaller for a #GCClosure with a callback of type
166
- * `void (*callback) (gpointer instance, gboolean arg1, gpointer user_data)`.
167
- * @param closure the #GClosure to which the marshaller belongs
168
- * @param return_value ignored
169
- * @param n_param_values 2
170
- * @param param_values a #GValue array holding the instance and the #gboolean parameter
171
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
172
- * @param marshal_data additional data specified when registering the marshaller
188
+ * A #GClosureMarshal function for use with signals with a single
189
+ * boolean argument.
190
+ * @param closure A #GClosure.
191
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
192
+ * @param n_param_values The length of the @param_values array.
193
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
194
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
195
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
173
196
  */
174
197
  function cclosure_marshal_VOID__BOOLEAN(
175
198
  closure: Closure,
@@ -180,14 +203,14 @@ export namespace GObject {
180
203
  marshal_data?: any | null,
181
204
  ): void;
182
205
  /**
183
- * A marshaller for a #GCClosure with a callback of type
184
- * `void (*callback) (gpointer instance, GBoxed *arg1, gpointer user_data)`.
185
- * @param closure the #GClosure to which the marshaller belongs
186
- * @param return_value ignored
187
- * @param n_param_values 2
188
- * @param param_values a #GValue array holding the instance and the #GBoxed* parameter
189
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
190
- * @param marshal_data additional data specified when registering the marshaller
206
+ * A #GClosureMarshal function for use with signals with a single
207
+ * argument which is any boxed pointer type.
208
+ * @param closure A #GClosure.
209
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
210
+ * @param n_param_values The length of the @param_values array.
211
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
212
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
213
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
191
214
  */
192
215
  function cclosure_marshal_VOID__BOXED(
193
216
  closure: Closure,
@@ -198,14 +221,14 @@ export namespace GObject {
198
221
  marshal_data?: any | null,
199
222
  ): void;
200
223
  /**
201
- * A marshaller for a #GCClosure with a callback of type
202
- * `void (*callback) (gpointer instance, gchar arg1, gpointer user_data)`.
203
- * @param closure the #GClosure to which the marshaller belongs
204
- * @param return_value ignored
205
- * @param n_param_values 2
206
- * @param param_values a #GValue array holding the instance and the #gchar parameter
207
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
208
- * @param marshal_data additional data specified when registering the marshaller
224
+ * A #GClosureMarshal function for use with signals with a single
225
+ * character argument.
226
+ * @param closure A #GClosure.
227
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
228
+ * @param n_param_values The length of the @param_values array.
229
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
230
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
231
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
209
232
  */
210
233
  function cclosure_marshal_VOID__CHAR(
211
234
  closure: Closure,
@@ -216,14 +239,14 @@ export namespace GObject {
216
239
  marshal_data?: any | null,
217
240
  ): void;
218
241
  /**
219
- * A marshaller for a #GCClosure with a callback of type
220
- * `void (*callback) (gpointer instance, gdouble arg1, gpointer user_data)`.
221
- * @param closure the #GClosure to which the marshaller belongs
222
- * @param return_value ignored
223
- * @param n_param_values 2
224
- * @param param_values a #GValue array holding the instance and the #gdouble parameter
225
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
226
- * @param marshal_data additional data specified when registering the marshaller
242
+ * A #GClosureMarshal function for use with signals with one
243
+ * double-precision floating point argument.
244
+ * @param closure A #GClosure.
245
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
246
+ * @param n_param_values The length of the @param_values array.
247
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
248
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
249
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
227
250
  */
228
251
  function cclosure_marshal_VOID__DOUBLE(
229
252
  closure: Closure,
@@ -234,14 +257,14 @@ export namespace GObject {
234
257
  marshal_data?: any | null,
235
258
  ): void;
236
259
  /**
237
- * A marshaller for a #GCClosure with a callback of type
238
- * `void (*callback) (gpointer instance, gint arg1, gpointer user_data)` where the #gint parameter denotes an enumeration type..
239
- * @param closure the #GClosure to which the marshaller belongs
240
- * @param return_value ignored
241
- * @param n_param_values 2
242
- * @param param_values a #GValue array holding the instance and the enumeration parameter
243
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
244
- * @param marshal_data additional data specified when registering the marshaller
260
+ * A #GClosureMarshal function for use with signals with a single
261
+ * argument with an enumerated type.
262
+ * @param closure A #GClosure.
263
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
264
+ * @param n_param_values The length of the @param_values array.
265
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
266
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
267
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
245
268
  */
246
269
  function cclosure_marshal_VOID__ENUM(
247
270
  closure: Closure,
@@ -252,14 +275,14 @@ export namespace GObject {
252
275
  marshal_data?: any | null,
253
276
  ): void;
254
277
  /**
255
- * A marshaller for a #GCClosure with a callback of type
256
- * `void (*callback) (gpointer instance, gint arg1, gpointer user_data)` where the #gint parameter denotes a flags type.
257
- * @param closure the #GClosure to which the marshaller belongs
258
- * @param return_value ignored
259
- * @param n_param_values 2
260
- * @param param_values a #GValue array holding the instance and the flags parameter
261
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
262
- * @param marshal_data additional data specified when registering the marshaller
278
+ * A #GClosureMarshal function for use with signals with a single
279
+ * argument with a flags types.
280
+ * @param closure A #GClosure.
281
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
282
+ * @param n_param_values The length of the @param_values array.
283
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
284
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
285
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
263
286
  */
264
287
  function cclosure_marshal_VOID__FLAGS(
265
288
  closure: Closure,
@@ -270,14 +293,14 @@ export namespace GObject {
270
293
  marshal_data?: any | null,
271
294
  ): void;
272
295
  /**
273
- * A marshaller for a #GCClosure with a callback of type
274
- * `void (*callback) (gpointer instance, gfloat arg1, gpointer user_data)`.
275
- * @param closure the #GClosure to which the marshaller belongs
276
- * @param return_value ignored
277
- * @param n_param_values 2
278
- * @param param_values a #GValue array holding the instance and the #gfloat parameter
279
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
280
- * @param marshal_data additional data specified when registering the marshaller
296
+ * A #GClosureMarshal function for use with signals with one
297
+ * single-precision floating point argument.
298
+ * @param closure A #GClosure.
299
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
300
+ * @param n_param_values The length of the @param_values array.
301
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
302
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
303
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
281
304
  */
282
305
  function cclosure_marshal_VOID__FLOAT(
283
306
  closure: Closure,
@@ -288,14 +311,14 @@ export namespace GObject {
288
311
  marshal_data?: any | null,
289
312
  ): void;
290
313
  /**
291
- * A marshaller for a #GCClosure with a callback of type
292
- * `void (*callback) (gpointer instance, gint arg1, gpointer user_data)`.
293
- * @param closure the #GClosure to which the marshaller belongs
294
- * @param return_value ignored
295
- * @param n_param_values 2
296
- * @param param_values a #GValue array holding the instance and the #gint parameter
297
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
298
- * @param marshal_data additional data specified when registering the marshaller
314
+ * A #GClosureMarshal function for use with signals with a single
315
+ * integer argument.
316
+ * @param closure A #GClosure.
317
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
318
+ * @param n_param_values The length of the @param_values array.
319
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
320
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
321
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
299
322
  */
300
323
  function cclosure_marshal_VOID__INT(
301
324
  closure: Closure,
@@ -306,14 +329,14 @@ export namespace GObject {
306
329
  marshal_data?: any | null,
307
330
  ): void;
308
331
  /**
309
- * A marshaller for a #GCClosure with a callback of type
310
- * `void (*callback) (gpointer instance, glong arg1, gpointer user_data)`.
311
- * @param closure the #GClosure to which the marshaller belongs
312
- * @param return_value ignored
313
- * @param n_param_values 2
314
- * @param param_values a #GValue array holding the instance and the #glong parameter
315
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
316
- * @param marshal_data additional data specified when registering the marshaller
332
+ * A #GClosureMarshal function for use with signals with with a single
333
+ * long integer argument.
334
+ * @param closure A #GClosure.
335
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
336
+ * @param n_param_values The length of the @param_values array.
337
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
338
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
339
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
317
340
  */
318
341
  function cclosure_marshal_VOID__LONG(
319
342
  closure: Closure,
@@ -324,14 +347,14 @@ export namespace GObject {
324
347
  marshal_data?: any | null,
325
348
  ): void;
326
349
  /**
327
- * A marshaller for a #GCClosure with a callback of type
328
- * `void (*callback) (gpointer instance, GObject *arg1, gpointer user_data)`.
329
- * @param closure the #GClosure to which the marshaller belongs
330
- * @param return_value ignored
331
- * @param n_param_values 2
332
- * @param param_values a #GValue array holding the instance and the #GObject* parameter
333
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
334
- * @param marshal_data additional data specified when registering the marshaller
350
+ * A #GClosureMarshal function for use with signals with a single
351
+ * #GObject argument.
352
+ * @param closure A #GClosure.
353
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
354
+ * @param n_param_values The length of the @param_values array.
355
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
356
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
357
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
335
358
  */
336
359
  function cclosure_marshal_VOID__OBJECT(
337
360
  closure: Closure,
@@ -342,14 +365,14 @@ export namespace GObject {
342
365
  marshal_data?: any | null,
343
366
  ): void;
344
367
  /**
345
- * A marshaller for a #GCClosure with a callback of type
346
- * `void (*callback) (gpointer instance, GParamSpec *arg1, gpointer user_data)`.
347
- * @param closure the #GClosure to which the marshaller belongs
348
- * @param return_value ignored
349
- * @param n_param_values 2
350
- * @param param_values a #GValue array holding the instance and the #GParamSpec* parameter
351
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
352
- * @param marshal_data additional data specified when registering the marshaller
368
+ * A #GClosureMarshal function for use with signals with a single
369
+ * argument of type #GParamSpec.
370
+ * @param closure A #GClosure.
371
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
372
+ * @param n_param_values The length of the @param_values array.
373
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
374
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
375
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
353
376
  */
354
377
  function cclosure_marshal_VOID__PARAM(
355
378
  closure: Closure,
@@ -360,14 +383,18 @@ export namespace GObject {
360
383
  marshal_data?: any | null,
361
384
  ): void;
362
385
  /**
363
- * A marshaller for a #GCClosure with a callback of type
364
- * `void (*callback) (gpointer instance, gpointer arg1, gpointer user_data)`.
365
- * @param closure the #GClosure to which the marshaller belongs
366
- * @param return_value ignored
367
- * @param n_param_values 2
368
- * @param param_values a #GValue array holding the instance and the #gpointer parameter
369
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
370
- * @param marshal_data additional data specified when registering the marshaller
386
+ * A #GClosureMarshal function for use with signals with a single raw
387
+ * pointer argument type.
388
+ *
389
+ * If it is possible, it is better to use one of the more specific
390
+ * functions such as g_cclosure_marshal_VOID__OBJECT() or
391
+ * g_cclosure_marshal_VOID__OBJECT().
392
+ * @param closure A #GClosure.
393
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
394
+ * @param n_param_values The length of the @param_values array.
395
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
396
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
397
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
371
398
  */
372
399
  function cclosure_marshal_VOID__POINTER(
373
400
  closure: Closure,
@@ -378,14 +405,14 @@ export namespace GObject {
378
405
  marshal_data?: any | null,
379
406
  ): void;
380
407
  /**
381
- * A marshaller for a #GCClosure with a callback of type
382
- * `void (*callback) (gpointer instance, const gchar *arg1, gpointer user_data)`.
383
- * @param closure the #GClosure to which the marshaller belongs
384
- * @param return_value ignored
385
- * @param n_param_values 2
386
- * @param param_values a #GValue array holding the instance and the #gchar* parameter
387
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
388
- * @param marshal_data additional data specified when registering the marshaller
408
+ * A #GClosureMarshal function for use with signals with a single string
409
+ * argument.
410
+ * @param closure A #GClosure.
411
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
412
+ * @param n_param_values The length of the @param_values array.
413
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
414
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
415
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
389
416
  */
390
417
  function cclosure_marshal_VOID__STRING(
391
418
  closure: Closure,
@@ -396,14 +423,14 @@ export namespace GObject {
396
423
  marshal_data?: any | null,
397
424
  ): void;
398
425
  /**
399
- * A marshaller for a #GCClosure with a callback of type
400
- * `void (*callback) (gpointer instance, guchar arg1, gpointer user_data)`.
401
- * @param closure the #GClosure to which the marshaller belongs
402
- * @param return_value ignored
403
- * @param n_param_values 2
404
- * @param param_values a #GValue array holding the instance and the #guchar parameter
405
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
406
- * @param marshal_data additional data specified when registering the marshaller
426
+ * A #GClosureMarshal function for use with signals with a single
427
+ * unsigned character argument.
428
+ * @param closure A #GClosure.
429
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
430
+ * @param n_param_values The length of the @param_values array.
431
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
432
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
433
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
407
434
  */
408
435
  function cclosure_marshal_VOID__UCHAR(
409
436
  closure: Closure,
@@ -414,14 +441,14 @@ export namespace GObject {
414
441
  marshal_data?: any | null,
415
442
  ): void;
416
443
  /**
417
- * A marshaller for a #GCClosure with a callback of type
418
- * `void (*callback) (gpointer instance, guint arg1, gpointer user_data)`.
419
- * @param closure the #GClosure to which the marshaller belongs
420
- * @param return_value ignored
421
- * @param n_param_values 2
422
- * @param param_values a #GValue array holding the instance and the #guint parameter
423
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
424
- * @param marshal_data additional data specified when registering the marshaller
444
+ * A #GClosureMarshal function for use with signals with with a single
445
+ * unsigned integer argument.
446
+ * @param closure A #GClosure.
447
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
448
+ * @param n_param_values The length of the @param_values array.
449
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
450
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
451
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
425
452
  */
426
453
  function cclosure_marshal_VOID__UINT(
427
454
  closure: Closure,
@@ -432,14 +459,14 @@ export namespace GObject {
432
459
  marshal_data?: any | null,
433
460
  ): void;
434
461
  /**
435
- * A marshaller for a #GCClosure with a callback of type
436
- * `void (*callback) (gpointer instance, guint arg1, gpointer arg2, gpointer user_data)`.
437
- * @param closure the #GClosure to which the marshaller belongs
438
- * @param return_value ignored
439
- * @param n_param_values 3
440
- * @param param_values a #GValue array holding instance, arg1 and arg2
441
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
442
- * @param marshal_data additional data specified when registering the marshaller
462
+ * A #GClosureMarshal function for use with signals with an unsigned int
463
+ * and a pointer as arguments.
464
+ * @param closure A #GClosure.
465
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
466
+ * @param n_param_values The length of the @param_values array.
467
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
468
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
469
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
443
470
  */
444
471
  function cclosure_marshal_VOID__UINT_POINTER(
445
472
  closure: Closure,
@@ -450,14 +477,14 @@ export namespace GObject {
450
477
  marshal_data?: any | null,
451
478
  ): void;
452
479
  /**
453
- * A marshaller for a #GCClosure with a callback of type
454
- * `void (*callback) (gpointer instance, gulong arg1, gpointer user_data)`.
455
- * @param closure the #GClosure to which the marshaller belongs
456
- * @param return_value ignored
457
- * @param n_param_values 2
458
- * @param param_values a #GValue array holding the instance and the #gulong parameter
459
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
460
- * @param marshal_data additional data specified when registering the marshaller
480
+ * A #GClosureMarshal function for use with signals with a single
481
+ * unsigned long integer argument.
482
+ * @param closure A #GClosure.
483
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
484
+ * @param n_param_values The length of the @param_values array.
485
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
486
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
487
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
461
488
  */
462
489
  function cclosure_marshal_VOID__ULONG(
463
490
  closure: Closure,
@@ -468,14 +495,14 @@ export namespace GObject {
468
495
  marshal_data?: any | null,
469
496
  ): void;
470
497
  /**
471
- * A marshaller for a #GCClosure with a callback of type
472
- * `void (*callback) (gpointer instance, GVariant *arg1, gpointer user_data)`.
473
- * @param closure the #GClosure to which the marshaller belongs
474
- * @param return_value ignored
475
- * @param n_param_values 2
476
- * @param param_values a #GValue array holding the instance and the #GVariant* parameter
477
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
478
- * @param marshal_data additional data specified when registering the marshaller
498
+ * A #GClosureMarshal function for use with signals with a single
499
+ * #GVariant argument.
500
+ * @param closure A #GClosure.
501
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
502
+ * @param n_param_values The length of the @param_values array.
503
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
504
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
505
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
479
506
  */
480
507
  function cclosure_marshal_VOID__VARIANT(
481
508
  closure: Closure,
@@ -486,14 +513,13 @@ export namespace GObject {
486
513
  marshal_data?: any | null,
487
514
  ): void;
488
515
  /**
489
- * A marshaller for a #GCClosure with a callback of type
490
- * `void (*callback) (gpointer instance, gpointer user_data)`.
491
- * @param closure the #GClosure to which the marshaller belongs
492
- * @param return_value ignored
493
- * @param n_param_values 1
494
- * @param param_values a #GValue array holding only the instance
495
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
496
- * @param marshal_data additional data specified when registering the marshaller
516
+ * A #GClosureMarshal function for use with signals with no arguments.
517
+ * @param closure A #GClosure.
518
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
519
+ * @param n_param_values The length of the @param_values array.
520
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
521
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
522
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
497
523
  */
498
524
  function cclosure_marshal_VOID__VOID(
499
525
  closure: Closure,
@@ -1244,11 +1270,14 @@ export namespace GObject {
1244
1270
  *
1245
1271
  * If `closure` is a floating reference (see g_closure_sink()), this function
1246
1272
  * takes ownership of `closure`.
1273
+ *
1274
+ * This function cannot fail. If the given signal doesn’t exist, a critical
1275
+ * warning is emitted.
1247
1276
  * @param instance the instance to connect to.
1248
1277
  * @param detailed_signal a string of the form "signal-name::detail".
1249
1278
  * @param closure the closure to connect.
1250
1279
  * @param after whether the handler should be called before or after the default handler of the signal.
1251
- * @returns the handler ID (always greater than 0 for successful connections)
1280
+ * @returns the handler ID (always greater than 0)
1252
1281
  */
1253
1282
  function signal_connect_closure(
1254
1283
  instance: Object,
@@ -1261,12 +1290,15 @@ export namespace GObject {
1261
1290
  *
1262
1291
  * If `closure` is a floating reference (see g_closure_sink()), this function
1263
1292
  * takes ownership of `closure`.
1293
+ *
1294
+ * This function cannot fail. If the given signal doesn’t exist, a critical
1295
+ * warning is emitted.
1264
1296
  * @param instance the instance to connect to.
1265
1297
  * @param signal_id the id of the signal.
1266
1298
  * @param detail the detail.
1267
1299
  * @param closure the closure to connect.
1268
1300
  * @param after whether the handler should be called before or after the default handler of the signal.
1269
- * @returns the handler ID (always greater than 0 for successful connections)
1301
+ * @returns the handler ID (always greater than 0)
1270
1302
  */
1271
1303
  function signal_connect_closure_by_id(
1272
1304
  instance: Object,
@@ -1520,6 +1552,31 @@ export namespace GObject {
1520
1552
  * @returns the signal name, or %NULL if the signal number was invalid.
1521
1553
  */
1522
1554
  function signal_name(signal_id: number): string | null;
1555
+ /**
1556
+ * Creates a new signal. (This is usually done in the class initializer.)
1557
+ *
1558
+ * See g_signal_new() for details on allowed signal names.
1559
+ *
1560
+ * If c_marshaller is %NULL, g_cclosure_marshal_generic() will be used as
1561
+ * the marshaller for this signal.
1562
+ * @param signal_name the name for the signal
1563
+ * @param itype the type this signal pertains to. It will also pertain to types which are derived from this type
1564
+ * @param signal_flags a combination of #GSignalFlags specifying detail of when the default handler is to be invoked. You should at least specify %G_SIGNAL_RUN_FIRST or %G_SIGNAL_RUN_LAST
1565
+ * @param class_closure The closure to invoke on signal emission; may be %NULL
1566
+ * @param c_marshaller the function to translate arrays of parameter values to signal emissions into C language callback invocations or %NULL
1567
+ * @param return_type the type of return value, or %G_TYPE_NONE for a signal without a return value
1568
+ * @param param_types an array of types, one for each parameter (may be %NULL if @n_params is zero)
1569
+ * @returns the signal id
1570
+ */
1571
+ function signal_newv(
1572
+ signal_name: string,
1573
+ itype: GType,
1574
+ signal_flags: SignalFlags,
1575
+ class_closure: Closure | null,
1576
+ c_marshaller: SignalCMarshaller | null,
1577
+ return_type: GType,
1578
+ param_types?: GType[] | null,
1579
+ ): number;
1523
1580
  /**
1524
1581
  * Overrides the class closure (i.e. the default handler) for the given signal
1525
1582
  * for emissions on instances of `instance_type`. `instance_type` must be derived
@@ -1533,6 +1590,20 @@ export namespace GObject {
1533
1590
  * @param class_closure the closure.
1534
1591
  */
1535
1592
  function signal_override_class_closure(signal_id: number, instance_type: GType, class_closure: Closure): void;
1593
+ /**
1594
+ * Overrides the class closure (i.e. the default handler) for the
1595
+ * given signal for emissions on instances of `instance_type` with
1596
+ * callback `class_handler`. `instance_type` must be derived from the
1597
+ * type to which the signal belongs.
1598
+ *
1599
+ * See g_signal_chain_from_overridden() and
1600
+ * g_signal_chain_from_overridden_handler() for how to chain up to the
1601
+ * parent class closure from inside the overridden one.
1602
+ * @param signal_name the name for the signal
1603
+ * @param instance_type the instance type on which to override the class handler for the signal.
1604
+ * @param class_handler the handler.
1605
+ */
1606
+ function signal_override_class_handler(signal_name: string, instance_type: GType, class_handler: Callback): void;
1536
1607
  /**
1537
1608
  * Internal function to parse a signal name into its `signal_id`
1538
1609
  * and `detail` quark.
@@ -2046,6 +2117,7 @@ export namespace GObject {
2046
2117
  * @returns %TRUE if the transformation is possible, %FALSE otherwise.
2047
2118
  */
2048
2119
  function value_type_transformable(src_type: GType, dest_type: GType): boolean;
2120
+ function variant_get_gtype(): GType;
2049
2121
  interface BaseFinalizeFunc {
2050
2122
  (g_class: TypeClass): void;
2051
2123
  }
@@ -2156,6 +2228,41 @@ export namespace GObject {
2156
2228
  interface WeakNotify<A = Object> {
2157
2229
  (data: any | null, where_the_object_was: A): void;
2158
2230
  }
2231
+ type Array = object | null;
2232
+ type BookmarkFile = object | null;
2233
+ type ByteArray = object | null;
2234
+ type Bytes = object | null;
2235
+ type Checksum = object | null;
2236
+ type Date = object | null;
2237
+ type DateTime = object | null;
2238
+ type Dir = object | null;
2239
+ type Error = object | null;
2240
+ type HashTable = object | null;
2241
+ type Hmac = object | null;
2242
+ type IOChannel = object | null;
2243
+ type KeyFile = object | null;
2244
+ type MainContext = object | null;
2245
+ type MainLoop = object | null;
2246
+ type MappedFile = object | null;
2247
+ type MarkupParseContext = object | null;
2248
+ type MatchInfo = object | null;
2249
+ type OptionGroup = object | null;
2250
+ type PatternSpec = object | null;
2251
+ type PollFD = object | null;
2252
+ type PtrArray = object | null;
2253
+ type Rand = object | null;
2254
+ type Regex = object | null;
2255
+ type Source = object | null;
2256
+ type String = object | null;
2257
+ type Strv = object | null;
2258
+ type StrvBuilder = object | null;
2259
+ type Thread = object | null;
2260
+ type TimeZone = object | null;
2261
+ type Tree = object | null;
2262
+ type Uri = object | null;
2263
+ type VariantBuilder = object | null;
2264
+ type VariantDict = object | null;
2265
+ type VariantType = object | null;
2159
2266
  /**
2160
2267
  * Flags to be passed to g_object_bind_property() or
2161
2268
  * g_object_bind_property_full().
@@ -2210,6 +2317,14 @@ export namespace GObject {
2210
2317
  */
2211
2318
  SWAPPED,
2212
2319
  }
2320
+ enum IOCondition {
2321
+ IN,
2322
+ OUT,
2323
+ PRI,
2324
+ ERR,
2325
+ HUP,
2326
+ NVAL,
2327
+ }
2213
2328
  /**
2214
2329
  * Through the #GParamFlags flag values, certain aspects of parameters
2215
2330
  * can be configured.
@@ -2468,37 +2583,32 @@ export namespace GObject {
2468
2583
  }
2469
2584
 
2470
2585
  /**
2471
- * #GBinding is the representation of a binding between a property on a
2472
- * #GObject instance (or source) and another property on another #GObject
2586
+ * `GObject` instance (or source) and another property on another `GObject`
2473
2587
  * instance (or target).
2474
2588
  *
2475
2589
  * Whenever the source property changes, the same value is applied to the
2476
2590
  * target property; for instance, the following binding:
2477
2591
  *
2478
- *
2479
2592
  * ```c
2480
2593
  * g_object_bind_property (object1, "property-a",
2481
2594
  * object2, "property-b",
2482
2595
  * G_BINDING_DEFAULT);
2483
2596
  * ```
2484
2597
  *
2485
- *
2486
2598
  * will cause the property named "property-b" of `object2` to be updated
2487
- * every time g_object_set() or the specific accessor changes the value of
2599
+ * every time [method`GObject`.set] or the specific accessor changes the value of
2488
2600
  * the property "property-a" of `object1`.
2489
2601
  *
2490
2602
  * It is possible to create a bidirectional binding between two properties
2491
- * of two #GObject instances, so that if either property changes, the
2603
+ * of two `GObject` instances, so that if either property changes, the
2492
2604
  * other is updated as well, for instance:
2493
2605
  *
2494
- *
2495
2606
  * ```c
2496
2607
  * g_object_bind_property (object1, "property-a",
2497
2608
  * object2, "property-b",
2498
2609
  * G_BINDING_BIDIRECTIONAL);
2499
2610
  * ```
2500
2611
  *
2501
- *
2502
2612
  * will keep the two properties in sync.
2503
2613
  *
2504
2614
  * It is also possible to set a custom transformation function (in both
@@ -2506,7 +2616,6 @@ export namespace GObject {
2506
2616
  * transformation from the source value to the target value before
2507
2617
  * applying it; for instance, the following binding:
2508
2618
  *
2509
- *
2510
2619
  * ```c
2511
2620
  * g_object_bind_property_full (adjustment1, "value",
2512
2621
  * adjustment2, "value",
@@ -2516,7 +2625,6 @@ export namespace GObject {
2516
2625
  * NULL, NULL);
2517
2626
  * ```
2518
2627
  *
2519
- *
2520
2628
  * will keep the "value" property of the two adjustments in sync; the
2521
2629
  * `celsius_to_fahrenheit` function will be called whenever the "value"
2522
2630
  * property of `adjustment1` changes and will transform the current value
@@ -2529,31 +2637,27 @@ export namespace GObject {
2529
2637
  *
2530
2638
  * Note that #GBinding does not resolve cycles by itself; a cycle like
2531
2639
  *
2532
- *
2533
2640
  * ```
2534
2641
  * object1:propertyA -> object2:propertyB
2535
2642
  * object2:propertyB -> object3:propertyC
2536
2643
  * object3:propertyC -> object1:propertyA
2537
2644
  * ```
2538
2645
  *
2539
- *
2540
2646
  * might lead to an infinite loop. The loop, in this particular case,
2541
- * can be avoided if the objects emit the #GObject::notify signal only
2647
+ * can be avoided if the objects emit the `GObject::notify` signal only
2542
2648
  * if the value has effectively been changed. A binding is implemented
2543
- * using the #GObject::notify signal, so it is susceptible to all the
2544
- * various ways of blocking a signal emission, like g_signal_stop_emission()
2545
- * or g_signal_handler_block().
2649
+ * using the `GObject::notify` signal, so it is susceptible to all the
2650
+ * various ways of blocking a signal emission, like [func`GObject`.signal_stop_emission]
2651
+ * or [func`GObject`.signal_handler_block].
2546
2652
  *
2547
2653
  * A binding will be severed, and the resources it allocates freed, whenever
2548
- * either one of the #GObject instances it refers to are finalized, or when
2654
+ * either one of the `GObject` instances it refers to are finalized, or when
2549
2655
  * the #GBinding instance loses its last reference.
2550
2656
  *
2551
2657
  * Bindings for languages with garbage collection can use
2552
- * g_binding_unbind() to explicitly release a binding between the source
2658
+ * [method`GObject`.Binding.unbind] to explicitly release a binding between the source
2553
2659
  * and target properties, instead of relying on the last reference on the
2554
2660
  * binding, source, and target instances to drop.
2555
- *
2556
- * #GBinding is available since GObject 2.26
2557
2661
  */
2558
2662
  class Binding extends Object {
2559
2663
  static $gtype: GType<Binding>;
@@ -2699,13 +2803,13 @@ export namespace GObject {
2699
2803
  }
2700
2804
 
2701
2805
  /**
2702
- * The #GBindingGroup can be used to bind multiple properties
2806
+ * `GBindingGroup` can be used to bind multiple properties
2703
2807
  * from an object collectively.
2704
2808
  *
2705
2809
  * Use the various methods to bind properties from a single source
2706
2810
  * object to multiple destination objects. Properties can be bound
2707
2811
  * bidirectionally and are connected when the source object is set
2708
- * with g_binding_group_set_source().
2812
+ * with [method`GObject`.BindingGroup.set_source].
2709
2813
  */
2710
2814
  class BindingGroup extends Object {
2711
2815
  static $gtype: GType<BindingGroup>;
@@ -2842,16 +2946,26 @@ export namespace GObject {
2842
2946
  /**
2843
2947
  * The base object type.
2844
2948
  *
2845
- * All the fields in the `GObject` structure are private to the implementation
2846
- * and should never be accessed directly.
2847
- *
2848
- * Since GLib 2.72, all #GObjects are guaranteed to be aligned to at least the
2849
- * alignment of the largest basic GLib type (typically this is #guint64 or
2850
- * #gdouble). If you need larger alignment for an element in a #GObject, you
2851
- * should allocate it on the heap (aligned), or arrange for your #GObject to be
2852
- * appropriately padded. This guarantee applies to the #GObject (or derived)
2853
- * struct, the #GObjectClass (or derived) struct, and any private data allocated
2854
- * by G_ADD_PRIVATE().
2949
+ * `GObject` is the fundamental type providing the common attributes and
2950
+ * methods for all object types in GTK, Pango and other libraries
2951
+ * based on GObject. The `GObject` class provides methods for object
2952
+ * construction and destruction, property access methods, and signal
2953
+ * support. Signals are described in detail [here][gobject-Signals].
2954
+ *
2955
+ * For a tutorial on implementing a new `GObject` class, see [How to define and
2956
+ * implement a new GObject](tutorial.html#how-to-define-and-implement-a-new-gobject).
2957
+ * For a list of naming conventions for GObjects and their methods, see the
2958
+ * [GType conventions](concepts.html#conventions). For the high-level concepts
2959
+ * behind GObject, read
2960
+ * [Instantiatable classed types: Objects](concepts.html#instantiatable-classed-types-objects).
2961
+ *
2962
+ * Since GLib 2.72, all `GObject`s are guaranteed to be aligned to at least the
2963
+ * alignment of the largest basic GLib type (typically this is `guint64` or
2964
+ * `gdouble`). If you need larger alignment for an element in a `GObject`, you
2965
+ * should allocate it on the heap (aligned), or arrange for your `GObject` to be
2966
+ * appropriately padded. This guarantee applies to the `GObject` (or derived)
2967
+ * struct, the `GObjectClass` (or derived) struct, and any private data allocated
2968
+ * by `G_ADD_PRIVATE()`.
2855
2969
  */
2856
2970
  class Object {
2857
2971
  static $gtype: GType<Object>;
@@ -3139,7 +3253,7 @@ export namespace GObject {
3139
3253
  * static void
3140
3254
  * my_object_class_init (MyObjectClass *klass)
3141
3255
  * {
3142
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
3256
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
3143
3257
  * 0, 100,
3144
3258
  * 50,
3145
3259
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -3300,17 +3414,16 @@ export namespace GObject {
3300
3414
  }
3301
3415
 
3302
3416
  /**
3303
- * #GParamSpec is an object structure that encapsulates the metadata
3304
- * required to specify parameters, such as e.g. #GObject properties.
3417
+ * `GParamSpec` encapsulates the metadata required to specify parameters, such as `GObject` properties.
3305
3418
  *
3306
- * ## Parameter names # {#canonical-parameter-names}
3419
+ * ## Parameter names
3307
3420
  *
3308
3421
  * A property name consists of one or more segments consisting of ASCII letters
3309
3422
  * and digits, separated by either the `-` or `_` character. The first
3310
3423
  * character of a property name must be a letter. These are the same rules as
3311
- * for signal naming (see g_signal_new()).
3424
+ * for signal naming (see [func`GObject`.signal_new]).
3312
3425
  *
3313
- * When creating and looking up a #GParamSpec, either separator can be
3426
+ * When creating and looking up a `GParamSpec`, either separator can be
3314
3427
  * used, but they cannot be mixed. Using `-` is considerably more
3315
3428
  * efficient, and is the ‘canonical form’. Using `_` is discouraged.
3316
3429
  */
@@ -3580,9 +3693,10 @@ export namespace GObject {
3580
3693
  }
3581
3694
 
3582
3695
  /**
3583
- * #GSignalGroup manages to simplify the process of connecting
3584
- * many signals to a #GObject as a group. As such there is no API
3585
- * to disconnect a signal from the group.
3696
+ * `GSignalGroup` manages a collection of signals on a `GObject`.
3697
+ *
3698
+ * `GSignalGroup` simplifies the process of connecting many signals to a `GObject`
3699
+ * as a group. As such there is no API to disconnect a signal from the group.
3586
3700
  *
3587
3701
  * In particular, this allows you to:
3588
3702
  *
@@ -3591,12 +3705,12 @@ export namespace GObject {
3591
3705
  * - Block and unblock signals as a group
3592
3706
  * - Ensuring that blocked state transfers across target instances.
3593
3707
  *
3594
- * One place you might want to use such a structure is with #GtkTextView and
3595
- * #GtkTextBuffer. Often times, you'll need to connect to many signals on
3596
- * #GtkTextBuffer from a #GtkTextView subclass. This allows you to create a
3708
+ * One place you might want to use such a structure is with `GtkTextView` and
3709
+ * `GtkTextBuffer`. Often times, you'll need to connect to many signals on
3710
+ * `GtkTextBuffer` from a `GtkTextView` subclass. This allows you to create a
3597
3711
  * signal group during instance construction, simply bind the
3598
- * #GtkTextView:buffer property to #GSignalGroup:target and connect
3599
- * all the signals you need. When the #GtkTextView:buffer property changes
3712
+ * `GtkTextView:buffer` property to `GSignalGroup:target` and connect
3713
+ * all the signals you need. When the `GtkTextView:buffer` property changes
3600
3714
  * all of the signals will be transitioned correctly.
3601
3715
  */
3602
3716
  class SignalGroup extends Object {
@@ -3711,36 +3825,37 @@ export namespace GObject {
3711
3825
  }
3712
3826
 
3713
3827
  /**
3714
- * #GTypeModule provides a simple implementation of the #GTypePlugin
3828
+ * `GTypeModule` provides a simple implementation of the `GTypePlugin`
3715
3829
  * interface.
3716
3830
  *
3717
- * The model of #GTypeModule is a dynamically loaded module which
3831
+ * The model of `GTypeModule` is a dynamically loaded module which
3718
3832
  * implements some number of types and interface implementations.
3719
3833
  *
3720
3834
  * When the module is loaded, it registers its types and interfaces
3721
- * using g_type_module_register_type() and g_type_module_add_interface().
3835
+ * using [method`GObject`.TypeModule.register_type] and
3836
+ * [method`GObject`.TypeModule.add_interface].
3722
3837
  * As long as any instances of these types and interface implementations
3723
3838
  * are in use, the module is kept loaded. When the types and interfaces
3724
3839
  * are gone, the module may be unloaded. If the types and interfaces
3725
3840
  * become used again, the module will be reloaded. Note that the last
3726
3841
  * reference cannot be released from within the module code, since that
3727
- * would lead to the caller's code being unloaded before g_object_unref()
3842
+ * would lead to the caller's code being unloaded before `g_object_unref()`
3728
3843
  * returns to it.
3729
3844
  *
3730
3845
  * Keeping track of whether the module should be loaded or not is done by
3731
3846
  * using a use count - it starts at zero, and whenever it is greater than
3732
3847
  * zero, the module is loaded. The use count is maintained internally by
3733
3848
  * the type system, but also can be explicitly controlled by
3734
- * g_type_module_use() and g_type_module_unuse(). Typically, when loading
3735
- * a module for the first type, g_type_module_use() will be used to load
3736
- * it so that it can initialize its types. At some later point, when the
3737
- * module no longer needs to be loaded except for the type
3738
- * implementations it contains, g_type_module_unuse() is called.
3849
+ * [method`GObject`.TypeModule.use] and [method`GObject`.TypeModule.unuse].
3850
+ * Typically, when loading a module for the first type, `g_type_module_use()`
3851
+ * will be used to load it so that it can initialize its types. At some later
3852
+ * point, when the module no longer needs to be loaded except for the type
3853
+ * implementations it contains, `g_type_module_unuse()` is called.
3739
3854
  *
3740
- * #GTypeModule does not actually provide any implementation of module
3855
+ * `GTypeModule` does not actually provide any implementation of module
3741
3856
  * loading and unloading. To create a particular module type you must
3742
- * derive from #GTypeModule and implement the load and unload functions
3743
- * in #GTypeModuleClass.
3857
+ * derive from `GTypeModule` and implement the load and unload functions
3858
+ * in `GTypeModuleClass`.
3744
3859
  */
3745
3860
  abstract class TypeModule extends Object implements TypePlugin {
3746
3861
  static $gtype: GType<TypeModule>;
@@ -4049,7 +4164,7 @@ export namespace GObject {
4049
4164
  * static void
4050
4165
  * my_object_class_init (MyObjectClass *klass)
4051
4166
  * {
4052
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
4167
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
4053
4168
  * 0, 100,
4054
4169
  * 50,
4055
4170
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -4266,15 +4381,16 @@ export namespace GObject {
4266
4381
  marshal_data?: any | null,
4267
4382
  ): void;
4268
4383
  /**
4269
- * A marshaller for a #GCClosure with a callback of type
4270
- * `gboolean (*callback) (gpointer instance, gint arg1, gpointer user_data)` where the #gint parameter
4271
- * denotes a flags type.
4272
- * @param closure the #GClosure to which the marshaller belongs
4273
- * @param return_value a #GValue which can store the returned #gboolean
4274
- * @param n_param_values 2
4275
- * @param param_values a #GValue array holding instance and arg1
4276
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4277
- * @param marshal_data additional data specified when registering the marshaller
4384
+ * A #GClosureMarshal function for use with signals with handlers that
4385
+ * take a flags type as an argument and return a boolean. If you have
4386
+ * such a signal, you will probably also need to use an accumulator,
4387
+ * such as g_signal_accumulator_true_handled().
4388
+ * @param closure A #GClosure.
4389
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4390
+ * @param n_param_values The length of the @param_values array.
4391
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4392
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4393
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4278
4394
  */
4279
4395
  static marshal_BOOLEAN__FLAGS(
4280
4396
  closure: Closure,
@@ -4285,14 +4401,15 @@ export namespace GObject {
4285
4401
  marshal_data?: any | null,
4286
4402
  ): void;
4287
4403
  /**
4288
- * A marshaller for a #GCClosure with a callback of type
4289
- * `gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data)`.
4290
- * @param closure the #GClosure to which the marshaller belongs
4291
- * @param return_value a #GValue, which can store the returned string
4292
- * @param n_param_values 3
4293
- * @param param_values a #GValue array holding instance, arg1 and arg2
4294
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4295
- * @param marshal_data additional data specified when registering the marshaller
4404
+ * A #GClosureMarshal function for use with signals with handlers that
4405
+ * take a #GObject and a pointer and produce a string. It is highly
4406
+ * unlikely that your signal handler fits this description.
4407
+ * @param closure A #GClosure.
4408
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4409
+ * @param n_param_values The length of the @param_values array.
4410
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4411
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4412
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4296
4413
  */
4297
4414
  static marshal_STRING__OBJECT_POINTER(
4298
4415
  closure: Closure,
@@ -4303,14 +4420,14 @@ export namespace GObject {
4303
4420
  marshal_data?: any | null,
4304
4421
  ): void;
4305
4422
  /**
4306
- * A marshaller for a #GCClosure with a callback of type
4307
- * `void (*callback) (gpointer instance, gboolean arg1, gpointer user_data)`.
4308
- * @param closure the #GClosure to which the marshaller belongs
4309
- * @param return_value ignored
4310
- * @param n_param_values 2
4311
- * @param param_values a #GValue array holding the instance and the #gboolean parameter
4312
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4313
- * @param marshal_data additional data specified when registering the marshaller
4423
+ * A #GClosureMarshal function for use with signals with a single
4424
+ * boolean argument.
4425
+ * @param closure A #GClosure.
4426
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4427
+ * @param n_param_values The length of the @param_values array.
4428
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4429
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4430
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4314
4431
  */
4315
4432
  static marshal_VOID__BOOLEAN(
4316
4433
  closure: Closure,
@@ -4321,14 +4438,14 @@ export namespace GObject {
4321
4438
  marshal_data?: any | null,
4322
4439
  ): void;
4323
4440
  /**
4324
- * A marshaller for a #GCClosure with a callback of type
4325
- * `void (*callback) (gpointer instance, GBoxed *arg1, gpointer user_data)`.
4326
- * @param closure the #GClosure to which the marshaller belongs
4327
- * @param return_value ignored
4328
- * @param n_param_values 2
4329
- * @param param_values a #GValue array holding the instance and the #GBoxed* parameter
4330
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4331
- * @param marshal_data additional data specified when registering the marshaller
4441
+ * A #GClosureMarshal function for use with signals with a single
4442
+ * argument which is any boxed pointer type.
4443
+ * @param closure A #GClosure.
4444
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4445
+ * @param n_param_values The length of the @param_values array.
4446
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4447
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4448
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4332
4449
  */
4333
4450
  static marshal_VOID__BOXED(
4334
4451
  closure: Closure,
@@ -4339,14 +4456,14 @@ export namespace GObject {
4339
4456
  marshal_data?: any | null,
4340
4457
  ): void;
4341
4458
  /**
4342
- * A marshaller for a #GCClosure with a callback of type
4343
- * `void (*callback) (gpointer instance, gchar arg1, gpointer user_data)`.
4344
- * @param closure the #GClosure to which the marshaller belongs
4345
- * @param return_value ignored
4346
- * @param n_param_values 2
4347
- * @param param_values a #GValue array holding the instance and the #gchar parameter
4348
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4349
- * @param marshal_data additional data specified when registering the marshaller
4459
+ * A #GClosureMarshal function for use with signals with a single
4460
+ * character argument.
4461
+ * @param closure A #GClosure.
4462
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4463
+ * @param n_param_values The length of the @param_values array.
4464
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4465
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4466
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4350
4467
  */
4351
4468
  static marshal_VOID__CHAR(
4352
4469
  closure: Closure,
@@ -4357,14 +4474,14 @@ export namespace GObject {
4357
4474
  marshal_data?: any | null,
4358
4475
  ): void;
4359
4476
  /**
4360
- * A marshaller for a #GCClosure with a callback of type
4361
- * `void (*callback) (gpointer instance, gdouble arg1, gpointer user_data)`.
4362
- * @param closure the #GClosure to which the marshaller belongs
4363
- * @param return_value ignored
4364
- * @param n_param_values 2
4365
- * @param param_values a #GValue array holding the instance and the #gdouble parameter
4366
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4367
- * @param marshal_data additional data specified when registering the marshaller
4477
+ * A #GClosureMarshal function for use with signals with one
4478
+ * double-precision floating point argument.
4479
+ * @param closure A #GClosure.
4480
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4481
+ * @param n_param_values The length of the @param_values array.
4482
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4483
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4484
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4368
4485
  */
4369
4486
  static marshal_VOID__DOUBLE(
4370
4487
  closure: Closure,
@@ -4375,14 +4492,14 @@ export namespace GObject {
4375
4492
  marshal_data?: any | null,
4376
4493
  ): void;
4377
4494
  /**
4378
- * A marshaller for a #GCClosure with a callback of type
4379
- * `void (*callback) (gpointer instance, gint arg1, gpointer user_data)` where the #gint parameter denotes an enumeration type..
4380
- * @param closure the #GClosure to which the marshaller belongs
4381
- * @param return_value ignored
4382
- * @param n_param_values 2
4383
- * @param param_values a #GValue array holding the instance and the enumeration parameter
4384
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4385
- * @param marshal_data additional data specified when registering the marshaller
4495
+ * A #GClosureMarshal function for use with signals with a single
4496
+ * argument with an enumerated type.
4497
+ * @param closure A #GClosure.
4498
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4499
+ * @param n_param_values The length of the @param_values array.
4500
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4501
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4502
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4386
4503
  */
4387
4504
  static marshal_VOID__ENUM(
4388
4505
  closure: Closure,
@@ -4393,14 +4510,14 @@ export namespace GObject {
4393
4510
  marshal_data?: any | null,
4394
4511
  ): void;
4395
4512
  /**
4396
- * A marshaller for a #GCClosure with a callback of type
4397
- * `void (*callback) (gpointer instance, gint arg1, gpointer user_data)` where the #gint parameter denotes a flags type.
4398
- * @param closure the #GClosure to which the marshaller belongs
4399
- * @param return_value ignored
4400
- * @param n_param_values 2
4401
- * @param param_values a #GValue array holding the instance and the flags parameter
4402
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4403
- * @param marshal_data additional data specified when registering the marshaller
4513
+ * A #GClosureMarshal function for use with signals with a single
4514
+ * argument with a flags types.
4515
+ * @param closure A #GClosure.
4516
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4517
+ * @param n_param_values The length of the @param_values array.
4518
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4519
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4520
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4404
4521
  */
4405
4522
  static marshal_VOID__FLAGS(
4406
4523
  closure: Closure,
@@ -4411,14 +4528,14 @@ export namespace GObject {
4411
4528
  marshal_data?: any | null,
4412
4529
  ): void;
4413
4530
  /**
4414
- * A marshaller for a #GCClosure with a callback of type
4415
- * `void (*callback) (gpointer instance, gfloat arg1, gpointer user_data)`.
4416
- * @param closure the #GClosure to which the marshaller belongs
4417
- * @param return_value ignored
4418
- * @param n_param_values 2
4419
- * @param param_values a #GValue array holding the instance and the #gfloat parameter
4420
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4421
- * @param marshal_data additional data specified when registering the marshaller
4531
+ * A #GClosureMarshal function for use with signals with one
4532
+ * single-precision floating point argument.
4533
+ * @param closure A #GClosure.
4534
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4535
+ * @param n_param_values The length of the @param_values array.
4536
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4537
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4538
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4422
4539
  */
4423
4540
  static marshal_VOID__FLOAT(
4424
4541
  closure: Closure,
@@ -4429,14 +4546,14 @@ export namespace GObject {
4429
4546
  marshal_data?: any | null,
4430
4547
  ): void;
4431
4548
  /**
4432
- * A marshaller for a #GCClosure with a callback of type
4433
- * `void (*callback) (gpointer instance, gint arg1, gpointer user_data)`.
4434
- * @param closure the #GClosure to which the marshaller belongs
4435
- * @param return_value ignored
4436
- * @param n_param_values 2
4437
- * @param param_values a #GValue array holding the instance and the #gint parameter
4438
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4439
- * @param marshal_data additional data specified when registering the marshaller
4549
+ * A #GClosureMarshal function for use with signals with a single
4550
+ * integer argument.
4551
+ * @param closure A #GClosure.
4552
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4553
+ * @param n_param_values The length of the @param_values array.
4554
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4555
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4556
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4440
4557
  */
4441
4558
  static marshal_VOID__INT(
4442
4559
  closure: Closure,
@@ -4447,14 +4564,14 @@ export namespace GObject {
4447
4564
  marshal_data?: any | null,
4448
4565
  ): void;
4449
4566
  /**
4450
- * A marshaller for a #GCClosure with a callback of type
4451
- * `void (*callback) (gpointer instance, glong arg1, gpointer user_data)`.
4452
- * @param closure the #GClosure to which the marshaller belongs
4453
- * @param return_value ignored
4454
- * @param n_param_values 2
4455
- * @param param_values a #GValue array holding the instance and the #glong parameter
4456
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4457
- * @param marshal_data additional data specified when registering the marshaller
4567
+ * A #GClosureMarshal function for use with signals with with a single
4568
+ * long integer argument.
4569
+ * @param closure A #GClosure.
4570
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4571
+ * @param n_param_values The length of the @param_values array.
4572
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4573
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4574
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4458
4575
  */
4459
4576
  static marshal_VOID__LONG(
4460
4577
  closure: Closure,
@@ -4465,14 +4582,14 @@ export namespace GObject {
4465
4582
  marshal_data?: any | null,
4466
4583
  ): void;
4467
4584
  /**
4468
- * A marshaller for a #GCClosure with a callback of type
4469
- * `void (*callback) (gpointer instance, GObject *arg1, gpointer user_data)`.
4470
- * @param closure the #GClosure to which the marshaller belongs
4471
- * @param return_value ignored
4472
- * @param n_param_values 2
4473
- * @param param_values a #GValue array holding the instance and the #GObject* parameter
4474
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4475
- * @param marshal_data additional data specified when registering the marshaller
4585
+ * A #GClosureMarshal function for use with signals with a single
4586
+ * #GObject argument.
4587
+ * @param closure A #GClosure.
4588
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4589
+ * @param n_param_values The length of the @param_values array.
4590
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4591
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4592
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4476
4593
  */
4477
4594
  static marshal_VOID__OBJECT(
4478
4595
  closure: Closure,
@@ -4483,14 +4600,14 @@ export namespace GObject {
4483
4600
  marshal_data?: any | null,
4484
4601
  ): void;
4485
4602
  /**
4486
- * A marshaller for a #GCClosure with a callback of type
4487
- * `void (*callback) (gpointer instance, GParamSpec *arg1, gpointer user_data)`.
4488
- * @param closure the #GClosure to which the marshaller belongs
4489
- * @param return_value ignored
4490
- * @param n_param_values 2
4491
- * @param param_values a #GValue array holding the instance and the #GParamSpec* parameter
4492
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4493
- * @param marshal_data additional data specified when registering the marshaller
4603
+ * A #GClosureMarshal function for use with signals with a single
4604
+ * argument of type #GParamSpec.
4605
+ * @param closure A #GClosure.
4606
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4607
+ * @param n_param_values The length of the @param_values array.
4608
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4609
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4610
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4494
4611
  */
4495
4612
  static marshal_VOID__PARAM(
4496
4613
  closure: Closure,
@@ -4501,14 +4618,18 @@ export namespace GObject {
4501
4618
  marshal_data?: any | null,
4502
4619
  ): void;
4503
4620
  /**
4504
- * A marshaller for a #GCClosure with a callback of type
4505
- * `void (*callback) (gpointer instance, gpointer arg1, gpointer user_data)`.
4506
- * @param closure the #GClosure to which the marshaller belongs
4507
- * @param return_value ignored
4508
- * @param n_param_values 2
4509
- * @param param_values a #GValue array holding the instance and the #gpointer parameter
4510
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4511
- * @param marshal_data additional data specified when registering the marshaller
4621
+ * A #GClosureMarshal function for use with signals with a single raw
4622
+ * pointer argument type.
4623
+ *
4624
+ * If it is possible, it is better to use one of the more specific
4625
+ * functions such as g_cclosure_marshal_VOID__OBJECT() or
4626
+ * g_cclosure_marshal_VOID__OBJECT().
4627
+ * @param closure A #GClosure.
4628
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4629
+ * @param n_param_values The length of the @param_values array.
4630
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4631
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4632
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4512
4633
  */
4513
4634
  static marshal_VOID__POINTER(
4514
4635
  closure: Closure,
@@ -4519,14 +4640,14 @@ export namespace GObject {
4519
4640
  marshal_data?: any | null,
4520
4641
  ): void;
4521
4642
  /**
4522
- * A marshaller for a #GCClosure with a callback of type
4523
- * `void (*callback) (gpointer instance, const gchar *arg1, gpointer user_data)`.
4524
- * @param closure the #GClosure to which the marshaller belongs
4525
- * @param return_value ignored
4526
- * @param n_param_values 2
4527
- * @param param_values a #GValue array holding the instance and the #gchar* parameter
4528
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4529
- * @param marshal_data additional data specified when registering the marshaller
4643
+ * A #GClosureMarshal function for use with signals with a single string
4644
+ * argument.
4645
+ * @param closure A #GClosure.
4646
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4647
+ * @param n_param_values The length of the @param_values array.
4648
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4649
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4650
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4530
4651
  */
4531
4652
  static marshal_VOID__STRING(
4532
4653
  closure: Closure,
@@ -4537,14 +4658,14 @@ export namespace GObject {
4537
4658
  marshal_data?: any | null,
4538
4659
  ): void;
4539
4660
  /**
4540
- * A marshaller for a #GCClosure with a callback of type
4541
- * `void (*callback) (gpointer instance, guchar arg1, gpointer user_data)`.
4542
- * @param closure the #GClosure to which the marshaller belongs
4543
- * @param return_value ignored
4544
- * @param n_param_values 2
4545
- * @param param_values a #GValue array holding the instance and the #guchar parameter
4546
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4547
- * @param marshal_data additional data specified when registering the marshaller
4661
+ * A #GClosureMarshal function for use with signals with a single
4662
+ * unsigned character argument.
4663
+ * @param closure A #GClosure.
4664
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4665
+ * @param n_param_values The length of the @param_values array.
4666
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4667
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4668
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4548
4669
  */
4549
4670
  static marshal_VOID__UCHAR(
4550
4671
  closure: Closure,
@@ -4555,14 +4676,14 @@ export namespace GObject {
4555
4676
  marshal_data?: any | null,
4556
4677
  ): void;
4557
4678
  /**
4558
- * A marshaller for a #GCClosure with a callback of type
4559
- * `void (*callback) (gpointer instance, guint arg1, gpointer user_data)`.
4560
- * @param closure the #GClosure to which the marshaller belongs
4561
- * @param return_value ignored
4562
- * @param n_param_values 2
4563
- * @param param_values a #GValue array holding the instance and the #guint parameter
4564
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4565
- * @param marshal_data additional data specified when registering the marshaller
4679
+ * A #GClosureMarshal function for use with signals with with a single
4680
+ * unsigned integer argument.
4681
+ * @param closure A #GClosure.
4682
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4683
+ * @param n_param_values The length of the @param_values array.
4684
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4685
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4686
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4566
4687
  */
4567
4688
  static marshal_VOID__UINT(
4568
4689
  closure: Closure,
@@ -4573,14 +4694,14 @@ export namespace GObject {
4573
4694
  marshal_data?: any | null,
4574
4695
  ): void;
4575
4696
  /**
4576
- * A marshaller for a #GCClosure with a callback of type
4577
- * `void (*callback) (gpointer instance, guint arg1, gpointer arg2, gpointer user_data)`.
4578
- * @param closure the #GClosure to which the marshaller belongs
4579
- * @param return_value ignored
4580
- * @param n_param_values 3
4581
- * @param param_values a #GValue array holding instance, arg1 and arg2
4582
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4583
- * @param marshal_data additional data specified when registering the marshaller
4697
+ * A #GClosureMarshal function for use with signals with an unsigned int
4698
+ * and a pointer as arguments.
4699
+ * @param closure A #GClosure.
4700
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4701
+ * @param n_param_values The length of the @param_values array.
4702
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4703
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4704
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4584
4705
  */
4585
4706
  static marshal_VOID__UINT_POINTER(
4586
4707
  closure: Closure,
@@ -4591,14 +4712,14 @@ export namespace GObject {
4591
4712
  marshal_data?: any | null,
4592
4713
  ): void;
4593
4714
  /**
4594
- * A marshaller for a #GCClosure with a callback of type
4595
- * `void (*callback) (gpointer instance, gulong arg1, gpointer user_data)`.
4596
- * @param closure the #GClosure to which the marshaller belongs
4597
- * @param return_value ignored
4598
- * @param n_param_values 2
4599
- * @param param_values a #GValue array holding the instance and the #gulong parameter
4600
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4601
- * @param marshal_data additional data specified when registering the marshaller
4715
+ * A #GClosureMarshal function for use with signals with a single
4716
+ * unsigned long integer argument.
4717
+ * @param closure A #GClosure.
4718
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4719
+ * @param n_param_values The length of the @param_values array.
4720
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4721
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4722
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4602
4723
  */
4603
4724
  static marshal_VOID__ULONG(
4604
4725
  closure: Closure,
@@ -4609,14 +4730,14 @@ export namespace GObject {
4609
4730
  marshal_data?: any | null,
4610
4731
  ): void;
4611
4732
  /**
4612
- * A marshaller for a #GCClosure with a callback of type
4613
- * `void (*callback) (gpointer instance, GVariant *arg1, gpointer user_data)`.
4614
- * @param closure the #GClosure to which the marshaller belongs
4615
- * @param return_value ignored
4616
- * @param n_param_values 2
4617
- * @param param_values a #GValue array holding the instance and the #GVariant* parameter
4618
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4619
- * @param marshal_data additional data specified when registering the marshaller
4733
+ * A #GClosureMarshal function for use with signals with a single
4734
+ * #GVariant argument.
4735
+ * @param closure A #GClosure.
4736
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4737
+ * @param n_param_values The length of the @param_values array.
4738
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4739
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4740
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4620
4741
  */
4621
4742
  static marshal_VOID__VARIANT(
4622
4743
  closure: Closure,
@@ -4627,14 +4748,13 @@ export namespace GObject {
4627
4748
  marshal_data?: any | null,
4628
4749
  ): void;
4629
4750
  /**
4630
- * A marshaller for a #GCClosure with a callback of type
4631
- * `void (*callback) (gpointer instance, gpointer user_data)`.
4632
- * @param closure the #GClosure to which the marshaller belongs
4633
- * @param return_value ignored
4634
- * @param n_param_values 1
4635
- * @param param_values a #GValue array holding only the instance
4636
- * @param invocation_hint the invocation hint given as the last argument to g_closure_invoke()
4637
- * @param marshal_data additional data specified when registering the marshaller
4751
+ * A #GClosureMarshal function for use with signals with no arguments.
4752
+ * @param closure A #GClosure.
4753
+ * @param return_value A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.
4754
+ * @param n_param_values The length of the @param_values array.
4755
+ * @param param_values An array of #GValues holding the arguments on which to invoke the callback of closure.
4756
+ * @param invocation_hint The invocation hint given as the last argument to g_closure_invoke().
4757
+ * @param marshal_data Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()
4638
4758
  */
4639
4759
  static marshal_VOID__VOID(
4640
4760
  closure: Closure,
@@ -4820,6 +4940,10 @@ export namespace GObject {
4820
4940
 
4821
4941
  // Own methods of GObject.ParamSpecPool
4822
4942
 
4943
+ /**
4944
+ * Frees the resources allocated by a #GParamSpecPool.
4945
+ */
4946
+ free(): void;
4823
4947
  /**
4824
4948
  * Inserts a #GParamSpec in the pool.
4825
4949
  * @param pspec the #GParamSpec to insert
@@ -5619,6 +5743,19 @@ export namespace GObject {
5619
5743
  * @param variant a #GVariant, or %NULL
5620
5744
  */
5621
5745
  set_variant(variant?: GLib.Variant | null): void;
5746
+ /**
5747
+ * Steal ownership on contents of a %G_TYPE_STRING #GValue.
5748
+ * As a result of this operation the value's contents will be reset to %NULL.
5749
+ *
5750
+ * The purpose of this call is to provide a way to avoid an extra copy
5751
+ * when some object have been serialized into string through #GValue API.
5752
+ *
5753
+ * NOTE: for safety and compatibility purposes, if #GValue contains
5754
+ * static string, or an interned one, this function will return a copy
5755
+ * of the string. Otherwise the transfer notation would be ambiguous.
5756
+ * @returns string content of @value; Should be freed with g_free() when no longer needed.
5757
+ */
5758
+ steal_string(): string | null;
5622
5759
  /**
5623
5760
  * Sets the contents of a %G_TYPE_BOXED derived #GValue to `v_boxed`
5624
5761
  * and takes over the ownership of the caller’s reference to `v_boxed;`
@@ -5669,7 +5806,29 @@ export namespace GObject {
5669
5806
  }
5670
5807
 
5671
5808
  /**
5672
- * A #GValueArray contains an array of #GValue elements.
5809
+ * A `GValueArray` is a container structure to hold an array of generic values.
5810
+ *
5811
+ * The prime purpose of a `GValueArray` is for it to be used as an
5812
+ * object property that holds an array of values. A `GValueArray` wraps
5813
+ * an array of `GValue` elements in order for it to be used as a boxed
5814
+ * type through `G_TYPE_VALUE_ARRAY`.
5815
+ *
5816
+ * `GValueArray` is deprecated in favour of `GArray` since GLib 2.32.
5817
+ * It is possible to create a `GArray` that behaves like a `GValueArray`
5818
+ * by using the size of `GValue` as the element size, and by setting
5819
+ * [method`GObject`.Value.unset] as the clear function using
5820
+ * [func`GLib`.Array.set_clear_func], for instance, the following code:
5821
+ *
5822
+ * ```c
5823
+ * GValueArray *array = g_value_array_new (10);
5824
+ * ```
5825
+ *
5826
+ * can be replaced by:
5827
+ *
5828
+ * ```c
5829
+ * GArray *array = g_array_sized_new (FALSE, TRUE, sizeof (GValue), 10);
5830
+ * g_array_set_clear_func (array, (GDestroyNotify) g_value_unset);
5831
+ * ```
5673
5832
  */
5674
5833
  class ValueArray {
5675
5834
  static $gtype: GType<ValueArray>;
@@ -5783,11 +5942,31 @@ export namespace GObject {
5783
5942
  _init(...args: any[]): void;
5784
5943
  }
5785
5944
 
5945
+ /**
5946
+ * A union holding one collected value.
5947
+ */
5786
5948
  class TypeCValue {
5787
5949
  static $gtype: GType<TypeCValue>;
5788
5950
 
5951
+ // Own fields of GObject.TypeCValue
5952
+
5953
+ v_int: number;
5954
+ v_long: number;
5955
+ v_int64: number;
5956
+ v_double: number;
5957
+ v_pointer: any;
5958
+
5789
5959
  // Constructors of GObject.TypeCValue
5790
5960
 
5961
+ constructor(
5962
+ properties?: Partial<{
5963
+ v_int: number;
5964
+ v_long: number;
5965
+ v_int64: number;
5966
+ v_double: number;
5967
+ v_pointer: any;
5968
+ }>,
5969
+ );
5791
5970
  _init(...args: any[]): void;
5792
5971
  }
5793
5972