@girs/gdk-4.0 4.0.0-3.2.6 → 4.0.0-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 +1 -1
- package/gdk-4.0.d.cts +33 -33
- package/gdk-4.0.d.ts +33 -33
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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.
|
|
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.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gdk-4.0.d.cts
CHANGED
|
@@ -3655,7 +3655,7 @@ export function cairo_set_source_rgba(cr: cairo.Context, rgba: RGBA): void
|
|
|
3655
3655
|
* @param cancellable optional `GCancellable` object
|
|
3656
3656
|
* @param callback callback to call when the operation is done
|
|
3657
3657
|
*/
|
|
3658
|
-
export function content_deserialize_async<Z = unknown>(stream: Gio.InputStream, mime_type: string
|
|
3658
|
+
export function content_deserialize_async<Z = unknown>(stream: Gio.InputStream, mime_type: string, type: GObject.GType, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
3659
3659
|
|
|
3660
3660
|
// Overloads of content_deserialize_async
|
|
3661
3661
|
|
|
@@ -3676,7 +3676,7 @@ export function content_deserialize_async<Z = unknown>(stream: Gio.InputStream,
|
|
|
3676
3676
|
* @param cancellable optional `GCancellable` object
|
|
3677
3677
|
* @returns A Promise of: %TRUE if the operation was successful. In this case, @value is set. %FALSE if an error occurred. In this case, @error is set
|
|
3678
3678
|
*/
|
|
3679
|
-
export function content_deserialize_async<Z = unknown>(stream: Gio.InputStream, mime_type: string
|
|
3679
|
+
export function content_deserialize_async<Z = unknown>(stream: Gio.InputStream, mime_type: string, type: GObject.GType, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* value */ any>
|
|
3680
3680
|
/**
|
|
3681
3681
|
* Finishes a content deserialization operation.
|
|
3682
3682
|
* @param result the `GAsyncResult`
|
|
@@ -3695,21 +3695,21 @@ export function content_deserialize_finish(result: Gio.AsyncResult): [ /* return
|
|
|
3695
3695
|
* @param string the string to parse
|
|
3696
3696
|
* @returns the content formats if @string is valid
|
|
3697
3697
|
*/
|
|
3698
|
-
export function content_formats_parse(string: string
|
|
3698
|
+
export function content_formats_parse(string: string): ContentFormats | null
|
|
3699
3699
|
/**
|
|
3700
3700
|
* Registers a function to deserialize object of a given type.
|
|
3701
3701
|
* @param mime_type the mime type which the function can deserialize from
|
|
3702
3702
|
* @param type the type of objects that the function creates
|
|
3703
3703
|
* @param deserialize the callback
|
|
3704
3704
|
*/
|
|
3705
|
-
export function content_register_deserializer(mime_type: string
|
|
3705
|
+
export function content_register_deserializer(mime_type: string, type: GObject.GType, deserialize: ContentDeserializeFunc): void
|
|
3706
3706
|
/**
|
|
3707
3707
|
* Registers a function to serialize objects of a given type.
|
|
3708
3708
|
* @param type the type of objects that the function can serialize
|
|
3709
3709
|
* @param mime_type the mime type to serialize to
|
|
3710
3710
|
* @param serialize the callback
|
|
3711
3711
|
*/
|
|
3712
|
-
export function content_register_serializer(type: GObject.GType, mime_type: string
|
|
3712
|
+
export function content_register_serializer(type: GObject.GType, mime_type: string, serialize: ContentSerializeFunc): void
|
|
3713
3713
|
/**
|
|
3714
3714
|
* Serialize content and write it to the given output stream, asynchronously.
|
|
3715
3715
|
*
|
|
@@ -3725,7 +3725,7 @@ export function content_register_serializer(type: GObject.GType, mime_type: stri
|
|
|
3725
3725
|
* @param cancellable optional `GCancellable` object
|
|
3726
3726
|
* @param callback callback to call when the operation is done
|
|
3727
3727
|
*/
|
|
3728
|
-
export function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, mime_type: string
|
|
3728
|
+
export function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, mime_type: string, value: any, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
3729
3729
|
|
|
3730
3730
|
// Overloads of content_serialize_async
|
|
3731
3731
|
|
|
@@ -3746,7 +3746,7 @@ export function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, m
|
|
|
3746
3746
|
* @param cancellable optional `GCancellable` object
|
|
3747
3747
|
* @returns A Promise of: %TRUE if the operation was successful, %FALSE if an error occurred. In this case, @error is set
|
|
3748
3748
|
*/
|
|
3749
|
-
export function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, mime_type: string
|
|
3749
|
+
export function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, mime_type: string, value: any, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
3750
3750
|
/**
|
|
3751
3751
|
* Finishes a content serialization operation.
|
|
3752
3752
|
* @param result the `GAsyncResult`
|
|
@@ -3807,7 +3807,7 @@ export function gl_error_quark(): GLib.Quark
|
|
|
3807
3807
|
* @param string string of a potential mime type
|
|
3808
3808
|
* @returns An interned string for the canonicalized mime type or %NULL if the string wasn't a valid mime type
|
|
3809
3809
|
*/
|
|
3810
|
-
export function intern_mime_type(string: string
|
|
3810
|
+
export function intern_mime_type(string: string): string | null
|
|
3811
3811
|
/**
|
|
3812
3812
|
* Obtains the upper- and lower-case versions of the keyval `symbol`.
|
|
3813
3813
|
*
|
|
@@ -3824,7 +3824,7 @@ export function keyval_convert_case(symbol: number): [ /* lower */ number, /* up
|
|
|
3824
3824
|
* @param keyval_name a key name
|
|
3825
3825
|
* @returns the corresponding key value, or %GDK_KEY_VoidSymbol if the key name is not a valid key
|
|
3826
3826
|
*/
|
|
3827
|
-
export function keyval_from_name(keyval_name: string
|
|
3827
|
+
export function keyval_from_name(keyval_name: string): number
|
|
3828
3828
|
/**
|
|
3829
3829
|
* Returns %TRUE if the given key value is in lower case.
|
|
3830
3830
|
* @param keyval a key value.
|
|
@@ -3944,7 +3944,7 @@ export function pixbuf_get_from_texture(texture: Texture): GdkPixbuf.Pixbuf | nu
|
|
|
3944
3944
|
* in order to take effect.
|
|
3945
3945
|
* @param backends a comma-separated list of backends
|
|
3946
3946
|
*/
|
|
3947
|
-
export function set_allowed_backends(backends: string
|
|
3947
|
+
export function set_allowed_backends(backends: string): void
|
|
3948
3948
|
export function texture_error_quark(): GLib.Quark
|
|
3949
3949
|
export function toplevel_size_get_type(): GObject.GType
|
|
3950
3950
|
/**
|
|
@@ -4981,7 +4981,7 @@ export interface Toplevel extends Surface {
|
|
|
4981
4981
|
* low-level function.
|
|
4982
4982
|
* @param startup_id a string with startup-notification identifier
|
|
4983
4983
|
*/
|
|
4984
|
-
set_startup_id(startup_id: string
|
|
4984
|
+
set_startup_id(startup_id: string): void
|
|
4985
4985
|
/**
|
|
4986
4986
|
* Sets the title of a toplevel surface.
|
|
4987
4987
|
*
|
|
@@ -4989,7 +4989,7 @@ export interface Toplevel extends Surface {
|
|
|
4989
4989
|
* in lists of windows, etc.
|
|
4990
4990
|
* @param title title of `surface`
|
|
4991
4991
|
*/
|
|
4992
|
-
set_title(title: string
|
|
4992
|
+
set_title(title: string): void
|
|
4993
4993
|
/**
|
|
4994
4994
|
* Sets a transient-for parent.
|
|
4995
4995
|
*
|
|
@@ -5453,7 +5453,7 @@ export interface Clipboard {
|
|
|
5453
5453
|
* @param cancellable optional `GCancellable` object
|
|
5454
5454
|
* @returns A Promise of: a `GInputStream`
|
|
5455
5455
|
*/
|
|
5456
|
-
read_async(mime_types: string[], io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* out_mime_type */ string
|
|
5456
|
+
read_async(mime_types: string[], io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* out_mime_type */ string>
|
|
5457
5457
|
/**
|
|
5458
5458
|
* Finishes an asynchronous clipboard read.
|
|
5459
5459
|
*
|
|
@@ -5461,7 +5461,7 @@ export interface Clipboard {
|
|
|
5461
5461
|
* @param result a `GAsyncResult`
|
|
5462
5462
|
* @returns a `GInputStream`
|
|
5463
5463
|
*/
|
|
5464
|
-
read_finish(result: Gio.AsyncResult): [ /* returnType */ Gio.InputStream | null, /* out_mime_type */ string
|
|
5464
|
+
read_finish(result: Gio.AsyncResult): [ /* returnType */ Gio.InputStream | null, /* out_mime_type */ string ]
|
|
5465
5465
|
/**
|
|
5466
5466
|
* Asynchronously request the `clipboard` contents converted to a string.
|
|
5467
5467
|
*
|
|
@@ -5754,7 +5754,7 @@ export interface ContentDeserializer extends Gio.AsyncResult {
|
|
|
5754
5754
|
* Gets the mime type to deserialize from.
|
|
5755
5755
|
* @returns the mime type for the current operation
|
|
5756
5756
|
*/
|
|
5757
|
-
get_mime_type(): string
|
|
5757
|
+
get_mime_type(): string
|
|
5758
5758
|
/**
|
|
5759
5759
|
* Gets the I/O priority for the current operation.
|
|
5760
5760
|
*
|
|
@@ -5923,7 +5923,7 @@ export interface ContentProvider {
|
|
|
5923
5923
|
* @param cancellable optional `GCancellable` object, %NULL to ignore.
|
|
5924
5924
|
* @param callback callback to call when the request is satisfied
|
|
5925
5925
|
*/
|
|
5926
|
-
write_mime_type_async(mime_type: string
|
|
5926
|
+
write_mime_type_async(mime_type: string, stream: Gio.OutputStream, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
5927
5927
|
|
|
5928
5928
|
// Overloads of write_mime_type_async
|
|
5929
5929
|
|
|
@@ -5948,7 +5948,7 @@ export interface ContentProvider {
|
|
|
5948
5948
|
* @param cancellable optional `GCancellable` object, %NULL to ignore.
|
|
5949
5949
|
* @returns A Promise of: %TRUE if the operation was completed successfully. Otherwise @error will be set to describe the failure.
|
|
5950
5950
|
*/
|
|
5951
|
-
write_mime_type_async(mime_type: string
|
|
5951
|
+
write_mime_type_async(mime_type: string, stream: Gio.OutputStream, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
5952
5952
|
/**
|
|
5953
5953
|
* Finishes an asynchronous write operation.
|
|
5954
5954
|
*
|
|
@@ -6016,7 +6016,7 @@ export interface ContentProvider {
|
|
|
6016
6016
|
* @param cancellable optional `GCancellable` object, %NULL to ignore.
|
|
6017
6017
|
* @param callback callback to call when the request is satisfied
|
|
6018
6018
|
*/
|
|
6019
|
-
vfunc_write_mime_type_async(mime_type: string
|
|
6019
|
+
vfunc_write_mime_type_async(mime_type: string, stream: Gio.OutputStream, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
6020
6020
|
/**
|
|
6021
6021
|
* Finishes an asynchronous write operation.
|
|
6022
6022
|
*
|
|
@@ -6077,7 +6077,7 @@ export class ContentProvider extends GObject.Object {
|
|
|
6077
6077
|
* @param bytes a `GBytes` with the data for `mime_type`
|
|
6078
6078
|
* @returns a new `GdkContentProvider`
|
|
6079
6079
|
*/
|
|
6080
|
-
static new_for_bytes(mime_type: string
|
|
6080
|
+
static new_for_bytes(mime_type: string, bytes: GLib.Bytes): ContentProvider
|
|
6081
6081
|
/**
|
|
6082
6082
|
* Create a content provider that provides the given `value`.
|
|
6083
6083
|
* @constructor
|
|
@@ -6138,7 +6138,7 @@ export interface ContentSerializer extends Gio.AsyncResult {
|
|
|
6138
6138
|
* Gets the mime type to serialize to.
|
|
6139
6139
|
* @returns the mime type for the current operation
|
|
6140
6140
|
*/
|
|
6141
|
-
get_mime_type(): string
|
|
6141
|
+
get_mime_type(): string
|
|
6142
6142
|
/**
|
|
6143
6143
|
* Gets the output stream for the current operation.
|
|
6144
6144
|
*
|
|
@@ -6479,7 +6479,7 @@ export class Cursor extends GObject.Object {
|
|
|
6479
6479
|
* @param fallback %NULL or the `GdkCursor` to fall back to when this one cannot be supported
|
|
6480
6480
|
* @returns a new `GdkCursor`, or %NULL if there is no cursor with the given name
|
|
6481
6481
|
*/
|
|
6482
|
-
static new_from_name(name: string
|
|
6482
|
+
static new_from_name(name: string, fallback: Cursor | null): Cursor
|
|
6483
6483
|
/**
|
|
6484
6484
|
* Creates a new cursor from a `GdkTexture`.
|
|
6485
6485
|
* @constructor
|
|
@@ -6813,7 +6813,7 @@ export interface Device {
|
|
|
6813
6813
|
* The name of the device, suitable for showing in a user interface.
|
|
6814
6814
|
* @returns a name
|
|
6815
6815
|
*/
|
|
6816
|
-
get_name(): string
|
|
6816
|
+
get_name(): string
|
|
6817
6817
|
/**
|
|
6818
6818
|
* Retrieves whether the Num Lock modifier of the keyboard is locked.
|
|
6819
6819
|
*
|
|
@@ -7279,7 +7279,7 @@ export interface Display {
|
|
|
7279
7279
|
* Gets the name of the display.
|
|
7280
7280
|
* @returns a string representing the display name. This string is owned by GDK and should not be modified or freed.
|
|
7281
7281
|
*/
|
|
7282
|
-
get_name(): string
|
|
7282
|
+
get_name(): string
|
|
7283
7283
|
/**
|
|
7284
7284
|
* Gets the clipboard used for the primary selection.
|
|
7285
7285
|
*
|
|
@@ -7295,7 +7295,7 @@ export interface Display {
|
|
|
7295
7295
|
* @param value location to store the value of the setting
|
|
7296
7296
|
* @returns %TRUE if the setting existed and a value was stored in @value, %FALSE otherwise
|
|
7297
7297
|
*/
|
|
7298
|
-
get_setting(name: string
|
|
7298
|
+
get_setting(name: string, value: any): boolean
|
|
7299
7299
|
/**
|
|
7300
7300
|
* Gets the startup notification ID for a Wayland display, or %NULL
|
|
7301
7301
|
* if no ID has been defined.
|
|
@@ -7385,7 +7385,7 @@ export interface Display {
|
|
|
7385
7385
|
* is called to disable that feature.
|
|
7386
7386
|
* @param startup_id a startup-notification identifier, for which notification process should be completed
|
|
7387
7387
|
*/
|
|
7388
|
-
notify_startup_complete(startup_id: string
|
|
7388
|
+
notify_startup_complete(startup_id: string): void
|
|
7389
7389
|
/**
|
|
7390
7390
|
* Checks that OpenGL is available for `self` and ensures that it is
|
|
7391
7391
|
* properly initialized.
|
|
@@ -8246,7 +8246,7 @@ export interface Drop {
|
|
|
8246
8246
|
* @param cancellable optional `GCancellable` object
|
|
8247
8247
|
* @returns A Promise of: the `GInputStream`
|
|
8248
8248
|
*/
|
|
8249
|
-
read_async(mime_types: string[], io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* out_mime_type */ string
|
|
8249
|
+
read_async(mime_types: string[], io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* out_mime_type */ string>
|
|
8250
8250
|
/**
|
|
8251
8251
|
* Finishes an async drop read operation.
|
|
8252
8252
|
*
|
|
@@ -8259,7 +8259,7 @@ export interface Drop {
|
|
|
8259
8259
|
* @param result a `GAsyncResult`
|
|
8260
8260
|
* @returns the `GInputStream`
|
|
8261
8261
|
*/
|
|
8262
|
-
read_finish(result: Gio.AsyncResult): [ /* returnType */ Gio.InputStream | null, /* out_mime_type */ string
|
|
8262
|
+
read_finish(result: Gio.AsyncResult): [ /* returnType */ Gio.InputStream | null, /* out_mime_type */ string ]
|
|
8263
8263
|
/**
|
|
8264
8264
|
* Asynchronously request the drag operation's contents converted
|
|
8265
8265
|
* to the given `type`.
|
|
@@ -11064,7 +11064,7 @@ export class Texture extends GObject.Object {
|
|
|
11064
11064
|
* @param resource_path the path of the resource file
|
|
11065
11065
|
* @returns A newly-created `GdkTexture`
|
|
11066
11066
|
*/
|
|
11067
|
-
static new_from_resource(resource_path: string
|
|
11067
|
+
static new_from_resource(resource_path: string): Texture
|
|
11068
11068
|
_init(config?: Texture.ConstructorProperties): void
|
|
11069
11069
|
}
|
|
11070
11070
|
|
|
@@ -11217,7 +11217,7 @@ export interface ContentFormats {
|
|
|
11217
11217
|
* @param mime_type the mime type to search for
|
|
11218
11218
|
* @returns %TRUE if the mime_type was found
|
|
11219
11219
|
*/
|
|
11220
|
-
contain_mime_type(mime_type: string
|
|
11220
|
+
contain_mime_type(mime_type: string): boolean
|
|
11221
11221
|
/**
|
|
11222
11222
|
* Gets the `GType`s included in `formats`.
|
|
11223
11223
|
*
|
|
@@ -11404,7 +11404,7 @@ export class ContentFormats {
|
|
|
11404
11404
|
* @param string the string to parse
|
|
11405
11405
|
* @returns the content formats if @string is valid
|
|
11406
11406
|
*/
|
|
11407
|
-
static parse(string: string
|
|
11407
|
+
static parse(string: string): ContentFormats | null
|
|
11408
11408
|
}
|
|
11409
11409
|
|
|
11410
11410
|
export interface ContentFormatsBuilder {
|
|
@@ -11426,7 +11426,7 @@ export interface ContentFormatsBuilder {
|
|
|
11426
11426
|
* Appends `mime_type` to `builder` if it has not already been added.
|
|
11427
11427
|
* @param mime_type a mime type
|
|
11428
11428
|
*/
|
|
11429
|
-
add_mime_type(mime_type: string
|
|
11429
|
+
add_mime_type(mime_type: string): void
|
|
11430
11430
|
/**
|
|
11431
11431
|
* Acquires a reference on the given `builder`.
|
|
11432
11432
|
*
|
|
@@ -11495,7 +11495,7 @@ export interface ContentProviderClass {
|
|
|
11495
11495
|
detach_clipboard: (provider: ContentProvider, clipboard: Clipboard) => void
|
|
11496
11496
|
ref_formats: (provider: ContentProvider) => ContentFormats
|
|
11497
11497
|
ref_storable_formats: (provider: ContentProvider) => ContentFormats
|
|
11498
|
-
write_mime_type_async: (provider: ContentProvider, mime_type: string
|
|
11498
|
+
write_mime_type_async: (provider: ContentProvider, mime_type: string, stream: Gio.OutputStream, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
11499
11499
|
write_mime_type_finish: (provider: ContentProvider, result: Gio.AsyncResult) => boolean
|
|
11500
11500
|
get_value: (provider: ContentProvider) => [ /* returnType */ boolean, /* value */ any ]
|
|
11501
11501
|
}
|
|
@@ -12134,7 +12134,7 @@ export interface RGBA {
|
|
|
12134
12134
|
* @param spec the string specifying the color
|
|
12135
12135
|
* @returns %TRUE if the parsing succeeded
|
|
12136
12136
|
*/
|
|
12137
|
-
parse(spec: string
|
|
12137
|
+
parse(spec: string): boolean
|
|
12138
12138
|
/**
|
|
12139
12139
|
* Returns a textual specification of `rgba` in the form
|
|
12140
12140
|
* `rgb(r,g,b)` or `rgba(r,g,b,a)`, where “r”, “g”, “b” and
|
package/gdk-4.0.d.ts
CHANGED
|
@@ -3657,7 +3657,7 @@ function cairo_set_source_rgba(cr: cairo.Context, rgba: RGBA): void
|
|
|
3657
3657
|
* @param cancellable optional `GCancellable` object
|
|
3658
3658
|
* @param callback callback to call when the operation is done
|
|
3659
3659
|
*/
|
|
3660
|
-
function content_deserialize_async<Z = unknown>(stream: Gio.InputStream, mime_type: string
|
|
3660
|
+
function content_deserialize_async<Z = unknown>(stream: Gio.InputStream, mime_type: string, type: GObject.GType, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
3661
3661
|
|
|
3662
3662
|
// Overloads of content_deserialize_async
|
|
3663
3663
|
|
|
@@ -3678,7 +3678,7 @@ function content_deserialize_async<Z = unknown>(stream: Gio.InputStream, mime_ty
|
|
|
3678
3678
|
* @param cancellable optional `GCancellable` object
|
|
3679
3679
|
* @returns A Promise of: %TRUE if the operation was successful. In this case, @value is set. %FALSE if an error occurred. In this case, @error is set
|
|
3680
3680
|
*/
|
|
3681
|
-
function content_deserialize_async<Z = unknown>(stream: Gio.InputStream, mime_type: string
|
|
3681
|
+
function content_deserialize_async<Z = unknown>(stream: Gio.InputStream, mime_type: string, type: GObject.GType, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* value */ any>
|
|
3682
3682
|
/**
|
|
3683
3683
|
* Finishes a content deserialization operation.
|
|
3684
3684
|
* @param result the `GAsyncResult`
|
|
@@ -3697,21 +3697,21 @@ function content_deserialize_finish(result: Gio.AsyncResult): [ /* returnType */
|
|
|
3697
3697
|
* @param string the string to parse
|
|
3698
3698
|
* @returns the content formats if @string is valid
|
|
3699
3699
|
*/
|
|
3700
|
-
function content_formats_parse(string: string
|
|
3700
|
+
function content_formats_parse(string: string): ContentFormats | null
|
|
3701
3701
|
/**
|
|
3702
3702
|
* Registers a function to deserialize object of a given type.
|
|
3703
3703
|
* @param mime_type the mime type which the function can deserialize from
|
|
3704
3704
|
* @param type the type of objects that the function creates
|
|
3705
3705
|
* @param deserialize the callback
|
|
3706
3706
|
*/
|
|
3707
|
-
function content_register_deserializer(mime_type: string
|
|
3707
|
+
function content_register_deserializer(mime_type: string, type: GObject.GType, deserialize: ContentDeserializeFunc): void
|
|
3708
3708
|
/**
|
|
3709
3709
|
* Registers a function to serialize objects of a given type.
|
|
3710
3710
|
* @param type the type of objects that the function can serialize
|
|
3711
3711
|
* @param mime_type the mime type to serialize to
|
|
3712
3712
|
* @param serialize the callback
|
|
3713
3713
|
*/
|
|
3714
|
-
function content_register_serializer(type: GObject.GType, mime_type: string
|
|
3714
|
+
function content_register_serializer(type: GObject.GType, mime_type: string, serialize: ContentSerializeFunc): void
|
|
3715
3715
|
/**
|
|
3716
3716
|
* Serialize content and write it to the given output stream, asynchronously.
|
|
3717
3717
|
*
|
|
@@ -3727,7 +3727,7 @@ function content_register_serializer(type: GObject.GType, mime_type: string | nu
|
|
|
3727
3727
|
* @param cancellable optional `GCancellable` object
|
|
3728
3728
|
* @param callback callback to call when the operation is done
|
|
3729
3729
|
*/
|
|
3730
|
-
function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, mime_type: string
|
|
3730
|
+
function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, mime_type: string, value: any, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Z> | null): void
|
|
3731
3731
|
|
|
3732
3732
|
// Overloads of content_serialize_async
|
|
3733
3733
|
|
|
@@ -3748,7 +3748,7 @@ function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, mime_typ
|
|
|
3748
3748
|
* @param cancellable optional `GCancellable` object
|
|
3749
3749
|
* @returns A Promise of: %TRUE if the operation was successful, %FALSE if an error occurred. In this case, @error is set
|
|
3750
3750
|
*/
|
|
3751
|
-
function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, mime_type: string
|
|
3751
|
+
function content_serialize_async<Z = unknown>(stream: Gio.OutputStream, mime_type: string, value: any, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
3752
3752
|
/**
|
|
3753
3753
|
* Finishes a content serialization operation.
|
|
3754
3754
|
* @param result the `GAsyncResult`
|
|
@@ -3809,7 +3809,7 @@ function gl_error_quark(): GLib.Quark
|
|
|
3809
3809
|
* @param string string of a potential mime type
|
|
3810
3810
|
* @returns An interned string for the canonicalized mime type or %NULL if the string wasn't a valid mime type
|
|
3811
3811
|
*/
|
|
3812
|
-
function intern_mime_type(string: string
|
|
3812
|
+
function intern_mime_type(string: string): string | null
|
|
3813
3813
|
/**
|
|
3814
3814
|
* Obtains the upper- and lower-case versions of the keyval `symbol`.
|
|
3815
3815
|
*
|
|
@@ -3826,7 +3826,7 @@ function keyval_convert_case(symbol: number): [ /* lower */ number, /* upper */
|
|
|
3826
3826
|
* @param keyval_name a key name
|
|
3827
3827
|
* @returns the corresponding key value, or %GDK_KEY_VoidSymbol if the key name is not a valid key
|
|
3828
3828
|
*/
|
|
3829
|
-
function keyval_from_name(keyval_name: string
|
|
3829
|
+
function keyval_from_name(keyval_name: string): number
|
|
3830
3830
|
/**
|
|
3831
3831
|
* Returns %TRUE if the given key value is in lower case.
|
|
3832
3832
|
* @param keyval a key value.
|
|
@@ -3946,7 +3946,7 @@ function pixbuf_get_from_texture(texture: Texture): GdkPixbuf.Pixbuf | null
|
|
|
3946
3946
|
* in order to take effect.
|
|
3947
3947
|
* @param backends a comma-separated list of backends
|
|
3948
3948
|
*/
|
|
3949
|
-
function set_allowed_backends(backends: string
|
|
3949
|
+
function set_allowed_backends(backends: string): void
|
|
3950
3950
|
function texture_error_quark(): GLib.Quark
|
|
3951
3951
|
function toplevel_size_get_type(): GObject.GType
|
|
3952
3952
|
/**
|
|
@@ -4983,7 +4983,7 @@ interface Toplevel extends Surface {
|
|
|
4983
4983
|
* low-level function.
|
|
4984
4984
|
* @param startup_id a string with startup-notification identifier
|
|
4985
4985
|
*/
|
|
4986
|
-
set_startup_id(startup_id: string
|
|
4986
|
+
set_startup_id(startup_id: string): void
|
|
4987
4987
|
/**
|
|
4988
4988
|
* Sets the title of a toplevel surface.
|
|
4989
4989
|
*
|
|
@@ -4991,7 +4991,7 @@ interface Toplevel extends Surface {
|
|
|
4991
4991
|
* in lists of windows, etc.
|
|
4992
4992
|
* @param title title of `surface`
|
|
4993
4993
|
*/
|
|
4994
|
-
set_title(title: string
|
|
4994
|
+
set_title(title: string): void
|
|
4995
4995
|
/**
|
|
4996
4996
|
* Sets a transient-for parent.
|
|
4997
4997
|
*
|
|
@@ -5455,7 +5455,7 @@ interface Clipboard {
|
|
|
5455
5455
|
* @param cancellable optional `GCancellable` object
|
|
5456
5456
|
* @returns A Promise of: a `GInputStream`
|
|
5457
5457
|
*/
|
|
5458
|
-
read_async(mime_types: string[], io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* out_mime_type */ string
|
|
5458
|
+
read_async(mime_types: string[], io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* out_mime_type */ string>
|
|
5459
5459
|
/**
|
|
5460
5460
|
* Finishes an asynchronous clipboard read.
|
|
5461
5461
|
*
|
|
@@ -5463,7 +5463,7 @@ interface Clipboard {
|
|
|
5463
5463
|
* @param result a `GAsyncResult`
|
|
5464
5464
|
* @returns a `GInputStream`
|
|
5465
5465
|
*/
|
|
5466
|
-
read_finish(result: Gio.AsyncResult): [ /* returnType */ Gio.InputStream | null, /* out_mime_type */ string
|
|
5466
|
+
read_finish(result: Gio.AsyncResult): [ /* returnType */ Gio.InputStream | null, /* out_mime_type */ string ]
|
|
5467
5467
|
/**
|
|
5468
5468
|
* Asynchronously request the `clipboard` contents converted to a string.
|
|
5469
5469
|
*
|
|
@@ -5756,7 +5756,7 @@ interface ContentDeserializer extends Gio.AsyncResult {
|
|
|
5756
5756
|
* Gets the mime type to deserialize from.
|
|
5757
5757
|
* @returns the mime type for the current operation
|
|
5758
5758
|
*/
|
|
5759
|
-
get_mime_type(): string
|
|
5759
|
+
get_mime_type(): string
|
|
5760
5760
|
/**
|
|
5761
5761
|
* Gets the I/O priority for the current operation.
|
|
5762
5762
|
*
|
|
@@ -5925,7 +5925,7 @@ interface ContentProvider {
|
|
|
5925
5925
|
* @param cancellable optional `GCancellable` object, %NULL to ignore.
|
|
5926
5926
|
* @param callback callback to call when the request is satisfied
|
|
5927
5927
|
*/
|
|
5928
|
-
write_mime_type_async(mime_type: string
|
|
5928
|
+
write_mime_type_async(mime_type: string, stream: Gio.OutputStream, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
5929
5929
|
|
|
5930
5930
|
// Overloads of write_mime_type_async
|
|
5931
5931
|
|
|
@@ -5950,7 +5950,7 @@ interface ContentProvider {
|
|
|
5950
5950
|
* @param cancellable optional `GCancellable` object, %NULL to ignore.
|
|
5951
5951
|
* @returns A Promise of: %TRUE if the operation was completed successfully. Otherwise @error will be set to describe the failure.
|
|
5952
5952
|
*/
|
|
5953
|
-
write_mime_type_async(mime_type: string
|
|
5953
|
+
write_mime_type_async(mime_type: string, stream: Gio.OutputStream, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
|
|
5954
5954
|
/**
|
|
5955
5955
|
* Finishes an asynchronous write operation.
|
|
5956
5956
|
*
|
|
@@ -6018,7 +6018,7 @@ interface ContentProvider {
|
|
|
6018
6018
|
* @param cancellable optional `GCancellable` object, %NULL to ignore.
|
|
6019
6019
|
* @param callback callback to call when the request is satisfied
|
|
6020
6020
|
*/
|
|
6021
|
-
vfunc_write_mime_type_async(mime_type: string
|
|
6021
|
+
vfunc_write_mime_type_async(mime_type: string, stream: Gio.OutputStream, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
6022
6022
|
/**
|
|
6023
6023
|
* Finishes an asynchronous write operation.
|
|
6024
6024
|
*
|
|
@@ -6079,7 +6079,7 @@ class ContentProvider extends GObject.Object {
|
|
|
6079
6079
|
* @param bytes a `GBytes` with the data for `mime_type`
|
|
6080
6080
|
* @returns a new `GdkContentProvider`
|
|
6081
6081
|
*/
|
|
6082
|
-
static new_for_bytes(mime_type: string
|
|
6082
|
+
static new_for_bytes(mime_type: string, bytes: GLib.Bytes): ContentProvider
|
|
6083
6083
|
/**
|
|
6084
6084
|
* Create a content provider that provides the given `value`.
|
|
6085
6085
|
* @constructor
|
|
@@ -6140,7 +6140,7 @@ interface ContentSerializer extends Gio.AsyncResult {
|
|
|
6140
6140
|
* Gets the mime type to serialize to.
|
|
6141
6141
|
* @returns the mime type for the current operation
|
|
6142
6142
|
*/
|
|
6143
|
-
get_mime_type(): string
|
|
6143
|
+
get_mime_type(): string
|
|
6144
6144
|
/**
|
|
6145
6145
|
* Gets the output stream for the current operation.
|
|
6146
6146
|
*
|
|
@@ -6481,7 +6481,7 @@ class Cursor extends GObject.Object {
|
|
|
6481
6481
|
* @param fallback %NULL or the `GdkCursor` to fall back to when this one cannot be supported
|
|
6482
6482
|
* @returns a new `GdkCursor`, or %NULL if there is no cursor with the given name
|
|
6483
6483
|
*/
|
|
6484
|
-
static new_from_name(name: string
|
|
6484
|
+
static new_from_name(name: string, fallback: Cursor | null): Cursor
|
|
6485
6485
|
/**
|
|
6486
6486
|
* Creates a new cursor from a `GdkTexture`.
|
|
6487
6487
|
* @constructor
|
|
@@ -6815,7 +6815,7 @@ interface Device {
|
|
|
6815
6815
|
* The name of the device, suitable for showing in a user interface.
|
|
6816
6816
|
* @returns a name
|
|
6817
6817
|
*/
|
|
6818
|
-
get_name(): string
|
|
6818
|
+
get_name(): string
|
|
6819
6819
|
/**
|
|
6820
6820
|
* Retrieves whether the Num Lock modifier of the keyboard is locked.
|
|
6821
6821
|
*
|
|
@@ -7281,7 +7281,7 @@ interface Display {
|
|
|
7281
7281
|
* Gets the name of the display.
|
|
7282
7282
|
* @returns a string representing the display name. This string is owned by GDK and should not be modified or freed.
|
|
7283
7283
|
*/
|
|
7284
|
-
get_name(): string
|
|
7284
|
+
get_name(): string
|
|
7285
7285
|
/**
|
|
7286
7286
|
* Gets the clipboard used for the primary selection.
|
|
7287
7287
|
*
|
|
@@ -7297,7 +7297,7 @@ interface Display {
|
|
|
7297
7297
|
* @param value location to store the value of the setting
|
|
7298
7298
|
* @returns %TRUE if the setting existed and a value was stored in @value, %FALSE otherwise
|
|
7299
7299
|
*/
|
|
7300
|
-
get_setting(name: string
|
|
7300
|
+
get_setting(name: string, value: any): boolean
|
|
7301
7301
|
/**
|
|
7302
7302
|
* Gets the startup notification ID for a Wayland display, or %NULL
|
|
7303
7303
|
* if no ID has been defined.
|
|
@@ -7387,7 +7387,7 @@ interface Display {
|
|
|
7387
7387
|
* is called to disable that feature.
|
|
7388
7388
|
* @param startup_id a startup-notification identifier, for which notification process should be completed
|
|
7389
7389
|
*/
|
|
7390
|
-
notify_startup_complete(startup_id: string
|
|
7390
|
+
notify_startup_complete(startup_id: string): void
|
|
7391
7391
|
/**
|
|
7392
7392
|
* Checks that OpenGL is available for `self` and ensures that it is
|
|
7393
7393
|
* properly initialized.
|
|
@@ -8248,7 +8248,7 @@ interface Drop {
|
|
|
8248
8248
|
* @param cancellable optional `GCancellable` object
|
|
8249
8249
|
* @returns A Promise of: the `GInputStream`
|
|
8250
8250
|
*/
|
|
8251
|
-
read_async(mime_types: string[], io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* out_mime_type */ string
|
|
8251
|
+
read_async(mime_types: string[], io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise</* out_mime_type */ string>
|
|
8252
8252
|
/**
|
|
8253
8253
|
* Finishes an async drop read operation.
|
|
8254
8254
|
*
|
|
@@ -8261,7 +8261,7 @@ interface Drop {
|
|
|
8261
8261
|
* @param result a `GAsyncResult`
|
|
8262
8262
|
* @returns the `GInputStream`
|
|
8263
8263
|
*/
|
|
8264
|
-
read_finish(result: Gio.AsyncResult): [ /* returnType */ Gio.InputStream | null, /* out_mime_type */ string
|
|
8264
|
+
read_finish(result: Gio.AsyncResult): [ /* returnType */ Gio.InputStream | null, /* out_mime_type */ string ]
|
|
8265
8265
|
/**
|
|
8266
8266
|
* Asynchronously request the drag operation's contents converted
|
|
8267
8267
|
* to the given `type`.
|
|
@@ -11066,7 +11066,7 @@ class Texture extends GObject.Object {
|
|
|
11066
11066
|
* @param resource_path the path of the resource file
|
|
11067
11067
|
* @returns A newly-created `GdkTexture`
|
|
11068
11068
|
*/
|
|
11069
|
-
static new_from_resource(resource_path: string
|
|
11069
|
+
static new_from_resource(resource_path: string): Texture
|
|
11070
11070
|
_init(config?: Texture.ConstructorProperties): void
|
|
11071
11071
|
}
|
|
11072
11072
|
|
|
@@ -11219,7 +11219,7 @@ interface ContentFormats {
|
|
|
11219
11219
|
* @param mime_type the mime type to search for
|
|
11220
11220
|
* @returns %TRUE if the mime_type was found
|
|
11221
11221
|
*/
|
|
11222
|
-
contain_mime_type(mime_type: string
|
|
11222
|
+
contain_mime_type(mime_type: string): boolean
|
|
11223
11223
|
/**
|
|
11224
11224
|
* Gets the `GType`s included in `formats`.
|
|
11225
11225
|
*
|
|
@@ -11406,7 +11406,7 @@ class ContentFormats {
|
|
|
11406
11406
|
* @param string the string to parse
|
|
11407
11407
|
* @returns the content formats if @string is valid
|
|
11408
11408
|
*/
|
|
11409
|
-
static parse(string: string
|
|
11409
|
+
static parse(string: string): ContentFormats | null
|
|
11410
11410
|
}
|
|
11411
11411
|
|
|
11412
11412
|
interface ContentFormatsBuilder {
|
|
@@ -11428,7 +11428,7 @@ interface ContentFormatsBuilder {
|
|
|
11428
11428
|
* Appends `mime_type` to `builder` if it has not already been added.
|
|
11429
11429
|
* @param mime_type a mime type
|
|
11430
11430
|
*/
|
|
11431
|
-
add_mime_type(mime_type: string
|
|
11431
|
+
add_mime_type(mime_type: string): void
|
|
11432
11432
|
/**
|
|
11433
11433
|
* Acquires a reference on the given `builder`.
|
|
11434
11434
|
*
|
|
@@ -11497,7 +11497,7 @@ interface ContentProviderClass {
|
|
|
11497
11497
|
detach_clipboard: (provider: ContentProvider, clipboard: Clipboard) => void
|
|
11498
11498
|
ref_formats: (provider: ContentProvider) => ContentFormats
|
|
11499
11499
|
ref_storable_formats: (provider: ContentProvider) => ContentFormats
|
|
11500
|
-
write_mime_type_async: (provider: ContentProvider, mime_type: string
|
|
11500
|
+
write_mime_type_async: (provider: ContentProvider, mime_type: string, stream: Gio.OutputStream, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
11501
11501
|
write_mime_type_finish: (provider: ContentProvider, result: Gio.AsyncResult) => boolean
|
|
11502
11502
|
get_value: (provider: ContentProvider) => [ /* returnType */ boolean, /* value */ any ]
|
|
11503
11503
|
}
|
|
@@ -12136,7 +12136,7 @@ interface RGBA {
|
|
|
12136
12136
|
* @param spec the string specifying the color
|
|
12137
12137
|
* @returns %TRUE if the parsing succeeded
|
|
12138
12138
|
*/
|
|
12139
|
-
parse(spec: string
|
|
12139
|
+
parse(spec: string): boolean
|
|
12140
12140
|
/**
|
|
12141
12141
|
* Returns a textual specification of `rgba` in the form
|
|
12142
12142
|
* `rgb(r,g,b)` or `rgba(r,g,b,a)`, where “r”, “g”, “b” and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gdk-4.0",
|
|
3
|
-
"version": "4.0.0-3.2.
|
|
3
|
+
"version": "4.0.0-3.2.7",
|
|
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.
|
|
29
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
30
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/gjs": "^3.2.
|
|
33
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
34
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
35
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
36
|
-
"@girs/harfbuzz-0.0": "^8.2.1-3.2.
|
|
37
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
38
|
-
"@girs/pangocairo-1.0": "^1.0.0-3.2.
|
|
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
|
+
"@girs/pangocairo-1.0": "^1.0.0-3.2.7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "*"
|