@girs/clutter-14 14.0.0-4.0.0-beta.5 → 14.0.0-4.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/clutter-14)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Clutter-14, generated from library version 14.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.5.
8
+ GJS TypeScript type definitions for Clutter-14, generated from library version 14.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.7.
9
9
 
10
10
 
11
11
  ## Install
@@ -1,12 +1,9 @@
1
-
2
1
  declare module 'gi://Clutter?version=14' {
3
- import Clutter from '@girs/clutter-14';
4
- export default Clutter;
2
+ import Clutter14 from '@girs/clutter-14';
3
+ export default Clutter14;
5
4
  }
6
5
 
7
6
  declare module 'gi://Clutter' {
8
7
  import Clutter14 from 'gi://Clutter?version=14';
9
8
  export default Clutter14;
10
9
  }
11
-
12
-
@@ -1,12 +1 @@
1
-
2
- import Clutter14 from '@girs/clutter-14';
3
-
4
- declare global {
5
- export interface GjsGiImports {
6
- Clutter: typeof Clutter14;
7
- }
8
- }
9
-
10
- export default GjsGiImports;
11
-
12
-
1
+ // Module import type definition not generated, otherwise this would cause a type conflict, this is because several GIR modules were generated with the same namespace: "Clutter"
package/clutter-14.d.ts CHANGED
@@ -1,22 +1,20 @@
1
- /*
1
+ /**
2
2
  * Type Definitions for Gjs (https://gjs.guide/)
3
3
  *
4
4
  * These type definitions are automatically generated, do not edit them by hand.
5
5
  * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
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, ...
6
8
  */
7
9
 
8
- import './clutter-14-ambient.d.ts';
9
-
10
- /**
11
- * Clutter-14
12
- */
13
-
10
+ // Module dependencies
14
11
  import type cairo from '@girs/cairo-1.0';
15
12
  import type GObject from '@girs/gobject-2.0';
16
13
  import type GLib from '@girs/glib-2.0';
17
14
  import type Mtk from '@girs/mtk-14';
18
15
  import type Graphene from '@girs/graphene-1.0';
19
16
  import type Gio from '@girs/gio-2.0';
17
+ import type GModule from '@girs/gmodule-2.0';
20
18
  import type GL from '@girs/gl-1.0';
21
19
  import type CoglPango from '@girs/coglpango-14';
22
20
  import type PangoCairo from '@girs/pangocairo-1.0';
@@ -28,6 +26,10 @@ import type xlib from '@girs/xlib-2.0';
28
26
  import type Atk from '@girs/atk-1.0';
29
27
 
30
28
  export namespace Clutter {
29
+ /**
30
+ * Clutter-14
31
+ */
32
+
31
33
  /**
32
34
  * Controls how a #ClutterActor should align itself inside the extra space
33
35
  * assigned to it during the allocation.
@@ -8820,7 +8822,7 @@ export namespace Clutter {
8820
8822
  * static void
8821
8823
  * my_object_class_init (MyObjectClass *klass)
8822
8824
  * {
8823
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
8825
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
8824
8826
  * 0, 100,
8825
8827
  * 50,
8826
8828
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -8973,10 +8975,45 @@ export namespace Clutter {
8973
8975
  * @param closure #GClosure to watch
8974
8976
  */
8975
8977
  watch_closure(closure: GObject.Closure): void;
8978
+ /**
8979
+ * the `constructed` function is called by g_object_new() as the
8980
+ * final step of the object creation process. At the point of the call, all
8981
+ * construction properties have been set on the object. The purpose of this
8982
+ * call is to allow for object initialisation steps that can only be performed
8983
+ * after construction properties have been set. `constructed` implementors
8984
+ * should chain up to the `constructed` call of their parent class to allow it
8985
+ * to complete its initialisation.
8986
+ */
8976
8987
  vfunc_constructed(): void;
8988
+ /**
8989
+ * emits property change notification for a bunch
8990
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
8991
+ * needed.
8992
+ * @param n_pspecs
8993
+ * @param pspecs
8994
+ */
8977
8995
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
8996
+ /**
8997
+ * the `dispose` function is supposed to drop all references to other
8998
+ * objects, but keep the instance otherwise intact, so that client method
8999
+ * invocations still work. It may be run multiple times (due to reference
9000
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
9001
+ * of the parent class.
9002
+ */
8978
9003
  vfunc_dispose(): void;
9004
+ /**
9005
+ * instance finalization function, should finish the finalization of
9006
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
9007
+ * parent class.
9008
+ */
8979
9009
  vfunc_finalize(): void;
9010
+ /**
9011
+ * the generic getter for all properties of this type. Should be
9012
+ * overridden for every type with properties.
9013
+ * @param property_id
9014
+ * @param value
9015
+ * @param pspec
9016
+ */
8980
9017
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
8981
9018
  /**
8982
9019
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -8992,6 +9029,16 @@ export namespace Clutter {
8992
9029
  * @param pspec
8993
9030
  */
8994
9031
  vfunc_notify(pspec: GObject.ParamSpec): void;
9032
+ /**
9033
+ * the generic setter for all properties of this type. Should be
9034
+ * overridden for every type with properties. If implementations of
9035
+ * `set_property` don't emit property change notification explicitly, this will
9036
+ * be done implicitly by the type system. However, if the notify signal is
9037
+ * emitted explicitly, the type system will not emit it a second time.
9038
+ * @param property_id
9039
+ * @param value
9040
+ * @param pspec
9041
+ */
8995
9042
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
8996
9043
  disconnect(id: number): void;
8997
9044
  set(properties: { [key: string]: any }): void;
@@ -10565,7 +10612,7 @@ export namespace Clutter {
10565
10612
  * static void
10566
10613
  * my_object_class_init (MyObjectClass *klass)
10567
10614
  * {
10568
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
10615
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
10569
10616
  * 0, 100,
10570
10617
  * 50,
10571
10618
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -10718,10 +10765,45 @@ export namespace Clutter {
10718
10765
  * @param closure #GClosure to watch
10719
10766
  */
10720
10767
  watch_closure(closure: GObject.Closure): void;
10768
+ /**
10769
+ * the `constructed` function is called by g_object_new() as the
10770
+ * final step of the object creation process. At the point of the call, all
10771
+ * construction properties have been set on the object. The purpose of this
10772
+ * call is to allow for object initialisation steps that can only be performed
10773
+ * after construction properties have been set. `constructed` implementors
10774
+ * should chain up to the `constructed` call of their parent class to allow it
10775
+ * to complete its initialisation.
10776
+ */
10721
10777
  vfunc_constructed(): void;
10778
+ /**
10779
+ * emits property change notification for a bunch
10780
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
10781
+ * needed.
10782
+ * @param n_pspecs
10783
+ * @param pspecs
10784
+ */
10722
10785
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
10786
+ /**
10787
+ * the `dispose` function is supposed to drop all references to other
10788
+ * objects, but keep the instance otherwise intact, so that client method
10789
+ * invocations still work. It may be run multiple times (due to reference
10790
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
10791
+ * of the parent class.
10792
+ */
10723
10793
  vfunc_dispose(): void;
10794
+ /**
10795
+ * instance finalization function, should finish the finalization of
10796
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
10797
+ * parent class.
10798
+ */
10724
10799
  vfunc_finalize(): void;
10800
+ /**
10801
+ * the generic getter for all properties of this type. Should be
10802
+ * overridden for every type with properties.
10803
+ * @param property_id
10804
+ * @param value
10805
+ * @param pspec
10806
+ */
10725
10807
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
10726
10808
  /**
10727
10809
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -10737,6 +10819,16 @@ export namespace Clutter {
10737
10819
  * @param pspec
10738
10820
  */
10739
10821
  vfunc_notify(pspec: GObject.ParamSpec): void;
10822
+ /**
10823
+ * the generic setter for all properties of this type. Should be
10824
+ * overridden for every type with properties. If implementations of
10825
+ * `set_property` don't emit property change notification explicitly, this will
10826
+ * be done implicitly by the type system. However, if the notify signal is
10827
+ * emitted explicitly, the type system will not emit it a second time.
10828
+ * @param property_id
10829
+ * @param value
10830
+ * @param pspec
10831
+ */
10740
10832
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
10741
10833
  disconnect(id: number): void;
10742
10834
  set(properties: { [key: string]: any }): void;
@@ -12862,7 +12954,7 @@ export namespace Clutter {
12862
12954
  * static void
12863
12955
  * my_object_class_init (MyObjectClass *klass)
12864
12956
  * {
12865
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
12957
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
12866
12958
  * 0, 100,
12867
12959
  * 50,
12868
12960
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -13000,10 +13092,45 @@ export namespace Clutter {
13000
13092
  * @param closure #GClosure to watch
13001
13093
  */
13002
13094
  watch_closure(closure: GObject.Closure): void;
13095
+ /**
13096
+ * the `constructed` function is called by g_object_new() as the
13097
+ * final step of the object creation process. At the point of the call, all
13098
+ * construction properties have been set on the object. The purpose of this
13099
+ * call is to allow for object initialisation steps that can only be performed
13100
+ * after construction properties have been set. `constructed` implementors
13101
+ * should chain up to the `constructed` call of their parent class to allow it
13102
+ * to complete its initialisation.
13103
+ */
13003
13104
  vfunc_constructed(): void;
13105
+ /**
13106
+ * emits property change notification for a bunch
13107
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
13108
+ * needed.
13109
+ * @param n_pspecs
13110
+ * @param pspecs
13111
+ */
13004
13112
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
13113
+ /**
13114
+ * the `dispose` function is supposed to drop all references to other
13115
+ * objects, but keep the instance otherwise intact, so that client method
13116
+ * invocations still work. It may be run multiple times (due to reference
13117
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
13118
+ * of the parent class.
13119
+ */
13005
13120
  vfunc_dispose(): void;
13121
+ /**
13122
+ * instance finalization function, should finish the finalization of
13123
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
13124
+ * parent class.
13125
+ */
13006
13126
  vfunc_finalize(): void;
13127
+ /**
13128
+ * the generic getter for all properties of this type. Should be
13129
+ * overridden for every type with properties.
13130
+ * @param property_id
13131
+ * @param value
13132
+ * @param pspec
13133
+ */
13007
13134
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
13008
13135
  /**
13009
13136
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -13019,6 +13146,16 @@ export namespace Clutter {
13019
13146
  * @param pspec
13020
13147
  */
13021
13148
  vfunc_notify(pspec: GObject.ParamSpec): void;
13149
+ /**
13150
+ * the generic setter for all properties of this type. Should be
13151
+ * overridden for every type with properties. If implementations of
13152
+ * `set_property` don't emit property change notification explicitly, this will
13153
+ * be done implicitly by the type system. However, if the notify signal is
13154
+ * emitted explicitly, the type system will not emit it a second time.
13155
+ * @param property_id
13156
+ * @param value
13157
+ * @param pspec
13158
+ */
13022
13159
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
13023
13160
  disconnect(id: number): void;
13024
13161
  set(properties: { [key: string]: any }): void;
@@ -15031,7 +15168,7 @@ export namespace Clutter {
15031
15168
  * static void
15032
15169
  * my_object_class_init (MyObjectClass *klass)
15033
15170
  * {
15034
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
15171
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
15035
15172
  * 0, 100,
15036
15173
  * 50,
15037
15174
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -15184,10 +15321,45 @@ export namespace Clutter {
15184
15321
  * @param closure #GClosure to watch
15185
15322
  */
15186
15323
  watch_closure(closure: GObject.Closure): void;
15324
+ /**
15325
+ * the `constructed` function is called by g_object_new() as the
15326
+ * final step of the object creation process. At the point of the call, all
15327
+ * construction properties have been set on the object. The purpose of this
15328
+ * call is to allow for object initialisation steps that can only be performed
15329
+ * after construction properties have been set. `constructed` implementors
15330
+ * should chain up to the `constructed` call of their parent class to allow it
15331
+ * to complete its initialisation.
15332
+ */
15187
15333
  vfunc_constructed(): void;
15334
+ /**
15335
+ * emits property change notification for a bunch
15336
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
15337
+ * needed.
15338
+ * @param n_pspecs
15339
+ * @param pspecs
15340
+ */
15188
15341
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
15342
+ /**
15343
+ * the `dispose` function is supposed to drop all references to other
15344
+ * objects, but keep the instance otherwise intact, so that client method
15345
+ * invocations still work. It may be run multiple times (due to reference
15346
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
15347
+ * of the parent class.
15348
+ */
15189
15349
  vfunc_dispose(): void;
15350
+ /**
15351
+ * instance finalization function, should finish the finalization of
15352
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
15353
+ * parent class.
15354
+ */
15190
15355
  vfunc_finalize(): void;
15356
+ /**
15357
+ * the generic getter for all properties of this type. Should be
15358
+ * overridden for every type with properties.
15359
+ * @param property_id
15360
+ * @param value
15361
+ * @param pspec
15362
+ */
15191
15363
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
15192
15364
  /**
15193
15365
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -15203,6 +15375,16 @@ export namespace Clutter {
15203
15375
  * @param pspec
15204
15376
  */
15205
15377
  vfunc_notify(pspec: GObject.ParamSpec): void;
15378
+ /**
15379
+ * the generic setter for all properties of this type. Should be
15380
+ * overridden for every type with properties. If implementations of
15381
+ * `set_property` don't emit property change notification explicitly, this will
15382
+ * be done implicitly by the type system. However, if the notify signal is
15383
+ * emitted explicitly, the type system will not emit it a second time.
15384
+ * @param property_id
15385
+ * @param value
15386
+ * @param pspec
15387
+ */
15206
15388
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
15207
15389
  disconnect(id: number): void;
15208
15390
  set(properties: { [key: string]: any }): void;
@@ -16612,7 +16794,7 @@ export namespace Clutter {
16612
16794
  * static void
16613
16795
  * my_object_class_init (MyObjectClass *klass)
16614
16796
  * {
16615
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
16797
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
16616
16798
  * 0, 100,
16617
16799
  * 50,
16618
16800
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -16765,10 +16947,45 @@ export namespace Clutter {
16765
16947
  * @param closure #GClosure to watch
16766
16948
  */
16767
16949
  watch_closure(closure: GObject.Closure): void;
16950
+ /**
16951
+ * the `constructed` function is called by g_object_new() as the
16952
+ * final step of the object creation process. At the point of the call, all
16953
+ * construction properties have been set on the object. The purpose of this
16954
+ * call is to allow for object initialisation steps that can only be performed
16955
+ * after construction properties have been set. `constructed` implementors
16956
+ * should chain up to the `constructed` call of their parent class to allow it
16957
+ * to complete its initialisation.
16958
+ */
16768
16959
  vfunc_constructed(): void;
16960
+ /**
16961
+ * emits property change notification for a bunch
16962
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
16963
+ * needed.
16964
+ * @param n_pspecs
16965
+ * @param pspecs
16966
+ */
16769
16967
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
16968
+ /**
16969
+ * the `dispose` function is supposed to drop all references to other
16970
+ * objects, but keep the instance otherwise intact, so that client method
16971
+ * invocations still work. It may be run multiple times (due to reference
16972
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
16973
+ * of the parent class.
16974
+ */
16770
16975
  vfunc_dispose(): void;
16976
+ /**
16977
+ * instance finalization function, should finish the finalization of
16978
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
16979
+ * parent class.
16980
+ */
16771
16981
  vfunc_finalize(): void;
16982
+ /**
16983
+ * the generic getter for all properties of this type. Should be
16984
+ * overridden for every type with properties.
16985
+ * @param property_id
16986
+ * @param value
16987
+ * @param pspec
16988
+ */
16772
16989
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
16773
16990
  /**
16774
16991
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -16784,6 +17001,16 @@ export namespace Clutter {
16784
17001
  * @param pspec
16785
17002
  */
16786
17003
  vfunc_notify(pspec: GObject.ParamSpec): void;
17004
+ /**
17005
+ * the generic setter for all properties of this type. Should be
17006
+ * overridden for every type with properties. If implementations of
17007
+ * `set_property` don't emit property change notification explicitly, this will
17008
+ * be done implicitly by the type system. However, if the notify signal is
17009
+ * emitted explicitly, the type system will not emit it a second time.
17010
+ * @param property_id
17011
+ * @param value
17012
+ * @param pspec
17013
+ */
16787
17014
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
16788
17015
  disconnect(id: number): void;
16789
17016
  set(properties: { [key: string]: any }): void;
@@ -18340,7 +18567,7 @@ export namespace Clutter {
18340
18567
  * static void
18341
18568
  * my_object_class_init (MyObjectClass *klass)
18342
18569
  * {
18343
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
18570
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
18344
18571
  * 0, 100,
18345
18572
  * 50,
18346
18573
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -18493,10 +18720,45 @@ export namespace Clutter {
18493
18720
  * @param closure #GClosure to watch
18494
18721
  */
18495
18722
  watch_closure(closure: GObject.Closure): void;
18723
+ /**
18724
+ * the `constructed` function is called by g_object_new() as the
18725
+ * final step of the object creation process. At the point of the call, all
18726
+ * construction properties have been set on the object. The purpose of this
18727
+ * call is to allow for object initialisation steps that can only be performed
18728
+ * after construction properties have been set. `constructed` implementors
18729
+ * should chain up to the `constructed` call of their parent class to allow it
18730
+ * to complete its initialisation.
18731
+ */
18496
18732
  vfunc_constructed(): void;
18733
+ /**
18734
+ * emits property change notification for a bunch
18735
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
18736
+ * needed.
18737
+ * @param n_pspecs
18738
+ * @param pspecs
18739
+ */
18497
18740
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
18741
+ /**
18742
+ * the `dispose` function is supposed to drop all references to other
18743
+ * objects, but keep the instance otherwise intact, so that client method
18744
+ * invocations still work. It may be run multiple times (due to reference
18745
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
18746
+ * of the parent class.
18747
+ */
18498
18748
  vfunc_dispose(): void;
18749
+ /**
18750
+ * instance finalization function, should finish the finalization of
18751
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
18752
+ * parent class.
18753
+ */
18499
18754
  vfunc_finalize(): void;
18755
+ /**
18756
+ * the generic getter for all properties of this type. Should be
18757
+ * overridden for every type with properties.
18758
+ * @param property_id
18759
+ * @param value
18760
+ * @param pspec
18761
+ */
18500
18762
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
18501
18763
  /**
18502
18764
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -18512,6 +18774,16 @@ export namespace Clutter {
18512
18774
  * @param pspec
18513
18775
  */
18514
18776
  vfunc_notify(pspec: GObject.ParamSpec): void;
18777
+ /**
18778
+ * the generic setter for all properties of this type. Should be
18779
+ * overridden for every type with properties. If implementations of
18780
+ * `set_property` don't emit property change notification explicitly, this will
18781
+ * be done implicitly by the type system. However, if the notify signal is
18782
+ * emitted explicitly, the type system will not emit it a second time.
18783
+ * @param property_id
18784
+ * @param value
18785
+ * @param pspec
18786
+ */
18515
18787
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
18516
18788
  disconnect(id: number): void;
18517
18789
  set(properties: { [key: string]: any }): void;
@@ -19057,7 +19329,7 @@ export namespace Clutter {
19057
19329
  * static void
19058
19330
  * my_object_class_init (MyObjectClass *klass)
19059
19331
  * {
19060
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
19332
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
19061
19333
  * 0, 100,
19062
19334
  * 50,
19063
19335
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -19210,10 +19482,45 @@ export namespace Clutter {
19210
19482
  * @param closure #GClosure to watch
19211
19483
  */
19212
19484
  watch_closure(closure: GObject.Closure): void;
19485
+ /**
19486
+ * the `constructed` function is called by g_object_new() as the
19487
+ * final step of the object creation process. At the point of the call, all
19488
+ * construction properties have been set on the object. The purpose of this
19489
+ * call is to allow for object initialisation steps that can only be performed
19490
+ * after construction properties have been set. `constructed` implementors
19491
+ * should chain up to the `constructed` call of their parent class to allow it
19492
+ * to complete its initialisation.
19493
+ */
19213
19494
  vfunc_constructed(): void;
19495
+ /**
19496
+ * emits property change notification for a bunch
19497
+ * of properties. Overriding `dispatch_properties_changed` should be rarely
19498
+ * needed.
19499
+ * @param n_pspecs
19500
+ * @param pspecs
19501
+ */
19214
19502
  vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
19503
+ /**
19504
+ * the `dispose` function is supposed to drop all references to other
19505
+ * objects, but keep the instance otherwise intact, so that client method
19506
+ * invocations still work. It may be run multiple times (due to reference
19507
+ * loops). Before returning, `dispose` should chain up to the `dispose` method
19508
+ * of the parent class.
19509
+ */
19215
19510
  vfunc_dispose(): void;
19511
+ /**
19512
+ * instance finalization function, should finish the finalization of
19513
+ * the instance begun in `dispose` and chain up to the `finalize` method of the
19514
+ * parent class.
19515
+ */
19216
19516
  vfunc_finalize(): void;
19517
+ /**
19518
+ * the generic getter for all properties of this type. Should be
19519
+ * overridden for every type with properties.
19520
+ * @param property_id
19521
+ * @param value
19522
+ * @param pspec
19523
+ */
19217
19524
  vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
19218
19525
  /**
19219
19526
  * Emits a "notify" signal for the property `property_name` on `object`.
@@ -19229,6 +19536,16 @@ export namespace Clutter {
19229
19536
  * @param pspec
19230
19537
  */
19231
19538
  vfunc_notify(pspec: GObject.ParamSpec): void;
19539
+ /**
19540
+ * the generic setter for all properties of this type. Should be
19541
+ * overridden for every type with properties. If implementations of
19542
+ * `set_property` don't emit property change notification explicitly, this will
19543
+ * be done implicitly by the type system. However, if the notify signal is
19544
+ * emitted explicitly, the type system will not emit it a second time.
19545
+ * @param property_id
19546
+ * @param value
19547
+ * @param pspec
19548
+ */
19232
19549
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
19233
19550
  disconnect(id: number): void;
19234
19551
  set(properties: { [key: string]: any }): void;
@@ -21672,4 +21989,5 @@ export namespace Clutter {
21672
21989
  }
21673
21990
 
21674
21991
  export default Clutter;
21992
+
21675
21993
  // END
package/clutter-14.js CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
- // @ts-expect-error
3
- import Clutter from 'gi://Clutter?version=14';
4
- export { Clutter };
5
- export default Clutter;
2
+ // @ts-expect-error
3
+ import Clutter from 'gi://Clutter?version=14';
4
+ export default Clutter;
6
5
 
package/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ *
7
+ * This template is used to generate the index.d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
+ */
9
+
10
+ import './clutter-14-ambient.d.ts';
11
+
12
+ import Clutter from './clutter-14.js';
13
+ export default Clutter;
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+
2
+ // @ts-expect-error
3
+ import Clutter from './clutter-14.js';
4
+ export default Clutter;
5
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/clutter-14",
3
- "version": "14.0.0-4.0.0-beta.5",
3
+ "version": "14.0.0-4.0.0-beta.7",
4
4
  "description": "GJS TypeScript type definitions for Clutter-14, generated from library version 14.0.0",
5
5
  "type": "module",
6
6
  "module": "clutter-14.js",
@@ -16,32 +16,38 @@
16
16
  "import": "./clutter-14-import.js",
17
17
  "default": "./clutter-14-import.js"
18
18
  },
19
- ".": {
19
+ "./clutter-14": {
20
20
  "types": "./clutter-14.d.ts",
21
21
  "import": "./clutter-14.js",
22
22
  "default": "./clutter-14.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
23
28
  }
24
29
  },
25
30
  "scripts": {
26
- "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit clutter-14.d.ts"
31
+ "test": "tsc --project tsconfig.json"
27
32
  },
28
33
  "dependencies": {
29
- "@girs/atk-1.0": "^2.52.0-4.0.0-beta.5",
30
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.5",
31
- "@girs/cogl-14": "^14.0.0-4.0.0-beta.5",
32
- "@girs/coglpango-14": "^14.0.0-4.0.0-beta.5",
33
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.5",
34
- "@girs/gio-2.0": "^2.80.0-4.0.0-beta.5",
35
- "@girs/gjs": "^4.0.0-beta.5",
36
- "@girs/gl-1.0": "^1.0.0-4.0.0-beta.5",
37
- "@girs/glib-2.0": "^2.80.0-4.0.0-beta.5",
38
- "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.5",
39
- "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.5",
40
- "@girs/harfbuzz-0.0": "^8.3.1-4.0.0-beta.5",
41
- "@girs/mtk-14": "^14.0.0-4.0.0-beta.5",
42
- "@girs/pango-1.0": "^1.52.2-4.0.0-beta.5",
43
- "@girs/pangocairo-1.0": "^1.0.0-4.0.0-beta.5",
44
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.5"
34
+ "@girs/atk-1.0": "^2.52.0-4.0.0-beta.7",
35
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.7",
36
+ "@girs/cogl-14": "^14.0.0-4.0.0-beta.7",
37
+ "@girs/coglpango-14": "^14.0.0-4.0.0-beta.7",
38
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.7",
39
+ "@girs/gio-2.0": "^2.80.2-4.0.0-beta.7",
40
+ "@girs/gjs": "^4.0.0-beta.7",
41
+ "@girs/gl-1.0": "^1.0.0-4.0.0-beta.7",
42
+ "@girs/glib-2.0": "^2.80.2-4.0.0-beta.7",
43
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.7",
44
+ "@girs/gobject-2.0": "^2.80.2-4.0.0-beta.7",
45
+ "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.7",
46
+ "@girs/harfbuzz-0.0": "^8.1.1-4.0.0-beta.7",
47
+ "@girs/mtk-14": "^14.0.0-4.0.0-beta.7",
48
+ "@girs/pango-1.0": "^1.52.2-4.0.0-beta.7",
49
+ "@girs/pangocairo-1.0": "^1.0.0-4.0.0-beta.7",
50
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.7"
45
51
  },
46
52
  "devDependencies": {
47
53
  "typescript": "*"
package/tsconfig.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "compilerOptions": {
3
3
  // General settings for code interpretation
4
4
  "target": "ESNext",
5
- "module": "ESNext",
5
+ "module": "NodeNext",
6
6
  "lib": ["ESNext"],
7
7
  "types": [],
8
8
  "experimentalDecorators": true,
9
- "moduleResolution": "node",
9
+ "moduleResolution": "NodeNext",
10
10
  "noEmit": true,
11
11
  "noEmitOnError": false,
12
12
  "baseUrl": "./",