@girs/gdk-3.0 3.24.38-3.2.6 → 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 +1 -1
- package/gdk-3.0.d.cts +24 -24
- package/gdk-3.0.d.ts +24 -24
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
@@ -6363,7 +6363,7 @@ export class Cursor extends GObject.Object {
|
|
|
6363
6363
|
* @param name the name of the cursor
|
|
6364
6364
|
* @returns a new #GdkCursor, or %NULL if there is no cursor with the given name
|
|
6365
6365
|
*/
|
|
6366
|
-
static new_from_name(display: Display, name: string
|
|
6366
|
+
static new_from_name(display: Display, name: string): Cursor
|
|
6367
6367
|
/**
|
|
6368
6368
|
* Creates a new cursor from a pixbuf.
|
|
6369
6369
|
*
|
|
@@ -6693,7 +6693,7 @@ export interface Device {
|
|
|
6693
6693
|
* Determines the name of the device.
|
|
6694
6694
|
* @returns a name
|
|
6695
6695
|
*/
|
|
6696
|
-
get_name(): string
|
|
6696
|
+
get_name(): string
|
|
6697
6697
|
/**
|
|
6698
6698
|
* Gets the current location of `device`. As a slave device
|
|
6699
6699
|
* coordinates are those of its master pointer, This function
|
|
@@ -7442,7 +7442,7 @@ export interface Display {
|
|
|
7442
7442
|
* Gets the name of the display.
|
|
7443
7443
|
* @returns a string representing the display name. This string is owned by GDK and should not be modified or freed.
|
|
7444
7444
|
*/
|
|
7445
|
-
get_name(): string
|
|
7445
|
+
get_name(): string
|
|
7446
7446
|
/**
|
|
7447
7447
|
* Gets the current location of the pointer and the current modifier
|
|
7448
7448
|
* mask for a given display.
|
|
@@ -7509,7 +7509,7 @@ export interface Display {
|
|
|
7509
7509
|
* disable that feature.
|
|
7510
7510
|
* @param startup_id a startup-notification identifier, for which notification process should be completed
|
|
7511
7511
|
*/
|
|
7512
|
-
notify_startup_complete(startup_id: string
|
|
7512
|
+
notify_startup_complete(startup_id: string): void
|
|
7513
7513
|
/**
|
|
7514
7514
|
* Gets a copy of the first #GdkEvent in the `display’`s event queue, without
|
|
7515
7515
|
* removing the event from the queue. (Note that this function will
|
|
@@ -7720,7 +7720,7 @@ export class Display extends GObject.Object {
|
|
|
7720
7720
|
* @param display_name the name of the display to open
|
|
7721
7721
|
* @returns a #GdkDisplay, or %NULL if the display could not be opened
|
|
7722
7722
|
*/
|
|
7723
|
-
static open(display_name: string
|
|
7723
|
+
static open(display_name: string): Display | null
|
|
7724
7724
|
/**
|
|
7725
7725
|
* Opens the default display specified by command line arguments or
|
|
7726
7726
|
* environment variables, sets it as the default display, and returns
|
|
@@ -7780,7 +7780,7 @@ export interface DisplayManager {
|
|
|
7780
7780
|
* @param name the name of the display to open
|
|
7781
7781
|
* @returns a #GdkDisplay, or %NULL if the display could not be opened
|
|
7782
7782
|
*/
|
|
7783
|
-
open_display(name: string
|
|
7783
|
+
open_display(name: string): Display | null
|
|
7784
7784
|
/**
|
|
7785
7785
|
* Sets `display` as the default display.
|
|
7786
7786
|
* @param display a #GdkDisplay
|
|
@@ -9321,7 +9321,7 @@ export interface Screen {
|
|
|
9321
9321
|
* @param value location to store the value of the setting
|
|
9322
9322
|
* @returns %TRUE if the setting existed and a value was stored in @value, %FALSE otherwise.
|
|
9323
9323
|
*/
|
|
9324
|
-
get_setting(name: string
|
|
9324
|
+
get_setting(name: string, value: any): boolean
|
|
9325
9325
|
/**
|
|
9326
9326
|
* Get the system’s default visual for `screen`.
|
|
9327
9327
|
* This is the visual for the root window of the display.
|
|
@@ -11356,7 +11356,7 @@ export interface Window {
|
|
|
11356
11356
|
* non-interchangeable kind of window.
|
|
11357
11357
|
* @param role a string indicating its role
|
|
11358
11358
|
*/
|
|
11359
|
-
set_role(role: string
|
|
11359
|
+
set_role(role: string): void
|
|
11360
11360
|
/**
|
|
11361
11361
|
* Newer GTK+ windows using client-side decorations use extra geometry
|
|
11362
11362
|
* around their frames for effects like shadows and invisible borders.
|
|
@@ -11409,7 +11409,7 @@ export interface Window {
|
|
|
11409
11409
|
* instead of this low-level function.
|
|
11410
11410
|
* @param startup_id a string with startup-notification identifier
|
|
11411
11411
|
*/
|
|
11412
|
-
set_startup_id(startup_id: string
|
|
11412
|
+
set_startup_id(startup_id: string): void
|
|
11413
11413
|
/**
|
|
11414
11414
|
* Used to set the bit gravity of the given window to static, and flag
|
|
11415
11415
|
* it so all children get static subwindow gravity. This is used if you
|
|
@@ -11435,7 +11435,7 @@ export interface Window {
|
|
|
11435
11435
|
* user-readable strings in GDK/GTK+). `title` may not be %NULL.
|
|
11436
11436
|
* @param title title of `window`
|
|
11437
11437
|
*/
|
|
11438
|
-
set_title(title: string
|
|
11438
|
+
set_title(title: string): void
|
|
11439
11439
|
/**
|
|
11440
11440
|
* Indicates to the window manager that `window` is a transient dialog
|
|
11441
11441
|
* associated with the application window `parent`. This allows the
|
|
@@ -11740,7 +11740,7 @@ export class Atom {
|
|
|
11740
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.
|
|
11741
11741
|
* @returns the atom corresponding to @atom_name.
|
|
11742
11742
|
*/
|
|
11743
|
-
static intern(atom_name: string
|
|
11743
|
+
static intern(atom_name: string, only_if_exists: boolean): Atom
|
|
11744
11744
|
/**
|
|
11745
11745
|
* Finds or creates an atom corresponding to a given string.
|
|
11746
11746
|
*
|
|
@@ -11755,7 +11755,7 @@ export class Atom {
|
|
|
11755
11755
|
* @param atom_name a static string
|
|
11756
11756
|
* @returns the atom corresponding to @atom_name
|
|
11757
11757
|
*/
|
|
11758
|
-
static intern_static_string(atom_name: string
|
|
11758
|
+
static intern_static_string(atom_name: string): Atom
|
|
11759
11759
|
}
|
|
11760
11760
|
|
|
11761
11761
|
export interface Color {
|
|
@@ -11849,7 +11849,7 @@ export class Color {
|
|
|
11849
11849
|
* @param spec the string specifying the color
|
|
11850
11850
|
* @returns %TRUE if the parsing succeeded
|
|
11851
11851
|
*/
|
|
11852
|
-
static parse(spec: string
|
|
11852
|
+
static parse(spec: string): [ /* returnType */ boolean, /* color */ Color ]
|
|
11853
11853
|
}
|
|
11854
11854
|
|
|
11855
11855
|
export interface DevicePadInterface {
|
|
@@ -13820,7 +13820,7 @@ export interface RGBA {
|
|
|
13820
13820
|
* @param spec the string specifying the color
|
|
13821
13821
|
* @returns %TRUE if the parsing succeeded
|
|
13822
13822
|
*/
|
|
13823
|
-
parse(spec: string
|
|
13823
|
+
parse(spec: string): boolean
|
|
13824
13824
|
/**
|
|
13825
13825
|
* Returns a textual specification of `rgba` in the form
|
|
13826
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
@@ -6365,7 +6365,7 @@ class Cursor extends GObject.Object {
|
|
|
6365
6365
|
* @param name the name of the cursor
|
|
6366
6366
|
* @returns a new #GdkCursor, or %NULL if there is no cursor with the given name
|
|
6367
6367
|
*/
|
|
6368
|
-
static new_from_name(display: Display, name: string
|
|
6368
|
+
static new_from_name(display: Display, name: string): Cursor
|
|
6369
6369
|
/**
|
|
6370
6370
|
* Creates a new cursor from a pixbuf.
|
|
6371
6371
|
*
|
|
@@ -6695,7 +6695,7 @@ interface Device {
|
|
|
6695
6695
|
* Determines the name of the device.
|
|
6696
6696
|
* @returns a name
|
|
6697
6697
|
*/
|
|
6698
|
-
get_name(): string
|
|
6698
|
+
get_name(): string
|
|
6699
6699
|
/**
|
|
6700
6700
|
* Gets the current location of `device`. As a slave device
|
|
6701
6701
|
* coordinates are those of its master pointer, This function
|
|
@@ -7444,7 +7444,7 @@ interface Display {
|
|
|
7444
7444
|
* Gets the name of the display.
|
|
7445
7445
|
* @returns a string representing the display name. This string is owned by GDK and should not be modified or freed.
|
|
7446
7446
|
*/
|
|
7447
|
-
get_name(): string
|
|
7447
|
+
get_name(): string
|
|
7448
7448
|
/**
|
|
7449
7449
|
* Gets the current location of the pointer and the current modifier
|
|
7450
7450
|
* mask for a given display.
|
|
@@ -7511,7 +7511,7 @@ interface Display {
|
|
|
7511
7511
|
* disable that feature.
|
|
7512
7512
|
* @param startup_id a startup-notification identifier, for which notification process should be completed
|
|
7513
7513
|
*/
|
|
7514
|
-
notify_startup_complete(startup_id: string
|
|
7514
|
+
notify_startup_complete(startup_id: string): void
|
|
7515
7515
|
/**
|
|
7516
7516
|
* Gets a copy of the first #GdkEvent in the `display’`s event queue, without
|
|
7517
7517
|
* removing the event from the queue. (Note that this function will
|
|
@@ -7722,7 +7722,7 @@ class Display extends GObject.Object {
|
|
|
7722
7722
|
* @param display_name the name of the display to open
|
|
7723
7723
|
* @returns a #GdkDisplay, or %NULL if the display could not be opened
|
|
7724
7724
|
*/
|
|
7725
|
-
static open(display_name: string
|
|
7725
|
+
static open(display_name: string): Display | null
|
|
7726
7726
|
/**
|
|
7727
7727
|
* Opens the default display specified by command line arguments or
|
|
7728
7728
|
* environment variables, sets it as the default display, and returns
|
|
@@ -7782,7 +7782,7 @@ interface DisplayManager {
|
|
|
7782
7782
|
* @param name the name of the display to open
|
|
7783
7783
|
* @returns a #GdkDisplay, or %NULL if the display could not be opened
|
|
7784
7784
|
*/
|
|
7785
|
-
open_display(name: string
|
|
7785
|
+
open_display(name: string): Display | null
|
|
7786
7786
|
/**
|
|
7787
7787
|
* Sets `display` as the default display.
|
|
7788
7788
|
* @param display a #GdkDisplay
|
|
@@ -9323,7 +9323,7 @@ interface Screen {
|
|
|
9323
9323
|
* @param value location to store the value of the setting
|
|
9324
9324
|
* @returns %TRUE if the setting existed and a value was stored in @value, %FALSE otherwise.
|
|
9325
9325
|
*/
|
|
9326
|
-
get_setting(name: string
|
|
9326
|
+
get_setting(name: string, value: any): boolean
|
|
9327
9327
|
/**
|
|
9328
9328
|
* Get the system’s default visual for `screen`.
|
|
9329
9329
|
* This is the visual for the root window of the display.
|
|
@@ -11358,7 +11358,7 @@ interface Window {
|
|
|
11358
11358
|
* non-interchangeable kind of window.
|
|
11359
11359
|
* @param role a string indicating its role
|
|
11360
11360
|
*/
|
|
11361
|
-
set_role(role: string
|
|
11361
|
+
set_role(role: string): void
|
|
11362
11362
|
/**
|
|
11363
11363
|
* Newer GTK+ windows using client-side decorations use extra geometry
|
|
11364
11364
|
* around their frames for effects like shadows and invisible borders.
|
|
@@ -11411,7 +11411,7 @@ interface Window {
|
|
|
11411
11411
|
* instead of this low-level function.
|
|
11412
11412
|
* @param startup_id a string with startup-notification identifier
|
|
11413
11413
|
*/
|
|
11414
|
-
set_startup_id(startup_id: string
|
|
11414
|
+
set_startup_id(startup_id: string): void
|
|
11415
11415
|
/**
|
|
11416
11416
|
* Used to set the bit gravity of the given window to static, and flag
|
|
11417
11417
|
* it so all children get static subwindow gravity. This is used if you
|
|
@@ -11437,7 +11437,7 @@ interface Window {
|
|
|
11437
11437
|
* user-readable strings in GDK/GTK+). `title` may not be %NULL.
|
|
11438
11438
|
* @param title title of `window`
|
|
11439
11439
|
*/
|
|
11440
|
-
set_title(title: string
|
|
11440
|
+
set_title(title: string): void
|
|
11441
11441
|
/**
|
|
11442
11442
|
* Indicates to the window manager that `window` is a transient dialog
|
|
11443
11443
|
* associated with the application window `parent`. This allows the
|
|
@@ -11742,7 +11742,7 @@ class Atom {
|
|
|
11742
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.
|
|
11743
11743
|
* @returns the atom corresponding to @atom_name.
|
|
11744
11744
|
*/
|
|
11745
|
-
static intern(atom_name: string
|
|
11745
|
+
static intern(atom_name: string, only_if_exists: boolean): Atom
|
|
11746
11746
|
/**
|
|
11747
11747
|
* Finds or creates an atom corresponding to a given string.
|
|
11748
11748
|
*
|
|
@@ -11757,7 +11757,7 @@ class Atom {
|
|
|
11757
11757
|
* @param atom_name a static string
|
|
11758
11758
|
* @returns the atom corresponding to @atom_name
|
|
11759
11759
|
*/
|
|
11760
|
-
static intern_static_string(atom_name: string
|
|
11760
|
+
static intern_static_string(atom_name: string): Atom
|
|
11761
11761
|
}
|
|
11762
11762
|
|
|
11763
11763
|
interface Color {
|
|
@@ -11851,7 +11851,7 @@ class Color {
|
|
|
11851
11851
|
* @param spec the string specifying the color
|
|
11852
11852
|
* @returns %TRUE if the parsing succeeded
|
|
11853
11853
|
*/
|
|
11854
|
-
static parse(spec: string
|
|
11854
|
+
static parse(spec: string): [ /* returnType */ boolean, /* color */ Color ]
|
|
11855
11855
|
}
|
|
11856
11856
|
|
|
11857
11857
|
interface DevicePadInterface {
|
|
@@ -13822,7 +13822,7 @@ interface RGBA {
|
|
|
13822
13822
|
* @param spec the string specifying the color
|
|
13823
13823
|
* @returns %TRUE if the parsing succeeded
|
|
13824
13824
|
*/
|
|
13825
|
-
parse(spec: string
|
|
13825
|
+
parse(spec: string): boolean
|
|
13826
13826
|
/**
|
|
13827
13827
|
* Returns a textual specification of `rgba` in the form
|
|
13828
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.
|
|
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.
|
|
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.
|
|
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": "*"
|