@girs/gdkpixbuf-2.0 2.0.0-3.2.6 → 2.0.0-3.2.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 +1 -1
- package/gdkpixbuf-2.0.d.cts +17 -17
- package/gdkpixbuf-2.0.d.ts +17 -17
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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) v3.2.
|
|
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) v3.2.7.
|
|
9
9
|
|
|
10
10
|
GdkPixbuf is a library for image loading and manipulation. The GdkPixbuf documentation contains both the programmer's guide and the API reference.
|
|
11
11
|
|
package/gdkpixbuf-2.0.d.cts
CHANGED
|
@@ -204,7 +204,7 @@ export const PIXBUF_MINOR: number
|
|
|
204
204
|
* This is the version being compiled against; contrast with
|
|
205
205
|
* `gdk_pixbuf_version`.
|
|
206
206
|
*/
|
|
207
|
-
export const PIXBUF_VERSION: string
|
|
207
|
+
export const PIXBUF_VERSION: string
|
|
208
208
|
export function pixbuf_error_quark(): GLib.Quark
|
|
209
209
|
/**
|
|
210
210
|
* A function of this type is responsible for freeing the pixel array
|
|
@@ -316,7 +316,7 @@ export interface PixbufModuleSaveFunc {
|
|
|
316
316
|
* @returns `TRUE` if the option is supported
|
|
317
317
|
*/
|
|
318
318
|
export interface PixbufModuleSaveOptionSupportedFunc {
|
|
319
|
-
(option_key: string
|
|
319
|
+
(option_key: string): boolean
|
|
320
320
|
}
|
|
321
321
|
/**
|
|
322
322
|
* Defines the type of the function that gets called once the size
|
|
@@ -731,7 +731,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
731
731
|
* @param key a nul-terminated string.
|
|
732
732
|
* @returns the value associated with `key`
|
|
733
733
|
*/
|
|
734
|
-
get_option(key: string
|
|
734
|
+
get_option(key: string): string | null
|
|
735
735
|
/**
|
|
736
736
|
* Returns a `GHashTable` with a list of all the options that may have been
|
|
737
737
|
* attached to the `pixbuf` when it was loaded, or that may have been
|
|
@@ -800,7 +800,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
800
800
|
* @param key a nul-terminated string representing the key to remove.
|
|
801
801
|
* @returns `TRUE` if an option was removed, `FALSE` if not.
|
|
802
802
|
*/
|
|
803
|
-
remove_option(key: string
|
|
803
|
+
remove_option(key: string): boolean
|
|
804
804
|
/**
|
|
805
805
|
* Rotates a pixbuf by a multiple of 90 degrees, and returns the
|
|
806
806
|
* result in a new pixbuf.
|
|
@@ -842,7 +842,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
842
842
|
* @param option_values values for named options
|
|
843
843
|
* @returns whether an error was set
|
|
844
844
|
*/
|
|
845
|
-
save_to_bufferv(type: string
|
|
845
|
+
save_to_bufferv(type: string, option_keys: string[] | null, option_values: string[] | null): [ /* returnType */ boolean, /* buffer */ Uint8Array ]
|
|
846
846
|
/**
|
|
847
847
|
* Vector version of `gdk_pixbuf_save_to_callback()`.
|
|
848
848
|
*
|
|
@@ -858,7 +858,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
858
858
|
* @param option_values values for named options
|
|
859
859
|
* @returns whether an error was set
|
|
860
860
|
*/
|
|
861
|
-
save_to_callbackv(save_func: PixbufSaveFunc, type: string
|
|
861
|
+
save_to_callbackv(save_func: PixbufSaveFunc, type: string, option_keys: string[] | null, option_values: string[] | null): boolean
|
|
862
862
|
/**
|
|
863
863
|
* Saves `pixbuf` to an output stream.
|
|
864
864
|
*
|
|
@@ -873,7 +873,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
873
873
|
* @param cancellable optional `GCancellable` object, `NULL` to ignore
|
|
874
874
|
* @returns `TRUE` if the pixbuf was saved successfully, `FALSE` if an error was set.
|
|
875
875
|
*/
|
|
876
|
-
save_to_streamv(stream: Gio.OutputStream, type: string
|
|
876
|
+
save_to_streamv(stream: Gio.OutputStream, type: string, option_keys: string[] | null, option_values: string[] | null, cancellable: Gio.Cancellable | null): boolean
|
|
877
877
|
/**
|
|
878
878
|
* Saves `pixbuf` to an output stream asynchronously.
|
|
879
879
|
*
|
|
@@ -891,7 +891,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
891
891
|
* @param cancellable optional `GCancellable` object, `NULL` to ignore
|
|
892
892
|
* @param callback a `GAsyncReadyCallback` to call when the pixbuf is saved
|
|
893
893
|
*/
|
|
894
|
-
save_to_streamv_async(stream: Gio.OutputStream, type: string
|
|
894
|
+
save_to_streamv_async(stream: Gio.OutputStream, type: string, option_keys: string[] | null, option_values: string[] | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
895
895
|
/**
|
|
896
896
|
* Vector version of `gdk_pixbuf_save()`.
|
|
897
897
|
*
|
|
@@ -906,7 +906,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
906
906
|
* @param option_values values for named options
|
|
907
907
|
* @returns whether an error was set
|
|
908
908
|
*/
|
|
909
|
-
savev(filename: string, type: string
|
|
909
|
+
savev(filename: string, type: string, option_keys: string[] | null, option_values: string[] | null): boolean
|
|
910
910
|
/**
|
|
911
911
|
* Creates a transformation of the source image `src` by scaling by
|
|
912
912
|
* `scale_x` and `scale_y` then translating by `offset_x` and `offset_y,`
|
|
@@ -967,7 +967,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
967
967
|
* @param value a nul-terminated string.
|
|
968
968
|
* @returns `TRUE` on success
|
|
969
969
|
*/
|
|
970
|
-
set_option(key: string
|
|
970
|
+
set_option(key: string, value: string): boolean
|
|
971
971
|
|
|
972
972
|
// Class property signals of GdkPixbuf-2.0.GdkPixbuf.Pixbuf
|
|
973
973
|
|
|
@@ -1350,7 +1350,7 @@ export class Pixbuf extends GObject.Object {
|
|
|
1350
1350
|
* @param resource_path the path of the resource file
|
|
1351
1351
|
* @returns A newly-created pixbuf
|
|
1352
1352
|
*/
|
|
1353
|
-
static new_from_resource(resource_path: string
|
|
1353
|
+
static new_from_resource(resource_path: string): Pixbuf
|
|
1354
1354
|
/**
|
|
1355
1355
|
* Creates a new pixbuf by loading an image from an resource.
|
|
1356
1356
|
*
|
|
@@ -1372,7 +1372,7 @@ export class Pixbuf extends GObject.Object {
|
|
|
1372
1372
|
* @param preserve_aspect_ratio `TRUE` to preserve the image's aspect ratio
|
|
1373
1373
|
* @returns A newly-created pixbuf
|
|
1374
1374
|
*/
|
|
1375
|
-
static new_from_resource_at_scale(resource_path: string
|
|
1375
|
+
static new_from_resource_at_scale(resource_path: string, width: number, height: number, preserve_aspect_ratio: boolean): Pixbuf
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Creates a new pixbuf by loading an image from an input stream.
|
|
1378
1378
|
*
|
|
@@ -1536,7 +1536,7 @@ export class Pixbuf extends GObject.Object {
|
|
|
1536
1536
|
* provided modules.
|
|
1537
1537
|
* @param path Path to directory where the `loaders.cache` is installed
|
|
1538
1538
|
*/
|
|
1539
|
-
static init_modules(path: string
|
|
1539
|
+
static init_modules(path: string): boolean
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Finishes an asynchronous pixbuf save operation started with
|
|
1542
1542
|
* gdk_pixbuf_save_to_stream_async().
|
|
@@ -1766,7 +1766,7 @@ export class PixbufAnimation extends GObject.Object {
|
|
|
1766
1766
|
* @param resource_path the path of the resource file
|
|
1767
1767
|
* @returns A newly-created animation
|
|
1768
1768
|
*/
|
|
1769
|
-
static new_from_resource(resource_path: string
|
|
1769
|
+
static new_from_resource(resource_path: string): PixbufAnimation
|
|
1770
1770
|
/**
|
|
1771
1771
|
* Creates a new animation by loading it from an input stream.
|
|
1772
1772
|
*
|
|
@@ -2244,7 +2244,7 @@ export class PixbufLoader extends GObject.Object {
|
|
|
2244
2244
|
* @param mime_type the mime type to be loaded
|
|
2245
2245
|
* @returns A newly-created pixbuf loader.
|
|
2246
2246
|
*/
|
|
2247
|
-
static new_with_mime_type(mime_type: string
|
|
2247
|
+
static new_with_mime_type(mime_type: string): PixbufLoader
|
|
2248
2248
|
/**
|
|
2249
2249
|
* Creates a new pixbuf loader object that always attempts to parse
|
|
2250
2250
|
* image data as if it were an image of type `image_type,` instead of
|
|
@@ -2264,7 +2264,7 @@ export class PixbufLoader extends GObject.Object {
|
|
|
2264
2264
|
* @param image_type name of the image format to be loaded with the image
|
|
2265
2265
|
* @returns A newly-created pixbuf loader.
|
|
2266
2266
|
*/
|
|
2267
|
-
static new_with_type(image_type: string
|
|
2267
|
+
static new_with_type(image_type: string): PixbufLoader
|
|
2268
2268
|
_init(config?: PixbufLoader.ConstructorProperties): void
|
|
2269
2269
|
}
|
|
2270
2270
|
|
|
@@ -2589,7 +2589,7 @@ export interface PixbufFormat {
|
|
|
2589
2589
|
* @param option_key the name of an option
|
|
2590
2590
|
* @returns `TRUE` if the specified option is supported
|
|
2591
2591
|
*/
|
|
2592
|
-
is_save_option_supported(option_key: string
|
|
2592
|
+
is_save_option_supported(option_key: string): boolean
|
|
2593
2593
|
/**
|
|
2594
2594
|
* Returns whether this image format is scalable.
|
|
2595
2595
|
*
|
package/gdkpixbuf-2.0.d.ts
CHANGED
|
@@ -206,7 +206,7 @@ const PIXBUF_MINOR: number
|
|
|
206
206
|
* This is the version being compiled against; contrast with
|
|
207
207
|
* `gdk_pixbuf_version`.
|
|
208
208
|
*/
|
|
209
|
-
const PIXBUF_VERSION: string
|
|
209
|
+
const PIXBUF_VERSION: string
|
|
210
210
|
function pixbuf_error_quark(): GLib.Quark
|
|
211
211
|
/**
|
|
212
212
|
* A function of this type is responsible for freeing the pixel array
|
|
@@ -318,7 +318,7 @@ interface PixbufModuleSaveFunc {
|
|
|
318
318
|
* @returns `TRUE` if the option is supported
|
|
319
319
|
*/
|
|
320
320
|
interface PixbufModuleSaveOptionSupportedFunc {
|
|
321
|
-
(option_key: string
|
|
321
|
+
(option_key: string): boolean
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
324
|
* Defines the type of the function that gets called once the size
|
|
@@ -733,7 +733,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
733
733
|
* @param key a nul-terminated string.
|
|
734
734
|
* @returns the value associated with `key`
|
|
735
735
|
*/
|
|
736
|
-
get_option(key: string
|
|
736
|
+
get_option(key: string): string | null
|
|
737
737
|
/**
|
|
738
738
|
* Returns a `GHashTable` with a list of all the options that may have been
|
|
739
739
|
* attached to the `pixbuf` when it was loaded, or that may have been
|
|
@@ -802,7 +802,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
802
802
|
* @param key a nul-terminated string representing the key to remove.
|
|
803
803
|
* @returns `TRUE` if an option was removed, `FALSE` if not.
|
|
804
804
|
*/
|
|
805
|
-
remove_option(key: string
|
|
805
|
+
remove_option(key: string): boolean
|
|
806
806
|
/**
|
|
807
807
|
* Rotates a pixbuf by a multiple of 90 degrees, and returns the
|
|
808
808
|
* result in a new pixbuf.
|
|
@@ -844,7 +844,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
844
844
|
* @param option_values values for named options
|
|
845
845
|
* @returns whether an error was set
|
|
846
846
|
*/
|
|
847
|
-
save_to_bufferv(type: string
|
|
847
|
+
save_to_bufferv(type: string, option_keys: string[] | null, option_values: string[] | null): [ /* returnType */ boolean, /* buffer */ Uint8Array ]
|
|
848
848
|
/**
|
|
849
849
|
* Vector version of `gdk_pixbuf_save_to_callback()`.
|
|
850
850
|
*
|
|
@@ -860,7 +860,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
860
860
|
* @param option_values values for named options
|
|
861
861
|
* @returns whether an error was set
|
|
862
862
|
*/
|
|
863
|
-
save_to_callbackv(save_func: PixbufSaveFunc, type: string
|
|
863
|
+
save_to_callbackv(save_func: PixbufSaveFunc, type: string, option_keys: string[] | null, option_values: string[] | null): boolean
|
|
864
864
|
/**
|
|
865
865
|
* Saves `pixbuf` to an output stream.
|
|
866
866
|
*
|
|
@@ -875,7 +875,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
875
875
|
* @param cancellable optional `GCancellable` object, `NULL` to ignore
|
|
876
876
|
* @returns `TRUE` if the pixbuf was saved successfully, `FALSE` if an error was set.
|
|
877
877
|
*/
|
|
878
|
-
save_to_streamv(stream: Gio.OutputStream, type: string
|
|
878
|
+
save_to_streamv(stream: Gio.OutputStream, type: string, option_keys: string[] | null, option_values: string[] | null, cancellable: Gio.Cancellable | null): boolean
|
|
879
879
|
/**
|
|
880
880
|
* Saves `pixbuf` to an output stream asynchronously.
|
|
881
881
|
*
|
|
@@ -893,7 +893,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
893
893
|
* @param cancellable optional `GCancellable` object, `NULL` to ignore
|
|
894
894
|
* @param callback a `GAsyncReadyCallback` to call when the pixbuf is saved
|
|
895
895
|
*/
|
|
896
|
-
save_to_streamv_async(stream: Gio.OutputStream, type: string
|
|
896
|
+
save_to_streamv_async(stream: Gio.OutputStream, type: string, option_keys: string[] | null, option_values: string[] | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
897
897
|
/**
|
|
898
898
|
* Vector version of `gdk_pixbuf_save()`.
|
|
899
899
|
*
|
|
@@ -908,7 +908,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
908
908
|
* @param option_values values for named options
|
|
909
909
|
* @returns whether an error was set
|
|
910
910
|
*/
|
|
911
|
-
savev(filename: string, type: string
|
|
911
|
+
savev(filename: string, type: string, option_keys: string[] | null, option_values: string[] | null): boolean
|
|
912
912
|
/**
|
|
913
913
|
* Creates a transformation of the source image `src` by scaling by
|
|
914
914
|
* `scale_x` and `scale_y` then translating by `offset_x` and `offset_y,`
|
|
@@ -969,7 +969,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
969
969
|
* @param value a nul-terminated string.
|
|
970
970
|
* @returns `TRUE` on success
|
|
971
971
|
*/
|
|
972
|
-
set_option(key: string
|
|
972
|
+
set_option(key: string, value: string): boolean
|
|
973
973
|
|
|
974
974
|
// Class property signals of GdkPixbuf-2.0.GdkPixbuf.Pixbuf
|
|
975
975
|
|
|
@@ -1352,7 +1352,7 @@ class Pixbuf extends GObject.Object {
|
|
|
1352
1352
|
* @param resource_path the path of the resource file
|
|
1353
1353
|
* @returns A newly-created pixbuf
|
|
1354
1354
|
*/
|
|
1355
|
-
static new_from_resource(resource_path: string
|
|
1355
|
+
static new_from_resource(resource_path: string): Pixbuf
|
|
1356
1356
|
/**
|
|
1357
1357
|
* Creates a new pixbuf by loading an image from an resource.
|
|
1358
1358
|
*
|
|
@@ -1374,7 +1374,7 @@ class Pixbuf extends GObject.Object {
|
|
|
1374
1374
|
* @param preserve_aspect_ratio `TRUE` to preserve the image's aspect ratio
|
|
1375
1375
|
* @returns A newly-created pixbuf
|
|
1376
1376
|
*/
|
|
1377
|
-
static new_from_resource_at_scale(resource_path: string
|
|
1377
|
+
static new_from_resource_at_scale(resource_path: string, width: number, height: number, preserve_aspect_ratio: boolean): Pixbuf
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Creates a new pixbuf by loading an image from an input stream.
|
|
1380
1380
|
*
|
|
@@ -1538,7 +1538,7 @@ class Pixbuf extends GObject.Object {
|
|
|
1538
1538
|
* provided modules.
|
|
1539
1539
|
* @param path Path to directory where the `loaders.cache` is installed
|
|
1540
1540
|
*/
|
|
1541
|
-
static init_modules(path: string
|
|
1541
|
+
static init_modules(path: string): boolean
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Finishes an asynchronous pixbuf save operation started with
|
|
1544
1544
|
* gdk_pixbuf_save_to_stream_async().
|
|
@@ -1768,7 +1768,7 @@ class PixbufAnimation extends GObject.Object {
|
|
|
1768
1768
|
* @param resource_path the path of the resource file
|
|
1769
1769
|
* @returns A newly-created animation
|
|
1770
1770
|
*/
|
|
1771
|
-
static new_from_resource(resource_path: string
|
|
1771
|
+
static new_from_resource(resource_path: string): PixbufAnimation
|
|
1772
1772
|
/**
|
|
1773
1773
|
* Creates a new animation by loading it from an input stream.
|
|
1774
1774
|
*
|
|
@@ -2246,7 +2246,7 @@ class PixbufLoader extends GObject.Object {
|
|
|
2246
2246
|
* @param mime_type the mime type to be loaded
|
|
2247
2247
|
* @returns A newly-created pixbuf loader.
|
|
2248
2248
|
*/
|
|
2249
|
-
static new_with_mime_type(mime_type: string
|
|
2249
|
+
static new_with_mime_type(mime_type: string): PixbufLoader
|
|
2250
2250
|
/**
|
|
2251
2251
|
* Creates a new pixbuf loader object that always attempts to parse
|
|
2252
2252
|
* image data as if it were an image of type `image_type,` instead of
|
|
@@ -2266,7 +2266,7 @@ class PixbufLoader extends GObject.Object {
|
|
|
2266
2266
|
* @param image_type name of the image format to be loaded with the image
|
|
2267
2267
|
* @returns A newly-created pixbuf loader.
|
|
2268
2268
|
*/
|
|
2269
|
-
static new_with_type(image_type: string
|
|
2269
|
+
static new_with_type(image_type: string): PixbufLoader
|
|
2270
2270
|
_init(config?: PixbufLoader.ConstructorProperties): void
|
|
2271
2271
|
}
|
|
2272
2272
|
|
|
@@ -2591,7 +2591,7 @@ interface PixbufFormat {
|
|
|
2591
2591
|
* @param option_key the name of an option
|
|
2592
2592
|
* @returns `TRUE` if the specified option is supported
|
|
2593
2593
|
*/
|
|
2594
|
-
is_save_option_supported(option_key: string
|
|
2594
|
+
is_save_option_supported(option_key: string): boolean
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Returns whether this image format is scalable.
|
|
2597
2597
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gdkpixbuf-2.0",
|
|
3
|
-
"version": "2.0.0-3.2.
|
|
3
|
+
"version": "2.0.0-3.2.7",
|
|
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",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gdkpixbuf-2.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
32
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.7",
|
|
32
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "*"
|