@girs/gdkpixbuf-2.0 2.0.0-4.0.0-beta.21 → 2.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/gdkpixbuf-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GdkPixbuf-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 GdkPixbuf-2.0, generated from library version 2.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,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 Gio from '@girs/gio-2.0';
12
14
  import type GObject from '@girs/gobject-2.0';
@@ -1536,7 +1538,21 @@ export namespace GdkPixbuf {
1536
1538
  * @returns the data if found, or %NULL if no such data exists.
1537
1539
  */
1538
1540
  get_data(key: string): any | null;
1539
- get_property(property_name: string): any;
1541
+ /**
1542
+ * Gets a property of an object.
1543
+ *
1544
+ * The value can be:
1545
+ * - 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)
1546
+ * - a GObject.Value initialized with the expected type of the property
1547
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1548
+ *
1549
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1550
+ *
1551
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1552
+ * @param property_name The name of the property to get
1553
+ * @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
1554
+ */
1555
+ get_property(property_name: string, value: GObject.Value | any): any;
1540
1556
  /**
1541
1557
  * This function gets back user data pointers stored via
1542
1558
  * g_object_set_qdata().
@@ -1664,7 +1680,12 @@ export namespace GdkPixbuf {
1664
1680
  * @param data data to associate with that key
1665
1681
  */
1666
1682
  set_data(key: string, data?: any | null): void;
1667
- set_property(property_name: string, value: any): void;
1683
+ /**
1684
+ * Sets a property on an object.
1685
+ * @param property_name The name of the property to set
1686
+ * @param value The value to set the property to
1687
+ */
1688
+ set_property(property_name: string, value: GObject.Value | any): void;
1668
1689
  /**
1669
1690
  * Remove a specified datum from the object's data associations,
1670
1691
  * without invoking the association's destroy handler.
@@ -1814,11 +1835,31 @@ export namespace GdkPixbuf {
1814
1835
  * @param pspec
1815
1836
  */
1816
1837
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1838
+ /**
1839
+ * 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.
1840
+ * @param id Handler ID of the handler to be disconnected
1841
+ */
1817
1842
  disconnect(id: number): void;
1843
+ /**
1844
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1845
+ * @param properties Object containing the properties to set
1846
+ */
1818
1847
  set(properties: { [key: string]: any }): void;
1819
- block_signal_handler(id: number): any;
1820
- unblock_signal_handler(id: number): any;
1821
- stop_emission_by_name(detailedName: string): any;
1848
+ /**
1849
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1850
+ * @param id Handler ID of the handler to be blocked
1851
+ */
1852
+ block_signal_handler(id: number): void;
1853
+ /**
1854
+ * Unblocks a handler so it will be called again during any signal emissions
1855
+ * @param id Handler ID of the handler to be unblocked
1856
+ */
1857
+ unblock_signal_handler(id: number): void;
1858
+ /**
1859
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1860
+ * @param detailedName Name of the signal to stop emission of
1861
+ */
1862
+ stop_emission_by_name(detailedName: string): void;
1822
1863
  }
1823
1864
 
1824
1865
  namespace PixbufAnimation {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gdkpixbuf-2.0",
3
- "version": "2.0.0-4.0.0-beta.21",
3
+ "version": "2.0.0-4.0.0-beta.23",
4
4
  "description": "GJS TypeScript type definitions for GdkPixbuf-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "gdkpixbuf-2.0.js",
@@ -31,11 +31,11 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
35
- "@girs/gjs": "^4.0.0-beta.21",
36
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
37
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
38
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/gio-2.0": "^2.84.0-4.0.0-beta.23",
35
+ "@girs/gjs": "^4.0.0-beta.23",
36
+ "@girs/glib-2.0": "^2.84.0-4.0.0-beta.23",
37
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.23",
38
+ "@girs/gobject-2.0": "^2.84.0-4.0.0-beta.23"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "*"