@girs/mx-2.0 1.99.4-4.0.0-beta.34 → 1.99.4-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/mx-2.0.d.ts +148 -107
  3. package/package.json +65 -71
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/mx-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Mx-2.0, generated from library version 1.99.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.34.
8
+ GJS TypeScript type definitions for Mx-2.0, generated from library version 1.99.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.35.
9
9
 
10
10
  ## Install
11
11
 
package/mx-2.0.d.ts CHANGED
@@ -32441,6 +32441,25 @@ export namespace Mx {
32441
32441
  }
32442
32442
 
32443
32443
  namespace Draggable {
32444
+ /**
32445
+ * Interface for implementing Draggable.
32446
+ * Contains only the virtual methods that need to be implemented.
32447
+ */
32448
+ interface Interface {
32449
+ // Virtual methods
32450
+
32451
+ vfunc_disable(): void;
32452
+ vfunc_drag_begin(
32453
+ event_x: number,
32454
+ event_y: number,
32455
+ event_button: number,
32456
+ modifiers: Clutter.ModifierType,
32457
+ ): void;
32458
+ vfunc_drag_end(event_x: number, event_y: number): void;
32459
+ vfunc_drag_motion(delta_x: number, delta_y: number): void;
32460
+ vfunc_enable(): void;
32461
+ }
32462
+
32444
32463
  // Constructor properties interface
32445
32464
 
32446
32465
  interface ConstructorProps extends Clutter.Actor.ConstructorProps {
@@ -32458,7 +32477,7 @@ export namespace Mx {
32458
32477
  $gtype: GObject.GType<Draggable>;
32459
32478
  prototype: Draggable;
32460
32479
  }
32461
- interface Draggable extends Clutter.Actor {
32480
+ interface Draggable extends Clutter.Actor, Draggable.Interface {
32462
32481
  // Properties
32463
32482
 
32464
32483
  get axis(): DragAxis;
@@ -32491,14 +32510,6 @@ export namespace Mx {
32491
32510
  set_axis(axis: DragAxis | null): void;
32492
32511
  set_drag_actor(actor: Clutter.Actor): void;
32493
32512
  set_drag_threshold(threshold: number): void;
32494
-
32495
- // Virtual methods
32496
-
32497
- vfunc_disable(): void;
32498
- vfunc_drag_begin(event_x: number, event_y: number, event_button: number, modifiers: Clutter.ModifierType): void;
32499
- vfunc_drag_end(event_x: number, event_y: number): void;
32500
- vfunc_drag_motion(delta_x: number, delta_y: number): void;
32501
- vfunc_enable(): void;
32502
32513
  }
32503
32514
 
32504
32515
  export const Draggable: DraggableNamespace & {
@@ -32506,6 +32517,27 @@ export namespace Mx {
32506
32517
  };
32507
32518
 
32508
32519
  namespace Droppable {
32520
+ /**
32521
+ * Interface for implementing Droppable.
32522
+ * Contains only the virtual methods that need to be implemented.
32523
+ */
32524
+ interface Interface {
32525
+ // Virtual methods
32526
+
32527
+ vfunc_accept_drop(draggable: Draggable): boolean;
32528
+ vfunc_disable(): void;
32529
+ vfunc_drop(
32530
+ draggable: Draggable,
32531
+ event_x: number,
32532
+ event_y: number,
32533
+ button: number,
32534
+ modifiers: Clutter.ModifierType,
32535
+ ): void;
32536
+ vfunc_enable(): void;
32537
+ vfunc_over_in(draggable: Draggable): void;
32538
+ vfunc_over_out(draggable: Draggable): void;
32539
+ }
32540
+
32509
32541
  // Constructor properties interface
32510
32542
 
32511
32543
  interface ConstructorProps extends Clutter.Actor.ConstructorProps {
@@ -32518,7 +32550,7 @@ export namespace Mx {
32518
32550
  $gtype: GObject.GType<Droppable>;
32519
32551
  prototype: Droppable;
32520
32552
  }
32521
- interface Droppable extends Clutter.Actor {
32553
+ interface Droppable extends Clutter.Actor, Droppable.Interface {
32522
32554
  // Properties
32523
32555
 
32524
32556
  get drop_enabled(): boolean;
@@ -32532,21 +32564,6 @@ export namespace Mx {
32532
32564
  disable(): void;
32533
32565
  enable(): void;
32534
32566
  is_enabled(): boolean;
32535
-
32536
- // Virtual methods
32537
-
32538
- vfunc_accept_drop(draggable: Draggable): boolean;
32539
- vfunc_disable(): void;
32540
- vfunc_drop(
32541
- draggable: Draggable,
32542
- event_x: number,
32543
- event_y: number,
32544
- button: number,
32545
- modifiers: Clutter.ModifierType,
32546
- ): void;
32547
- vfunc_enable(): void;
32548
- vfunc_over_in(draggable: Draggable): void;
32549
- vfunc_over_out(draggable: Draggable): void;
32550
32567
  }
32551
32568
 
32552
32569
  export const Droppable: DroppableNamespace & {
@@ -32554,6 +32571,26 @@ export namespace Mx {
32554
32571
  };
32555
32572
 
32556
32573
  namespace Focusable {
32574
+ /**
32575
+ * Interface for implementing Focusable.
32576
+ * Contains only the virtual methods that need to be implemented.
32577
+ */
32578
+ interface Interface {
32579
+ // Virtual methods
32580
+
32581
+ /**
32582
+ * Accept the focus
32583
+ * @param hint A #MxFocusHint
32584
+ */
32585
+ vfunc_accept_focus(hint: FocusHint): Focusable;
32586
+ /**
32587
+ * Move the focus
32588
+ * @param direction A #MxFocusDirection
32589
+ * @param from focusable to move the focus from
32590
+ */
32591
+ vfunc_move_focus(direction: FocusDirection, from: Focusable): Focusable;
32592
+ }
32593
+
32557
32594
  // Constructor properties interface
32558
32595
 
32559
32596
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -32563,7 +32600,7 @@ export namespace Mx {
32563
32600
  $gtype: GObject.GType<Focusable>;
32564
32601
  prototype: Focusable;
32565
32602
  }
32566
- interface Focusable extends GObject.Object {
32603
+ interface Focusable extends GObject.Object, Focusable.Interface {
32567
32604
  // Methods
32568
32605
 
32569
32606
  /**
@@ -32579,20 +32616,6 @@ export namespace Mx {
32579
32616
  * @returns the newly focused focusable
32580
32617
  */
32581
32618
  move_focus(direction: FocusDirection | null, from: Focusable): Focusable;
32582
-
32583
- // Virtual methods
32584
-
32585
- /**
32586
- * Accept the focus
32587
- * @param hint A #MxFocusHint
32588
- */
32589
- vfunc_accept_focus(hint: FocusHint): Focusable;
32590
- /**
32591
- * Move the focus
32592
- * @param direction A #MxFocusDirection
32593
- * @param from focusable to move the focus from
32594
- */
32595
- vfunc_move_focus(direction: FocusDirection, from: Focusable): Focusable;
32596
32619
  }
32597
32620
 
32598
32621
  export const Focusable: FocusableNamespace & {
@@ -32600,6 +32623,19 @@ export namespace Mx {
32600
32623
  };
32601
32624
 
32602
32625
  namespace ItemFactory {
32626
+ /**
32627
+ * Interface for implementing ItemFactory.
32628
+ * Contains only the virtual methods that need to be implemented.
32629
+ */
32630
+ interface Interface {
32631
+ // Virtual methods
32632
+
32633
+ /**
32634
+ * Create an item
32635
+ */
32636
+ vfunc_create(): Clutter.Actor;
32637
+ }
32638
+
32603
32639
  // Constructor properties interface
32604
32640
 
32605
32641
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -32609,7 +32645,7 @@ export namespace Mx {
32609
32645
  $gtype: GObject.GType<ItemFactory>;
32610
32646
  prototype: ItemFactory;
32611
32647
  }
32612
- interface ItemFactory extends GObject.Object {
32648
+ interface ItemFactory extends GObject.Object, ItemFactory.Interface {
32613
32649
  // Methods
32614
32650
 
32615
32651
  /**
@@ -32617,13 +32653,6 @@ export namespace Mx {
32617
32653
  * @returns the new item
32618
32654
  */
32619
32655
  create(): Clutter.Actor;
32620
-
32621
- // Virtual methods
32622
-
32623
- /**
32624
- * Create an item
32625
- */
32626
- vfunc_create(): Clutter.Actor;
32627
32656
  }
32628
32657
 
32629
32658
  export const ItemFactory: ItemFactoryNamespace & {
@@ -32631,6 +32660,21 @@ export namespace Mx {
32631
32660
  };
32632
32661
 
32633
32662
  namespace Scrollable {
32663
+ /**
32664
+ * Interface for implementing Scrollable.
32665
+ * Contains only the virtual methods that need to be implemented.
32666
+ */
32667
+ interface Interface {
32668
+ // Virtual methods
32669
+
32670
+ /**
32671
+ * Gets the adjustment objects that store the offsets of the scrollable widget
32672
+ * into its possible scrolling area.
32673
+ */
32674
+ vfunc_get_adjustments(): [Adjustment | null, Adjustment | null];
32675
+ vfunc_set_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void;
32676
+ }
32677
+
32634
32678
  // Constructor properties interface
32635
32679
 
32636
32680
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -32645,7 +32689,7 @@ export namespace Mx {
32645
32689
  $gtype: GObject.GType<Scrollable>;
32646
32690
  prototype: Scrollable;
32647
32691
  }
32648
- interface Scrollable extends GObject.Object {
32692
+ interface Scrollable extends GObject.Object, Scrollable.Interface {
32649
32693
  // Properties
32650
32694
 
32651
32695
  get horizontal_adjustment(): Adjustment;
@@ -32665,15 +32709,6 @@ export namespace Mx {
32665
32709
  */
32666
32710
  get_adjustments(): [Adjustment | null, Adjustment | null];
32667
32711
  set_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void;
32668
-
32669
- // Virtual methods
32670
-
32671
- /**
32672
- * Gets the adjustment objects that store the offsets of the scrollable widget
32673
- * into its possible scrolling area.
32674
- */
32675
- vfunc_get_adjustments(): [Adjustment | null, Adjustment | null];
32676
- vfunc_set_adjustments(hadjustment: Adjustment, vadjustment: Adjustment): void;
32677
32712
  }
32678
32713
 
32679
32714
  export const Scrollable: ScrollableNamespace & {
@@ -32681,6 +32716,60 @@ export namespace Mx {
32681
32716
  };
32682
32717
 
32683
32718
  namespace Stylable {
32719
+ /**
32720
+ * Interface for implementing Stylable.
32721
+ * Contains only the virtual methods that need to be implemented.
32722
+ */
32723
+ interface Interface {
32724
+ // Virtual methods
32725
+
32726
+ /**
32727
+ * Retrieves the #MxStyle used by `stylable`. This function does not
32728
+ * alter the reference count of the returned object.
32729
+ */
32730
+ vfunc_get_style(): Style;
32731
+ /**
32732
+ * Get the current style class name
32733
+ */
32734
+ vfunc_get_style_class(): string;
32735
+ /**
32736
+ * Get the current style pseudo class. This can contain multiple pseudo class
32737
+ * names, separated by ':'.
32738
+ */
32739
+ vfunc_get_style_pseudo_class(): string;
32740
+ /**
32741
+ * Sets `style` as the new #MxStyle to be used by `stylable`.
32742
+ *
32743
+ * The #MxStylable will take ownership of the passed #MxStyle.
32744
+ *
32745
+ * After the #MxStyle has been set, the MxStylable::style-set signal
32746
+ * will be emitted.
32747
+ * @param style a #MxStyle
32748
+ */
32749
+ vfunc_set_style(style: Style): void;
32750
+ /**
32751
+ * Set the style class name
32752
+ * @param style_class a new style class string
32753
+ */
32754
+ vfunc_set_style_class(style_class: string): void;
32755
+ /**
32756
+ * Set the style pseudo class. The string can contain multiple pseudo class
32757
+ * names, separated by ':'.
32758
+ * @param pseudo_class a new pseudo class string
32759
+ */
32760
+ vfunc_set_style_pseudo_class(pseudo_class: string): void;
32761
+ /**
32762
+ * Emit the "style-changed" signal on `stylable` to notify it that one or more
32763
+ * of the style properties has changed.
32764
+ *
32765
+ * If `stylable` is a #ClutterContainer then the "style-changed" notification is
32766
+ * propagated to it's children, since their style may depend on one or more
32767
+ * properties of the parent.
32768
+ * @param flags flags that control the style changing
32769
+ */
32770
+ vfunc_style_changed(flags: StyleChangedFlags): void;
32771
+ }
32772
+
32684
32773
  // Constructor properties interface
32685
32774
 
32686
32775
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -32696,7 +32785,7 @@ export namespace Mx {
32696
32785
  $gtype: GObject.GType<Stylable>;
32697
32786
  prototype: Stylable;
32698
32787
  }
32699
- interface Stylable extends GObject.Object {
32788
+ interface Stylable extends GObject.Object, Stylable.Interface {
32700
32789
  // Properties
32701
32790
 
32702
32791
  get style(): Style;
@@ -32807,54 +32896,6 @@ export namespace Mx {
32807
32896
  * @param remove_class A pseudo class name to remove
32808
32897
  */
32809
32898
  style_pseudo_class_remove(remove_class: string): void;
32810
-
32811
- // Virtual methods
32812
-
32813
- /**
32814
- * Retrieves the #MxStyle used by `stylable`. This function does not
32815
- * alter the reference count of the returned object.
32816
- */
32817
- vfunc_get_style(): Style;
32818
- /**
32819
- * Get the current style class name
32820
- */
32821
- vfunc_get_style_class(): string;
32822
- /**
32823
- * Get the current style pseudo class. This can contain multiple pseudo class
32824
- * names, separated by ':'.
32825
- */
32826
- vfunc_get_style_pseudo_class(): string;
32827
- /**
32828
- * Sets `style` as the new #MxStyle to be used by `stylable`.
32829
- *
32830
- * The #MxStylable will take ownership of the passed #MxStyle.
32831
- *
32832
- * After the #MxStyle has been set, the MxStylable::style-set signal
32833
- * will be emitted.
32834
- * @param style a #MxStyle
32835
- */
32836
- vfunc_set_style(style: Style): void;
32837
- /**
32838
- * Set the style class name
32839
- * @param style_class a new style class string
32840
- */
32841
- vfunc_set_style_class(style_class: string): void;
32842
- /**
32843
- * Set the style pseudo class. The string can contain multiple pseudo class
32844
- * names, separated by ':'.
32845
- * @param pseudo_class a new pseudo class string
32846
- */
32847
- vfunc_set_style_pseudo_class(pseudo_class: string): void;
32848
- /**
32849
- * Emit the "style-changed" signal on `stylable` to notify it that one or more
32850
- * of the style properties has changed.
32851
- *
32852
- * If `stylable` is a #ClutterContainer then the "style-changed" notification is
32853
- * propagated to it's children, since their style may depend on one or more
32854
- * properties of the parent.
32855
- * @param flags flags that control the style changing
32856
- */
32857
- vfunc_style_changed(flags: StyleChangedFlags): void;
32858
32899
  }
32859
32900
 
32860
32901
  export const Stylable: StylableNamespace & {
package/package.json CHANGED
@@ -1,75 +1,69 @@
1
1
  {
2
- "name": "@girs/mx-2.0",
3
- "version": "1.99.4-4.0.0-beta.34",
4
- "description": "GJS TypeScript type definitions for Mx-2.0, generated from library version 1.99.4",
5
- "type": "module",
6
- "module": "mx-2.0.js",
7
- "main": "mx-2.0.js",
8
- "exports": {
9
- "./ambient": {
10
- "types": "./mx-2.0-ambient.d.ts",
11
- "import": "./mx-2.0-ambient.js",
12
- "default": "./mx-2.0-ambient.js"
2
+ "name": "@girs/mx-2.0",
3
+ "version": "1.99.4-4.0.0-beta.35",
4
+ "description": "GJS TypeScript type definitions for Mx-2.0, generated from library version 1.99.4",
5
+ "type": "module",
6
+ "module": "mx-2.0.js",
7
+ "main": "mx-2.0.js",
8
+ "exports": {
9
+ "./ambient": {
10
+ "types": "./mx-2.0-ambient.d.ts",
11
+ "import": "./mx-2.0-ambient.js",
12
+ "default": "./mx-2.0-ambient.js"
13
+ },
14
+ "./import": {
15
+ "types": "./mx-2.0-import.d.ts",
16
+ "import": "./mx-2.0-import.js",
17
+ "default": "./mx-2.0-import.js"
18
+ },
19
+ "./mx-2.0": {
20
+ "types": "./mx-2.0.d.ts",
21
+ "import": "./mx-2.0.js",
22
+ "default": "./mx-2.0.js"
23
+ },
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
28
+ }
13
29
  },
14
- "./import": {
15
- "types": "./mx-2.0-import.d.ts",
16
- "import": "./mx-2.0-import.js",
17
- "default": "./mx-2.0-import.js"
30
+ "scripts": {
31
+ "test": "tsc --project tsconfig.json"
18
32
  },
19
- "./mx-2.0": {
20
- "types": "./mx-2.0.d.ts",
21
- "import": "./mx-2.0.js",
22
- "default": "./mx-2.0.js"
33
+ "dependencies": {
34
+ "@girs/gjs": "4.0.0-beta.35",
35
+ "@girs/freetype2-2.0": "2.0.0-4.0.0-beta.35",
36
+ "@girs/fontconfig-2.0": "2.0.0-4.0.0-beta.35",
37
+ "@girs/cairo-1.0": "1.0.0-4.0.0-beta.35",
38
+ "@girs/gobject-2.0": "2.0.0-4.0.0-beta.35",
39
+ "@girs/glib-2.0": "2.84.4-4.0.0-beta.35",
40
+ "@girs/pangoft2-1.0": "1.0.0-4.0.0-beta.35",
41
+ "@girs/pangofc-1.0": "1.0.0-4.0.0-beta.35",
42
+ "@girs/pango-1.0": "1.56.4-4.0.0-beta.35",
43
+ "@girs/harfbuzz-0.0": "10.4.0-4.0.0-beta.35",
44
+ "@girs/gio-2.0": "2.0.0-4.0.0-beta.35",
45
+ "@girs/gmodule-2.0": "2.0.0-4.0.0-beta.35",
46
+ "@girs/pangocairo-1.0": "1.0.0-4.0.0-beta.35",
47
+ "@girs/json-1.0": "1.10.7-4.0.0-beta.35",
48
+ "@girs/gl-1.0": "1.0.0-4.0.0-beta.35",
49
+ "@girs/coglpango-1.0": "1.0.0-4.0.0-beta.35",
50
+ "@girs/cogl-1.0": "1.0.0-4.0.0-beta.35",
51
+ "@girs/clutter-1.0": "1.26.5-4.0.0-beta.35",
52
+ "@girs/atk-1.0": "2.56.3-4.0.0-beta.35" },
53
+ "devDependencies": {
54
+ "typescript": "*"
23
55
  },
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/clutter-1.0": "^1.26.5-4.0.0-beta.34",
37
- "@girs/cogl-1.0": "^1.0.0-4.0.0-beta.34",
38
- "@girs/coglpango-1.0": "^1.0.0-4.0.0-beta.34",
39
- "@girs/fontconfig-2.0": "^2.0.0-4.0.0-beta.34",
40
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.34",
41
- "@girs/gio-2.0": "^2.84.4-4.0.0-beta.34",
42
- "@girs/gjs": "^4.0.0-beta.34",
43
- "@girs/gl-1.0": "^1.0.0-4.0.0-beta.34",
44
- "@girs/glib-2.0": "^2.84.4-4.0.0-beta.34",
45
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.34",
46
- "@girs/gobject-2.0": "^2.84.4-4.0.0-beta.34",
47
- "@girs/harfbuzz-0.0": "^10.4.0-4.0.0-beta.34",
48
- "@girs/json-1.0": "^1.10.7-4.0.0-beta.34",
49
- "@girs/pango-1.0": "^1.56.4-4.0.0-beta.34",
50
- "@girs/pangocairo-1.0": "^1.0.0-4.0.0-beta.34",
51
- "@girs/pangofc-1.0": "^1.0.0-4.0.0-beta.34",
52
- "@girs/pangoft2-1.0": "^1.0.0-4.0.0-beta.34"
53
- },
54
- "devDependencies": {
55
- "typescript": "*"
56
- },
57
- "keywords": [
58
- "Gir",
59
- "TypeScript",
60
- "types",
61
- "GObject-Introspection",
62
- "GJS",
63
- "Mx-2.0"
64
- ],
65
- "author": "ts-for-gir",
66
- "license": "MIT",
67
- "repository": {
68
- "type": "git",
69
- "url": "git+https://github.com/gjsify/ts-for-gir.git"
70
- },
71
- "bugs": {
72
- "url": "https://github.com/gjsify/ts-for-gir/issues"
73
- },
74
- "homepage": "https://github.com/gjsify/types/tree/main/mx-2.0#readme"
75
- }
56
+ "keywords": ["Gir", "TypeScript", "types", "GObject-Introspection", "GJS", "Mx-2.0"],
57
+ "author": "ts-for-gir",
58
+ "license": "MIT",
59
+ "repository": {
60
+ "type": "git",
61
+ "url": "https://github.com/gjsify/types.git"
62
+ },
63
+ "bugs": {
64
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
65
+ },
66
+ "homepage": "https://github.com/gjsify/types/tree/main/mx-2.0#readme"
67
+ }
68
+
69
+