@girs/gdkpixbuf-2.0 2.0.0-3.2.5 → 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 +51 -17
- package/gdkpixbuf-2.0.d.ts +51 -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
|
|
@@ -434,6 +434,23 @@ export module Pixbuf {
|
|
|
434
434
|
* The number of columns of the pixbuf.
|
|
435
435
|
*/
|
|
436
436
|
width?: number | null
|
|
437
|
+
/**
|
|
438
|
+
* The number of bits per sample.
|
|
439
|
+
*
|
|
440
|
+
* Currently only 8 bit per sample are supported.
|
|
441
|
+
*/
|
|
442
|
+
bitsPerSample?: number | null
|
|
443
|
+
/**
|
|
444
|
+
* Whether the pixbuf has an alpha channel.
|
|
445
|
+
*/
|
|
446
|
+
hasAlpha?: boolean | null
|
|
447
|
+
/**
|
|
448
|
+
* The number of samples per pixel.
|
|
449
|
+
*
|
|
450
|
+
* Currently, only 3 or 4 samples per pixel are supported.
|
|
451
|
+
*/
|
|
452
|
+
nChannels?: number | null
|
|
453
|
+
pixelBytes?: GLib.Bytes | null
|
|
437
454
|
}
|
|
438
455
|
|
|
439
456
|
}
|
|
@@ -448,6 +465,12 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
448
465
|
* Currently only 8 bit per sample are supported.
|
|
449
466
|
*/
|
|
450
467
|
readonly bits_per_sample: number
|
|
468
|
+
/**
|
|
469
|
+
* The number of bits per sample.
|
|
470
|
+
*
|
|
471
|
+
* Currently only 8 bit per sample are supported.
|
|
472
|
+
*/
|
|
473
|
+
readonly bitsPerSample: number
|
|
451
474
|
/**
|
|
452
475
|
* The color space of the pixbuf.
|
|
453
476
|
*
|
|
@@ -458,6 +481,10 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
458
481
|
* Whether the pixbuf has an alpha channel.
|
|
459
482
|
*/
|
|
460
483
|
readonly has_alpha: boolean
|
|
484
|
+
/**
|
|
485
|
+
* Whether the pixbuf has an alpha channel.
|
|
486
|
+
*/
|
|
487
|
+
readonly hasAlpha: boolean
|
|
461
488
|
/**
|
|
462
489
|
* The number of rows of the pixbuf.
|
|
463
490
|
*/
|
|
@@ -468,7 +495,14 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
468
495
|
* Currently, only 3 or 4 samples per pixel are supported.
|
|
469
496
|
*/
|
|
470
497
|
readonly n_channels: number
|
|
498
|
+
/**
|
|
499
|
+
* The number of samples per pixel.
|
|
500
|
+
*
|
|
501
|
+
* Currently, only 3 or 4 samples per pixel are supported.
|
|
502
|
+
*/
|
|
503
|
+
readonly nChannels: number
|
|
471
504
|
readonly pixel_bytes: GLib.Bytes
|
|
505
|
+
readonly pixelBytes: GLib.Bytes
|
|
472
506
|
/**
|
|
473
507
|
* A pointer to the pixel data of the pixbuf.
|
|
474
508
|
*/
|
|
@@ -697,7 +731,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
697
731
|
* @param key a nul-terminated string.
|
|
698
732
|
* @returns the value associated with `key`
|
|
699
733
|
*/
|
|
700
|
-
get_option(key: string
|
|
734
|
+
get_option(key: string): string | null
|
|
701
735
|
/**
|
|
702
736
|
* Returns a `GHashTable` with a list of all the options that may have been
|
|
703
737
|
* attached to the `pixbuf` when it was loaded, or that may have been
|
|
@@ -766,7 +800,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
766
800
|
* @param key a nul-terminated string representing the key to remove.
|
|
767
801
|
* @returns `TRUE` if an option was removed, `FALSE` if not.
|
|
768
802
|
*/
|
|
769
|
-
remove_option(key: string
|
|
803
|
+
remove_option(key: string): boolean
|
|
770
804
|
/**
|
|
771
805
|
* Rotates a pixbuf by a multiple of 90 degrees, and returns the
|
|
772
806
|
* result in a new pixbuf.
|
|
@@ -808,7 +842,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
808
842
|
* @param option_values values for named options
|
|
809
843
|
* @returns whether an error was set
|
|
810
844
|
*/
|
|
811
|
-
save_to_bufferv(type: string
|
|
845
|
+
save_to_bufferv(type: string, option_keys: string[] | null, option_values: string[] | null): [ /* returnType */ boolean, /* buffer */ Uint8Array ]
|
|
812
846
|
/**
|
|
813
847
|
* Vector version of `gdk_pixbuf_save_to_callback()`.
|
|
814
848
|
*
|
|
@@ -824,7 +858,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
824
858
|
* @param option_values values for named options
|
|
825
859
|
* @returns whether an error was set
|
|
826
860
|
*/
|
|
827
|
-
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
|
|
828
862
|
/**
|
|
829
863
|
* Saves `pixbuf` to an output stream.
|
|
830
864
|
*
|
|
@@ -839,7 +873,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
839
873
|
* @param cancellable optional `GCancellable` object, `NULL` to ignore
|
|
840
874
|
* @returns `TRUE` if the pixbuf was saved successfully, `FALSE` if an error was set.
|
|
841
875
|
*/
|
|
842
|
-
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
|
|
843
877
|
/**
|
|
844
878
|
* Saves `pixbuf` to an output stream asynchronously.
|
|
845
879
|
*
|
|
@@ -857,7 +891,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
857
891
|
* @param cancellable optional `GCancellable` object, `NULL` to ignore
|
|
858
892
|
* @param callback a `GAsyncReadyCallback` to call when the pixbuf is saved
|
|
859
893
|
*/
|
|
860
|
-
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
|
|
861
895
|
/**
|
|
862
896
|
* Vector version of `gdk_pixbuf_save()`.
|
|
863
897
|
*
|
|
@@ -872,7 +906,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
872
906
|
* @param option_values values for named options
|
|
873
907
|
* @returns whether an error was set
|
|
874
908
|
*/
|
|
875
|
-
savev(filename: string, type: string
|
|
909
|
+
savev(filename: string, type: string, option_keys: string[] | null, option_values: string[] | null): boolean
|
|
876
910
|
/**
|
|
877
911
|
* Creates a transformation of the source image `src` by scaling by
|
|
878
912
|
* `scale_x` and `scale_y` then translating by `offset_x` and `offset_y,`
|
|
@@ -933,7 +967,7 @@ export interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
933
967
|
* @param value a nul-terminated string.
|
|
934
968
|
* @returns `TRUE` on success
|
|
935
969
|
*/
|
|
936
|
-
set_option(key: string
|
|
970
|
+
set_option(key: string, value: string): boolean
|
|
937
971
|
|
|
938
972
|
// Class property signals of GdkPixbuf-2.0.GdkPixbuf.Pixbuf
|
|
939
973
|
|
|
@@ -1316,7 +1350,7 @@ export class Pixbuf extends GObject.Object {
|
|
|
1316
1350
|
* @param resource_path the path of the resource file
|
|
1317
1351
|
* @returns A newly-created pixbuf
|
|
1318
1352
|
*/
|
|
1319
|
-
static new_from_resource(resource_path: string
|
|
1353
|
+
static new_from_resource(resource_path: string): Pixbuf
|
|
1320
1354
|
/**
|
|
1321
1355
|
* Creates a new pixbuf by loading an image from an resource.
|
|
1322
1356
|
*
|
|
@@ -1338,7 +1372,7 @@ export class Pixbuf extends GObject.Object {
|
|
|
1338
1372
|
* @param preserve_aspect_ratio `TRUE` to preserve the image's aspect ratio
|
|
1339
1373
|
* @returns A newly-created pixbuf
|
|
1340
1374
|
*/
|
|
1341
|
-
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
|
|
1342
1376
|
/**
|
|
1343
1377
|
* Creates a new pixbuf by loading an image from an input stream.
|
|
1344
1378
|
*
|
|
@@ -1502,7 +1536,7 @@ export class Pixbuf extends GObject.Object {
|
|
|
1502
1536
|
* provided modules.
|
|
1503
1537
|
* @param path Path to directory where the `loaders.cache` is installed
|
|
1504
1538
|
*/
|
|
1505
|
-
static init_modules(path: string
|
|
1539
|
+
static init_modules(path: string): boolean
|
|
1506
1540
|
/**
|
|
1507
1541
|
* Finishes an asynchronous pixbuf save operation started with
|
|
1508
1542
|
* gdk_pixbuf_save_to_stream_async().
|
|
@@ -1732,7 +1766,7 @@ export class PixbufAnimation extends GObject.Object {
|
|
|
1732
1766
|
* @param resource_path the path of the resource file
|
|
1733
1767
|
* @returns A newly-created animation
|
|
1734
1768
|
*/
|
|
1735
|
-
static new_from_resource(resource_path: string
|
|
1769
|
+
static new_from_resource(resource_path: string): PixbufAnimation
|
|
1736
1770
|
/**
|
|
1737
1771
|
* Creates a new animation by loading it from an input stream.
|
|
1738
1772
|
*
|
|
@@ -2210,7 +2244,7 @@ export class PixbufLoader extends GObject.Object {
|
|
|
2210
2244
|
* @param mime_type the mime type to be loaded
|
|
2211
2245
|
* @returns A newly-created pixbuf loader.
|
|
2212
2246
|
*/
|
|
2213
|
-
static new_with_mime_type(mime_type: string
|
|
2247
|
+
static new_with_mime_type(mime_type: string): PixbufLoader
|
|
2214
2248
|
/**
|
|
2215
2249
|
* Creates a new pixbuf loader object that always attempts to parse
|
|
2216
2250
|
* image data as if it were an image of type `image_type,` instead of
|
|
@@ -2230,7 +2264,7 @@ export class PixbufLoader extends GObject.Object {
|
|
|
2230
2264
|
* @param image_type name of the image format to be loaded with the image
|
|
2231
2265
|
* @returns A newly-created pixbuf loader.
|
|
2232
2266
|
*/
|
|
2233
|
-
static new_with_type(image_type: string
|
|
2267
|
+
static new_with_type(image_type: string): PixbufLoader
|
|
2234
2268
|
_init(config?: PixbufLoader.ConstructorProperties): void
|
|
2235
2269
|
}
|
|
2236
2270
|
|
|
@@ -2555,7 +2589,7 @@ export interface PixbufFormat {
|
|
|
2555
2589
|
* @param option_key the name of an option
|
|
2556
2590
|
* @returns `TRUE` if the specified option is supported
|
|
2557
2591
|
*/
|
|
2558
|
-
is_save_option_supported(option_key: string
|
|
2592
|
+
is_save_option_supported(option_key: string): boolean
|
|
2559
2593
|
/**
|
|
2560
2594
|
* Returns whether this image format is scalable.
|
|
2561
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
|
|
@@ -436,6 +436,23 @@ module Pixbuf {
|
|
|
436
436
|
* The number of columns of the pixbuf.
|
|
437
437
|
*/
|
|
438
438
|
width?: number | null
|
|
439
|
+
/**
|
|
440
|
+
* The number of bits per sample.
|
|
441
|
+
*
|
|
442
|
+
* Currently only 8 bit per sample are supported.
|
|
443
|
+
*/
|
|
444
|
+
bitsPerSample?: number | null
|
|
445
|
+
/**
|
|
446
|
+
* Whether the pixbuf has an alpha channel.
|
|
447
|
+
*/
|
|
448
|
+
hasAlpha?: boolean | null
|
|
449
|
+
/**
|
|
450
|
+
* The number of samples per pixel.
|
|
451
|
+
*
|
|
452
|
+
* Currently, only 3 or 4 samples per pixel are supported.
|
|
453
|
+
*/
|
|
454
|
+
nChannels?: number | null
|
|
455
|
+
pixelBytes?: GLib.Bytes | null
|
|
439
456
|
}
|
|
440
457
|
|
|
441
458
|
}
|
|
@@ -450,6 +467,12 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
450
467
|
* Currently only 8 bit per sample are supported.
|
|
451
468
|
*/
|
|
452
469
|
readonly bits_per_sample: number
|
|
470
|
+
/**
|
|
471
|
+
* The number of bits per sample.
|
|
472
|
+
*
|
|
473
|
+
* Currently only 8 bit per sample are supported.
|
|
474
|
+
*/
|
|
475
|
+
readonly bitsPerSample: number
|
|
453
476
|
/**
|
|
454
477
|
* The color space of the pixbuf.
|
|
455
478
|
*
|
|
@@ -460,6 +483,10 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
460
483
|
* Whether the pixbuf has an alpha channel.
|
|
461
484
|
*/
|
|
462
485
|
readonly has_alpha: boolean
|
|
486
|
+
/**
|
|
487
|
+
* Whether the pixbuf has an alpha channel.
|
|
488
|
+
*/
|
|
489
|
+
readonly hasAlpha: boolean
|
|
463
490
|
/**
|
|
464
491
|
* The number of rows of the pixbuf.
|
|
465
492
|
*/
|
|
@@ -470,7 +497,14 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
470
497
|
* Currently, only 3 or 4 samples per pixel are supported.
|
|
471
498
|
*/
|
|
472
499
|
readonly n_channels: number
|
|
500
|
+
/**
|
|
501
|
+
* The number of samples per pixel.
|
|
502
|
+
*
|
|
503
|
+
* Currently, only 3 or 4 samples per pixel are supported.
|
|
504
|
+
*/
|
|
505
|
+
readonly nChannels: number
|
|
473
506
|
readonly pixel_bytes: GLib.Bytes
|
|
507
|
+
readonly pixelBytes: GLib.Bytes
|
|
474
508
|
/**
|
|
475
509
|
* A pointer to the pixel data of the pixbuf.
|
|
476
510
|
*/
|
|
@@ -699,7 +733,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
699
733
|
* @param key a nul-terminated string.
|
|
700
734
|
* @returns the value associated with `key`
|
|
701
735
|
*/
|
|
702
|
-
get_option(key: string
|
|
736
|
+
get_option(key: string): string | null
|
|
703
737
|
/**
|
|
704
738
|
* Returns a `GHashTable` with a list of all the options that may have been
|
|
705
739
|
* attached to the `pixbuf` when it was loaded, or that may have been
|
|
@@ -768,7 +802,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
768
802
|
* @param key a nul-terminated string representing the key to remove.
|
|
769
803
|
* @returns `TRUE` if an option was removed, `FALSE` if not.
|
|
770
804
|
*/
|
|
771
|
-
remove_option(key: string
|
|
805
|
+
remove_option(key: string): boolean
|
|
772
806
|
/**
|
|
773
807
|
* Rotates a pixbuf by a multiple of 90 degrees, and returns the
|
|
774
808
|
* result in a new pixbuf.
|
|
@@ -810,7 +844,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
810
844
|
* @param option_values values for named options
|
|
811
845
|
* @returns whether an error was set
|
|
812
846
|
*/
|
|
813
|
-
save_to_bufferv(type: string
|
|
847
|
+
save_to_bufferv(type: string, option_keys: string[] | null, option_values: string[] | null): [ /* returnType */ boolean, /* buffer */ Uint8Array ]
|
|
814
848
|
/**
|
|
815
849
|
* Vector version of `gdk_pixbuf_save_to_callback()`.
|
|
816
850
|
*
|
|
@@ -826,7 +860,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
826
860
|
* @param option_values values for named options
|
|
827
861
|
* @returns whether an error was set
|
|
828
862
|
*/
|
|
829
|
-
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
|
|
830
864
|
/**
|
|
831
865
|
* Saves `pixbuf` to an output stream.
|
|
832
866
|
*
|
|
@@ -841,7 +875,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
841
875
|
* @param cancellable optional `GCancellable` object, `NULL` to ignore
|
|
842
876
|
* @returns `TRUE` if the pixbuf was saved successfully, `FALSE` if an error was set.
|
|
843
877
|
*/
|
|
844
|
-
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
|
|
845
879
|
/**
|
|
846
880
|
* Saves `pixbuf` to an output stream asynchronously.
|
|
847
881
|
*
|
|
@@ -859,7 +893,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
859
893
|
* @param cancellable optional `GCancellable` object, `NULL` to ignore
|
|
860
894
|
* @param callback a `GAsyncReadyCallback` to call when the pixbuf is saved
|
|
861
895
|
*/
|
|
862
|
-
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
|
|
863
897
|
/**
|
|
864
898
|
* Vector version of `gdk_pixbuf_save()`.
|
|
865
899
|
*
|
|
@@ -874,7 +908,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
874
908
|
* @param option_values values for named options
|
|
875
909
|
* @returns whether an error was set
|
|
876
910
|
*/
|
|
877
|
-
savev(filename: string, type: string
|
|
911
|
+
savev(filename: string, type: string, option_keys: string[] | null, option_values: string[] | null): boolean
|
|
878
912
|
/**
|
|
879
913
|
* Creates a transformation of the source image `src` by scaling by
|
|
880
914
|
* `scale_x` and `scale_y` then translating by `offset_x` and `offset_y,`
|
|
@@ -935,7 +969,7 @@ interface Pixbuf extends Gio.Icon, Gio.LoadableIcon {
|
|
|
935
969
|
* @param value a nul-terminated string.
|
|
936
970
|
* @returns `TRUE` on success
|
|
937
971
|
*/
|
|
938
|
-
set_option(key: string
|
|
972
|
+
set_option(key: string, value: string): boolean
|
|
939
973
|
|
|
940
974
|
// Class property signals of GdkPixbuf-2.0.GdkPixbuf.Pixbuf
|
|
941
975
|
|
|
@@ -1318,7 +1352,7 @@ class Pixbuf extends GObject.Object {
|
|
|
1318
1352
|
* @param resource_path the path of the resource file
|
|
1319
1353
|
* @returns A newly-created pixbuf
|
|
1320
1354
|
*/
|
|
1321
|
-
static new_from_resource(resource_path: string
|
|
1355
|
+
static new_from_resource(resource_path: string): Pixbuf
|
|
1322
1356
|
/**
|
|
1323
1357
|
* Creates a new pixbuf by loading an image from an resource.
|
|
1324
1358
|
*
|
|
@@ -1340,7 +1374,7 @@ class Pixbuf extends GObject.Object {
|
|
|
1340
1374
|
* @param preserve_aspect_ratio `TRUE` to preserve the image's aspect ratio
|
|
1341
1375
|
* @returns A newly-created pixbuf
|
|
1342
1376
|
*/
|
|
1343
|
-
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
|
|
1344
1378
|
/**
|
|
1345
1379
|
* Creates a new pixbuf by loading an image from an input stream.
|
|
1346
1380
|
*
|
|
@@ -1504,7 +1538,7 @@ class Pixbuf extends GObject.Object {
|
|
|
1504
1538
|
* provided modules.
|
|
1505
1539
|
* @param path Path to directory where the `loaders.cache` is installed
|
|
1506
1540
|
*/
|
|
1507
|
-
static init_modules(path: string
|
|
1541
|
+
static init_modules(path: string): boolean
|
|
1508
1542
|
/**
|
|
1509
1543
|
* Finishes an asynchronous pixbuf save operation started with
|
|
1510
1544
|
* gdk_pixbuf_save_to_stream_async().
|
|
@@ -1734,7 +1768,7 @@ class PixbufAnimation extends GObject.Object {
|
|
|
1734
1768
|
* @param resource_path the path of the resource file
|
|
1735
1769
|
* @returns A newly-created animation
|
|
1736
1770
|
*/
|
|
1737
|
-
static new_from_resource(resource_path: string
|
|
1771
|
+
static new_from_resource(resource_path: string): PixbufAnimation
|
|
1738
1772
|
/**
|
|
1739
1773
|
* Creates a new animation by loading it from an input stream.
|
|
1740
1774
|
*
|
|
@@ -2212,7 +2246,7 @@ class PixbufLoader extends GObject.Object {
|
|
|
2212
2246
|
* @param mime_type the mime type to be loaded
|
|
2213
2247
|
* @returns A newly-created pixbuf loader.
|
|
2214
2248
|
*/
|
|
2215
|
-
static new_with_mime_type(mime_type: string
|
|
2249
|
+
static new_with_mime_type(mime_type: string): PixbufLoader
|
|
2216
2250
|
/**
|
|
2217
2251
|
* Creates a new pixbuf loader object that always attempts to parse
|
|
2218
2252
|
* image data as if it were an image of type `image_type,` instead of
|
|
@@ -2232,7 +2266,7 @@ class PixbufLoader extends GObject.Object {
|
|
|
2232
2266
|
* @param image_type name of the image format to be loaded with the image
|
|
2233
2267
|
* @returns A newly-created pixbuf loader.
|
|
2234
2268
|
*/
|
|
2235
|
-
static new_with_type(image_type: string
|
|
2269
|
+
static new_with_type(image_type: string): PixbufLoader
|
|
2236
2270
|
_init(config?: PixbufLoader.ConstructorProperties): void
|
|
2237
2271
|
}
|
|
2238
2272
|
|
|
@@ -2557,7 +2591,7 @@ interface PixbufFormat {
|
|
|
2557
2591
|
* @param option_key the name of an option
|
|
2558
2592
|
* @returns `TRUE` if the specified option is supported
|
|
2559
2593
|
*/
|
|
2560
|
-
is_save_option_supported(option_key: string
|
|
2594
|
+
is_save_option_supported(option_key: string): boolean
|
|
2561
2595
|
/**
|
|
2562
2596
|
* Returns whether this image format is scalable.
|
|
2563
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": "*"
|