@girs/gdk-3.0 3.24.38-3.2.5 → 3.24.38-3.2.7

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-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gdk-3.0, generated from library version 3.24.38 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.5.
8
+ GJS TypeScript type definitions for Gdk-3.0, generated from library version 3.24.38 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  An intermediate layer which isolates GTK+ from the details of the windowing system.
11
11
 
package/gdk-3.0.d.cts CHANGED
@@ -4620,7 +4620,7 @@ export function add_option_entries_libgtk_only(group: GLib.OptionGroup): void
4620
4620
  * @param only_if_exists if %TRUE, GDK is allowed to not create a new atom, but just return %GDK_NONE if the requested atom doesn’t already exists. Currently, the flag is ignored, since checking the existance of an atom is as expensive as creating it.
4621
4621
  * @returns the atom corresponding to @atom_name.
4622
4622
  */
4623
- export function atom_intern(atom_name: string | null, only_if_exists: boolean): Atom
4623
+ export function atom_intern(atom_name: string, only_if_exists: boolean): Atom
4624
4624
  /**
4625
4625
  * Finds or creates an atom corresponding to a given string.
4626
4626
  *
@@ -4635,7 +4635,7 @@ export function atom_intern(atom_name: string | null, only_if_exists: boolean):
4635
4635
  * @param atom_name a static string
4636
4636
  * @returns the atom corresponding to @atom_name
4637
4637
  */
4638
- export function atom_intern_static_string(atom_name: string | null): Atom
4638
+ export function atom_intern_static_string(atom_name: string): Atom
4639
4639
  /**
4640
4640
  * Emits a short beep on the default display.
4641
4641
  */
@@ -4783,7 +4783,7 @@ export function cairo_surface_create_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf, scale
4783
4783
  * @param spec the string specifying the color
4784
4784
  * @returns %TRUE if the parsing succeeded
4785
4785
  */
4786
- export function color_parse(spec: string | null): [ /* returnType */ boolean, /* color */ Color ]
4786
+ export function color_parse(spec: string): [ /* returnType */ boolean, /* color */ Color ]
4787
4787
  /**
4788
4788
  * Disables multidevice support in GDK. This call must happen prior
4789
4789
  * to gdk_display_open(), gtk_init(), gtk_init_with_args() or
@@ -5104,7 +5104,7 @@ export function get_display_arg_name(): string | null
5104
5104
  * with g_get_prgname()) with the first character converted to uppercase.
5105
5105
  * @returns the program class.
5106
5106
  */
5107
- export function get_program_class(): string | null
5107
+ export function get_program_class(): string
5108
5108
  /**
5109
5109
  * Gets whether event debugging output is enabled.
5110
5110
  * @returns %TRUE if event debugging output is enabled.
@@ -5172,7 +5172,7 @@ export function keyval_convert_case(symbol: number): [ /* lower */ number, /* up
5172
5172
  * @param keyval_name a key name
5173
5173
  * @returns the corresponding key value, or %GDK_KEY_VoidSymbol if the key name is not a valid key
5174
5174
  */
5175
- export function keyval_from_name(keyval_name: string | null): number
5175
+ export function keyval_from_name(keyval_name: string): number
5176
5176
  /**
5177
5177
  * Returns %TRUE if the given key value is in lower case.
5178
5178
  * @param keyval a key value.
@@ -5246,7 +5246,7 @@ export function notify_startup_complete(): void
5246
5246
  * disable that feature.
5247
5247
  * @param startup_id a startup-notification identifier, for which notification process should be completed
5248
5248
  */
5249
- export function notify_startup_complete_with_id(startup_id: string | null): void
5249
+ export function notify_startup_complete_with_id(startup_id: string): void
5250
5250
  /**
5251
5251
  * Gets the window that `window` is embedded in.
5252
5252
  * @param window a #GdkWindow
@@ -5586,7 +5586,7 @@ export function selection_send_notify_for_display(display: Display, requestor: W
5586
5586
  * in order to take effect.
5587
5587
  * @param backends a comma-separated list of backends
5588
5588
  */
5589
- export function set_allowed_backends(backends: string | null): void
5589
+ export function set_allowed_backends(backends: string): void
5590
5590
  /**
5591
5591
  * Set the double click time for the default display. See
5592
5592
  * gdk_display_set_double_click_time().
@@ -5605,7 +5605,7 @@ export function set_double_click_time(msec: number): void
5605
5605
  * line option.
5606
5606
  * @param program_class a string.
5607
5607
  */
5608
- export function set_program_class(program_class: string | null): void
5608
+ export function set_program_class(program_class: string): void
5609
5609
  /**
5610
5610
  * Sets whether a trace of received events is output.
5611
5611
  * Note that GTK+ must be compiled with debugging (that is,
@@ -5621,7 +5621,7 @@ export function set_show_events(show_events: boolean): void
5621
5621
  * @param value location to store the value of the setting.
5622
5622
  * @returns %TRUE if the setting existed and a value was stored in @value, %FALSE otherwise.
5623
5623
  */
5624
- export function setting_get(name: string | null, value: any): boolean
5624
+ export function setting_get(name: string, value: any): boolean
5625
5625
  export function synthesize_window_state(window: Window, unset_flags: WindowState, set_flags: WindowState): void
5626
5626
  /**
5627
5627
  * Retrieves a pixel from `window` to force the windowing
@@ -5834,7 +5834,7 @@ export function unicode_to_keyval(wc: number): number
5834
5834
  * @param str a UTF-8 string
5835
5835
  * @returns the newly-allocated string, or %NULL if the conversion failed. (It should not fail for any properly formed UTF-8 string unless system limits like memory or file descriptors are exceeded.)
5836
5836
  */
5837
- export function utf8_to_string_target(str: string | null): string | null
5837
+ export function utf8_to_string_target(str: string): string | null
5838
5838
  /**
5839
5839
  * Specifies the type of function passed to gdk_event_handler_set() to
5840
5840
  * handle all GDK events.
@@ -6194,6 +6194,7 @@ export module Cursor {
6194
6194
 
6195
6195
  cursor_type?: CursorType | null
6196
6196
  display?: Display | null
6197
+ cursorType?: CursorType | null
6197
6198
  }
6198
6199
 
6199
6200
  }
@@ -6203,6 +6204,7 @@ export interface Cursor {
6203
6204
  // Own properties of Gdk-3.0.Gdk.Cursor
6204
6205
 
6205
6206
  readonly cursor_type: CursorType
6207
+ readonly cursorType: CursorType
6206
6208
  readonly display: Display
6207
6209
 
6208
6210
  // Owm methods of Gdk-3.0.Gdk.Cursor
@@ -6361,7 +6363,7 @@ export class Cursor extends GObject.Object {
6361
6363
  * @param name the name of the cursor
6362
6364
  * @returns a new #GdkCursor, or %NULL if there is no cursor with the given name
6363
6365
  */
6364
- static new_from_name(display: Display, name: string | null): Cursor
6366
+ static new_from_name(display: Display, name: string): Cursor
6365
6367
  /**
6366
6368
  * Creates a new cursor from a pixbuf.
6367
6369
  *
@@ -6483,6 +6485,34 @@ export module Device {
6483
6485
  * Vendor ID of this device, see gdk_device_get_vendor_id().
6484
6486
  */
6485
6487
  vendor_id?: string | null
6488
+ /**
6489
+ * The #GdkDeviceManager the #GdkDevice pertains to.
6490
+ */
6491
+ deviceManager?: DeviceManager | null
6492
+ /**
6493
+ * Whether the device is represented by a cursor on the screen. Devices of type
6494
+ * %GDK_DEVICE_TYPE_MASTER will have %TRUE here.
6495
+ */
6496
+ hasCursor?: boolean | null
6497
+ inputMode?: InputMode | null
6498
+ /**
6499
+ * Source type for the device.
6500
+ */
6501
+ inputSource?: InputSource | null
6502
+ /**
6503
+ * The maximal number of concurrent touches on a touch device.
6504
+ * Will be 0 if the device is not a touch device or if the number
6505
+ * of touches is unknown.
6506
+ */
6507
+ numTouches?: number | null
6508
+ /**
6509
+ * Product ID of this device, see gdk_device_get_product_id().
6510
+ */
6511
+ productId?: string | null
6512
+ /**
6513
+ * Vendor ID of this device, see gdk_device_get_vendor_id().
6514
+ */
6515
+ vendorId?: string | null
6486
6516
  }
6487
6517
 
6488
6518
  }
@@ -6496,6 +6526,11 @@ export interface Device {
6496
6526
  * always come in keyboard/pointer pairs. Other device types will have a %NULL associated device.
6497
6527
  */
6498
6528
  readonly associated_device: Device
6529
+ /**
6530
+ * Associated pointer or keyboard with this device, if any. Devices of type #GDK_DEVICE_TYPE_MASTER
6531
+ * always come in keyboard/pointer pairs. Other device types will have a %NULL associated device.
6532
+ */
6533
+ readonly associatedDevice: Device
6499
6534
  /**
6500
6535
  * The axes currently available for this device.
6501
6536
  */
@@ -6504,6 +6539,10 @@ export interface Device {
6504
6539
  * The #GdkDeviceManager the #GdkDevice pertains to.
6505
6540
  */
6506
6541
  readonly device_manager: DeviceManager
6542
+ /**
6543
+ * The #GdkDeviceManager the #GdkDevice pertains to.
6544
+ */
6545
+ readonly deviceManager: DeviceManager
6507
6546
  /**
6508
6547
  * The #GdkDisplay the #GdkDevice pertains to.
6509
6548
  */
@@ -6513,15 +6552,29 @@ export interface Device {
6513
6552
  * %GDK_DEVICE_TYPE_MASTER will have %TRUE here.
6514
6553
  */
6515
6554
  readonly has_cursor: boolean
6555
+ /**
6556
+ * Whether the device is represented by a cursor on the screen. Devices of type
6557
+ * %GDK_DEVICE_TYPE_MASTER will have %TRUE here.
6558
+ */
6559
+ readonly hasCursor: boolean
6516
6560
  input_mode: InputMode
6561
+ inputMode: InputMode
6517
6562
  /**
6518
6563
  * Source type for the device.
6519
6564
  */
6520
6565
  readonly input_source: InputSource
6566
+ /**
6567
+ * Source type for the device.
6568
+ */
6569
+ readonly inputSource: InputSource
6521
6570
  /**
6522
6571
  * Number of axes in the device.
6523
6572
  */
6524
6573
  readonly n_axes: number
6574
+ /**
6575
+ * Number of axes in the device.
6576
+ */
6577
+ readonly nAxes: number
6525
6578
  /**
6526
6579
  * The device name.
6527
6580
  */
@@ -6532,10 +6585,20 @@ export interface Device {
6532
6585
  * of touches is unknown.
6533
6586
  */
6534
6587
  readonly num_touches: number
6588
+ /**
6589
+ * The maximal number of concurrent touches on a touch device.
6590
+ * Will be 0 if the device is not a touch device or if the number
6591
+ * of touches is unknown.
6592
+ */
6593
+ readonly numTouches: number
6535
6594
  /**
6536
6595
  * Product ID of this device, see gdk_device_get_product_id().
6537
6596
  */
6538
6597
  readonly product_id: string | null
6598
+ /**
6599
+ * Product ID of this device, see gdk_device_get_product_id().
6600
+ */
6601
+ readonly productId: string | null
6539
6602
  /**
6540
6603
  * #GdkSeat of this device.
6541
6604
  */
@@ -6549,6 +6612,10 @@ export interface Device {
6549
6612
  * Vendor ID of this device, see gdk_device_get_vendor_id().
6550
6613
  */
6551
6614
  readonly vendor_id: string | null
6615
+ /**
6616
+ * Vendor ID of this device, see gdk_device_get_vendor_id().
6617
+ */
6618
+ readonly vendorId: string | null
6552
6619
 
6553
6620
  // Owm methods of Gdk-3.0.Gdk.Device
6554
6621
 
@@ -6626,7 +6693,7 @@ export interface Device {
6626
6693
  * Determines the name of the device.
6627
6694
  * @returns a name
6628
6695
  */
6629
- get_name(): string | null
6696
+ get_name(): string
6630
6697
  /**
6631
6698
  * Gets the current location of `device`. As a slave device
6632
6699
  * coordinates are those of its master pointer, This function
@@ -7131,6 +7198,8 @@ export module DeviceTool {
7131
7198
  hardware_id?: number | null
7132
7199
  serial?: number | null
7133
7200
  tool_type?: DeviceToolType | null
7201
+ hardwareId?: number | null
7202
+ toolType?: DeviceToolType | null
7134
7203
  }
7135
7204
 
7136
7205
  }
@@ -7141,8 +7210,10 @@ export interface DeviceTool {
7141
7210
 
7142
7211
  readonly axes: AxisFlags
7143
7212
  readonly hardware_id: number
7213
+ readonly hardwareId: number
7144
7214
  readonly serial: number
7145
7215
  readonly tool_type: DeviceToolType
7216
+ readonly toolType: DeviceToolType
7146
7217
 
7147
7218
  // Owm methods of Gdk-3.0.Gdk.DeviceTool
7148
7219
 
@@ -7371,7 +7442,7 @@ export interface Display {
7371
7442
  * Gets the name of the display.
7372
7443
  * @returns a string representing the display name. This string is owned by GDK and should not be modified or freed.
7373
7444
  */
7374
- get_name(): string | null
7445
+ get_name(): string
7375
7446
  /**
7376
7447
  * Gets the current location of the pointer and the current modifier
7377
7448
  * mask for a given display.
@@ -7438,7 +7509,7 @@ export interface Display {
7438
7509
  * disable that feature.
7439
7510
  * @param startup_id a startup-notification identifier, for which notification process should be completed
7440
7511
  */
7441
- notify_startup_complete(startup_id: string | null): void
7512
+ notify_startup_complete(startup_id: string): void
7442
7513
  /**
7443
7514
  * Gets a copy of the first #GdkEvent in the `display’`s event queue, without
7444
7515
  * removing the event from the queue. (Note that this function will
@@ -7649,7 +7720,7 @@ export class Display extends GObject.Object {
7649
7720
  * @param display_name the name of the display to open
7650
7721
  * @returns a #GdkDisplay, or %NULL if the display could not be opened
7651
7722
  */
7652
- static open(display_name: string | null): Display | null
7723
+ static open(display_name: string): Display | null
7653
7724
  /**
7654
7725
  * Opens the default display specified by command line arguments or
7655
7726
  * environment variables, sets it as the default display, and returns
@@ -7680,6 +7751,7 @@ export module DisplayManager {
7680
7751
  // Own constructor properties of Gdk-3.0.Gdk.DisplayManager
7681
7752
 
7682
7753
  default_display?: Display | null
7754
+ defaultDisplay?: Display | null
7683
7755
  }
7684
7756
 
7685
7757
  }
@@ -7689,6 +7761,7 @@ export interface DisplayManager {
7689
7761
  // Own properties of Gdk-3.0.Gdk.DisplayManager
7690
7762
 
7691
7763
  default_display: Display
7764
+ defaultDisplay: Display
7692
7765
 
7693
7766
  // Owm methods of Gdk-3.0.Gdk.DisplayManager
7694
7767
 
@@ -7707,7 +7780,7 @@ export interface DisplayManager {
7707
7780
  * @param name the name of the display to open
7708
7781
  * @returns a #GdkDisplay, or %NULL if the display could not be opened
7709
7782
  */
7710
- open_display(name: string | null): Display | null
7783
+ open_display(name: string): Display | null
7711
7784
  /**
7712
7785
  * Sets `display` as the default display.
7713
7786
  * @param display a #GdkDisplay
@@ -8311,6 +8384,10 @@ export module GLContext {
8311
8384
  * The #GdkWindow the gl context is bound to.
8312
8385
  */
8313
8386
  window?: Window | null
8387
+ /**
8388
+ * The #GdkGLContext that this context is sharing data with, or %NULL
8389
+ */
8390
+ sharedContext?: GLContext | null
8314
8391
  }
8315
8392
 
8316
8393
  }
@@ -8327,6 +8404,10 @@ export interface GLContext {
8327
8404
  * The #GdkGLContext that this context is sharing data with, or %NULL
8328
8405
  */
8329
8406
  readonly shared_context: GLContext
8407
+ /**
8408
+ * The #GdkGLContext that this context is sharing data with, or %NULL
8409
+ */
8410
+ readonly sharedContext: GLContext
8330
8411
  /**
8331
8412
  * The #GdkWindow the gl context is bound to.
8332
8413
  */
@@ -8841,12 +8922,17 @@ export interface Monitor {
8841
8922
  readonly display: Display
8842
8923
  readonly geometry: Rectangle
8843
8924
  readonly height_mm: number
8925
+ readonly heightMm: number
8844
8926
  readonly manufacturer: string | null
8845
8927
  readonly model: string | null
8846
8928
  readonly refresh_rate: number
8929
+ readonly refreshRate: number
8847
8930
  readonly scale_factor: number
8931
+ readonly scaleFactor: number
8848
8932
  readonly subpixel_layout: SubpixelLayout
8933
+ readonly subpixelLayout: SubpixelLayout
8849
8934
  readonly width_mm: number
8935
+ readonly widthMm: number
8850
8936
  readonly workarea: Rectangle
8851
8937
 
8852
8938
  // Owm methods of Gdk-3.0.Gdk.Monitor
@@ -9036,6 +9122,7 @@ export module Screen {
9036
9122
 
9037
9123
  font_options?: any | null
9038
9124
  resolution?: number | null
9125
+ fontOptions?: any | null
9039
9126
  }
9040
9127
 
9041
9128
  }
@@ -9045,6 +9132,7 @@ export interface Screen {
9045
9132
  // Own properties of Gdk-3.0.Gdk.Screen
9046
9133
 
9047
9134
  font_options: any
9135
+ fontOptions: any
9048
9136
  resolution: number
9049
9137
 
9050
9138
  // Owm methods of Gdk-3.0.Gdk.Screen
@@ -9233,7 +9321,7 @@ export interface Screen {
9233
9321
  * @param value location to store the value of the setting
9234
9322
  * @returns %TRUE if the setting existed and a value was stored in @value, %FALSE otherwise.
9235
9323
  */
9236
- get_setting(name: string | null, value: any): boolean
9324
+ get_setting(name: string, value: any): boolean
9237
9325
  /**
9238
9326
  * Get the system’s default visual for `screen`.
9239
9327
  * This is the visual for the root window of the display.
@@ -11268,7 +11356,7 @@ export interface Window {
11268
11356
  * non-interchangeable kind of window.
11269
11357
  * @param role a string indicating its role
11270
11358
  */
11271
- set_role(role: string | null): void
11359
+ set_role(role: string): void
11272
11360
  /**
11273
11361
  * Newer GTK+ windows using client-side decorations use extra geometry
11274
11362
  * around their frames for effects like shadows and invisible borders.
@@ -11321,7 +11409,7 @@ export interface Window {
11321
11409
  * instead of this low-level function.
11322
11410
  * @param startup_id a string with startup-notification identifier
11323
11411
  */
11324
- set_startup_id(startup_id: string | null): void
11412
+ set_startup_id(startup_id: string): void
11325
11413
  /**
11326
11414
  * Used to set the bit gravity of the given window to static, and flag
11327
11415
  * it so all children get static subwindow gravity. This is used if you
@@ -11347,7 +11435,7 @@ export interface Window {
11347
11435
  * user-readable strings in GDK/GTK+). `title` may not be %NULL.
11348
11436
  * @param title title of `window`
11349
11437
  */
11350
- set_title(title: string | null): void
11438
+ set_title(title: string): void
11351
11439
  /**
11352
11440
  * Indicates to the window manager that `window` is a transient dialog
11353
11441
  * associated with the application window `parent`. This allows the
@@ -11652,7 +11740,7 @@ export class Atom {
11652
11740
  * @param only_if_exists if %TRUE, GDK is allowed to not create a new atom, but just return %GDK_NONE if the requested atom doesn’t already exists. Currently, the flag is ignored, since checking the existance of an atom is as expensive as creating it.
11653
11741
  * @returns the atom corresponding to @atom_name.
11654
11742
  */
11655
- static intern(atom_name: string | null, only_if_exists: boolean): Atom
11743
+ static intern(atom_name: string, only_if_exists: boolean): Atom
11656
11744
  /**
11657
11745
  * Finds or creates an atom corresponding to a given string.
11658
11746
  *
@@ -11667,7 +11755,7 @@ export class Atom {
11667
11755
  * @param atom_name a static string
11668
11756
  * @returns the atom corresponding to @atom_name
11669
11757
  */
11670
- static intern_static_string(atom_name: string | null): Atom
11758
+ static intern_static_string(atom_name: string): Atom
11671
11759
  }
11672
11760
 
11673
11761
  export interface Color {
@@ -11761,7 +11849,7 @@ export class Color {
11761
11849
  * @param spec the string specifying the color
11762
11850
  * @returns %TRUE if the parsing succeeded
11763
11851
  */
11764
- static parse(spec: string | null): [ /* returnType */ boolean, /* color */ Color ]
11852
+ static parse(spec: string): [ /* returnType */ boolean, /* color */ Color ]
11765
11853
  }
11766
11854
 
11767
11855
  export interface DevicePadInterface {
@@ -13732,7 +13820,7 @@ export interface RGBA {
13732
13820
  * @param spec the string specifying the color
13733
13821
  * @returns %TRUE if the parsing succeeded
13734
13822
  */
13735
- parse(spec: string | null): boolean
13823
+ parse(spec: string): boolean
13736
13824
  /**
13737
13825
  * Returns a textual specification of `rgba` in the form
13738
13826
  * `rgb(r,g,b)` or
package/gdk-3.0.d.ts CHANGED
@@ -4622,7 +4622,7 @@ function add_option_entries_libgtk_only(group: GLib.OptionGroup): void
4622
4622
  * @param only_if_exists if %TRUE, GDK is allowed to not create a new atom, but just return %GDK_NONE if the requested atom doesn’t already exists. Currently, the flag is ignored, since checking the existance of an atom is as expensive as creating it.
4623
4623
  * @returns the atom corresponding to @atom_name.
4624
4624
  */
4625
- function atom_intern(atom_name: string | null, only_if_exists: boolean): Atom
4625
+ function atom_intern(atom_name: string, only_if_exists: boolean): Atom
4626
4626
  /**
4627
4627
  * Finds or creates an atom corresponding to a given string.
4628
4628
  *
@@ -4637,7 +4637,7 @@ function atom_intern(atom_name: string | null, only_if_exists: boolean): Atom
4637
4637
  * @param atom_name a static string
4638
4638
  * @returns the atom corresponding to @atom_name
4639
4639
  */
4640
- function atom_intern_static_string(atom_name: string | null): Atom
4640
+ function atom_intern_static_string(atom_name: string): Atom
4641
4641
  /**
4642
4642
  * Emits a short beep on the default display.
4643
4643
  */
@@ -4785,7 +4785,7 @@ function cairo_surface_create_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf, scale: numbe
4785
4785
  * @param spec the string specifying the color
4786
4786
  * @returns %TRUE if the parsing succeeded
4787
4787
  */
4788
- function color_parse(spec: string | null): [ /* returnType */ boolean, /* color */ Color ]
4788
+ function color_parse(spec: string): [ /* returnType */ boolean, /* color */ Color ]
4789
4789
  /**
4790
4790
  * Disables multidevice support in GDK. This call must happen prior
4791
4791
  * to gdk_display_open(), gtk_init(), gtk_init_with_args() or
@@ -5106,7 +5106,7 @@ function get_display_arg_name(): string | null
5106
5106
  * with g_get_prgname()) with the first character converted to uppercase.
5107
5107
  * @returns the program class.
5108
5108
  */
5109
- function get_program_class(): string | null
5109
+ function get_program_class(): string
5110
5110
  /**
5111
5111
  * Gets whether event debugging output is enabled.
5112
5112
  * @returns %TRUE if event debugging output is enabled.
@@ -5174,7 +5174,7 @@ function keyval_convert_case(symbol: number): [ /* lower */ number, /* upper */
5174
5174
  * @param keyval_name a key name
5175
5175
  * @returns the corresponding key value, or %GDK_KEY_VoidSymbol if the key name is not a valid key
5176
5176
  */
5177
- function keyval_from_name(keyval_name: string | null): number
5177
+ function keyval_from_name(keyval_name: string): number
5178
5178
  /**
5179
5179
  * Returns %TRUE if the given key value is in lower case.
5180
5180
  * @param keyval a key value.
@@ -5248,7 +5248,7 @@ function notify_startup_complete(): void
5248
5248
  * disable that feature.
5249
5249
  * @param startup_id a startup-notification identifier, for which notification process should be completed
5250
5250
  */
5251
- function notify_startup_complete_with_id(startup_id: string | null): void
5251
+ function notify_startup_complete_with_id(startup_id: string): void
5252
5252
  /**
5253
5253
  * Gets the window that `window` is embedded in.
5254
5254
  * @param window a #GdkWindow
@@ -5588,7 +5588,7 @@ function selection_send_notify_for_display(display: Display, requestor: Window,
5588
5588
  * in order to take effect.
5589
5589
  * @param backends a comma-separated list of backends
5590
5590
  */
5591
- function set_allowed_backends(backends: string | null): void
5591
+ function set_allowed_backends(backends: string): void
5592
5592
  /**
5593
5593
  * Set the double click time for the default display. See
5594
5594
  * gdk_display_set_double_click_time().
@@ -5607,7 +5607,7 @@ function set_double_click_time(msec: number): void
5607
5607
  * line option.
5608
5608
  * @param program_class a string.
5609
5609
  */
5610
- function set_program_class(program_class: string | null): void
5610
+ function set_program_class(program_class: string): void
5611
5611
  /**
5612
5612
  * Sets whether a trace of received events is output.
5613
5613
  * Note that GTK+ must be compiled with debugging (that is,
@@ -5623,7 +5623,7 @@ function set_show_events(show_events: boolean): void
5623
5623
  * @param value location to store the value of the setting.
5624
5624
  * @returns %TRUE if the setting existed and a value was stored in @value, %FALSE otherwise.
5625
5625
  */
5626
- function setting_get(name: string | null, value: any): boolean
5626
+ function setting_get(name: string, value: any): boolean
5627
5627
  function synthesize_window_state(window: Window, unset_flags: WindowState, set_flags: WindowState): void
5628
5628
  /**
5629
5629
  * Retrieves a pixel from `window` to force the windowing
@@ -5836,7 +5836,7 @@ function unicode_to_keyval(wc: number): number
5836
5836
  * @param str a UTF-8 string
5837
5837
  * @returns the newly-allocated string, or %NULL if the conversion failed. (It should not fail for any properly formed UTF-8 string unless system limits like memory or file descriptors are exceeded.)
5838
5838
  */
5839
- function utf8_to_string_target(str: string | null): string | null
5839
+ function utf8_to_string_target(str: string): string | null
5840
5840
  /**
5841
5841
  * Specifies the type of function passed to gdk_event_handler_set() to
5842
5842
  * handle all GDK events.
@@ -6196,6 +6196,7 @@ module Cursor {
6196
6196
 
6197
6197
  cursor_type?: CursorType | null
6198
6198
  display?: Display | null
6199
+ cursorType?: CursorType | null
6199
6200
  }
6200
6201
 
6201
6202
  }
@@ -6205,6 +6206,7 @@ interface Cursor {
6205
6206
  // Own properties of Gdk-3.0.Gdk.Cursor
6206
6207
 
6207
6208
  readonly cursor_type: CursorType
6209
+ readonly cursorType: CursorType
6208
6210
  readonly display: Display
6209
6211
 
6210
6212
  // Owm methods of Gdk-3.0.Gdk.Cursor
@@ -6363,7 +6365,7 @@ class Cursor extends GObject.Object {
6363
6365
  * @param name the name of the cursor
6364
6366
  * @returns a new #GdkCursor, or %NULL if there is no cursor with the given name
6365
6367
  */
6366
- static new_from_name(display: Display, name: string | null): Cursor
6368
+ static new_from_name(display: Display, name: string): Cursor
6367
6369
  /**
6368
6370
  * Creates a new cursor from a pixbuf.
6369
6371
  *
@@ -6485,6 +6487,34 @@ module Device {
6485
6487
  * Vendor ID of this device, see gdk_device_get_vendor_id().
6486
6488
  */
6487
6489
  vendor_id?: string | null
6490
+ /**
6491
+ * The #GdkDeviceManager the #GdkDevice pertains to.
6492
+ */
6493
+ deviceManager?: DeviceManager | null
6494
+ /**
6495
+ * Whether the device is represented by a cursor on the screen. Devices of type
6496
+ * %GDK_DEVICE_TYPE_MASTER will have %TRUE here.
6497
+ */
6498
+ hasCursor?: boolean | null
6499
+ inputMode?: InputMode | null
6500
+ /**
6501
+ * Source type for the device.
6502
+ */
6503
+ inputSource?: InputSource | null
6504
+ /**
6505
+ * The maximal number of concurrent touches on a touch device.
6506
+ * Will be 0 if the device is not a touch device or if the number
6507
+ * of touches is unknown.
6508
+ */
6509
+ numTouches?: number | null
6510
+ /**
6511
+ * Product ID of this device, see gdk_device_get_product_id().
6512
+ */
6513
+ productId?: string | null
6514
+ /**
6515
+ * Vendor ID of this device, see gdk_device_get_vendor_id().
6516
+ */
6517
+ vendorId?: string | null
6488
6518
  }
6489
6519
 
6490
6520
  }
@@ -6498,6 +6528,11 @@ interface Device {
6498
6528
  * always come in keyboard/pointer pairs. Other device types will have a %NULL associated device.
6499
6529
  */
6500
6530
  readonly associated_device: Device
6531
+ /**
6532
+ * Associated pointer or keyboard with this device, if any. Devices of type #GDK_DEVICE_TYPE_MASTER
6533
+ * always come in keyboard/pointer pairs. Other device types will have a %NULL associated device.
6534
+ */
6535
+ readonly associatedDevice: Device
6501
6536
  /**
6502
6537
  * The axes currently available for this device.
6503
6538
  */
@@ -6506,6 +6541,10 @@ interface Device {
6506
6541
  * The #GdkDeviceManager the #GdkDevice pertains to.
6507
6542
  */
6508
6543
  readonly device_manager: DeviceManager
6544
+ /**
6545
+ * The #GdkDeviceManager the #GdkDevice pertains to.
6546
+ */
6547
+ readonly deviceManager: DeviceManager
6509
6548
  /**
6510
6549
  * The #GdkDisplay the #GdkDevice pertains to.
6511
6550
  */
@@ -6515,15 +6554,29 @@ interface Device {
6515
6554
  * %GDK_DEVICE_TYPE_MASTER will have %TRUE here.
6516
6555
  */
6517
6556
  readonly has_cursor: boolean
6557
+ /**
6558
+ * Whether the device is represented by a cursor on the screen. Devices of type
6559
+ * %GDK_DEVICE_TYPE_MASTER will have %TRUE here.
6560
+ */
6561
+ readonly hasCursor: boolean
6518
6562
  input_mode: InputMode
6563
+ inputMode: InputMode
6519
6564
  /**
6520
6565
  * Source type for the device.
6521
6566
  */
6522
6567
  readonly input_source: InputSource
6568
+ /**
6569
+ * Source type for the device.
6570
+ */
6571
+ readonly inputSource: InputSource
6523
6572
  /**
6524
6573
  * Number of axes in the device.
6525
6574
  */
6526
6575
  readonly n_axes: number
6576
+ /**
6577
+ * Number of axes in the device.
6578
+ */
6579
+ readonly nAxes: number
6527
6580
  /**
6528
6581
  * The device name.
6529
6582
  */
@@ -6534,10 +6587,20 @@ interface Device {
6534
6587
  * of touches is unknown.
6535
6588
  */
6536
6589
  readonly num_touches: number
6590
+ /**
6591
+ * The maximal number of concurrent touches on a touch device.
6592
+ * Will be 0 if the device is not a touch device or if the number
6593
+ * of touches is unknown.
6594
+ */
6595
+ readonly numTouches: number
6537
6596
  /**
6538
6597
  * Product ID of this device, see gdk_device_get_product_id().
6539
6598
  */
6540
6599
  readonly product_id: string | null
6600
+ /**
6601
+ * Product ID of this device, see gdk_device_get_product_id().
6602
+ */
6603
+ readonly productId: string | null
6541
6604
  /**
6542
6605
  * #GdkSeat of this device.
6543
6606
  */
@@ -6551,6 +6614,10 @@ interface Device {
6551
6614
  * Vendor ID of this device, see gdk_device_get_vendor_id().
6552
6615
  */
6553
6616
  readonly vendor_id: string | null
6617
+ /**
6618
+ * Vendor ID of this device, see gdk_device_get_vendor_id().
6619
+ */
6620
+ readonly vendorId: string | null
6554
6621
 
6555
6622
  // Owm methods of Gdk-3.0.Gdk.Device
6556
6623
 
@@ -6628,7 +6695,7 @@ interface Device {
6628
6695
  * Determines the name of the device.
6629
6696
  * @returns a name
6630
6697
  */
6631
- get_name(): string | null
6698
+ get_name(): string
6632
6699
  /**
6633
6700
  * Gets the current location of `device`. As a slave device
6634
6701
  * coordinates are those of its master pointer, This function
@@ -7133,6 +7200,8 @@ module DeviceTool {
7133
7200
  hardware_id?: number | null
7134
7201
  serial?: number | null
7135
7202
  tool_type?: DeviceToolType | null
7203
+ hardwareId?: number | null
7204
+ toolType?: DeviceToolType | null
7136
7205
  }
7137
7206
 
7138
7207
  }
@@ -7143,8 +7212,10 @@ interface DeviceTool {
7143
7212
 
7144
7213
  readonly axes: AxisFlags
7145
7214
  readonly hardware_id: number
7215
+ readonly hardwareId: number
7146
7216
  readonly serial: number
7147
7217
  readonly tool_type: DeviceToolType
7218
+ readonly toolType: DeviceToolType
7148
7219
 
7149
7220
  // Owm methods of Gdk-3.0.Gdk.DeviceTool
7150
7221
 
@@ -7373,7 +7444,7 @@ interface Display {
7373
7444
  * Gets the name of the display.
7374
7445
  * @returns a string representing the display name. This string is owned by GDK and should not be modified or freed.
7375
7446
  */
7376
- get_name(): string | null
7447
+ get_name(): string
7377
7448
  /**
7378
7449
  * Gets the current location of the pointer and the current modifier
7379
7450
  * mask for a given display.
@@ -7440,7 +7511,7 @@ interface Display {
7440
7511
  * disable that feature.
7441
7512
  * @param startup_id a startup-notification identifier, for which notification process should be completed
7442
7513
  */
7443
- notify_startup_complete(startup_id: string | null): void
7514
+ notify_startup_complete(startup_id: string): void
7444
7515
  /**
7445
7516
  * Gets a copy of the first #GdkEvent in the `display’`s event queue, without
7446
7517
  * removing the event from the queue. (Note that this function will
@@ -7651,7 +7722,7 @@ class Display extends GObject.Object {
7651
7722
  * @param display_name the name of the display to open
7652
7723
  * @returns a #GdkDisplay, or %NULL if the display could not be opened
7653
7724
  */
7654
- static open(display_name: string | null): Display | null
7725
+ static open(display_name: string): Display | null
7655
7726
  /**
7656
7727
  * Opens the default display specified by command line arguments or
7657
7728
  * environment variables, sets it as the default display, and returns
@@ -7682,6 +7753,7 @@ module DisplayManager {
7682
7753
  // Own constructor properties of Gdk-3.0.Gdk.DisplayManager
7683
7754
 
7684
7755
  default_display?: Display | null
7756
+ defaultDisplay?: Display | null
7685
7757
  }
7686
7758
 
7687
7759
  }
@@ -7691,6 +7763,7 @@ interface DisplayManager {
7691
7763
  // Own properties of Gdk-3.0.Gdk.DisplayManager
7692
7764
 
7693
7765
  default_display: Display
7766
+ defaultDisplay: Display
7694
7767
 
7695
7768
  // Owm methods of Gdk-3.0.Gdk.DisplayManager
7696
7769
 
@@ -7709,7 +7782,7 @@ interface DisplayManager {
7709
7782
  * @param name the name of the display to open
7710
7783
  * @returns a #GdkDisplay, or %NULL if the display could not be opened
7711
7784
  */
7712
- open_display(name: string | null): Display | null
7785
+ open_display(name: string): Display | null
7713
7786
  /**
7714
7787
  * Sets `display` as the default display.
7715
7788
  * @param display a #GdkDisplay
@@ -8313,6 +8386,10 @@ module GLContext {
8313
8386
  * The #GdkWindow the gl context is bound to.
8314
8387
  */
8315
8388
  window?: Window | null
8389
+ /**
8390
+ * The #GdkGLContext that this context is sharing data with, or %NULL
8391
+ */
8392
+ sharedContext?: GLContext | null
8316
8393
  }
8317
8394
 
8318
8395
  }
@@ -8329,6 +8406,10 @@ interface GLContext {
8329
8406
  * The #GdkGLContext that this context is sharing data with, or %NULL
8330
8407
  */
8331
8408
  readonly shared_context: GLContext
8409
+ /**
8410
+ * The #GdkGLContext that this context is sharing data with, or %NULL
8411
+ */
8412
+ readonly sharedContext: GLContext
8332
8413
  /**
8333
8414
  * The #GdkWindow the gl context is bound to.
8334
8415
  */
@@ -8843,12 +8924,17 @@ interface Monitor {
8843
8924
  readonly display: Display
8844
8925
  readonly geometry: Rectangle
8845
8926
  readonly height_mm: number
8927
+ readonly heightMm: number
8846
8928
  readonly manufacturer: string | null
8847
8929
  readonly model: string | null
8848
8930
  readonly refresh_rate: number
8931
+ readonly refreshRate: number
8849
8932
  readonly scale_factor: number
8933
+ readonly scaleFactor: number
8850
8934
  readonly subpixel_layout: SubpixelLayout
8935
+ readonly subpixelLayout: SubpixelLayout
8851
8936
  readonly width_mm: number
8937
+ readonly widthMm: number
8852
8938
  readonly workarea: Rectangle
8853
8939
 
8854
8940
  // Owm methods of Gdk-3.0.Gdk.Monitor
@@ -9038,6 +9124,7 @@ module Screen {
9038
9124
 
9039
9125
  font_options?: any | null
9040
9126
  resolution?: number | null
9127
+ fontOptions?: any | null
9041
9128
  }
9042
9129
 
9043
9130
  }
@@ -9047,6 +9134,7 @@ interface Screen {
9047
9134
  // Own properties of Gdk-3.0.Gdk.Screen
9048
9135
 
9049
9136
  font_options: any
9137
+ fontOptions: any
9050
9138
  resolution: number
9051
9139
 
9052
9140
  // Owm methods of Gdk-3.0.Gdk.Screen
@@ -9235,7 +9323,7 @@ interface Screen {
9235
9323
  * @param value location to store the value of the setting
9236
9324
  * @returns %TRUE if the setting existed and a value was stored in @value, %FALSE otherwise.
9237
9325
  */
9238
- get_setting(name: string | null, value: any): boolean
9326
+ get_setting(name: string, value: any): boolean
9239
9327
  /**
9240
9328
  * Get the system’s default visual for `screen`.
9241
9329
  * This is the visual for the root window of the display.
@@ -11270,7 +11358,7 @@ interface Window {
11270
11358
  * non-interchangeable kind of window.
11271
11359
  * @param role a string indicating its role
11272
11360
  */
11273
- set_role(role: string | null): void
11361
+ set_role(role: string): void
11274
11362
  /**
11275
11363
  * Newer GTK+ windows using client-side decorations use extra geometry
11276
11364
  * around their frames for effects like shadows and invisible borders.
@@ -11323,7 +11411,7 @@ interface Window {
11323
11411
  * instead of this low-level function.
11324
11412
  * @param startup_id a string with startup-notification identifier
11325
11413
  */
11326
- set_startup_id(startup_id: string | null): void
11414
+ set_startup_id(startup_id: string): void
11327
11415
  /**
11328
11416
  * Used to set the bit gravity of the given window to static, and flag
11329
11417
  * it so all children get static subwindow gravity. This is used if you
@@ -11349,7 +11437,7 @@ interface Window {
11349
11437
  * user-readable strings in GDK/GTK+). `title` may not be %NULL.
11350
11438
  * @param title title of `window`
11351
11439
  */
11352
- set_title(title: string | null): void
11440
+ set_title(title: string): void
11353
11441
  /**
11354
11442
  * Indicates to the window manager that `window` is a transient dialog
11355
11443
  * associated with the application window `parent`. This allows the
@@ -11654,7 +11742,7 @@ class Atom {
11654
11742
  * @param only_if_exists if %TRUE, GDK is allowed to not create a new atom, but just return %GDK_NONE if the requested atom doesn’t already exists. Currently, the flag is ignored, since checking the existance of an atom is as expensive as creating it.
11655
11743
  * @returns the atom corresponding to @atom_name.
11656
11744
  */
11657
- static intern(atom_name: string | null, only_if_exists: boolean): Atom
11745
+ static intern(atom_name: string, only_if_exists: boolean): Atom
11658
11746
  /**
11659
11747
  * Finds or creates an atom corresponding to a given string.
11660
11748
  *
@@ -11669,7 +11757,7 @@ class Atom {
11669
11757
  * @param atom_name a static string
11670
11758
  * @returns the atom corresponding to @atom_name
11671
11759
  */
11672
- static intern_static_string(atom_name: string | null): Atom
11760
+ static intern_static_string(atom_name: string): Atom
11673
11761
  }
11674
11762
 
11675
11763
  interface Color {
@@ -11763,7 +11851,7 @@ class Color {
11763
11851
  * @param spec the string specifying the color
11764
11852
  * @returns %TRUE if the parsing succeeded
11765
11853
  */
11766
- static parse(spec: string | null): [ /* returnType */ boolean, /* color */ Color ]
11854
+ static parse(spec: string): [ /* returnType */ boolean, /* color */ Color ]
11767
11855
  }
11768
11856
 
11769
11857
  interface DevicePadInterface {
@@ -13734,7 +13822,7 @@ interface RGBA {
13734
13822
  * @param spec the string specifying the color
13735
13823
  * @returns %TRUE if the parsing succeeded
13736
13824
  */
13737
- parse(spec: string | null): boolean
13825
+ parse(spec: string): boolean
13738
13826
  /**
13739
13827
  * Returns a textual specification of `rgba` in the form
13740
13828
  * `rgb(r,g,b)` or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gdk-3.0",
3
- "version": "3.24.38-3.2.5",
3
+ "version": "3.24.38-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Gdk-3.0, generated from library version 3.24.38",
5
5
  "type": "module",
6
6
  "module": "gdk-3.0.js",
@@ -25,16 +25,16 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gdk-3.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/cairo-1.0": "^1.0.0-3.2.5",
29
- "@girs/freetype2-2.0": "^2.0.0-3.2.5",
30
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.5",
31
- "@girs/gio-2.0": "^2.78.0-3.2.5",
32
- "@girs/gjs": "^3.2.5",
33
- "@girs/glib-2.0": "^2.78.0-3.2.5",
34
- "@girs/gmodule-2.0": "^2.0.0-3.2.5",
35
- "@girs/gobject-2.0": "^2.78.0-3.2.5",
36
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.5",
37
- "@girs/pango-1.0": "^1.51.0-3.2.5"
28
+ "@girs/cairo-1.0": "^1.0.0-3.2.7",
29
+ "@girs/freetype2-2.0": "^2.0.0-3.2.7",
30
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
31
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
32
+ "@girs/gjs": "^3.2.7",
33
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
34
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
35
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
36
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
37
+ "@girs/pango-1.0": "^1.51.0-3.2.7"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "*"