@girs/clutter-14 14.0.0-4.0.0-beta.17 → 14.0.0-4.0.0-beta.19

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/clutter-14)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Clutter-14, generated from library version 14.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.17.
8
+ GJS TypeScript type definitions for Clutter-14, generated from library version 14.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.19.
9
9
 
10
10
 
11
11
  ## Install
package/clutter-14.d.ts CHANGED
@@ -3891,7 +3891,11 @@ export namespace Clutter {
3891
3891
  * @returns the event timestamp, or %CLUTTER_CURRENT_TIME
3892
3892
  */
3893
3893
  function get_current_event_time(): number;
3894
- function get_debug_flags(debug_flags: DebugFlag, draw_flags: DrawDebugFlag, pick_flags: PickDebugFlag): void;
3894
+ function get_debug_flags(
3895
+ debug_flags: DebugFlag | null,
3896
+ draw_flags: DrawDebugFlag | null,
3897
+ pick_flags: PickDebugFlag | null,
3898
+ ): void;
3895
3899
  /**
3896
3900
  * Retrieves the default #ClutterBackend used by Clutter. The
3897
3901
  * #ClutterBackend holds backend-specific configuration options.
@@ -4061,7 +4065,7 @@ export namespace Clutter {
4061
4065
  * @param func the function to be called within the paint cycle
4062
4066
  * @returns the ID (greater than 0) of the repaint function. You can use the returned integer to remove the repaint function by calling clutter_threads_remove_repaint_func().
4063
4067
  */
4064
- function threads_add_repaint_func_full(flags: RepaintFlags, func: GLib.SourceFunc): number;
4068
+ function threads_add_repaint_func_full(flags: RepaintFlags | null, func: GLib.SourceFunc): number;
4065
4069
  /**
4066
4070
  * Sets a function to be called at regular intervals holding the Clutter
4067
4071
  * threads lock, with the given priority. The function is called repeatedly
@@ -6979,7 +6983,7 @@ export namespace Clutter {
6979
6983
  * @param action a #ClutterAction
6980
6984
  */
6981
6985
  add_action(action: Action): void;
6982
- add_action_full(name: string, phase: EventPhase, action: Action): void;
6986
+ add_action_full(name: string, phase: EventPhase | null, action: Action): void;
6983
6987
  /**
6984
6988
  * A convenience function for setting the name of a #ClutterAction
6985
6989
  * while adding it to the list of actions applied to `self`
@@ -7851,7 +7855,7 @@ export namespace Clutter {
7851
7855
  * @param axis the axis of the rotation
7852
7856
  * @returns the angle of rotation, in degrees
7853
7857
  */
7854
- get_rotation_angle(axis: RotateAxis): number;
7858
+ get_rotation_angle(axis: RotateAxis | null): number;
7855
7859
  /**
7856
7860
  * Retrieves an actors scale factors.
7857
7861
  */
@@ -8278,7 +8282,7 @@ export namespace Clutter {
8278
8282
  * @param orientation the direction of expansion
8279
8283
  * @returns %TRUE if the actor should expand
8280
8284
  */
8281
- needs_expand(orientation: Orientation): boolean;
8285
+ needs_expand(orientation: Orientation | null): boolean;
8282
8286
  /**
8283
8287
  * Invalidate the cached transformation matrix of `self` and queue a redraw
8284
8288
  * if the transformation matrix has changed.
@@ -8602,14 +8606,14 @@ export namespace Clutter {
8602
8606
  * The [property`Clutter`.Actor:content-gravity] property is animatable.
8603
8607
  * @param gravity the #ClutterContentGravity
8604
8608
  */
8605
- set_content_gravity(gravity: ContentGravity): void;
8609
+ set_content_gravity(gravity: ContentGravity | null): void;
8606
8610
  /**
8607
8611
  * Sets the policy for repeating the [property`Clutter`.Actor:content] of a
8608
8612
  * #ClutterActor. The behaviour is deferred to the #ClutterContent
8609
8613
  * implementation.
8610
8614
  * @param repeat the repeat policy
8611
8615
  */
8612
- set_content_repeat(repeat: ContentRepeat): void;
8616
+ set_content_repeat(repeat: ContentRepeat | null): void;
8613
8617
  /**
8614
8618
  * Sets the minification and magnification filter to be applied when
8615
8619
  * scaling the [property`Clutter`.Actor:content] of a #ClutterActor.
@@ -8620,7 +8624,7 @@ export namespace Clutter {
8620
8624
  * @param min_filter the minification filter for the content
8621
8625
  * @param mag_filter the magnification filter for the content
8622
8626
  */
8623
- set_content_scaling_filters(min_filter: ScalingFilter, mag_filter: ScalingFilter): void;
8627
+ set_content_scaling_filters(min_filter: ScalingFilter | null, mag_filter: ScalingFilter | null): void;
8624
8628
  /**
8625
8629
  * Sets the delay that should be applied before tweening animatable
8626
8630
  * properties.
@@ -8638,7 +8642,7 @@ export namespace Clutter {
8638
8642
  * of `self`.
8639
8643
  * @param mode an easing mode, excluding %CLUTTER_CUSTOM_MODE
8640
8644
  */
8641
- set_easing_mode(mode: AnimationMode): void;
8645
+ set_easing_mode(mode: AnimationMode | null): void;
8642
8646
  /**
8643
8647
  * Sets whether an actor has a fixed position set (and will thus be
8644
8648
  * unaffected by any layout manager).
@@ -8651,7 +8655,7 @@ export namespace Clutter {
8651
8655
  * This function will emit notifications for the changed properties
8652
8656
  * @param flags the flags to set
8653
8657
  */
8654
- set_flags(flags: ActorFlags): void;
8658
+ set_flags(flags: ActorFlags | null): void;
8655
8659
  /**
8656
8660
  * Forces a height on an actor, causing the actor's preferred width
8657
8661
  * and height (if any) to be ignored.
@@ -8772,7 +8776,7 @@ export namespace Clutter {
8772
8776
  * for maximum efficiency.
8773
8777
  * @param redirect New offscreen redirect flags for the actor.
8774
8778
  */
8775
- set_offscreen_redirect(redirect: OffscreenRedirect): void;
8779
+ set_offscreen_redirect(redirect: OffscreenRedirect | null): void;
8776
8780
  /**
8777
8781
  * Sets the actor's opacity, with zero being completely transparent and
8778
8782
  * 255 (0xff) being fully opaque.
@@ -8833,7 +8837,7 @@ export namespace Clutter {
8833
8837
  * [method`Clutter`.Actor.get_preferred_height]
8834
8838
  * @param mode the request mode
8835
8839
  */
8836
- set_request_mode(mode: RequestMode): void;
8840
+ set_request_mode(mode: RequestMode | null): void;
8837
8841
  /**
8838
8842
  * Sets the `angle` of rotation of a #ClutterActor on the given `axis`.
8839
8843
  *
@@ -8846,7 +8850,7 @@ export namespace Clutter {
8846
8850
  * @param axis the axis to set the angle one
8847
8851
  * @param angle the angle of rotation, in degrees
8848
8852
  */
8849
- set_rotation_angle(axis: RotateAxis, angle: number): void;
8853
+ set_rotation_angle(axis: RotateAxis | null, angle: number): void;
8850
8854
  /**
8851
8855
  * Scales an actor with the given factors.
8852
8856
  *
@@ -8890,7 +8894,7 @@ export namespace Clutter {
8890
8894
  * This function will recurse inside all the children of `self`
8891
8895
  * @param text_dir the text direction for @self
8892
8896
  */
8893
- set_text_direction(text_dir: TextDirection): void;
8897
+ set_text_direction(text_dir: TextDirection | null): void;
8894
8898
  /**
8895
8899
  * Overrides the transformations of a #ClutterActor with a custom
8896
8900
  * matrix, which will be applied relative to the origin of the
@@ -8936,7 +8940,7 @@ export namespace Clutter {
8936
8940
  * See also the [property`Clutter`.Actor:x-align] property.
8937
8941
  * @param x_align the horizontal alignment policy
8938
8942
  */
8939
- set_x_align(x_align: ActorAlign): void;
8943
+ set_x_align(x_align: ActorAlign | null): void;
8940
8944
  /**
8941
8945
  * Sets whether a #ClutterActor should expand horizontally; this means
8942
8946
  * that layout manager should allocate extra space for the actor, if
@@ -8965,7 +8969,7 @@ export namespace Clutter {
8965
8969
  * See also the [property`Clutter`.Actor:y-align] property.
8966
8970
  * @param y_align the vertical alignment policy
8967
8971
  */
8968
- set_y_align(y_align: ActorAlign): void;
8972
+ set_y_align(y_align: ActorAlign | null): void;
8969
8973
  /**
8970
8974
  * Sets whether a #ClutterActor should expand horizontally; this means
8971
8975
  * that layout manager should allocate extra space for the actor, if
@@ -9086,7 +9090,7 @@ export namespace Clutter {
9086
9090
  * This function will emit notifications for the changed properties
9087
9091
  * @param flags the flags to unset
9088
9092
  */
9089
- unset_flags(flags: ActorFlags): void;
9093
+ unset_flags(flags: ActorFlags | null): void;
9090
9094
 
9091
9095
  // Inherited methods
9092
9096
  /**
@@ -9204,7 +9208,7 @@ export namespace Clutter {
9204
9208
  source_property: string,
9205
9209
  target: GObject.Object,
9206
9210
  target_property: string,
9207
- flags: GObject.BindingFlags,
9211
+ flags: GObject.BindingFlags | null,
9208
9212
  ): GObject.Binding;
9209
9213
  /**
9210
9214
  * Complete version of g_object_bind_property().
@@ -9245,7 +9249,7 @@ export namespace Clutter {
9245
9249
  source_property: string,
9246
9250
  target: GObject.Object,
9247
9251
  target_property: string,
9248
- flags: GObject.BindingFlags,
9252
+ flags: GObject.BindingFlags | null,
9249
9253
  transform_to?: GObject.BindingTransformFunc | null,
9250
9254
  transform_from?: GObject.BindingTransformFunc | null,
9251
9255
  notify?: GLib.DestroyNotify | null,
@@ -9787,7 +9791,7 @@ export namespace Clutter {
9787
9791
  * Sets the axis to which the alignment refers to
9788
9792
  * @param axis the axis to which the alignment refers to
9789
9793
  */
9790
- set_align_axis(axis: AlignAxis): void;
9794
+ set_align_axis(axis: AlignAxis | null): void;
9791
9795
  /**
9792
9796
  * Sets the alignment factor of the constraint
9793
9797
  *
@@ -10091,7 +10095,7 @@ export namespace Clutter {
10091
10095
  * Sets the coordinate to bind in the constraint
10092
10096
  * @param coordinate the coordinate to bind
10093
10097
  */
10094
- set_coordinate(coordinate: BindCoordinate): void;
10098
+ set_coordinate(coordinate: BindCoordinate | null): void;
10095
10099
  /**
10096
10100
  * Sets the offset to be applied to the constraint
10097
10101
  * @param offset the offset to apply, in pixels
@@ -10253,7 +10257,7 @@ export namespace Clutter {
10253
10257
  * @param gobject a #GObject
10254
10258
  * @returns %TRUE if an action was found and was activated
10255
10259
  */
10256
- activate(key_val: number, modifiers: ModifierType, gobject: GObject.Object): boolean;
10260
+ activate(key_val: number, modifiers: ModifierType | null, gobject: GObject.Object): boolean;
10257
10261
  /**
10258
10262
  * Blocks all the actions with name `action_name` inside `pool`.
10259
10263
  * @param action_name an action name
@@ -10266,7 +10270,7 @@ export namespace Clutter {
10266
10270
  * @param modifiers a bitmask for the modifiers
10267
10271
  * @returns the name of the action, if found, or %NULL. The returned string is owned by the binding pool and should never be modified or freed
10268
10272
  */
10269
- find_action(key_val: number, modifiers: ModifierType): string;
10273
+ find_action(key_val: number, modifiers: ModifierType | null): string;
10270
10274
  /**
10271
10275
  * Installs a new action inside a #ClutterBindingPool. The action
10272
10276
  * is bound to `key_val` and `modifiers`.
@@ -10284,7 +10288,12 @@ export namespace Clutter {
10284
10288
  * @param modifiers bitmask of modifiers
10285
10289
  * @param callback function to be called when the action is activated
10286
10290
  */
10287
- install_action(action_name: string, key_val: number, modifiers: ModifierType, callback: GObject.Callback): void;
10291
+ install_action(
10292
+ action_name: string,
10293
+ key_val: number,
10294
+ modifiers: ModifierType | null,
10295
+ callback: GObject.Callback,
10296
+ ): void;
10288
10297
  /**
10289
10298
  * A #GClosure variant of [method`Clutter`.BindingPool.install_action].
10290
10299
  *
@@ -10304,7 +10313,12 @@ export namespace Clutter {
10304
10313
  * @param modifiers bitmask of modifiers
10305
10314
  * @param closure a #GClosure
10306
10315
  */
10307
- install_closure(action_name: string, key_val: number, modifiers: ModifierType, closure: GObject.Closure): void;
10316
+ install_closure(
10317
+ action_name: string,
10318
+ key_val: number,
10319
+ modifiers: ModifierType | null,
10320
+ closure: GObject.Closure,
10321
+ ): void;
10308
10322
  /**
10309
10323
  * Allows overriding the action for `key_val` and `modifiers` inside a
10310
10324
  * #ClutterBindingPool. See [method`Clutter`.BindingPool.install_action].
@@ -10318,7 +10332,7 @@ export namespace Clutter {
10318
10332
  * @param modifiers bitmask of modifiers
10319
10333
  * @param callback function to be called when the action is activated
10320
10334
  */
10321
- override_action(key_val: number, modifiers: ModifierType, callback: GObject.Callback): void;
10335
+ override_action(key_val: number, modifiers: ModifierType | null, callback: GObject.Callback): void;
10322
10336
  /**
10323
10337
  * A #GClosure variant of [method`Clutter`.BindingPool.override_action].
10324
10338
  *
@@ -10334,14 +10348,14 @@ export namespace Clutter {
10334
10348
  * @param modifiers bitmask of modifiers
10335
10349
  * @param closure a #GClosure
10336
10350
  */
10337
- override_closure(key_val: number, modifiers: ModifierType, closure: GObject.Closure): void;
10351
+ override_closure(key_val: number, modifiers: ModifierType | null, closure: GObject.Closure): void;
10338
10352
  /**
10339
10353
  * Removes the action matching the given `key_val,` `modifiers` pair,
10340
10354
  * if any exists.
10341
10355
  * @param key_val a key symbol
10342
10356
  * @param modifiers a bitmask for the modifiers
10343
10357
  */
10344
- remove_action(key_val: number, modifiers: ModifierType): void;
10358
+ remove_action(key_val: number, modifiers: ModifierType | null): void;
10345
10359
  /**
10346
10360
  * Unblockes all the actions with name `action_name` inside `pool`.
10347
10361
  *
@@ -10504,7 +10518,7 @@ export namespace Clutter {
10504
10518
  * Sets the orientation of the #ClutterBoxLayout layout manager.
10505
10519
  * @param orientation the orientation of the #ClutterBoxLayout
10506
10520
  */
10507
- set_orientation(orientation: Orientation): void;
10521
+ set_orientation(orientation: Orientation | null): void;
10508
10522
  /**
10509
10523
  * Sets the spacing between children of `layout`
10510
10524
  * @param spacing the spacing between children of the layout, in pixels
@@ -10994,7 +11008,7 @@ export namespace Clutter {
10994
11008
  source_property: string,
10995
11009
  target: GObject.Object,
10996
11010
  target_property: string,
10997
- flags: GObject.BindingFlags,
11011
+ flags: GObject.BindingFlags | null,
10998
11012
  ): GObject.Binding;
10999
11013
  /**
11000
11014
  * Complete version of g_object_bind_property().
@@ -11035,7 +11049,7 @@ export namespace Clutter {
11035
11049
  source_property: string,
11036
11050
  target: GObject.Object,
11037
11051
  target_property: string,
11038
- flags: GObject.BindingFlags,
11052
+ flags: GObject.BindingFlags | null,
11039
11053
  transform_to?: GObject.BindingTransformFunc | null,
11040
11054
  transform_from?: GObject.BindingTransformFunc | null,
11041
11055
  notify?: GLib.DestroyNotify | null,
@@ -11584,7 +11598,7 @@ export namespace Clutter {
11584
11598
  */
11585
11599
  update_preferred_size(
11586
11600
  actor: Actor,
11587
- direction: Orientation,
11601
+ direction: Orientation | null,
11588
11602
  for_size: number,
11589
11603
  minimum_size: number,
11590
11604
  natural_size: number,
@@ -12266,7 +12280,7 @@ export namespace Clutter {
12266
12280
  * orientation also controls the direction of the overflowing
12267
12281
  * @param orientation the orientation of the layout
12268
12282
  */
12269
- set_orientation(orientation: Orientation): void;
12283
+ set_orientation(orientation: Orientation | null): void;
12270
12284
  /**
12271
12285
  * Sets the minimum and maximum heights that a row can have
12272
12286
  * @param min_height the minimum height of a row
@@ -12327,7 +12341,7 @@ export namespace Clutter {
12327
12341
  remove_timeline(timeline: Timeline): void;
12328
12342
  schedule_update(): void;
12329
12343
  schedule_update_now(): void;
12330
- set_mode(mode: FrameClockMode): void;
12344
+ set_mode(mode: FrameClockMode | null): void;
12331
12345
  uninhibit(): void;
12332
12346
  }
12333
12347
 
@@ -12824,7 +12838,7 @@ export namespace Clutter {
12824
12838
  * #ClutterGestureAction during their construction phase.
12825
12839
  * @param edge the %ClutterGestureTriggerEdge
12826
12840
  */
12827
- set_threshold_trigger_edge(edge: GestureTriggerEdge): void;
12841
+ set_threshold_trigger_edge(edge: GestureTriggerEdge | null): void;
12828
12842
  }
12829
12843
 
12830
12844
  module Grab {
@@ -12988,7 +13002,13 @@ export namespace Clutter {
12988
13002
  * @param width the number of columns that @child will span
12989
13003
  * @param height the number of rows that @child will span
12990
13004
  */
12991
- attach_next_to(child: Actor, sibling: Actor | null, side: GridPosition, width: number, height: number): void;
13005
+ attach_next_to(
13006
+ child: Actor,
13007
+ sibling: Actor | null,
13008
+ side: GridPosition | null,
13009
+ width: number,
13010
+ height: number,
13011
+ ): void;
12992
13012
  /**
12993
13013
  * Gets the child of `layout` whose area covers the grid
12994
13014
  * cell whose upper left corner is at `left,` `top`.
@@ -13042,7 +13062,7 @@ export namespace Clutter {
13042
13062
  * @param sibling the child of @layout that the new row or column will be placed next to
13043
13063
  * @param side the side of @sibling that @child is positioned next to
13044
13064
  */
13045
- insert_next_to(sibling: Actor, side: GridPosition): void;
13065
+ insert_next_to(sibling: Actor, side: GridPosition | null): void;
13046
13066
  /**
13047
13067
  * Inserts a row at the specified position.
13048
13068
  *
@@ -13071,7 +13091,7 @@ export namespace Clutter {
13071
13091
  * any effect on children that are already part of the layout.
13072
13092
  * @param orientation the orientation of the #ClutterGridLayout
13073
13093
  */
13074
- set_orientation(orientation: Orientation): void;
13094
+ set_orientation(orientation: Orientation | null): void;
13075
13095
  /**
13076
13096
  * Sets whether all rows of `layout` will have the same height.
13077
13097
  * @param homogeneous %TRUE to make rows homogeneous
@@ -13146,7 +13166,7 @@ export namespace Clutter {
13146
13166
  */
13147
13167
  set_area(
13148
13168
  data: Uint8Array | string,
13149
- pixel_format: Cogl.PixelFormat,
13169
+ pixel_format: Cogl.PixelFormat | null,
13150
13170
  rect: Mtk.Rectangle,
13151
13171
  row_stride: number,
13152
13172
  ): boolean;
@@ -13169,7 +13189,7 @@ export namespace Clutter {
13169
13189
  */
13170
13190
  set_bytes(
13171
13191
  data: GLib.Bytes | Uint8Array,
13172
- pixel_format: Cogl.PixelFormat,
13192
+ pixel_format: Cogl.PixelFormat | null,
13173
13193
  width: number,
13174
13194
  height: number,
13175
13195
  row_stride: number,
@@ -13214,7 +13234,7 @@ export namespace Clutter {
13214
13234
  */
13215
13235
  set_data(
13216
13236
  data: Uint8Array | string,
13217
- pixel_format: Cogl.PixelFormat,
13237
+ pixel_format: Cogl.PixelFormat | null,
13218
13238
  width: number,
13219
13239
  height: number,
13220
13240
  row_stride: number,
@@ -13336,7 +13356,7 @@ export namespace Clutter {
13336
13356
  source_property: string,
13337
13357
  target: GObject.Object,
13338
13358
  target_property: string,
13339
- flags: GObject.BindingFlags,
13359
+ flags: GObject.BindingFlags | null,
13340
13360
  ): GObject.Binding;
13341
13361
  /**
13342
13362
  * Complete version of g_object_bind_property().
@@ -13377,7 +13397,7 @@ export namespace Clutter {
13377
13397
  source_property: string,
13378
13398
  target: GObject.Object,
13379
13399
  target_property: string,
13380
- flags: GObject.BindingFlags,
13400
+ flags: GObject.BindingFlags | null,
13381
13401
  transform_to?: GObject.BindingTransformFunc | null,
13382
13402
  transform_from?: GObject.BindingTransformFunc | null,
13383
13403
  notify?: GLib.DestroyNotify | null,
@@ -13829,7 +13849,7 @@ export namespace Clutter {
13829
13849
  get_n_mode_groups(): number;
13830
13850
  get_n_rings(): number;
13831
13851
  get_n_strips(): number;
13832
- get_pad_feature_group(feature: InputDevicePadFeature, n_feature: number): number;
13852
+ get_pad_feature_group(feature: InputDevicePadFeature | null, n_feature: number): number;
13833
13853
  /**
13834
13854
  * Gets the product ID of this device.
13835
13855
  * @returns the product ID2
@@ -13929,10 +13949,10 @@ export namespace Clutter {
13929
13949
  process_event(event: Event): boolean;
13930
13950
  reset(): void;
13931
13951
  set_can_show_preedit(can_show_preedit: boolean): void;
13932
- set_content_hints(hint: InputContentHintFlags): void;
13933
- set_content_purpose(purpose: InputContentPurpose): void;
13952
+ set_content_hints(hint: InputContentHintFlags | null): void;
13953
+ set_content_purpose(purpose: InputContentPurpose | null): void;
13934
13954
  set_cursor_location(rect: Graphene.Rect): void;
13935
- set_input_panel_state(state: InputPanelState): void;
13955
+ set_input_panel_state(state: InputPanelState | null): void;
13936
13956
  set_surrounding(text: string, cursor: number, anchor: number): void;
13937
13957
  }
13938
13958
 
@@ -14042,7 +14062,7 @@ export namespace Clutter {
14042
14062
  forward_key(keyval: number, keycode: number, state: number, time_: number, press: boolean): void;
14043
14063
  notify_key_event(event: Event, filtered: boolean): void;
14044
14064
  request_surrounding(): void;
14045
- set_input_panel_state(state: InputPanelState): void;
14065
+ set_input_panel_state(state: InputPanelState | null): void;
14046
14066
  /**
14047
14067
  * Sets the preedit text on the current input focus.
14048
14068
  * @param preedit the preedit text, or %NULL
@@ -14050,7 +14070,7 @@ export namespace Clutter {
14050
14070
  * @param anchor
14051
14071
  * @param mode
14052
14072
  */
14053
- set_preedit_text(preedit: string | null, cursor: number, anchor: number, mode: PreeditResetMode): void;
14073
+ set_preedit_text(preedit: string | null, cursor: number, anchor: number, mode: PreeditResetMode | null): void;
14054
14074
  }
14055
14075
 
14056
14076
  module Interval {
@@ -14302,7 +14322,7 @@ export namespace Clutter {
14302
14322
  * @param mode the easing mode of the key frame
14303
14323
  * @param value a #GValue containing the value of the key frame
14304
14324
  */
14305
- set_key_frame(index_: number, key: number, mode: AnimationMode, value: GObject.Value | any): void;
14325
+ set_key_frame(index_: number, key: number, mode: AnimationMode | null, value: GObject.Value | any): void;
14306
14326
  /**
14307
14327
  * Sets the keys for each key frame inside `transition`.
14308
14328
  *
@@ -14320,7 +14340,7 @@ export namespace Clutter {
14320
14340
  * at least as many elements as the number of key frames.
14321
14341
  * @param modes an array of easing modes, one for each key frame
14322
14342
  */
14323
- set_modes(modes: AnimationMode[]): void;
14343
+ set_modes(modes: AnimationMode[] | null): void;
14324
14344
  /**
14325
14345
  * Sets the values for each key frame inside `transition`.
14326
14346
  *
@@ -15233,7 +15253,7 @@ export namespace Clutter {
15233
15253
  * Restricts the panning action to a specific axis
15234
15254
  * @param axis the axis to constraint the panning to
15235
15255
  */
15236
- set_pan_axis(axis: PanAxis): void;
15256
+ set_pan_axis(axis: PanAxis | null): void;
15237
15257
  }
15238
15258
 
15239
15259
  class PipelineNode extends PaintNode {
@@ -15432,7 +15452,7 @@ export namespace Clutter {
15432
15452
  * Sets the [property`ScrollActor:`scroll-mode] property.
15433
15453
  * @param mode a #ClutterScrollMode
15434
15454
  */
15435
- set_scroll_mode(mode: ScrollMode): void;
15455
+ set_scroll_mode(mode: ScrollMode | null): void;
15436
15456
 
15437
15457
  // Inherited methods
15438
15458
  /**
@@ -15550,7 +15570,7 @@ export namespace Clutter {
15550
15570
  source_property: string,
15551
15571
  target: GObject.Object,
15552
15572
  target_property: string,
15553
- flags: GObject.BindingFlags,
15573
+ flags: GObject.BindingFlags | null,
15554
15574
  ): GObject.Binding;
15555
15575
  /**
15556
15576
  * Complete version of g_object_bind_property().
@@ -15591,7 +15611,7 @@ export namespace Clutter {
15591
15611
  source_property: string,
15592
15612
  target: GObject.Object,
15593
15613
  target_property: string,
15594
- flags: GObject.BindingFlags,
15614
+ flags: GObject.BindingFlags | null,
15595
15615
  transform_to?: GObject.BindingTransformFunc | null,
15596
15616
  transform_from?: GObject.BindingTransformFunc | null,
15597
15617
  notify?: GLib.DestroyNotify | null,
@@ -16093,7 +16113,7 @@ export namespace Clutter {
16093
16113
  * @param device_type the type of the virtual device
16094
16114
  * @returns a newly created virtual device
16095
16115
  */
16096
- create_virtual_device(device_type: InputDeviceType): VirtualInputDevice;
16116
+ create_virtual_device(device_type: InputDeviceType | null): VirtualInputDevice;
16097
16117
  ensure_a11y_state(): void;
16098
16118
  /**
16099
16119
  * Returns the logical keyboard
@@ -16155,7 +16175,7 @@ export namespace Clutter {
16155
16175
  * Sets the dwell click type
16156
16176
  * @param click_type type of click as #ClutterPointerA11yDwellClickType
16157
16177
  */
16158
- set_pointer_a11y_dwell_click_type(click_type: PointerA11yDwellClickType): void;
16178
+ set_pointer_a11y_dwell_click_type(click_type: PointerA11yDwellClickType | null): void;
16159
16179
  /**
16160
16180
  * Sets the pointer accessibility settings
16161
16181
  * @param settings a pointer to a #ClutterPointerA11ySettings
@@ -16687,7 +16707,7 @@ export namespace Clutter {
16687
16707
  * @param from_edge the edge on the actor
16688
16708
  * @param to_edge the edge on the source
16689
16709
  */
16690
- set_edges(from_edge: SnapEdge, to_edge: SnapEdge): void;
16710
+ set_edges(from_edge: SnapEdge | null, to_edge: SnapEdge | null): void;
16691
16711
  /**
16692
16712
  * Sets the offset to be applied to the constraint
16693
16713
  * @param offset the offset to apply, in pixels
@@ -16912,7 +16932,7 @@ export namespace Clutter {
16912
16932
  * @param y Y coordinate to check
16913
16933
  * @returns the actor at the specified coordinates, if any
16914
16934
  */
16915
- get_actor_at_pos(pick_mode: PickMode, x: number, y: number): Actor;
16935
+ get_actor_at_pos(pick_mode: PickMode | null, x: number, y: number): Actor;
16916
16936
  /**
16917
16937
  * Get the size of the framebuffer one must pass to
16918
16938
  * [method`Stage`.paint_to_buffer] or [method`Stage`.paint_to_framebuffer]
@@ -16995,8 +17015,8 @@ export namespace Clutter {
16995
17015
  scale: number,
16996
17016
  data: Uint8Array | string,
16997
17017
  stride: number,
16998
- format: Cogl.PixelFormat,
16999
- paint_flags: PaintFlag,
17018
+ format: Cogl.PixelFormat | null,
17019
+ paint_flags: PaintFlag | null,
17000
17020
  ): boolean;
17001
17021
  /**
17002
17022
  * Take a snapshot of the stage to a #ClutterContent.
@@ -17005,12 +17025,12 @@ export namespace Clutter {
17005
17025
  * @param paint_flags the #ClutterPaintFlag
17006
17026
  * @returns the #ClutterContent or %NULL on error.
17007
17027
  */
17008
- paint_to_content(rect: Mtk.Rectangle, scale: number, paint_flags: PaintFlag): Content;
17028
+ paint_to_content(rect: Mtk.Rectangle, scale: number, paint_flags: PaintFlag | null): Content;
17009
17029
  paint_to_framebuffer(
17010
17030
  framebuffer: Cogl.Framebuffer,
17011
17031
  rect: Mtk.Rectangle,
17012
17032
  scale: number,
17013
- paint_flags: PaintFlag,
17033
+ paint_flags: PaintFlag | null,
17014
17034
  ): void;
17015
17035
  /**
17016
17036
  * Iterates over active input.
@@ -17176,7 +17196,7 @@ export namespace Clutter {
17176
17196
  source_property: string,
17177
17197
  target: GObject.Object,
17178
17198
  target_property: string,
17179
- flags: GObject.BindingFlags,
17199
+ flags: GObject.BindingFlags | null,
17180
17200
  ): GObject.Binding;
17181
17201
  /**
17182
17202
  * Complete version of g_object_bind_property().
@@ -17217,7 +17237,7 @@ export namespace Clutter {
17217
17237
  source_property: string,
17218
17238
  target: GObject.Object,
17219
17239
  target_property: string,
17220
- flags: GObject.BindingFlags,
17240
+ flags: GObject.BindingFlags | null,
17221
17241
  transform_to?: GObject.BindingTransformFunc | null,
17222
17242
  transform_from?: GObject.BindingTransformFunc | null,
17223
17243
  notify?: GLib.DestroyNotify | null,
@@ -18645,7 +18665,7 @@ export namespace Clutter {
18645
18665
  * of a #ClutterText actor
18646
18666
  * @param mode a #PangoEllipsizeMode
18647
18667
  */
18648
- set_ellipsize(mode: Pango.EllipsizeMode): void;
18668
+ set_ellipsize(mode: Pango.EllipsizeMode | null): void;
18649
18669
  /**
18650
18670
  * Sets `font_desc` as the font description for a #ClutterText
18651
18671
  *
@@ -18675,8 +18695,8 @@ export namespace Clutter {
18675
18695
  * @param font_name a font name, or %NULL to set the default font name
18676
18696
  */
18677
18697
  set_font_name(font_name?: string | null): void;
18678
- set_input_hints(hints: InputContentHintFlags): void;
18679
- set_input_purpose(purpose: InputContentPurpose): void;
18698
+ set_input_hints(hints: InputContentHintFlags | null): void;
18699
+ set_input_purpose(purpose: InputContentPurpose | null): void;
18680
18700
  /**
18681
18701
  * Sets whether the text of the #ClutterText actor should be justified
18682
18702
  * on both margins. This setting is ignored if Clutter is compiled
@@ -18693,7 +18713,7 @@ export namespace Clutter {
18693
18713
  * that supports alignment, or use the anchor point.
18694
18714
  * @param alignment A #PangoAlignment
18695
18715
  */
18696
- set_line_alignment(alignment: Pango.Alignment): void;
18716
+ set_line_alignment(alignment: Pango.Alignment | null): void;
18697
18717
  /**
18698
18718
  * Sets whether the contents of a #ClutterText actor should wrap,
18699
18719
  * if they don't fit the size assigned to the actor.
@@ -18706,7 +18726,7 @@ export namespace Clutter {
18706
18726
  * %PANGO_WRAP_WORD which means wrap on word boundaries.
18707
18727
  * @param wrap_mode the line wrapping mode
18708
18728
  */
18709
- set_line_wrap_mode(wrap_mode: Pango.WrapMode): void;
18729
+ set_line_wrap_mode(wrap_mode: Pango.WrapMode | null): void;
18710
18730
  /**
18711
18731
  * Sets `markup` as the contents of a #ClutterText.
18712
18732
  *
@@ -18949,7 +18969,7 @@ export namespace Clutter {
18949
18969
  source_property: string,
18950
18970
  target: GObject.Object,
18951
18971
  target_property: string,
18952
- flags: GObject.BindingFlags,
18972
+ flags: GObject.BindingFlags | null,
18953
18973
  ): GObject.Binding;
18954
18974
  /**
18955
18975
  * Complete version of g_object_bind_property().
@@ -18990,7 +19010,7 @@ export namespace Clutter {
18990
19010
  source_property: string,
18991
19011
  target: GObject.Object,
18992
19012
  target_property: string,
18993
- flags: GObject.BindingFlags,
19013
+ flags: GObject.BindingFlags | null,
18994
19014
  transform_to?: GObject.BindingTransformFunc | null,
18995
19015
  transform_from?: GObject.BindingTransformFunc | null,
18996
19016
  notify?: GLib.DestroyNotify | null,
@@ -19711,7 +19731,7 @@ export namespace Clutter {
19711
19731
  source_property: string,
19712
19732
  target: GObject.Object,
19713
19733
  target_property: string,
19714
- flags: GObject.BindingFlags,
19734
+ flags: GObject.BindingFlags | null,
19715
19735
  ): GObject.Binding;
19716
19736
  /**
19717
19737
  * Complete version of g_object_bind_property().
@@ -19752,7 +19772,7 @@ export namespace Clutter {
19752
19772
  source_property: string,
19753
19773
  target: GObject.Object,
19754
19774
  target_property: string,
19755
- flags: GObject.BindingFlags,
19775
+ flags: GObject.BindingFlags | null,
19756
19776
  transform_to?: GObject.BindingTransformFunc | null,
19757
19777
  transform_from?: GObject.BindingTransformFunc | null,
19758
19778
  notify?: GLib.DestroyNotify | null,
@@ -20580,7 +20600,7 @@ export namespace Clutter {
20580
20600
  * %CLUTTER_TIMELINE_BACKWARD.
20581
20601
  * @param direction the direction of the timeline
20582
20602
  */
20583
- set_direction(direction: TimelineDirection): void;
20603
+ set_direction(direction: TimelineDirection | null): void;
20584
20604
  /**
20585
20605
  * Sets the duration of the timeline, in milliseconds. The speed
20586
20606
  * of the timeline depends on the [property`Timeline:`frame-clock] setting.
@@ -20608,7 +20628,7 @@ export namespace Clutter {
20608
20628
  * %CLUTTER_ANIMATION_LAST.
20609
20629
  * @param mode the progress mode, as a #ClutterAnimationMode
20610
20630
  */
20611
- set_progress_mode(mode: AnimationMode): void;
20631
+ set_progress_mode(mode: AnimationMode | null): void;
20612
20632
  /**
20613
20633
  * Sets the number of times the `timeline` should repeat.
20614
20634
  *
@@ -20625,7 +20645,7 @@ export namespace Clutter {
20625
20645
  * @param n_steps the number of steps
20626
20646
  * @param step_mode whether the change should happen at the start or at the end of the step
20627
20647
  */
20628
- set_step_progress(n_steps: number, step_mode: StepMode): void;
20648
+ set_step_progress(n_steps: number, step_mode: StepMode | null): void;
20629
20649
  /**
20630
20650
  * Advance timeline by the requested time in milliseconds
20631
20651
  * @param msecs Amount of time to skip
@@ -20924,17 +20944,21 @@ export namespace Clutter {
20924
20944
  get_device_type(): number;
20925
20945
  get_seat(): Seat;
20926
20946
  notify_absolute_motion(time_us: number, x: number, y: number): void;
20927
- notify_button(time_us: number, button: number, button_state: ButtonState): void;
20928
- notify_discrete_scroll(time_us: number, direction: ScrollDirection, scroll_source: ScrollSource): void;
20929
- notify_key(time_us: number, key: number, key_state: KeyState): void;
20930
- notify_keyval(time_us: number, keyval: number, key_state: KeyState): void;
20947
+ notify_button(time_us: number, button: number, button_state: ButtonState | null): void;
20948
+ notify_discrete_scroll(
20949
+ time_us: number,
20950
+ direction: ScrollDirection | null,
20951
+ scroll_source: ScrollSource | null,
20952
+ ): void;
20953
+ notify_key(time_us: number, key: number, key_state: KeyState | null): void;
20954
+ notify_keyval(time_us: number, keyval: number, key_state: KeyState | null): void;
20931
20955
  notify_relative_motion(time_us: number, dx: number, dy: number): void;
20932
20956
  notify_scroll_continuous(
20933
20957
  time_us: number,
20934
20958
  dx: number,
20935
20959
  dy: number,
20936
- scroll_source: ScrollSource,
20937
- finish_flags: ScrollFinishFlags,
20960
+ scroll_source: ScrollSource | null,
20961
+ finish_flags: ScrollFinishFlags | null,
20938
20962
  ): void;
20939
20963
  notify_touch_down(time_us: number, slot: number, x: number, y: number): void;
20940
20964
  notify_touch_motion(time_us: number, slot: number, x: number, y: number): void;
@@ -21539,7 +21563,7 @@ export namespace Clutter {
21539
21563
  get_target_presentation_time(target_presentation_time_us: number): boolean;
21540
21564
  has_result(): boolean;
21541
21565
  ref(): Frame;
21542
- set_result(result: FrameResult): void;
21566
+ set_result(result: FrameResult | null): void;
21543
21567
  unref(): void;
21544
21568
  }
21545
21569
 
@@ -22400,7 +22424,9 @@ export namespace Clutter {
22400
22424
  vfunc_set_final_state(property_name: string, value: GObject.Value | any): void;
22401
22425
  }
22402
22426
 
22403
- export const Animatable: AnimatableNamespace;
22427
+ export const Animatable: AnimatableNamespace & {
22428
+ new (): Animatable; // This allows `obj instanceof Animatable`
22429
+ };
22404
22430
 
22405
22431
  module Content {
22406
22432
  // Constructor properties interface
@@ -22489,7 +22515,9 @@ export namespace Clutter {
22489
22515
  vfunc_paint_content(actor: Actor, node: PaintNode, paint_context: PaintContext): void;
22490
22516
  }
22491
22517
 
22492
- export const Content: ContentNamespace;
22518
+ export const Content: ContentNamespace & {
22519
+ new (): Content; // This allows `obj instanceof Content`
22520
+ };
22493
22521
 
22494
22522
  /**
22495
22523
  * Name of the imported GIR library
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/clutter-14",
3
- "version": "14.0.0-4.0.0-beta.17",
3
+ "version": "14.0.0-4.0.0-beta.19",
4
4
  "description": "GJS TypeScript type definitions for Clutter-14, generated from library version 14.0.0",
5
5
  "type": "module",
6
6
  "module": "clutter-14.js",
@@ -31,23 +31,23 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/atk-1.0": "^2.54.0-4.0.0-beta.17",
35
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.17",
36
- "@girs/cogl-14": "^14.0.0-4.0.0-beta.17",
37
- "@girs/coglpango-14": "^14.0.0-4.0.0-beta.17",
38
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.17",
39
- "@girs/gio-2.0": "^2.82.2-4.0.0-beta.17",
40
- "@girs/gjs": "^4.0.0-beta.17",
41
- "@girs/gl-1.0": "^1.0.0-4.0.0-beta.17",
42
- "@girs/glib-2.0": "^2.82.2-4.0.0-beta.17",
43
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.17",
44
- "@girs/gobject-2.0": "^2.82.2-4.0.0-beta.17",
45
- "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.17",
46
- "@girs/harfbuzz-0.0": "^9.0.0-4.0.0-beta.17",
47
- "@girs/mtk-14": "^14.0.0-4.0.0-beta.17",
48
- "@girs/pango-1.0": "^1.54.0-4.0.0-beta.17",
49
- "@girs/pangocairo-1.0": "^1.0.0-4.0.0-beta.17",
50
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.17"
34
+ "@girs/atk-1.0": "^2.54.0-4.0.0-beta.19",
35
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.19",
36
+ "@girs/cogl-14": "^14.0.0-4.0.0-beta.19",
37
+ "@girs/coglpango-14": "^14.0.0-4.0.0-beta.19",
38
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.19",
39
+ "@girs/gio-2.0": "^2.82.2-4.0.0-beta.19",
40
+ "@girs/gjs": "^4.0.0-beta.19",
41
+ "@girs/gl-1.0": "^1.0.0-4.0.0-beta.19",
42
+ "@girs/glib-2.0": "^2.82.2-4.0.0-beta.19",
43
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.19",
44
+ "@girs/gobject-2.0": "^2.82.2-4.0.0-beta.19",
45
+ "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.19",
46
+ "@girs/harfbuzz-0.0": "^9.0.0-4.0.0-beta.19",
47
+ "@girs/mtk-14": "^14.0.0-4.0.0-beta.19",
48
+ "@girs/pango-1.0": "^1.54.0-4.0.0-beta.19",
49
+ "@girs/pangocairo-1.0": "^1.0.0-4.0.0-beta.19",
50
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.19"
51
51
  },
52
52
  "devDependencies": {
53
53
  "typescript": "*"
package/tsconfig.json CHANGED
@@ -15,7 +15,9 @@
15
15
  "removeComments": false,
16
16
  "inlineSourceMap": false,
17
17
  "inlineSources": false,
18
- "newLine": "LF"
18
+ "newLine": "LF",
19
+ // Show diagnostics
20
+ "diagnostics": true
19
21
  },
20
22
  "include": ["./clutter-14.d.ts"]
21
23
  }