@girs/appstreamcompose-1.0 1.0.0-4.0.0-beta.14 → 1.0.0-4.0.0-beta.16
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/appstreamcompose-1.0.d.ts +22 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.16.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
|
@@ -283,6 +283,18 @@ export namespace AppStreamCompose {
|
|
|
283
283
|
* @param enabled
|
|
284
284
|
*/
|
|
285
285
|
function globals_set_use_optipng(enabled: boolean): void;
|
|
286
|
+
/**
|
|
287
|
+
* Converts the text representation to an enumerated value.
|
|
288
|
+
* @param state_str the string.
|
|
289
|
+
* @returns a #AscIconState
|
|
290
|
+
*/
|
|
291
|
+
function icon_state_from_string(state_str: string): IconState;
|
|
292
|
+
/**
|
|
293
|
+
* Converts the enumerated value to an text representation.
|
|
294
|
+
* @param istate the #AscIconState.
|
|
295
|
+
* @returns string version of @istate
|
|
296
|
+
*/
|
|
297
|
+
function icon_state_to_string(istate: IconState): string;
|
|
286
298
|
function image_error_quark(): GLib.Quark;
|
|
287
299
|
/**
|
|
288
300
|
* Returns the image format type based on the given file's filename.
|
|
@@ -797,6 +809,11 @@ export namespace AppStreamCompose {
|
|
|
797
809
|
|
|
798
810
|
// Methods
|
|
799
811
|
|
|
812
|
+
/**
|
|
813
|
+
* Loads the icon policy from a textual representation.
|
|
814
|
+
* @param serialized_policy A policy string as returned by %asc_icon_policy_to_string
|
|
815
|
+
*/
|
|
816
|
+
from_string(serialized_policy: string): boolean;
|
|
800
817
|
/**
|
|
801
818
|
* Sets a designated state for an icon of the given size.
|
|
802
819
|
* @param icon_size the size of the icon to set policy for (e.g. 64 for 64x64px icons)
|
|
@@ -804,6 +821,11 @@ export namespace AppStreamCompose {
|
|
|
804
821
|
* @param state the designated #AscIconState
|
|
805
822
|
*/
|
|
806
823
|
set_policy(icon_size: number, icon_scale: number, state: IconState): void;
|
|
824
|
+
/**
|
|
825
|
+
* Converts the current icon policy into a textual representation.
|
|
826
|
+
* @returns The icon policy serialized into a string. Free with g_free()
|
|
827
|
+
*/
|
|
828
|
+
to_string(): string;
|
|
807
829
|
}
|
|
808
830
|
|
|
809
831
|
module Image {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/appstreamcompose-1.0",
|
|
3
|
-
"version": "1.0.0-4.0.0-beta.
|
|
3
|
+
"version": "1.0.0-4.0.0-beta.16",
|
|
4
4
|
"description": "GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "appstreamcompose-1.0.js",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/appstream-1.0": "^1.0.
|
|
35
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.
|
|
36
|
-
"@girs/gio-2.0": "^2.
|
|
37
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
38
|
-
"@girs/glib-2.0": "^2.
|
|
39
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
40
|
-
"@girs/gobject-2.0": "^2.
|
|
34
|
+
"@girs/appstream-1.0": "^1.0.2-4.0.0-beta.16",
|
|
35
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.16",
|
|
36
|
+
"@girs/gio-2.0": "^2.82.0-4.0.0-beta.16",
|
|
37
|
+
"@girs/gjs": "^4.0.0-beta.16",
|
|
38
|
+
"@girs/glib-2.0": "^2.82.0-4.0.0-beta.16",
|
|
39
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.16",
|
|
40
|
+
"@girs/gobject-2.0": "^2.82.0-4.0.0-beta.16"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "*"
|