@girs/gtksource-4 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/gtksource-4.d.cts +54 -54
- package/gtksource-4.d.ts +54 -54
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GtkSource-4, 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 GtkSource-4, 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
|
GtkSourceView is a GNOME library that extends GtkTextView, the standard GTK+ widget for multiline text editing. GtkSourceView adds support for syntax highlighting, undo/redo, file loading and saving, search and replace, a completion system, printing, displaying line numbers, and other features typical of a source code editor.
|
|
11
11
|
|
package/gtksource-4.d.cts
CHANGED
|
@@ -369,7 +369,7 @@ export function encoding_get_default_candidates(): Encoding[]
|
|
|
369
369
|
* @param charset a character set.
|
|
370
370
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
371
371
|
*/
|
|
372
|
-
export function encoding_get_from_charset(charset: string
|
|
372
|
+
export function encoding_get_from_charset(charset: string): Encoding | null
|
|
373
373
|
export function encoding_get_utf8(): Encoding
|
|
374
374
|
export function file_loader_error_quark(): GLib.Quark
|
|
375
375
|
export function file_saver_error_quark(): GLib.Quark
|
|
@@ -409,7 +409,7 @@ export function init(): void
|
|
|
409
409
|
* @param text the text to escape.
|
|
410
410
|
* @returns the escaped @text.
|
|
411
411
|
*/
|
|
412
|
-
export function utils_escape_search_text(text: string
|
|
412
|
+
export function utils_escape_search_text(text: string): string | null
|
|
413
413
|
/**
|
|
414
414
|
* Use this function before gtk_source_search_settings_set_search_text(), to
|
|
415
415
|
* unescape the following sequences of characters: `\n`, `\r`, `\t` and `\\`.
|
|
@@ -422,7 +422,7 @@ export function utils_escape_search_text(text: string | null): string | null
|
|
|
422
422
|
* @param text the text to unescape.
|
|
423
423
|
* @returns the unescaped @text.
|
|
424
424
|
*/
|
|
425
|
-
export function utils_unescape_search_text(text: string
|
|
425
|
+
export function utils_unescape_search_text(text: string): string | null
|
|
426
426
|
export module CompletionProposal {
|
|
427
427
|
|
|
428
428
|
// Signal callback interfaces
|
|
@@ -1376,7 +1376,7 @@ export interface Buffer {
|
|
|
1376
1376
|
* @param where location to place the mark.
|
|
1377
1377
|
* @returns a new #GtkSourceMark, owned by the buffer.
|
|
1378
1378
|
*/
|
|
1379
|
-
create_source_mark(name: string | null, category: string
|
|
1379
|
+
create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
|
|
1380
1380
|
/**
|
|
1381
1381
|
* Marks the end of a not undoable action on the buffer. When the
|
|
1382
1382
|
* last not undoable block is closed through the call to this
|
|
@@ -1482,7 +1482,7 @@ export interface Buffer {
|
|
|
1482
1482
|
* @param context_class the context class.
|
|
1483
1483
|
* @returns whether we found a context class toggle before @iter
|
|
1484
1484
|
*/
|
|
1485
|
-
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1485
|
+
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
|
|
1486
1486
|
/**
|
|
1487
1487
|
* Moves forward to the next toggle (on or off) of the context class. If no
|
|
1488
1488
|
* matching context class toggles are found, returns %FALSE, otherwise %TRUE.
|
|
@@ -1495,7 +1495,7 @@ export interface Buffer {
|
|
|
1495
1495
|
* @param context_class the context class.
|
|
1496
1496
|
* @returns whether we found a context class toggle after @iter
|
|
1497
1497
|
*/
|
|
1498
|
-
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1498
|
+
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Check if the class `context_class` is set on `iter`.
|
|
1501
1501
|
*
|
|
@@ -1504,7 +1504,7 @@ export interface Buffer {
|
|
|
1504
1504
|
* @param context_class class to search for.
|
|
1505
1505
|
* @returns whether @iter has the context class.
|
|
1506
1506
|
*/
|
|
1507
|
-
iter_has_context_class(iter: Gtk.TextIter, context_class: string
|
|
1507
|
+
iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
|
|
1508
1508
|
/**
|
|
1509
1509
|
* Joins the lines of text between the specified iterators.
|
|
1510
1510
|
* @param start a #GtkTextIter.
|
|
@@ -2368,7 +2368,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2368
2368
|
* @param child the child widget
|
|
2369
2369
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2370
2370
|
*/
|
|
2371
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2371
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2372
2372
|
|
|
2373
2373
|
// Overloads of child_notify
|
|
2374
2374
|
|
|
@@ -2382,7 +2382,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2382
2382
|
* Also see gtk_container_child_notify().
|
|
2383
2383
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2384
2384
|
*/
|
|
2385
|
-
child_notify(child_property: string
|
|
2385
|
+
child_notify(child_property: string): void
|
|
2386
2386
|
/**
|
|
2387
2387
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2388
2388
|
* [child property][child-properties] `child_property`
|
|
@@ -2393,7 +2393,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2393
2393
|
* Also see gtk_container_child_notify().
|
|
2394
2394
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2395
2395
|
*/
|
|
2396
|
-
child_notify(child_property: string
|
|
2396
|
+
child_notify(child_property: string): void
|
|
2397
2397
|
|
|
2398
2398
|
// Class property signals of GtkSource-4.GtkSource.CompletionInfo
|
|
2399
2399
|
|
|
@@ -4194,7 +4194,7 @@ export interface GutterRendererPixbuf {
|
|
|
4194
4194
|
* @returns a #GIcon
|
|
4195
4195
|
*/
|
|
4196
4196
|
get_gicon(): Gio.Icon
|
|
4197
|
-
get_icon_name(): string
|
|
4197
|
+
get_icon_name(): string
|
|
4198
4198
|
/**
|
|
4199
4199
|
* Get the pixbuf of the renderer.
|
|
4200
4200
|
* @returns a #GdkPixbuf
|
|
@@ -4307,15 +4307,15 @@ export interface GutterRendererText {
|
|
|
4307
4307
|
* #GtkSourceGutterRendererText.
|
|
4308
4308
|
* @param text the text to measure.
|
|
4309
4309
|
*/
|
|
4310
|
-
measure(text: string
|
|
4310
|
+
measure(text: string): [ /* width */ number, /* height */ number ]
|
|
4311
4311
|
/**
|
|
4312
4312
|
* Measures the pango markup provided using the pango layout used by the
|
|
4313
4313
|
* #GtkSourceGutterRendererText.
|
|
4314
4314
|
* @param markup the pango markup to measure.
|
|
4315
4315
|
*/
|
|
4316
|
-
measure_markup(markup: string
|
|
4317
|
-
set_markup(markup: string
|
|
4318
|
-
set_text(text: string
|
|
4316
|
+
measure_markup(markup: string): [ /* width */ number, /* height */ number ]
|
|
4317
|
+
set_markup(markup: string, length: number): void
|
|
4318
|
+
set_text(text: string, length: number): void
|
|
4319
4319
|
|
|
4320
4320
|
// Class property signals of GtkSource-4.GtkSource.GutterRendererText
|
|
4321
4321
|
|
|
@@ -4432,8 +4432,8 @@ export interface Language {
|
|
|
4432
4432
|
* or modified.
|
|
4433
4433
|
* @returns the ID of @language.
|
|
4434
4434
|
*/
|
|
4435
|
-
get_id(): string
|
|
4436
|
-
get_metadata(name: string
|
|
4435
|
+
get_id(): string
|
|
4436
|
+
get_metadata(name: string): string | null
|
|
4437
4437
|
/**
|
|
4438
4438
|
* Returns the mime types associated to this language. This is just
|
|
4439
4439
|
* an utility wrapper around gtk_source_language_get_metadata() to
|
|
@@ -4448,7 +4448,7 @@ export interface Language {
|
|
|
4448
4448
|
* or modified.
|
|
4449
4449
|
* @returns the name of @language.
|
|
4450
4450
|
*/
|
|
4451
|
-
get_name(): string
|
|
4451
|
+
get_name(): string
|
|
4452
4452
|
/**
|
|
4453
4453
|
* Returns the localized section of the language.
|
|
4454
4454
|
* Each language belong to a section (ex. HTML belogs to the
|
|
@@ -4457,14 +4457,14 @@ export interface Language {
|
|
|
4457
4457
|
* or modified.
|
|
4458
4458
|
* @returns the section of @language.
|
|
4459
4459
|
*/
|
|
4460
|
-
get_section(): string
|
|
4460
|
+
get_section(): string
|
|
4461
4461
|
/**
|
|
4462
4462
|
* Returns the ID of the style to use if the specified `style_id`
|
|
4463
4463
|
* is not present in the current style scheme.
|
|
4464
4464
|
* @param style_id a style ID.
|
|
4465
4465
|
* @returns the ID of the style to use if the specified @style_id is not present in the current style scheme or %NULL if the style has no fallback defined. The returned string is owned by the @language and must not be modified.
|
|
4466
4466
|
*/
|
|
4467
|
-
get_style_fallback(style_id: string
|
|
4467
|
+
get_style_fallback(style_id: string): string | null
|
|
4468
4468
|
/**
|
|
4469
4469
|
* Returns the ids of the styles defined by this `language`.
|
|
4470
4470
|
* @returns a newly-allocated %NULL terminated array containing ids of the styles defined by this @language or %NULL if no style is defined. The returned array must be freed with g_strfreev().
|
|
@@ -4475,7 +4475,7 @@ export interface Language {
|
|
|
4475
4475
|
* @param style_id a style ID.
|
|
4476
4476
|
* @returns the name of the style with ID @style_id defined by this @language or %NULL if the style has no name or there is no style with ID @style_id defined by this @language. The returned string is owned by the @language and must not be modified.
|
|
4477
4477
|
*/
|
|
4478
|
-
get_style_name(style_id: string
|
|
4478
|
+
get_style_name(style_id: string): string | null
|
|
4479
4479
|
|
|
4480
4480
|
// Class property signals of GtkSource-4.GtkSource.Language
|
|
4481
4481
|
|
|
@@ -4546,7 +4546,7 @@ export interface LanguageManager {
|
|
|
4546
4546
|
* @param id a language id.
|
|
4547
4547
|
* @returns a #GtkSourceLanguage, or %NULL if there is no language identified by the given @id. Return value is owned by @lm and should not be freed.
|
|
4548
4548
|
*/
|
|
4549
|
-
get_language(id: string
|
|
4549
|
+
get_language(id: string): Language | null
|
|
4550
4550
|
/**
|
|
4551
4551
|
* Returns the ids of the available languages.
|
|
4552
4552
|
* @returns a %NULL-terminated array of strings containing the ids of the available languages or %NULL if no language is available. The array is sorted alphabetically according to the language name. The array is owned by @lm and must not be modified.
|
|
@@ -4741,7 +4741,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4741
4741
|
* @param child the child widget
|
|
4742
4742
|
* @param child_property the name of a child property installed on the class of `container`
|
|
4743
4743
|
*/
|
|
4744
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
4744
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
4745
4745
|
|
|
4746
4746
|
// Overloads of child_notify
|
|
4747
4747
|
|
|
@@ -4755,7 +4755,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4755
4755
|
* Also see gtk_container_child_notify().
|
|
4756
4756
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4757
4757
|
*/
|
|
4758
|
-
child_notify(child_property: string
|
|
4758
|
+
child_notify(child_property: string): void
|
|
4759
4759
|
/**
|
|
4760
4760
|
* Emits a #GtkWidget::child-notify signal for the
|
|
4761
4761
|
* [child property][child-properties] `child_property`
|
|
@@ -4766,7 +4766,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4766
4766
|
* Also see gtk_container_child_notify().
|
|
4767
4767
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4768
4768
|
*/
|
|
4769
|
-
child_notify(child_property: string
|
|
4769
|
+
child_notify(child_property: string): void
|
|
4770
4770
|
|
|
4771
4771
|
// Class property signals of GtkSource-4.GtkSource.Map
|
|
4772
4772
|
|
|
@@ -5095,7 +5095,7 @@ export interface Mark {
|
|
|
5095
5095
|
* Returns the mark category.
|
|
5096
5096
|
* @returns the category of the #GtkSourceMark.
|
|
5097
5097
|
*/
|
|
5098
|
-
get_category(): string
|
|
5098
|
+
get_category(): string
|
|
5099
5099
|
/**
|
|
5100
5100
|
* Returns the next #GtkSourceMark in the buffer or %NULL if the mark
|
|
5101
5101
|
* was not added to a buffer. If there is no next mark, %NULL will be returned.
|
|
@@ -5153,7 +5153,7 @@ export class Mark extends Gtk.TextMark {
|
|
|
5153
5153
|
* @param category is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).
|
|
5154
5154
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5155
5155
|
*/
|
|
5156
|
-
constructor(name: string | null, category: string
|
|
5156
|
+
constructor(name: string | null, category: string)
|
|
5157
5157
|
/**
|
|
5158
5158
|
* Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
|
|
5159
5159
|
* If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
|
|
@@ -5165,7 +5165,7 @@ export class Mark extends Gtk.TextMark {
|
|
|
5165
5165
|
* @param category is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).
|
|
5166
5166
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5167
5167
|
*/
|
|
5168
|
-
static new(name: string | null, category: string
|
|
5168
|
+
static new(name: string | null, category: string): Mark
|
|
5169
5169
|
|
|
5170
5170
|
// Overloads of new
|
|
5171
5171
|
|
|
@@ -5280,7 +5280,7 @@ export interface MarkAttributes {
|
|
|
5280
5280
|
* icon name can be %NULL if it wasn't set earlier.
|
|
5281
5281
|
* @returns An icon name. The string belongs to @attributes and should not be freed.
|
|
5282
5282
|
*/
|
|
5283
|
-
get_icon_name(): string
|
|
5283
|
+
get_icon_name(): string
|
|
5284
5284
|
/**
|
|
5285
5285
|
* Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
|
|
5286
5286
|
* pixbuf can be %NULL if it wasn't set earlier.
|
|
@@ -5327,7 +5327,7 @@ export interface MarkAttributes {
|
|
|
5327
5327
|
* Sets a name of an icon to be used as a base for rendered icon.
|
|
5328
5328
|
* @param icon_name name of an icon to be used.
|
|
5329
5329
|
*/
|
|
5330
|
-
set_icon_name(icon_name: string
|
|
5330
|
+
set_icon_name(icon_name: string): void
|
|
5331
5331
|
/**
|
|
5332
5332
|
* Sets a pixbuf to be used as a base for rendered icon.
|
|
5333
5333
|
* @param pixbuf a #GdkPixbuf to be used.
|
|
@@ -6037,7 +6037,7 @@ export interface PrintCompositor {
|
|
|
6037
6037
|
* gtk_source_print_compositor_paginate() function.
|
|
6038
6038
|
* @param font_name the name of the default font for the body text.
|
|
6039
6039
|
*/
|
|
6040
|
-
set_body_font_name(font_name: string
|
|
6040
|
+
set_body_font_name(font_name: string): void
|
|
6041
6041
|
/**
|
|
6042
6042
|
* Sets the bottom margin used by `compositor`.
|
|
6043
6043
|
* @param margin the new bottom margin in units of `unit`.
|
|
@@ -6682,7 +6682,7 @@ export interface SearchContext {
|
|
|
6682
6682
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6683
6683
|
* @returns whether the match has been replaced.
|
|
6684
6684
|
*/
|
|
6685
|
-
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string
|
|
6685
|
+
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
|
|
6686
6686
|
/**
|
|
6687
6687
|
* Replaces all search matches by another text. It is a synchronous function, so
|
|
6688
6688
|
* it can block the user interface.
|
|
@@ -6694,7 +6694,7 @@ export interface SearchContext {
|
|
|
6694
6694
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6695
6695
|
* @returns the number of replaced matches.
|
|
6696
6696
|
*/
|
|
6697
|
-
replace_all(replace: string
|
|
6697
|
+
replace_all(replace: string, replace_length: number): number
|
|
6698
6698
|
/**
|
|
6699
6699
|
* Enables or disables the search occurrences highlighting.
|
|
6700
6700
|
* @param highlight the setting.
|
|
@@ -7087,7 +7087,7 @@ export interface SpaceDrawer {
|
|
|
7087
7087
|
* @param key the `settings` key to bind.
|
|
7088
7088
|
* @param flags flags for the binding.
|
|
7089
7089
|
*/
|
|
7090
|
-
bind_matrix_setting(settings: Gio.Settings, key: string
|
|
7090
|
+
bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
|
|
7091
7091
|
get_enable_matrix(): boolean
|
|
7092
7092
|
/**
|
|
7093
7093
|
* Gets the value of the #GtkSourceSpaceDrawer:matrix property, as a #GVariant.
|
|
@@ -7397,9 +7397,9 @@ export interface StyleScheme {
|
|
|
7397
7397
|
get_authors(): string[] | null
|
|
7398
7398
|
get_description(): string | null
|
|
7399
7399
|
get_filename(): string | null
|
|
7400
|
-
get_id(): string
|
|
7401
|
-
get_name(): string
|
|
7402
|
-
get_style(style_id: string
|
|
7400
|
+
get_id(): string
|
|
7401
|
+
get_name(): string
|
|
7402
|
+
get_style(style_id: string): Style | null
|
|
7403
7403
|
|
|
7404
7404
|
// Class property signals of GtkSource-4.GtkSource.StyleScheme
|
|
7405
7405
|
|
|
@@ -7461,7 +7461,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
7461
7461
|
* Also see gtk_container_child_notify().
|
|
7462
7462
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7463
7463
|
*/
|
|
7464
|
-
child_notify(child_property: string
|
|
7464
|
+
child_notify(child_property: string): void
|
|
7465
7465
|
/**
|
|
7466
7466
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7467
7467
|
* [child property][child-properties]
|
|
@@ -7473,7 +7473,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
7473
7473
|
* @param child the child widget
|
|
7474
7474
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7475
7475
|
*/
|
|
7476
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7476
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7477
7477
|
|
|
7478
7478
|
// Overloads of child_notify
|
|
7479
7479
|
|
|
@@ -7487,7 +7487,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
7487
7487
|
* Also see gtk_container_child_notify().
|
|
7488
7488
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7489
7489
|
*/
|
|
7490
|
-
child_notify(child_property: string
|
|
7490
|
+
child_notify(child_property: string): void
|
|
7491
7491
|
|
|
7492
7492
|
// Class property signals of GtkSource-4.GtkSource.StyleSchemeChooserButton
|
|
7493
7493
|
|
|
@@ -7718,7 +7718,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7718
7718
|
* @param child the child widget
|
|
7719
7719
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7720
7720
|
*/
|
|
7721
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7721
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7722
7722
|
|
|
7723
7723
|
// Overloads of child_notify
|
|
7724
7724
|
|
|
@@ -7732,7 +7732,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7732
7732
|
* Also see gtk_container_child_notify().
|
|
7733
7733
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7734
7734
|
*/
|
|
7735
|
-
child_notify(child_property: string
|
|
7735
|
+
child_notify(child_property: string): void
|
|
7736
7736
|
/**
|
|
7737
7737
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7738
7738
|
* [child property][child-properties] `child_property`
|
|
@@ -7743,7 +7743,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7743
7743
|
* Also see gtk_container_child_notify().
|
|
7744
7744
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7745
7745
|
*/
|
|
7746
|
-
child_notify(child_property: string
|
|
7746
|
+
child_notify(child_property: string): void
|
|
7747
7747
|
|
|
7748
7748
|
// Class property signals of GtkSource-4.GtkSource.StyleSchemeChooserWidget
|
|
7749
7749
|
|
|
@@ -7943,7 +7943,7 @@ export interface StyleSchemeManager {
|
|
|
7943
7943
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7944
7944
|
* @param path a directory or a filename.
|
|
7945
7945
|
*/
|
|
7946
|
-
append_search_path(path: string
|
|
7946
|
+
append_search_path(path: string): void
|
|
7947
7947
|
/**
|
|
7948
7948
|
* Mark any currently cached information about the available style scehems
|
|
7949
7949
|
* as invalid. All the available style schemes will be reloaded next time
|
|
@@ -7955,7 +7955,7 @@ export interface StyleSchemeManager {
|
|
|
7955
7955
|
* @param scheme_id style scheme id to find.
|
|
7956
7956
|
* @returns a #GtkSourceStyleScheme object. The returned value is owned by @manager and must not be unref'ed.
|
|
7957
7957
|
*/
|
|
7958
|
-
get_scheme(scheme_id: string
|
|
7958
|
+
get_scheme(scheme_id: string): StyleScheme | null
|
|
7959
7959
|
/**
|
|
7960
7960
|
* Returns the ids of the available style schemes.
|
|
7961
7961
|
* @returns a %NULL-terminated array of strings containing the ids of the available style schemes or %NULL if no style scheme is available. The array is sorted alphabetically according to the scheme name. The array is owned by the @manager and must not be modified.
|
|
@@ -7973,7 +7973,7 @@ export interface StyleSchemeManager {
|
|
|
7973
7973
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7974
7974
|
* @param path a directory or a filename.
|
|
7975
7975
|
*/
|
|
7976
|
-
prepend_search_path(path: string
|
|
7976
|
+
prepend_search_path(path: string): void
|
|
7977
7977
|
/**
|
|
7978
7978
|
* Sets the list of directories where the `manager` looks for
|
|
7979
7979
|
* style scheme files.
|
|
@@ -8712,7 +8712,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8712
8712
|
* @param priority place where priority of the category will be stored.
|
|
8713
8713
|
* @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
|
|
8714
8714
|
*/
|
|
8715
|
-
get_mark_attributes(category: string
|
|
8715
|
+
get_mark_attributes(category: string, priority: number): MarkAttributes
|
|
8716
8716
|
/**
|
|
8717
8717
|
* Gets the position of the right margin in the given `view`.
|
|
8718
8718
|
* @returns the position of the right margin.
|
|
@@ -8841,7 +8841,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8841
8841
|
* @param attributes mark attributes.
|
|
8842
8842
|
* @param priority priority of the category.
|
|
8843
8843
|
*/
|
|
8844
|
-
set_mark_attributes(category: string
|
|
8844
|
+
set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
|
|
8845
8845
|
/**
|
|
8846
8846
|
* Sets the position of the right margin in the given `view`.
|
|
8847
8847
|
* @param pos the width in characters where to position the right margin.
|
|
@@ -8926,7 +8926,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8926
8926
|
* @param child the child widget
|
|
8927
8927
|
* @param child_property the name of a child property installed on the class of `container`
|
|
8928
8928
|
*/
|
|
8929
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
8929
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
8930
8930
|
|
|
8931
8931
|
// Overloads of child_notify
|
|
8932
8932
|
|
|
@@ -8940,7 +8940,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8940
8940
|
* Also see gtk_container_child_notify().
|
|
8941
8941
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8942
8942
|
*/
|
|
8943
|
-
child_notify(child_property: string
|
|
8943
|
+
child_notify(child_property: string): void
|
|
8944
8944
|
/**
|
|
8945
8945
|
* Emits a #GtkWidget::child-notify signal for the
|
|
8946
8946
|
* [child property][child-properties] `child_property`
|
|
@@ -8951,7 +8951,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8951
8951
|
* Also see gtk_container_child_notify().
|
|
8952
8952
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8953
8953
|
*/
|
|
8954
|
-
child_notify(child_property: string
|
|
8954
|
+
child_notify(child_property: string): void
|
|
8955
8955
|
|
|
8956
8956
|
// Own virtual methods of GtkSource-4.GtkSource.View
|
|
8957
8957
|
|
|
@@ -9559,12 +9559,12 @@ export interface Encoding {
|
|
|
9559
9559
|
* "ISO-8859-1".
|
|
9560
9560
|
* @returns the character set of the #GtkSourceEncoding.
|
|
9561
9561
|
*/
|
|
9562
|
-
get_charset(): string
|
|
9562
|
+
get_charset(): string
|
|
9563
9563
|
/**
|
|
9564
9564
|
* Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
|
|
9565
9565
|
* @returns the name of the #GtkSourceEncoding.
|
|
9566
9566
|
*/
|
|
9567
|
-
get_name(): string
|
|
9567
|
+
get_name(): string
|
|
9568
9568
|
to_string(): string | null
|
|
9569
9569
|
}
|
|
9570
9570
|
|
|
@@ -9602,7 +9602,7 @@ export class Encoding {
|
|
|
9602
9602
|
* @param charset a character set.
|
|
9603
9603
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
9604
9604
|
*/
|
|
9605
|
-
static get_from_charset(charset: string
|
|
9605
|
+
static get_from_charset(charset: string): Encoding | null
|
|
9606
9606
|
static get_utf8(): Encoding
|
|
9607
9607
|
}
|
|
9608
9608
|
|
package/gtksource-4.d.ts
CHANGED
|
@@ -371,7 +371,7 @@ function encoding_get_default_candidates(): Encoding[]
|
|
|
371
371
|
* @param charset a character set.
|
|
372
372
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
373
373
|
*/
|
|
374
|
-
function encoding_get_from_charset(charset: string
|
|
374
|
+
function encoding_get_from_charset(charset: string): Encoding | null
|
|
375
375
|
function encoding_get_utf8(): Encoding
|
|
376
376
|
function file_loader_error_quark(): GLib.Quark
|
|
377
377
|
function file_saver_error_quark(): GLib.Quark
|
|
@@ -411,7 +411,7 @@ function init(): void
|
|
|
411
411
|
* @param text the text to escape.
|
|
412
412
|
* @returns the escaped @text.
|
|
413
413
|
*/
|
|
414
|
-
function utils_escape_search_text(text: string
|
|
414
|
+
function utils_escape_search_text(text: string): string | null
|
|
415
415
|
/**
|
|
416
416
|
* Use this function before gtk_source_search_settings_set_search_text(), to
|
|
417
417
|
* unescape the following sequences of characters: `\n`, `\r`, `\t` and `\\`.
|
|
@@ -424,7 +424,7 @@ function utils_escape_search_text(text: string | null): string | null
|
|
|
424
424
|
* @param text the text to unescape.
|
|
425
425
|
* @returns the unescaped @text.
|
|
426
426
|
*/
|
|
427
|
-
function utils_unescape_search_text(text: string
|
|
427
|
+
function utils_unescape_search_text(text: string): string | null
|
|
428
428
|
module CompletionProposal {
|
|
429
429
|
|
|
430
430
|
// Signal callback interfaces
|
|
@@ -1378,7 +1378,7 @@ interface Buffer {
|
|
|
1378
1378
|
* @param where location to place the mark.
|
|
1379
1379
|
* @returns a new #GtkSourceMark, owned by the buffer.
|
|
1380
1380
|
*/
|
|
1381
|
-
create_source_mark(name: string | null, category: string
|
|
1381
|
+
create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
|
|
1382
1382
|
/**
|
|
1383
1383
|
* Marks the end of a not undoable action on the buffer. When the
|
|
1384
1384
|
* last not undoable block is closed through the call to this
|
|
@@ -1484,7 +1484,7 @@ interface Buffer {
|
|
|
1484
1484
|
* @param context_class the context class.
|
|
1485
1485
|
* @returns whether we found a context class toggle before @iter
|
|
1486
1486
|
*/
|
|
1487
|
-
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1487
|
+
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
|
|
1488
1488
|
/**
|
|
1489
1489
|
* Moves forward to the next toggle (on or off) of the context class. If no
|
|
1490
1490
|
* matching context class toggles are found, returns %FALSE, otherwise %TRUE.
|
|
@@ -1497,7 +1497,7 @@ interface Buffer {
|
|
|
1497
1497
|
* @param context_class the context class.
|
|
1498
1498
|
* @returns whether we found a context class toggle after @iter
|
|
1499
1499
|
*/
|
|
1500
|
-
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1500
|
+
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
|
|
1501
1501
|
/**
|
|
1502
1502
|
* Check if the class `context_class` is set on `iter`.
|
|
1503
1503
|
*
|
|
@@ -1506,7 +1506,7 @@ interface Buffer {
|
|
|
1506
1506
|
* @param context_class class to search for.
|
|
1507
1507
|
* @returns whether @iter has the context class.
|
|
1508
1508
|
*/
|
|
1509
|
-
iter_has_context_class(iter: Gtk.TextIter, context_class: string
|
|
1509
|
+
iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
|
|
1510
1510
|
/**
|
|
1511
1511
|
* Joins the lines of text between the specified iterators.
|
|
1512
1512
|
* @param start a #GtkTextIter.
|
|
@@ -2370,7 +2370,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2370
2370
|
* @param child the child widget
|
|
2371
2371
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2372
2372
|
*/
|
|
2373
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2373
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2374
2374
|
|
|
2375
2375
|
// Overloads of child_notify
|
|
2376
2376
|
|
|
@@ -2384,7 +2384,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2384
2384
|
* Also see gtk_container_child_notify().
|
|
2385
2385
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2386
2386
|
*/
|
|
2387
|
-
child_notify(child_property: string
|
|
2387
|
+
child_notify(child_property: string): void
|
|
2388
2388
|
/**
|
|
2389
2389
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2390
2390
|
* [child property][child-properties] `child_property`
|
|
@@ -2395,7 +2395,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2395
2395
|
* Also see gtk_container_child_notify().
|
|
2396
2396
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2397
2397
|
*/
|
|
2398
|
-
child_notify(child_property: string
|
|
2398
|
+
child_notify(child_property: string): void
|
|
2399
2399
|
|
|
2400
2400
|
// Class property signals of GtkSource-4.GtkSource.CompletionInfo
|
|
2401
2401
|
|
|
@@ -4196,7 +4196,7 @@ interface GutterRendererPixbuf {
|
|
|
4196
4196
|
* @returns a #GIcon
|
|
4197
4197
|
*/
|
|
4198
4198
|
get_gicon(): Gio.Icon
|
|
4199
|
-
get_icon_name(): string
|
|
4199
|
+
get_icon_name(): string
|
|
4200
4200
|
/**
|
|
4201
4201
|
* Get the pixbuf of the renderer.
|
|
4202
4202
|
* @returns a #GdkPixbuf
|
|
@@ -4309,15 +4309,15 @@ interface GutterRendererText {
|
|
|
4309
4309
|
* #GtkSourceGutterRendererText.
|
|
4310
4310
|
* @param text the text to measure.
|
|
4311
4311
|
*/
|
|
4312
|
-
measure(text: string
|
|
4312
|
+
measure(text: string): [ /* width */ number, /* height */ number ]
|
|
4313
4313
|
/**
|
|
4314
4314
|
* Measures the pango markup provided using the pango layout used by the
|
|
4315
4315
|
* #GtkSourceGutterRendererText.
|
|
4316
4316
|
* @param markup the pango markup to measure.
|
|
4317
4317
|
*/
|
|
4318
|
-
measure_markup(markup: string
|
|
4319
|
-
set_markup(markup: string
|
|
4320
|
-
set_text(text: string
|
|
4318
|
+
measure_markup(markup: string): [ /* width */ number, /* height */ number ]
|
|
4319
|
+
set_markup(markup: string, length: number): void
|
|
4320
|
+
set_text(text: string, length: number): void
|
|
4321
4321
|
|
|
4322
4322
|
// Class property signals of GtkSource-4.GtkSource.GutterRendererText
|
|
4323
4323
|
|
|
@@ -4434,8 +4434,8 @@ interface Language {
|
|
|
4434
4434
|
* or modified.
|
|
4435
4435
|
* @returns the ID of @language.
|
|
4436
4436
|
*/
|
|
4437
|
-
get_id(): string
|
|
4438
|
-
get_metadata(name: string
|
|
4437
|
+
get_id(): string
|
|
4438
|
+
get_metadata(name: string): string | null
|
|
4439
4439
|
/**
|
|
4440
4440
|
* Returns the mime types associated to this language. This is just
|
|
4441
4441
|
* an utility wrapper around gtk_source_language_get_metadata() to
|
|
@@ -4450,7 +4450,7 @@ interface Language {
|
|
|
4450
4450
|
* or modified.
|
|
4451
4451
|
* @returns the name of @language.
|
|
4452
4452
|
*/
|
|
4453
|
-
get_name(): string
|
|
4453
|
+
get_name(): string
|
|
4454
4454
|
/**
|
|
4455
4455
|
* Returns the localized section of the language.
|
|
4456
4456
|
* Each language belong to a section (ex. HTML belogs to the
|
|
@@ -4459,14 +4459,14 @@ interface Language {
|
|
|
4459
4459
|
* or modified.
|
|
4460
4460
|
* @returns the section of @language.
|
|
4461
4461
|
*/
|
|
4462
|
-
get_section(): string
|
|
4462
|
+
get_section(): string
|
|
4463
4463
|
/**
|
|
4464
4464
|
* Returns the ID of the style to use if the specified `style_id`
|
|
4465
4465
|
* is not present in the current style scheme.
|
|
4466
4466
|
* @param style_id a style ID.
|
|
4467
4467
|
* @returns the ID of the style to use if the specified @style_id is not present in the current style scheme or %NULL if the style has no fallback defined. The returned string is owned by the @language and must not be modified.
|
|
4468
4468
|
*/
|
|
4469
|
-
get_style_fallback(style_id: string
|
|
4469
|
+
get_style_fallback(style_id: string): string | null
|
|
4470
4470
|
/**
|
|
4471
4471
|
* Returns the ids of the styles defined by this `language`.
|
|
4472
4472
|
* @returns a newly-allocated %NULL terminated array containing ids of the styles defined by this @language or %NULL if no style is defined. The returned array must be freed with g_strfreev().
|
|
@@ -4477,7 +4477,7 @@ interface Language {
|
|
|
4477
4477
|
* @param style_id a style ID.
|
|
4478
4478
|
* @returns the name of the style with ID @style_id defined by this @language or %NULL if the style has no name or there is no style with ID @style_id defined by this @language. The returned string is owned by the @language and must not be modified.
|
|
4479
4479
|
*/
|
|
4480
|
-
get_style_name(style_id: string
|
|
4480
|
+
get_style_name(style_id: string): string | null
|
|
4481
4481
|
|
|
4482
4482
|
// Class property signals of GtkSource-4.GtkSource.Language
|
|
4483
4483
|
|
|
@@ -4548,7 +4548,7 @@ interface LanguageManager {
|
|
|
4548
4548
|
* @param id a language id.
|
|
4549
4549
|
* @returns a #GtkSourceLanguage, or %NULL if there is no language identified by the given @id. Return value is owned by @lm and should not be freed.
|
|
4550
4550
|
*/
|
|
4551
|
-
get_language(id: string
|
|
4551
|
+
get_language(id: string): Language | null
|
|
4552
4552
|
/**
|
|
4553
4553
|
* Returns the ids of the available languages.
|
|
4554
4554
|
* @returns a %NULL-terminated array of strings containing the ids of the available languages or %NULL if no language is available. The array is sorted alphabetically according to the language name. The array is owned by @lm and must not be modified.
|
|
@@ -4743,7 +4743,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4743
4743
|
* @param child the child widget
|
|
4744
4744
|
* @param child_property the name of a child property installed on the class of `container`
|
|
4745
4745
|
*/
|
|
4746
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
4746
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
4747
4747
|
|
|
4748
4748
|
// Overloads of child_notify
|
|
4749
4749
|
|
|
@@ -4757,7 +4757,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4757
4757
|
* Also see gtk_container_child_notify().
|
|
4758
4758
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4759
4759
|
*/
|
|
4760
|
-
child_notify(child_property: string
|
|
4760
|
+
child_notify(child_property: string): void
|
|
4761
4761
|
/**
|
|
4762
4762
|
* Emits a #GtkWidget::child-notify signal for the
|
|
4763
4763
|
* [child property][child-properties] `child_property`
|
|
@@ -4768,7 +4768,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4768
4768
|
* Also see gtk_container_child_notify().
|
|
4769
4769
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4770
4770
|
*/
|
|
4771
|
-
child_notify(child_property: string
|
|
4771
|
+
child_notify(child_property: string): void
|
|
4772
4772
|
|
|
4773
4773
|
// Class property signals of GtkSource-4.GtkSource.Map
|
|
4774
4774
|
|
|
@@ -5097,7 +5097,7 @@ interface Mark {
|
|
|
5097
5097
|
* Returns the mark category.
|
|
5098
5098
|
* @returns the category of the #GtkSourceMark.
|
|
5099
5099
|
*/
|
|
5100
|
-
get_category(): string
|
|
5100
|
+
get_category(): string
|
|
5101
5101
|
/**
|
|
5102
5102
|
* Returns the next #GtkSourceMark in the buffer or %NULL if the mark
|
|
5103
5103
|
* was not added to a buffer. If there is no next mark, %NULL will be returned.
|
|
@@ -5155,7 +5155,7 @@ class Mark extends Gtk.TextMark {
|
|
|
5155
5155
|
* @param category is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).
|
|
5156
5156
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5157
5157
|
*/
|
|
5158
|
-
constructor(name: string | null, category: string
|
|
5158
|
+
constructor(name: string | null, category: string)
|
|
5159
5159
|
/**
|
|
5160
5160
|
* Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
|
|
5161
5161
|
* If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
|
|
@@ -5167,7 +5167,7 @@ class Mark extends Gtk.TextMark {
|
|
|
5167
5167
|
* @param category is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).
|
|
5168
5168
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5169
5169
|
*/
|
|
5170
|
-
static new(name: string | null, category: string
|
|
5170
|
+
static new(name: string | null, category: string): Mark
|
|
5171
5171
|
|
|
5172
5172
|
// Overloads of new
|
|
5173
5173
|
|
|
@@ -5282,7 +5282,7 @@ interface MarkAttributes {
|
|
|
5282
5282
|
* icon name can be %NULL if it wasn't set earlier.
|
|
5283
5283
|
* @returns An icon name. The string belongs to @attributes and should not be freed.
|
|
5284
5284
|
*/
|
|
5285
|
-
get_icon_name(): string
|
|
5285
|
+
get_icon_name(): string
|
|
5286
5286
|
/**
|
|
5287
5287
|
* Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
|
|
5288
5288
|
* pixbuf can be %NULL if it wasn't set earlier.
|
|
@@ -5329,7 +5329,7 @@ interface MarkAttributes {
|
|
|
5329
5329
|
* Sets a name of an icon to be used as a base for rendered icon.
|
|
5330
5330
|
* @param icon_name name of an icon to be used.
|
|
5331
5331
|
*/
|
|
5332
|
-
set_icon_name(icon_name: string
|
|
5332
|
+
set_icon_name(icon_name: string): void
|
|
5333
5333
|
/**
|
|
5334
5334
|
* Sets a pixbuf to be used as a base for rendered icon.
|
|
5335
5335
|
* @param pixbuf a #GdkPixbuf to be used.
|
|
@@ -6039,7 +6039,7 @@ interface PrintCompositor {
|
|
|
6039
6039
|
* gtk_source_print_compositor_paginate() function.
|
|
6040
6040
|
* @param font_name the name of the default font for the body text.
|
|
6041
6041
|
*/
|
|
6042
|
-
set_body_font_name(font_name: string
|
|
6042
|
+
set_body_font_name(font_name: string): void
|
|
6043
6043
|
/**
|
|
6044
6044
|
* Sets the bottom margin used by `compositor`.
|
|
6045
6045
|
* @param margin the new bottom margin in units of `unit`.
|
|
@@ -6684,7 +6684,7 @@ interface SearchContext {
|
|
|
6684
6684
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6685
6685
|
* @returns whether the match has been replaced.
|
|
6686
6686
|
*/
|
|
6687
|
-
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string
|
|
6687
|
+
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
|
|
6688
6688
|
/**
|
|
6689
6689
|
* Replaces all search matches by another text. It is a synchronous function, so
|
|
6690
6690
|
* it can block the user interface.
|
|
@@ -6696,7 +6696,7 @@ interface SearchContext {
|
|
|
6696
6696
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6697
6697
|
* @returns the number of replaced matches.
|
|
6698
6698
|
*/
|
|
6699
|
-
replace_all(replace: string
|
|
6699
|
+
replace_all(replace: string, replace_length: number): number
|
|
6700
6700
|
/**
|
|
6701
6701
|
* Enables or disables the search occurrences highlighting.
|
|
6702
6702
|
* @param highlight the setting.
|
|
@@ -7089,7 +7089,7 @@ interface SpaceDrawer {
|
|
|
7089
7089
|
* @param key the `settings` key to bind.
|
|
7090
7090
|
* @param flags flags for the binding.
|
|
7091
7091
|
*/
|
|
7092
|
-
bind_matrix_setting(settings: Gio.Settings, key: string
|
|
7092
|
+
bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
|
|
7093
7093
|
get_enable_matrix(): boolean
|
|
7094
7094
|
/**
|
|
7095
7095
|
* Gets the value of the #GtkSourceSpaceDrawer:matrix property, as a #GVariant.
|
|
@@ -7399,9 +7399,9 @@ interface StyleScheme {
|
|
|
7399
7399
|
get_authors(): string[] | null
|
|
7400
7400
|
get_description(): string | null
|
|
7401
7401
|
get_filename(): string | null
|
|
7402
|
-
get_id(): string
|
|
7403
|
-
get_name(): string
|
|
7404
|
-
get_style(style_id: string
|
|
7402
|
+
get_id(): string
|
|
7403
|
+
get_name(): string
|
|
7404
|
+
get_style(style_id: string): Style | null
|
|
7405
7405
|
|
|
7406
7406
|
// Class property signals of GtkSource-4.GtkSource.StyleScheme
|
|
7407
7407
|
|
|
@@ -7463,7 +7463,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
|
|
|
7463
7463
|
* Also see gtk_container_child_notify().
|
|
7464
7464
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7465
7465
|
*/
|
|
7466
|
-
child_notify(child_property: string
|
|
7466
|
+
child_notify(child_property: string): void
|
|
7467
7467
|
/**
|
|
7468
7468
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7469
7469
|
* [child property][child-properties]
|
|
@@ -7475,7 +7475,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
|
|
|
7475
7475
|
* @param child the child widget
|
|
7476
7476
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7477
7477
|
*/
|
|
7478
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7478
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7479
7479
|
|
|
7480
7480
|
// Overloads of child_notify
|
|
7481
7481
|
|
|
@@ -7489,7 +7489,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
|
|
|
7489
7489
|
* Also see gtk_container_child_notify().
|
|
7490
7490
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7491
7491
|
*/
|
|
7492
|
-
child_notify(child_property: string
|
|
7492
|
+
child_notify(child_property: string): void
|
|
7493
7493
|
|
|
7494
7494
|
// Class property signals of GtkSource-4.GtkSource.StyleSchemeChooserButton
|
|
7495
7495
|
|
|
@@ -7720,7 +7720,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
|
|
|
7720
7720
|
* @param child the child widget
|
|
7721
7721
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7722
7722
|
*/
|
|
7723
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7723
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7724
7724
|
|
|
7725
7725
|
// Overloads of child_notify
|
|
7726
7726
|
|
|
@@ -7734,7 +7734,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
|
|
|
7734
7734
|
* Also see gtk_container_child_notify().
|
|
7735
7735
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7736
7736
|
*/
|
|
7737
|
-
child_notify(child_property: string
|
|
7737
|
+
child_notify(child_property: string): void
|
|
7738
7738
|
/**
|
|
7739
7739
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7740
7740
|
* [child property][child-properties] `child_property`
|
|
@@ -7745,7 +7745,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
|
|
|
7745
7745
|
* Also see gtk_container_child_notify().
|
|
7746
7746
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7747
7747
|
*/
|
|
7748
|
-
child_notify(child_property: string
|
|
7748
|
+
child_notify(child_property: string): void
|
|
7749
7749
|
|
|
7750
7750
|
// Class property signals of GtkSource-4.GtkSource.StyleSchemeChooserWidget
|
|
7751
7751
|
|
|
@@ -7945,7 +7945,7 @@ interface StyleSchemeManager {
|
|
|
7945
7945
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7946
7946
|
* @param path a directory or a filename.
|
|
7947
7947
|
*/
|
|
7948
|
-
append_search_path(path: string
|
|
7948
|
+
append_search_path(path: string): void
|
|
7949
7949
|
/**
|
|
7950
7950
|
* Mark any currently cached information about the available style scehems
|
|
7951
7951
|
* as invalid. All the available style schemes will be reloaded next time
|
|
@@ -7957,7 +7957,7 @@ interface StyleSchemeManager {
|
|
|
7957
7957
|
* @param scheme_id style scheme id to find.
|
|
7958
7958
|
* @returns a #GtkSourceStyleScheme object. The returned value is owned by @manager and must not be unref'ed.
|
|
7959
7959
|
*/
|
|
7960
|
-
get_scheme(scheme_id: string
|
|
7960
|
+
get_scheme(scheme_id: string): StyleScheme | null
|
|
7961
7961
|
/**
|
|
7962
7962
|
* Returns the ids of the available style schemes.
|
|
7963
7963
|
* @returns a %NULL-terminated array of strings containing the ids of the available style schemes or %NULL if no style scheme is available. The array is sorted alphabetically according to the scheme name. The array is owned by the @manager and must not be modified.
|
|
@@ -7975,7 +7975,7 @@ interface StyleSchemeManager {
|
|
|
7975
7975
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7976
7976
|
* @param path a directory or a filename.
|
|
7977
7977
|
*/
|
|
7978
|
-
prepend_search_path(path: string
|
|
7978
|
+
prepend_search_path(path: string): void
|
|
7979
7979
|
/**
|
|
7980
7980
|
* Sets the list of directories where the `manager` looks for
|
|
7981
7981
|
* style scheme files.
|
|
@@ -8714,7 +8714,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8714
8714
|
* @param priority place where priority of the category will be stored.
|
|
8715
8715
|
* @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
|
|
8716
8716
|
*/
|
|
8717
|
-
get_mark_attributes(category: string
|
|
8717
|
+
get_mark_attributes(category: string, priority: number): MarkAttributes
|
|
8718
8718
|
/**
|
|
8719
8719
|
* Gets the position of the right margin in the given `view`.
|
|
8720
8720
|
* @returns the position of the right margin.
|
|
@@ -8843,7 +8843,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8843
8843
|
* @param attributes mark attributes.
|
|
8844
8844
|
* @param priority priority of the category.
|
|
8845
8845
|
*/
|
|
8846
|
-
set_mark_attributes(category: string
|
|
8846
|
+
set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
|
|
8847
8847
|
/**
|
|
8848
8848
|
* Sets the position of the right margin in the given `view`.
|
|
8849
8849
|
* @param pos the width in characters where to position the right margin.
|
|
@@ -8928,7 +8928,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8928
8928
|
* @param child the child widget
|
|
8929
8929
|
* @param child_property the name of a child property installed on the class of `container`
|
|
8930
8930
|
*/
|
|
8931
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
8931
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
8932
8932
|
|
|
8933
8933
|
// Overloads of child_notify
|
|
8934
8934
|
|
|
@@ -8942,7 +8942,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8942
8942
|
* Also see gtk_container_child_notify().
|
|
8943
8943
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8944
8944
|
*/
|
|
8945
|
-
child_notify(child_property: string
|
|
8945
|
+
child_notify(child_property: string): void
|
|
8946
8946
|
/**
|
|
8947
8947
|
* Emits a #GtkWidget::child-notify signal for the
|
|
8948
8948
|
* [child property][child-properties] `child_property`
|
|
@@ -8953,7 +8953,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8953
8953
|
* Also see gtk_container_child_notify().
|
|
8954
8954
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8955
8955
|
*/
|
|
8956
|
-
child_notify(child_property: string
|
|
8956
|
+
child_notify(child_property: string): void
|
|
8957
8957
|
|
|
8958
8958
|
// Own virtual methods of GtkSource-4.GtkSource.View
|
|
8959
8959
|
|
|
@@ -9561,12 +9561,12 @@ interface Encoding {
|
|
|
9561
9561
|
* "ISO-8859-1".
|
|
9562
9562
|
* @returns the character set of the #GtkSourceEncoding.
|
|
9563
9563
|
*/
|
|
9564
|
-
get_charset(): string
|
|
9564
|
+
get_charset(): string
|
|
9565
9565
|
/**
|
|
9566
9566
|
* Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
|
|
9567
9567
|
* @returns the name of the #GtkSourceEncoding.
|
|
9568
9568
|
*/
|
|
9569
|
-
get_name(): string
|
|
9569
|
+
get_name(): string
|
|
9570
9570
|
to_string(): string | null
|
|
9571
9571
|
}
|
|
9572
9572
|
|
|
@@ -9604,7 +9604,7 @@ class Encoding {
|
|
|
9604
9604
|
* @param charset a character set.
|
|
9605
9605
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
9606
9606
|
*/
|
|
9607
|
-
static get_from_charset(charset: string
|
|
9607
|
+
static get_from_charset(charset: string): Encoding | null
|
|
9608
9608
|
static get_utf8(): Encoding
|
|
9609
9609
|
}
|
|
9610
9610
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtksource-4",
|
|
3
|
-
"version": "4.0.0-3.2.
|
|
3
|
+
"version": "4.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GtkSource-4, generated from library version 4.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gtksource-4.js",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gtksource-4.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/atk-1.0": "^2.50.0-3.2.
|
|
29
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
30
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gdk-3.0": "^3.24.38-3.2.
|
|
32
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
33
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
34
|
-
"@girs/gjs": "^3.2.
|
|
35
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
36
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
37
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
38
|
-
"@girs/gtk-3.0": "^3.24.38-3.2.
|
|
39
|
-
"@girs/harfbuzz-0.0": "^8.2.1-3.2.
|
|
40
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
41
|
-
"@girs/xlib-2.0": "^2.0.0-3.2.
|
|
28
|
+
"@girs/atk-1.0": "^2.50.0-3.2.7",
|
|
29
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.7",
|
|
30
|
+
"@girs/freetype2-2.0": "^2.0.0-3.2.7",
|
|
31
|
+
"@girs/gdk-3.0": "^3.24.38-3.2.7",
|
|
32
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
|
|
33
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
34
|
+
"@girs/gjs": "^3.2.7",
|
|
35
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
36
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.7",
|
|
37
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
38
|
+
"@girs/gtk-3.0": "^3.24.38-3.2.7",
|
|
39
|
+
"@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
|
|
40
|
+
"@girs/pango-1.0": "^1.51.0-3.2.7",
|
|
41
|
+
"@girs/xlib-2.0": "^2.0.0-3.2.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typescript": "*"
|