@girs/gobject-2.0 2.86.0-4.0.0-beta.37 → 2.86.4-4.0.0-beta.39

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/gobject-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GObject-2.0, generated from library version 2.86.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.37.
8
+ GJS TypeScript type definitions for GObject-2.0, generated from library version 2.86.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.39.
9
9
 
10
10
  ## Install
11
11
 
package/gobject-2.0.d.ts CHANGED
@@ -2158,6 +2158,15 @@ export namespace GObject {
2158
2158
  * @returns the #GTypeClass structure for the given type ID or %NULL if the class does not currently exist or is dynamically loaded
2159
2159
  */
2160
2160
  function type_class_peek_static(type: GType): TypeClass | null;
2161
+ /**
2162
+ * Increments the reference count of the class structure belonging to
2163
+ * `type`.
2164
+ *
2165
+ * This function will demand-create the class if it doesn't exist already.
2166
+ * @param type type ID of a classed type
2167
+ * @returns the #GTypeClass structure for the given type ID
2168
+ */
2169
+ function type_class_ref(type: GType): TypeClass;
2161
2170
  /**
2162
2171
  * Returns the default interface vtable for the given `g_type`.
2163
2172
  *
@@ -2183,6 +2192,21 @@ export namespace GObject {
2183
2192
  * @returns the default vtable for the interface, or %NULL if the type is not currently in use
2184
2193
  */
2185
2194
  function type_default_interface_peek(g_type: GType): TypeInterface;
2195
+ /**
2196
+ * Increments the reference count for the interface type `g_type,`
2197
+ * and returns the default interface vtable for the type.
2198
+ *
2199
+ * If the type is not currently in use, then the default vtable
2200
+ * for the type will be created and initialized by calling
2201
+ * the base interface init and default vtable init functions for
2202
+ * the type (the `base_init` and `class_init` members of #GTypeInfo).
2203
+ * Calling g_type_default_interface_ref() is useful when you
2204
+ * want to make sure that signals and properties for an interface
2205
+ * have been installed.
2206
+ * @param g_type an interface type
2207
+ * @returns the default vtable for the interface; call g_type_default_interface_unref() when you are done using the interface.
2208
+ */
2209
+ function type_default_interface_ref(g_type: GType): TypeInterface;
2186
2210
  /**
2187
2211
  * Decrements the reference count for the type corresponding to the
2188
2212
  * interface default vtable `g_iface`.
@@ -5388,10 +5412,6 @@ export namespace GObject {
5388
5412
 
5389
5413
  callback: any;
5390
5414
 
5391
- // Constructors
5392
-
5393
- _init(...args: any[]): void;
5394
-
5395
5415
  // Static methods
5396
5416
 
5397
5417
  /**
@@ -5828,10 +5848,6 @@ export namespace GObject {
5828
5848
 
5829
5849
  data: any;
5830
5850
  notify: ClosureNotify;
5831
-
5832
- // Constructors
5833
-
5834
- _init(...args: any[]): void;
5835
5851
  }
5836
5852
 
5837
5853
  /**
@@ -5847,10 +5863,6 @@ export namespace GObject {
5847
5863
  maximum: number;
5848
5864
  n_values: number;
5849
5865
  values: EnumValue;
5850
-
5851
- // Constructors
5852
-
5853
- _init(...args: any[]): void;
5854
5866
  }
5855
5867
 
5856
5868
  /**
@@ -5875,7 +5887,6 @@ export namespace GObject {
5875
5887
  value_nick: string;
5876
5888
  }>,
5877
5889
  );
5878
- _init(...args: any[]): void;
5879
5890
  }
5880
5891
 
5881
5892
  /**
@@ -5890,10 +5901,6 @@ export namespace GObject {
5890
5901
  mask: number;
5891
5902
  n_values: number;
5892
5903
  values: FlagsValue;
5893
-
5894
- // Constructors
5895
-
5896
- _init(...args: any[]): void;
5897
5904
  }
5898
5905
 
5899
5906
  /**
@@ -5918,7 +5925,6 @@ export namespace GObject {
5918
5925
  value_nick: string;
5919
5926
  }>,
5920
5927
  );
5921
- _init(...args: any[]): void;
5922
5928
  }
5923
5929
 
5924
5930
  type InitiallyUnownedClass = typeof InitiallyUnowned;
@@ -5934,10 +5940,6 @@ export namespace GObject {
5934
5940
  interface_init: InterfaceInitFunc;
5935
5941
  interface_finalize: InterfaceFinalizeFunc;
5936
5942
  interface_data: any;
5937
-
5938
- // Constructors
5939
-
5940
- _init(...args: any[]): void;
5941
5943
  }
5942
5944
 
5943
5945
  type ObjectClass = typeof Object;
@@ -5951,10 +5953,6 @@ export namespace GObject {
5951
5953
  // Fields
5952
5954
 
5953
5955
  pspec: ParamSpec;
5954
-
5955
- // Constructors
5956
-
5957
- _init(...args: any[]): void;
5958
5956
  }
5959
5957
 
5960
5958
  type ParamSpecClass = typeof ParamSpec;
@@ -5968,10 +5966,6 @@ export namespace GObject {
5968
5966
  abstract class ParamSpecPool {
5969
5967
  static $gtype: GType<ParamSpecPool>;
5970
5968
 
5971
- // Constructors
5972
-
5973
- _init(...args: any[]): void;
5974
-
5975
5969
  // Methods
5976
5970
 
5977
5971
  /**
@@ -6031,10 +6025,6 @@ export namespace GObject {
6031
6025
  instance_size: number;
6032
6026
  n_preallocs: number;
6033
6027
  value_type: GType;
6034
-
6035
- // Constructors
6036
-
6037
- _init(...args: any[]): void;
6038
6028
  }
6039
6029
 
6040
6030
  /**
@@ -6047,10 +6037,6 @@ export namespace GObject {
6047
6037
  // Fields
6048
6038
 
6049
6039
  name: string;
6050
-
6051
- // Constructors
6052
-
6053
- _init(...args: any[]): void;
6054
6040
  }
6055
6041
 
6056
6042
  /**
@@ -6065,10 +6051,6 @@ export namespace GObject {
6065
6051
  signal_id: number;
6066
6052
  detail: GLib.Quark;
6067
6053
  run_type: SignalFlags;
6068
-
6069
- // Constructors
6070
-
6071
- _init(...args: any[]): void;
6072
6054
  }
6073
6055
 
6074
6056
  /**
@@ -6088,10 +6070,6 @@ export namespace GObject {
6088
6070
  return_type: GType;
6089
6071
  n_params: number;
6090
6072
  param_types: GType[];
6091
-
6092
- // Constructors
6093
-
6094
- _init(...args: any[]): void;
6095
6073
  }
6096
6074
 
6097
6075
  /**
@@ -6100,10 +6078,6 @@ export namespace GObject {
6100
6078
  class TypeClass {
6101
6079
  static $gtype: GType<TypeClass>;
6102
6080
 
6103
- // Constructors
6104
-
6105
- _init(...args: any[]): void;
6106
-
6107
6081
  // Static methods
6108
6082
 
6109
6083
  static adjust_private_offset(g_class: any | null, private_size_or_offset: number): void;
@@ -6135,6 +6109,14 @@ export namespace GObject {
6135
6109
  * @param type type ID of a classed type
6136
6110
  */
6137
6111
  static peek_static(type: GType): TypeClass | null;
6112
+ /**
6113
+ * Increments the reference count of the class structure belonging to
6114
+ * `type`.
6115
+ *
6116
+ * This function will demand-create the class if it doesn't exist already.
6117
+ * @param type type ID of a classed type
6118
+ */
6119
+ static ref(type: GType): TypeClass;
6138
6120
 
6139
6121
  // Methods
6140
6122
 
@@ -6241,10 +6223,6 @@ export namespace GObject {
6241
6223
  // Fields
6242
6224
 
6243
6225
  type_flags: TypeFundamentalFlags;
6244
-
6245
- // Constructors
6246
-
6247
- _init(...args: any[]): void;
6248
6226
  }
6249
6227
 
6250
6228
  /**
@@ -6272,10 +6250,6 @@ export namespace GObject {
6272
6250
  instance_size: number;
6273
6251
  n_preallocs: number;
6274
6252
  instance_init: InstanceInitFunc;
6275
-
6276
- // Constructors
6277
-
6278
- _init(...args: any[]): void;
6279
6253
  }
6280
6254
 
6281
6255
  /**
@@ -6284,10 +6258,6 @@ export namespace GObject {
6284
6258
  class TypeInstance {
6285
6259
  static $gtype: GType<TypeInstance>;
6286
6260
 
6287
- // Constructors
6288
-
6289
- _init(...args: any[]): void;
6290
-
6291
6261
  // Methods
6292
6262
 
6293
6263
  get_private(private_type: GType): any | null;
@@ -6299,10 +6269,6 @@ export namespace GObject {
6299
6269
  class TypeInterface {
6300
6270
  static $gtype: GType<TypeInterface>;
6301
6271
 
6302
- // Constructors
6303
-
6304
- _init(...args: any[]): void;
6305
-
6306
6272
  // Static methods
6307
6273
 
6308
6274
  /**
@@ -6374,10 +6340,6 @@ export namespace GObject {
6374
6340
  unuse_plugin: TypePluginUnuse;
6375
6341
  complete_type_info: TypePluginCompleteTypeInfo;
6376
6342
  complete_interface_info: TypePluginCompleteInterfaceInfo;
6377
-
6378
- // Constructors
6379
-
6380
- _init(...args: any[]): void;
6381
6343
  }
6382
6344
 
6383
6345
  /**
@@ -6394,10 +6356,6 @@ export namespace GObject {
6394
6356
  type_name: string;
6395
6357
  class_size: number;
6396
6358
  instance_size: number;
6397
-
6398
- // Constructors
6399
-
6400
- _init(...args: any[]): void;
6401
6359
  }
6402
6360
 
6403
6361
  /**
@@ -6426,10 +6384,6 @@ export namespace GObject {
6426
6384
  collect_value: TypeValueCollectFunc;
6427
6385
  lcopy_format: string;
6428
6386
  lcopy_value: TypeValueLCopyFunc;
6429
-
6430
- // Constructors
6431
-
6432
- _init(...args: any[]): void;
6433
6387
  }
6434
6388
 
6435
6389
  /**
@@ -6456,10 +6410,6 @@ export namespace GObject {
6456
6410
  class Value {
6457
6411
  static $gtype: GType<Value>;
6458
6412
 
6459
- // Constructors
6460
-
6461
- _init(...args: any[]): void;
6462
-
6463
6413
  // Static methods
6464
6414
 
6465
6415
  /**
@@ -6931,7 +6881,6 @@ export namespace GObject {
6931
6881
  // Constructors
6932
6882
 
6933
6883
  constructor(n_prealloced: number);
6934
- _init(...args: any[]): void;
6935
6884
 
6936
6885
  static ['new'](n_prealloced: number): ValueArray;
6937
6886
 
@@ -7027,10 +6976,6 @@ export namespace GObject {
7027
6976
  */
7028
6977
  class WeakRef {
7029
6978
  static $gtype: GType<WeakRef>;
7030
-
7031
- // Constructors
7032
-
7033
- _init(...args: any[]): void;
7034
6979
  }
7035
6980
 
7036
6981
  /**
@@ -7058,7 +7003,6 @@ export namespace GObject {
7058
7003
  v_pointer: any;
7059
7004
  }>,
7060
7005
  );
7061
- _init(...args: any[]): void;
7062
7006
  }
7063
7007
 
7064
7008
  class _Value__data__union {
@@ -7091,7 +7035,6 @@ export namespace GObject {
7091
7035
  v_pointer: any;
7092
7036
  }>,
7093
7037
  );
7094
- _init(...args: any[]): void;
7095
7038
  }
7096
7039
 
7097
7040
  namespace TypePlugin {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@girs/gobject-2.0",
3
- "version": "2.86.0-4.0.0-beta.37",
4
- "description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.86.0",
3
+ "version": "2.86.4-4.0.0-beta.39",
4
+ "description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.86.4",
5
5
  "type": "module",
6
6
  "module": "gobject-2.0.js",
7
7
  "main": "gobject-2.0.js",
@@ -31,8 +31,8 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "4.0.0-beta.37",
35
- "@girs/glib-2.0": "2.86.0-4.0.0-beta.37" },
34
+ "@girs/gjs": "4.0.0-beta.39",
35
+ "@girs/glib-2.0": "2.86.4-4.0.0-beta.39" },
36
36
  "devDependencies": {
37
37
  "typescript": "*"
38
38
  },