@girs/cinnamondesktop-3.0 3.0.0-4.0.0-beta.21 → 3.0.0-4.0.0-beta.24

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/cinnamondesktop-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for CinnamonDesktop-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for CinnamonDesktop-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
9
9
 
10
10
 
11
11
  ## Install
@@ -7,11 +7,13 @@
7
7
  * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
8
  */
9
9
 
10
+ import '@girs/gjs';
11
+
10
12
  // Module dependencies
11
13
  import type Gtk from '@girs/gtk-3.0';
12
14
  import type xlib from '@girs/xlib-2.0';
13
15
  import type Gdk from '@girs/gdk-3.0';
14
- import type cairo from '@girs/cairo-1.0';
16
+ import type cairo from 'cairo';
15
17
  import type GObject from '@girs/gobject-2.0';
16
18
  import type GLib from '@girs/glib-2.0';
17
19
  import type Pango from '@girs/pango-1.0';
@@ -285,14 +287,10 @@ export namespace CinnamonDesktop {
285
287
  REFLECT_Y,
286
288
  }
287
289
  namespace BG {
288
- // Signal callback interfaces
289
-
290
- interface Changed {
291
- (): void;
292
- }
293
-
294
- interface Transitioned {
295
- (): void;
290
+ // Signal signatures
291
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
292
+ changed: () => void;
293
+ transitioned: () => void;
296
294
  }
297
295
 
298
296
  // Constructor properties interface
@@ -303,6 +301,15 @@ export namespace CinnamonDesktop {
303
301
  class BG extends GObject.Object {
304
302
  static $gtype: GObject.GType<BG>;
305
303
 
304
+ /**
305
+ * Compile-time signal type information.
306
+ *
307
+ * This instance property is generated only for TypeScript type checking.
308
+ * It is not defined at runtime and should not be accessed in JS code.
309
+ * @internal
310
+ */
311
+ $signals: BG.SignalSignatures;
312
+
306
313
  // Constructors
307
314
 
308
315
  constructor(properties?: Partial<BG.ConstructorProps>, ...args: any[]);
@@ -313,15 +320,21 @@ export namespace CinnamonDesktop {
313
320
 
314
321
  // Signals
315
322
 
316
- connect(id: string, callback: (...args: any[]) => any): number;
317
- connect_after(id: string, callback: (...args: any[]) => any): number;
318
- emit(id: string, ...args: any[]): void;
319
- connect(signal: 'changed', callback: (_source: this) => void): number;
320
- connect_after(signal: 'changed', callback: (_source: this) => void): number;
321
- emit(signal: 'changed'): void;
322
- connect(signal: 'transitioned', callback: (_source: this) => void): number;
323
- connect_after(signal: 'transitioned', callback: (_source: this) => void): number;
324
- emit(signal: 'transitioned'): void;
323
+ connect<K extends keyof BG.SignalSignatures>(
324
+ signal: K,
325
+ callback: GObject.SignalCallback<this, BG.SignalSignatures[K]>,
326
+ ): number;
327
+ connect(signal: string, callback: (...args: any[]) => any): number;
328
+ connect_after<K extends keyof BG.SignalSignatures>(
329
+ signal: K,
330
+ callback: GObject.SignalCallback<this, BG.SignalSignatures[K]>,
331
+ ): number;
332
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
333
+ emit<K extends keyof BG.SignalSignatures>(
334
+ signal: K,
335
+ ...args: GObject.GjsParameters<BG.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
336
+ ): void;
337
+ emit(signal: string, ...args: any[]): void;
325
338
 
326
339
  // Static methods
327
340
 
@@ -418,10 +431,11 @@ export namespace CinnamonDesktop {
418
431
  }
419
432
 
420
433
  namespace BGCrossfade {
421
- // Signal callback interfaces
422
-
423
- interface Finished {
424
- (window: GObject.Object): void;
434
+ // Signal signatures
435
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
436
+ finished: (arg0: GObject.Object) => void;
437
+ 'notify::height': (pspec: GObject.ParamSpec) => void;
438
+ 'notify::width': (pspec: GObject.ParamSpec) => void;
425
439
  }
426
440
 
427
441
  // Constructor properties interface
@@ -448,6 +462,15 @@ export namespace CinnamonDesktop {
448
462
  */
449
463
  get width(): number;
450
464
 
465
+ /**
466
+ * Compile-time signal type information.
467
+ *
468
+ * This instance property is generated only for TypeScript type checking.
469
+ * It is not defined at runtime and should not be accessed in JS code.
470
+ * @internal
471
+ */
472
+ $signals: BGCrossfade.SignalSignatures;
473
+
451
474
  // Fields
452
475
 
453
476
  parent_object: GObject.Object;
@@ -462,12 +485,21 @@ export namespace CinnamonDesktop {
462
485
 
463
486
  // Signals
464
487
 
465
- connect(id: string, callback: (...args: any[]) => any): number;
466
- connect_after(id: string, callback: (...args: any[]) => any): number;
467
- emit(id: string, ...args: any[]): void;
468
- connect(signal: 'finished', callback: (_source: this, window: GObject.Object) => void): number;
469
- connect_after(signal: 'finished', callback: (_source: this, window: GObject.Object) => void): number;
470
- emit(signal: 'finished', window: GObject.Object): void;
488
+ connect<K extends keyof BGCrossfade.SignalSignatures>(
489
+ signal: K,
490
+ callback: GObject.SignalCallback<this, BGCrossfade.SignalSignatures[K]>,
491
+ ): number;
492
+ connect(signal: string, callback: (...args: any[]) => any): number;
493
+ connect_after<K extends keyof BGCrossfade.SignalSignatures>(
494
+ signal: K,
495
+ callback: GObject.SignalCallback<this, BGCrossfade.SignalSignatures[K]>,
496
+ ): number;
497
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
498
+ emit<K extends keyof BGCrossfade.SignalSignatures>(
499
+ signal: K,
500
+ ...args: GObject.GjsParameters<BGCrossfade.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
501
+ ): void;
502
+ emit(signal: string, ...args: any[]): void;
471
503
 
472
504
  // Virtual methods
473
505
 
@@ -516,6 +548,9 @@ export namespace CinnamonDesktop {
516
548
  }
517
549
 
518
550
  namespace DesktopThumbnailFactory {
551
+ // Signal signatures
552
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
553
+
519
554
  // Constructor properties interface
520
555
 
521
556
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -524,6 +559,15 @@ export namespace CinnamonDesktop {
524
559
  class DesktopThumbnailFactory extends GObject.Object {
525
560
  static $gtype: GObject.GType<DesktopThumbnailFactory>;
526
561
 
562
+ /**
563
+ * Compile-time signal type information.
564
+ *
565
+ * This instance property is generated only for TypeScript type checking.
566
+ * It is not defined at runtime and should not be accessed in JS code.
567
+ * @internal
568
+ */
569
+ $signals: DesktopThumbnailFactory.SignalSignatures;
570
+
527
571
  // Constructors
528
572
 
529
573
  constructor(properties?: Partial<DesktopThumbnailFactory.ConstructorProps>, ...args: any[]);
@@ -532,6 +576,26 @@ export namespace CinnamonDesktop {
532
576
 
533
577
  static ['new'](size: DesktopThumbnailSize): DesktopThumbnailFactory;
534
578
 
579
+ // Signals
580
+
581
+ connect<K extends keyof DesktopThumbnailFactory.SignalSignatures>(
582
+ signal: K,
583
+ callback: GObject.SignalCallback<this, DesktopThumbnailFactory.SignalSignatures[K]>,
584
+ ): number;
585
+ connect(signal: string, callback: (...args: any[]) => any): number;
586
+ connect_after<K extends keyof DesktopThumbnailFactory.SignalSignatures>(
587
+ signal: K,
588
+ callback: GObject.SignalCallback<this, DesktopThumbnailFactory.SignalSignatures[K]>,
589
+ ): number;
590
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
591
+ emit<K extends keyof DesktopThumbnailFactory.SignalSignatures>(
592
+ signal: K,
593
+ ...args: GObject.GjsParameters<DesktopThumbnailFactory.SignalSignatures[K]> extends [any, ...infer Q]
594
+ ? Q
595
+ : never
596
+ ): void;
597
+ emit(signal: string, ...args: any[]): void;
598
+
535
599
  // Methods
536
600
 
537
601
  /**
@@ -597,6 +661,9 @@ export namespace CinnamonDesktop {
597
661
  }
598
662
 
599
663
  namespace IdleMonitor {
664
+ // Signal signatures
665
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
666
+
600
667
  // Constructor properties interface
601
668
 
602
669
  interface ConstructorProps extends GObject.Object.ConstructorProps, Gio.Initable.ConstructorProps {}
@@ -605,6 +672,15 @@ export namespace CinnamonDesktop {
605
672
  class IdleMonitor extends GObject.Object implements Gio.Initable {
606
673
  static $gtype: GObject.GType<IdleMonitor>;
607
674
 
675
+ /**
676
+ * Compile-time signal type information.
677
+ *
678
+ * This instance property is generated only for TypeScript type checking.
679
+ * It is not defined at runtime and should not be accessed in JS code.
680
+ * @internal
681
+ */
682
+ $signals: IdleMonitor.SignalSignatures;
683
+
608
684
  // Constructors
609
685
 
610
686
  constructor(properties?: Partial<IdleMonitor.ConstructorProps>, ...args: any[]);
@@ -613,6 +689,24 @@ export namespace CinnamonDesktop {
613
689
 
614
690
  static ['new'](): IdleMonitor;
615
691
 
692
+ // Signals
693
+
694
+ connect<K extends keyof IdleMonitor.SignalSignatures>(
695
+ signal: K,
696
+ callback: GObject.SignalCallback<this, IdleMonitor.SignalSignatures[K]>,
697
+ ): number;
698
+ connect(signal: string, callback: (...args: any[]) => any): number;
699
+ connect_after<K extends keyof IdleMonitor.SignalSignatures>(
700
+ signal: K,
701
+ callback: GObject.SignalCallback<this, IdleMonitor.SignalSignatures[K]>,
702
+ ): number;
703
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
704
+ emit<K extends keyof IdleMonitor.SignalSignatures>(
705
+ signal: K,
706
+ ...args: GObject.GjsParameters<IdleMonitor.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
707
+ ): void;
708
+ emit(signal: string, ...args: any[]): void;
709
+
616
710
  // Methods
617
711
 
618
712
  add_idle_watch(interval_msec: number, callback?: IdleMonitorWatchFunc | null): number;
@@ -646,7 +740,7 @@ export namespace CinnamonDesktop {
646
740
  * If the object is not initialized, or initialization returns with an
647
741
  * error, then all operations on the object except g_object_ref() and
648
742
  * g_object_unref() are considered to be invalid, and have undefined
649
- * behaviour. See the [introduction][ginitable] for more details.
743
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
650
744
  *
651
745
  * Callers should not assume that a class which implements #GInitable can be
652
746
  * initialized multiple times, unless the class explicitly documents itself as
@@ -689,7 +783,7 @@ export namespace CinnamonDesktop {
689
783
  * If the object is not initialized, or initialization returns with an
690
784
  * error, then all operations on the object except g_object_ref() and
691
785
  * g_object_unref() are considered to be invalid, and have undefined
692
- * behaviour. See the [introduction][ginitable] for more details.
786
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
693
787
  *
694
788
  * Callers should not assume that a class which implements #GInitable can be
695
789
  * initialized multiple times, unless the class explicitly documents itself as
@@ -829,7 +923,21 @@ export namespace CinnamonDesktop {
829
923
  * @returns the data if found, or %NULL if no such data exists.
830
924
  */
831
925
  get_data(key: string): any | null;
832
- get_property(property_name: string): any;
926
+ /**
927
+ * Gets a property of an object.
928
+ *
929
+ * The value can be:
930
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
931
+ * - a GObject.Value initialized with the expected type of the property
932
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
933
+ *
934
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
935
+ *
936
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
937
+ * @param property_name The name of the property to get
938
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
939
+ */
940
+ get_property(property_name: string, value: GObject.Value | any): any;
833
941
  /**
834
942
  * This function gets back user data pointers stored via
835
943
  * g_object_set_qdata().
@@ -957,7 +1065,12 @@ export namespace CinnamonDesktop {
957
1065
  * @param data data to associate with that key
958
1066
  */
959
1067
  set_data(key: string, data?: any | null): void;
960
- set_property(property_name: string, value: any): void;
1068
+ /**
1069
+ * Sets a property on an object.
1070
+ * @param property_name The name of the property to set
1071
+ * @param value The value to set the property to
1072
+ */
1073
+ set_property(property_name: string, value: GObject.Value | any): void;
961
1074
  /**
962
1075
  * Remove a specified datum from the object's data associations,
963
1076
  * without invoking the association's destroy handler.
@@ -1107,14 +1220,37 @@ export namespace CinnamonDesktop {
1107
1220
  * @param pspec
1108
1221
  */
1109
1222
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1223
+ /**
1224
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
1225
+ * @param id Handler ID of the handler to be disconnected
1226
+ */
1110
1227
  disconnect(id: number): void;
1228
+ /**
1229
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1230
+ * @param properties Object containing the properties to set
1231
+ */
1111
1232
  set(properties: { [key: string]: any }): void;
1112
- block_signal_handler(id: number): any;
1113
- unblock_signal_handler(id: number): any;
1114
- stop_emission_by_name(detailedName: string): any;
1233
+ /**
1234
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1235
+ * @param id Handler ID of the handler to be blocked
1236
+ */
1237
+ block_signal_handler(id: number): void;
1238
+ /**
1239
+ * Unblocks a handler so it will be called again during any signal emissions
1240
+ * @param id Handler ID of the handler to be unblocked
1241
+ */
1242
+ unblock_signal_handler(id: number): void;
1243
+ /**
1244
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1245
+ * @param detailedName Name of the signal to stop emission of
1246
+ */
1247
+ stop_emission_by_name(detailedName: string): void;
1115
1248
  }
1116
1249
 
1117
1250
  namespace PnpIds {
1251
+ // Signal signatures
1252
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1253
+
1118
1254
  // Constructor properties interface
1119
1255
 
1120
1256
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -1123,6 +1259,15 @@ export namespace CinnamonDesktop {
1123
1259
  class PnpIds extends GObject.Object {
1124
1260
  static $gtype: GObject.GType<PnpIds>;
1125
1261
 
1262
+ /**
1263
+ * Compile-time signal type information.
1264
+ *
1265
+ * This instance property is generated only for TypeScript type checking.
1266
+ * It is not defined at runtime and should not be accessed in JS code.
1267
+ * @internal
1268
+ */
1269
+ $signals: PnpIds.SignalSignatures;
1270
+
1126
1271
  // Constructors
1127
1272
 
1128
1273
  constructor(properties?: Partial<PnpIds.ConstructorProps>, ...args: any[]);
@@ -1131,6 +1276,24 @@ export namespace CinnamonDesktop {
1131
1276
 
1132
1277
  static ['new'](): PnpIds;
1133
1278
 
1279
+ // Signals
1280
+
1281
+ connect<K extends keyof PnpIds.SignalSignatures>(
1282
+ signal: K,
1283
+ callback: GObject.SignalCallback<this, PnpIds.SignalSignatures[K]>,
1284
+ ): number;
1285
+ connect(signal: string, callback: (...args: any[]) => any): number;
1286
+ connect_after<K extends keyof PnpIds.SignalSignatures>(
1287
+ signal: K,
1288
+ callback: GObject.SignalCallback<this, PnpIds.SignalSignatures[K]>,
1289
+ ): number;
1290
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1291
+ emit<K extends keyof PnpIds.SignalSignatures>(
1292
+ signal: K,
1293
+ ...args: GObject.GjsParameters<PnpIds.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1294
+ ): void;
1295
+ emit(signal: string, ...args: any[]): void;
1296
+
1134
1297
  // Methods
1135
1298
 
1136
1299
  /**
@@ -1142,6 +1305,11 @@ export namespace CinnamonDesktop {
1142
1305
  }
1143
1306
 
1144
1307
  namespace RRConfig {
1308
+ // Signal signatures
1309
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
1310
+ 'notify::screen': (pspec: GObject.ParamSpec) => void;
1311
+ }
1312
+
1145
1313
  // Constructor properties interface
1146
1314
 
1147
1315
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -1156,6 +1324,15 @@ export namespace CinnamonDesktop {
1156
1324
 
1157
1325
  set screen(val: RRScreen);
1158
1326
 
1327
+ /**
1328
+ * Compile-time signal type information.
1329
+ *
1330
+ * This instance property is generated only for TypeScript type checking.
1331
+ * It is not defined at runtime and should not be accessed in JS code.
1332
+ * @internal
1333
+ */
1334
+ $signals: RRConfig.SignalSignatures;
1335
+
1159
1336
  // Constructors
1160
1337
 
1161
1338
  constructor(properties?: Partial<RRConfig.ConstructorProps>, ...args: any[]);
@@ -1166,6 +1343,24 @@ export namespace CinnamonDesktop {
1166
1343
 
1167
1344
  static new_stored(screen: RRScreen): RRConfig;
1168
1345
 
1346
+ // Signals
1347
+
1348
+ connect<K extends keyof RRConfig.SignalSignatures>(
1349
+ signal: K,
1350
+ callback: GObject.SignalCallback<this, RRConfig.SignalSignatures[K]>,
1351
+ ): number;
1352
+ connect(signal: string, callback: (...args: any[]) => any): number;
1353
+ connect_after<K extends keyof RRConfig.SignalSignatures>(
1354
+ signal: K,
1355
+ callback: GObject.SignalCallback<this, RRConfig.SignalSignatures[K]>,
1356
+ ): number;
1357
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1358
+ emit<K extends keyof RRConfig.SignalSignatures>(
1359
+ signal: K,
1360
+ ...args: GObject.GjsParameters<RRConfig.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1361
+ ): void;
1362
+ emit(signal: string, ...args: any[]): void;
1363
+
1169
1364
  // Static methods
1170
1365
 
1171
1366
  static apply_from_filename_with_time(screen: RRScreen, filename: string, timestamp: number): boolean;
@@ -1194,6 +1389,11 @@ export namespace CinnamonDesktop {
1194
1389
  }
1195
1390
 
1196
1391
  namespace RRLabeler {
1392
+ // Signal signatures
1393
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
1394
+ 'notify::config': (pspec: GObject.ParamSpec) => void;
1395
+ }
1396
+
1197
1397
  // Constructor properties interface
1198
1398
 
1199
1399
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -1208,6 +1408,15 @@ export namespace CinnamonDesktop {
1208
1408
 
1209
1409
  set config(val: RRConfig);
1210
1410
 
1411
+ /**
1412
+ * Compile-time signal type information.
1413
+ *
1414
+ * This instance property is generated only for TypeScript type checking.
1415
+ * It is not defined at runtime and should not be accessed in JS code.
1416
+ * @internal
1417
+ */
1418
+ $signals: RRLabeler.SignalSignatures;
1419
+
1211
1420
  // Constructors
1212
1421
 
1213
1422
  constructor(properties?: Partial<RRLabeler.ConstructorProps>, ...args: any[]);
@@ -1216,6 +1425,24 @@ export namespace CinnamonDesktop {
1216
1425
 
1217
1426
  static ['new'](config: RRConfig): RRLabeler;
1218
1427
 
1428
+ // Signals
1429
+
1430
+ connect<K extends keyof RRLabeler.SignalSignatures>(
1431
+ signal: K,
1432
+ callback: GObject.SignalCallback<this, RRLabeler.SignalSignatures[K]>,
1433
+ ): number;
1434
+ connect(signal: string, callback: (...args: any[]) => any): number;
1435
+ connect_after<K extends keyof RRLabeler.SignalSignatures>(
1436
+ signal: K,
1437
+ callback: GObject.SignalCallback<this, RRLabeler.SignalSignatures[K]>,
1438
+ ): number;
1439
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1440
+ emit<K extends keyof RRLabeler.SignalSignatures>(
1441
+ signal: K,
1442
+ ...args: GObject.GjsParameters<RRLabeler.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1443
+ ): void;
1444
+ emit(signal: string, ...args: any[]): void;
1445
+
1219
1446
  // Methods
1220
1447
 
1221
1448
  /**
@@ -1234,6 +1461,9 @@ export namespace CinnamonDesktop {
1234
1461
  }
1235
1462
 
1236
1463
  namespace RROutputInfo {
1464
+ // Signal signatures
1465
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1466
+
1237
1467
  // Constructor properties interface
1238
1468
 
1239
1469
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -1242,12 +1472,39 @@ export namespace CinnamonDesktop {
1242
1472
  class RROutputInfo extends GObject.Object {
1243
1473
  static $gtype: GObject.GType<RROutputInfo>;
1244
1474
 
1475
+ /**
1476
+ * Compile-time signal type information.
1477
+ *
1478
+ * This instance property is generated only for TypeScript type checking.
1479
+ * It is not defined at runtime and should not be accessed in JS code.
1480
+ * @internal
1481
+ */
1482
+ $signals: RROutputInfo.SignalSignatures;
1483
+
1245
1484
  // Constructors
1246
1485
 
1247
1486
  constructor(properties?: Partial<RROutputInfo.ConstructorProps>, ...args: any[]);
1248
1487
 
1249
1488
  _init(...args: any[]): void;
1250
1489
 
1490
+ // Signals
1491
+
1492
+ connect<K extends keyof RROutputInfo.SignalSignatures>(
1493
+ signal: K,
1494
+ callback: GObject.SignalCallback<this, RROutputInfo.SignalSignatures[K]>,
1495
+ ): number;
1496
+ connect(signal: string, callback: (...args: any[]) => any): number;
1497
+ connect_after<K extends keyof RROutputInfo.SignalSignatures>(
1498
+ signal: K,
1499
+ callback: GObject.SignalCallback<this, RROutputInfo.SignalSignatures[K]>,
1500
+ ): number;
1501
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1502
+ emit<K extends keyof RROutputInfo.SignalSignatures>(
1503
+ signal: K,
1504
+ ...args: GObject.GjsParameters<RROutputInfo.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1505
+ ): void;
1506
+ emit(signal: string, ...args: any[]): void;
1507
+
1251
1508
  // Methods
1252
1509
 
1253
1510
  get_aspect_ratio(): number;
@@ -1278,18 +1535,12 @@ export namespace CinnamonDesktop {
1278
1535
  }
1279
1536
 
1280
1537
  namespace RRScreen {
1281
- // Signal callback interfaces
1282
-
1283
- interface Changed {
1284
- (): void;
1285
- }
1286
-
1287
- interface OutputConnected {
1288
- (output?: any | null): void;
1289
- }
1290
-
1291
- interface OutputDisconnected {
1292
- (output?: any | null): void;
1538
+ // Signal signatures
1539
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
1540
+ changed: () => void;
1541
+ 'output-connected': (arg0: any | null) => void;
1542
+ 'output-disconnected': (arg0: any | null) => void;
1543
+ 'notify::gdk-screen': (pspec: GObject.ParamSpec) => void;
1293
1544
  }
1294
1545
 
1295
1546
  // Constructor properties interface
@@ -1308,6 +1559,15 @@ export namespace CinnamonDesktop {
1308
1559
  get gdk_screen(): Gdk.Screen;
1309
1560
  get gdkScreen(): Gdk.Screen;
1310
1561
 
1562
+ /**
1563
+ * Compile-time signal type information.
1564
+ *
1565
+ * This instance property is generated only for TypeScript type checking.
1566
+ * It is not defined at runtime and should not be accessed in JS code.
1567
+ * @internal
1568
+ */
1569
+ $signals: RRScreen.SignalSignatures;
1570
+
1311
1571
  // Constructors
1312
1572
 
1313
1573
  constructor(properties?: Partial<RRScreen.ConstructorProps>, ...args: any[]);
@@ -1318,18 +1578,21 @@ export namespace CinnamonDesktop {
1318
1578
 
1319
1579
  // Signals
1320
1580
 
1321
- connect(id: string, callback: (...args: any[]) => any): number;
1322
- connect_after(id: string, callback: (...args: any[]) => any): number;
1323
- emit(id: string, ...args: any[]): void;
1324
- connect(signal: 'changed', callback: (_source: this) => void): number;
1325
- connect_after(signal: 'changed', callback: (_source: this) => void): number;
1326
- emit(signal: 'changed'): void;
1327
- connect(signal: 'output-connected', callback: (_source: this, output: any | null) => void): number;
1328
- connect_after(signal: 'output-connected', callback: (_source: this, output: any | null) => void): number;
1329
- emit(signal: 'output-connected', output?: any | null): void;
1330
- connect(signal: 'output-disconnected', callback: (_source: this, output: any | null) => void): number;
1331
- connect_after(signal: 'output-disconnected', callback: (_source: this, output: any | null) => void): number;
1332
- emit(signal: 'output-disconnected', output?: any | null): void;
1581
+ connect<K extends keyof RRScreen.SignalSignatures>(
1582
+ signal: K,
1583
+ callback: GObject.SignalCallback<this, RRScreen.SignalSignatures[K]>,
1584
+ ): number;
1585
+ connect(signal: string, callback: (...args: any[]) => any): number;
1586
+ connect_after<K extends keyof RRScreen.SignalSignatures>(
1587
+ signal: K,
1588
+ callback: GObject.SignalCallback<this, RRScreen.SignalSignatures[K]>,
1589
+ ): number;
1590
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1591
+ emit<K extends keyof RRScreen.SignalSignatures>(
1592
+ signal: K,
1593
+ ...args: GObject.GjsParameters<RRScreen.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1594
+ ): void;
1595
+ emit(signal: string, ...args: any[]): void;
1333
1596
 
1334
1597
  // Methods
1335
1598
 
@@ -1406,7 +1669,7 @@ export namespace CinnamonDesktop {
1406
1669
  * If the object is not initialized, or initialization returns with an
1407
1670
  * error, then all operations on the object except g_object_ref() and
1408
1671
  * g_object_unref() are considered to be invalid, and have undefined
1409
- * behaviour. See the [introduction][ginitable] for more details.
1672
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
1410
1673
  *
1411
1674
  * Callers should not assume that a class which implements #GInitable can be
1412
1675
  * initialized multiple times, unless the class explicitly documents itself as
@@ -1449,7 +1712,7 @@ export namespace CinnamonDesktop {
1449
1712
  * If the object is not initialized, or initialization returns with an
1450
1713
  * error, then all operations on the object except g_object_ref() and
1451
1714
  * g_object_unref() are considered to be invalid, and have undefined
1452
- * behaviour. See the [introduction][ginitable] for more details.
1715
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
1453
1716
  *
1454
1717
  * Callers should not assume that a class which implements #GInitable can be
1455
1718
  * initialized multiple times, unless the class explicitly documents itself as
@@ -1589,7 +1852,21 @@ export namespace CinnamonDesktop {
1589
1852
  * @returns the data if found, or %NULL if no such data exists.
1590
1853
  */
1591
1854
  get_data(key: string): any | null;
1592
- get_property(property_name: string): any;
1855
+ /**
1856
+ * Gets a property of an object.
1857
+ *
1858
+ * The value can be:
1859
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
1860
+ * - a GObject.Value initialized with the expected type of the property
1861
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1862
+ *
1863
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1864
+ *
1865
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1866
+ * @param property_name The name of the property to get
1867
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
1868
+ */
1869
+ get_property(property_name: string, value: GObject.Value | any): any;
1593
1870
  /**
1594
1871
  * This function gets back user data pointers stored via
1595
1872
  * g_object_set_qdata().
@@ -1717,7 +1994,12 @@ export namespace CinnamonDesktop {
1717
1994
  * @param data data to associate with that key
1718
1995
  */
1719
1996
  set_data(key: string, data?: any | null): void;
1720
- set_property(property_name: string, value: any): void;
1997
+ /**
1998
+ * Sets a property on an object.
1999
+ * @param property_name The name of the property to set
2000
+ * @param value The value to set the property to
2001
+ */
2002
+ set_property(property_name: string, value: GObject.Value | any): void;
1721
2003
  /**
1722
2004
  * Remove a specified datum from the object's data associations,
1723
2005
  * without invoking the association's destroy handler.
@@ -1867,14 +2149,40 @@ export namespace CinnamonDesktop {
1867
2149
  * @param pspec
1868
2150
  */
1869
2151
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2152
+ /**
2153
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
2154
+ * @param id Handler ID of the handler to be disconnected
2155
+ */
1870
2156
  disconnect(id: number): void;
2157
+ /**
2158
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
2159
+ * @param properties Object containing the properties to set
2160
+ */
1871
2161
  set(properties: { [key: string]: any }): void;
1872
- block_signal_handler(id: number): any;
1873
- unblock_signal_handler(id: number): any;
1874
- stop_emission_by_name(detailedName: string): any;
2162
+ /**
2163
+ * Blocks a handler of an instance so it will not be called during any signal emissions
2164
+ * @param id Handler ID of the handler to be blocked
2165
+ */
2166
+ block_signal_handler(id: number): void;
2167
+ /**
2168
+ * Unblocks a handler so it will be called again during any signal emissions
2169
+ * @param id Handler ID of the handler to be unblocked
2170
+ */
2171
+ unblock_signal_handler(id: number): void;
2172
+ /**
2173
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
2174
+ * @param detailedName Name of the signal to stop emission of
2175
+ */
2176
+ stop_emission_by_name(detailedName: string): void;
1875
2177
  }
1876
2178
 
1877
2179
  namespace WallClock {
2180
+ // Signal signatures
2181
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
2182
+ 'notify::clock': (pspec: GObject.ParamSpec) => void;
2183
+ 'notify::format-string': (pspec: GObject.ParamSpec) => void;
2184
+ }
2185
+
1878
2186
  // Constructor properties interface
1879
2187
 
1880
2188
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -1908,6 +2216,15 @@ export namespace CinnamonDesktop {
1908
2216
  get formatString(): string;
1909
2217
  set formatString(val: string);
1910
2218
 
2219
+ /**
2220
+ * Compile-time signal type information.
2221
+ *
2222
+ * This instance property is generated only for TypeScript type checking.
2223
+ * It is not defined at runtime and should not be accessed in JS code.
2224
+ * @internal
2225
+ */
2226
+ $signals: WallClock.SignalSignatures;
2227
+
1911
2228
  // Fields
1912
2229
 
1913
2230
  parent_object: GObject.Object;
@@ -1920,6 +2237,24 @@ export namespace CinnamonDesktop {
1920
2237
 
1921
2238
  static ['new'](): WallClock;
1922
2239
 
2240
+ // Signals
2241
+
2242
+ connect<K extends keyof WallClock.SignalSignatures>(
2243
+ signal: K,
2244
+ callback: GObject.SignalCallback<this, WallClock.SignalSignatures[K]>,
2245
+ ): number;
2246
+ connect(signal: string, callback: (...args: any[]) => any): number;
2247
+ connect_after<K extends keyof WallClock.SignalSignatures>(
2248
+ signal: K,
2249
+ callback: GObject.SignalCallback<this, WallClock.SignalSignatures[K]>,
2250
+ ): number;
2251
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2252
+ emit<K extends keyof WallClock.SignalSignatures>(
2253
+ signal: K,
2254
+ ...args: GObject.GjsParameters<WallClock.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2255
+ ): void;
2256
+ emit(signal: string, ...args: any[]): void;
2257
+
1923
2258
  // Static methods
1924
2259
 
1925
2260
  /**
@@ -1973,6 +2308,9 @@ export namespace CinnamonDesktop {
1973
2308
  }
1974
2309
 
1975
2310
  namespace XkbInfo {
2311
+ // Signal signatures
2312
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
2313
+
1976
2314
  // Constructor properties interface
1977
2315
 
1978
2316
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -1981,6 +2319,15 @@ export namespace CinnamonDesktop {
1981
2319
  class XkbInfo extends GObject.Object {
1982
2320
  static $gtype: GObject.GType<XkbInfo>;
1983
2321
 
2322
+ /**
2323
+ * Compile-time signal type information.
2324
+ *
2325
+ * This instance property is generated only for TypeScript type checking.
2326
+ * It is not defined at runtime and should not be accessed in JS code.
2327
+ * @internal
2328
+ */
2329
+ $signals: XkbInfo.SignalSignatures;
2330
+
1984
2331
  // Fields
1985
2332
 
1986
2333
  parent_object: GObject.Object;
@@ -1993,6 +2340,24 @@ export namespace CinnamonDesktop {
1993
2340
 
1994
2341
  static ['new'](): XkbInfo;
1995
2342
 
2343
+ // Signals
2344
+
2345
+ connect<K extends keyof XkbInfo.SignalSignatures>(
2346
+ signal: K,
2347
+ callback: GObject.SignalCallback<this, XkbInfo.SignalSignatures[K]>,
2348
+ ): number;
2349
+ connect(signal: string, callback: (...args: any[]) => any): number;
2350
+ connect_after<K extends keyof XkbInfo.SignalSignatures>(
2351
+ signal: K,
2352
+ callback: GObject.SignalCallback<this, XkbInfo.SignalSignatures[K]>,
2353
+ ): number;
2354
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2355
+ emit<K extends keyof XkbInfo.SignalSignatures>(
2356
+ signal: K,
2357
+ ...args: GObject.GjsParameters<XkbInfo.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2358
+ ): void;
2359
+ emit(signal: string, ...args: any[]): void;
2360
+
1996
2361
  // Methods
1997
2362
 
1998
2363
  description_for_option(group_id: string, id: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/cinnamondesktop-3.0",
3
- "version": "3.0.0-4.0.0-beta.21",
3
+ "version": "3.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for CinnamonDesktop-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "cinnamondesktop-3.0.js",
@@ -31,21 +31,21 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/atk-1.0": "^2.55.2-4.0.0-beta.21",
35
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.21",
36
- "@girs/cdesktopenums-3.0": "^3.0.0-4.0.0-beta.21",
37
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.21",
38
- "@girs/gdk-3.0": "^3.24.48-4.0.0-beta.21",
39
- "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.21",
40
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
41
- "@girs/gjs": "^4.0.0-beta.21",
42
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
43
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
44
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21",
45
- "@girs/gtk-3.0": "^3.24.48-4.0.0-beta.21",
46
- "@girs/harfbuzz-0.0": "^9.0.0-4.0.0-beta.21",
47
- "@girs/pango-1.0": "^1.56.0-4.0.0-beta.21",
48
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.21"
34
+ "@girs/atk-1.0": "^2.56.2-4.0.0-beta.24",
35
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.24",
36
+ "@girs/cdesktopenums-3.0": "^3.0.0-4.0.0-beta.24",
37
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.24",
38
+ "@girs/gdk-3.0": "^3.24.50-4.0.0-beta.24",
39
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.24",
40
+ "@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
41
+ "@girs/gjs": "^4.0.0-beta.24",
42
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
43
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
44
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24",
45
+ "@girs/gtk-3.0": "^3.24.50-4.0.0-beta.24",
46
+ "@girs/harfbuzz-0.0": "^10.4.0-4.0.0-beta.24",
47
+ "@girs/pango-1.0": "^1.56.4-4.0.0-beta.24",
48
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.24"
49
49
  },
50
50
  "devDependencies": {
51
51
  "typescript": "*"