@girs/gdk-4.0 4.1.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +8 -8
  2. package/gdk-4.0.d.ts +262 -61
  3. package/package.json +13 -14
package/README.md CHANGED
@@ -5,25 +5,25 @@
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) v4.1.0.
8
+ GJS TypeScript type definitions for Gdk-4.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
9
9
 
10
10
  ## Install
11
11
 
12
- To use this type definitions, install them with NPM:
12
+ Install the type definitions with npm:
13
13
  ```bash
14
14
  npm install @girs/gdk-4.0
15
15
  ```
16
16
 
17
17
  ## Usage
18
18
 
19
- You can import this package into your project like this:
19
+ Import it like any other module:
20
20
  ```ts
21
21
  import Gdk from '@girs/gdk-4.0';
22
22
  ```
23
23
 
24
24
  ### Ambient Modules
25
25
 
26
- You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
26
+ [Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
27
27
  For this you need to include `@girs/gdk-4.0` or `@girs/gdk-4.0/ambient` in your `tsconfig` or entry point Typescript file:
28
28
 
29
29
  `index.ts`:
@@ -42,7 +42,7 @@ import '@girs/gdk-4.0'
42
42
  }
43
43
  ```
44
44
 
45
- Now you can import the ambient module with TypeScript support:
45
+ The ambient module now resolves with types:
46
46
 
47
47
  ```ts
48
48
  import Gdk from 'gi://Gdk?version=4.0';
@@ -50,7 +50,7 @@ import Gdk from 'gi://Gdk?version=4.0';
50
50
 
51
51
  ### Global import
52
52
 
53
- You can also import the module with Typescript support using the global `imports.gi` object of GJS.
53
+ GJS's global `imports.gi` works too, with types.
54
54
  For this you need to include `@girs/gdk-4.0` or `@girs/gdk-4.0/import` in your `tsconfig` or entry point Typescript file:
55
55
 
56
56
  `index.ts`:
@@ -69,7 +69,7 @@ import '@girs/gdk-4.0'
69
69
  }
70
70
  ```
71
71
 
72
- Now you have also type support for this, too:
72
+ That form carries types as well:
73
73
 
74
74
  ```ts
75
75
  const Gdk = imports.gi.Gdk;
@@ -77,7 +77,7 @@ const Gdk = imports.gi.Gdk;
77
77
 
78
78
  ### Bundle
79
79
 
80
- 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).
80
+ Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
81
81
 
82
82
  ## Other packages
83
83
 
package/gdk-4.0.d.ts CHANGED
@@ -215,7 +215,7 @@ export namespace Gdk {
215
215
  /**
216
216
  * crossing because of a device switch (i.e.
217
217
  * a mouse taking control of the pointer after a touch device), this event
218
- * is synthetic as the pointer didn’t leave the surface.
218
+ * is synthetic as the pointer didnt leave the surface.
219
219
  */
220
220
  DEVICE_SWITCH,
221
221
  }
@@ -506,6 +506,80 @@ export namespace Gdk {
506
506
  }
507
507
 
508
508
 
509
+ /**
510
+ * @gir-type Enum
511
+ */
512
+ export namespace FrameResult {
513
+ export const $gtype: GObject.GType<FrameResult>;
514
+ }
515
+
516
+ /**
517
+ * An enumeration describing the process of rendering a frame.
518
+ * Rendering a frame starts with the frame clock cycle and then follows
519
+ * the rendered frame (if there was one) through the display server
520
+ * until it appears on screen.
521
+ *
522
+ * It is relevant in particular for {@link Gdk.FrameTimings} which
523
+ * may still be waiting for values to be filled in.
524
+ * @gir-type Enum
525
+ * @since 4.24
526
+ */
527
+ enum FrameResult {
528
+ /**
529
+ * The frame is currently being prepared and rendered by GTK.
530
+ * This is the initial state.
531
+ */
532
+ PREPARING,
533
+ /**
534
+ * GTK has determined that nothing needs to be rendered because
535
+ * there are no visual changes. No rendering will be submitted to
536
+ * the display server and because of that no information will
537
+ * be forthcoming from the display server.
538
+ *
539
+ * The frame is complete.
540
+ */
541
+ SKIPPED,
542
+ /**
543
+ * GTK has determined that nothing needs to be rendered because
544
+ * there are no visual changes. This information has been submitted
545
+ * to the display server. The presentation time has been updated to
546
+ * reflect when this frame would have been displayed.
547
+ *
548
+ * The frame is complete.
549
+ */
550
+ EMPTY,
551
+ /**
552
+ * A frame has been drawn and submitted to the display server, but
553
+ * the display server will not provide any further feedback about when
554
+ * or how the frame is going to be displayed.
555
+ *
556
+ * The frame is complete.
557
+ */
558
+ SUBMITTED,
559
+ /**
560
+ * The frame has been drawn and submitted to the display server, but the
561
+ * display server has not yet replied what is going to happen with the
562
+ * rendered image.
563
+ */
564
+ OUTSTANDING,
565
+ /**
566
+ * The frame has been drawn and submitted to the display server, but the
567
+ * display server has not displayed it. No presentation time will be available.
568
+ *
569
+ * The frame is complete.
570
+ */
571
+ DISCARDED,
572
+ /**
573
+ * The frame has been drawn and submitted to the display server, and the
574
+ * display server has rendered it and displayed the result. The presentation
575
+ * time is accurately reflecting when that happened.
576
+ *
577
+ * The frame is complete.
578
+ */
579
+ PRESENTED,
580
+ }
581
+
582
+
509
583
  /**
510
584
  * @gir-type Enum
511
585
  */
@@ -1425,6 +1499,14 @@ export namespace Gdk {
1425
1499
  * The format is opaque.
1426
1500
  */
1427
1501
  XRGB2101010,
1502
+ /**
1503
+ * 4 bytes per pixel
1504
+ *
1505
+ * Bits 31..30 contain the alpha channel, 29..20 blue, 19..10 green
1506
+ * and 9..0 red.
1507
+ *
1508
+ * The color values are premultiplied with the alpha value.
1509
+ */
1428
1510
  ABGR2101010_PREMULTIPLIED,
1429
1511
  /**
1430
1512
  * 4 bytes per pixel
@@ -7162,12 +7244,26 @@ export namespace Gdk {
7162
7244
  *
7163
7245
  * The names are the same as those in the
7164
7246
  * `gdk/gdkkeysyms.h` header file
7165
- * but without the leading &#x201C;GDK_KEY_&#x201D;.
7247
+ * but without the leading GDK_KEY_”.
7166
7248
  * @param keyval_name a key name
7167
7249
  * @returns the corresponding key value, or `GDK_KEY_VoidSymbol` if the key name is not a valid key
7168
7250
  */
7169
7251
  function keyval_from_name(keyval_name: string): number;
7170
7252
 
7253
+ /**
7254
+ * Gets keyvals that are 'aliases' for `keyval`.
7255
+ *
7256
+ * Aliases are meant to be functionally equivalent and
7257
+ * should be treated the same with respect to keyboard
7258
+ * shortcuts, etc. An example are keypad keys that are
7259
+ * aliases for their normal counterpart, such as
7260
+ * `GDK_KEY_KP_Left` and `GDK_KEY_Left`.
7261
+ * @param keyval the keyval to get aliases for
7262
+ * @returns an array of keyvals
7263
+ * @since 4.24
7264
+ */
7265
+ function keyval_get_aliases(keyval: number): number[] | null;
7266
+
7171
7267
  /**
7172
7268
  * Returns true if the given key value is in lower case.
7173
7269
  * @param keyval a key value.
@@ -7187,7 +7283,7 @@ export namespace Gdk {
7187
7283
  *
7188
7284
  * The names are the same as those in the
7189
7285
  * `gdk/gdkkeysyms.h` header file
7190
- * but without the leading &#x201C;GDK_KEY_&#x201D;.
7286
+ * but without the leading GDK_KEY_”.
7191
7287
  * @param keyval a key value
7192
7288
  * @returns a string containing the name of the key
7193
7289
  */
@@ -9810,6 +9906,8 @@ export namespace Gdk {
9810
9906
  * Will be -1 if there is no valid active layout.
9811
9907
  *
9812
9908
  * This is only relevant for keyboard devices.
9909
+ *
9910
+ * Value changes from compositor events, connect to notify if needed.
9813
9911
  * @since 4.18
9814
9912
  * @read-only
9815
9913
  * @default 0
@@ -9822,6 +9920,8 @@ export namespace Gdk {
9822
9920
  * Will be -1 if there is no valid active layout.
9823
9921
  *
9824
9922
  * This is only relevant for keyboard devices.
9923
+ *
9924
+ * Value changes from compositor events, connect to notify if needed.
9825
9925
  * @since 4.18
9826
9926
  * @read-only
9827
9927
  * @default 0
@@ -9897,6 +9997,8 @@ export namespace Gdk {
9897
9997
  * The names of the keyboard layouts of a {@link Gdk.Device}.
9898
9998
  *
9899
9999
  * This is only relevant for keyboard devices.
10000
+ *
10001
+ * Value changes from compositor events, connect to notify if needed.
9900
10002
  * @since 4.18
9901
10003
  * @read-only
9902
10004
  */
@@ -9906,6 +10008,8 @@ export namespace Gdk {
9906
10008
  * The names of the keyboard layouts of a {@link Gdk.Device}.
9907
10009
  *
9908
10010
  * This is only relevant for keyboard devices.
10011
+ *
10012
+ * Value changes from compositor events, connect to notify if needed.
9909
10013
  * @since 4.18
9910
10014
  * @read-only
9911
10015
  */
@@ -10737,7 +10841,7 @@ export namespace Gdk {
10737
10841
  * alpha channel.
10738
10842
  *
10739
10843
  * Even if a `true` is returned, it is possible that the
10740
- * surface&#x2019;s alpha channel won&#x2019;t be honored when displaying the
10844
+ * surfaces alpha channel wont be honored when displaying the
10741
10845
  * surface on the screen: in particular, for X an appropriate
10742
10846
  * windowing manager and compositing manager must be running to
10743
10847
  * provide appropriate display. Use {@link Gdk.Display.is_composited}
@@ -12967,7 +13071,7 @@ export namespace Gdk {
12967
13071
  * as `g_get_monotonic_time()`. The frame time does not advance during
12968
13072
  * the time a frame is being painted, and outside of a frame, an attempt
12969
13073
  * is made so that all calls to {@link Gdk.FrameClock.get_frame_time} that
12970
- * are called at a &#x201C;similar&#x201D; time get the same value. This means that
13074
+ * are called at a similar time get the same value. This means that
12971
13075
  * if different animations are timed by looking at the difference in
12972
13076
  * time between an initial value from {@link Gdk.FrameClock.get_frame_time}
12973
13077
  * and the value inside the `Gdk.FrameClock::update` signal of the clock,
@@ -13046,10 +13150,10 @@ export namespace Gdk {
13046
13150
  /**
13047
13151
  * Gets the time that should currently be used for animations.
13048
13152
  *
13049
- * Inside the processing of a frame, it&#x2019;s the time used to compute the
13153
+ * Inside the processing of a frame, its the time used to compute the
13050
13154
  * animation position of everything in a frame. Outside of a frame, it's
13051
- * the time of the conceptual &#x201C;previous frame,&#x201D; which may be either
13052
- * the actual previous frame time, or if that&#x2019;s too old, an updated
13155
+ * the time of the conceptual previous frame,” which may be either
13156
+ * the actual previous frame time, or if thats too old, an updated
13053
13157
  * time.
13054
13158
  * @returns a timestamp in microseconds, in the timescale of of `g_get_monotonic_time()`.
13055
13159
  */
@@ -15404,8 +15508,8 @@ export namespace Gdk {
15404
15508
  * Retrieves the size and position of the monitor within the
15405
15509
  * display coordinate space.
15406
15510
  *
15407
- * The returned geometry is in &#x201D;application pixels&#x201D;, not in
15408
- * &#x201D;device pixels&#x201D; (see {@link Gdk.Monitor.get_scale}).
15511
+ * The returned geometry is in application pixels”, not in
15512
+ * device pixels (see {@link Gdk.Monitor.get_scale}).
15409
15513
  */
15410
15514
  get_geometry(): Rectangle;
15411
15515
 
@@ -15447,7 +15551,7 @@ export namespace Gdk {
15447
15551
  * to device pixels.
15448
15552
  *
15449
15553
  * This can be used if you want to create pixel based data for a
15450
- * particular monitor, but most of the time you&#x2019;re drawing to a surface
15554
+ * particular monitor, but most of the time youre drawing to a surface
15451
15555
  * where it is better to use {@link Gdk.Surface.get_scale} instead.
15452
15556
  * @returns the scale
15453
15557
  */
@@ -15461,7 +15565,7 @@ export namespace Gdk {
15461
15565
  * it can be a higher value (often 2).
15462
15566
  *
15463
15567
  * This can be used if you want to create pixel based data for a
15464
- * particular monitor, but most of the time you&#x2019;re drawing to a surface
15568
+ * particular monitor, but most of the time youre drawing to a surface
15465
15569
  * where it is better to use {@link Gdk.Surface.get_scale_factor} instead.
15466
15570
  * @returns the scale factor
15467
15571
  */
@@ -15865,8 +15969,8 @@ export namespace Gdk {
15865
15969
  * Emitted when the size of `surface` is changed, or when relayout should
15866
15970
  * be performed.
15867
15971
  *
15868
- * Surface size is reported in &#x201D;application pixels&#x201D;, not
15869
- * &#x201D;device pixels&#x201D; (see `gdk_surface_get_scale_factor()`).
15972
+ * Surface size is reported in application pixels”, not
15973
+ * device pixels (see `gdk_surface_get_scale_factor()`).
15870
15974
  * @signal
15871
15975
  * @run-first
15872
15976
  */
@@ -15911,7 +16015,7 @@ export namespace Gdk {
15911
16015
  /**
15912
16016
  * Represents a rectangular region on the screen.
15913
16017
  *
15914
- * It&#x2019;s a low-level object, used to implement high-level objects
16018
+ * Its a low-level object, used to implement high-level objects
15915
16019
  * such as [GtkWindow](../gtk4/class.Window.html).
15916
16020
  *
15917
16021
  * The surfaces you see in practice are either {@link Gdk.Toplevel} or
@@ -16068,7 +16172,7 @@ export namespace Gdk {
16068
16172
  * have transparency, black otherwise.)
16069
16173
  *
16070
16174
  * This function always returns a valid pointer, but it will return a
16071
- * pointer to a &#x201C;nil&#x201D; surface if `other` is already in an error state
16175
+ * pointer to a nil surface if `other` is already in an error state
16072
16176
  * or any other error occurs.
16073
16177
  * @param content the content for the new surface
16074
16178
  * @param width width of the new surface
@@ -16088,7 +16192,7 @@ export namespace Gdk {
16088
16192
  * decrements `surface`'s reference count.
16089
16193
  *
16090
16194
  * The window system resources for all children of `surface` are also
16091
- * destroyed, but the children&#x2019;s reference counts are not decremented.
16195
+ * destroyed, but the childrens reference counts are not decremented.
16092
16196
  *
16093
16197
  * Note that a surface will not be destroyed automatically when its
16094
16198
  * reference count reaches zero. You must call this function yourself
@@ -16149,8 +16253,8 @@ export namespace Gdk {
16149
16253
  /**
16150
16254
  * Returns the height of the given `surface`.
16151
16255
  *
16152
- * Surface size is reported in &#x201D;application pixels&#x201D;, not
16153
- * &#x201D;device pixels&#x201D; (see {@link Gdk.Surface.get_scale_factor}).
16256
+ * Surface size is reported in application pixels”, not
16257
+ * device pixels (see {@link Gdk.Surface.get_scale_factor}).
16154
16258
  * @returns The height of `surface`
16155
16259
  */
16156
16260
  get_height(): number;
@@ -16199,8 +16303,8 @@ export namespace Gdk {
16199
16303
  /**
16200
16304
  * Returns the width of the given `surface`.
16201
16305
  *
16202
- * Surface size is reported in &#x201D;application pixels&#x201D;, not
16203
- * &#x201D;device pixels&#x201D; (see {@link Gdk.Surface.get_scale_factor}).
16306
+ * Surface size is reported in application pixels”, not
16307
+ * device pixels (see {@link Gdk.Surface.get_scale_factor}).
16204
16308
  * @returns The width of `surface`
16205
16309
  */
16206
16310
  get_width(): number;
@@ -16210,7 +16314,7 @@ export namespace Gdk {
16210
16314
  *
16211
16315
  * For toplevel surfaces, withdraws them, so they will no longer be
16212
16316
  * known to the window manager; for all surfaces, unmaps them, so
16213
- * they won&#x2019;t be displayed. Normally done automatically as
16317
+ * they wont be displayed. Normally done automatically as
16214
16318
  * part of [gtk_widget_hide()](../gtk4/method.Widget.hide.html).
16215
16319
  */
16216
16320
  hide(): void;
@@ -16274,7 +16378,7 @@ export namespace Gdk {
16274
16378
  * An input region is typically used with RGBA surfaces. The alpha
16275
16379
  * channel of the surface defines which pixels are invisible and
16276
16380
  * allows for nicely antialiased borders, and the input region
16277
- * controls where the surface is &#x201C;clickable&#x201D;.
16381
+ * controls where the surface is clickable”.
16278
16382
  *
16279
16383
  * Use {@link Gdk.Display.supports_input_shapes} to find out if
16280
16384
  * a particular backend supports input regions.
@@ -17081,11 +17185,26 @@ export namespace Gdk {
17081
17185
  }
17082
17186
 
17083
17187
 
17188
+ /**
17189
+ * @gir-type Alias
17190
+ */
17191
+ type AppLaunchContextClass = typeof AppLaunchContext;
17192
+
17193
+ /**
17194
+ * @gir-type Alias
17195
+ */
17196
+ type CairoContextClass = typeof CairoContext;
17197
+
17084
17198
  /**
17085
17199
  * @gir-type Alias
17086
17200
  */
17087
17201
  type CicpParamsClass = typeof CicpParams;
17088
17202
 
17203
+ /**
17204
+ * @gir-type Alias
17205
+ */
17206
+ type ClipboardClass = typeof Clipboard;
17207
+
17089
17208
  /**
17090
17209
  * Provides information to interpret colors and pixels in a variety of ways.
17091
17210
  *
@@ -17217,6 +17336,11 @@ export namespace Gdk {
17217
17336
  }
17218
17337
 
17219
17338
 
17339
+ /**
17340
+ * @gir-type Alias
17341
+ */
17342
+ type ContentDeserializerClass = typeof ContentDeserializer;
17343
+
17220
17344
  /**
17221
17345
  * Used to advertise and negotiate the format of content.
17222
17346
  *
@@ -17477,11 +17601,49 @@ export namespace Gdk {
17477
17601
  */
17478
17602
  type ContentProviderClass = typeof ContentProvider;
17479
17603
 
17604
+ /**
17605
+ * @gir-type Alias
17606
+ */
17607
+ type ContentSerializerClass = typeof ContentSerializer;
17608
+
17609
+ /**
17610
+ * @gir-type Alias
17611
+ */
17612
+ type CursorClass = typeof Cursor;
17613
+
17614
+ /**
17615
+ * @gir-type Alias
17616
+ */
17617
+ type DeviceClass = typeof Device;
17618
+
17619
+ /**
17620
+ * @gir-type Struct
17621
+ */
17622
+ abstract class DevicePadClass {
17623
+ static $gtype: GObject.GType<DevicePadClass>;
17624
+ }
17625
+
17626
+
17480
17627
  /**
17481
17628
  * @gir-type Alias
17482
17629
  */
17483
17630
  type DevicePadInterface = typeof DevicePad;
17484
17631
 
17632
+ /**
17633
+ * @gir-type Alias
17634
+ */
17635
+ type DeviceToolClass = typeof DeviceTool;
17636
+
17637
+ /**
17638
+ * @gir-type Alias
17639
+ */
17640
+ type DisplayClass = typeof Display;
17641
+
17642
+ /**
17643
+ * @gir-type Alias
17644
+ */
17645
+ type DisplayManagerClass = typeof DisplayManager;
17646
+
17485
17647
  /**
17486
17648
  * Provides information about supported DMA buffer formats.
17487
17649
  *
@@ -17569,6 +17731,11 @@ export namespace Gdk {
17569
17731
  */
17570
17732
  type DmabufTextureClass = typeof DmabufTexture;
17571
17733
 
17734
+ /**
17735
+ * @gir-type Alias
17736
+ */
17737
+ type DragClass = typeof Drag;
17738
+
17572
17739
  /**
17573
17740
  * @gir-type Alias
17574
17741
  */
@@ -17592,6 +17759,16 @@ export namespace Gdk {
17592
17759
  }
17593
17760
 
17594
17761
 
17762
+ /**
17763
+ * @gir-type Alias
17764
+ */
17765
+ type DrawContextClass = typeof DrawContext;
17766
+
17767
+ /**
17768
+ * @gir-type Alias
17769
+ */
17770
+ type DropClass = typeof Drop;
17771
+
17595
17772
  /**
17596
17773
  * An opaque type representing a sequence of related events.
17597
17774
  * @gir-type Struct
@@ -17633,21 +17810,13 @@ export namespace Gdk {
17633
17810
  type FrameClockClass = typeof FrameClock;
17634
17811
 
17635
17812
  /**
17636
- * @gir-type Struct
17637
- */
17638
- abstract class FrameClockPrivate {
17639
- static $gtype: GObject.GType<FrameClockPrivate>;
17640
- }
17641
-
17642
-
17643
- /**
17644
- * Holds timing information for a single frame of the application&#x2019;s displays.
17813
+ * Holds timing information for a single frame of the application’s displays.
17645
17814
  *
17646
17815
  * To retrieve {@link Gdk.FrameTimings} objects, use {@link Gdk.FrameClock.get_timings}
17647
17816
  * or {@link Gdk.FrameClock.get_current_timings}. The information in
17648
17817
  * {@link Gdk.FrameTimings} is useful for precise synchronization of video with
17649
17818
  * the event or audio streams, and for measuring quality metrics for the
17650
- * application&#x2019;s display, such as latency and jitter.
17819
+ * applications display, such as latency and jitter.
17651
17820
  * @gir-type Struct
17652
17821
  */
17653
17822
  abstract class FrameTimings {
@@ -17717,12 +17886,27 @@ export namespace Gdk {
17717
17886
  * Gets the natural interval between presentation times for
17718
17887
  * the display that this frame was displayed on.
17719
17888
  *
17720
- * Frame presentation usually happens during the &#x201C;vertical
17721
- * blanking interval&#x201D;.
17889
+ * Frame presentation usually happens during the vertical
17890
+ * blanking interval”.
17722
17891
  * @returns the refresh interval of the display, in microseconds, or 0 if the refresh interval is not available. See {@link Gdk.FrameTimings.get_complete}.
17723
17892
  */
17724
17893
  get_refresh_interval(): number;
17725
17894
 
17895
+ /**
17896
+ * Gets the result of the frame cycle that recorded these timings.
17897
+ *
17898
+ * The timing information in a {@link Gdk.FrameTimings} is filled in
17899
+ * incrementally as the frame as drawn and passed off to the
17900
+ * window system for processing and display to the user. The
17901
+ * accessor functions for {@link Gdk.FrameTimings} can return 0 to
17902
+ * indicate an unavailable value for two reasons: either because
17903
+ * the information is not yet available, or because it isn't
17904
+ * available at all. Looking at the result of the timings gives
17905
+ * an explanation for why a value is not available.
17906
+ * @returns The result of the frame these timings have been recorded for.
17907
+ */
17908
+ get_result(): FrameResult;
17909
+
17726
17910
  /**
17727
17911
  * Increases the reference count of `timings`.
17728
17912
  * @returns `timings`
@@ -17738,6 +17922,11 @@ export namespace Gdk {
17738
17922
  }
17739
17923
 
17740
17924
 
17925
+ /**
17926
+ * @gir-type Alias
17927
+ */
17928
+ type GLContextClass = typeof GLContext;
17929
+
17741
17930
  /**
17742
17931
  * @gir-type Alias
17743
17932
  */
@@ -17953,10 +18142,10 @@ export namespace Gdk {
17953
18142
 
17954
18143
 
17955
18144
  /**
17956
- * Represents a color, in a way that is compatible with cairo&#x2019;s notion of color.
18145
+ * Represents a color, in a way that is compatible with cairos notion of color.
17957
18146
  *
17958
- * {@link Gdk.RGBA} is a convenient way to pass colors around. It&#x2019;s based on
17959
- * cairo&#x2019;s way to deal with colors and mirrors its behavior. All values
18147
+ * {@link Gdk.RGBA} is a convenient way to pass colors around. Its based on
18148
+ * cairos way to deal with colors and mirrors its behavior. All values
17960
18149
  * are in the range from 0.0 to 1.0 inclusive. So the color
17961
18150
  * (0.0, 0.0, 0.0, 0.0) represents transparent black and
17962
18151
  * (1.0, 1.0, 1.0, 1.0) is opaque white. Other values will
@@ -18035,22 +18224,22 @@ export namespace Gdk {
18035
18224
  * The string can be either one of:
18036
18225
  *
18037
18226
  * - A standard name (Taken from the CSS specification).
18038
- * - A hexadecimal value in the form &#x201C;\#rgb&#x201D;, &#x201C;\#rrggbb&#x201D;,
18039
- * &#x201C;\#rrrgggbbb&#x201D; or &#x201D;\#rrrrggggbbbb&#x201D;
18040
- * - A hexadecimal value in the form &#x201C;\#rgba&#x201D;, &#x201C;\#rrggbbaa&#x201D;,
18041
- * or &#x201D;\#rrrrggggbbbbaaaa&#x201D;
18042
- * - A RGB color in the form &#x201C;rgb(r,g,b)&#x201D; (In this case the color
18227
+ * - A hexadecimal value in the form “\#rgb”, “\#rrggbb”,
18228
+ * “\#rrrgggbbb or ”\#rrrrggggbbbb
18229
+ * - A hexadecimal value in the form “\#rgba”, “\#rrggbbaa”,
18230
+ * or ”\#rrrrggggbbbbaaaa
18231
+ * - A RGB color in the form rgb(r,g,b) (In this case the color
18043
18232
  * will have full opacity)
18044
- * - A RGBA color in the form &#x201C;rgba(r,g,b,a)&#x201D;
18045
- * - A HSL color in the form &#x201C;hsl(h,s,l)&#x201D;
18046
- * - A HSLA color in the form &#x201C;hsla(h,s,l,a)&#x201D;
18233
+ * - A RGBA color in the form rgba(r,g,b,a)
18234
+ * - A HSL color in the form hsl(h,s,l)
18235
+ * - A HSLA color in the form hsla(h,s,l,a)
18047
18236
  *
18048
- * Where &#x201C;r&#x201D;, &#x201C;g&#x201D;, &#x201C;b&#x201D; and &#x201C;a&#x201D; are respectively the red, green,
18049
- * blue and alpha color values. In the last two cases, &#x201C;r&#x201D;, &#x201C;g&#x201D;,
18050
- * and &#x201C;b&#x201D; are either integers in the range 0 to 255 or percentage
18237
+ * Where r”, g”, b and a are respectively the red, green,
18238
+ * blue and alpha color values. In the last two cases, r”, g”,
18239
+ * and b are either integers in the range 0 to 255 or percentage
18051
18240
  * values in the range 0% to 100%, and a is a floating point value
18052
- * in the range 0 to 1. The range for &#x201C;h&#x201D; is 0 to 360, and
18053
- * &#x201C;s&#x201D;, &#x201C;l&#x201D; can be either numbers in the range 0 to 100 or
18241
+ * in the range 0 to 1. The range for h is 0 to 360, and
18242
+ * s”, l can be either numbers in the range 0 to 100 or
18054
18243
  * percentages.
18055
18244
  * @param spec the string specifying the color
18056
18245
  * @returns `true` if the parsing succeeded
@@ -18058,23 +18247,25 @@ export namespace Gdk {
18058
18247
  parse(spec: string): boolean;
18059
18248
 
18060
18249
  /**
18061
- * @param string
18250
+ * Appends a representation of `rgba` to `string`.
18251
+ * @param string the string to print to
18252
+ * @returns A newly allocated text string
18062
18253
  */
18063
18254
  print(string: GLib.String): GLib.String;
18064
18255
 
18065
18256
  /**
18066
18257
  * Returns a textual specification of `rgba` in the form
18067
- * `rgb(r,g,b)` or `rgba(r,g,b,a)`, where &#x201C;r&#x201D;, &#x201C;g&#x201D;, &#x201C;b&#x201D; and
18068
- * &#x201C;a&#x201D; represent the red, green, blue and alpha values
18069
- * respectively. &#x201C;r&#x201D;, &#x201C;g&#x201D;, and &#x201C;b&#x201D; are represented as integers
18070
- * in the range 0 to 255, and &#x201C;a&#x201D; is represented as a floating
18258
+ * `rgb(r,g,b)` or `rgba(r,g,b,a)`, where r”, g”, b and
18259
+ * a represent the red, green, blue and alpha values
18260
+ * respectively. r”, g”, and b are represented as integers
18261
+ * in the range 0 to 255, and a is represented as a floating
18071
18262
  * point value in the range 0 to 1.
18072
18263
  *
18073
18264
  * These string forms are string forms that are supported by
18074
18265
  * the CSS3 colors module, and can be parsed by {@link Gdk.RGBA.parse}.
18075
18266
  *
18076
18267
  * Note that this string representation may lose some precision,
18077
- * since &#x201C;r&#x201D;, &#x201C;g&#x201D; and &#x201C;b&#x201D; are represented as 8-bit integers. If
18268
+ * since r”, g and b are represented as 8-bit integers. If
18078
18269
  * this is a concern, you should use a different representation.
18079
18270
  * @returns A newly allocated text string
18080
18271
  */
@@ -18085,7 +18276,7 @@ export namespace Gdk {
18085
18276
  /**
18086
18277
  * Represents a rectangle.
18087
18278
  *
18088
- * {@link Gdk.Rectangle} is identical to `cairo_rectangle_t`. Together with Cairo&#x2019;s
18279
+ * {@link Gdk.Rectangle} is identical to `cairo_rectangle_t`. Together with Cairos
18089
18280
  * `cairo_region_t` data type, these are the central types for representing
18090
18281
  * sets of pixels.
18091
18282
  *
@@ -18141,7 +18332,7 @@ export namespace Gdk {
18141
18332
  * Calculates the intersection of two rectangles.
18142
18333
  *
18143
18334
  * It is allowed for `dest` to be the same as either `src1` or `src2`.
18144
- * If the rectangles do not intersect, `dest`&#x2019;s width and height is set
18335
+ * If the rectangles do not intersect, `dest`’s width and height is set
18145
18336
  * to 0 and its x and y values are undefined. If you are only interested
18146
18337
  * in whether the rectangles intersect, but not in the intersecting area
18147
18338
  * itself, pass `null` for `dest`.
@@ -18165,6 +18356,11 @@ export namespace Gdk {
18165
18356
  }
18166
18357
 
18167
18358
 
18359
+ /**
18360
+ * @gir-type Alias
18361
+ */
18362
+ type SeatClass = typeof Seat;
18363
+
18168
18364
  /**
18169
18365
  * @gir-type Alias
18170
18366
  */
@@ -18481,6 +18677,11 @@ export namespace Gdk {
18481
18677
  }
18482
18678
 
18483
18679
 
18680
+ /**
18681
+ * @gir-type Alias
18682
+ */
18683
+ type VulkanContextClass = typeof VulkanContext;
18684
+
18484
18685
  namespace DevicePad {
18485
18686
 
18486
18687
  // Constructor properties interface
@@ -19185,7 +19386,7 @@ export namespace Gdk {
19185
19386
  /**
19186
19387
  * Begins an interactive resize operation.
19187
19388
  *
19188
- * You might use this function to implement a &#x201C;window resize grip.&#x201D;
19389
+ * You might use this function to implement a window resize grip.”
19189
19390
  * @param edge the edge or corner from which the drag is started
19190
19391
  * @param device the device used for the operation
19191
19392
  * @param button the button being used to drag, or 0 for a keyboard-initiated drag
@@ -19373,7 +19574,7 @@ export namespace Gdk {
19373
19574
  * on `parent` and keep `surface` above `parent`.
19374
19575
  *
19375
19576
  * See [gtk_window_set_transient_for()](../gtk4/method.Window.set_transient_for.html)
19376
- * if you&#x2019;re using [GtkWindow](../gtk4/class.Window.html).
19577
+ * if youre using [GtkWindow](../gtk4/class.Window.html).
19377
19578
  * @param parent another toplevel {@link Gdk.Surface}
19378
19579
  */
19379
19580
  set_transient_for(parent: Surface): void;
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@girs/gdk-4.0",
3
- "version": "4.1.0",
4
- "libraryVersion": "4.0.0",
5
- "description": "GJS TypeScript type definitions for Gdk-4.0, generated from library version 4.0.0",
3
+ "version": "4.3.0",
4
+ "description": "GJS TypeScript type definitions for Gdk-4.0",
6
5
  "type": "module",
7
6
  "module": "gdk-4.0.js",
8
7
  "main": "gdk-4.0.js",
@@ -32,17 +31,17 @@
32
31
  "test": "tsc --project tsconfig.json"
33
32
  },
34
33
  "dependencies": {
35
- "@girs/gjs": "^4.1.0",
36
- "@girs/cairo-1.0": "^4.1.0",
37
- "@girs/gobject-2.0": "^4.1.0",
38
- "@girs/glib-2.0": "^4.1.0",
39
- "@girs/pangocairo-1.0": "^4.1.0",
40
- "@girs/pango-1.0": "^4.1.0",
41
- "@girs/harfbuzz-0.0": "^4.1.0",
42
- "@girs/freetype2-2.0": "^4.1.0",
43
- "@girs/gio-2.0": "^4.1.0",
44
- "@girs/gmodule-2.0": "^4.1.0",
45
- "@girs/gdkpixbuf-2.0": "^4.1.0" },
34
+ "@girs/gjs": "^4.3.0",
35
+ "@girs/cairo-1.0": "^4.3.0",
36
+ "@girs/gobject-2.0": "^4.3.0",
37
+ "@girs/glib-2.0": "^4.3.0",
38
+ "@girs/pangocairo-1.0": "^4.3.0",
39
+ "@girs/pango-1.0": "^4.3.0",
40
+ "@girs/harfbuzz-0.0": "^4.3.0",
41
+ "@girs/freetype2-2.0": "^4.3.0",
42
+ "@girs/gio-2.0": "^4.3.0",
43
+ "@girs/gmodule-2.0": "^4.3.0",
44
+ "@girs/gdkpixbuf-2.0": "^4.3.0" },
46
45
  "devDependencies": {
47
46
  "typescript": "*"
48
47
  },