@girs/clutter-16 16.0.0-4.0.0-beta.34 → 16.0.0-4.0.0-beta.35

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/clutter-16.d.ts +98 -86
  3. package/package.json +61 -67
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/clutter-16)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Clutter-16, generated from library version 16.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.34.
8
+ GJS TypeScript type definitions for Clutter-16, generated from library version 16.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.35.
9
9
 
10
10
  ## Install
11
11
 
package/clutter-16.d.ts CHANGED
@@ -24257,6 +24257,49 @@ export namespace Clutter {
24257
24257
  }
24258
24258
 
24259
24259
  namespace Animatable {
24260
+ /**
24261
+ * Interface for implementing Animatable.
24262
+ * Contains only the virtual methods that need to be implemented.
24263
+ */
24264
+ interface Interface {
24265
+ // Virtual methods
24266
+
24267
+ /**
24268
+ * Finds the [class`GObject`.ParamSpec] for `property_name`
24269
+ * @param property_name the name of the animatable property to find
24270
+ */
24271
+ vfunc_find_property(property_name: string): GObject.ParamSpec;
24272
+ /**
24273
+ * Get animated actor.
24274
+ */
24275
+ vfunc_get_actor(): Actor;
24276
+ /**
24277
+ * Retrieves the current state of `property_name` and sets `value` with it
24278
+ * @param property_name the name of the animatable property to retrieve
24279
+ * @param value a #GValue initialized to the type of the property to retrieve
24280
+ */
24281
+ vfunc_get_initial_state(property_name: string, value: GObject.Value | any): void;
24282
+ /**
24283
+ * Asks a #ClutterAnimatable implementation to interpolate a
24284
+ * a named property between the initial and final values of
24285
+ * a #ClutterInterval, using `progress` as the interpolation
24286
+ * value, and store the result inside `value`.
24287
+ *
24288
+ * This function should be used for every property animation
24289
+ * involving `ClutterAnimatable`s.
24290
+ * @param property_name the name of the property to interpolate
24291
+ * @param interval a #ClutterInterval with the animation range
24292
+ * @param progress the progress to use to interpolate between the initial and final values of the @interval
24293
+ */
24294
+ vfunc_interpolate_value(property_name: string, interval: Interval, progress: number): [boolean, unknown];
24295
+ /**
24296
+ * Sets the current state of `property_name` to `value`
24297
+ * @param property_name the name of the animatable property to set
24298
+ * @param value the value of the animatable property to set
24299
+ */
24300
+ vfunc_set_final_state(property_name: string, value: GObject.Value | any): void;
24301
+ }
24302
+
24260
24303
  // Constructor properties interface
24261
24304
 
24262
24305
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -24266,7 +24309,7 @@ export namespace Clutter {
24266
24309
  $gtype: GObject.GType<Animatable>;
24267
24310
  prototype: Animatable;
24268
24311
  }
24269
- interface Animatable extends GObject.Object {
24312
+ interface Animatable extends GObject.Object, Animatable.Interface {
24270
24313
  // Methods
24271
24314
 
24272
24315
  /**
@@ -24306,43 +24349,6 @@ export namespace Clutter {
24306
24349
  * @param value the value of the animatable property to set
24307
24350
  */
24308
24351
  set_final_state(property_name: string, value: GObject.Value | any): void;
24309
-
24310
- // Virtual methods
24311
-
24312
- /**
24313
- * Finds the [class`GObject`.ParamSpec] for `property_name`
24314
- * @param property_name the name of the animatable property to find
24315
- */
24316
- vfunc_find_property(property_name: string): GObject.ParamSpec;
24317
- /**
24318
- * Get animated actor.
24319
- */
24320
- vfunc_get_actor(): Actor;
24321
- /**
24322
- * Retrieves the current state of `property_name` and sets `value` with it
24323
- * @param property_name the name of the animatable property to retrieve
24324
- * @param value a #GValue initialized to the type of the property to retrieve
24325
- */
24326
- vfunc_get_initial_state(property_name: string, value: GObject.Value | any): void;
24327
- /**
24328
- * Asks a #ClutterAnimatable implementation to interpolate a
24329
- * a named property between the initial and final values of
24330
- * a #ClutterInterval, using `progress` as the interpolation
24331
- * value, and store the result inside `value`.
24332
- *
24333
- * This function should be used for every property animation
24334
- * involving `ClutterAnimatable`s.
24335
- * @param property_name the name of the property to interpolate
24336
- * @param interval a #ClutterInterval with the animation range
24337
- * @param progress the progress to use to interpolate between the initial and final values of the @interval
24338
- */
24339
- vfunc_interpolate_value(property_name: string, interval: Interval, progress: number): [boolean, unknown];
24340
- /**
24341
- * Sets the current state of `property_name` to `value`
24342
- * @param property_name the name of the animatable property to set
24343
- * @param value the value of the animatable property to set
24344
- */
24345
- vfunc_set_final_state(property_name: string, value: GObject.Value | any): void;
24346
24352
  }
24347
24353
 
24348
24354
  export const Animatable: AnimatableNamespace & {
@@ -24350,6 +24356,59 @@ export namespace Clutter {
24350
24356
  };
24351
24357
 
24352
24358
  namespace Content {
24359
+ /**
24360
+ * Interface for implementing Content.
24361
+ * Contains only the virtual methods that need to be implemented.
24362
+ */
24363
+ interface Interface {
24364
+ // Virtual methods
24365
+
24366
+ /**
24367
+ * virtual function; called each time a #ClutterContent is attached
24368
+ * to a #ClutterActor.
24369
+ * @param actor
24370
+ */
24371
+ vfunc_attached(actor: Actor): void;
24372
+ /**
24373
+ * virtual function; called each time a #ClutterContent is detached
24374
+ * from a #ClutterActor.
24375
+ * @param actor
24376
+ */
24377
+ vfunc_detached(actor: Actor): void;
24378
+ /**
24379
+ * Retrieves the natural size of the `content,` if any.
24380
+ *
24381
+ * The natural size of a #ClutterContent is defined as the size the content
24382
+ * would have regardless of the allocation of the actor that is painting it,
24383
+ * for instance the size of an image data.
24384
+ */
24385
+ vfunc_get_preferred_size(): [boolean, number, number];
24386
+ /**
24387
+ * Invalidates a #ClutterContent.
24388
+ *
24389
+ * This function should be called by #ClutterContent implementations when
24390
+ * they change the way a the content should be painted regardless of the
24391
+ * actor state.
24392
+ */
24393
+ vfunc_invalidate(): void;
24394
+ /**
24395
+ * Signals that `content'`s size changed. Attached actors with request mode
24396
+ * set to %CLUTTER_REQUEST_CONTENT_SIZE will have a relayout queued.
24397
+ *
24398
+ * Attached actors with other request modes are not redrawn. To redraw them
24399
+ * too, use [method`Clutter`.Content.invalidate].
24400
+ */
24401
+ vfunc_invalidate_size(): void;
24402
+ /**
24403
+ * virtual function; called each time the content needs to
24404
+ * paint itself
24405
+ * @param actor
24406
+ * @param node
24407
+ * @param paint_context
24408
+ */
24409
+ vfunc_paint_content(actor: Actor, node: PaintNode, paint_context: PaintContext): void;
24410
+ }
24411
+
24353
24412
  // Constructor properties interface
24354
24413
 
24355
24414
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -24359,7 +24418,7 @@ export namespace Clutter {
24359
24418
  $gtype: GObject.GType<Content>;
24360
24419
  prototype: Content;
24361
24420
  }
24362
- interface Content extends GObject.Object {
24421
+ interface Content extends GObject.Object, Content.Interface {
24363
24422
  // Methods
24364
24423
 
24365
24424
  /**
@@ -24387,53 +24446,6 @@ export namespace Clutter {
24387
24446
  * too, use [method`Clutter`.Content.invalidate].
24388
24447
  */
24389
24448
  invalidate_size(): void;
24390
-
24391
- // Virtual methods
24392
-
24393
- /**
24394
- * virtual function; called each time a #ClutterContent is attached
24395
- * to a #ClutterActor.
24396
- * @param actor
24397
- */
24398
- vfunc_attached(actor: Actor): void;
24399
- /**
24400
- * virtual function; called each time a #ClutterContent is detached
24401
- * from a #ClutterActor.
24402
- * @param actor
24403
- */
24404
- vfunc_detached(actor: Actor): void;
24405
- /**
24406
- * Retrieves the natural size of the `content,` if any.
24407
- *
24408
- * The natural size of a #ClutterContent is defined as the size the content
24409
- * would have regardless of the allocation of the actor that is painting it,
24410
- * for instance the size of an image data.
24411
- */
24412
- vfunc_get_preferred_size(): [boolean, number, number];
24413
- /**
24414
- * Invalidates a #ClutterContent.
24415
- *
24416
- * This function should be called by #ClutterContent implementations when
24417
- * they change the way a the content should be painted regardless of the
24418
- * actor state.
24419
- */
24420
- vfunc_invalidate(): void;
24421
- /**
24422
- * Signals that `content'`s size changed. Attached actors with request mode
24423
- * set to %CLUTTER_REQUEST_CONTENT_SIZE will have a relayout queued.
24424
- *
24425
- * Attached actors with other request modes are not redrawn. To redraw them
24426
- * too, use [method`Clutter`.Content.invalidate].
24427
- */
24428
- vfunc_invalidate_size(): void;
24429
- /**
24430
- * virtual function; called each time the content needs to
24431
- * paint itself
24432
- * @param actor
24433
- * @param node
24434
- * @param paint_context
24435
- */
24436
- vfunc_paint_content(actor: Actor, node: PaintNode, paint_context: PaintContext): void;
24437
24449
  }
24438
24450
 
24439
24451
  export const Content: ContentNamespace & {
package/package.json CHANGED
@@ -1,71 +1,65 @@
1
1
  {
2
- "name": "@girs/clutter-16",
3
- "version": "16.0.0-4.0.0-beta.34",
4
- "description": "GJS TypeScript type definitions for Clutter-16, generated from library version 16.0.0",
5
- "type": "module",
6
- "module": "clutter-16.js",
7
- "main": "clutter-16.js",
8
- "exports": {
9
- "./ambient": {
10
- "types": "./clutter-16-ambient.d.ts",
11
- "import": "./clutter-16-ambient.js",
12
- "default": "./clutter-16-ambient.js"
2
+ "name": "@girs/clutter-16",
3
+ "version": "16.0.0-4.0.0-beta.35",
4
+ "description": "GJS TypeScript type definitions for Clutter-16, generated from library version 16.0.0",
5
+ "type": "module",
6
+ "module": "clutter-16.js",
7
+ "main": "clutter-16.js",
8
+ "exports": {
9
+ "./ambient": {
10
+ "types": "./clutter-16-ambient.d.ts",
11
+ "import": "./clutter-16-ambient.js",
12
+ "default": "./clutter-16-ambient.js"
13
+ },
14
+ "./import": {
15
+ "types": "./clutter-16-import.d.ts",
16
+ "import": "./clutter-16-import.js",
17
+ "default": "./clutter-16-import.js"
18
+ },
19
+ "./clutter-16": {
20
+ "types": "./clutter-16.d.ts",
21
+ "import": "./clutter-16.js",
22
+ "default": "./clutter-16.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
28
+ }
13
29
  },
14
- "./import": {
15
- "types": "./clutter-16-import.d.ts",
16
- "import": "./clutter-16-import.js",
17
- "default": "./clutter-16-import.js"
30
+ "scripts": {
31
+ "test": "tsc --project tsconfig.json"
18
32
  },
19
- "./clutter-16": {
20
- "types": "./clutter-16.d.ts",
21
- "import": "./clutter-16.js",
22
- "default": "./clutter-16.js"
33
+ "dependencies": {
34
+ "@girs/gjs": "4.0.0-beta.35",
35
+ "@girs/pango-1.0": "1.56.4-4.0.0-beta.35",
36
+ "@girs/cairo-1.0": "1.0.0-4.0.0-beta.35",
37
+ "@girs/gobject-2.0": "2.0.0-4.0.0-beta.35",
38
+ "@girs/glib-2.0": "2.84.4-4.0.0-beta.35",
39
+ "@girs/harfbuzz-0.0": "10.4.0-4.0.0-beta.35",
40
+ "@girs/freetype2-2.0": "2.0.0-4.0.0-beta.35",
41
+ "@girs/gio-2.0": "2.0.0-4.0.0-beta.35",
42
+ "@girs/gmodule-2.0": "2.0.0-4.0.0-beta.35",
43
+ "@girs/mtk-16": "16.0.0-4.0.0-beta.35",
44
+ "@girs/graphene-1.0": "1.0.0-4.0.0-beta.35",
45
+ "@girs/gl-1.0": "1.0.0-4.0.0-beta.35",
46
+ "@girs/cogl-16": "16.0.0-4.0.0-beta.35",
47
+ "@girs/xlib-2.0": "2.0.0-4.0.0-beta.35",
48
+ "@girs/atk-1.0": "2.56.3-4.0.0-beta.35" },
49
+ "devDependencies": {
50
+ "typescript": "*"
23
51
  },
24
- ".": {
25
- "types": "./index.d.ts",
26
- "import": "./index.js",
27
- "default": "./index.js"
28
- }
29
- },
30
- "scripts": {
31
- "test": "tsc --project tsconfig.json"
32
- },
33
- "dependencies": {
34
- "@girs/atk-1.0": "^2.56.3-4.0.0-beta.34",
35
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.34",
36
- "@girs/cogl-16": "^16.0.0-4.0.0-beta.34",
37
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.34",
38
- "@girs/gio-2.0": "^2.84.4-4.0.0-beta.34",
39
- "@girs/gjs": "^4.0.0-beta.34",
40
- "@girs/gl-1.0": "^1.0.0-4.0.0-beta.34",
41
- "@girs/glib-2.0": "^2.84.4-4.0.0-beta.34",
42
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.34",
43
- "@girs/gobject-2.0": "^2.84.4-4.0.0-beta.34",
44
- "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.34",
45
- "@girs/harfbuzz-0.0": "^10.4.0-4.0.0-beta.34",
46
- "@girs/mtk-16": "^16.0.0-4.0.0-beta.34",
47
- "@girs/pango-1.0": "^1.56.4-4.0.0-beta.34",
48
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.34"
49
- },
50
- "devDependencies": {
51
- "typescript": "*"
52
- },
53
- "keywords": [
54
- "Gir",
55
- "TypeScript",
56
- "types",
57
- "GObject-Introspection",
58
- "GJS",
59
- "Clutter-16"
60
- ],
61
- "author": "ts-for-gir",
62
- "license": "MIT",
63
- "repository": {
64
- "type": "git",
65
- "url": "git+https://github.com/gjsify/ts-for-gir.git"
66
- },
67
- "bugs": {
68
- "url": "https://github.com/gjsify/ts-for-gir/issues"
69
- },
70
- "homepage": "https://github.com/gjsify/types/tree/main/clutter-16#readme"
71
- }
52
+ "keywords": ["Gir", "TypeScript", "types", "GObject-Introspection", "GJS", "Clutter-16"],
53
+ "author": "ts-for-gir",
54
+ "license": "MIT",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "https://github.com/gjsify/types.git"
58
+ },
59
+ "bugs": {
60
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
61
+ },
62
+ "homepage": "https://github.com/gjsify/types/tree/main/clutter-16#readme"
63
+ }
64
+
65
+