@girs/cogl-2.0 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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/cogl-2.0.d.ts +646 -0
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/cogl-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Cogl-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Cogl-2.0, 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/cogl-2.0.d.ts CHANGED
@@ -7,6 +7,8 @@
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 GObject from '@girs/gobject-2.0';
12
14
  import type GLib from '@girs/glib-2.0';
@@ -3511,6 +3513,11 @@ export namespace Cogl {
3511
3513
  */
3512
3514
  NO_ATLAS,
3513
3515
  }
3516
+ namespace AtlasTexture {
3517
+ // Signal signatures
3518
+ interface SignalSignatures extends Object.SignalSignatures {}
3519
+ }
3520
+
3514
3521
  class AtlasTexture extends Object {
3515
3522
  static $gtype: GObject.GType<AtlasTexture>;
3516
3523
 
@@ -3532,6 +3539,29 @@ export namespace Cogl {
3532
3539
  static new_from_file(ctx: Context, filename: string): AtlasTexture;
3533
3540
 
3534
3541
  static new_with_size(ctx: Context, width: number, height: number): AtlasTexture;
3542
+
3543
+ // Signals
3544
+
3545
+ connect<K extends keyof AtlasTexture.SignalSignatures>(
3546
+ signal: K,
3547
+ callback: GObject.SignalCallback<this, AtlasTexture.SignalSignatures[K]>,
3548
+ ): number;
3549
+ connect(signal: string, callback: (...args: any[]) => any): number;
3550
+ connect_after<K extends keyof AtlasTexture.SignalSignatures>(
3551
+ signal: K,
3552
+ callback: GObject.SignalCallback<this, AtlasTexture.SignalSignatures[K]>,
3553
+ ): number;
3554
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3555
+ emit<K extends keyof AtlasTexture.SignalSignatures>(
3556
+ signal: K,
3557
+ ...args: GObject.GjsParameters<AtlasTexture.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3558
+ ): void;
3559
+ emit(signal: string, ...args: any[]): void;
3560
+ }
3561
+
3562
+ namespace Attribute {
3563
+ // Signal signatures
3564
+ interface SignalSignatures extends Object.SignalSignatures {}
3535
3565
  }
3536
3566
 
3537
3567
  class Attribute extends Object {
@@ -3583,6 +3613,24 @@ export namespace Cogl {
3583
3613
 
3584
3614
  static new_const_4x4fv(context: Context, name: string, matrix4x4: number, transpose: Bool): Attribute;
3585
3615
 
3616
+ // Signals
3617
+
3618
+ connect<K extends keyof Attribute.SignalSignatures>(
3619
+ signal: K,
3620
+ callback: GObject.SignalCallback<this, Attribute.SignalSignatures[K]>,
3621
+ ): number;
3622
+ connect(signal: string, callback: (...args: any[]) => any): number;
3623
+ connect_after<K extends keyof Attribute.SignalSignatures>(
3624
+ signal: K,
3625
+ callback: GObject.SignalCallback<this, Attribute.SignalSignatures[K]>,
3626
+ ): number;
3627
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3628
+ emit<K extends keyof Attribute.SignalSignatures>(
3629
+ signal: K,
3630
+ ...args: GObject.GjsParameters<Attribute.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3631
+ ): void;
3632
+ emit(signal: string, ...args: any[]): void;
3633
+
3586
3634
  // Methods
3587
3635
 
3588
3636
  get_buffer(): AttributeBuffer;
@@ -3607,6 +3655,11 @@ export namespace Cogl {
3607
3655
  set_normalized(normalized: Bool): void;
3608
3656
  }
3609
3657
 
3658
+ namespace AttributeBuffer {
3659
+ // Signal signatures
3660
+ interface SignalSignatures extends Object.SignalSignatures {}
3661
+ }
3662
+
3610
3663
  class AttributeBuffer extends Object {
3611
3664
  static $gtype: GObject.GType<AttributeBuffer>;
3612
3665
 
@@ -3615,6 +3668,29 @@ export namespace Cogl {
3615
3668
  _init(...args: any[]): void;
3616
3669
 
3617
3670
  static new_with_size(context: Context, bytes: number): AttributeBuffer;
3671
+
3672
+ // Signals
3673
+
3674
+ connect<K extends keyof AttributeBuffer.SignalSignatures>(
3675
+ signal: K,
3676
+ callback: GObject.SignalCallback<this, AttributeBuffer.SignalSignatures[K]>,
3677
+ ): number;
3678
+ connect(signal: string, callback: (...args: any[]) => any): number;
3679
+ connect_after<K extends keyof AttributeBuffer.SignalSignatures>(
3680
+ signal: K,
3681
+ callback: GObject.SignalCallback<this, AttributeBuffer.SignalSignatures[K]>,
3682
+ ): number;
3683
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3684
+ emit<K extends keyof AttributeBuffer.SignalSignatures>(
3685
+ signal: K,
3686
+ ...args: GObject.GjsParameters<AttributeBuffer.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3687
+ ): void;
3688
+ emit(signal: string, ...args: any[]): void;
3689
+ }
3690
+
3691
+ namespace Bitmap {
3692
+ // Signal signatures
3693
+ interface SignalSignatures extends Object.SignalSignatures {}
3618
3694
  }
3619
3695
 
3620
3696
  class Bitmap extends Object {
@@ -3646,6 +3722,24 @@ export namespace Cogl {
3646
3722
 
3647
3723
  static new_with_size(context: Context, width: number, height: number, format: PixelFormat): Bitmap;
3648
3724
 
3725
+ // Signals
3726
+
3727
+ connect<K extends keyof Bitmap.SignalSignatures>(
3728
+ signal: K,
3729
+ callback: GObject.SignalCallback<this, Bitmap.SignalSignatures[K]>,
3730
+ ): number;
3731
+ connect(signal: string, callback: (...args: any[]) => any): number;
3732
+ connect_after<K extends keyof Bitmap.SignalSignatures>(
3733
+ signal: K,
3734
+ callback: GObject.SignalCallback<this, Bitmap.SignalSignatures[K]>,
3735
+ ): number;
3736
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3737
+ emit<K extends keyof Bitmap.SignalSignatures>(
3738
+ signal: K,
3739
+ ...args: GObject.GjsParameters<Bitmap.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3740
+ ): void;
3741
+ emit(signal: string, ...args: any[]): void;
3742
+
3649
3743
  // Static methods
3650
3744
 
3651
3745
  /**
@@ -3664,6 +3758,11 @@ export namespace Cogl {
3664
3758
  get_width(): number;
3665
3759
  }
3666
3760
 
3761
+ namespace Context {
3762
+ // Signal signatures
3763
+ interface SignalSignatures extends Object.SignalSignatures {}
3764
+ }
3765
+
3667
3766
  class Context extends Object {
3668
3767
  static $gtype: GObject.GType<Context>;
3669
3768
 
@@ -3673,6 +3772,24 @@ export namespace Cogl {
3673
3772
 
3674
3773
  static ['new'](display?: Display | null): Context;
3675
3774
 
3775
+ // Signals
3776
+
3777
+ connect<K extends keyof Context.SignalSignatures>(
3778
+ signal: K,
3779
+ callback: GObject.SignalCallback<this, Context.SignalSignatures[K]>,
3780
+ ): number;
3781
+ connect(signal: string, callback: (...args: any[]) => any): number;
3782
+ connect_after<K extends keyof Context.SignalSignatures>(
3783
+ signal: K,
3784
+ callback: GObject.SignalCallback<this, Context.SignalSignatures[K]>,
3785
+ ): number;
3786
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3787
+ emit<K extends keyof Context.SignalSignatures>(
3788
+ signal: K,
3789
+ ...args: GObject.GjsParameters<Context.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3790
+ ): void;
3791
+ emit(signal: string, ...args: any[]): void;
3792
+
3676
3793
  // Methods
3677
3794
 
3678
3795
  /**
@@ -3696,6 +3813,11 @@ export namespace Cogl {
3696
3813
  get_renderer(): Renderer;
3697
3814
  }
3698
3815
 
3816
+ namespace Display {
3817
+ // Signal signatures
3818
+ interface SignalSignatures extends Object.SignalSignatures {}
3819
+ }
3820
+
3699
3821
  class Display extends Object {
3700
3822
  static $gtype: GObject.GType<Display>;
3701
3823
 
@@ -3705,6 +3827,24 @@ export namespace Cogl {
3705
3827
 
3706
3828
  static ['new'](renderer: Renderer, onscreen_template: OnscreenTemplate): Display;
3707
3829
 
3830
+ // Signals
3831
+
3832
+ connect<K extends keyof Display.SignalSignatures>(
3833
+ signal: K,
3834
+ callback: GObject.SignalCallback<this, Display.SignalSignatures[K]>,
3835
+ ): number;
3836
+ connect(signal: string, callback: (...args: any[]) => any): number;
3837
+ connect_after<K extends keyof Display.SignalSignatures>(
3838
+ signal: K,
3839
+ callback: GObject.SignalCallback<this, Display.SignalSignatures[K]>,
3840
+ ): number;
3841
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3842
+ emit<K extends keyof Display.SignalSignatures>(
3843
+ signal: K,
3844
+ ...args: GObject.GjsParameters<Display.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3845
+ ): void;
3846
+ emit(signal: string, ...args: any[]): void;
3847
+
3708
3848
  // Methods
3709
3849
 
3710
3850
  /**
@@ -3749,6 +3889,11 @@ export namespace Cogl {
3749
3889
  setup(): Bool;
3750
3890
  }
3751
3891
 
3892
+ namespace Fixed {
3893
+ // Signal signatures
3894
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
3895
+ }
3896
+
3752
3897
  /**
3753
3898
  * Fixed point number using a (16.16) notation.
3754
3899
  */
@@ -3758,6 +3903,29 @@ export namespace Cogl {
3758
3903
  // Constructors
3759
3904
 
3760
3905
  _init(...args: any[]): void;
3906
+
3907
+ // Signals
3908
+
3909
+ connect<K extends keyof Fixed.SignalSignatures>(
3910
+ signal: K,
3911
+ callback: GObject.SignalCallback<this, Fixed.SignalSignatures[K]>,
3912
+ ): number;
3913
+ connect(signal: string, callback: (...args: any[]) => any): number;
3914
+ connect_after<K extends keyof Fixed.SignalSignatures>(
3915
+ signal: K,
3916
+ callback: GObject.SignalCallback<this, Fixed.SignalSignatures[K]>,
3917
+ ): number;
3918
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3919
+ emit<K extends keyof Fixed.SignalSignatures>(
3920
+ signal: K,
3921
+ ...args: GObject.GjsParameters<Fixed.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3922
+ ): void;
3923
+ emit(signal: string, ...args: any[]): void;
3924
+ }
3925
+
3926
+ namespace FrameInfo {
3927
+ // Signal signatures
3928
+ interface SignalSignatures extends Object.SignalSignatures {}
3761
3929
  }
3762
3930
 
3763
3931
  class FrameInfo extends Object {
@@ -3767,6 +3935,24 @@ export namespace Cogl {
3767
3935
 
3768
3936
  _init(...args: any[]): void;
3769
3937
 
3938
+ // Signals
3939
+
3940
+ connect<K extends keyof FrameInfo.SignalSignatures>(
3941
+ signal: K,
3942
+ callback: GObject.SignalCallback<this, FrameInfo.SignalSignatures[K]>,
3943
+ ): number;
3944
+ connect(signal: string, callback: (...args: any[]) => any): number;
3945
+ connect_after<K extends keyof FrameInfo.SignalSignatures>(
3946
+ signal: K,
3947
+ callback: GObject.SignalCallback<this, FrameInfo.SignalSignatures[K]>,
3948
+ ): number;
3949
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3950
+ emit<K extends keyof FrameInfo.SignalSignatures>(
3951
+ signal: K,
3952
+ ...args: GObject.GjsParameters<FrameInfo.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3953
+ ): void;
3954
+ emit(signal: string, ...args: any[]): void;
3955
+
3770
3956
  // Methods
3771
3957
 
3772
3958
  /**
@@ -3811,6 +3997,11 @@ export namespace Cogl {
3811
3997
  get_refresh_rate(): number;
3812
3998
  }
3813
3999
 
4000
+ namespace GLES2Context {
4001
+ // Signal signatures
4002
+ interface SignalSignatures extends Object.SignalSignatures {}
4003
+ }
4004
+
3814
4005
  /**
3815
4006
  * Represents an OpenGLES 2.0 api context used as a sandbox for
3816
4007
  * OpenGLES 2.0 state. This is comparable to an EGLContext for those
@@ -3825,6 +4016,24 @@ export namespace Cogl {
3825
4016
 
3826
4017
  static ['new'](ctx: Context): GLES2Context;
3827
4018
 
4019
+ // Signals
4020
+
4021
+ connect<K extends keyof GLES2Context.SignalSignatures>(
4022
+ signal: K,
4023
+ callback: GObject.SignalCallback<this, GLES2Context.SignalSignatures[K]>,
4024
+ ): number;
4025
+ connect(signal: string, callback: (...args: any[]) => any): number;
4026
+ connect_after<K extends keyof GLES2Context.SignalSignatures>(
4027
+ signal: K,
4028
+ callback: GObject.SignalCallback<this, GLES2Context.SignalSignatures[K]>,
4029
+ ): number;
4030
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4031
+ emit<K extends keyof GLES2Context.SignalSignatures>(
4032
+ signal: K,
4033
+ ...args: GObject.GjsParameters<GLES2Context.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4034
+ ): void;
4035
+ emit(signal: string, ...args: any[]): void;
4036
+
3828
4037
  // Methods
3829
4038
 
3830
4039
  /**
@@ -3838,6 +4047,11 @@ export namespace Cogl {
3838
4047
  get_vtable(): GLES2Vtable;
3839
4048
  }
3840
4049
 
4050
+ namespace IndexBuffer {
4051
+ // Signal signatures
4052
+ interface SignalSignatures extends Object.SignalSignatures {}
4053
+ }
4054
+
3841
4055
  class IndexBuffer extends Object {
3842
4056
  static $gtype: GObject.GType<IndexBuffer>;
3843
4057
 
@@ -3846,6 +4060,29 @@ export namespace Cogl {
3846
4060
  _init(...args: any[]): void;
3847
4061
 
3848
4062
  static ['new'](context: Context, bytes: number): IndexBuffer;
4063
+
4064
+ // Signals
4065
+
4066
+ connect<K extends keyof IndexBuffer.SignalSignatures>(
4067
+ signal: K,
4068
+ callback: GObject.SignalCallback<this, IndexBuffer.SignalSignatures[K]>,
4069
+ ): number;
4070
+ connect(signal: string, callback: (...args: any[]) => any): number;
4071
+ connect_after<K extends keyof IndexBuffer.SignalSignatures>(
4072
+ signal: K,
4073
+ callback: GObject.SignalCallback<this, IndexBuffer.SignalSignatures[K]>,
4074
+ ): number;
4075
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4076
+ emit<K extends keyof IndexBuffer.SignalSignatures>(
4077
+ signal: K,
4078
+ ...args: GObject.GjsParameters<IndexBuffer.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4079
+ ): void;
4080
+ emit(signal: string, ...args: any[]): void;
4081
+ }
4082
+
4083
+ namespace Indices {
4084
+ // Signal signatures
4085
+ interface SignalSignatures extends Object.SignalSignatures {}
3849
4086
  }
3850
4087
 
3851
4088
  class Indices extends Object {
@@ -3859,6 +4096,24 @@ export namespace Cogl {
3859
4096
 
3860
4097
  static new_for_buffer(type: IndicesType, buffer: IndexBuffer, offset: number): Indices;
3861
4098
 
4099
+ // Signals
4100
+
4101
+ connect<K extends keyof Indices.SignalSignatures>(
4102
+ signal: K,
4103
+ callback: GObject.SignalCallback<this, Indices.SignalSignatures[K]>,
4104
+ ): number;
4105
+ connect(signal: string, callback: (...args: any[]) => any): number;
4106
+ connect_after<K extends keyof Indices.SignalSignatures>(
4107
+ signal: K,
4108
+ callback: GObject.SignalCallback<this, Indices.SignalSignatures[K]>,
4109
+ ): number;
4110
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4111
+ emit<K extends keyof Indices.SignalSignatures>(
4112
+ signal: K,
4113
+ ...args: GObject.GjsParameters<Indices.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4114
+ ): void;
4115
+ emit(signal: string, ...args: any[]): void;
4116
+
3862
4117
  // Methods
3863
4118
 
3864
4119
  get_offset(): number;
@@ -3866,6 +4121,11 @@ export namespace Cogl {
3866
4121
  set_offset(offset: number): void;
3867
4122
  }
3868
4123
 
4124
+ namespace MatrixStack {
4125
+ // Signal signatures
4126
+ interface SignalSignatures extends Object.SignalSignatures {}
4127
+ }
4128
+
3869
4129
  /**
3870
4130
  * Tracks your current position within a hierarchy and lets you build
3871
4131
  * up a graph of transformations as you traverse through a hierarchy
@@ -3908,6 +4168,24 @@ export namespace Cogl {
3908
4168
 
3909
4169
  static ['new'](ctx: Context): MatrixStack;
3910
4170
 
4171
+ // Signals
4172
+
4173
+ connect<K extends keyof MatrixStack.SignalSignatures>(
4174
+ signal: K,
4175
+ callback: GObject.SignalCallback<this, MatrixStack.SignalSignatures[K]>,
4176
+ ): number;
4177
+ connect(signal: string, callback: (...args: any[]) => any): number;
4178
+ connect_after<K extends keyof MatrixStack.SignalSignatures>(
4179
+ signal: K,
4180
+ callback: GObject.SignalCallback<this, MatrixStack.SignalSignatures[K]>,
4181
+ ): number;
4182
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4183
+ emit<K extends keyof MatrixStack.SignalSignatures>(
4184
+ signal: K,
4185
+ ...args: GObject.GjsParameters<MatrixStack.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4186
+ ): void;
4187
+ emit(signal: string, ...args: any[]): void;
4188
+
3911
4189
  // Methods
3912
4190
 
3913
4191
  /**
@@ -4063,6 +4341,11 @@ export namespace Cogl {
4063
4341
  translate(x: number, y: number, z: number): void;
4064
4342
  }
4065
4343
 
4344
+ namespace Object {
4345
+ // Signal signatures
4346
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
4347
+ }
4348
+
4066
4349
  abstract class Object {
4067
4350
  static $gtype: GObject.GType<Object>;
4068
4351
 
@@ -4070,12 +4353,35 @@ export namespace Cogl {
4070
4353
 
4071
4354
  _init(...args: any[]): void;
4072
4355
 
4356
+ // Signals
4357
+
4358
+ connect<K extends keyof Object.SignalSignatures>(
4359
+ signal: K,
4360
+ callback: GObject.SignalCallback<this, Object.SignalSignatures[K]>,
4361
+ ): number;
4362
+ connect(signal: string, callback: (...args: any[]) => any): number;
4363
+ connect_after<K extends keyof Object.SignalSignatures>(
4364
+ signal: K,
4365
+ callback: GObject.SignalCallback<this, Object.SignalSignatures[K]>,
4366
+ ): number;
4367
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4368
+ emit<K extends keyof Object.SignalSignatures>(
4369
+ signal: K,
4370
+ ...args: GObject.GjsParameters<Object.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4371
+ ): void;
4372
+ emit(signal: string, ...args: any[]): void;
4373
+
4073
4374
  // Static methods
4074
4375
 
4075
4376
  static value_get_object(value: GObject.Value | any): any | null;
4076
4377
  static value_set_object(value: GObject.Value | any, object?: any | null): void;
4077
4378
  }
4078
4379
 
4380
+ namespace Onscreen {
4381
+ // Signal signatures
4382
+ interface SignalSignatures extends Object.SignalSignatures {}
4383
+ }
4384
+
4079
4385
  class Onscreen extends Object implements Framebuffer {
4080
4386
  static $gtype: GObject.GType<Onscreen>;
4081
4387
 
@@ -4085,6 +4391,24 @@ export namespace Cogl {
4085
4391
 
4086
4392
  static ['new'](context: Context, width: number, height: number): Onscreen;
4087
4393
 
4394
+ // Signals
4395
+
4396
+ connect<K extends keyof Onscreen.SignalSignatures>(
4397
+ signal: K,
4398
+ callback: GObject.SignalCallback<this, Onscreen.SignalSignatures[K]>,
4399
+ ): number;
4400
+ connect(signal: string, callback: (...args: any[]) => any): number;
4401
+ connect_after<K extends keyof Onscreen.SignalSignatures>(
4402
+ signal: K,
4403
+ callback: GObject.SignalCallback<this, Onscreen.SignalSignatures[K]>,
4404
+ ): number;
4405
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4406
+ emit<K extends keyof Onscreen.SignalSignatures>(
4407
+ signal: K,
4408
+ ...args: GObject.GjsParameters<Onscreen.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4409
+ ): void;
4410
+ emit(signal: string, ...args: any[]): void;
4411
+
4088
4412
  // Methods
4089
4413
 
4090
4414
  /**
@@ -5361,6 +5685,11 @@ export namespace Cogl {
5361
5685
  translate(x: number, y: number, z: number): void;
5362
5686
  }
5363
5687
 
5688
+ namespace OnscreenTemplate {
5689
+ // Signal signatures
5690
+ interface SignalSignatures extends Object.SignalSignatures {}
5691
+ }
5692
+
5364
5693
  class OnscreenTemplate extends Object {
5365
5694
  static $gtype: GObject.GType<OnscreenTemplate>;
5366
5695
 
@@ -5370,6 +5699,24 @@ export namespace Cogl {
5370
5699
 
5371
5700
  static ['new'](swap_chain: SwapChain): OnscreenTemplate;
5372
5701
 
5702
+ // Signals
5703
+
5704
+ connect<K extends keyof OnscreenTemplate.SignalSignatures>(
5705
+ signal: K,
5706
+ callback: GObject.SignalCallback<this, OnscreenTemplate.SignalSignatures[K]>,
5707
+ ): number;
5708
+ connect(signal: string, callback: (...args: any[]) => any): number;
5709
+ connect_after<K extends keyof OnscreenTemplate.SignalSignatures>(
5710
+ signal: K,
5711
+ callback: GObject.SignalCallback<this, OnscreenTemplate.SignalSignatures[K]>,
5712
+ ): number;
5713
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
5714
+ emit<K extends keyof OnscreenTemplate.SignalSignatures>(
5715
+ signal: K,
5716
+ ...args: GObject.GjsParameters<OnscreenTemplate.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
5717
+ ): void;
5718
+ emit(signal: string, ...args: any[]): void;
5719
+
5373
5720
  // Methods
5374
5721
 
5375
5722
  /**
@@ -5408,6 +5755,11 @@ export namespace Cogl {
5408
5755
  set_swap_throttled(throttled: Bool): void;
5409
5756
  }
5410
5757
 
5758
+ namespace Output {
5759
+ // Signal signatures
5760
+ interface SignalSignatures extends Object.SignalSignatures {}
5761
+ }
5762
+
5411
5763
  class Output extends Object {
5412
5764
  static $gtype: GObject.GType<Output>;
5413
5765
 
@@ -5415,6 +5767,24 @@ export namespace Cogl {
5415
5767
 
5416
5768
  _init(...args: any[]): void;
5417
5769
 
5770
+ // Signals
5771
+
5772
+ connect<K extends keyof Output.SignalSignatures>(
5773
+ signal: K,
5774
+ callback: GObject.SignalCallback<this, Output.SignalSignatures[K]>,
5775
+ ): number;
5776
+ connect(signal: string, callback: (...args: any[]) => any): number;
5777
+ connect_after<K extends keyof Output.SignalSignatures>(
5778
+ signal: K,
5779
+ callback: GObject.SignalCallback<this, Output.SignalSignatures[K]>,
5780
+ ): number;
5781
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
5782
+ emit<K extends keyof Output.SignalSignatures>(
5783
+ signal: K,
5784
+ ...args: GObject.GjsParameters<Output.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
5785
+ ): void;
5786
+ emit(signal: string, ...args: any[]): void;
5787
+
5418
5788
  // Methods
5419
5789
 
5420
5790
  /**
@@ -5470,6 +5840,11 @@ export namespace Cogl {
5470
5840
  get_y(): number;
5471
5841
  }
5472
5842
 
5843
+ namespace Pipeline {
5844
+ // Signal signatures
5845
+ interface SignalSignatures extends Object.SignalSignatures {}
5846
+ }
5847
+
5473
5848
  class Pipeline extends Object {
5474
5849
  static $gtype: GObject.GType<Pipeline>;
5475
5850
 
@@ -5479,6 +5854,24 @@ export namespace Cogl {
5479
5854
 
5480
5855
  static ['new'](context: Context): Pipeline;
5481
5856
 
5857
+ // Signals
5858
+
5859
+ connect<K extends keyof Pipeline.SignalSignatures>(
5860
+ signal: K,
5861
+ callback: GObject.SignalCallback<this, Pipeline.SignalSignatures[K]>,
5862
+ ): number;
5863
+ connect(signal: string, callback: (...args: any[]) => any): number;
5864
+ connect_after<K extends keyof Pipeline.SignalSignatures>(
5865
+ signal: K,
5866
+ callback: GObject.SignalCallback<this, Pipeline.SignalSignatures[K]>,
5867
+ ): number;
5868
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
5869
+ emit<K extends keyof Pipeline.SignalSignatures>(
5870
+ signal: K,
5871
+ ...args: GObject.GjsParameters<Pipeline.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
5872
+ ): void;
5873
+ emit(signal: string, ...args: any[]): void;
5874
+
5482
5875
  // Methods
5483
5876
 
5484
5877
  /**
@@ -6244,6 +6637,11 @@ export namespace Cogl {
6244
6637
  set_user_program(program: Handle): void;
6245
6638
  }
6246
6639
 
6640
+ namespace PixelBuffer {
6641
+ // Signal signatures
6642
+ interface SignalSignatures extends Object.SignalSignatures {}
6643
+ }
6644
+
6247
6645
  class PixelBuffer extends Object {
6248
6646
  static $gtype: GObject.GType<PixelBuffer>;
6249
6647
 
@@ -6252,6 +6650,29 @@ export namespace Cogl {
6252
6650
  _init(...args: any[]): void;
6253
6651
 
6254
6652
  static ['new'](context: Context, size: number, data?: any | null): PixelBuffer;
6653
+
6654
+ // Signals
6655
+
6656
+ connect<K extends keyof PixelBuffer.SignalSignatures>(
6657
+ signal: K,
6658
+ callback: GObject.SignalCallback<this, PixelBuffer.SignalSignatures[K]>,
6659
+ ): number;
6660
+ connect(signal: string, callback: (...args: any[]) => any): number;
6661
+ connect_after<K extends keyof PixelBuffer.SignalSignatures>(
6662
+ signal: K,
6663
+ callback: GObject.SignalCallback<this, PixelBuffer.SignalSignatures[K]>,
6664
+ ): number;
6665
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
6666
+ emit<K extends keyof PixelBuffer.SignalSignatures>(
6667
+ signal: K,
6668
+ ...args: GObject.GjsParameters<PixelBuffer.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
6669
+ ): void;
6670
+ emit(signal: string, ...args: any[]): void;
6671
+ }
6672
+
6673
+ namespace Primitive {
6674
+ // Signal signatures
6675
+ interface SignalSignatures extends Object.SignalSignatures {}
6255
6676
  }
6256
6677
 
6257
6678
  class Primitive extends Object {
@@ -6284,6 +6705,24 @@ export namespace Cogl {
6284
6705
  n_attributes: number,
6285
6706
  ): Primitive;
6286
6707
 
6708
+ // Signals
6709
+
6710
+ connect<K extends keyof Primitive.SignalSignatures>(
6711
+ signal: K,
6712
+ callback: GObject.SignalCallback<this, Primitive.SignalSignatures[K]>,
6713
+ ): number;
6714
+ connect(signal: string, callback: (...args: any[]) => any): number;
6715
+ connect_after<K extends keyof Primitive.SignalSignatures>(
6716
+ signal: K,
6717
+ callback: GObject.SignalCallback<this, Primitive.SignalSignatures[K]>,
6718
+ ): number;
6719
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
6720
+ emit<K extends keyof Primitive.SignalSignatures>(
6721
+ signal: K,
6722
+ ...args: GObject.GjsParameters<Primitive.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
6723
+ ): void;
6724
+ emit(signal: string, ...args: any[]): void;
6725
+
6287
6726
  // Static methods
6288
6727
 
6289
6728
  /**
@@ -6390,6 +6829,11 @@ export namespace Cogl {
6390
6829
  set_n_vertices(n_vertices: number): void;
6391
6830
  }
6392
6831
 
6832
+ namespace Renderer {
6833
+ // Signal signatures
6834
+ interface SignalSignatures extends Object.SignalSignatures {}
6835
+ }
6836
+
6393
6837
  class Renderer extends Object {
6394
6838
  static $gtype: GObject.GType<Renderer>;
6395
6839
 
@@ -6399,6 +6843,24 @@ export namespace Cogl {
6399
6843
 
6400
6844
  static ['new'](): Renderer;
6401
6845
 
6846
+ // Signals
6847
+
6848
+ connect<K extends keyof Renderer.SignalSignatures>(
6849
+ signal: K,
6850
+ callback: GObject.SignalCallback<this, Renderer.SignalSignatures[K]>,
6851
+ ): number;
6852
+ connect(signal: string, callback: (...args: any[]) => any): number;
6853
+ connect_after<K extends keyof Renderer.SignalSignatures>(
6854
+ signal: K,
6855
+ callback: GObject.SignalCallback<this, Renderer.SignalSignatures[K]>,
6856
+ ): number;
6857
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
6858
+ emit<K extends keyof Renderer.SignalSignatures>(
6859
+ signal: K,
6860
+ ...args: GObject.GjsParameters<Renderer.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
6861
+ ): void;
6862
+ emit(signal: string, ...args: any[]): void;
6863
+
6402
6864
  // Methods
6403
6865
 
6404
6866
  /**
@@ -6483,6 +6945,11 @@ export namespace Cogl {
6483
6945
  set_winsys_id(winsys_id: WinsysID | null): void;
6484
6946
  }
6485
6947
 
6948
+ namespace Snippet {
6949
+ // Signal signatures
6950
+ interface SignalSignatures extends Object.SignalSignatures {}
6951
+ }
6952
+
6486
6953
  class Snippet extends Object {
6487
6954
  static $gtype: GObject.GType<Snippet>;
6488
6955
 
@@ -6492,6 +6959,24 @@ export namespace Cogl {
6492
6959
 
6493
6960
  static ['new'](hook: SnippetHook, declarations: string, post: string): Snippet;
6494
6961
 
6962
+ // Signals
6963
+
6964
+ connect<K extends keyof Snippet.SignalSignatures>(
6965
+ signal: K,
6966
+ callback: GObject.SignalCallback<this, Snippet.SignalSignatures[K]>,
6967
+ ): number;
6968
+ connect(signal: string, callback: (...args: any[]) => any): number;
6969
+ connect_after<K extends keyof Snippet.SignalSignatures>(
6970
+ signal: K,
6971
+ callback: GObject.SignalCallback<this, Snippet.SignalSignatures[K]>,
6972
+ ): number;
6973
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
6974
+ emit<K extends keyof Snippet.SignalSignatures>(
6975
+ signal: K,
6976
+ ...args: GObject.GjsParameters<Snippet.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
6977
+ ): void;
6978
+ emit(signal: string, ...args: any[]): void;
6979
+
6495
6980
  // Methods
6496
6981
 
6497
6982
  get_declarations(): string;
@@ -6549,6 +7034,11 @@ export namespace Cogl {
6549
7034
  set_replace(replace: string): void;
6550
7035
  }
6551
7036
 
7037
+ namespace SubTexture {
7038
+ // Signal signatures
7039
+ interface SignalSignatures extends Object.SignalSignatures {}
7040
+ }
7041
+
6552
7042
  class SubTexture extends Object {
6553
7043
  static $gtype: GObject.GType<SubTexture>;
6554
7044
 
@@ -6565,6 +7055,24 @@ export namespace Cogl {
6565
7055
  sub_height: number,
6566
7056
  ): SubTexture;
6567
7057
 
7058
+ // Signals
7059
+
7060
+ connect<K extends keyof SubTexture.SignalSignatures>(
7061
+ signal: K,
7062
+ callback: GObject.SignalCallback<this, SubTexture.SignalSignatures[K]>,
7063
+ ): number;
7064
+ connect(signal: string, callback: (...args: any[]) => any): number;
7065
+ connect_after<K extends keyof SubTexture.SignalSignatures>(
7066
+ signal: K,
7067
+ callback: GObject.SignalCallback<this, SubTexture.SignalSignatures[K]>,
7068
+ ): number;
7069
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
7070
+ emit<K extends keyof SubTexture.SignalSignatures>(
7071
+ signal: K,
7072
+ ...args: GObject.GjsParameters<SubTexture.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
7073
+ ): void;
7074
+ emit(signal: string, ...args: any[]): void;
7075
+
6568
7076
  // Methods
6569
7077
 
6570
7078
  /**
@@ -6576,6 +7084,11 @@ export namespace Cogl {
6576
7084
  get_parent(): Texture;
6577
7085
  }
6578
7086
 
7087
+ namespace SwapChain {
7088
+ // Signal signatures
7089
+ interface SignalSignatures extends Object.SignalSignatures {}
7090
+ }
7091
+
6579
7092
  class SwapChain extends Object {
6580
7093
  static $gtype: GObject.GType<SwapChain>;
6581
7094
 
@@ -6585,12 +7098,35 @@ export namespace Cogl {
6585
7098
 
6586
7099
  static ['new'](): SwapChain;
6587
7100
 
7101
+ // Signals
7102
+
7103
+ connect<K extends keyof SwapChain.SignalSignatures>(
7104
+ signal: K,
7105
+ callback: GObject.SignalCallback<this, SwapChain.SignalSignatures[K]>,
7106
+ ): number;
7107
+ connect(signal: string, callback: (...args: any[]) => any): number;
7108
+ connect_after<K extends keyof SwapChain.SignalSignatures>(
7109
+ signal: K,
7110
+ callback: GObject.SignalCallback<this, SwapChain.SignalSignatures[K]>,
7111
+ ): number;
7112
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
7113
+ emit<K extends keyof SwapChain.SignalSignatures>(
7114
+ signal: K,
7115
+ ...args: GObject.GjsParameters<SwapChain.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
7116
+ ): void;
7117
+ emit(signal: string, ...args: any[]): void;
7118
+
6588
7119
  // Methods
6589
7120
 
6590
7121
  set_has_alpha(has_alpha: Bool): void;
6591
7122
  set_length(length: number): void;
6592
7123
  }
6593
7124
 
7125
+ namespace Texture2D {
7126
+ // Signal signatures
7127
+ interface SignalSignatures extends Object.SignalSignatures {}
7128
+ }
7129
+
6594
7130
  class Texture2D extends Object implements Texture {
6595
7131
  static $gtype: GObject.GType<Texture2D>;
6596
7132
 
@@ -6621,6 +7157,24 @@ export namespace Cogl {
6621
7157
 
6622
7158
  static new_with_size(ctx: Context, width: number, height: number): Texture2D;
6623
7159
 
7160
+ // Signals
7161
+
7162
+ connect<K extends keyof Texture2D.SignalSignatures>(
7163
+ signal: K,
7164
+ callback: GObject.SignalCallback<this, Texture2D.SignalSignatures[K]>,
7165
+ ): number;
7166
+ connect(signal: string, callback: (...args: any[]) => any): number;
7167
+ connect_after<K extends keyof Texture2D.SignalSignatures>(
7168
+ signal: K,
7169
+ callback: GObject.SignalCallback<this, Texture2D.SignalSignatures[K]>,
7170
+ ): number;
7171
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
7172
+ emit<K extends keyof Texture2D.SignalSignatures>(
7173
+ signal: K,
7174
+ ...args: GObject.GjsParameters<Texture2D.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
7175
+ ): void;
7176
+ emit(signal: string, ...args: any[]): void;
7177
+
6624
7178
  // Inherited methods
6625
7179
  /**
6626
7180
  * Explicitly allocates the storage for the given `texture` which
@@ -6851,6 +7405,11 @@ export namespace Cogl {
6851
7405
  ): Bool;
6852
7406
  }
6853
7407
 
7408
+ namespace Texture2DSliced {
7409
+ // Signal signatures
7410
+ interface SignalSignatures extends Object.SignalSignatures {}
7411
+ }
7412
+
6854
7413
  class Texture2DSliced extends Object implements Texture {
6855
7414
  static $gtype: GObject.GType<Texture2DSliced>;
6856
7415
 
@@ -6874,6 +7433,24 @@ export namespace Cogl {
6874
7433
 
6875
7434
  static new_with_size(ctx: Context, width: number, height: number, max_waste: number): Texture2DSliced;
6876
7435
 
7436
+ // Signals
7437
+
7438
+ connect<K extends keyof Texture2DSliced.SignalSignatures>(
7439
+ signal: K,
7440
+ callback: GObject.SignalCallback<this, Texture2DSliced.SignalSignatures[K]>,
7441
+ ): number;
7442
+ connect(signal: string, callback: (...args: any[]) => any): number;
7443
+ connect_after<K extends keyof Texture2DSliced.SignalSignatures>(
7444
+ signal: K,
7445
+ callback: GObject.SignalCallback<this, Texture2DSliced.SignalSignatures[K]>,
7446
+ ): number;
7447
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
7448
+ emit<K extends keyof Texture2DSliced.SignalSignatures>(
7449
+ signal: K,
7450
+ ...args: GObject.GjsParameters<Texture2DSliced.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
7451
+ ): void;
7452
+ emit(signal: string, ...args: any[]): void;
7453
+
6877
7454
  // Inherited methods
6878
7455
  /**
6879
7456
  * Explicitly allocates the storage for the given `texture` which
@@ -7104,6 +7681,11 @@ export namespace Cogl {
7104
7681
  ): Bool;
7105
7682
  }
7106
7683
 
7684
+ namespace Texture3D {
7685
+ // Signal signatures
7686
+ interface SignalSignatures extends Object.SignalSignatures {}
7687
+ }
7688
+
7107
7689
  class Texture3D extends Object implements Texture {
7108
7690
  static $gtype: GObject.GType<Texture3D>;
7109
7691
 
@@ -7126,6 +7708,24 @@ export namespace Cogl {
7126
7708
 
7127
7709
  static new_with_size(context: Context, width: number, height: number, depth: number): Texture3D;
7128
7710
 
7711
+ // Signals
7712
+
7713
+ connect<K extends keyof Texture3D.SignalSignatures>(
7714
+ signal: K,
7715
+ callback: GObject.SignalCallback<this, Texture3D.SignalSignatures[K]>,
7716
+ ): number;
7717
+ connect(signal: string, callback: (...args: any[]) => any): number;
7718
+ connect_after<K extends keyof Texture3D.SignalSignatures>(
7719
+ signal: K,
7720
+ callback: GObject.SignalCallback<this, Texture3D.SignalSignatures[K]>,
7721
+ ): number;
7722
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
7723
+ emit<K extends keyof Texture3D.SignalSignatures>(
7724
+ signal: K,
7725
+ ...args: GObject.GjsParameters<Texture3D.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
7726
+ ): void;
7727
+ emit(signal: string, ...args: any[]): void;
7728
+
7129
7729
  // Inherited methods
7130
7730
  /**
7131
7731
  * Explicitly allocates the storage for the given `texture` which
@@ -7356,6 +7956,11 @@ export namespace Cogl {
7356
7956
  ): Bool;
7357
7957
  }
7358
7958
 
7959
+ namespace TexturePixmapX11 {
7960
+ // Signal signatures
7961
+ interface SignalSignatures extends Object.SignalSignatures {}
7962
+ }
7963
+
7359
7964
  class TexturePixmapX11 extends Object {
7360
7965
  static $gtype: GObject.GType<TexturePixmapX11>;
7361
7966
 
@@ -7367,6 +7972,24 @@ export namespace Cogl {
7367
7972
 
7368
7973
  static new_left(context: Context, pixmap: number, automatic_updates: Bool): TexturePixmapX11;
7369
7974
 
7975
+ // Signals
7976
+
7977
+ connect<K extends keyof TexturePixmapX11.SignalSignatures>(
7978
+ signal: K,
7979
+ callback: GObject.SignalCallback<this, TexturePixmapX11.SignalSignatures[K]>,
7980
+ ): number;
7981
+ connect(signal: string, callback: (...args: any[]) => any): number;
7982
+ connect_after<K extends keyof TexturePixmapX11.SignalSignatures>(
7983
+ signal: K,
7984
+ callback: GObject.SignalCallback<this, TexturePixmapX11.SignalSignatures[K]>,
7985
+ ): number;
7986
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
7987
+ emit<K extends keyof TexturePixmapX11.SignalSignatures>(
7988
+ signal: K,
7989
+ ...args: GObject.GjsParameters<TexturePixmapX11.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
7990
+ ): void;
7991
+ emit(signal: string, ...args: any[]): void;
7992
+
7370
7993
  // Static methods
7371
7994
 
7372
7995
  static error_quark(): number;
@@ -7406,6 +8029,11 @@ export namespace Cogl {
7406
8029
  update_area(x: number, y: number, width: number, height: number): void;
7407
8030
  }
7408
8031
 
8032
+ namespace TextureRectangle {
8033
+ // Signal signatures
8034
+ interface SignalSignatures extends Object.SignalSignatures {}
8035
+ }
8036
+
7409
8037
  class TextureRectangle extends Object implements Texture {
7410
8038
  static $gtype: GObject.GType<TextureRectangle>;
7411
8039
 
@@ -7425,6 +8053,24 @@ export namespace Cogl {
7425
8053
 
7426
8054
  static new_with_size(ctx: Context, width: number, height: number): TextureRectangle;
7427
8055
 
8056
+ // Signals
8057
+
8058
+ connect<K extends keyof TextureRectangle.SignalSignatures>(
8059
+ signal: K,
8060
+ callback: GObject.SignalCallback<this, TextureRectangle.SignalSignatures[K]>,
8061
+ ): number;
8062
+ connect(signal: string, callback: (...args: any[]) => any): number;
8063
+ connect_after<K extends keyof TextureRectangle.SignalSignatures>(
8064
+ signal: K,
8065
+ callback: GObject.SignalCallback<this, TextureRectangle.SignalSignatures[K]>,
8066
+ ): number;
8067
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
8068
+ emit<K extends keyof TextureRectangle.SignalSignatures>(
8069
+ signal: K,
8070
+ ...args: GObject.GjsParameters<TextureRectangle.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
8071
+ ): void;
8072
+ emit(signal: string, ...args: any[]): void;
8073
+
7428
8074
  // Inherited methods
7429
8075
  /**
7430
8076
  * Explicitly allocates the storage for the given `texture` which
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/cogl-2.0",
3
- "version": "2.0.0-4.0.0-beta.21",
3
+ "version": "2.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for Cogl-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "cogl-2.0.js",
@@ -31,10 +31,10 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "^4.0.0-beta.21",
35
- "@girs/gl-1.0": "^1.0.0-4.0.0-beta.21",
36
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
37
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/gjs": "^4.0.0-beta.24",
35
+ "@girs/gl-1.0": "^1.0.0-4.0.0-beta.24",
36
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
37
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "*"