@girs/gtef-2 2.0.0-4.0.0-beta.21 → 2.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 +1 -1
- package/gtef-2.d.ts +824 -45
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Gtef-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for Gtef-2, generated from library version 2.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
|
package/gtef-2.d.ts
CHANGED
|
@@ -7,12 +7,14 @@
|
|
|
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 GtkSource from '@girs/gtksource-3.0';
|
|
12
14
|
import type Gtk from '@girs/gtk-3.0';
|
|
13
15
|
import type xlib from '@girs/xlib-2.0';
|
|
14
16
|
import type Gdk from '@girs/gdk-3.0';
|
|
15
|
-
import type cairo from '
|
|
17
|
+
import type cairo from 'cairo';
|
|
16
18
|
import type GObject from '@girs/gobject-2.0';
|
|
17
19
|
import type GLib from '@girs/glib-2.0';
|
|
18
20
|
import type Pango from '@girs/pango-1.0';
|
|
@@ -313,6 +315,9 @@ export namespace Gtef {
|
|
|
313
315
|
END,
|
|
314
316
|
}
|
|
315
317
|
namespace ActionInfoCentralStore {
|
|
318
|
+
// Signal signatures
|
|
319
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
320
|
+
|
|
316
321
|
// Constructor properties interface
|
|
317
322
|
|
|
318
323
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -321,12 +326,41 @@ export namespace Gtef {
|
|
|
321
326
|
class ActionInfoCentralStore extends GObject.Object {
|
|
322
327
|
static $gtype: GObject.GType<ActionInfoCentralStore>;
|
|
323
328
|
|
|
329
|
+
/**
|
|
330
|
+
* Compile-time signal type information.
|
|
331
|
+
*
|
|
332
|
+
* This instance property is generated only for TypeScript type checking.
|
|
333
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
334
|
+
* @internal
|
|
335
|
+
*/
|
|
336
|
+
$signals: ActionInfoCentralStore.SignalSignatures;
|
|
337
|
+
|
|
324
338
|
// Constructors
|
|
325
339
|
|
|
326
340
|
constructor(properties?: Partial<ActionInfoCentralStore.ConstructorProps>, ...args: any[]);
|
|
327
341
|
|
|
328
342
|
_init(...args: any[]): void;
|
|
329
343
|
|
|
344
|
+
// Signals
|
|
345
|
+
|
|
346
|
+
connect<K extends keyof ActionInfoCentralStore.SignalSignatures>(
|
|
347
|
+
signal: K,
|
|
348
|
+
callback: GObject.SignalCallback<this, ActionInfoCentralStore.SignalSignatures[K]>,
|
|
349
|
+
): number;
|
|
350
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
351
|
+
connect_after<K extends keyof ActionInfoCentralStore.SignalSignatures>(
|
|
352
|
+
signal: K,
|
|
353
|
+
callback: GObject.SignalCallback<this, ActionInfoCentralStore.SignalSignatures[K]>,
|
|
354
|
+
): number;
|
|
355
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
356
|
+
emit<K extends keyof ActionInfoCentralStore.SignalSignatures>(
|
|
357
|
+
signal: K,
|
|
358
|
+
...args: GObject.GjsParameters<ActionInfoCentralStore.SignalSignatures[K]> extends [any, ...infer Q]
|
|
359
|
+
? Q
|
|
360
|
+
: never
|
|
361
|
+
): void;
|
|
362
|
+
emit(signal: string, ...args: any[]): void;
|
|
363
|
+
|
|
330
364
|
// Static methods
|
|
331
365
|
|
|
332
366
|
static get_instance(): ActionInfoCentralStore;
|
|
@@ -337,6 +371,11 @@ export namespace Gtef {
|
|
|
337
371
|
}
|
|
338
372
|
|
|
339
373
|
namespace ActionInfoStore {
|
|
374
|
+
// Signal signatures
|
|
375
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
376
|
+
'notify::application': (pspec: GObject.ParamSpec) => void;
|
|
377
|
+
}
|
|
378
|
+
|
|
340
379
|
// Constructor properties interface
|
|
341
380
|
|
|
342
381
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -355,6 +394,15 @@ export namespace Gtef {
|
|
|
355
394
|
*/
|
|
356
395
|
get application(): Gtk.Application;
|
|
357
396
|
|
|
397
|
+
/**
|
|
398
|
+
* Compile-time signal type information.
|
|
399
|
+
*
|
|
400
|
+
* This instance property is generated only for TypeScript type checking.
|
|
401
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
402
|
+
* @internal
|
|
403
|
+
*/
|
|
404
|
+
$signals: ActionInfoStore.SignalSignatures;
|
|
405
|
+
|
|
358
406
|
// Constructors
|
|
359
407
|
|
|
360
408
|
constructor(properties?: Partial<ActionInfoStore.ConstructorProps>, ...args: any[]);
|
|
@@ -363,6 +411,24 @@ export namespace Gtef {
|
|
|
363
411
|
|
|
364
412
|
static ['new'](application?: Gtk.Application | null): ActionInfoStore;
|
|
365
413
|
|
|
414
|
+
// Signals
|
|
415
|
+
|
|
416
|
+
connect<K extends keyof ActionInfoStore.SignalSignatures>(
|
|
417
|
+
signal: K,
|
|
418
|
+
callback: GObject.SignalCallback<this, ActionInfoStore.SignalSignatures[K]>,
|
|
419
|
+
): number;
|
|
420
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
421
|
+
connect_after<K extends keyof ActionInfoStore.SignalSignatures>(
|
|
422
|
+
signal: K,
|
|
423
|
+
callback: GObject.SignalCallback<this, ActionInfoStore.SignalSignatures[K]>,
|
|
424
|
+
): number;
|
|
425
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
426
|
+
emit<K extends keyof ActionInfoStore.SignalSignatures>(
|
|
427
|
+
signal: K,
|
|
428
|
+
...args: GObject.GjsParameters<ActionInfoStore.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
429
|
+
): void;
|
|
430
|
+
emit(signal: string, ...args: any[]): void;
|
|
431
|
+
|
|
366
432
|
// Methods
|
|
367
433
|
|
|
368
434
|
/**
|
|
@@ -417,6 +483,11 @@ export namespace Gtef {
|
|
|
417
483
|
}
|
|
418
484
|
|
|
419
485
|
namespace Application {
|
|
486
|
+
// Signal signatures
|
|
487
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
488
|
+
'notify::application': (pspec: GObject.ParamSpec) => void;
|
|
489
|
+
}
|
|
490
|
+
|
|
420
491
|
// Constructor properties interface
|
|
421
492
|
|
|
422
493
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -434,12 +505,39 @@ export namespace Gtef {
|
|
|
434
505
|
*/
|
|
435
506
|
get application(): Gtk.Application;
|
|
436
507
|
|
|
508
|
+
/**
|
|
509
|
+
* Compile-time signal type information.
|
|
510
|
+
*
|
|
511
|
+
* This instance property is generated only for TypeScript type checking.
|
|
512
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
513
|
+
* @internal
|
|
514
|
+
*/
|
|
515
|
+
$signals: Application.SignalSignatures;
|
|
516
|
+
|
|
437
517
|
// Constructors
|
|
438
518
|
|
|
439
519
|
constructor(properties?: Partial<Application.ConstructorProps>, ...args: any[]);
|
|
440
520
|
|
|
441
521
|
_init(...args: any[]): void;
|
|
442
522
|
|
|
523
|
+
// Signals
|
|
524
|
+
|
|
525
|
+
connect<K extends keyof Application.SignalSignatures>(
|
|
526
|
+
signal: K,
|
|
527
|
+
callback: GObject.SignalCallback<this, Application.SignalSignatures[K]>,
|
|
528
|
+
): number;
|
|
529
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
530
|
+
connect_after<K extends keyof Application.SignalSignatures>(
|
|
531
|
+
signal: K,
|
|
532
|
+
callback: GObject.SignalCallback<this, Application.SignalSignatures[K]>,
|
|
533
|
+
): number;
|
|
534
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
535
|
+
emit<K extends keyof Application.SignalSignatures>(
|
|
536
|
+
signal: K,
|
|
537
|
+
...args: GObject.GjsParameters<Application.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
538
|
+
): void;
|
|
539
|
+
emit(signal: string, ...args: any[]): void;
|
|
540
|
+
|
|
443
541
|
// Static methods
|
|
444
542
|
|
|
445
543
|
/**
|
|
@@ -474,6 +572,12 @@ export namespace Gtef {
|
|
|
474
572
|
}
|
|
475
573
|
|
|
476
574
|
namespace ApplicationWindow {
|
|
575
|
+
// Signal signatures
|
|
576
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
577
|
+
'notify::application-window': (pspec: GObject.ParamSpec) => void;
|
|
578
|
+
'notify::statusbar': (pspec: GObject.ParamSpec) => void;
|
|
579
|
+
}
|
|
580
|
+
|
|
477
581
|
// Constructor properties interface
|
|
478
582
|
|
|
479
583
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -502,12 +606,39 @@ export namespace Gtef {
|
|
|
502
606
|
get statusbar(): Gtk.Statusbar;
|
|
503
607
|
set statusbar(val: Gtk.Statusbar);
|
|
504
608
|
|
|
609
|
+
/**
|
|
610
|
+
* Compile-time signal type information.
|
|
611
|
+
*
|
|
612
|
+
* This instance property is generated only for TypeScript type checking.
|
|
613
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
614
|
+
* @internal
|
|
615
|
+
*/
|
|
616
|
+
$signals: ApplicationWindow.SignalSignatures;
|
|
617
|
+
|
|
505
618
|
// Constructors
|
|
506
619
|
|
|
507
620
|
constructor(properties?: Partial<ApplicationWindow.ConstructorProps>, ...args: any[]);
|
|
508
621
|
|
|
509
622
|
_init(...args: any[]): void;
|
|
510
623
|
|
|
624
|
+
// Signals
|
|
625
|
+
|
|
626
|
+
connect<K extends keyof ApplicationWindow.SignalSignatures>(
|
|
627
|
+
signal: K,
|
|
628
|
+
callback: GObject.SignalCallback<this, ApplicationWindow.SignalSignatures[K]>,
|
|
629
|
+
): number;
|
|
630
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
631
|
+
connect_after<K extends keyof ApplicationWindow.SignalSignatures>(
|
|
632
|
+
signal: K,
|
|
633
|
+
callback: GObject.SignalCallback<this, ApplicationWindow.SignalSignatures[K]>,
|
|
634
|
+
): number;
|
|
635
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
636
|
+
emit<K extends keyof ApplicationWindow.SignalSignatures>(
|
|
637
|
+
signal: K,
|
|
638
|
+
...args: GObject.GjsParameters<ApplicationWindow.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
639
|
+
): void;
|
|
640
|
+
emit(signal: string, ...args: any[]): void;
|
|
641
|
+
|
|
511
642
|
// Static methods
|
|
512
643
|
|
|
513
644
|
/**
|
|
@@ -571,10 +702,26 @@ export namespace Gtef {
|
|
|
571
702
|
}
|
|
572
703
|
|
|
573
704
|
namespace Buffer {
|
|
574
|
-
// Signal
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
(
|
|
705
|
+
// Signal signatures
|
|
706
|
+
interface SignalSignatures extends GtkSource.Buffer.SignalSignatures {
|
|
707
|
+
'gtef-cursor-moved': () => void;
|
|
708
|
+
'notify::gtef-style-scheme-id': (pspec: GObject.ParamSpec) => void;
|
|
709
|
+
'notify::gtef-title': (pspec: GObject.ParamSpec) => void;
|
|
710
|
+
'notify::can-redo': (pspec: GObject.ParamSpec) => void;
|
|
711
|
+
'notify::can-undo': (pspec: GObject.ParamSpec) => void;
|
|
712
|
+
'notify::highlight-matching-brackets': (pspec: GObject.ParamSpec) => void;
|
|
713
|
+
'notify::highlight-syntax': (pspec: GObject.ParamSpec) => void;
|
|
714
|
+
'notify::implicit-trailing-newline': (pspec: GObject.ParamSpec) => void;
|
|
715
|
+
'notify::language': (pspec: GObject.ParamSpec) => void;
|
|
716
|
+
'notify::max-undo-levels': (pspec: GObject.ParamSpec) => void;
|
|
717
|
+
'notify::style-scheme': (pspec: GObject.ParamSpec) => void;
|
|
718
|
+
'notify::undo-manager': (pspec: GObject.ParamSpec) => void;
|
|
719
|
+
'notify::copy-target-list': (pspec: GObject.ParamSpec) => void;
|
|
720
|
+
'notify::cursor-position': (pspec: GObject.ParamSpec) => void;
|
|
721
|
+
'notify::has-selection': (pspec: GObject.ParamSpec) => void;
|
|
722
|
+
'notify::paste-target-list': (pspec: GObject.ParamSpec) => void;
|
|
723
|
+
'notify::tag-table': (pspec: GObject.ParamSpec) => void;
|
|
724
|
+
'notify::text': (pspec: GObject.ParamSpec) => void;
|
|
578
725
|
}
|
|
579
726
|
|
|
580
727
|
// Constructor properties interface
|
|
@@ -619,6 +766,15 @@ export namespace Gtef {
|
|
|
619
766
|
*/
|
|
620
767
|
get gtefTitle(): string;
|
|
621
768
|
|
|
769
|
+
/**
|
|
770
|
+
* Compile-time signal type information.
|
|
771
|
+
*
|
|
772
|
+
* This instance property is generated only for TypeScript type checking.
|
|
773
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
774
|
+
* @internal
|
|
775
|
+
*/
|
|
776
|
+
$signals: Buffer.SignalSignatures;
|
|
777
|
+
|
|
622
778
|
// Constructors
|
|
623
779
|
|
|
624
780
|
constructor(properties?: Partial<Buffer.ConstructorProps>, ...args: any[]);
|
|
@@ -629,12 +785,21 @@ export namespace Gtef {
|
|
|
629
785
|
|
|
630
786
|
// Signals
|
|
631
787
|
|
|
632
|
-
connect
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
788
|
+
connect<K extends keyof Buffer.SignalSignatures>(
|
|
789
|
+
signal: K,
|
|
790
|
+
callback: GObject.SignalCallback<this, Buffer.SignalSignatures[K]>,
|
|
791
|
+
): number;
|
|
792
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
793
|
+
connect_after<K extends keyof Buffer.SignalSignatures>(
|
|
794
|
+
signal: K,
|
|
795
|
+
callback: GObject.SignalCallback<this, Buffer.SignalSignatures[K]>,
|
|
796
|
+
): number;
|
|
797
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
798
|
+
emit<K extends keyof Buffer.SignalSignatures>(
|
|
799
|
+
signal: K,
|
|
800
|
+
...args: GObject.GjsParameters<Buffer.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
801
|
+
): void;
|
|
802
|
+
emit(signal: string, ...args: any[]): void;
|
|
638
803
|
|
|
639
804
|
// Virtual methods
|
|
640
805
|
|
|
@@ -683,6 +848,16 @@ export namespace Gtef {
|
|
|
683
848
|
}
|
|
684
849
|
|
|
685
850
|
namespace File {
|
|
851
|
+
// Signal signatures
|
|
852
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
853
|
+
'notify::compression-type': (pspec: GObject.ParamSpec) => void;
|
|
854
|
+
'notify::encoding': (pspec: GObject.ParamSpec) => void;
|
|
855
|
+
'notify::location': (pspec: GObject.ParamSpec) => void;
|
|
856
|
+
'notify::newline-type': (pspec: GObject.ParamSpec) => void;
|
|
857
|
+
'notify::read-only': (pspec: GObject.ParamSpec) => void;
|
|
858
|
+
'notify::short-name': (pspec: GObject.ParamSpec) => void;
|
|
859
|
+
}
|
|
860
|
+
|
|
686
861
|
// Constructor properties interface
|
|
687
862
|
|
|
688
863
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -749,6 +924,15 @@ export namespace Gtef {
|
|
|
749
924
|
*/
|
|
750
925
|
get shortName(): string;
|
|
751
926
|
|
|
927
|
+
/**
|
|
928
|
+
* Compile-time signal type information.
|
|
929
|
+
*
|
|
930
|
+
* This instance property is generated only for TypeScript type checking.
|
|
931
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
932
|
+
* @internal
|
|
933
|
+
*/
|
|
934
|
+
$signals: File.SignalSignatures;
|
|
935
|
+
|
|
752
936
|
// Constructors
|
|
753
937
|
|
|
754
938
|
constructor(properties?: Partial<File.ConstructorProps>, ...args: any[]);
|
|
@@ -757,6 +941,24 @@ export namespace Gtef {
|
|
|
757
941
|
|
|
758
942
|
static ['new'](): File;
|
|
759
943
|
|
|
944
|
+
// Signals
|
|
945
|
+
|
|
946
|
+
connect<K extends keyof File.SignalSignatures>(
|
|
947
|
+
signal: K,
|
|
948
|
+
callback: GObject.SignalCallback<this, File.SignalSignatures[K]>,
|
|
949
|
+
): number;
|
|
950
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
951
|
+
connect_after<K extends keyof File.SignalSignatures>(
|
|
952
|
+
signal: K,
|
|
953
|
+
callback: GObject.SignalCallback<this, File.SignalSignatures[K]>,
|
|
954
|
+
): number;
|
|
955
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
956
|
+
emit<K extends keyof File.SignalSignatures>(
|
|
957
|
+
signal: K,
|
|
958
|
+
...args: GObject.GjsParameters<File.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
959
|
+
): void;
|
|
960
|
+
emit(signal: string, ...args: any[]): void;
|
|
961
|
+
|
|
760
962
|
// Methods
|
|
761
963
|
|
|
762
964
|
/**
|
|
@@ -831,6 +1033,15 @@ export namespace Gtef {
|
|
|
831
1033
|
}
|
|
832
1034
|
|
|
833
1035
|
namespace FileLoader {
|
|
1036
|
+
// Signal signatures
|
|
1037
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1038
|
+
'notify::buffer': (pspec: GObject.ParamSpec) => void;
|
|
1039
|
+
'notify::chunk-size': (pspec: GObject.ParamSpec) => void;
|
|
1040
|
+
'notify::file': (pspec: GObject.ParamSpec) => void;
|
|
1041
|
+
'notify::location': (pspec: GObject.ParamSpec) => void;
|
|
1042
|
+
'notify::max-size': (pspec: GObject.ParamSpec) => void;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
834
1045
|
// Constructor properties interface
|
|
835
1046
|
|
|
836
1047
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -903,6 +1114,15 @@ export namespace Gtef {
|
|
|
903
1114
|
get maxSize(): number;
|
|
904
1115
|
set maxSize(val: number);
|
|
905
1116
|
|
|
1117
|
+
/**
|
|
1118
|
+
* Compile-time signal type information.
|
|
1119
|
+
*
|
|
1120
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1121
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1122
|
+
* @internal
|
|
1123
|
+
*/
|
|
1124
|
+
$signals: FileLoader.SignalSignatures;
|
|
1125
|
+
|
|
906
1126
|
// Constructors
|
|
907
1127
|
|
|
908
1128
|
constructor(properties?: Partial<FileLoader.ConstructorProps>, ...args: any[]);
|
|
@@ -911,6 +1131,24 @@ export namespace Gtef {
|
|
|
911
1131
|
|
|
912
1132
|
static ['new'](buffer: Buffer, file: File): FileLoader;
|
|
913
1133
|
|
|
1134
|
+
// Signals
|
|
1135
|
+
|
|
1136
|
+
connect<K extends keyof FileLoader.SignalSignatures>(
|
|
1137
|
+
signal: K,
|
|
1138
|
+
callback: GObject.SignalCallback<this, FileLoader.SignalSignatures[K]>,
|
|
1139
|
+
): number;
|
|
1140
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1141
|
+
connect_after<K extends keyof FileLoader.SignalSignatures>(
|
|
1142
|
+
signal: K,
|
|
1143
|
+
callback: GObject.SignalCallback<this, FileLoader.SignalSignatures[K]>,
|
|
1144
|
+
): number;
|
|
1145
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1146
|
+
emit<K extends keyof FileLoader.SignalSignatures>(
|
|
1147
|
+
signal: K,
|
|
1148
|
+
...args: GObject.GjsParameters<FileLoader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1149
|
+
): void;
|
|
1150
|
+
emit(signal: string, ...args: any[]): void;
|
|
1151
|
+
|
|
914
1152
|
// Methods
|
|
915
1153
|
|
|
916
1154
|
get_buffer(): Buffer | null;
|
|
@@ -980,6 +1218,11 @@ export namespace Gtef {
|
|
|
980
1218
|
}
|
|
981
1219
|
|
|
982
1220
|
namespace FileMetadata {
|
|
1221
|
+
// Signal signatures
|
|
1222
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1223
|
+
'notify::file': (pspec: GObject.ParamSpec) => void;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
983
1226
|
// Constructor properties interface
|
|
984
1227
|
|
|
985
1228
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -997,6 +1240,15 @@ export namespace Gtef {
|
|
|
997
1240
|
*/
|
|
998
1241
|
get file(): File;
|
|
999
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* Compile-time signal type information.
|
|
1245
|
+
*
|
|
1246
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1247
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1248
|
+
* @internal
|
|
1249
|
+
*/
|
|
1250
|
+
$signals: FileMetadata.SignalSignatures;
|
|
1251
|
+
|
|
1000
1252
|
// Constructors
|
|
1001
1253
|
|
|
1002
1254
|
constructor(properties?: Partial<FileMetadata.ConstructorProps>, ...args: any[]);
|
|
@@ -1005,6 +1257,24 @@ export namespace Gtef {
|
|
|
1005
1257
|
|
|
1006
1258
|
static ['new'](file: File): FileMetadata;
|
|
1007
1259
|
|
|
1260
|
+
// Signals
|
|
1261
|
+
|
|
1262
|
+
connect<K extends keyof FileMetadata.SignalSignatures>(
|
|
1263
|
+
signal: K,
|
|
1264
|
+
callback: GObject.SignalCallback<this, FileMetadata.SignalSignatures[K]>,
|
|
1265
|
+
): number;
|
|
1266
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1267
|
+
connect_after<K extends keyof FileMetadata.SignalSignatures>(
|
|
1268
|
+
signal: K,
|
|
1269
|
+
callback: GObject.SignalCallback<this, FileMetadata.SignalSignatures[K]>,
|
|
1270
|
+
): number;
|
|
1271
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1272
|
+
emit<K extends keyof FileMetadata.SignalSignatures>(
|
|
1273
|
+
signal: K,
|
|
1274
|
+
...args: GObject.GjsParameters<FileMetadata.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1275
|
+
): void;
|
|
1276
|
+
emit(signal: string, ...args: any[]): void;
|
|
1277
|
+
|
|
1008
1278
|
// Methods
|
|
1009
1279
|
|
|
1010
1280
|
/**
|
|
@@ -1156,6 +1426,17 @@ export namespace Gtef {
|
|
|
1156
1426
|
}
|
|
1157
1427
|
|
|
1158
1428
|
namespace FileSaver {
|
|
1429
|
+
// Signal signatures
|
|
1430
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1431
|
+
'notify::buffer': (pspec: GObject.ParamSpec) => void;
|
|
1432
|
+
'notify::compression-type': (pspec: GObject.ParamSpec) => void;
|
|
1433
|
+
'notify::encoding': (pspec: GObject.ParamSpec) => void;
|
|
1434
|
+
'notify::file': (pspec: GObject.ParamSpec) => void;
|
|
1435
|
+
'notify::flags': (pspec: GObject.ParamSpec) => void;
|
|
1436
|
+
'notify::location': (pspec: GObject.ParamSpec) => void;
|
|
1437
|
+
'notify::newline-type': (pspec: GObject.ParamSpec) => void;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1159
1440
|
// Constructor properties interface
|
|
1160
1441
|
|
|
1161
1442
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -1222,6 +1503,15 @@ export namespace Gtef {
|
|
|
1222
1503
|
get newlineType(): GtkSource.NewlineType;
|
|
1223
1504
|
set newlineType(val: GtkSource.NewlineType);
|
|
1224
1505
|
|
|
1506
|
+
/**
|
|
1507
|
+
* Compile-time signal type information.
|
|
1508
|
+
*
|
|
1509
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1510
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1511
|
+
* @internal
|
|
1512
|
+
*/
|
|
1513
|
+
$signals: FileSaver.SignalSignatures;
|
|
1514
|
+
|
|
1225
1515
|
// Fields
|
|
1226
1516
|
|
|
1227
1517
|
object: GObject.Object;
|
|
@@ -1236,6 +1526,24 @@ export namespace Gtef {
|
|
|
1236
1526
|
|
|
1237
1527
|
static new_with_target(buffer: Buffer, file: File, target_location: Gio.File): FileSaver;
|
|
1238
1528
|
|
|
1529
|
+
// Signals
|
|
1530
|
+
|
|
1531
|
+
connect<K extends keyof FileSaver.SignalSignatures>(
|
|
1532
|
+
signal: K,
|
|
1533
|
+
callback: GObject.SignalCallback<this, FileSaver.SignalSignatures[K]>,
|
|
1534
|
+
): number;
|
|
1535
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1536
|
+
connect_after<K extends keyof FileSaver.SignalSignatures>(
|
|
1537
|
+
signal: K,
|
|
1538
|
+
callback: GObject.SignalCallback<this, FileSaver.SignalSignatures[K]>,
|
|
1539
|
+
): number;
|
|
1540
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1541
|
+
emit<K extends keyof FileSaver.SignalSignatures>(
|
|
1542
|
+
signal: K,
|
|
1543
|
+
...args: GObject.GjsParameters<FileSaver.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1544
|
+
): void;
|
|
1545
|
+
emit(signal: string, ...args: any[]): void;
|
|
1546
|
+
|
|
1239
1547
|
// Methods
|
|
1240
1548
|
|
|
1241
1549
|
get_buffer(): Buffer;
|
|
@@ -1326,6 +1634,12 @@ export namespace Gtef {
|
|
|
1326
1634
|
}
|
|
1327
1635
|
|
|
1328
1636
|
namespace FoldRegion {
|
|
1637
|
+
// Signal signatures
|
|
1638
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1639
|
+
'notify::buffer': (pspec: GObject.ParamSpec) => void;
|
|
1640
|
+
'notify::folded': (pspec: GObject.ParamSpec) => void;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1329
1643
|
// Constructor properties interface
|
|
1330
1644
|
|
|
1331
1645
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -1350,6 +1664,15 @@ export namespace Gtef {
|
|
|
1350
1664
|
get folded(): boolean;
|
|
1351
1665
|
set folded(val: boolean);
|
|
1352
1666
|
|
|
1667
|
+
/**
|
|
1668
|
+
* Compile-time signal type information.
|
|
1669
|
+
*
|
|
1670
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1671
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1672
|
+
* @internal
|
|
1673
|
+
*/
|
|
1674
|
+
$signals: FoldRegion.SignalSignatures;
|
|
1675
|
+
|
|
1353
1676
|
// Constructors
|
|
1354
1677
|
|
|
1355
1678
|
constructor(properties?: Partial<FoldRegion.ConstructorProps>, ...args: any[]);
|
|
@@ -1358,6 +1681,24 @@ export namespace Gtef {
|
|
|
1358
1681
|
|
|
1359
1682
|
static ['new'](buffer: Gtk.TextBuffer, start: Gtk.TextIter, end: Gtk.TextIter): FoldRegion;
|
|
1360
1683
|
|
|
1684
|
+
// Signals
|
|
1685
|
+
|
|
1686
|
+
connect<K extends keyof FoldRegion.SignalSignatures>(
|
|
1687
|
+
signal: K,
|
|
1688
|
+
callback: GObject.SignalCallback<this, FoldRegion.SignalSignatures[K]>,
|
|
1689
|
+
): number;
|
|
1690
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1691
|
+
connect_after<K extends keyof FoldRegion.SignalSignatures>(
|
|
1692
|
+
signal: K,
|
|
1693
|
+
callback: GObject.SignalCallback<this, FoldRegion.SignalSignatures[K]>,
|
|
1694
|
+
): number;
|
|
1695
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1696
|
+
emit<K extends keyof FoldRegion.SignalSignatures>(
|
|
1697
|
+
signal: K,
|
|
1698
|
+
...args: GObject.GjsParameters<FoldRegion.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1699
|
+
): void;
|
|
1700
|
+
emit(signal: string, ...args: any[]): void;
|
|
1701
|
+
|
|
1361
1702
|
// Methods
|
|
1362
1703
|
|
|
1363
1704
|
/**
|
|
@@ -1381,6 +1722,21 @@ export namespace Gtef {
|
|
|
1381
1722
|
}
|
|
1382
1723
|
|
|
1383
1724
|
namespace GutterRendererFolds {
|
|
1725
|
+
// Signal signatures
|
|
1726
|
+
interface SignalSignatures extends GtkSource.GutterRenderer.SignalSignatures {
|
|
1727
|
+
'notify::alignment-mode': (pspec: GObject.ParamSpec) => void;
|
|
1728
|
+
'notify::background-rgba': (pspec: GObject.ParamSpec) => void;
|
|
1729
|
+
'notify::background-set': (pspec: GObject.ParamSpec) => void;
|
|
1730
|
+
'notify::size': (pspec: GObject.ParamSpec) => void;
|
|
1731
|
+
'notify::view': (pspec: GObject.ParamSpec) => void;
|
|
1732
|
+
'notify::visible': (pspec: GObject.ParamSpec) => void;
|
|
1733
|
+
'notify::window-type': (pspec: GObject.ParamSpec) => void;
|
|
1734
|
+
'notify::xalign': (pspec: GObject.ParamSpec) => void;
|
|
1735
|
+
'notify::xpad': (pspec: GObject.ParamSpec) => void;
|
|
1736
|
+
'notify::yalign': (pspec: GObject.ParamSpec) => void;
|
|
1737
|
+
'notify::ypad': (pspec: GObject.ParamSpec) => void;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1384
1740
|
// Constructor properties interface
|
|
1385
1741
|
|
|
1386
1742
|
interface ConstructorProps extends GtkSource.GutterRenderer.ConstructorProps {}
|
|
@@ -1389,6 +1745,15 @@ export namespace Gtef {
|
|
|
1389
1745
|
class GutterRendererFolds extends GtkSource.GutterRenderer {
|
|
1390
1746
|
static $gtype: GObject.GType<GutterRendererFolds>;
|
|
1391
1747
|
|
|
1748
|
+
/**
|
|
1749
|
+
* Compile-time signal type information.
|
|
1750
|
+
*
|
|
1751
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1752
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1753
|
+
* @internal
|
|
1754
|
+
*/
|
|
1755
|
+
$signals: GutterRendererFolds.SignalSignatures;
|
|
1756
|
+
|
|
1392
1757
|
// Constructors
|
|
1393
1758
|
|
|
1394
1759
|
constructor(properties?: Partial<GutterRendererFolds.ConstructorProps>, ...args: any[]);
|
|
@@ -1397,6 +1762,26 @@ export namespace Gtef {
|
|
|
1397
1762
|
|
|
1398
1763
|
static ['new'](): GutterRendererFolds;
|
|
1399
1764
|
|
|
1765
|
+
// Signals
|
|
1766
|
+
|
|
1767
|
+
connect<K extends keyof GutterRendererFolds.SignalSignatures>(
|
|
1768
|
+
signal: K,
|
|
1769
|
+
callback: GObject.SignalCallback<this, GutterRendererFolds.SignalSignatures[K]>,
|
|
1770
|
+
): number;
|
|
1771
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1772
|
+
connect_after<K extends keyof GutterRendererFolds.SignalSignatures>(
|
|
1773
|
+
signal: K,
|
|
1774
|
+
callback: GObject.SignalCallback<this, GutterRendererFolds.SignalSignatures[K]>,
|
|
1775
|
+
): number;
|
|
1776
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1777
|
+
emit<K extends keyof GutterRendererFolds.SignalSignatures>(
|
|
1778
|
+
signal: K,
|
|
1779
|
+
...args: GObject.GjsParameters<GutterRendererFolds.SignalSignatures[K]> extends [any, ...infer Q]
|
|
1780
|
+
? Q
|
|
1781
|
+
: never
|
|
1782
|
+
): void;
|
|
1783
|
+
emit(signal: string, ...args: any[]): void;
|
|
1784
|
+
|
|
1400
1785
|
// Methods
|
|
1401
1786
|
|
|
1402
1787
|
/**
|
|
@@ -1410,6 +1795,58 @@ export namespace Gtef {
|
|
|
1410
1795
|
}
|
|
1411
1796
|
|
|
1412
1797
|
namespace InfoBar {
|
|
1798
|
+
// Signal signatures
|
|
1799
|
+
interface SignalSignatures extends Gtk.InfoBar.SignalSignatures {
|
|
1800
|
+
'notify::message-type': (pspec: GObject.ParamSpec) => void;
|
|
1801
|
+
'notify::revealed': (pspec: GObject.ParamSpec) => void;
|
|
1802
|
+
'notify::show-close-button': (pspec: GObject.ParamSpec) => void;
|
|
1803
|
+
'notify::baseline-position': (pspec: GObject.ParamSpec) => void;
|
|
1804
|
+
'notify::homogeneous': (pspec: GObject.ParamSpec) => void;
|
|
1805
|
+
'notify::spacing': (pspec: GObject.ParamSpec) => void;
|
|
1806
|
+
'notify::border-width': (pspec: GObject.ParamSpec) => void;
|
|
1807
|
+
'notify::child': (pspec: GObject.ParamSpec) => void;
|
|
1808
|
+
'notify::resize-mode': (pspec: GObject.ParamSpec) => void;
|
|
1809
|
+
'notify::app-paintable': (pspec: GObject.ParamSpec) => void;
|
|
1810
|
+
'notify::can-default': (pspec: GObject.ParamSpec) => void;
|
|
1811
|
+
'notify::can-focus': (pspec: GObject.ParamSpec) => void;
|
|
1812
|
+
'notify::composite-child': (pspec: GObject.ParamSpec) => void;
|
|
1813
|
+
'notify::double-buffered': (pspec: GObject.ParamSpec) => void;
|
|
1814
|
+
'notify::events': (pspec: GObject.ParamSpec) => void;
|
|
1815
|
+
'notify::expand': (pspec: GObject.ParamSpec) => void;
|
|
1816
|
+
'notify::focus-on-click': (pspec: GObject.ParamSpec) => void;
|
|
1817
|
+
'notify::halign': (pspec: GObject.ParamSpec) => void;
|
|
1818
|
+
'notify::has-default': (pspec: GObject.ParamSpec) => void;
|
|
1819
|
+
'notify::has-focus': (pspec: GObject.ParamSpec) => void;
|
|
1820
|
+
'notify::has-tooltip': (pspec: GObject.ParamSpec) => void;
|
|
1821
|
+
'notify::height-request': (pspec: GObject.ParamSpec) => void;
|
|
1822
|
+
'notify::hexpand': (pspec: GObject.ParamSpec) => void;
|
|
1823
|
+
'notify::hexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
1824
|
+
'notify::is-focus': (pspec: GObject.ParamSpec) => void;
|
|
1825
|
+
'notify::margin': (pspec: GObject.ParamSpec) => void;
|
|
1826
|
+
'notify::margin-bottom': (pspec: GObject.ParamSpec) => void;
|
|
1827
|
+
'notify::margin-end': (pspec: GObject.ParamSpec) => void;
|
|
1828
|
+
'notify::margin-left': (pspec: GObject.ParamSpec) => void;
|
|
1829
|
+
'notify::margin-right': (pspec: GObject.ParamSpec) => void;
|
|
1830
|
+
'notify::margin-start': (pspec: GObject.ParamSpec) => void;
|
|
1831
|
+
'notify::margin-top': (pspec: GObject.ParamSpec) => void;
|
|
1832
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
1833
|
+
'notify::no-show-all': (pspec: GObject.ParamSpec) => void;
|
|
1834
|
+
'notify::opacity': (pspec: GObject.ParamSpec) => void;
|
|
1835
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
1836
|
+
'notify::receives-default': (pspec: GObject.ParamSpec) => void;
|
|
1837
|
+
'notify::scale-factor': (pspec: GObject.ParamSpec) => void;
|
|
1838
|
+
'notify::sensitive': (pspec: GObject.ParamSpec) => void;
|
|
1839
|
+
'notify::style': (pspec: GObject.ParamSpec) => void;
|
|
1840
|
+
'notify::tooltip-markup': (pspec: GObject.ParamSpec) => void;
|
|
1841
|
+
'notify::tooltip-text': (pspec: GObject.ParamSpec) => void;
|
|
1842
|
+
'notify::valign': (pspec: GObject.ParamSpec) => void;
|
|
1843
|
+
'notify::vexpand': (pspec: GObject.ParamSpec) => void;
|
|
1844
|
+
'notify::vexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
1845
|
+
'notify::visible': (pspec: GObject.ParamSpec) => void;
|
|
1846
|
+
'notify::width-request': (pspec: GObject.ParamSpec) => void;
|
|
1847
|
+
'notify::window': (pspec: GObject.ParamSpec) => void;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1413
1850
|
// Constructor properties interface
|
|
1414
1851
|
|
|
1415
1852
|
interface ConstructorProps
|
|
@@ -1422,6 +1859,15 @@ export namespace Gtef {
|
|
|
1422
1859
|
class InfoBar extends Gtk.InfoBar implements Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
1423
1860
|
static $gtype: GObject.GType<InfoBar>;
|
|
1424
1861
|
|
|
1862
|
+
/**
|
|
1863
|
+
* Compile-time signal type information.
|
|
1864
|
+
*
|
|
1865
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1866
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1867
|
+
* @internal
|
|
1868
|
+
*/
|
|
1869
|
+
$signals: InfoBar.SignalSignatures;
|
|
1870
|
+
|
|
1425
1871
|
// Constructors
|
|
1426
1872
|
|
|
1427
1873
|
constructor(properties?: Partial<InfoBar.ConstructorProps>, ...args: any[]);
|
|
@@ -1432,6 +1878,24 @@ export namespace Gtef {
|
|
|
1432
1878
|
|
|
1433
1879
|
static new_simple(msg_type: Gtk.MessageType, primary_msg: string, secondary_msg?: string | null): InfoBar;
|
|
1434
1880
|
|
|
1881
|
+
// Signals
|
|
1882
|
+
|
|
1883
|
+
connect<K extends keyof InfoBar.SignalSignatures>(
|
|
1884
|
+
signal: K,
|
|
1885
|
+
callback: GObject.SignalCallback<this, InfoBar.SignalSignatures[K]>,
|
|
1886
|
+
): number;
|
|
1887
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1888
|
+
connect_after<K extends keyof InfoBar.SignalSignatures>(
|
|
1889
|
+
signal: K,
|
|
1890
|
+
callback: GObject.SignalCallback<this, InfoBar.SignalSignatures[K]>,
|
|
1891
|
+
): number;
|
|
1892
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1893
|
+
emit<K extends keyof InfoBar.SignalSignatures>(
|
|
1894
|
+
signal: K,
|
|
1895
|
+
...args: GObject.GjsParameters<InfoBar.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1896
|
+
): void;
|
|
1897
|
+
emit(signal: string, ...args: any[]): void;
|
|
1898
|
+
|
|
1435
1899
|
// Static methods
|
|
1436
1900
|
|
|
1437
1901
|
/**
|
|
@@ -1597,7 +2061,21 @@ export namespace Gtef {
|
|
|
1597
2061
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1598
2062
|
*/
|
|
1599
2063
|
get_data(key: string): any | null;
|
|
1600
|
-
|
|
2064
|
+
/**
|
|
2065
|
+
* Gets a property of an object.
|
|
2066
|
+
*
|
|
2067
|
+
* The value can be:
|
|
2068
|
+
* - 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)
|
|
2069
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
2070
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
2071
|
+
*
|
|
2072
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
2073
|
+
*
|
|
2074
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
2075
|
+
* @param property_name The name of the property to get
|
|
2076
|
+
* @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
|
|
2077
|
+
*/
|
|
2078
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
1601
2079
|
/**
|
|
1602
2080
|
* This function gets back user data pointers stored via
|
|
1603
2081
|
* g_object_set_qdata().
|
|
@@ -1725,7 +2203,12 @@ export namespace Gtef {
|
|
|
1725
2203
|
* @param data data to associate with that key
|
|
1726
2204
|
*/
|
|
1727
2205
|
set_data(key: string, data?: any | null): void;
|
|
1728
|
-
|
|
2206
|
+
/**
|
|
2207
|
+
* Sets a property on an object.
|
|
2208
|
+
* @param property_name The name of the property to set
|
|
2209
|
+
* @param value The value to set the property to
|
|
2210
|
+
*/
|
|
2211
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1729
2212
|
/**
|
|
1730
2213
|
* Remove a specified datum from the object's data associations,
|
|
1731
2214
|
* without invoking the association's destroy handler.
|
|
@@ -1875,22 +2358,39 @@ export namespace Gtef {
|
|
|
1875
2358
|
* @param pspec
|
|
1876
2359
|
*/
|
|
1877
2360
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
2361
|
+
/**
|
|
2362
|
+
* 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.
|
|
2363
|
+
* @param id Handler ID of the handler to be disconnected
|
|
2364
|
+
*/
|
|
1878
2365
|
disconnect(id: number): void;
|
|
2366
|
+
/**
|
|
2367
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
2368
|
+
* @param properties Object containing the properties to set
|
|
2369
|
+
*/
|
|
1879
2370
|
set(properties: { [key: string]: any }): void;
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
2371
|
+
/**
|
|
2372
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
2373
|
+
* @param id Handler ID of the handler to be blocked
|
|
2374
|
+
*/
|
|
2375
|
+
block_signal_handler(id: number): void;
|
|
2376
|
+
/**
|
|
2377
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
2378
|
+
* @param id Handler ID of the handler to be unblocked
|
|
2379
|
+
*/
|
|
2380
|
+
unblock_signal_handler(id: number): void;
|
|
2381
|
+
/**
|
|
2382
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
2383
|
+
* @param detailedName Name of the signal to stop emission of
|
|
2384
|
+
*/
|
|
2385
|
+
stop_emission_by_name(detailedName: string): void;
|
|
1883
2386
|
}
|
|
1884
2387
|
|
|
1885
2388
|
namespace MenuShell {
|
|
1886
|
-
// Signal
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
(
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
interface MenuItemSelected {
|
|
1893
|
-
(menu_item: Gtk.MenuItem): void;
|
|
2389
|
+
// Signal signatures
|
|
2390
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2391
|
+
'menu-item-deselected': (arg0: Gtk.MenuItem) => void;
|
|
2392
|
+
'menu-item-selected': (arg0: Gtk.MenuItem) => void;
|
|
2393
|
+
'notify::menu-shell': (pspec: GObject.ParamSpec) => void;
|
|
1894
2394
|
}
|
|
1895
2395
|
|
|
1896
2396
|
// Constructor properties interface
|
|
@@ -1915,6 +2415,15 @@ export namespace Gtef {
|
|
|
1915
2415
|
*/
|
|
1916
2416
|
get menuShell(): Gtk.MenuShell;
|
|
1917
2417
|
|
|
2418
|
+
/**
|
|
2419
|
+
* Compile-time signal type information.
|
|
2420
|
+
*
|
|
2421
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2422
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2423
|
+
* @internal
|
|
2424
|
+
*/
|
|
2425
|
+
$signals: MenuShell.SignalSignatures;
|
|
2426
|
+
|
|
1918
2427
|
// Constructors
|
|
1919
2428
|
|
|
1920
2429
|
constructor(properties?: Partial<MenuShell.ConstructorProps>, ...args: any[]);
|
|
@@ -1923,18 +2432,21 @@ export namespace Gtef {
|
|
|
1923
2432
|
|
|
1924
2433
|
// Signals
|
|
1925
2434
|
|
|
1926
|
-
connect
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
2435
|
+
connect<K extends keyof MenuShell.SignalSignatures>(
|
|
2436
|
+
signal: K,
|
|
2437
|
+
callback: GObject.SignalCallback<this, MenuShell.SignalSignatures[K]>,
|
|
2438
|
+
): number;
|
|
2439
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2440
|
+
connect_after<K extends keyof MenuShell.SignalSignatures>(
|
|
2441
|
+
signal: K,
|
|
2442
|
+
callback: GObject.SignalCallback<this, MenuShell.SignalSignatures[K]>,
|
|
1933
2443
|
): number;
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
2444
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2445
|
+
emit<K extends keyof MenuShell.SignalSignatures>(
|
|
2446
|
+
signal: K,
|
|
2447
|
+
...args: GObject.GjsParameters<MenuShell.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2448
|
+
): void;
|
|
2449
|
+
emit(signal: string, ...args: any[]): void;
|
|
1938
2450
|
|
|
1939
2451
|
// Static methods
|
|
1940
2452
|
|
|
@@ -1956,6 +2468,58 @@ export namespace Gtef {
|
|
|
1956
2468
|
}
|
|
1957
2469
|
|
|
1958
2470
|
namespace Tab {
|
|
2471
|
+
// Signal signatures
|
|
2472
|
+
interface SignalSignatures extends Gtk.Grid.SignalSignatures {
|
|
2473
|
+
'notify::baseline-row': (pspec: GObject.ParamSpec) => void;
|
|
2474
|
+
'notify::column-homogeneous': (pspec: GObject.ParamSpec) => void;
|
|
2475
|
+
'notify::column-spacing': (pspec: GObject.ParamSpec) => void;
|
|
2476
|
+
'notify::row-homogeneous': (pspec: GObject.ParamSpec) => void;
|
|
2477
|
+
'notify::row-spacing': (pspec: GObject.ParamSpec) => void;
|
|
2478
|
+
'notify::border-width': (pspec: GObject.ParamSpec) => void;
|
|
2479
|
+
'notify::child': (pspec: GObject.ParamSpec) => void;
|
|
2480
|
+
'notify::resize-mode': (pspec: GObject.ParamSpec) => void;
|
|
2481
|
+
'notify::app-paintable': (pspec: GObject.ParamSpec) => void;
|
|
2482
|
+
'notify::can-default': (pspec: GObject.ParamSpec) => void;
|
|
2483
|
+
'notify::can-focus': (pspec: GObject.ParamSpec) => void;
|
|
2484
|
+
'notify::composite-child': (pspec: GObject.ParamSpec) => void;
|
|
2485
|
+
'notify::double-buffered': (pspec: GObject.ParamSpec) => void;
|
|
2486
|
+
'notify::events': (pspec: GObject.ParamSpec) => void;
|
|
2487
|
+
'notify::expand': (pspec: GObject.ParamSpec) => void;
|
|
2488
|
+
'notify::focus-on-click': (pspec: GObject.ParamSpec) => void;
|
|
2489
|
+
'notify::halign': (pspec: GObject.ParamSpec) => void;
|
|
2490
|
+
'notify::has-default': (pspec: GObject.ParamSpec) => void;
|
|
2491
|
+
'notify::has-focus': (pspec: GObject.ParamSpec) => void;
|
|
2492
|
+
'notify::has-tooltip': (pspec: GObject.ParamSpec) => void;
|
|
2493
|
+
'notify::height-request': (pspec: GObject.ParamSpec) => void;
|
|
2494
|
+
'notify::hexpand': (pspec: GObject.ParamSpec) => void;
|
|
2495
|
+
'notify::hexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
2496
|
+
'notify::is-focus': (pspec: GObject.ParamSpec) => void;
|
|
2497
|
+
'notify::margin': (pspec: GObject.ParamSpec) => void;
|
|
2498
|
+
'notify::margin-bottom': (pspec: GObject.ParamSpec) => void;
|
|
2499
|
+
'notify::margin-end': (pspec: GObject.ParamSpec) => void;
|
|
2500
|
+
'notify::margin-left': (pspec: GObject.ParamSpec) => void;
|
|
2501
|
+
'notify::margin-right': (pspec: GObject.ParamSpec) => void;
|
|
2502
|
+
'notify::margin-start': (pspec: GObject.ParamSpec) => void;
|
|
2503
|
+
'notify::margin-top': (pspec: GObject.ParamSpec) => void;
|
|
2504
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
2505
|
+
'notify::no-show-all': (pspec: GObject.ParamSpec) => void;
|
|
2506
|
+
'notify::opacity': (pspec: GObject.ParamSpec) => void;
|
|
2507
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
2508
|
+
'notify::receives-default': (pspec: GObject.ParamSpec) => void;
|
|
2509
|
+
'notify::scale-factor': (pspec: GObject.ParamSpec) => void;
|
|
2510
|
+
'notify::sensitive': (pspec: GObject.ParamSpec) => void;
|
|
2511
|
+
'notify::style': (pspec: GObject.ParamSpec) => void;
|
|
2512
|
+
'notify::tooltip-markup': (pspec: GObject.ParamSpec) => void;
|
|
2513
|
+
'notify::tooltip-text': (pspec: GObject.ParamSpec) => void;
|
|
2514
|
+
'notify::valign': (pspec: GObject.ParamSpec) => void;
|
|
2515
|
+
'notify::vexpand': (pspec: GObject.ParamSpec) => void;
|
|
2516
|
+
'notify::vexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
2517
|
+
'notify::visible': (pspec: GObject.ParamSpec) => void;
|
|
2518
|
+
'notify::width-request': (pspec: GObject.ParamSpec) => void;
|
|
2519
|
+
'notify::window': (pspec: GObject.ParamSpec) => void;
|
|
2520
|
+
'notify::orientation': (pspec: GObject.ParamSpec) => void;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
1959
2523
|
// Constructor properties interface
|
|
1960
2524
|
|
|
1961
2525
|
interface ConstructorProps
|
|
@@ -1968,6 +2532,15 @@ export namespace Gtef {
|
|
|
1968
2532
|
class Tab extends Gtk.Grid implements Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
1969
2533
|
static $gtype: GObject.GType<Tab>;
|
|
1970
2534
|
|
|
2535
|
+
/**
|
|
2536
|
+
* Compile-time signal type information.
|
|
2537
|
+
*
|
|
2538
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2539
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2540
|
+
* @internal
|
|
2541
|
+
*/
|
|
2542
|
+
$signals: Tab.SignalSignatures;
|
|
2543
|
+
|
|
1971
2544
|
// Constructors
|
|
1972
2545
|
|
|
1973
2546
|
constructor(properties?: Partial<Tab.ConstructorProps>, ...args: any[]);
|
|
@@ -1979,6 +2552,24 @@ export namespace Gtef {
|
|
|
1979
2552
|
|
|
1980
2553
|
static ['new'](...args: never[]): any;
|
|
1981
2554
|
|
|
2555
|
+
// Signals
|
|
2556
|
+
|
|
2557
|
+
connect<K extends keyof Tab.SignalSignatures>(
|
|
2558
|
+
signal: K,
|
|
2559
|
+
callback: GObject.SignalCallback<this, Tab.SignalSignatures[K]>,
|
|
2560
|
+
): number;
|
|
2561
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2562
|
+
connect_after<K extends keyof Tab.SignalSignatures>(
|
|
2563
|
+
signal: K,
|
|
2564
|
+
callback: GObject.SignalCallback<this, Tab.SignalSignatures[K]>,
|
|
2565
|
+
): number;
|
|
2566
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2567
|
+
emit<K extends keyof Tab.SignalSignatures>(
|
|
2568
|
+
signal: K,
|
|
2569
|
+
...args: GObject.GjsParameters<Tab.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2570
|
+
): void;
|
|
2571
|
+
emit(signal: string, ...args: any[]): void;
|
|
2572
|
+
|
|
1982
2573
|
// Methods
|
|
1983
2574
|
|
|
1984
2575
|
/**
|
|
@@ -2126,7 +2717,21 @@ export namespace Gtef {
|
|
|
2126
2717
|
* @returns the data if found, or %NULL if no such data exists.
|
|
2127
2718
|
*/
|
|
2128
2719
|
get_data(key: string): any | null;
|
|
2129
|
-
|
|
2720
|
+
/**
|
|
2721
|
+
* Gets a property of an object.
|
|
2722
|
+
*
|
|
2723
|
+
* The value can be:
|
|
2724
|
+
* - 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)
|
|
2725
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
2726
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
2727
|
+
*
|
|
2728
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
2729
|
+
*
|
|
2730
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
2731
|
+
* @param property_name The name of the property to get
|
|
2732
|
+
* @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
|
|
2733
|
+
*/
|
|
2734
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
2130
2735
|
/**
|
|
2131
2736
|
* This function gets back user data pointers stored via
|
|
2132
2737
|
* g_object_set_qdata().
|
|
@@ -2254,7 +2859,12 @@ export namespace Gtef {
|
|
|
2254
2859
|
* @param data data to associate with that key
|
|
2255
2860
|
*/
|
|
2256
2861
|
set_data(key: string, data?: any | null): void;
|
|
2257
|
-
|
|
2862
|
+
/**
|
|
2863
|
+
* Sets a property on an object.
|
|
2864
|
+
* @param property_name The name of the property to set
|
|
2865
|
+
* @param value The value to set the property to
|
|
2866
|
+
*/
|
|
2867
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
2258
2868
|
/**
|
|
2259
2869
|
* Remove a specified datum from the object's data associations,
|
|
2260
2870
|
* without invoking the association's destroy handler.
|
|
@@ -2404,14 +3014,117 @@ export namespace Gtef {
|
|
|
2404
3014
|
* @param pspec
|
|
2405
3015
|
*/
|
|
2406
3016
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
3017
|
+
/**
|
|
3018
|
+
* 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.
|
|
3019
|
+
* @param id Handler ID of the handler to be disconnected
|
|
3020
|
+
*/
|
|
2407
3021
|
disconnect(id: number): void;
|
|
3022
|
+
/**
|
|
3023
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
3024
|
+
* @param properties Object containing the properties to set
|
|
3025
|
+
*/
|
|
2408
3026
|
set(properties: { [key: string]: any }): void;
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
3027
|
+
/**
|
|
3028
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
3029
|
+
* @param id Handler ID of the handler to be blocked
|
|
3030
|
+
*/
|
|
3031
|
+
block_signal_handler(id: number): void;
|
|
3032
|
+
/**
|
|
3033
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
3034
|
+
* @param id Handler ID of the handler to be unblocked
|
|
3035
|
+
*/
|
|
3036
|
+
unblock_signal_handler(id: number): void;
|
|
3037
|
+
/**
|
|
3038
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
3039
|
+
* @param detailedName Name of the signal to stop emission of
|
|
3040
|
+
*/
|
|
3041
|
+
stop_emission_by_name(detailedName: string): void;
|
|
2412
3042
|
}
|
|
2413
3043
|
|
|
2414
3044
|
namespace View {
|
|
3045
|
+
// Signal signatures
|
|
3046
|
+
interface SignalSignatures extends GtkSource.View.SignalSignatures {
|
|
3047
|
+
'notify::auto-indent': (pspec: GObject.ParamSpec) => void;
|
|
3048
|
+
'notify::background-pattern': (pspec: GObject.ParamSpec) => void;
|
|
3049
|
+
'notify::completion': (pspec: GObject.ParamSpec) => void;
|
|
3050
|
+
'notify::draw-spaces': (pspec: GObject.ParamSpec) => void;
|
|
3051
|
+
'notify::highlight-current-line': (pspec: GObject.ParamSpec) => void;
|
|
3052
|
+
'notify::indent-on-tab': (pspec: GObject.ParamSpec) => void;
|
|
3053
|
+
'notify::indent-width': (pspec: GObject.ParamSpec) => void;
|
|
3054
|
+
'notify::insert-spaces-instead-of-tabs': (pspec: GObject.ParamSpec) => void;
|
|
3055
|
+
'notify::right-margin-position': (pspec: GObject.ParamSpec) => void;
|
|
3056
|
+
'notify::show-line-marks': (pspec: GObject.ParamSpec) => void;
|
|
3057
|
+
'notify::show-line-numbers': (pspec: GObject.ParamSpec) => void;
|
|
3058
|
+
'notify::show-right-margin': (pspec: GObject.ParamSpec) => void;
|
|
3059
|
+
'notify::smart-backspace': (pspec: GObject.ParamSpec) => void;
|
|
3060
|
+
'notify::smart-home-end': (pspec: GObject.ParamSpec) => void;
|
|
3061
|
+
'notify::space-drawer': (pspec: GObject.ParamSpec) => void;
|
|
3062
|
+
'notify::tab-width': (pspec: GObject.ParamSpec) => void;
|
|
3063
|
+
'notify::accepts-tab': (pspec: GObject.ParamSpec) => void;
|
|
3064
|
+
'notify::bottom-margin': (pspec: GObject.ParamSpec) => void;
|
|
3065
|
+
'notify::buffer': (pspec: GObject.ParamSpec) => void;
|
|
3066
|
+
'notify::cursor-visible': (pspec: GObject.ParamSpec) => void;
|
|
3067
|
+
'notify::editable': (pspec: GObject.ParamSpec) => void;
|
|
3068
|
+
'notify::im-module': (pspec: GObject.ParamSpec) => void;
|
|
3069
|
+
'notify::indent': (pspec: GObject.ParamSpec) => void;
|
|
3070
|
+
'notify::input-hints': (pspec: GObject.ParamSpec) => void;
|
|
3071
|
+
'notify::input-purpose': (pspec: GObject.ParamSpec) => void;
|
|
3072
|
+
'notify::justification': (pspec: GObject.ParamSpec) => void;
|
|
3073
|
+
'notify::left-margin': (pspec: GObject.ParamSpec) => void;
|
|
3074
|
+
'notify::monospace': (pspec: GObject.ParamSpec) => void;
|
|
3075
|
+
'notify::overwrite': (pspec: GObject.ParamSpec) => void;
|
|
3076
|
+
'notify::pixels-above-lines': (pspec: GObject.ParamSpec) => void;
|
|
3077
|
+
'notify::pixels-below-lines': (pspec: GObject.ParamSpec) => void;
|
|
3078
|
+
'notify::pixels-inside-wrap': (pspec: GObject.ParamSpec) => void;
|
|
3079
|
+
'notify::populate-all': (pspec: GObject.ParamSpec) => void;
|
|
3080
|
+
'notify::right-margin': (pspec: GObject.ParamSpec) => void;
|
|
3081
|
+
'notify::tabs': (pspec: GObject.ParamSpec) => void;
|
|
3082
|
+
'notify::top-margin': (pspec: GObject.ParamSpec) => void;
|
|
3083
|
+
'notify::wrap-mode': (pspec: GObject.ParamSpec) => void;
|
|
3084
|
+
'notify::border-width': (pspec: GObject.ParamSpec) => void;
|
|
3085
|
+
'notify::child': (pspec: GObject.ParamSpec) => void;
|
|
3086
|
+
'notify::resize-mode': (pspec: GObject.ParamSpec) => void;
|
|
3087
|
+
'notify::app-paintable': (pspec: GObject.ParamSpec) => void;
|
|
3088
|
+
'notify::can-default': (pspec: GObject.ParamSpec) => void;
|
|
3089
|
+
'notify::can-focus': (pspec: GObject.ParamSpec) => void;
|
|
3090
|
+
'notify::composite-child': (pspec: GObject.ParamSpec) => void;
|
|
3091
|
+
'notify::double-buffered': (pspec: GObject.ParamSpec) => void;
|
|
3092
|
+
'notify::events': (pspec: GObject.ParamSpec) => void;
|
|
3093
|
+
'notify::expand': (pspec: GObject.ParamSpec) => void;
|
|
3094
|
+
'notify::focus-on-click': (pspec: GObject.ParamSpec) => void;
|
|
3095
|
+
'notify::halign': (pspec: GObject.ParamSpec) => void;
|
|
3096
|
+
'notify::has-default': (pspec: GObject.ParamSpec) => void;
|
|
3097
|
+
'notify::has-focus': (pspec: GObject.ParamSpec) => void;
|
|
3098
|
+
'notify::has-tooltip': (pspec: GObject.ParamSpec) => void;
|
|
3099
|
+
'notify::height-request': (pspec: GObject.ParamSpec) => void;
|
|
3100
|
+
'notify::hexpand': (pspec: GObject.ParamSpec) => void;
|
|
3101
|
+
'notify::hexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
3102
|
+
'notify::is-focus': (pspec: GObject.ParamSpec) => void;
|
|
3103
|
+
'notify::margin': (pspec: GObject.ParamSpec) => void;
|
|
3104
|
+
'notify::margin-bottom': (pspec: GObject.ParamSpec) => void;
|
|
3105
|
+
'notify::margin-end': (pspec: GObject.ParamSpec) => void;
|
|
3106
|
+
'notify::margin-left': (pspec: GObject.ParamSpec) => void;
|
|
3107
|
+
'notify::margin-right': (pspec: GObject.ParamSpec) => void;
|
|
3108
|
+
'notify::margin-start': (pspec: GObject.ParamSpec) => void;
|
|
3109
|
+
'notify::margin-top': (pspec: GObject.ParamSpec) => void;
|
|
3110
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
3111
|
+
'notify::no-show-all': (pspec: GObject.ParamSpec) => void;
|
|
3112
|
+
'notify::opacity': (pspec: GObject.ParamSpec) => void;
|
|
3113
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
3114
|
+
'notify::receives-default': (pspec: GObject.ParamSpec) => void;
|
|
3115
|
+
'notify::scale-factor': (pspec: GObject.ParamSpec) => void;
|
|
3116
|
+
'notify::sensitive': (pspec: GObject.ParamSpec) => void;
|
|
3117
|
+
'notify::style': (pspec: GObject.ParamSpec) => void;
|
|
3118
|
+
'notify::tooltip-markup': (pspec: GObject.ParamSpec) => void;
|
|
3119
|
+
'notify::tooltip-text': (pspec: GObject.ParamSpec) => void;
|
|
3120
|
+
'notify::valign': (pspec: GObject.ParamSpec) => void;
|
|
3121
|
+
'notify::vexpand': (pspec: GObject.ParamSpec) => void;
|
|
3122
|
+
'notify::vexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
3123
|
+
'notify::visible': (pspec: GObject.ParamSpec) => void;
|
|
3124
|
+
'notify::width-request': (pspec: GObject.ParamSpec) => void;
|
|
3125
|
+
'notify::window': (pspec: GObject.ParamSpec) => void;
|
|
3126
|
+
}
|
|
3127
|
+
|
|
2415
3128
|
// Constructor properties interface
|
|
2416
3129
|
|
|
2417
3130
|
interface ConstructorProps
|
|
@@ -2424,6 +3137,15 @@ export namespace Gtef {
|
|
|
2424
3137
|
class View extends GtkSource.View implements Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
2425
3138
|
static $gtype: GObject.GType<View>;
|
|
2426
3139
|
|
|
3140
|
+
/**
|
|
3141
|
+
* Compile-time signal type information.
|
|
3142
|
+
*
|
|
3143
|
+
* This instance property is generated only for TypeScript type checking.
|
|
3144
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
3145
|
+
* @internal
|
|
3146
|
+
*/
|
|
3147
|
+
$signals: View.SignalSignatures;
|
|
3148
|
+
|
|
2427
3149
|
// Constructors
|
|
2428
3150
|
|
|
2429
3151
|
constructor(properties?: Partial<View.ConstructorProps>, ...args: any[]);
|
|
@@ -2432,6 +3154,24 @@ export namespace Gtef {
|
|
|
2432
3154
|
|
|
2433
3155
|
static ['new'](): View;
|
|
2434
3156
|
|
|
3157
|
+
// Signals
|
|
3158
|
+
|
|
3159
|
+
connect<K extends keyof View.SignalSignatures>(
|
|
3160
|
+
signal: K,
|
|
3161
|
+
callback: GObject.SignalCallback<this, View.SignalSignatures[K]>,
|
|
3162
|
+
): number;
|
|
3163
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
3164
|
+
connect_after<K extends keyof View.SignalSignatures>(
|
|
3165
|
+
signal: K,
|
|
3166
|
+
callback: GObject.SignalCallback<this, View.SignalSignatures[K]>,
|
|
3167
|
+
): number;
|
|
3168
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
3169
|
+
emit<K extends keyof View.SignalSignatures>(
|
|
3170
|
+
signal: K,
|
|
3171
|
+
...args: GObject.GjsParameters<View.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
3172
|
+
): void;
|
|
3173
|
+
emit(signal: string, ...args: any[]): void;
|
|
3174
|
+
|
|
2435
3175
|
// Methods
|
|
2436
3176
|
|
|
2437
3177
|
/**
|
|
@@ -2603,7 +3343,21 @@ export namespace Gtef {
|
|
|
2603
3343
|
* @returns the data if found, or %NULL if no such data exists.
|
|
2604
3344
|
*/
|
|
2605
3345
|
get_data(key: string): any | null;
|
|
2606
|
-
|
|
3346
|
+
/**
|
|
3347
|
+
* Gets a property of an object.
|
|
3348
|
+
*
|
|
3349
|
+
* The value can be:
|
|
3350
|
+
* - 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)
|
|
3351
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
3352
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
3353
|
+
*
|
|
3354
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
3355
|
+
*
|
|
3356
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
3357
|
+
* @param property_name The name of the property to get
|
|
3358
|
+
* @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
|
|
3359
|
+
*/
|
|
3360
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
2607
3361
|
/**
|
|
2608
3362
|
* This function gets back user data pointers stored via
|
|
2609
3363
|
* g_object_set_qdata().
|
|
@@ -2731,7 +3485,12 @@ export namespace Gtef {
|
|
|
2731
3485
|
* @param data data to associate with that key
|
|
2732
3486
|
*/
|
|
2733
3487
|
set_data(key: string, data?: any | null): void;
|
|
2734
|
-
|
|
3488
|
+
/**
|
|
3489
|
+
* Sets a property on an object.
|
|
3490
|
+
* @param property_name The name of the property to set
|
|
3491
|
+
* @param value The value to set the property to
|
|
3492
|
+
*/
|
|
3493
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
2735
3494
|
/**
|
|
2736
3495
|
* Remove a specified datum from the object's data associations,
|
|
2737
3496
|
* without invoking the association's destroy handler.
|
|
@@ -2881,11 +3640,31 @@ export namespace Gtef {
|
|
|
2881
3640
|
* @param pspec
|
|
2882
3641
|
*/
|
|
2883
3642
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
3643
|
+
/**
|
|
3644
|
+
* 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.
|
|
3645
|
+
* @param id Handler ID of the handler to be disconnected
|
|
3646
|
+
*/
|
|
2884
3647
|
disconnect(id: number): void;
|
|
3648
|
+
/**
|
|
3649
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
3650
|
+
* @param properties Object containing the properties to set
|
|
3651
|
+
*/
|
|
2885
3652
|
set(properties: { [key: string]: any }): void;
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
3653
|
+
/**
|
|
3654
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
3655
|
+
* @param id Handler ID of the handler to be blocked
|
|
3656
|
+
*/
|
|
3657
|
+
block_signal_handler(id: number): void;
|
|
3658
|
+
/**
|
|
3659
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
3660
|
+
* @param id Handler ID of the handler to be unblocked
|
|
3661
|
+
*/
|
|
3662
|
+
unblock_signal_handler(id: number): void;
|
|
3663
|
+
/**
|
|
3664
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
3665
|
+
* @param detailedName Name of the signal to stop emission of
|
|
3666
|
+
*/
|
|
3667
|
+
stop_emission_by_name(detailedName: string): void;
|
|
2889
3668
|
}
|
|
2890
3669
|
|
|
2891
3670
|
class ActionInfo {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtef-2",
|
|
3
|
-
"version": "2.0.0-4.0.0-beta.
|
|
3
|
+
"version": "2.0.0-4.0.0-beta.24",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gtef-2, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gtef-2.js",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/atk-1.0": "^2.
|
|
35
|
-
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.
|
|
36
|
-
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.
|
|
37
|
-
"@girs/gdk-3.0": "^3.24.
|
|
38
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.
|
|
39
|
-
"@girs/gio-2.0": "^2.
|
|
40
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
41
|
-
"@girs/glib-2.0": "^2.
|
|
42
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
43
|
-
"@girs/gobject-2.0": "^2.
|
|
44
|
-
"@girs/gtk-3.0": "^3.24.
|
|
45
|
-
"@girs/gtksource-3.0": "^3.0.0-4.0.0-beta.
|
|
46
|
-
"@girs/harfbuzz-0.0": "^
|
|
47
|
-
"@girs/pango-1.0": "^1.56.
|
|
48
|
-
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.
|
|
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/freetype2-2.0": "^2.0.0-4.0.0-beta.24",
|
|
37
|
+
"@girs/gdk-3.0": "^3.24.50-4.0.0-beta.24",
|
|
38
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.24",
|
|
39
|
+
"@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
|
|
40
|
+
"@girs/gjs": "^4.0.0-beta.24",
|
|
41
|
+
"@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
|
|
42
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
|
|
43
|
+
"@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24",
|
|
44
|
+
"@girs/gtk-3.0": "^3.24.50-4.0.0-beta.24",
|
|
45
|
+
"@girs/gtksource-3.0": "^3.0.0-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": "*"
|