@girs/gdk-4.0 4.0.0-3.2.4 → 4.0.0-3.2.6

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/gdk-4.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gdk-4.0, generated from library version 4.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
8
+ GJS TypeScript type definitions for Gdk-4.0, generated from library version 4.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
9
9
 
10
10
 
11
11
  ## Install
@@ -81,6 +81,19 @@ Now you have also type support for this, too:
81
81
  const Gdk = imports.gi.Gdk;
82
82
  ```
83
83
 
84
+
85
+ ### ESM vs. CommonJS
86
+
87
+ GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
88
+
89
+ In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
90
+
91
+ On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
92
+
93
+ This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
94
+
95
+ Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
96
+
84
97
  ### Bundle
85
98
 
86
99
  Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
@@ -1,9 +1,12 @@
1
1
 
2
-
3
2
  declare module 'gi://Gdk?version=4.0' {
4
3
  import Gdk40 from '@girs/gdk-4.0';
5
4
  export default Gdk40;
6
5
  }
7
6
 
7
+ declare module 'gi://Gdk' {
8
+ import Gdk40 from '@girs/gdk-4.0';
9
+ export default Gdk40;
10
+ }
8
11
 
9
12
 
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import Gdk40 from '@girs/gdk-4.0';
4
3
 
5
4
  declare global {
package/gdk-4.0.d.cts CHANGED
@@ -4736,6 +4736,25 @@ export module Toplevel {
4736
4736
  * The transient parent of the surface.
4737
4737
  */
4738
4738
  transient_for?: Surface | null
4739
+ /**
4740
+ * The fullscreen mode of the surface.
4741
+ */
4742
+ fullscreenMode?: FullscreenMode | null
4743
+ /**
4744
+ * A list of textures to use as icon.
4745
+ */
4746
+ iconList?: any | null
4747
+ /**
4748
+ * The startup ID of the surface.
4749
+ *
4750
+ * See [class`Gdk`.AppLaunchContext] for more information about
4751
+ * startup feedback.
4752
+ */
4753
+ startupId?: string | null
4754
+ /**
4755
+ * The transient parent of the surface.
4756
+ */
4757
+ transientFor?: Surface | null
4739
4758
  }
4740
4759
 
4741
4760
  }
@@ -4756,10 +4775,18 @@ export interface Toplevel extends Surface {
4756
4775
  * The fullscreen mode of the surface.
4757
4776
  */
4758
4777
  fullscreen_mode: FullscreenMode
4778
+ /**
4779
+ * The fullscreen mode of the surface.
4780
+ */
4781
+ fullscreenMode: FullscreenMode
4759
4782
  /**
4760
4783
  * A list of textures to use as icon.
4761
4784
  */
4762
4785
  icon_list: any
4786
+ /**
4787
+ * A list of textures to use as icon.
4788
+ */
4789
+ iconList: any
4763
4790
  /**
4764
4791
  * Whether the surface is modal.
4765
4792
  */
@@ -4768,6 +4795,10 @@ export interface Toplevel extends Surface {
4768
4795
  * Whether the surface should inhibit keyboard shortcuts.
4769
4796
  */
4770
4797
  readonly shortcuts_inhibited: boolean
4798
+ /**
4799
+ * Whether the surface should inhibit keyboard shortcuts.
4800
+ */
4801
+ readonly shortcutsInhibited: boolean
4771
4802
  /**
4772
4803
  * The startup ID of the surface.
4773
4804
  *
@@ -4775,6 +4806,13 @@ export interface Toplevel extends Surface {
4775
4806
  * startup feedback.
4776
4807
  */
4777
4808
  startup_id: string | null
4809
+ /**
4810
+ * The startup ID of the surface.
4811
+ *
4812
+ * See [class`Gdk`.AppLaunchContext] for more information about
4813
+ * startup feedback.
4814
+ */
4815
+ startupId: string | null
4778
4816
  /**
4779
4817
  * The state of the toplevel.
4780
4818
  */
@@ -4787,6 +4825,10 @@ export interface Toplevel extends Surface {
4787
4825
  * The transient parent of the surface.
4788
4826
  */
4789
4827
  transient_for: Surface
4828
+ /**
4829
+ * The transient parent of the surface.
4830
+ */
4831
+ transientFor: Surface
4790
4832
 
4791
4833
  // Owm methods of Gdk-4.0.Gdk.Toplevel
4792
4834
 
@@ -5821,6 +5863,10 @@ export interface ContentProvider {
5821
5863
  * The subset of formats that clipboard managers should store this provider's data in.
5822
5864
  */
5823
5865
  readonly storable_formats: ContentFormats
5866
+ /**
5867
+ * The subset of formats that clipboard managers should store this provider's data in.
5868
+ */
5869
+ readonly storableFormats: ContentFormats
5824
5870
 
5825
5871
  // Own fields of Gdk-4.0.Gdk.ContentProvider
5826
5872
 
@@ -6242,6 +6288,14 @@ export module Cursor {
6242
6288
  * The texture will be %NULL if the cursor was created from a name.
6243
6289
  */
6244
6290
  texture?: Texture | null
6291
+ /**
6292
+ * X position of the cursor hotspot in the cursor image.
6293
+ */
6294
+ hotspotX?: number | null
6295
+ /**
6296
+ * Y position of the cursor hotspot in the cursor image.
6297
+ */
6298
+ hotspotY?: number | null
6245
6299
  }
6246
6300
 
6247
6301
  }
@@ -6258,10 +6312,18 @@ export interface Cursor {
6258
6312
  * X position of the cursor hotspot in the cursor image.
6259
6313
  */
6260
6314
  readonly hotspot_x: number
6315
+ /**
6316
+ * X position of the cursor hotspot in the cursor image.
6317
+ */
6318
+ readonly hotspotX: number
6261
6319
  /**
6262
6320
  * Y position of the cursor hotspot in the cursor image.
6263
6321
  */
6264
6322
  readonly hotspot_y: number
6323
+ /**
6324
+ * Y position of the cursor hotspot in the cursor image.
6325
+ */
6326
+ readonly hotspotY: number
6265
6327
  /**
6266
6328
  * Name of this this cursor.
6267
6329
  *
@@ -6531,6 +6593,29 @@ export module Device {
6531
6593
  * See [method`Gdk`.Device.get_vendor_id].
6532
6594
  */
6533
6595
  vendor_id?: string | null
6596
+ /**
6597
+ * Whether the device is represented by a cursor on the screen.
6598
+ */
6599
+ hasCursor?: boolean | null
6600
+ /**
6601
+ * The maximal number of concurrent touches on a touch device.
6602
+ *
6603
+ * Will be 0 if the device is not a touch device or if the number
6604
+ * of touches is unknown.
6605
+ */
6606
+ numTouches?: number | null
6607
+ /**
6608
+ * Product ID of this device.
6609
+ *
6610
+ * See [method`Gdk`.Device.get_product_id].
6611
+ */
6612
+ productId?: string | null
6613
+ /**
6614
+ * Vendor ID of this device.
6615
+ *
6616
+ * See [method`Gdk`.Device.get_vendor_id].
6617
+ */
6618
+ vendorId?: string | null
6534
6619
  }
6535
6620
 
6536
6621
  }
@@ -6545,6 +6630,12 @@ export interface Device {
6545
6630
  * This is only relevant for keyboard devices.
6546
6631
  */
6547
6632
  readonly caps_lock_state: boolean
6633
+ /**
6634
+ * Whether Caps Lock is on.
6635
+ *
6636
+ * This is only relevant for keyboard devices.
6637
+ */
6638
+ readonly capsLockState: boolean
6548
6639
  /**
6549
6640
  * The direction of the current layout.
6550
6641
  *
@@ -6561,20 +6652,40 @@ export interface Device {
6561
6652
  * This is only relevant for keyboard devices.
6562
6653
  */
6563
6654
  readonly has_bidi_layouts: boolean
6655
+ /**
6656
+ * Whether the device has both right-to-left and left-to-right layouts.
6657
+ *
6658
+ * This is only relevant for keyboard devices.
6659
+ */
6660
+ readonly hasBidiLayouts: boolean
6564
6661
  /**
6565
6662
  * Whether the device is represented by a cursor on the screen.
6566
6663
  */
6567
6664
  readonly has_cursor: boolean
6665
+ /**
6666
+ * Whether the device is represented by a cursor on the screen.
6667
+ */
6668
+ readonly hasCursor: boolean
6568
6669
  /**
6569
6670
  * The current modifier state of the device.
6570
6671
  *
6571
6672
  * This is only relevant for keyboard devices.
6572
6673
  */
6573
6674
  readonly modifier_state: ModifierType
6675
+ /**
6676
+ * The current modifier state of the device.
6677
+ *
6678
+ * This is only relevant for keyboard devices.
6679
+ */
6680
+ readonly modifierState: ModifierType
6574
6681
  /**
6575
6682
  * Number of axes in the device.
6576
6683
  */
6577
6684
  readonly n_axes: number
6685
+ /**
6686
+ * Number of axes in the device.
6687
+ */
6688
+ readonly nAxes: number
6578
6689
  /**
6579
6690
  * The device name.
6580
6691
  */
@@ -6585,6 +6696,12 @@ export interface Device {
6585
6696
  * This is only relevant for keyboard devices.
6586
6697
  */
6587
6698
  readonly num_lock_state: boolean
6699
+ /**
6700
+ * Whether Num Lock is on.
6701
+ *
6702
+ * This is only relevant for keyboard devices.
6703
+ */
6704
+ readonly numLockState: boolean
6588
6705
  /**
6589
6706
  * The maximal number of concurrent touches on a touch device.
6590
6707
  *
@@ -6592,18 +6709,37 @@ export interface Device {
6592
6709
  * of touches is unknown.
6593
6710
  */
6594
6711
  readonly num_touches: number
6712
+ /**
6713
+ * The maximal number of concurrent touches on a touch device.
6714
+ *
6715
+ * Will be 0 if the device is not a touch device or if the number
6716
+ * of touches is unknown.
6717
+ */
6718
+ readonly numTouches: number
6595
6719
  /**
6596
6720
  * Product ID of this device.
6597
6721
  *
6598
6722
  * See [method`Gdk`.Device.get_product_id].
6599
6723
  */
6600
6724
  readonly product_id: string | null
6725
+ /**
6726
+ * Product ID of this device.
6727
+ *
6728
+ * See [method`Gdk`.Device.get_product_id].
6729
+ */
6730
+ readonly productId: string | null
6601
6731
  /**
6602
6732
  * Whether Scroll Lock is on.
6603
6733
  *
6604
6734
  * This is only relevant for keyboard devices.
6605
6735
  */
6606
6736
  readonly scroll_lock_state: boolean
6737
+ /**
6738
+ * Whether Scroll Lock is on.
6739
+ *
6740
+ * This is only relevant for keyboard devices.
6741
+ */
6742
+ readonly scrollLockState: boolean
6607
6743
  /**
6608
6744
  * `GdkSeat` of this device.
6609
6745
  */
@@ -6622,6 +6758,12 @@ export interface Device {
6622
6758
  * See [method`Gdk`.Device.get_vendor_id].
6623
6759
  */
6624
6760
  readonly vendor_id: string | null
6761
+ /**
6762
+ * Vendor ID of this device.
6763
+ *
6764
+ * See [method`Gdk`.Device.get_vendor_id].
6765
+ */
6766
+ readonly vendorId: string | null
6625
6767
 
6626
6768
  // Owm methods of Gdk-4.0.Gdk.Device
6627
6769
 
@@ -6870,6 +7012,14 @@ export module DeviceTool {
6870
7012
  * The type of the tool.
6871
7013
  */
6872
7014
  tool_type?: DeviceToolType | null
7015
+ /**
7016
+ * The hardware ID of the tool.
7017
+ */
7018
+ hardwareId?: number | null
7019
+ /**
7020
+ * The type of the tool.
7021
+ */
7022
+ toolType?: DeviceToolType | null
6873
7023
  }
6874
7024
 
6875
7025
  }
@@ -6886,6 +7036,10 @@ export interface DeviceTool {
6886
7036
  * The hardware ID of the tool.
6887
7037
  */
6888
7038
  readonly hardware_id: number
7039
+ /**
7040
+ * The hardware ID of the tool.
7041
+ */
7042
+ readonly hardwareId: number
6889
7043
  /**
6890
7044
  * The serial number of the tool.
6891
7045
  */
@@ -6894,6 +7048,10 @@ export interface DeviceTool {
6894
7048
  * The type of the tool.
6895
7049
  */
6896
7050
  readonly tool_type: DeviceToolType
7051
+ /**
7052
+ * The type of the tool.
7053
+ */
7054
+ readonly toolType: DeviceToolType
6897
7055
 
6898
7056
  // Owm methods of Gdk-4.0.Gdk.DeviceTool
6899
7057
 
@@ -7027,6 +7185,10 @@ export interface Display {
7027
7185
  * %TRUE if the display supports input shapes.
7028
7186
  */
7029
7187
  readonly input_shapes: boolean
7188
+ /**
7189
+ * %TRUE if the display supports input shapes.
7190
+ */
7191
+ readonly inputShapes: boolean
7030
7192
  /**
7031
7193
  * %TRUE if the display supports an alpha channel.
7032
7194
  */
@@ -7401,6 +7563,10 @@ export module DisplayManager {
7401
7563
  * The default display.
7402
7564
  */
7403
7565
  default_display?: Display | null
7566
+ /**
7567
+ * The default display.
7568
+ */
7569
+ defaultDisplay?: Display | null
7404
7570
  }
7405
7571
 
7406
7572
  }
@@ -7413,6 +7579,10 @@ export interface DisplayManager {
7413
7579
  * The default display.
7414
7580
  */
7415
7581
  default_display: Display
7582
+ /**
7583
+ * The default display.
7584
+ */
7585
+ defaultDisplay: Display
7416
7586
 
7417
7587
  // Owm methods of Gdk-4.0.Gdk.DisplayManager
7418
7588
 
@@ -7582,6 +7752,10 @@ export module Drag {
7582
7752
  * The surface where the drag originates.
7583
7753
  */
7584
7754
  surface?: Surface | null
7755
+ /**
7756
+ * The currently selected action of the drag.
7757
+ */
7758
+ selectedAction?: DragAction | null
7585
7759
  }
7586
7760
 
7587
7761
  }
@@ -7614,6 +7788,10 @@ export interface Drag {
7614
7788
  * The currently selected action of the drag.
7615
7789
  */
7616
7790
  selected_action: DragAction
7791
+ /**
7792
+ * The currently selected action of the drag.
7793
+ */
7794
+ selectedAction: DragAction
7617
7795
  /**
7618
7796
  * The surface where the drag originates.
7619
7797
  */
@@ -8665,6 +8843,17 @@ export module GLContext {
8665
8843
  * anymore, this function has been deprecated and now always returns %NULL.
8666
8844
  */
8667
8845
  shared_context?: GLContext | null
8846
+ /**
8847
+ * The allowed APIs.
8848
+ */
8849
+ allowedApis?: GLAPI | null
8850
+ /**
8851
+ * Always %NULL
8852
+ *
8853
+ * As many contexts can share data now and no single shared context exists
8854
+ * anymore, this function has been deprecated and now always returns %NULL.
8855
+ */
8856
+ sharedContext?: GLContext | null
8668
8857
  }
8669
8858
 
8670
8859
  }
@@ -8677,6 +8866,10 @@ export interface GLContext {
8677
8866
  * The allowed APIs.
8678
8867
  */
8679
8868
  allowed_apis: GLAPI
8869
+ /**
8870
+ * The allowed APIs.
8871
+ */
8872
+ allowedApis: GLAPI
8680
8873
  /**
8681
8874
  * The API currently in use.
8682
8875
  */
@@ -8688,6 +8881,13 @@ export interface GLContext {
8688
8881
  * anymore, this function has been deprecated and now always returns %NULL.
8689
8882
  */
8690
8883
  readonly shared_context: GLContext
8884
+ /**
8885
+ * Always %NULL
8886
+ *
8887
+ * As many contexts can share data now and no single shared context exists
8888
+ * anymore, this function has been deprecated and now always returns %NULL.
8889
+ */
8890
+ readonly sharedContext: GLContext
8691
8891
 
8692
8892
  // Owm methods of Gdk-4.0.Gdk.GLContext
8693
8893
 
@@ -9101,6 +9301,18 @@ export module GLTextureBuilder {
9101
9301
  * The width of the texture.
9102
9302
  */
9103
9303
  width?: number | null
9304
+ /**
9305
+ * If the texture has a mipmap.
9306
+ */
9307
+ hasMipmap?: boolean | null
9308
+ /**
9309
+ * The update region for [property`Gdk`.GLTextureBuilder:update-texture].
9310
+ */
9311
+ updateRegion?: cairo.Region | null
9312
+ /**
9313
+ * The texture [property`Gdk`.GLTextureBuilder:update-region] is an update for.
9314
+ */
9315
+ updateTexture?: Texture | null
9104
9316
  }
9105
9317
 
9106
9318
  }
@@ -9121,6 +9333,10 @@ export interface GLTextureBuilder {
9121
9333
  * If the texture has a mipmap.
9122
9334
  */
9123
9335
  has_mipmap: boolean
9336
+ /**
9337
+ * If the texture has a mipmap.
9338
+ */
9339
+ hasMipmap: boolean
9124
9340
  /**
9125
9341
  * The height of the texture.
9126
9342
  */
@@ -9139,10 +9355,18 @@ export interface GLTextureBuilder {
9139
9355
  * The update region for [property`Gdk`.GLTextureBuilder:update-texture].
9140
9356
  */
9141
9357
  update_region: cairo.Region
9358
+ /**
9359
+ * The update region for [property`Gdk`.GLTextureBuilder:update-texture].
9360
+ */
9361
+ updateRegion: cairo.Region
9142
9362
  /**
9143
9363
  * The texture [property`Gdk`.GLTextureBuilder:update-region] is an update for.
9144
9364
  */
9145
9365
  update_texture: Texture
9366
+ /**
9367
+ * The texture [property`Gdk`.GLTextureBuilder:update-region] is an update for.
9368
+ */
9369
+ updateTexture: Texture
9146
9370
  /**
9147
9371
  * The width of the texture.
9148
9372
  */
@@ -9602,6 +9826,10 @@ export interface Monitor {
9602
9826
  * The height of the monitor, in millimeters.
9603
9827
  */
9604
9828
  readonly height_mm: number
9829
+ /**
9830
+ * The height of the monitor, in millimeters.
9831
+ */
9832
+ readonly heightMm: number
9605
9833
  /**
9606
9834
  * The manufacturer name.
9607
9835
  */
@@ -9614,14 +9842,26 @@ export interface Monitor {
9614
9842
  * The refresh rate, in milli-Hertz.
9615
9843
  */
9616
9844
  readonly refresh_rate: number
9845
+ /**
9846
+ * The refresh rate, in milli-Hertz.
9847
+ */
9848
+ readonly refreshRate: number
9617
9849
  /**
9618
9850
  * The scale factor.
9619
9851
  */
9620
9852
  readonly scale_factor: number
9853
+ /**
9854
+ * The scale factor.
9855
+ */
9856
+ readonly scaleFactor: number
9621
9857
  /**
9622
9858
  * The subpixel layout.
9623
9859
  */
9624
9860
  readonly subpixel_layout: SubpixelLayout
9861
+ /**
9862
+ * The subpixel layout.
9863
+ */
9864
+ readonly subpixelLayout: SubpixelLayout
9625
9865
  /**
9626
9866
  * Whether the object is still valid.
9627
9867
  */
@@ -9630,6 +9870,10 @@ export interface Monitor {
9630
9870
  * The width of the monitor, in millimeters.
9631
9871
  */
9632
9872
  readonly width_mm: number
9873
+ /**
9874
+ * The width of the monitor, in millimeters.
9875
+ */
9876
+ readonly widthMm: number
9633
9877
 
9634
9878
  // Owm methods of Gdk-4.0.Gdk.Monitor
9635
9879
 
@@ -10144,6 +10388,10 @@ export module Surface {
10144
10388
  * The `GdkFrameClock` of the surface.
10145
10389
  */
10146
10390
  frame_clock?: FrameClock | null
10391
+ /**
10392
+ * The `GdkFrameClock` of the surface.
10393
+ */
10394
+ frameClock?: FrameClock | null
10147
10395
  }
10148
10396
 
10149
10397
  }
@@ -10164,6 +10412,10 @@ export interface Surface {
10164
10412
  * The `GdkFrameClock` of the surface.
10165
10413
  */
10166
10414
  readonly frame_clock: FrameClock
10415
+ /**
10416
+ * The `GdkFrameClock` of the surface.
10417
+ */
10418
+ readonly frameClock: FrameClock
10167
10419
  /**
10168
10420
  * The height of the surface, in pixels.
10169
10421
  */
@@ -10183,6 +10435,13 @@ export interface Surface {
10183
10435
  * compared to [property`Gdk`.Surface:scale].
10184
10436
  */
10185
10437
  readonly scale_factor: number
10438
+ /**
10439
+ * The scale factor of the surface.
10440
+ *
10441
+ * The scale factor is the next larger integer,
10442
+ * compared to [property`Gdk`.Surface:scale].
10443
+ */
10444
+ readonly scaleFactor: number
10186
10445
  /**
10187
10446
  * The width of the surface in pixels.
10188
10447
  */
package/gdk-4.0.d.ts CHANGED
@@ -4738,6 +4738,25 @@ module Toplevel {
4738
4738
  * The transient parent of the surface.
4739
4739
  */
4740
4740
  transient_for?: Surface | null
4741
+ /**
4742
+ * The fullscreen mode of the surface.
4743
+ */
4744
+ fullscreenMode?: FullscreenMode | null
4745
+ /**
4746
+ * A list of textures to use as icon.
4747
+ */
4748
+ iconList?: any | null
4749
+ /**
4750
+ * The startup ID of the surface.
4751
+ *
4752
+ * See [class`Gdk`.AppLaunchContext] for more information about
4753
+ * startup feedback.
4754
+ */
4755
+ startupId?: string | null
4756
+ /**
4757
+ * The transient parent of the surface.
4758
+ */
4759
+ transientFor?: Surface | null
4741
4760
  }
4742
4761
 
4743
4762
  }
@@ -4758,10 +4777,18 @@ interface Toplevel extends Surface {
4758
4777
  * The fullscreen mode of the surface.
4759
4778
  */
4760
4779
  fullscreen_mode: FullscreenMode
4780
+ /**
4781
+ * The fullscreen mode of the surface.
4782
+ */
4783
+ fullscreenMode: FullscreenMode
4761
4784
  /**
4762
4785
  * A list of textures to use as icon.
4763
4786
  */
4764
4787
  icon_list: any
4788
+ /**
4789
+ * A list of textures to use as icon.
4790
+ */
4791
+ iconList: any
4765
4792
  /**
4766
4793
  * Whether the surface is modal.
4767
4794
  */
@@ -4770,6 +4797,10 @@ interface Toplevel extends Surface {
4770
4797
  * Whether the surface should inhibit keyboard shortcuts.
4771
4798
  */
4772
4799
  readonly shortcuts_inhibited: boolean
4800
+ /**
4801
+ * Whether the surface should inhibit keyboard shortcuts.
4802
+ */
4803
+ readonly shortcutsInhibited: boolean
4773
4804
  /**
4774
4805
  * The startup ID of the surface.
4775
4806
  *
@@ -4777,6 +4808,13 @@ interface Toplevel extends Surface {
4777
4808
  * startup feedback.
4778
4809
  */
4779
4810
  startup_id: string | null
4811
+ /**
4812
+ * The startup ID of the surface.
4813
+ *
4814
+ * See [class`Gdk`.AppLaunchContext] for more information about
4815
+ * startup feedback.
4816
+ */
4817
+ startupId: string | null
4780
4818
  /**
4781
4819
  * The state of the toplevel.
4782
4820
  */
@@ -4789,6 +4827,10 @@ interface Toplevel extends Surface {
4789
4827
  * The transient parent of the surface.
4790
4828
  */
4791
4829
  transient_for: Surface
4830
+ /**
4831
+ * The transient parent of the surface.
4832
+ */
4833
+ transientFor: Surface
4792
4834
 
4793
4835
  // Owm methods of Gdk-4.0.Gdk.Toplevel
4794
4836
 
@@ -5823,6 +5865,10 @@ interface ContentProvider {
5823
5865
  * The subset of formats that clipboard managers should store this provider's data in.
5824
5866
  */
5825
5867
  readonly storable_formats: ContentFormats
5868
+ /**
5869
+ * The subset of formats that clipboard managers should store this provider's data in.
5870
+ */
5871
+ readonly storableFormats: ContentFormats
5826
5872
 
5827
5873
  // Own fields of Gdk-4.0.Gdk.ContentProvider
5828
5874
 
@@ -6244,6 +6290,14 @@ module Cursor {
6244
6290
  * The texture will be %NULL if the cursor was created from a name.
6245
6291
  */
6246
6292
  texture?: Texture | null
6293
+ /**
6294
+ * X position of the cursor hotspot in the cursor image.
6295
+ */
6296
+ hotspotX?: number | null
6297
+ /**
6298
+ * Y position of the cursor hotspot in the cursor image.
6299
+ */
6300
+ hotspotY?: number | null
6247
6301
  }
6248
6302
 
6249
6303
  }
@@ -6260,10 +6314,18 @@ interface Cursor {
6260
6314
  * X position of the cursor hotspot in the cursor image.
6261
6315
  */
6262
6316
  readonly hotspot_x: number
6317
+ /**
6318
+ * X position of the cursor hotspot in the cursor image.
6319
+ */
6320
+ readonly hotspotX: number
6263
6321
  /**
6264
6322
  * Y position of the cursor hotspot in the cursor image.
6265
6323
  */
6266
6324
  readonly hotspot_y: number
6325
+ /**
6326
+ * Y position of the cursor hotspot in the cursor image.
6327
+ */
6328
+ readonly hotspotY: number
6267
6329
  /**
6268
6330
  * Name of this this cursor.
6269
6331
  *
@@ -6533,6 +6595,29 @@ module Device {
6533
6595
  * See [method`Gdk`.Device.get_vendor_id].
6534
6596
  */
6535
6597
  vendor_id?: string | null
6598
+ /**
6599
+ * Whether the device is represented by a cursor on the screen.
6600
+ */
6601
+ hasCursor?: boolean | null
6602
+ /**
6603
+ * The maximal number of concurrent touches on a touch device.
6604
+ *
6605
+ * Will be 0 if the device is not a touch device or if the number
6606
+ * of touches is unknown.
6607
+ */
6608
+ numTouches?: number | null
6609
+ /**
6610
+ * Product ID of this device.
6611
+ *
6612
+ * See [method`Gdk`.Device.get_product_id].
6613
+ */
6614
+ productId?: string | null
6615
+ /**
6616
+ * Vendor ID of this device.
6617
+ *
6618
+ * See [method`Gdk`.Device.get_vendor_id].
6619
+ */
6620
+ vendorId?: string | null
6536
6621
  }
6537
6622
 
6538
6623
  }
@@ -6547,6 +6632,12 @@ interface Device {
6547
6632
  * This is only relevant for keyboard devices.
6548
6633
  */
6549
6634
  readonly caps_lock_state: boolean
6635
+ /**
6636
+ * Whether Caps Lock is on.
6637
+ *
6638
+ * This is only relevant for keyboard devices.
6639
+ */
6640
+ readonly capsLockState: boolean
6550
6641
  /**
6551
6642
  * The direction of the current layout.
6552
6643
  *
@@ -6563,20 +6654,40 @@ interface Device {
6563
6654
  * This is only relevant for keyboard devices.
6564
6655
  */
6565
6656
  readonly has_bidi_layouts: boolean
6657
+ /**
6658
+ * Whether the device has both right-to-left and left-to-right layouts.
6659
+ *
6660
+ * This is only relevant for keyboard devices.
6661
+ */
6662
+ readonly hasBidiLayouts: boolean
6566
6663
  /**
6567
6664
  * Whether the device is represented by a cursor on the screen.
6568
6665
  */
6569
6666
  readonly has_cursor: boolean
6667
+ /**
6668
+ * Whether the device is represented by a cursor on the screen.
6669
+ */
6670
+ readonly hasCursor: boolean
6570
6671
  /**
6571
6672
  * The current modifier state of the device.
6572
6673
  *
6573
6674
  * This is only relevant for keyboard devices.
6574
6675
  */
6575
6676
  readonly modifier_state: ModifierType
6677
+ /**
6678
+ * The current modifier state of the device.
6679
+ *
6680
+ * This is only relevant for keyboard devices.
6681
+ */
6682
+ readonly modifierState: ModifierType
6576
6683
  /**
6577
6684
  * Number of axes in the device.
6578
6685
  */
6579
6686
  readonly n_axes: number
6687
+ /**
6688
+ * Number of axes in the device.
6689
+ */
6690
+ readonly nAxes: number
6580
6691
  /**
6581
6692
  * The device name.
6582
6693
  */
@@ -6587,6 +6698,12 @@ interface Device {
6587
6698
  * This is only relevant for keyboard devices.
6588
6699
  */
6589
6700
  readonly num_lock_state: boolean
6701
+ /**
6702
+ * Whether Num Lock is on.
6703
+ *
6704
+ * This is only relevant for keyboard devices.
6705
+ */
6706
+ readonly numLockState: boolean
6590
6707
  /**
6591
6708
  * The maximal number of concurrent touches on a touch device.
6592
6709
  *
@@ -6594,18 +6711,37 @@ interface Device {
6594
6711
  * of touches is unknown.
6595
6712
  */
6596
6713
  readonly num_touches: number
6714
+ /**
6715
+ * The maximal number of concurrent touches on a touch device.
6716
+ *
6717
+ * Will be 0 if the device is not a touch device or if the number
6718
+ * of touches is unknown.
6719
+ */
6720
+ readonly numTouches: number
6597
6721
  /**
6598
6722
  * Product ID of this device.
6599
6723
  *
6600
6724
  * See [method`Gdk`.Device.get_product_id].
6601
6725
  */
6602
6726
  readonly product_id: string | null
6727
+ /**
6728
+ * Product ID of this device.
6729
+ *
6730
+ * See [method`Gdk`.Device.get_product_id].
6731
+ */
6732
+ readonly productId: string | null
6603
6733
  /**
6604
6734
  * Whether Scroll Lock is on.
6605
6735
  *
6606
6736
  * This is only relevant for keyboard devices.
6607
6737
  */
6608
6738
  readonly scroll_lock_state: boolean
6739
+ /**
6740
+ * Whether Scroll Lock is on.
6741
+ *
6742
+ * This is only relevant for keyboard devices.
6743
+ */
6744
+ readonly scrollLockState: boolean
6609
6745
  /**
6610
6746
  * `GdkSeat` of this device.
6611
6747
  */
@@ -6624,6 +6760,12 @@ interface Device {
6624
6760
  * See [method`Gdk`.Device.get_vendor_id].
6625
6761
  */
6626
6762
  readonly vendor_id: string | null
6763
+ /**
6764
+ * Vendor ID of this device.
6765
+ *
6766
+ * See [method`Gdk`.Device.get_vendor_id].
6767
+ */
6768
+ readonly vendorId: string | null
6627
6769
 
6628
6770
  // Owm methods of Gdk-4.0.Gdk.Device
6629
6771
 
@@ -6872,6 +7014,14 @@ module DeviceTool {
6872
7014
  * The type of the tool.
6873
7015
  */
6874
7016
  tool_type?: DeviceToolType | null
7017
+ /**
7018
+ * The hardware ID of the tool.
7019
+ */
7020
+ hardwareId?: number | null
7021
+ /**
7022
+ * The type of the tool.
7023
+ */
7024
+ toolType?: DeviceToolType | null
6875
7025
  }
6876
7026
 
6877
7027
  }
@@ -6888,6 +7038,10 @@ interface DeviceTool {
6888
7038
  * The hardware ID of the tool.
6889
7039
  */
6890
7040
  readonly hardware_id: number
7041
+ /**
7042
+ * The hardware ID of the tool.
7043
+ */
7044
+ readonly hardwareId: number
6891
7045
  /**
6892
7046
  * The serial number of the tool.
6893
7047
  */
@@ -6896,6 +7050,10 @@ interface DeviceTool {
6896
7050
  * The type of the tool.
6897
7051
  */
6898
7052
  readonly tool_type: DeviceToolType
7053
+ /**
7054
+ * The type of the tool.
7055
+ */
7056
+ readonly toolType: DeviceToolType
6899
7057
 
6900
7058
  // Owm methods of Gdk-4.0.Gdk.DeviceTool
6901
7059
 
@@ -7029,6 +7187,10 @@ interface Display {
7029
7187
  * %TRUE if the display supports input shapes.
7030
7188
  */
7031
7189
  readonly input_shapes: boolean
7190
+ /**
7191
+ * %TRUE if the display supports input shapes.
7192
+ */
7193
+ readonly inputShapes: boolean
7032
7194
  /**
7033
7195
  * %TRUE if the display supports an alpha channel.
7034
7196
  */
@@ -7403,6 +7565,10 @@ module DisplayManager {
7403
7565
  * The default display.
7404
7566
  */
7405
7567
  default_display?: Display | null
7568
+ /**
7569
+ * The default display.
7570
+ */
7571
+ defaultDisplay?: Display | null
7406
7572
  }
7407
7573
 
7408
7574
  }
@@ -7415,6 +7581,10 @@ interface DisplayManager {
7415
7581
  * The default display.
7416
7582
  */
7417
7583
  default_display: Display
7584
+ /**
7585
+ * The default display.
7586
+ */
7587
+ defaultDisplay: Display
7418
7588
 
7419
7589
  // Owm methods of Gdk-4.0.Gdk.DisplayManager
7420
7590
 
@@ -7584,6 +7754,10 @@ module Drag {
7584
7754
  * The surface where the drag originates.
7585
7755
  */
7586
7756
  surface?: Surface | null
7757
+ /**
7758
+ * The currently selected action of the drag.
7759
+ */
7760
+ selectedAction?: DragAction | null
7587
7761
  }
7588
7762
 
7589
7763
  }
@@ -7616,6 +7790,10 @@ interface Drag {
7616
7790
  * The currently selected action of the drag.
7617
7791
  */
7618
7792
  selected_action: DragAction
7793
+ /**
7794
+ * The currently selected action of the drag.
7795
+ */
7796
+ selectedAction: DragAction
7619
7797
  /**
7620
7798
  * The surface where the drag originates.
7621
7799
  */
@@ -8667,6 +8845,17 @@ module GLContext {
8667
8845
  * anymore, this function has been deprecated and now always returns %NULL.
8668
8846
  */
8669
8847
  shared_context?: GLContext | null
8848
+ /**
8849
+ * The allowed APIs.
8850
+ */
8851
+ allowedApis?: GLAPI | null
8852
+ /**
8853
+ * Always %NULL
8854
+ *
8855
+ * As many contexts can share data now and no single shared context exists
8856
+ * anymore, this function has been deprecated and now always returns %NULL.
8857
+ */
8858
+ sharedContext?: GLContext | null
8670
8859
  }
8671
8860
 
8672
8861
  }
@@ -8679,6 +8868,10 @@ interface GLContext {
8679
8868
  * The allowed APIs.
8680
8869
  */
8681
8870
  allowed_apis: GLAPI
8871
+ /**
8872
+ * The allowed APIs.
8873
+ */
8874
+ allowedApis: GLAPI
8682
8875
  /**
8683
8876
  * The API currently in use.
8684
8877
  */
@@ -8690,6 +8883,13 @@ interface GLContext {
8690
8883
  * anymore, this function has been deprecated and now always returns %NULL.
8691
8884
  */
8692
8885
  readonly shared_context: GLContext
8886
+ /**
8887
+ * Always %NULL
8888
+ *
8889
+ * As many contexts can share data now and no single shared context exists
8890
+ * anymore, this function has been deprecated and now always returns %NULL.
8891
+ */
8892
+ readonly sharedContext: GLContext
8693
8893
 
8694
8894
  // Owm methods of Gdk-4.0.Gdk.GLContext
8695
8895
 
@@ -9103,6 +9303,18 @@ module GLTextureBuilder {
9103
9303
  * The width of the texture.
9104
9304
  */
9105
9305
  width?: number | null
9306
+ /**
9307
+ * If the texture has a mipmap.
9308
+ */
9309
+ hasMipmap?: boolean | null
9310
+ /**
9311
+ * The update region for [property`Gdk`.GLTextureBuilder:update-texture].
9312
+ */
9313
+ updateRegion?: cairo.Region | null
9314
+ /**
9315
+ * The texture [property`Gdk`.GLTextureBuilder:update-region] is an update for.
9316
+ */
9317
+ updateTexture?: Texture | null
9106
9318
  }
9107
9319
 
9108
9320
  }
@@ -9123,6 +9335,10 @@ interface GLTextureBuilder {
9123
9335
  * If the texture has a mipmap.
9124
9336
  */
9125
9337
  has_mipmap: boolean
9338
+ /**
9339
+ * If the texture has a mipmap.
9340
+ */
9341
+ hasMipmap: boolean
9126
9342
  /**
9127
9343
  * The height of the texture.
9128
9344
  */
@@ -9141,10 +9357,18 @@ interface GLTextureBuilder {
9141
9357
  * The update region for [property`Gdk`.GLTextureBuilder:update-texture].
9142
9358
  */
9143
9359
  update_region: cairo.Region
9360
+ /**
9361
+ * The update region for [property`Gdk`.GLTextureBuilder:update-texture].
9362
+ */
9363
+ updateRegion: cairo.Region
9144
9364
  /**
9145
9365
  * The texture [property`Gdk`.GLTextureBuilder:update-region] is an update for.
9146
9366
  */
9147
9367
  update_texture: Texture
9368
+ /**
9369
+ * The texture [property`Gdk`.GLTextureBuilder:update-region] is an update for.
9370
+ */
9371
+ updateTexture: Texture
9148
9372
  /**
9149
9373
  * The width of the texture.
9150
9374
  */
@@ -9604,6 +9828,10 @@ interface Monitor {
9604
9828
  * The height of the monitor, in millimeters.
9605
9829
  */
9606
9830
  readonly height_mm: number
9831
+ /**
9832
+ * The height of the monitor, in millimeters.
9833
+ */
9834
+ readonly heightMm: number
9607
9835
  /**
9608
9836
  * The manufacturer name.
9609
9837
  */
@@ -9616,14 +9844,26 @@ interface Monitor {
9616
9844
  * The refresh rate, in milli-Hertz.
9617
9845
  */
9618
9846
  readonly refresh_rate: number
9847
+ /**
9848
+ * The refresh rate, in milli-Hertz.
9849
+ */
9850
+ readonly refreshRate: number
9619
9851
  /**
9620
9852
  * The scale factor.
9621
9853
  */
9622
9854
  readonly scale_factor: number
9855
+ /**
9856
+ * The scale factor.
9857
+ */
9858
+ readonly scaleFactor: number
9623
9859
  /**
9624
9860
  * The subpixel layout.
9625
9861
  */
9626
9862
  readonly subpixel_layout: SubpixelLayout
9863
+ /**
9864
+ * The subpixel layout.
9865
+ */
9866
+ readonly subpixelLayout: SubpixelLayout
9627
9867
  /**
9628
9868
  * Whether the object is still valid.
9629
9869
  */
@@ -9632,6 +9872,10 @@ interface Monitor {
9632
9872
  * The width of the monitor, in millimeters.
9633
9873
  */
9634
9874
  readonly width_mm: number
9875
+ /**
9876
+ * The width of the monitor, in millimeters.
9877
+ */
9878
+ readonly widthMm: number
9635
9879
 
9636
9880
  // Owm methods of Gdk-4.0.Gdk.Monitor
9637
9881
 
@@ -10146,6 +10390,10 @@ module Surface {
10146
10390
  * The `GdkFrameClock` of the surface.
10147
10391
  */
10148
10392
  frame_clock?: FrameClock | null
10393
+ /**
10394
+ * The `GdkFrameClock` of the surface.
10395
+ */
10396
+ frameClock?: FrameClock | null
10149
10397
  }
10150
10398
 
10151
10399
  }
@@ -10166,6 +10414,10 @@ interface Surface {
10166
10414
  * The `GdkFrameClock` of the surface.
10167
10415
  */
10168
10416
  readonly frame_clock: FrameClock
10417
+ /**
10418
+ * The `GdkFrameClock` of the surface.
10419
+ */
10420
+ readonly frameClock: FrameClock
10169
10421
  /**
10170
10422
  * The height of the surface, in pixels.
10171
10423
  */
@@ -10185,6 +10437,13 @@ interface Surface {
10185
10437
  * compared to [property`Gdk`.Surface:scale].
10186
10438
  */
10187
10439
  readonly scale_factor: number
10440
+ /**
10441
+ * The scale factor of the surface.
10442
+ *
10443
+ * The scale factor is the next larger integer,
10444
+ * compared to [property`Gdk`.Surface:scale].
10445
+ */
10446
+ readonly scaleFactor: number
10188
10447
  /**
10189
10448
  * The width of the surface in pixels.
10190
10449
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gdk-4.0",
3
- "version": "4.0.0-3.2.4",
3
+ "version": "4.0.0-3.2.6",
4
4
  "description": "GJS TypeScript type definitions for Gdk-4.0, generated from library version 4.0.0",
5
5
  "type": "module",
6
6
  "module": "gdk-4.0.js",
@@ -25,17 +25,17 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gdk-4.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/cairo-1.0": "^1.0.0-3.2.4",
29
- "@girs/freetype2-2.0": "^2.0.0-3.2.4",
30
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.4",
31
- "@girs/gio-2.0": "^2.78.0-3.2.4",
32
- "@girs/gjs": "^3.2.4",
33
- "@girs/glib-2.0": "^2.78.0-3.2.4",
34
- "@girs/gmodule-2.0": "^2.0.0-3.2.4",
35
- "@girs/gobject-2.0": "^2.78.0-3.2.4",
36
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.4",
37
- "@girs/pango-1.0": "^1.51.0-3.2.4",
38
- "@girs/pangocairo-1.0": "^1.0.0-3.2.4"
28
+ "@girs/cairo-1.0": "^1.0.0-3.2.6",
29
+ "@girs/freetype2-2.0": "^2.0.0-3.2.6",
30
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
31
+ "@girs/gio-2.0": "^2.78.0-3.2.6",
32
+ "@girs/gjs": "^3.2.6",
33
+ "@girs/glib-2.0": "^2.78.0-3.2.6",
34
+ "@girs/gmodule-2.0": "^2.0.0-3.2.6",
35
+ "@girs/gobject-2.0": "^2.78.0-3.2.6",
36
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
37
+ "@girs/pango-1.0": "^1.51.0-3.2.6",
38
+ "@girs/pangocairo-1.0": "^1.0.0-3.2.6"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "*"