@girs/gdkpixbuf-2.0 2.0.0-3.1.0 → 2.0.0-3.2.2
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 +4 -112
- package/gdkpixbuf-2.0.d.ts +4 -112
- package/package.json +6 -12
- package/{tsconfig.doc.json → tsconfig.json} +2 -0
- package/typedoc.json +7 -0
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.
|
|
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.2.
|
|
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
|
@@ -238,47 +238,6 @@ export interface PixbufModuleFillInfoFunc {
|
|
|
238
238
|
export interface PixbufModuleFillVtableFunc {
|
|
239
239
|
(module: PixbufModule): void
|
|
240
240
|
}
|
|
241
|
-
/**
|
|
242
|
-
* Incrementally loads a buffer into the image data.
|
|
243
|
-
* @callback
|
|
244
|
-
* @param context the state object created by [callback`GdkPixbuf`.PixbufModuleBeginLoadFunc]
|
|
245
|
-
* @param buf the data to load
|
|
246
|
-
* @returns `TRUE` if the incremental load was successful
|
|
247
|
-
*/
|
|
248
|
-
export interface PixbufModuleIncrementLoadFunc {
|
|
249
|
-
(context: any | null, buf: Uint8Array): boolean
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Loads a file from a standard C file stream into a new `GdkPixbufAnimation`.
|
|
253
|
-
*
|
|
254
|
-
* In case of error, this function should return `NULL` and set the `error` argument.
|
|
255
|
-
* @callback
|
|
256
|
-
* @param f the file stream from which the image should be loaded
|
|
257
|
-
* @returns a newly created `GdkPixbufAnimation` for the contents of the file
|
|
258
|
-
*/
|
|
259
|
-
export interface PixbufModuleLoadAnimationFunc {
|
|
260
|
-
(f: any | null): PixbufAnimation
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Loads a file from a standard C file stream into a new `GdkPixbuf`.
|
|
264
|
-
*
|
|
265
|
-
* In case of error, this function should return `NULL` and set the `error` argument.
|
|
266
|
-
* @callback
|
|
267
|
-
* @param f the file stream from which the image should be loaded
|
|
268
|
-
* @returns a newly created `GdkPixbuf` for the contents of the file
|
|
269
|
-
*/
|
|
270
|
-
export interface PixbufModuleLoadFunc {
|
|
271
|
-
(f: any | null): Pixbuf
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* Loads XPM data into a new `GdkPixbuf`.
|
|
275
|
-
* @callback
|
|
276
|
-
* @param data the XPM data
|
|
277
|
-
* @returns a newly created `GdkPixbuf` for the XPM data
|
|
278
|
-
*/
|
|
279
|
-
export interface PixbufModuleLoadXpmDataFunc {
|
|
280
|
-
(data: string[]): Pixbuf
|
|
281
|
-
}
|
|
282
241
|
/**
|
|
283
242
|
* Defines the type of the function that gets called once the initial
|
|
284
243
|
* setup of `pixbuf` is done.
|
|
@@ -293,31 +252,6 @@ export interface PixbufModuleLoadXpmDataFunc {
|
|
|
293
252
|
export interface PixbufModulePreparedFunc {
|
|
294
253
|
(pixbuf: Pixbuf, anim: PixbufAnimation): void
|
|
295
254
|
}
|
|
296
|
-
/**
|
|
297
|
-
* Saves a `GdkPixbuf` into a standard C file stream.
|
|
298
|
-
*
|
|
299
|
-
* The optional `param_keys` and `param_values` arrays contain the keys and
|
|
300
|
-
* values (in the same order) for attributes to be saved alongside the image
|
|
301
|
-
* data.
|
|
302
|
-
* @callback
|
|
303
|
-
* @param f the file stream into which the image should be saved
|
|
304
|
-
* @param pixbuf the image to save
|
|
305
|
-
* @param param_keys parameter keys to save
|
|
306
|
-
* @param param_values parameter values to save
|
|
307
|
-
* @returns `TRUE` on success; in case of failure, `FALSE` is returned and the `error` is set
|
|
308
|
-
*/
|
|
309
|
-
export interface PixbufModuleSaveFunc {
|
|
310
|
-
(f: any | null, pixbuf: Pixbuf, param_keys: string[] | null, param_values: string[] | null): boolean
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* Checks whether the given `option_key` is supported when saving.
|
|
314
|
-
* @callback
|
|
315
|
-
* @param option_key the option key to check
|
|
316
|
-
* @returns `TRUE` if the option is supported
|
|
317
|
-
*/
|
|
318
|
-
export interface PixbufModuleSaveOptionSupportedFunc {
|
|
319
|
-
(option_key: string | null): boolean
|
|
320
|
-
}
|
|
321
255
|
/**
|
|
322
256
|
* Defines the type of the function that gets called once the size
|
|
323
257
|
* of the loaded image is known.
|
|
@@ -339,17 +273,6 @@ export interface PixbufModuleSaveOptionSupportedFunc {
|
|
|
339
273
|
export interface PixbufModuleSizeFunc {
|
|
340
274
|
(width: number, height: number): void
|
|
341
275
|
}
|
|
342
|
-
/**
|
|
343
|
-
* Finalizes the image loading state.
|
|
344
|
-
*
|
|
345
|
-
* This function is called on success and error states.
|
|
346
|
-
* @callback
|
|
347
|
-
* @param context the state object created by [callback`GdkPixbuf`.PixbufModuleBeginLoadFunc]
|
|
348
|
-
* @returns `TRUE` if the loading operation was successful
|
|
349
|
-
*/
|
|
350
|
-
export interface PixbufModuleStopLoadFunc {
|
|
351
|
-
(context: any | null): boolean
|
|
352
|
-
}
|
|
353
276
|
/**
|
|
354
277
|
* Defines the type of the function that gets called every time a region
|
|
355
278
|
* of `pixbuf` is updated.
|
|
@@ -2641,41 +2564,10 @@ export interface PixbufModule {
|
|
|
2641
2564
|
* @field
|
|
2642
2565
|
*/
|
|
2643
2566
|
info: PixbufFormat
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
load: PixbufModuleLoadFunc
|
|
2649
|
-
/**
|
|
2650
|
-
* loads an image from data in memory.
|
|
2651
|
-
* @field
|
|
2652
|
-
*/
|
|
2653
|
-
load_xpm_data: PixbufModuleLoadXpmDataFunc
|
|
2654
|
-
/**
|
|
2655
|
-
* stops an incremental load.
|
|
2656
|
-
* @field
|
|
2657
|
-
*/
|
|
2658
|
-
stop_load: PixbufModuleStopLoadFunc
|
|
2659
|
-
/**
|
|
2660
|
-
* continues an incremental load.
|
|
2661
|
-
* @field
|
|
2662
|
-
*/
|
|
2663
|
-
load_increment: PixbufModuleIncrementLoadFunc
|
|
2664
|
-
/**
|
|
2665
|
-
* loads an animation from a file.
|
|
2666
|
-
* @field
|
|
2667
|
-
*/
|
|
2668
|
-
load_animation: PixbufModuleLoadAnimationFunc
|
|
2669
|
-
/**
|
|
2670
|
-
* saves a `GdkPixbuf` to a file.
|
|
2671
|
-
* @field
|
|
2672
|
-
*/
|
|
2673
|
-
save: PixbufModuleSaveFunc
|
|
2674
|
-
/**
|
|
2675
|
-
* returns whether a save option key is supported by the module
|
|
2676
|
-
* @field
|
|
2677
|
-
*/
|
|
2678
|
-
is_save_option_supported: PixbufModuleSaveOptionSupportedFunc
|
|
2567
|
+
stop_load: (context: any) => boolean
|
|
2568
|
+
load_increment: (context: any, buf: number, size: number) => boolean
|
|
2569
|
+
save: (f: any, pixbuf: Pixbuf, param_keys: string | null, param_values: string | null) => boolean
|
|
2570
|
+
is_save_option_supported: (option_key: string | null) => boolean
|
|
2679
2571
|
}
|
|
2680
2572
|
|
|
2681
2573
|
/**
|
package/gdkpixbuf-2.0.d.ts
CHANGED
|
@@ -240,47 +240,6 @@ interface PixbufModuleFillInfoFunc {
|
|
|
240
240
|
interface PixbufModuleFillVtableFunc {
|
|
241
241
|
(module: PixbufModule): void
|
|
242
242
|
}
|
|
243
|
-
/**
|
|
244
|
-
* Incrementally loads a buffer into the image data.
|
|
245
|
-
* @callback
|
|
246
|
-
* @param context the state object created by [callback`GdkPixbuf`.PixbufModuleBeginLoadFunc]
|
|
247
|
-
* @param buf the data to load
|
|
248
|
-
* @returns `TRUE` if the incremental load was successful
|
|
249
|
-
*/
|
|
250
|
-
interface PixbufModuleIncrementLoadFunc {
|
|
251
|
-
(context: any | null, buf: Uint8Array): boolean
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Loads a file from a standard C file stream into a new `GdkPixbufAnimation`.
|
|
255
|
-
*
|
|
256
|
-
* In case of error, this function should return `NULL` and set the `error` argument.
|
|
257
|
-
* @callback
|
|
258
|
-
* @param f the file stream from which the image should be loaded
|
|
259
|
-
* @returns a newly created `GdkPixbufAnimation` for the contents of the file
|
|
260
|
-
*/
|
|
261
|
-
interface PixbufModuleLoadAnimationFunc {
|
|
262
|
-
(f: any | null): PixbufAnimation
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Loads a file from a standard C file stream into a new `GdkPixbuf`.
|
|
266
|
-
*
|
|
267
|
-
* In case of error, this function should return `NULL` and set the `error` argument.
|
|
268
|
-
* @callback
|
|
269
|
-
* @param f the file stream from which the image should be loaded
|
|
270
|
-
* @returns a newly created `GdkPixbuf` for the contents of the file
|
|
271
|
-
*/
|
|
272
|
-
interface PixbufModuleLoadFunc {
|
|
273
|
-
(f: any | null): Pixbuf
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Loads XPM data into a new `GdkPixbuf`.
|
|
277
|
-
* @callback
|
|
278
|
-
* @param data the XPM data
|
|
279
|
-
* @returns a newly created `GdkPixbuf` for the XPM data
|
|
280
|
-
*/
|
|
281
|
-
interface PixbufModuleLoadXpmDataFunc {
|
|
282
|
-
(data: string[]): Pixbuf
|
|
283
|
-
}
|
|
284
243
|
/**
|
|
285
244
|
* Defines the type of the function that gets called once the initial
|
|
286
245
|
* setup of `pixbuf` is done.
|
|
@@ -295,31 +254,6 @@ interface PixbufModuleLoadXpmDataFunc {
|
|
|
295
254
|
interface PixbufModulePreparedFunc {
|
|
296
255
|
(pixbuf: Pixbuf, anim: PixbufAnimation): void
|
|
297
256
|
}
|
|
298
|
-
/**
|
|
299
|
-
* Saves a `GdkPixbuf` into a standard C file stream.
|
|
300
|
-
*
|
|
301
|
-
* The optional `param_keys` and `param_values` arrays contain the keys and
|
|
302
|
-
* values (in the same order) for attributes to be saved alongside the image
|
|
303
|
-
* data.
|
|
304
|
-
* @callback
|
|
305
|
-
* @param f the file stream into which the image should be saved
|
|
306
|
-
* @param pixbuf the image to save
|
|
307
|
-
* @param param_keys parameter keys to save
|
|
308
|
-
* @param param_values parameter values to save
|
|
309
|
-
* @returns `TRUE` on success; in case of failure, `FALSE` is returned and the `error` is set
|
|
310
|
-
*/
|
|
311
|
-
interface PixbufModuleSaveFunc {
|
|
312
|
-
(f: any | null, pixbuf: Pixbuf, param_keys: string[] | null, param_values: string[] | null): boolean
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* Checks whether the given `option_key` is supported when saving.
|
|
316
|
-
* @callback
|
|
317
|
-
* @param option_key the option key to check
|
|
318
|
-
* @returns `TRUE` if the option is supported
|
|
319
|
-
*/
|
|
320
|
-
interface PixbufModuleSaveOptionSupportedFunc {
|
|
321
|
-
(option_key: string | null): boolean
|
|
322
|
-
}
|
|
323
257
|
/**
|
|
324
258
|
* Defines the type of the function that gets called once the size
|
|
325
259
|
* of the loaded image is known.
|
|
@@ -341,17 +275,6 @@ interface PixbufModuleSaveOptionSupportedFunc {
|
|
|
341
275
|
interface PixbufModuleSizeFunc {
|
|
342
276
|
(width: number, height: number): void
|
|
343
277
|
}
|
|
344
|
-
/**
|
|
345
|
-
* Finalizes the image loading state.
|
|
346
|
-
*
|
|
347
|
-
* This function is called on success and error states.
|
|
348
|
-
* @callback
|
|
349
|
-
* @param context the state object created by [callback`GdkPixbuf`.PixbufModuleBeginLoadFunc]
|
|
350
|
-
* @returns `TRUE` if the loading operation was successful
|
|
351
|
-
*/
|
|
352
|
-
interface PixbufModuleStopLoadFunc {
|
|
353
|
-
(context: any | null): boolean
|
|
354
|
-
}
|
|
355
278
|
/**
|
|
356
279
|
* Defines the type of the function that gets called every time a region
|
|
357
280
|
* of `pixbuf` is updated.
|
|
@@ -2643,41 +2566,10 @@ interface PixbufModule {
|
|
|
2643
2566
|
* @field
|
|
2644
2567
|
*/
|
|
2645
2568
|
info: PixbufFormat
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
load: PixbufModuleLoadFunc
|
|
2651
|
-
/**
|
|
2652
|
-
* loads an image from data in memory.
|
|
2653
|
-
* @field
|
|
2654
|
-
*/
|
|
2655
|
-
load_xpm_data: PixbufModuleLoadXpmDataFunc
|
|
2656
|
-
/**
|
|
2657
|
-
* stops an incremental load.
|
|
2658
|
-
* @field
|
|
2659
|
-
*/
|
|
2660
|
-
stop_load: PixbufModuleStopLoadFunc
|
|
2661
|
-
/**
|
|
2662
|
-
* continues an incremental load.
|
|
2663
|
-
* @field
|
|
2664
|
-
*/
|
|
2665
|
-
load_increment: PixbufModuleIncrementLoadFunc
|
|
2666
|
-
/**
|
|
2667
|
-
* loads an animation from a file.
|
|
2668
|
-
* @field
|
|
2669
|
-
*/
|
|
2670
|
-
load_animation: PixbufModuleLoadAnimationFunc
|
|
2671
|
-
/**
|
|
2672
|
-
* saves a `GdkPixbuf` to a file.
|
|
2673
|
-
* @field
|
|
2674
|
-
*/
|
|
2675
|
-
save: PixbufModuleSaveFunc
|
|
2676
|
-
/**
|
|
2677
|
-
* returns whether a save option key is supported by the module
|
|
2678
|
-
* @field
|
|
2679
|
-
*/
|
|
2680
|
-
is_save_option_supported: PixbufModuleSaveOptionSupportedFunc
|
|
2569
|
+
stop_load: (context: any) => boolean
|
|
2570
|
+
load_increment: (context: any, buf: number, size: number) => boolean
|
|
2571
|
+
save: (f: any, pixbuf: Pixbuf, param_keys: string | null, param_values: string | null) => boolean
|
|
2572
|
+
is_save_option_supported: (option_key: string | null) => boolean
|
|
2681
2573
|
}
|
|
2682
2574
|
|
|
2683
2575
|
/**
|
package/package.json
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gdkpixbuf-2.0",
|
|
3
|
-
"version": "2.0.0-3.
|
|
3
|
+
"version": "2.0.0-3.2.2",
|
|
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",
|
|
7
7
|
"main": "gdkpixbuf-2.0.js",
|
|
8
|
-
"typedoc": {
|
|
9
|
-
"entryPoint": "./gdkpixbuf-2.0.d.ts",
|
|
10
|
-
"readmeFile": "./README.md",
|
|
11
|
-
"displayName": "GdkPixbuf-2.0",
|
|
12
|
-
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
-
},
|
|
14
8
|
"exports": {
|
|
15
9
|
"./ambient": "./gdkpixbuf-2.0-ambient.d.ts",
|
|
16
10
|
"./import": "./gdkpixbuf-2.0-import.d.ts",
|
|
@@ -31,11 +25,11 @@
|
|
|
31
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gdkpixbuf-2.0.d.cts"
|
|
32
26
|
},
|
|
33
27
|
"dependencies": {
|
|
34
|
-
"@girs/gio-2.0": "^2.
|
|
35
|
-
"@girs/gjs": "^3.
|
|
36
|
-
"@girs/glib-2.0": "^2.
|
|
37
|
-
"@girs/gmodule-2.0": "^2.0.0-3.
|
|
38
|
-
"@girs/gobject-2.0": "^2.
|
|
28
|
+
"@girs/gio-2.0": "^2.77.0-3.2.2",
|
|
29
|
+
"@girs/gjs": "^3.2.2",
|
|
30
|
+
"@girs/glib-2.0": "^2.77.0-3.2.2",
|
|
31
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.2",
|
|
32
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.2"
|
|
39
33
|
},
|
|
40
34
|
"devDependencies": {
|
|
41
35
|
"typescript": "*"
|