@girs/gtksource-3.0 3.0.0-4.0.0-beta.21 → 3.0.0-4.0.0-beta.23

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/gtksource-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GtkSource-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for GtkSource-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.23.
9
9
 
10
10
 
11
11
  ## Install
@@ -7,11 +7,13 @@
7
7
  * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
8
  */
9
9
 
10
+ import '@girs/gjs';
11
+
10
12
  // Module dependencies
11
13
  import type Gtk from '@girs/gtk-3.0';
12
14
  import type xlib from '@girs/xlib-2.0';
13
15
  import type Gdk from '@girs/gdk-3.0';
14
- import type cairo from '@girs/cairo-1.0';
16
+ import type cairo from 'cairo';
15
17
  import type GObject from '@girs/gobject-2.0';
16
18
  import type GLib from '@girs/glib-2.0';
17
19
  import type Pango from '@girs/pango-1.0';
@@ -776,7 +778,7 @@ export namespace GtkSource {
776
778
  * @param category category to search for, or %NULL
777
779
  * @returns whether @iter was moved.
778
780
  */
779
- backward_iter_to_source_mark(iter: Gtk.TextIter, category?: string | null): boolean;
781
+ backward_iter_to_source_mark(iter: Gtk.TextIter, category?: string | null): [boolean, Gtk.TextIter];
780
782
  /**
781
783
  * Marks the beginning of a not undoable action on the buffer,
782
784
  * disabling the undo manager. Typically you would call this function
@@ -843,7 +845,7 @@ export namespace GtkSource {
843
845
  * @param category category to search for, or %NULL
844
846
  * @returns whether @iter was moved.
845
847
  */
846
- forward_iter_to_source_mark(iter: Gtk.TextIter, category?: string | null): boolean;
848
+ forward_iter_to_source_mark(iter: Gtk.TextIter, category?: string | null): [boolean, Gtk.TextIter];
847
849
  /**
848
850
  * Get all defined context classes at `iter`.
849
851
  *
@@ -919,7 +921,7 @@ export namespace GtkSource {
919
921
  * @param context_class the context class.
920
922
  * @returns whether we found a context class toggle before @iter
921
923
  */
922
- iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean;
924
+ iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [boolean, Gtk.TextIter];
923
925
  /**
924
926
  * Moves forward to the next toggle (on or off) of the context class. If no
925
927
  * matching context class toggles are found, returns %FALSE, otherwise %TRUE.
@@ -932,7 +934,7 @@ export namespace GtkSource {
932
934
  * @param context_class the context class.
933
935
  * @returns whether we found a context class toggle after @iter
934
936
  */
935
- iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean;
937
+ iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [boolean, Gtk.TextIter];
936
938
  /**
937
939
  * Check if the class `context_class` is set on `iter`.
938
940
  *
@@ -1660,7 +1662,21 @@ export namespace GtkSource {
1660
1662
  * @returns the data if found, or %NULL if no such data exists.
1661
1663
  */
1662
1664
  get_data(key: string): any | null;
1663
- get_property(property_name: string): any;
1665
+ /**
1666
+ * Gets a property of an object.
1667
+ *
1668
+ * The value can be:
1669
+ * - 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)
1670
+ * - a GObject.Value initialized with the expected type of the property
1671
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1672
+ *
1673
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1674
+ *
1675
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1676
+ * @param property_name The name of the property to get
1677
+ * @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
1678
+ */
1679
+ get_property(property_name: string, value: GObject.Value | any): any;
1664
1680
  /**
1665
1681
  * This function gets back user data pointers stored via
1666
1682
  * g_object_set_qdata().
@@ -1788,7 +1804,12 @@ export namespace GtkSource {
1788
1804
  * @param data data to associate with that key
1789
1805
  */
1790
1806
  set_data(key: string, data?: any | null): void;
1791
- set_property(property_name: string, value: any): void;
1807
+ /**
1808
+ * Sets a property on an object.
1809
+ * @param property_name The name of the property to set
1810
+ * @param value The value to set the property to
1811
+ */
1812
+ set_property(property_name: string, value: GObject.Value | any): void;
1792
1813
  /**
1793
1814
  * Remove a specified datum from the object's data associations,
1794
1815
  * without invoking the association's destroy handler.
@@ -1938,11 +1959,31 @@ export namespace GtkSource {
1938
1959
  * @param pspec
1939
1960
  */
1940
1961
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1962
+ /**
1963
+ * 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.
1964
+ * @param id Handler ID of the handler to be disconnected
1965
+ */
1941
1966
  disconnect(id: number): void;
1967
+ /**
1968
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1969
+ * @param properties Object containing the properties to set
1970
+ */
1942
1971
  set(properties: { [key: string]: any }): void;
1943
- block_signal_handler(id: number): any;
1944
- unblock_signal_handler(id: number): any;
1945
- stop_emission_by_name(detailedName: string): any;
1972
+ /**
1973
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1974
+ * @param id Handler ID of the handler to be blocked
1975
+ */
1976
+ block_signal_handler(id: number): void;
1977
+ /**
1978
+ * Unblocks a handler so it will be called again during any signal emissions
1979
+ * @param id Handler ID of the handler to be unblocked
1980
+ */
1981
+ unblock_signal_handler(id: number): void;
1982
+ /**
1983
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1984
+ * @param detailedName Name of the signal to stop emission of
1985
+ */
1986
+ stop_emission_by_name(detailedName: string): void;
1946
1987
  }
1947
1988
 
1948
1989
  namespace CompletionContext {
@@ -2208,7 +2249,21 @@ export namespace GtkSource {
2208
2249
  * @returns the data if found, or %NULL if no such data exists.
2209
2250
  */
2210
2251
  get_data(key: string): any | null;
2211
- get_property(property_name: string): any;
2252
+ /**
2253
+ * Gets a property of an object.
2254
+ *
2255
+ * The value can be:
2256
+ * - 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)
2257
+ * - a GObject.Value initialized with the expected type of the property
2258
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
2259
+ *
2260
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
2261
+ *
2262
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
2263
+ * @param property_name The name of the property to get
2264
+ * @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
2265
+ */
2266
+ get_property(property_name: string, value: GObject.Value | any): any;
2212
2267
  /**
2213
2268
  * This function gets back user data pointers stored via
2214
2269
  * g_object_set_qdata().
@@ -2336,7 +2391,12 @@ export namespace GtkSource {
2336
2391
  * @param data data to associate with that key
2337
2392
  */
2338
2393
  set_data(key: string, data?: any | null): void;
2339
- set_property(property_name: string, value: any): void;
2394
+ /**
2395
+ * Sets a property on an object.
2396
+ * @param property_name The name of the property to set
2397
+ * @param value The value to set the property to
2398
+ */
2399
+ set_property(property_name: string, value: GObject.Value | any): void;
2340
2400
  /**
2341
2401
  * Remove a specified datum from the object's data associations,
2342
2402
  * without invoking the association's destroy handler.
@@ -2486,11 +2546,31 @@ export namespace GtkSource {
2486
2546
  * @param pspec
2487
2547
  */
2488
2548
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2549
+ /**
2550
+ * 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.
2551
+ * @param id Handler ID of the handler to be disconnected
2552
+ */
2489
2553
  disconnect(id: number): void;
2554
+ /**
2555
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
2556
+ * @param properties Object containing the properties to set
2557
+ */
2490
2558
  set(properties: { [key: string]: any }): void;
2491
- block_signal_handler(id: number): any;
2492
- unblock_signal_handler(id: number): any;
2493
- stop_emission_by_name(detailedName: string): any;
2559
+ /**
2560
+ * Blocks a handler of an instance so it will not be called during any signal emissions
2561
+ * @param id Handler ID of the handler to be blocked
2562
+ */
2563
+ block_signal_handler(id: number): void;
2564
+ /**
2565
+ * Unblocks a handler so it will be called again during any signal emissions
2566
+ * @param id Handler ID of the handler to be unblocked
2567
+ */
2568
+ unblock_signal_handler(id: number): void;
2569
+ /**
2570
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
2571
+ * @param detailedName Name of the signal to stop emission of
2572
+ */
2573
+ stop_emission_by_name(detailedName: string): void;
2494
2574
  }
2495
2575
 
2496
2576
  namespace CompletionItem {
@@ -2841,7 +2921,21 @@ export namespace GtkSource {
2841
2921
  * @returns the data if found, or %NULL if no such data exists.
2842
2922
  */
2843
2923
  get_data(key: string): any | null;
2844
- get_property(property_name: string): any;
2924
+ /**
2925
+ * Gets a property of an object.
2926
+ *
2927
+ * The value can be:
2928
+ * - 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)
2929
+ * - a GObject.Value initialized with the expected type of the property
2930
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
2931
+ *
2932
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
2933
+ *
2934
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
2935
+ * @param property_name The name of the property to get
2936
+ * @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
2937
+ */
2938
+ get_property(property_name: string, value: GObject.Value | any): any;
2845
2939
  /**
2846
2940
  * This function gets back user data pointers stored via
2847
2941
  * g_object_set_qdata().
@@ -2969,7 +3063,12 @@ export namespace GtkSource {
2969
3063
  * @param data data to associate with that key
2970
3064
  */
2971
3065
  set_data(key: string, data?: any | null): void;
2972
- set_property(property_name: string, value: any): void;
3066
+ /**
3067
+ * Sets a property on an object.
3068
+ * @param property_name The name of the property to set
3069
+ * @param value The value to set the property to
3070
+ */
3071
+ set_property(property_name: string, value: GObject.Value | any): void;
2973
3072
  /**
2974
3073
  * Remove a specified datum from the object's data associations,
2975
3074
  * without invoking the association's destroy handler.
@@ -3119,11 +3218,31 @@ export namespace GtkSource {
3119
3218
  * @param pspec
3120
3219
  */
3121
3220
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
3221
+ /**
3222
+ * 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.
3223
+ * @param id Handler ID of the handler to be disconnected
3224
+ */
3122
3225
  disconnect(id: number): void;
3226
+ /**
3227
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
3228
+ * @param properties Object containing the properties to set
3229
+ */
3123
3230
  set(properties: { [key: string]: any }): void;
3124
- block_signal_handler(id: number): any;
3125
- unblock_signal_handler(id: number): any;
3126
- stop_emission_by_name(detailedName: string): any;
3231
+ /**
3232
+ * Blocks a handler of an instance so it will not be called during any signal emissions
3233
+ * @param id Handler ID of the handler to be blocked
3234
+ */
3235
+ block_signal_handler(id: number): void;
3236
+ /**
3237
+ * Unblocks a handler so it will be called again during any signal emissions
3238
+ * @param id Handler ID of the handler to be unblocked
3239
+ */
3240
+ unblock_signal_handler(id: number): void;
3241
+ /**
3242
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
3243
+ * @param detailedName Name of the signal to stop emission of
3244
+ */
3245
+ stop_emission_by_name(detailedName: string): void;
3127
3246
  }
3128
3247
 
3129
3248
  namespace CompletionWords {
@@ -3548,7 +3667,21 @@ export namespace GtkSource {
3548
3667
  * @returns the data if found, or %NULL if no such data exists.
3549
3668
  */
3550
3669
  get_data(key: string): any | null;
3551
- get_property(property_name: string): any;
3670
+ /**
3671
+ * Gets a property of an object.
3672
+ *
3673
+ * The value can be:
3674
+ * - 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)
3675
+ * - a GObject.Value initialized with the expected type of the property
3676
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
3677
+ *
3678
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
3679
+ *
3680
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
3681
+ * @param property_name The name of the property to get
3682
+ * @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
3683
+ */
3684
+ get_property(property_name: string, value: GObject.Value | any): any;
3552
3685
  /**
3553
3686
  * This function gets back user data pointers stored via
3554
3687
  * g_object_set_qdata().
@@ -3676,7 +3809,12 @@ export namespace GtkSource {
3676
3809
  * @param data data to associate with that key
3677
3810
  */
3678
3811
  set_data(key: string, data?: any | null): void;
3679
- set_property(property_name: string, value: any): void;
3812
+ /**
3813
+ * Sets a property on an object.
3814
+ * @param property_name The name of the property to set
3815
+ * @param value The value to set the property to
3816
+ */
3817
+ set_property(property_name: string, value: GObject.Value | any): void;
3680
3818
  /**
3681
3819
  * Remove a specified datum from the object's data associations,
3682
3820
  * without invoking the association's destroy handler.
@@ -3826,11 +3964,31 @@ export namespace GtkSource {
3826
3964
  * @param pspec
3827
3965
  */
3828
3966
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
3967
+ /**
3968
+ * 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.
3969
+ * @param id Handler ID of the handler to be disconnected
3970
+ */
3829
3971
  disconnect(id: number): void;
3972
+ /**
3973
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
3974
+ * @param properties Object containing the properties to set
3975
+ */
3830
3976
  set(properties: { [key: string]: any }): void;
3831
- block_signal_handler(id: number): any;
3832
- unblock_signal_handler(id: number): any;
3833
- stop_emission_by_name(detailedName: string): any;
3977
+ /**
3978
+ * Blocks a handler of an instance so it will not be called during any signal emissions
3979
+ * @param id Handler ID of the handler to be blocked
3980
+ */
3981
+ block_signal_handler(id: number): void;
3982
+ /**
3983
+ * Unblocks a handler so it will be called again during any signal emissions
3984
+ * @param id Handler ID of the handler to be unblocked
3985
+ */
3986
+ unblock_signal_handler(id: number): void;
3987
+ /**
3988
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
3989
+ * @param detailedName Name of the signal to stop emission of
3990
+ */
3991
+ stop_emission_by_name(detailedName: string): void;
3834
3992
  }
3835
3993
 
3836
3994
  namespace File {
@@ -5333,7 +5491,21 @@ export namespace GtkSource {
5333
5491
  * @returns the data if found, or %NULL if no such data exists.
5334
5492
  */
5335
5493
  get_data(key: string): any | null;
5336
- get_property(property_name: string): any;
5494
+ /**
5495
+ * Gets a property of an object.
5496
+ *
5497
+ * The value can be:
5498
+ * - 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)
5499
+ * - a GObject.Value initialized with the expected type of the property
5500
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
5501
+ *
5502
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
5503
+ *
5504
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
5505
+ * @param property_name The name of the property to get
5506
+ * @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
5507
+ */
5508
+ get_property(property_name: string, value: GObject.Value | any): any;
5337
5509
  /**
5338
5510
  * This function gets back user data pointers stored via
5339
5511
  * g_object_set_qdata().
@@ -5461,7 +5633,12 @@ export namespace GtkSource {
5461
5633
  * @param data data to associate with that key
5462
5634
  */
5463
5635
  set_data(key: string, data?: any | null): void;
5464
- set_property(property_name: string, value: any): void;
5636
+ /**
5637
+ * Sets a property on an object.
5638
+ * @param property_name The name of the property to set
5639
+ * @param value The value to set the property to
5640
+ */
5641
+ set_property(property_name: string, value: GObject.Value | any): void;
5465
5642
  /**
5466
5643
  * Remove a specified datum from the object's data associations,
5467
5644
  * without invoking the association's destroy handler.
@@ -5611,11 +5788,31 @@ export namespace GtkSource {
5611
5788
  * @param pspec
5612
5789
  */
5613
5790
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
5791
+ /**
5792
+ * 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.
5793
+ * @param id Handler ID of the handler to be disconnected
5794
+ */
5614
5795
  disconnect(id: number): void;
5796
+ /**
5797
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
5798
+ * @param properties Object containing the properties to set
5799
+ */
5615
5800
  set(properties: { [key: string]: any }): void;
5616
- block_signal_handler(id: number): any;
5617
- unblock_signal_handler(id: number): any;
5618
- stop_emission_by_name(detailedName: string): any;
5801
+ /**
5802
+ * Blocks a handler of an instance so it will not be called during any signal emissions
5803
+ * @param id Handler ID of the handler to be blocked
5804
+ */
5805
+ block_signal_handler(id: number): void;
5806
+ /**
5807
+ * Unblocks a handler so it will be called again during any signal emissions
5808
+ * @param id Handler ID of the handler to be unblocked
5809
+ */
5810
+ unblock_signal_handler(id: number): void;
5811
+ /**
5812
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
5813
+ * @param detailedName Name of the signal to stop emission of
5814
+ */
5815
+ stop_emission_by_name(detailedName: string): void;
5619
5816
  }
5620
5817
 
5621
5818
  namespace Mark {
@@ -8198,7 +8395,21 @@ export namespace GtkSource {
8198
8395
  * @returns the data if found, or %NULL if no such data exists.
8199
8396
  */
8200
8397
  get_data(key: string): any | null;
8201
- get_property(property_name: string): any;
8398
+ /**
8399
+ * Gets a property of an object.
8400
+ *
8401
+ * The value can be:
8402
+ * - 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)
8403
+ * - a GObject.Value initialized with the expected type of the property
8404
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
8405
+ *
8406
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
8407
+ *
8408
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
8409
+ * @param property_name The name of the property to get
8410
+ * @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
8411
+ */
8412
+ get_property(property_name: string, value: GObject.Value | any): any;
8202
8413
  /**
8203
8414
  * This function gets back user data pointers stored via
8204
8415
  * g_object_set_qdata().
@@ -8326,7 +8537,12 @@ export namespace GtkSource {
8326
8537
  * @param data data to associate with that key
8327
8538
  */
8328
8539
  set_data(key: string, data?: any | null): void;
8329
- set_property(property_name: string, value: any): void;
8540
+ /**
8541
+ * Sets a property on an object.
8542
+ * @param property_name The name of the property to set
8543
+ * @param value The value to set the property to
8544
+ */
8545
+ set_property(property_name: string, value: GObject.Value | any): void;
8330
8546
  /**
8331
8547
  * Remove a specified datum from the object's data associations,
8332
8548
  * without invoking the association's destroy handler.
@@ -8476,11 +8692,31 @@ export namespace GtkSource {
8476
8692
  * @param pspec
8477
8693
  */
8478
8694
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
8695
+ /**
8696
+ * 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.
8697
+ * @param id Handler ID of the handler to be disconnected
8698
+ */
8479
8699
  disconnect(id: number): void;
8700
+ /**
8701
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
8702
+ * @param properties Object containing the properties to set
8703
+ */
8480
8704
  set(properties: { [key: string]: any }): void;
8481
- block_signal_handler(id: number): any;
8482
- unblock_signal_handler(id: number): any;
8483
- stop_emission_by_name(detailedName: string): any;
8705
+ /**
8706
+ * Blocks a handler of an instance so it will not be called during any signal emissions
8707
+ * @param id Handler ID of the handler to be blocked
8708
+ */
8709
+ block_signal_handler(id: number): void;
8710
+ /**
8711
+ * Unblocks a handler so it will be called again during any signal emissions
8712
+ * @param id Handler ID of the handler to be unblocked
8713
+ */
8714
+ unblock_signal_handler(id: number): void;
8715
+ /**
8716
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
8717
+ * @param detailedName Name of the signal to stop emission of
8718
+ */
8719
+ stop_emission_by_name(detailedName: string): void;
8484
8720
  /**
8485
8721
  * For widgets that can be “activated” (buttons, menu items, etc.)
8486
8722
  * this function activates them. Activation is what happens when you
@@ -12131,7 +12367,21 @@ export namespace GtkSource {
12131
12367
  * @returns the data if found, or %NULL if no such data exists.
12132
12368
  */
12133
12369
  get_data(key: string): any | null;
12134
- get_property(property_name: string): any;
12370
+ /**
12371
+ * Gets a property of an object.
12372
+ *
12373
+ * The value can be:
12374
+ * - 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)
12375
+ * - a GObject.Value initialized with the expected type of the property
12376
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
12377
+ *
12378
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
12379
+ *
12380
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
12381
+ * @param property_name The name of the property to get
12382
+ * @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
12383
+ */
12384
+ get_property(property_name: string, value: GObject.Value | any): any;
12135
12385
  /**
12136
12386
  * This function gets back user data pointers stored via
12137
12387
  * g_object_set_qdata().
@@ -12259,7 +12509,12 @@ export namespace GtkSource {
12259
12509
  * @param data data to associate with that key
12260
12510
  */
12261
12511
  set_data(key: string, data?: any | null): void;
12262
- set_property(property_name: string, value: any): void;
12512
+ /**
12513
+ * Sets a property on an object.
12514
+ * @param property_name The name of the property to set
12515
+ * @param value The value to set the property to
12516
+ */
12517
+ set_property(property_name: string, value: GObject.Value | any): void;
12263
12518
  /**
12264
12519
  * Remove a specified datum from the object's data associations,
12265
12520
  * without invoking the association's destroy handler.
@@ -12409,11 +12664,31 @@ export namespace GtkSource {
12409
12664
  * @param pspec
12410
12665
  */
12411
12666
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
12667
+ /**
12668
+ * 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.
12669
+ * @param id Handler ID of the handler to be disconnected
12670
+ */
12412
12671
  disconnect(id: number): void;
12672
+ /**
12673
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
12674
+ * @param properties Object containing the properties to set
12675
+ */
12413
12676
  set(properties: { [key: string]: any }): void;
12414
- block_signal_handler(id: number): any;
12415
- unblock_signal_handler(id: number): any;
12416
- stop_emission_by_name(detailedName: string): any;
12677
+ /**
12678
+ * Blocks a handler of an instance so it will not be called during any signal emissions
12679
+ * @param id Handler ID of the handler to be blocked
12680
+ */
12681
+ block_signal_handler(id: number): void;
12682
+ /**
12683
+ * Unblocks a handler so it will be called again during any signal emissions
12684
+ * @param id Handler ID of the handler to be unblocked
12685
+ */
12686
+ unblock_signal_handler(id: number): void;
12687
+ /**
12688
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
12689
+ * @param detailedName Name of the signal to stop emission of
12690
+ */
12691
+ stop_emission_by_name(detailedName: string): void;
12417
12692
  }
12418
12693
 
12419
12694
  namespace StyleSchemeManager {
@@ -13328,7 +13603,21 @@ export namespace GtkSource {
13328
13603
  * @returns the data if found, or %NULL if no such data exists.
13329
13604
  */
13330
13605
  get_data(key: string): any | null;
13331
- get_property(property_name: string): any;
13606
+ /**
13607
+ * Gets a property of an object.
13608
+ *
13609
+ * The value can be:
13610
+ * - 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)
13611
+ * - a GObject.Value initialized with the expected type of the property
13612
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
13613
+ *
13614
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
13615
+ *
13616
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
13617
+ * @param property_name The name of the property to get
13618
+ * @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
13619
+ */
13620
+ get_property(property_name: string, value: GObject.Value | any): any;
13332
13621
  /**
13333
13622
  * This function gets back user data pointers stored via
13334
13623
  * g_object_set_qdata().
@@ -13456,7 +13745,12 @@ export namespace GtkSource {
13456
13745
  * @param data data to associate with that key
13457
13746
  */
13458
13747
  set_data(key: string, data?: any | null): void;
13459
- set_property(property_name: string, value: any): void;
13748
+ /**
13749
+ * Sets a property on an object.
13750
+ * @param property_name The name of the property to set
13751
+ * @param value The value to set the property to
13752
+ */
13753
+ set_property(property_name: string, value: GObject.Value | any): void;
13460
13754
  /**
13461
13755
  * Remove a specified datum from the object's data associations,
13462
13756
  * without invoking the association's destroy handler.
@@ -13606,11 +13900,31 @@ export namespace GtkSource {
13606
13900
  * @param pspec
13607
13901
  */
13608
13902
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
13903
+ /**
13904
+ * 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.
13905
+ * @param id Handler ID of the handler to be disconnected
13906
+ */
13609
13907
  disconnect(id: number): void;
13908
+ /**
13909
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
13910
+ * @param properties Object containing the properties to set
13911
+ */
13610
13912
  set(properties: { [key: string]: any }): void;
13611
- block_signal_handler(id: number): any;
13612
- unblock_signal_handler(id: number): any;
13613
- stop_emission_by_name(detailedName: string): any;
13913
+ /**
13914
+ * Blocks a handler of an instance so it will not be called during any signal emissions
13915
+ * @param id Handler ID of the handler to be blocked
13916
+ */
13917
+ block_signal_handler(id: number): void;
13918
+ /**
13919
+ * Unblocks a handler so it will be called again during any signal emissions
13920
+ * @param id Handler ID of the handler to be unblocked
13921
+ */
13922
+ unblock_signal_handler(id: number): void;
13923
+ /**
13924
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
13925
+ * @param detailedName Name of the signal to stop emission of
13926
+ */
13927
+ stop_emission_by_name(detailedName: string): void;
13614
13928
  }
13615
13929
 
13616
13930
  type BufferClass = typeof Buffer;
@@ -13669,7 +13983,7 @@ export namespace GtkSource {
13669
13983
  _init(...args: any[]): void;
13670
13984
  }
13671
13985
 
13672
- abstract class Encoding {
13986
+ class Encoding {
13673
13987
  static $gtype: GObject.GType<Encoding>;
13674
13988
 
13675
13989
  // Constructors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtksource-3.0",
3
- "version": "3.0.0-4.0.0-beta.21",
3
+ "version": "3.0.0-4.0.0-beta.23",
4
4
  "description": "GJS TypeScript type definitions for GtkSource-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "gtksource-3.0.js",
@@ -31,20 +31,20 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/atk-1.0": "^2.55.2-4.0.0-beta.21",
35
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.21",
36
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.21",
37
- "@girs/gdk-3.0": "^3.24.48-4.0.0-beta.21",
38
- "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.21",
39
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
40
- "@girs/gjs": "^4.0.0-beta.21",
41
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
42
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
43
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21",
44
- "@girs/gtk-3.0": "^3.24.48-4.0.0-beta.21",
45
- "@girs/harfbuzz-0.0": "^9.0.0-4.0.0-beta.21",
46
- "@girs/pango-1.0": "^1.56.0-4.0.0-beta.21",
47
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.21"
34
+ "@girs/atk-1.0": "^2.56.0-4.0.0-beta.23",
35
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.23",
36
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.23",
37
+ "@girs/gdk-3.0": "^3.24.50-4.0.0-beta.23",
38
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.23",
39
+ "@girs/gio-2.0": "^2.84.0-4.0.0-beta.23",
40
+ "@girs/gjs": "^4.0.0-beta.23",
41
+ "@girs/glib-2.0": "^2.84.0-4.0.0-beta.23",
42
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.23",
43
+ "@girs/gobject-2.0": "^2.84.0-4.0.0-beta.23",
44
+ "@girs/gtk-3.0": "^3.24.50-4.0.0-beta.23",
45
+ "@girs/harfbuzz-0.0": "^9.0.0-4.0.0-beta.23",
46
+ "@girs/pango-1.0": "^1.56.4-4.0.0-beta.23",
47
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.23"
48
48
  },
49
49
  "devDependencies": {
50
50
  "typescript": "*"