@girs/gtksource-4 4.0.0-3.2.5 → 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 +797 -124
- package/gtksource-4.d.ts +797 -124
- package/package.json +15 -15
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
|
|
@@ -934,6 +934,12 @@ module StyleSchemeChooser {
|
|
|
934
934
|
* the current selection programmatically.
|
|
935
935
|
*/
|
|
936
936
|
style_scheme?: StyleScheme | null
|
|
937
|
+
/**
|
|
938
|
+
* The :style-scheme property contains the currently selected style
|
|
939
|
+
* scheme. The property can be set to change
|
|
940
|
+
* the current selection programmatically.
|
|
941
|
+
*/
|
|
942
|
+
styleScheme?: StyleScheme | null
|
|
937
943
|
}
|
|
938
944
|
|
|
939
945
|
}
|
|
@@ -948,6 +954,12 @@ interface StyleSchemeChooser {
|
|
|
948
954
|
* the current selection programmatically.
|
|
949
955
|
*/
|
|
950
956
|
style_scheme: StyleScheme
|
|
957
|
+
/**
|
|
958
|
+
* The :style-scheme property contains the currently selected style
|
|
959
|
+
* scheme. The property can be set to change
|
|
960
|
+
* the current selection programmatically.
|
|
961
|
+
*/
|
|
962
|
+
styleScheme: StyleScheme
|
|
951
963
|
|
|
952
964
|
// Owm methods of GtkSource-4.GtkSource.StyleSchemeChooser
|
|
953
965
|
|
|
@@ -1225,6 +1237,31 @@ module Buffer {
|
|
|
1225
1237
|
*/
|
|
1226
1238
|
style_scheme?: StyleScheme | null
|
|
1227
1239
|
undo_manager?: UndoManager | null
|
|
1240
|
+
/**
|
|
1241
|
+
* Whether to highlight matching brackets in the buffer.
|
|
1242
|
+
*/
|
|
1243
|
+
highlightMatchingBrackets?: boolean | null
|
|
1244
|
+
/**
|
|
1245
|
+
* Whether to highlight syntax in the buffer.
|
|
1246
|
+
*/
|
|
1247
|
+
highlightSyntax?: boolean | null
|
|
1248
|
+
/**
|
|
1249
|
+
* Whether the buffer has an implicit trailing newline. See
|
|
1250
|
+
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1251
|
+
*/
|
|
1252
|
+
implicitTrailingNewline?: boolean | null
|
|
1253
|
+
/**
|
|
1254
|
+
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1255
|
+
* will only affect the default undo manager.
|
|
1256
|
+
*/
|
|
1257
|
+
maxUndoLevels?: number | null
|
|
1258
|
+
/**
|
|
1259
|
+
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1260
|
+
* foreground, background, cursor color, current line color, and matching
|
|
1261
|
+
* brackets style.
|
|
1262
|
+
*/
|
|
1263
|
+
styleScheme?: StyleScheme | null
|
|
1264
|
+
undoManager?: UndoManager | null
|
|
1228
1265
|
}
|
|
1229
1266
|
|
|
1230
1267
|
}
|
|
@@ -1234,33 +1271,60 @@ interface Buffer {
|
|
|
1234
1271
|
// Own properties of GtkSource-4.GtkSource.Buffer
|
|
1235
1272
|
|
|
1236
1273
|
readonly can_redo: boolean
|
|
1274
|
+
readonly canRedo: boolean
|
|
1237
1275
|
readonly can_undo: boolean
|
|
1276
|
+
readonly canUndo: boolean
|
|
1238
1277
|
/**
|
|
1239
1278
|
* Whether to highlight matching brackets in the buffer.
|
|
1240
1279
|
*/
|
|
1241
1280
|
highlight_matching_brackets: boolean
|
|
1281
|
+
/**
|
|
1282
|
+
* Whether to highlight matching brackets in the buffer.
|
|
1283
|
+
*/
|
|
1284
|
+
highlightMatchingBrackets: boolean
|
|
1242
1285
|
/**
|
|
1243
1286
|
* Whether to highlight syntax in the buffer.
|
|
1244
1287
|
*/
|
|
1245
1288
|
highlight_syntax: boolean
|
|
1289
|
+
/**
|
|
1290
|
+
* Whether to highlight syntax in the buffer.
|
|
1291
|
+
*/
|
|
1292
|
+
highlightSyntax: boolean
|
|
1246
1293
|
/**
|
|
1247
1294
|
* Whether the buffer has an implicit trailing newline. See
|
|
1248
1295
|
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1249
1296
|
*/
|
|
1250
1297
|
implicit_trailing_newline: boolean
|
|
1298
|
+
/**
|
|
1299
|
+
* Whether the buffer has an implicit trailing newline. See
|
|
1300
|
+
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1301
|
+
*/
|
|
1302
|
+
implicitTrailingNewline: boolean
|
|
1251
1303
|
language: Language
|
|
1252
1304
|
/**
|
|
1253
1305
|
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1254
1306
|
* will only affect the default undo manager.
|
|
1255
1307
|
*/
|
|
1256
1308
|
max_undo_levels: number
|
|
1309
|
+
/**
|
|
1310
|
+
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1311
|
+
* will only affect the default undo manager.
|
|
1312
|
+
*/
|
|
1313
|
+
maxUndoLevels: number
|
|
1257
1314
|
/**
|
|
1258
1315
|
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1259
1316
|
* foreground, background, cursor color, current line color, and matching
|
|
1260
1317
|
* brackets style.
|
|
1261
1318
|
*/
|
|
1262
1319
|
style_scheme: StyleScheme
|
|
1320
|
+
/**
|
|
1321
|
+
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1322
|
+
* foreground, background, cursor color, current line color, and matching
|
|
1323
|
+
* brackets style.
|
|
1324
|
+
*/
|
|
1325
|
+
styleScheme: StyleScheme
|
|
1263
1326
|
undo_manager: UndoManager
|
|
1327
|
+
undoManager: UndoManager
|
|
1264
1328
|
|
|
1265
1329
|
// Own fields of GtkSource-4.GtkSource.Buffer
|
|
1266
1330
|
|
|
@@ -1314,7 +1378,7 @@ interface Buffer {
|
|
|
1314
1378
|
* @param where location to place the mark.
|
|
1315
1379
|
* @returns a new #GtkSourceMark, owned by the buffer.
|
|
1316
1380
|
*/
|
|
1317
|
-
create_source_mark(name: string | null, category: string
|
|
1381
|
+
create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
|
|
1318
1382
|
/**
|
|
1319
1383
|
* Marks the end of a not undoable action on the buffer. When the
|
|
1320
1384
|
* last not undoable block is closed through the call to this
|
|
@@ -1420,7 +1484,7 @@ interface Buffer {
|
|
|
1420
1484
|
* @param context_class the context class.
|
|
1421
1485
|
* @returns whether we found a context class toggle before @iter
|
|
1422
1486
|
*/
|
|
1423
|
-
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 ]
|
|
1424
1488
|
/**
|
|
1425
1489
|
* Moves forward to the next toggle (on or off) of the context class. If no
|
|
1426
1490
|
* matching context class toggles are found, returns %FALSE, otherwise %TRUE.
|
|
@@ -1433,7 +1497,7 @@ interface Buffer {
|
|
|
1433
1497
|
* @param context_class the context class.
|
|
1434
1498
|
* @returns whether we found a context class toggle after @iter
|
|
1435
1499
|
*/
|
|
1436
|
-
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 ]
|
|
1437
1501
|
/**
|
|
1438
1502
|
* Check if the class `context_class` is set on `iter`.
|
|
1439
1503
|
*
|
|
@@ -1442,7 +1506,7 @@ interface Buffer {
|
|
|
1442
1506
|
* @param context_class class to search for.
|
|
1443
1507
|
* @returns whether @iter has the context class.
|
|
1444
1508
|
*/
|
|
1445
|
-
iter_has_context_class(iter: Gtk.TextIter, context_class: string
|
|
1509
|
+
iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
|
|
1446
1510
|
/**
|
|
1447
1511
|
* Joins the lines of text between the specified iterators.
|
|
1448
1512
|
* @param start a #GtkTextIter.
|
|
@@ -1809,6 +1873,48 @@ module Completion {
|
|
|
1809
1873
|
* The #GtkSourceView bound to the completion object.
|
|
1810
1874
|
*/
|
|
1811
1875
|
view?: View | null
|
|
1876
|
+
/**
|
|
1877
|
+
* Determines the popup delay (in milliseconds) at which the completion
|
|
1878
|
+
* will be shown for interactive completion.
|
|
1879
|
+
*/
|
|
1880
|
+
autoCompleteDelay?: number | null
|
|
1881
|
+
/**
|
|
1882
|
+
* The scroll page size of the proposals in the completion window. In
|
|
1883
|
+
* other words, when <keycap>PageDown</keycap> or
|
|
1884
|
+
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1885
|
+
* proposal becomes the one which is located one page size backward or
|
|
1886
|
+
* forward.
|
|
1887
|
+
*
|
|
1888
|
+
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1889
|
+
*/
|
|
1890
|
+
proposalPageSize?: number | null
|
|
1891
|
+
/**
|
|
1892
|
+
* The scroll page size of the provider pages in the completion window.
|
|
1893
|
+
*
|
|
1894
|
+
* See the #GtkSourceCompletion::move-page signal.
|
|
1895
|
+
*/
|
|
1896
|
+
providerPageSize?: number | null
|
|
1897
|
+
/**
|
|
1898
|
+
* Determines whether the visibility of the info window should be
|
|
1899
|
+
* saved when the completion is hidden, and restored when the completion
|
|
1900
|
+
* is shown again.
|
|
1901
|
+
*/
|
|
1902
|
+
rememberInfoVisibility?: boolean | null
|
|
1903
|
+
/**
|
|
1904
|
+
* Determines whether the first proposal should be selected when the
|
|
1905
|
+
* completion is first shown.
|
|
1906
|
+
*/
|
|
1907
|
+
selectOnShow?: boolean | null
|
|
1908
|
+
/**
|
|
1909
|
+
* Determines whether provider headers should be shown in the proposal
|
|
1910
|
+
* list. It can be useful to disable when there is only one provider.
|
|
1911
|
+
*/
|
|
1912
|
+
showHeaders?: boolean | null
|
|
1913
|
+
/**
|
|
1914
|
+
* Determines whether provider and proposal icons should be shown in
|
|
1915
|
+
* the completion popup.
|
|
1916
|
+
*/
|
|
1917
|
+
showIcons?: boolean | null
|
|
1812
1918
|
}
|
|
1813
1919
|
|
|
1814
1920
|
}
|
|
@@ -1828,6 +1934,11 @@ interface Completion extends Gtk.Buildable {
|
|
|
1828
1934
|
* will be shown for interactive completion.
|
|
1829
1935
|
*/
|
|
1830
1936
|
auto_complete_delay: number
|
|
1937
|
+
/**
|
|
1938
|
+
* Determines the popup delay (in milliseconds) at which the completion
|
|
1939
|
+
* will be shown for interactive completion.
|
|
1940
|
+
*/
|
|
1941
|
+
autoCompleteDelay: number
|
|
1831
1942
|
/**
|
|
1832
1943
|
* The scroll page size of the proposals in the completion window. In
|
|
1833
1944
|
* other words, when <keycap>PageDown</keycap> or
|
|
@@ -1838,33 +1949,70 @@ interface Completion extends Gtk.Buildable {
|
|
|
1838
1949
|
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1839
1950
|
*/
|
|
1840
1951
|
proposal_page_size: number
|
|
1952
|
+
/**
|
|
1953
|
+
* The scroll page size of the proposals in the completion window. In
|
|
1954
|
+
* other words, when <keycap>PageDown</keycap> or
|
|
1955
|
+
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1956
|
+
* proposal becomes the one which is located one page size backward or
|
|
1957
|
+
* forward.
|
|
1958
|
+
*
|
|
1959
|
+
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1960
|
+
*/
|
|
1961
|
+
proposalPageSize: number
|
|
1841
1962
|
/**
|
|
1842
1963
|
* The scroll page size of the provider pages in the completion window.
|
|
1843
1964
|
*
|
|
1844
1965
|
* See the #GtkSourceCompletion::move-page signal.
|
|
1845
1966
|
*/
|
|
1846
1967
|
provider_page_size: number
|
|
1968
|
+
/**
|
|
1969
|
+
* The scroll page size of the provider pages in the completion window.
|
|
1970
|
+
*
|
|
1971
|
+
* See the #GtkSourceCompletion::move-page signal.
|
|
1972
|
+
*/
|
|
1973
|
+
providerPageSize: number
|
|
1847
1974
|
/**
|
|
1848
1975
|
* Determines whether the visibility of the info window should be
|
|
1849
1976
|
* saved when the completion is hidden, and restored when the completion
|
|
1850
1977
|
* is shown again.
|
|
1851
1978
|
*/
|
|
1852
1979
|
remember_info_visibility: boolean
|
|
1980
|
+
/**
|
|
1981
|
+
* Determines whether the visibility of the info window should be
|
|
1982
|
+
* saved when the completion is hidden, and restored when the completion
|
|
1983
|
+
* is shown again.
|
|
1984
|
+
*/
|
|
1985
|
+
rememberInfoVisibility: boolean
|
|
1853
1986
|
/**
|
|
1854
1987
|
* Determines whether the first proposal should be selected when the
|
|
1855
1988
|
* completion is first shown.
|
|
1856
1989
|
*/
|
|
1857
1990
|
select_on_show: boolean
|
|
1991
|
+
/**
|
|
1992
|
+
* Determines whether the first proposal should be selected when the
|
|
1993
|
+
* completion is first shown.
|
|
1994
|
+
*/
|
|
1995
|
+
selectOnShow: boolean
|
|
1858
1996
|
/**
|
|
1859
1997
|
* Determines whether provider headers should be shown in the proposal
|
|
1860
1998
|
* list. It can be useful to disable when there is only one provider.
|
|
1861
1999
|
*/
|
|
1862
2000
|
show_headers: boolean
|
|
2001
|
+
/**
|
|
2002
|
+
* Determines whether provider headers should be shown in the proposal
|
|
2003
|
+
* list. It can be useful to disable when there is only one provider.
|
|
2004
|
+
*/
|
|
2005
|
+
showHeaders: boolean
|
|
1863
2006
|
/**
|
|
1864
2007
|
* Determines whether provider and proposal icons should be shown in
|
|
1865
2008
|
* the completion popup.
|
|
1866
2009
|
*/
|
|
1867
2010
|
show_icons: boolean
|
|
2011
|
+
/**
|
|
2012
|
+
* Determines whether provider and proposal icons should be shown in
|
|
2013
|
+
* the completion popup.
|
|
2014
|
+
*/
|
|
2015
|
+
showIcons: boolean
|
|
1868
2016
|
/**
|
|
1869
2017
|
* The #GtkSourceView bound to the completion object.
|
|
1870
2018
|
*/
|
|
@@ -2222,7 +2370,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2222
2370
|
* @param child the child widget
|
|
2223
2371
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2224
2372
|
*/
|
|
2225
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2373
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2226
2374
|
|
|
2227
2375
|
// Overloads of child_notify
|
|
2228
2376
|
|
|
@@ -2236,7 +2384,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2236
2384
|
* Also see gtk_container_child_notify().
|
|
2237
2385
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2238
2386
|
*/
|
|
2239
|
-
child_notify(child_property: string
|
|
2387
|
+
child_notify(child_property: string): void
|
|
2240
2388
|
/**
|
|
2241
2389
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2242
2390
|
* [child property][child-properties] `child_property`
|
|
@@ -2247,7 +2395,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2247
2395
|
* Also see gtk_container_child_notify().
|
|
2248
2396
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2249
2397
|
*/
|
|
2250
|
-
child_notify(child_property: string
|
|
2398
|
+
child_notify(child_property: string): void
|
|
2251
2399
|
|
|
2252
2400
|
// Class property signals of GtkSource-4.GtkSource.CompletionInfo
|
|
2253
2401
|
|
|
@@ -2562,6 +2710,10 @@ module CompletionItem {
|
|
|
2562
2710
|
* Proposal text.
|
|
2563
2711
|
*/
|
|
2564
2712
|
text?: string | null
|
|
2713
|
+
/**
|
|
2714
|
+
* The icon name for the icon to be shown for this proposal.
|
|
2715
|
+
*/
|
|
2716
|
+
iconName?: string | null
|
|
2565
2717
|
}
|
|
2566
2718
|
|
|
2567
2719
|
}
|
|
@@ -2582,6 +2734,10 @@ interface CompletionItem extends CompletionProposal {
|
|
|
2582
2734
|
* The icon name for the icon to be shown for this proposal.
|
|
2583
2735
|
*/
|
|
2584
2736
|
icon_name: string | null
|
|
2737
|
+
/**
|
|
2738
|
+
* The icon name for the icon to be shown for this proposal.
|
|
2739
|
+
*/
|
|
2740
|
+
iconName: string | null
|
|
2585
2741
|
/**
|
|
2586
2742
|
* Optional extra information to be shown for this proposal.
|
|
2587
2743
|
*/
|
|
@@ -2689,6 +2845,10 @@ module CompletionWords {
|
|
|
2689
2845
|
priority?: number | null
|
|
2690
2846
|
proposals_batch_size?: number | null
|
|
2691
2847
|
scan_batch_size?: number | null
|
|
2848
|
+
interactiveDelay?: number | null
|
|
2849
|
+
minimumWordSize?: number | null
|
|
2850
|
+
proposalsBatchSize?: number | null
|
|
2851
|
+
scanBatchSize?: number | null
|
|
2692
2852
|
}
|
|
2693
2853
|
|
|
2694
2854
|
}
|
|
@@ -2703,11 +2863,15 @@ interface CompletionWords extends CompletionProvider {
|
|
|
2703
2863
|
activation: CompletionActivation
|
|
2704
2864
|
icon: GdkPixbuf.Pixbuf
|
|
2705
2865
|
interactive_delay: number
|
|
2866
|
+
interactiveDelay: number
|
|
2706
2867
|
minimum_word_size: number
|
|
2868
|
+
minimumWordSize: number
|
|
2707
2869
|
name: string | null
|
|
2708
2870
|
priority: number
|
|
2709
2871
|
proposals_batch_size: number
|
|
2872
|
+
proposalsBatchSize: number
|
|
2710
2873
|
scan_batch_size: number
|
|
2874
|
+
scanBatchSize: number
|
|
2711
2875
|
|
|
2712
2876
|
// Own fields of GtkSource-4.GtkSource.CompletionWords
|
|
2713
2877
|
|
|
@@ -2798,6 +2962,10 @@ interface File {
|
|
|
2798
2962
|
* The compression type.
|
|
2799
2963
|
*/
|
|
2800
2964
|
readonly compression_type: CompressionType
|
|
2965
|
+
/**
|
|
2966
|
+
* The compression type.
|
|
2967
|
+
*/
|
|
2968
|
+
readonly compressionType: CompressionType
|
|
2801
2969
|
/**
|
|
2802
2970
|
* The character encoding, initially %NULL. After a successful file
|
|
2803
2971
|
* loading or saving operation, the encoding is non-%NULL.
|
|
@@ -2811,11 +2979,20 @@ interface File {
|
|
|
2811
2979
|
* The line ending type.
|
|
2812
2980
|
*/
|
|
2813
2981
|
readonly newline_type: NewlineType
|
|
2982
|
+
/**
|
|
2983
|
+
* The line ending type.
|
|
2984
|
+
*/
|
|
2985
|
+
readonly newlineType: NewlineType
|
|
2814
2986
|
/**
|
|
2815
2987
|
* Whether the file is read-only or not. The value of this property is
|
|
2816
2988
|
* not updated automatically (there is no file monitors).
|
|
2817
2989
|
*/
|
|
2818
2990
|
readonly read_only: boolean
|
|
2991
|
+
/**
|
|
2992
|
+
* Whether the file is read-only or not. The value of this property is
|
|
2993
|
+
* not updated automatically (there is no file monitors).
|
|
2994
|
+
*/
|
|
2995
|
+
readonly readOnly: boolean
|
|
2819
2996
|
|
|
2820
2997
|
// Own fields of GtkSource-4.GtkSource.File
|
|
2821
2998
|
|
|
@@ -2951,6 +3128,11 @@ module FileLoader {
|
|
|
2951
3128
|
* construction time.
|
|
2952
3129
|
*/
|
|
2953
3130
|
location?: Gio.File | null
|
|
3131
|
+
/**
|
|
3132
|
+
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3133
|
+
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3134
|
+
*/
|
|
3135
|
+
inputStream?: Gio.InputStream | null
|
|
2954
3136
|
}
|
|
2955
3137
|
|
|
2956
3138
|
}
|
|
@@ -2974,6 +3156,11 @@ interface FileLoader {
|
|
|
2974
3156
|
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
2975
3157
|
*/
|
|
2976
3158
|
readonly input_stream: Gio.InputStream
|
|
3159
|
+
/**
|
|
3160
|
+
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3161
|
+
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3162
|
+
*/
|
|
3163
|
+
readonly inputStream: Gio.InputStream
|
|
2977
3164
|
/**
|
|
2978
3165
|
* The #GFile to load. If the #GtkSourceFileLoader:input-stream is
|
|
2979
3166
|
* %NULL, by default the location is taken from the #GtkSourceFile at
|
|
@@ -3151,6 +3338,14 @@ module FileSaver {
|
|
|
3151
3338
|
* The newline type.
|
|
3152
3339
|
*/
|
|
3153
3340
|
newline_type?: NewlineType | null
|
|
3341
|
+
/**
|
|
3342
|
+
* The compression type.
|
|
3343
|
+
*/
|
|
3344
|
+
compressionType?: CompressionType | null
|
|
3345
|
+
/**
|
|
3346
|
+
* The newline type.
|
|
3347
|
+
*/
|
|
3348
|
+
newlineType?: NewlineType | null
|
|
3154
3349
|
}
|
|
3155
3350
|
|
|
3156
3351
|
}
|
|
@@ -3168,6 +3363,10 @@ interface FileSaver {
|
|
|
3168
3363
|
* The compression type.
|
|
3169
3364
|
*/
|
|
3170
3365
|
compression_type: CompressionType
|
|
3366
|
+
/**
|
|
3367
|
+
* The compression type.
|
|
3368
|
+
*/
|
|
3369
|
+
compressionType: CompressionType
|
|
3171
3370
|
/**
|
|
3172
3371
|
* The file's encoding.
|
|
3173
3372
|
*/
|
|
@@ -3190,6 +3389,10 @@ interface FileSaver {
|
|
|
3190
3389
|
* The newline type.
|
|
3191
3390
|
*/
|
|
3192
3391
|
newline_type: NewlineType
|
|
3392
|
+
/**
|
|
3393
|
+
* The newline type.
|
|
3394
|
+
*/
|
|
3395
|
+
newlineType: NewlineType
|
|
3193
3396
|
|
|
3194
3397
|
// Own fields of GtkSource-4.GtkSource.FileSaver
|
|
3195
3398
|
|
|
@@ -3358,6 +3561,10 @@ module Gutter {
|
|
|
3358
3561
|
* The text window type on which the window is placed.
|
|
3359
3562
|
*/
|
|
3360
3563
|
window_type?: Gtk.TextWindowType | null
|
|
3564
|
+
/**
|
|
3565
|
+
* The text window type on which the window is placed.
|
|
3566
|
+
*/
|
|
3567
|
+
windowType?: Gtk.TextWindowType | null
|
|
3361
3568
|
}
|
|
3362
3569
|
|
|
3363
3570
|
}
|
|
@@ -3374,6 +3581,10 @@ interface Gutter {
|
|
|
3374
3581
|
* The text window type on which the window is placed.
|
|
3375
3582
|
*/
|
|
3376
3583
|
readonly window_type: Gtk.TextWindowType
|
|
3584
|
+
/**
|
|
3585
|
+
* The text window type on which the window is placed.
|
|
3586
|
+
*/
|
|
3587
|
+
readonly windowType: Gtk.TextWindowType
|
|
3377
3588
|
|
|
3378
3589
|
// Own fields of GtkSource-4.GtkSource.Gutter
|
|
3379
3590
|
|
|
@@ -3524,6 +3735,15 @@ module GutterRenderer {
|
|
|
3524
3735
|
* The top and bottom padding of the renderer.
|
|
3525
3736
|
*/
|
|
3526
3737
|
ypad?: number | null
|
|
3738
|
+
/**
|
|
3739
|
+
* The alignment mode of the renderer. This can be used to indicate
|
|
3740
|
+
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
3741
|
+
* the alignment should work on either the full cell, the first line
|
|
3742
|
+
* or the last line.
|
|
3743
|
+
*/
|
|
3744
|
+
alignmentMode?: GutterRendererAlignmentMode | null
|
|
3745
|
+
backgroundRgba?: Gdk.RGBA | null
|
|
3746
|
+
backgroundSet?: boolean | null
|
|
3527
3747
|
}
|
|
3528
3748
|
|
|
3529
3749
|
}
|
|
@@ -3539,8 +3759,17 @@ interface GutterRenderer {
|
|
|
3539
3759
|
* or the last line.
|
|
3540
3760
|
*/
|
|
3541
3761
|
alignment_mode: GutterRendererAlignmentMode
|
|
3762
|
+
/**
|
|
3763
|
+
* The alignment mode of the renderer. This can be used to indicate
|
|
3764
|
+
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
3765
|
+
* the alignment should work on either the full cell, the first line
|
|
3766
|
+
* or the last line.
|
|
3767
|
+
*/
|
|
3768
|
+
alignmentMode: GutterRendererAlignmentMode
|
|
3542
3769
|
background_rgba: Gdk.RGBA
|
|
3770
|
+
backgroundRgba: Gdk.RGBA
|
|
3543
3771
|
background_set: boolean
|
|
3772
|
+
backgroundSet: boolean
|
|
3544
3773
|
size: number
|
|
3545
3774
|
/**
|
|
3546
3775
|
* The view on which the renderer is placed.
|
|
@@ -3555,6 +3784,11 @@ interface GutterRenderer {
|
|
|
3555
3784
|
* or right).
|
|
3556
3785
|
*/
|
|
3557
3786
|
readonly window_type: Gtk.TextWindowType
|
|
3787
|
+
/**
|
|
3788
|
+
* The window type of the view on which the renderer is placed (left,
|
|
3789
|
+
* or right).
|
|
3790
|
+
*/
|
|
3791
|
+
readonly windowType: Gtk.TextWindowType
|
|
3558
3792
|
/**
|
|
3559
3793
|
* The horizontal alignment of the renderer. Set to 0 for a left
|
|
3560
3794
|
* alignment. 1 for a right alignment. And 0.5 for centering the cells.
|
|
@@ -3941,6 +4175,7 @@ module GutterRendererPixbuf {
|
|
|
3941
4175
|
gicon?: Gio.Icon | null
|
|
3942
4176
|
icon_name?: string | null
|
|
3943
4177
|
pixbuf?: GdkPixbuf.Pixbuf | null
|
|
4178
|
+
iconName?: string | null
|
|
3944
4179
|
}
|
|
3945
4180
|
|
|
3946
4181
|
}
|
|
@@ -3951,6 +4186,7 @@ interface GutterRendererPixbuf {
|
|
|
3951
4186
|
|
|
3952
4187
|
gicon: Gio.Icon
|
|
3953
4188
|
icon_name: string | null
|
|
4189
|
+
iconName: string | null
|
|
3954
4190
|
pixbuf: GdkPixbuf.Pixbuf
|
|
3955
4191
|
|
|
3956
4192
|
// Owm methods of GtkSource-4.GtkSource.GutterRendererPixbuf
|
|
@@ -3960,7 +4196,7 @@ interface GutterRendererPixbuf {
|
|
|
3960
4196
|
* @returns a #GIcon
|
|
3961
4197
|
*/
|
|
3962
4198
|
get_gicon(): Gio.Icon
|
|
3963
|
-
get_icon_name(): string
|
|
4199
|
+
get_icon_name(): string
|
|
3964
4200
|
/**
|
|
3965
4201
|
* Get the pixbuf of the renderer.
|
|
3966
4202
|
* @returns a #GdkPixbuf
|
|
@@ -4073,15 +4309,15 @@ interface GutterRendererText {
|
|
|
4073
4309
|
* #GtkSourceGutterRendererText.
|
|
4074
4310
|
* @param text the text to measure.
|
|
4075
4311
|
*/
|
|
4076
|
-
measure(text: string
|
|
4312
|
+
measure(text: string): [ /* width */ number, /* height */ number ]
|
|
4077
4313
|
/**
|
|
4078
4314
|
* Measures the pango markup provided using the pango layout used by the
|
|
4079
4315
|
* #GtkSourceGutterRendererText.
|
|
4080
4316
|
* @param markup the pango markup to measure.
|
|
4081
4317
|
*/
|
|
4082
|
-
measure_markup(markup: string
|
|
4083
|
-
set_markup(markup: string
|
|
4084
|
-
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
|
|
4085
4321
|
|
|
4086
4322
|
// Class property signals of GtkSource-4.GtkSource.GutterRendererText
|
|
4087
4323
|
|
|
@@ -4198,8 +4434,8 @@ interface Language {
|
|
|
4198
4434
|
* or modified.
|
|
4199
4435
|
* @returns the ID of @language.
|
|
4200
4436
|
*/
|
|
4201
|
-
get_id(): string
|
|
4202
|
-
get_metadata(name: string
|
|
4437
|
+
get_id(): string
|
|
4438
|
+
get_metadata(name: string): string | null
|
|
4203
4439
|
/**
|
|
4204
4440
|
* Returns the mime types associated to this language. This is just
|
|
4205
4441
|
* an utility wrapper around gtk_source_language_get_metadata() to
|
|
@@ -4214,7 +4450,7 @@ interface Language {
|
|
|
4214
4450
|
* or modified.
|
|
4215
4451
|
* @returns the name of @language.
|
|
4216
4452
|
*/
|
|
4217
|
-
get_name(): string
|
|
4453
|
+
get_name(): string
|
|
4218
4454
|
/**
|
|
4219
4455
|
* Returns the localized section of the language.
|
|
4220
4456
|
* Each language belong to a section (ex. HTML belogs to the
|
|
@@ -4223,14 +4459,14 @@ interface Language {
|
|
|
4223
4459
|
* or modified.
|
|
4224
4460
|
* @returns the section of @language.
|
|
4225
4461
|
*/
|
|
4226
|
-
get_section(): string
|
|
4462
|
+
get_section(): string
|
|
4227
4463
|
/**
|
|
4228
4464
|
* Returns the ID of the style to use if the specified `style_id`
|
|
4229
4465
|
* is not present in the current style scheme.
|
|
4230
4466
|
* @param style_id a style ID.
|
|
4231
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.
|
|
4232
4468
|
*/
|
|
4233
|
-
get_style_fallback(style_id: string
|
|
4469
|
+
get_style_fallback(style_id: string): string | null
|
|
4234
4470
|
/**
|
|
4235
4471
|
* Returns the ids of the styles defined by this `language`.
|
|
4236
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().
|
|
@@ -4241,7 +4477,7 @@ interface Language {
|
|
|
4241
4477
|
* @param style_id a style ID.
|
|
4242
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.
|
|
4243
4479
|
*/
|
|
4244
|
-
get_style_name(style_id: string
|
|
4480
|
+
get_style_name(style_id: string): string | null
|
|
4245
4481
|
|
|
4246
4482
|
// Class property signals of GtkSource-4.GtkSource.Language
|
|
4247
4483
|
|
|
@@ -4285,6 +4521,7 @@ module LanguageManager {
|
|
|
4285
4521
|
// Own constructor properties of GtkSource-4.GtkSource.LanguageManager
|
|
4286
4522
|
|
|
4287
4523
|
search_path?: string[] | null
|
|
4524
|
+
searchPath?: string[] | null
|
|
4288
4525
|
}
|
|
4289
4526
|
|
|
4290
4527
|
}
|
|
@@ -4294,7 +4531,9 @@ interface LanguageManager {
|
|
|
4294
4531
|
// Own properties of GtkSource-4.GtkSource.LanguageManager
|
|
4295
4532
|
|
|
4296
4533
|
readonly language_ids: string[]
|
|
4534
|
+
readonly languageIds: string[]
|
|
4297
4535
|
search_path: string[]
|
|
4536
|
+
searchPath: string[]
|
|
4298
4537
|
|
|
4299
4538
|
// Own fields of GtkSource-4.GtkSource.LanguageManager
|
|
4300
4539
|
|
|
@@ -4309,7 +4548,7 @@ interface LanguageManager {
|
|
|
4309
4548
|
* @param id a language id.
|
|
4310
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.
|
|
4311
4550
|
*/
|
|
4312
|
-
get_language(id: string
|
|
4551
|
+
get_language(id: string): Language | null
|
|
4313
4552
|
/**
|
|
4314
4553
|
* Returns the ids of the available languages.
|
|
4315
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.
|
|
@@ -4433,6 +4672,7 @@ module Map {
|
|
|
4433
4672
|
|
|
4434
4673
|
font_desc?: Pango.FontDescription | null
|
|
4435
4674
|
view?: View | null
|
|
4675
|
+
fontDesc?: Pango.FontDescription | null
|
|
4436
4676
|
}
|
|
4437
4677
|
|
|
4438
4678
|
}
|
|
@@ -4442,6 +4682,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4442
4682
|
// Own properties of GtkSource-4.GtkSource.Map
|
|
4443
4683
|
|
|
4444
4684
|
font_desc: Pango.FontDescription
|
|
4685
|
+
fontDesc: Pango.FontDescription
|
|
4445
4686
|
view: View
|
|
4446
4687
|
|
|
4447
4688
|
// Conflicting properties
|
|
@@ -4502,7 +4743,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4502
4743
|
* @param child the child widget
|
|
4503
4744
|
* @param child_property the name of a child property installed on the class of `container`
|
|
4504
4745
|
*/
|
|
4505
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
4746
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
4506
4747
|
|
|
4507
4748
|
// Overloads of child_notify
|
|
4508
4749
|
|
|
@@ -4516,7 +4757,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4516
4757
|
* Also see gtk_container_child_notify().
|
|
4517
4758
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4518
4759
|
*/
|
|
4519
|
-
child_notify(child_property: string
|
|
4760
|
+
child_notify(child_property: string): void
|
|
4520
4761
|
/**
|
|
4521
4762
|
* Emits a #GtkWidget::child-notify signal for the
|
|
4522
4763
|
* [child property][child-properties] `child_property`
|
|
@@ -4527,7 +4768,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4527
4768
|
* Also see gtk_container_child_notify().
|
|
4528
4769
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4529
4770
|
*/
|
|
4530
|
-
child_notify(child_property: string
|
|
4771
|
+
child_notify(child_property: string): void
|
|
4531
4772
|
|
|
4532
4773
|
// Class property signals of GtkSource-4.GtkSource.Map
|
|
4533
4774
|
|
|
@@ -4856,7 +5097,7 @@ interface Mark {
|
|
|
4856
5097
|
* Returns the mark category.
|
|
4857
5098
|
* @returns the category of the #GtkSourceMark.
|
|
4858
5099
|
*/
|
|
4859
|
-
get_category(): string
|
|
5100
|
+
get_category(): string
|
|
4860
5101
|
/**
|
|
4861
5102
|
* Returns the next #GtkSourceMark in the buffer or %NULL if the mark
|
|
4862
5103
|
* was not added to a buffer. If there is no next mark, %NULL will be returned.
|
|
@@ -4914,7 +5155,7 @@ class Mark extends Gtk.TextMark {
|
|
|
4914
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).
|
|
4915
5156
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
4916
5157
|
*/
|
|
4917
|
-
constructor(name: string | null, category: string
|
|
5158
|
+
constructor(name: string | null, category: string)
|
|
4918
5159
|
/**
|
|
4919
5160
|
* Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
|
|
4920
5161
|
* If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
|
|
@@ -4926,7 +5167,7 @@ class Mark extends Gtk.TextMark {
|
|
|
4926
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).
|
|
4927
5168
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
4928
5169
|
*/
|
|
4929
|
-
static new(name: string | null, category: string
|
|
5170
|
+
static new(name: string | null, category: string): Mark
|
|
4930
5171
|
|
|
4931
5172
|
// Overloads of new
|
|
4932
5173
|
|
|
@@ -4990,6 +5231,10 @@ module MarkAttributes {
|
|
|
4990
5231
|
* A #GdkPixbuf that may be a base of a rendered icon.
|
|
4991
5232
|
*/
|
|
4992
5233
|
pixbuf?: GdkPixbuf.Pixbuf | null
|
|
5234
|
+
/**
|
|
5235
|
+
* An icon name that may be a base of a rendered icon.
|
|
5236
|
+
*/
|
|
5237
|
+
iconName?: string | null
|
|
4993
5238
|
}
|
|
4994
5239
|
|
|
4995
5240
|
}
|
|
@@ -5010,6 +5255,10 @@ interface MarkAttributes {
|
|
|
5010
5255
|
* An icon name that may be a base of a rendered icon.
|
|
5011
5256
|
*/
|
|
5012
5257
|
icon_name: string | null
|
|
5258
|
+
/**
|
|
5259
|
+
* An icon name that may be a base of a rendered icon.
|
|
5260
|
+
*/
|
|
5261
|
+
iconName: string | null
|
|
5013
5262
|
/**
|
|
5014
5263
|
* A #GdkPixbuf that may be a base of a rendered icon.
|
|
5015
5264
|
*/
|
|
@@ -5033,7 +5282,7 @@ interface MarkAttributes {
|
|
|
5033
5282
|
* icon name can be %NULL if it wasn't set earlier.
|
|
5034
5283
|
* @returns An icon name. The string belongs to @attributes and should not be freed.
|
|
5035
5284
|
*/
|
|
5036
|
-
get_icon_name(): string
|
|
5285
|
+
get_icon_name(): string
|
|
5037
5286
|
/**
|
|
5038
5287
|
* Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
|
|
5039
5288
|
* pixbuf can be %NULL if it wasn't set earlier.
|
|
@@ -5080,7 +5329,7 @@ interface MarkAttributes {
|
|
|
5080
5329
|
* Sets a name of an icon to be used as a base for rendered icon.
|
|
5081
5330
|
* @param icon_name name of an icon to be used.
|
|
5082
5331
|
*/
|
|
5083
|
-
set_icon_name(icon_name: string
|
|
5332
|
+
set_icon_name(icon_name: string): void
|
|
5084
5333
|
/**
|
|
5085
5334
|
* Sets a pixbuf to be used as a base for rendered icon.
|
|
5086
5335
|
* @param pixbuf a #GdkPixbuf to be used.
|
|
@@ -5252,77 +5501,235 @@ module PrintCompositor {
|
|
|
5252
5501
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5253
5502
|
*/
|
|
5254
5503
|
wrap_mode?: Gtk.WrapMode | null
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5504
|
+
/**
|
|
5505
|
+
* Name of the font used for the text body.
|
|
5506
|
+
*
|
|
5507
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5508
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5509
|
+
* for a description of the format of the string representation.
|
|
5510
|
+
*
|
|
5511
|
+
* The value of this property cannot be changed anymore after the first
|
|
5512
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5513
|
+
*/
|
|
5514
|
+
bodyFontName?: string | null
|
|
5515
|
+
/**
|
|
5516
|
+
* Name of the font used to print page footer.
|
|
5517
|
+
* If this property is unspecified, the text body font is used.
|
|
5518
|
+
*
|
|
5519
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5520
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5521
|
+
* for a description of the format of the string representation.
|
|
5522
|
+
*
|
|
5523
|
+
* The value of this property cannot be changed anymore after the first
|
|
5524
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5525
|
+
*/
|
|
5526
|
+
footerFontName?: string | null
|
|
5527
|
+
/**
|
|
5528
|
+
* Name of the font used to print page header.
|
|
5529
|
+
* If this property is unspecified, the text body font is used.
|
|
5530
|
+
*
|
|
5531
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5532
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5533
|
+
* for a description of the format of the string representation.
|
|
5534
|
+
*
|
|
5535
|
+
* The value of this property cannot be changed anymore after the first
|
|
5536
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5537
|
+
*/
|
|
5538
|
+
headerFontName?: string | null
|
|
5539
|
+
/**
|
|
5540
|
+
* Whether to print the document with highlighted syntax.
|
|
5541
|
+
*
|
|
5542
|
+
* The value of this property cannot be changed anymore after the first
|
|
5543
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5544
|
+
*/
|
|
5545
|
+
highlightSyntax?: boolean | null
|
|
5546
|
+
/**
|
|
5547
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5548
|
+
* If this property is unspecified, the text body font is used.
|
|
5549
|
+
*
|
|
5550
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5551
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5552
|
+
* for a description of the format of the string representation.
|
|
5553
|
+
*
|
|
5554
|
+
* The value of this property cannot be changed anymore after the first
|
|
5555
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5556
|
+
*/
|
|
5557
|
+
lineNumbersFontName?: string | null
|
|
5558
|
+
/**
|
|
5559
|
+
* Whether to print a footer in each page.
|
|
5560
|
+
*
|
|
5561
|
+
* Note that by default the footer format is unspecified, and if it is
|
|
5562
|
+
* unspecified the footer will not be printed, regardless of the value of
|
|
5563
|
+
* this property.
|
|
5564
|
+
*
|
|
5565
|
+
* The value of this property cannot be changed anymore after the first
|
|
5566
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5567
|
+
*/
|
|
5568
|
+
printFooter?: boolean | null
|
|
5569
|
+
/**
|
|
5570
|
+
* Whether to print a header in each page.
|
|
5571
|
+
*
|
|
5572
|
+
* Note that by default the header format is unspecified, and if it is
|
|
5573
|
+
* unspecified the header will not be printed, regardless of the value of
|
|
5574
|
+
* this property.
|
|
5575
|
+
*
|
|
5576
|
+
* The value of this property cannot be changed anymore after the first
|
|
5577
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5578
|
+
*/
|
|
5579
|
+
printHeader?: boolean | null
|
|
5580
|
+
/**
|
|
5581
|
+
* Interval of printed line numbers. If this property is set to 0 no
|
|
5582
|
+
* numbers will be printed. If greater than 0, a number will be
|
|
5583
|
+
* printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).
|
|
5584
|
+
*
|
|
5585
|
+
* The value of this property cannot be changed anymore after the first
|
|
5586
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5587
|
+
*/
|
|
5588
|
+
printLineNumbers?: number | null
|
|
5589
|
+
/**
|
|
5590
|
+
* Width of a tab character expressed in spaces.
|
|
5591
|
+
*
|
|
5592
|
+
* The value of this property cannot be changed anymore after the first
|
|
5593
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5594
|
+
*/
|
|
5595
|
+
tabWidth?: number | null
|
|
5596
|
+
/**
|
|
5597
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5598
|
+
*
|
|
5599
|
+
* The value of this property cannot be changed anymore after the first
|
|
5600
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5601
|
+
*/
|
|
5602
|
+
wrapMode?: Gtk.WrapMode | null
|
|
5603
|
+
}
|
|
5604
|
+
|
|
5605
|
+
}
|
|
5606
|
+
|
|
5607
|
+
interface PrintCompositor {
|
|
5608
|
+
|
|
5609
|
+
// Own properties of GtkSource-4.GtkSource.PrintCompositor
|
|
5610
|
+
|
|
5611
|
+
/**
|
|
5612
|
+
* Name of the font used for the text body.
|
|
5613
|
+
*
|
|
5614
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5615
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5616
|
+
* for a description of the format of the string representation.
|
|
5617
|
+
*
|
|
5618
|
+
* The value of this property cannot be changed anymore after the first
|
|
5619
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5620
|
+
*/
|
|
5621
|
+
body_font_name: string | null
|
|
5622
|
+
/**
|
|
5623
|
+
* Name of the font used for the text body.
|
|
5624
|
+
*
|
|
5625
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5626
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5627
|
+
* for a description of the format of the string representation.
|
|
5628
|
+
*
|
|
5629
|
+
* The value of this property cannot be changed anymore after the first
|
|
5630
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5631
|
+
*/
|
|
5632
|
+
bodyFontName: string | null
|
|
5633
|
+
/**
|
|
5634
|
+
* The GtkSourceBuffer object to print.
|
|
5635
|
+
*/
|
|
5636
|
+
readonly buffer: Buffer
|
|
5637
|
+
/**
|
|
5638
|
+
* Name of the font used to print page footer.
|
|
5639
|
+
* If this property is unspecified, the text body font is used.
|
|
5640
|
+
*
|
|
5641
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5642
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5643
|
+
* for a description of the format of the string representation.
|
|
5644
|
+
*
|
|
5645
|
+
* The value of this property cannot be changed anymore after the first
|
|
5646
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5647
|
+
*/
|
|
5648
|
+
footer_font_name: string | null
|
|
5649
|
+
/**
|
|
5650
|
+
* Name of the font used to print page footer.
|
|
5651
|
+
* If this property is unspecified, the text body font is used.
|
|
5652
|
+
*
|
|
5653
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5654
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5655
|
+
* for a description of the format of the string representation.
|
|
5656
|
+
*
|
|
5657
|
+
* The value of this property cannot be changed anymore after the first
|
|
5658
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5659
|
+
*/
|
|
5660
|
+
footerFontName: string | null
|
|
5661
|
+
/**
|
|
5662
|
+
* Name of the font used to print page header.
|
|
5663
|
+
* If this property is unspecified, the text body font is used.
|
|
5664
|
+
*
|
|
5665
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5666
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5667
|
+
* for a description of the format of the string representation.
|
|
5668
|
+
*
|
|
5669
|
+
* The value of this property cannot be changed anymore after the first
|
|
5670
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5671
|
+
*/
|
|
5672
|
+
header_font_name: string | null
|
|
5673
|
+
/**
|
|
5674
|
+
* Name of the font used to print page header.
|
|
5675
|
+
* If this property is unspecified, the text body font is used.
|
|
5676
|
+
*
|
|
5677
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5678
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5679
|
+
* for a description of the format of the string representation.
|
|
5680
|
+
*
|
|
5681
|
+
* The value of this property cannot be changed anymore after the first
|
|
5682
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5683
|
+
*/
|
|
5684
|
+
headerFontName: string | null
|
|
5685
|
+
/**
|
|
5686
|
+
* Whether to print the document with highlighted syntax.
|
|
5687
|
+
*
|
|
5688
|
+
* The value of this property cannot be changed anymore after the first
|
|
5689
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5690
|
+
*/
|
|
5691
|
+
highlight_syntax: boolean
|
|
5692
|
+
/**
|
|
5693
|
+
* Whether to print the document with highlighted syntax.
|
|
5694
|
+
*
|
|
5695
|
+
* The value of this property cannot be changed anymore after the first
|
|
5696
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5697
|
+
*/
|
|
5698
|
+
highlightSyntax: boolean
|
|
5699
|
+
/**
|
|
5700
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5701
|
+
* If this property is unspecified, the text body font is used.
|
|
5702
|
+
*
|
|
5703
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5704
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5705
|
+
* for a description of the format of the string representation.
|
|
5706
|
+
*
|
|
5707
|
+
* The value of this property cannot be changed anymore after the first
|
|
5708
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5709
|
+
*/
|
|
5710
|
+
line_numbers_font_name: string | null
|
|
5711
|
+
/**
|
|
5712
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5713
|
+
* If this property is unspecified, the text body font is used.
|
|
5714
|
+
*
|
|
5715
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5716
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5717
|
+
* for a description of the format of the string representation.
|
|
5718
|
+
*
|
|
5719
|
+
* The value of this property cannot be changed anymore after the first
|
|
5720
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5721
|
+
*/
|
|
5722
|
+
lineNumbersFontName: string | null
|
|
5723
|
+
/**
|
|
5724
|
+
* The number of pages in the document or <code>-1</code> if the
|
|
5725
|
+
* document has not been completely paginated.
|
|
5726
|
+
*/
|
|
5325
5727
|
readonly n_pages: number
|
|
5728
|
+
/**
|
|
5729
|
+
* The number of pages in the document or <code>-1</code> if the
|
|
5730
|
+
* document has not been completely paginated.
|
|
5731
|
+
*/
|
|
5732
|
+
readonly nPages: number
|
|
5326
5733
|
/**
|
|
5327
5734
|
* Whether to print a footer in each page.
|
|
5328
5735
|
*
|
|
@@ -5334,6 +5741,17 @@ interface PrintCompositor {
|
|
|
5334
5741
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5335
5742
|
*/
|
|
5336
5743
|
print_footer: boolean
|
|
5744
|
+
/**
|
|
5745
|
+
* Whether to print a footer in each page.
|
|
5746
|
+
*
|
|
5747
|
+
* Note that by default the footer format is unspecified, and if it is
|
|
5748
|
+
* unspecified the footer will not be printed, regardless of the value of
|
|
5749
|
+
* this property.
|
|
5750
|
+
*
|
|
5751
|
+
* The value of this property cannot be changed anymore after the first
|
|
5752
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5753
|
+
*/
|
|
5754
|
+
printFooter: boolean
|
|
5337
5755
|
/**
|
|
5338
5756
|
* Whether to print a header in each page.
|
|
5339
5757
|
*
|
|
@@ -5345,6 +5763,17 @@ interface PrintCompositor {
|
|
|
5345
5763
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5346
5764
|
*/
|
|
5347
5765
|
print_header: boolean
|
|
5766
|
+
/**
|
|
5767
|
+
* Whether to print a header in each page.
|
|
5768
|
+
*
|
|
5769
|
+
* Note that by default the header format is unspecified, and if it is
|
|
5770
|
+
* unspecified the header will not be printed, regardless of the value of
|
|
5771
|
+
* this property.
|
|
5772
|
+
*
|
|
5773
|
+
* The value of this property cannot be changed anymore after the first
|
|
5774
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5775
|
+
*/
|
|
5776
|
+
printHeader: boolean
|
|
5348
5777
|
/**
|
|
5349
5778
|
* Interval of printed line numbers. If this property is set to 0 no
|
|
5350
5779
|
* numbers will be printed. If greater than 0, a number will be
|
|
@@ -5354,6 +5783,15 @@ interface PrintCompositor {
|
|
|
5354
5783
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5355
5784
|
*/
|
|
5356
5785
|
print_line_numbers: number
|
|
5786
|
+
/**
|
|
5787
|
+
* Interval of printed line numbers. If this property is set to 0 no
|
|
5788
|
+
* numbers will be printed. If greater than 0, a number will be
|
|
5789
|
+
* printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).
|
|
5790
|
+
*
|
|
5791
|
+
* The value of this property cannot be changed anymore after the first
|
|
5792
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5793
|
+
*/
|
|
5794
|
+
printLineNumbers: number
|
|
5357
5795
|
/**
|
|
5358
5796
|
* Width of a tab character expressed in spaces.
|
|
5359
5797
|
*
|
|
@@ -5361,6 +5799,13 @@ interface PrintCompositor {
|
|
|
5361
5799
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5362
5800
|
*/
|
|
5363
5801
|
tab_width: number
|
|
5802
|
+
/**
|
|
5803
|
+
* Width of a tab character expressed in spaces.
|
|
5804
|
+
*
|
|
5805
|
+
* The value of this property cannot be changed anymore after the first
|
|
5806
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5807
|
+
*/
|
|
5808
|
+
tabWidth: number
|
|
5364
5809
|
/**
|
|
5365
5810
|
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5366
5811
|
*
|
|
@@ -5368,6 +5813,13 @@ interface PrintCompositor {
|
|
|
5368
5813
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5369
5814
|
*/
|
|
5370
5815
|
wrap_mode: Gtk.WrapMode
|
|
5816
|
+
/**
|
|
5817
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5818
|
+
*
|
|
5819
|
+
* The value of this property cannot be changed anymore after the first
|
|
5820
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5821
|
+
*/
|
|
5822
|
+
wrapMode: Gtk.WrapMode
|
|
5371
5823
|
|
|
5372
5824
|
// Own fields of GtkSource-4.GtkSource.PrintCompositor
|
|
5373
5825
|
|
|
@@ -5587,7 +6039,7 @@ interface PrintCompositor {
|
|
|
5587
6039
|
* gtk_source_print_compositor_paginate() function.
|
|
5588
6040
|
* @param font_name the name of the default font for the body text.
|
|
5589
6041
|
*/
|
|
5590
|
-
set_body_font_name(font_name: string
|
|
6042
|
+
set_body_font_name(font_name: string): void
|
|
5591
6043
|
/**
|
|
5592
6044
|
* Sets the bottom margin used by `compositor`.
|
|
5593
6045
|
* @param margin the new bottom margin in units of `unit`.
|
|
@@ -5992,6 +6444,10 @@ module SearchContext {
|
|
|
5992
6444
|
* This property is construct-only since version 4.0.
|
|
5993
6445
|
*/
|
|
5994
6446
|
settings?: SearchSettings | null
|
|
6447
|
+
/**
|
|
6448
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6449
|
+
*/
|
|
6450
|
+
matchStyle?: Style | null
|
|
5995
6451
|
}
|
|
5996
6452
|
|
|
5997
6453
|
}
|
|
@@ -6012,12 +6468,22 @@ interface SearchContext {
|
|
|
6012
6468
|
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6013
6469
|
*/
|
|
6014
6470
|
match_style: Style
|
|
6471
|
+
/**
|
|
6472
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6473
|
+
*/
|
|
6474
|
+
matchStyle: Style
|
|
6015
6475
|
/**
|
|
6016
6476
|
* The total number of search occurrences. If the search is disabled,
|
|
6017
6477
|
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6018
6478
|
* is -1.
|
|
6019
6479
|
*/
|
|
6020
6480
|
readonly occurrences_count: number
|
|
6481
|
+
/**
|
|
6482
|
+
* The total number of search occurrences. If the search is disabled,
|
|
6483
|
+
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6484
|
+
* is -1.
|
|
6485
|
+
*/
|
|
6486
|
+
readonly occurrencesCount: number
|
|
6021
6487
|
/**
|
|
6022
6488
|
* If the regex search pattern doesn't follow all the rules, this
|
|
6023
6489
|
* #GError property will be set. If the pattern is valid, the value is
|
|
@@ -6026,6 +6492,14 @@ interface SearchContext {
|
|
|
6026
6492
|
* Free with g_error_free().
|
|
6027
6493
|
*/
|
|
6028
6494
|
readonly regex_error: any
|
|
6495
|
+
/**
|
|
6496
|
+
* If the regex search pattern doesn't follow all the rules, this
|
|
6497
|
+
* #GError property will be set. If the pattern is valid, the value is
|
|
6498
|
+
* %NULL.
|
|
6499
|
+
*
|
|
6500
|
+
* Free with g_error_free().
|
|
6501
|
+
*/
|
|
6502
|
+
readonly regexError: any
|
|
6029
6503
|
/**
|
|
6030
6504
|
* The #GtkSourceSearchSettings associated to the search context.
|
|
6031
6505
|
*
|
|
@@ -6210,7 +6684,7 @@ interface SearchContext {
|
|
|
6210
6684
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6211
6685
|
* @returns whether the match has been replaced.
|
|
6212
6686
|
*/
|
|
6213
|
-
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
|
|
6214
6688
|
/**
|
|
6215
6689
|
* Replaces all search matches by another text. It is a synchronous function, so
|
|
6216
6690
|
* it can block the user interface.
|
|
@@ -6222,7 +6696,7 @@ interface SearchContext {
|
|
|
6222
6696
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6223
6697
|
* @returns the number of replaced matches.
|
|
6224
6698
|
*/
|
|
6225
|
-
replace_all(replace: string
|
|
6699
|
+
replace_all(replace: string, replace_length: number): number
|
|
6226
6700
|
/**
|
|
6227
6701
|
* Enables or disables the search occurrences highlighting.
|
|
6228
6702
|
* @param highlight the setting.
|
|
@@ -6332,6 +6806,32 @@ module SearchSettings {
|
|
|
6332
6806
|
* end of the buffer.
|
|
6333
6807
|
*/
|
|
6334
6808
|
wrap_around?: boolean | null
|
|
6809
|
+
/**
|
|
6810
|
+
* If %TRUE, a search match must start and end a word. The match can
|
|
6811
|
+
* span multiple words.
|
|
6812
|
+
*/
|
|
6813
|
+
atWordBoundaries?: boolean | null
|
|
6814
|
+
/**
|
|
6815
|
+
* Whether the search is case sensitive.
|
|
6816
|
+
*/
|
|
6817
|
+
caseSensitive?: boolean | null
|
|
6818
|
+
/**
|
|
6819
|
+
* Search by regular expressions with
|
|
6820
|
+
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
6821
|
+
*/
|
|
6822
|
+
regexEnabled?: boolean | null
|
|
6823
|
+
/**
|
|
6824
|
+
* A search string, or %NULL if the search is disabled. If the regular
|
|
6825
|
+
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
6826
|
+
* the pattern.
|
|
6827
|
+
*/
|
|
6828
|
+
searchText?: string | null
|
|
6829
|
+
/**
|
|
6830
|
+
* For a forward search, continue at the beginning of the buffer if no
|
|
6831
|
+
* search occurrence is found. For a backward search, continue at the
|
|
6832
|
+
* end of the buffer.
|
|
6833
|
+
*/
|
|
6834
|
+
wrapAround?: boolean | null
|
|
6335
6835
|
}
|
|
6336
6836
|
|
|
6337
6837
|
}
|
|
@@ -6345,27 +6845,53 @@ interface SearchSettings {
|
|
|
6345
6845
|
* span multiple words.
|
|
6346
6846
|
*/
|
|
6347
6847
|
at_word_boundaries: boolean
|
|
6848
|
+
/**
|
|
6849
|
+
* If %TRUE, a search match must start and end a word. The match can
|
|
6850
|
+
* span multiple words.
|
|
6851
|
+
*/
|
|
6852
|
+
atWordBoundaries: boolean
|
|
6348
6853
|
/**
|
|
6349
6854
|
* Whether the search is case sensitive.
|
|
6350
6855
|
*/
|
|
6351
6856
|
case_sensitive: boolean
|
|
6857
|
+
/**
|
|
6858
|
+
* Whether the search is case sensitive.
|
|
6859
|
+
*/
|
|
6860
|
+
caseSensitive: boolean
|
|
6352
6861
|
/**
|
|
6353
6862
|
* Search by regular expressions with
|
|
6354
6863
|
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
6355
6864
|
*/
|
|
6356
6865
|
regex_enabled: boolean
|
|
6866
|
+
/**
|
|
6867
|
+
* Search by regular expressions with
|
|
6868
|
+
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
6869
|
+
*/
|
|
6870
|
+
regexEnabled: boolean
|
|
6357
6871
|
/**
|
|
6358
6872
|
* A search string, or %NULL if the search is disabled. If the regular
|
|
6359
6873
|
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
6360
6874
|
* the pattern.
|
|
6361
6875
|
*/
|
|
6362
6876
|
search_text: string | null
|
|
6877
|
+
/**
|
|
6878
|
+
* A search string, or %NULL if the search is disabled. If the regular
|
|
6879
|
+
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
6880
|
+
* the pattern.
|
|
6881
|
+
*/
|
|
6882
|
+
searchText: string | null
|
|
6363
6883
|
/**
|
|
6364
6884
|
* For a forward search, continue at the beginning of the buffer if no
|
|
6365
6885
|
* search occurrence is found. For a backward search, continue at the
|
|
6366
6886
|
* end of the buffer.
|
|
6367
6887
|
*/
|
|
6368
6888
|
wrap_around: boolean
|
|
6889
|
+
/**
|
|
6890
|
+
* For a forward search, continue at the beginning of the buffer if no
|
|
6891
|
+
* search occurrence is found. For a backward search, continue at the
|
|
6892
|
+
* end of the buffer.
|
|
6893
|
+
*/
|
|
6894
|
+
wrapAround: boolean
|
|
6369
6895
|
|
|
6370
6896
|
// Own fields of GtkSource-4.GtkSource.SearchSettings
|
|
6371
6897
|
|
|
@@ -6505,6 +7031,10 @@ module SpaceDrawer {
|
|
|
6505
7031
|
* By default, %GTK_SOURCE_SPACE_TYPE_ALL is set for all locations.
|
|
6506
7032
|
*/
|
|
6507
7033
|
matrix?: GLib.Variant | null
|
|
7034
|
+
/**
|
|
7035
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7036
|
+
*/
|
|
7037
|
+
enableMatrix?: boolean | null
|
|
6508
7038
|
}
|
|
6509
7039
|
|
|
6510
7040
|
}
|
|
@@ -6517,6 +7047,10 @@ interface SpaceDrawer {
|
|
|
6517
7047
|
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
6518
7048
|
*/
|
|
6519
7049
|
enable_matrix: boolean
|
|
7050
|
+
/**
|
|
7051
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7052
|
+
*/
|
|
7053
|
+
enableMatrix: boolean
|
|
6520
7054
|
/**
|
|
6521
7055
|
* The :matrix property is a #GVariant property to specify where and
|
|
6522
7056
|
* what kind of white spaces to draw.
|
|
@@ -6555,7 +7089,7 @@ interface SpaceDrawer {
|
|
|
6555
7089
|
* @param key the `settings` key to bind.
|
|
6556
7090
|
* @param flags flags for the binding.
|
|
6557
7091
|
*/
|
|
6558
|
-
bind_matrix_setting(settings: Gio.Settings, key: string
|
|
7092
|
+
bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
|
|
6559
7093
|
get_enable_matrix(): boolean
|
|
6560
7094
|
/**
|
|
6561
7095
|
* Gets the value of the #GtkSourceSpaceDrawer:matrix property, as a #GVariant.
|
|
@@ -6670,6 +7204,18 @@ module Style {
|
|
|
6670
7204
|
underline_color?: string | null
|
|
6671
7205
|
underline_color_set?: boolean | null
|
|
6672
7206
|
underline_set?: boolean | null
|
|
7207
|
+
backgroundSet?: boolean | null
|
|
7208
|
+
boldSet?: boolean | null
|
|
7209
|
+
foregroundSet?: boolean | null
|
|
7210
|
+
italicSet?: boolean | null
|
|
7211
|
+
lineBackground?: string | null
|
|
7212
|
+
lineBackgroundSet?: boolean | null
|
|
7213
|
+
pangoUnderline?: Pango.Underline | null
|
|
7214
|
+
scaleSet?: boolean | null
|
|
7215
|
+
strikethroughSet?: boolean | null
|
|
7216
|
+
underlineColor?: string | null
|
|
7217
|
+
underlineColorSet?: boolean | null
|
|
7218
|
+
underlineSet?: boolean | null
|
|
6673
7219
|
}
|
|
6674
7220
|
|
|
6675
7221
|
}
|
|
@@ -6680,22 +7226,34 @@ interface Style {
|
|
|
6680
7226
|
|
|
6681
7227
|
readonly background: string | null
|
|
6682
7228
|
readonly background_set: boolean
|
|
7229
|
+
readonly backgroundSet: boolean
|
|
6683
7230
|
readonly bold: boolean
|
|
6684
7231
|
readonly bold_set: boolean
|
|
7232
|
+
readonly boldSet: boolean
|
|
6685
7233
|
readonly foreground: string | null
|
|
6686
7234
|
readonly foreground_set: boolean
|
|
7235
|
+
readonly foregroundSet: boolean
|
|
6687
7236
|
readonly italic: boolean
|
|
6688
7237
|
readonly italic_set: boolean
|
|
7238
|
+
readonly italicSet: boolean
|
|
6689
7239
|
readonly line_background: string | null
|
|
7240
|
+
readonly lineBackground: string | null
|
|
6690
7241
|
readonly line_background_set: boolean
|
|
7242
|
+
readonly lineBackgroundSet: boolean
|
|
6691
7243
|
readonly pango_underline: Pango.Underline
|
|
7244
|
+
readonly pangoUnderline: Pango.Underline
|
|
6692
7245
|
readonly scale: string | null
|
|
6693
7246
|
readonly scale_set: boolean
|
|
7247
|
+
readonly scaleSet: boolean
|
|
6694
7248
|
readonly strikethrough: boolean
|
|
6695
7249
|
readonly strikethrough_set: boolean
|
|
7250
|
+
readonly strikethroughSet: boolean
|
|
6696
7251
|
readonly underline_color: string | null
|
|
7252
|
+
readonly underlineColor: string | null
|
|
6697
7253
|
readonly underline_color_set: boolean
|
|
7254
|
+
readonly underlineColorSet: boolean
|
|
6698
7255
|
readonly underline_set: boolean
|
|
7256
|
+
readonly underlineSet: boolean
|
|
6699
7257
|
|
|
6700
7258
|
// Owm methods of GtkSource-4.GtkSource.Style
|
|
6701
7259
|
|
|
@@ -6841,9 +7399,9 @@ interface StyleScheme {
|
|
|
6841
7399
|
get_authors(): string[] | null
|
|
6842
7400
|
get_description(): string | null
|
|
6843
7401
|
get_filename(): string | null
|
|
6844
|
-
get_id(): string
|
|
6845
|
-
get_name(): string
|
|
6846
|
-
get_style(style_id: string
|
|
7402
|
+
get_id(): string
|
|
7403
|
+
get_name(): string
|
|
7404
|
+
get_style(style_id: string): Style | null
|
|
6847
7405
|
|
|
6848
7406
|
// Class property signals of GtkSource-4.GtkSource.StyleScheme
|
|
6849
7407
|
|
|
@@ -6905,7 +7463,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
|
|
|
6905
7463
|
* Also see gtk_container_child_notify().
|
|
6906
7464
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
6907
7465
|
*/
|
|
6908
|
-
child_notify(child_property: string
|
|
7466
|
+
child_notify(child_property: string): void
|
|
6909
7467
|
/**
|
|
6910
7468
|
* Emits a #GtkWidget::child-notify signal for the
|
|
6911
7469
|
* [child property][child-properties]
|
|
@@ -6917,7 +7475,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
|
|
|
6917
7475
|
* @param child the child widget
|
|
6918
7476
|
* @param child_property the name of a child property installed on the class of `container`
|
|
6919
7477
|
*/
|
|
6920
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7478
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
6921
7479
|
|
|
6922
7480
|
// Overloads of child_notify
|
|
6923
7481
|
|
|
@@ -6931,7 +7489,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
|
|
|
6931
7489
|
* Also see gtk_container_child_notify().
|
|
6932
7490
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
6933
7491
|
*/
|
|
6934
|
-
child_notify(child_property: string
|
|
7492
|
+
child_notify(child_property: string): void
|
|
6935
7493
|
|
|
6936
7494
|
// Class property signals of GtkSource-4.GtkSource.StyleSchemeChooserButton
|
|
6937
7495
|
|
|
@@ -7162,7 +7720,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
|
|
|
7162
7720
|
* @param child the child widget
|
|
7163
7721
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7164
7722
|
*/
|
|
7165
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7723
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7166
7724
|
|
|
7167
7725
|
// Overloads of child_notify
|
|
7168
7726
|
|
|
@@ -7176,7 +7734,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
|
|
|
7176
7734
|
* Also see gtk_container_child_notify().
|
|
7177
7735
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7178
7736
|
*/
|
|
7179
|
-
child_notify(child_property: string
|
|
7737
|
+
child_notify(child_property: string): void
|
|
7180
7738
|
/**
|
|
7181
7739
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7182
7740
|
* [child property][child-properties] `child_property`
|
|
@@ -7187,7 +7745,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
|
|
|
7187
7745
|
* Also see gtk_container_child_notify().
|
|
7188
7746
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7189
7747
|
*/
|
|
7190
|
-
child_notify(child_property: string
|
|
7748
|
+
child_notify(child_property: string): void
|
|
7191
7749
|
|
|
7192
7750
|
// Class property signals of GtkSource-4.GtkSource.StyleSchemeChooserWidget
|
|
7193
7751
|
|
|
@@ -7360,6 +7918,7 @@ module StyleSchemeManager {
|
|
|
7360
7918
|
// Own constructor properties of GtkSource-4.GtkSource.StyleSchemeManager
|
|
7361
7919
|
|
|
7362
7920
|
search_path?: string[] | null
|
|
7921
|
+
searchPath?: string[] | null
|
|
7363
7922
|
}
|
|
7364
7923
|
|
|
7365
7924
|
}
|
|
@@ -7369,7 +7928,9 @@ interface StyleSchemeManager {
|
|
|
7369
7928
|
// Own properties of GtkSource-4.GtkSource.StyleSchemeManager
|
|
7370
7929
|
|
|
7371
7930
|
readonly scheme_ids: string[]
|
|
7931
|
+
readonly schemeIds: string[]
|
|
7372
7932
|
search_path: string[]
|
|
7933
|
+
searchPath: string[]
|
|
7373
7934
|
|
|
7374
7935
|
// Own fields of GtkSource-4.GtkSource.StyleSchemeManager
|
|
7375
7936
|
|
|
@@ -7384,7 +7945,7 @@ interface StyleSchemeManager {
|
|
|
7384
7945
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7385
7946
|
* @param path a directory or a filename.
|
|
7386
7947
|
*/
|
|
7387
|
-
append_search_path(path: string
|
|
7948
|
+
append_search_path(path: string): void
|
|
7388
7949
|
/**
|
|
7389
7950
|
* Mark any currently cached information about the available style scehems
|
|
7390
7951
|
* as invalid. All the available style schemes will be reloaded next time
|
|
@@ -7396,7 +7957,7 @@ interface StyleSchemeManager {
|
|
|
7396
7957
|
* @param scheme_id style scheme id to find.
|
|
7397
7958
|
* @returns a #GtkSourceStyleScheme object. The returned value is owned by @manager and must not be unref'ed.
|
|
7398
7959
|
*/
|
|
7399
|
-
get_scheme(scheme_id: string
|
|
7960
|
+
get_scheme(scheme_id: string): StyleScheme | null
|
|
7400
7961
|
/**
|
|
7401
7962
|
* Returns the ids of the available style schemes.
|
|
7402
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.
|
|
@@ -7414,7 +7975,7 @@ interface StyleSchemeManager {
|
|
|
7414
7975
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7415
7976
|
* @param path a directory or a filename.
|
|
7416
7977
|
*/
|
|
7417
|
-
prepend_search_path(path: string
|
|
7978
|
+
prepend_search_path(path: string): void
|
|
7418
7979
|
/**
|
|
7419
7980
|
* Sets the list of directories where the `manager` looks for
|
|
7420
7981
|
* style scheme files.
|
|
@@ -7491,6 +8052,20 @@ module Tag {
|
|
|
7491
8052
|
* taken into account.
|
|
7492
8053
|
*/
|
|
7493
8054
|
draw_spaces_set?: boolean | null
|
|
8055
|
+
/**
|
|
8056
|
+
* Whether to draw white spaces. This property takes precedence over the value
|
|
8057
|
+
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8058
|
+
* (only where the tag is applied).
|
|
8059
|
+
*
|
|
8060
|
+
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8061
|
+
* %TRUE.
|
|
8062
|
+
*/
|
|
8063
|
+
drawSpaces?: boolean | null
|
|
8064
|
+
/**
|
|
8065
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8066
|
+
* taken into account.
|
|
8067
|
+
*/
|
|
8068
|
+
drawSpacesSet?: boolean | null
|
|
7494
8069
|
}
|
|
7495
8070
|
|
|
7496
8071
|
}
|
|
@@ -7508,11 +8083,25 @@ interface Tag {
|
|
|
7508
8083
|
* %TRUE.
|
|
7509
8084
|
*/
|
|
7510
8085
|
draw_spaces: boolean
|
|
8086
|
+
/**
|
|
8087
|
+
* Whether to draw white spaces. This property takes precedence over the value
|
|
8088
|
+
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8089
|
+
* (only where the tag is applied).
|
|
8090
|
+
*
|
|
8091
|
+
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8092
|
+
* %TRUE.
|
|
8093
|
+
*/
|
|
8094
|
+
drawSpaces: boolean
|
|
7511
8095
|
/**
|
|
7512
8096
|
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
7513
8097
|
* taken into account.
|
|
7514
8098
|
*/
|
|
7515
8099
|
draw_spaces_set: boolean
|
|
8100
|
+
/**
|
|
8101
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8102
|
+
* taken into account.
|
|
8103
|
+
*/
|
|
8104
|
+
drawSpacesSet: boolean
|
|
7516
8105
|
|
|
7517
8106
|
// Own fields of GtkSource-4.GtkSource.Tag
|
|
7518
8107
|
|
|
@@ -7917,6 +8506,46 @@ module View {
|
|
|
7917
8506
|
* Width of a tab character expressed in number of spaces.
|
|
7918
8507
|
*/
|
|
7919
8508
|
tab_width?: number | null
|
|
8509
|
+
autoIndent?: boolean | null
|
|
8510
|
+
/**
|
|
8511
|
+
* Draw a specific background pattern on the view.
|
|
8512
|
+
*/
|
|
8513
|
+
backgroundPattern?: BackgroundPatternType | null
|
|
8514
|
+
highlightCurrentLine?: boolean | null
|
|
8515
|
+
indentOnTab?: boolean | null
|
|
8516
|
+
/**
|
|
8517
|
+
* Width of an indentation step expressed in number of spaces.
|
|
8518
|
+
*/
|
|
8519
|
+
indentWidth?: number | null
|
|
8520
|
+
insertSpacesInsteadOfTabs?: boolean | null
|
|
8521
|
+
/**
|
|
8522
|
+
* Position of the right margin.
|
|
8523
|
+
*/
|
|
8524
|
+
rightMarginPosition?: number | null
|
|
8525
|
+
/**
|
|
8526
|
+
* Whether to display line mark pixbufs
|
|
8527
|
+
*/
|
|
8528
|
+
showLineMarks?: boolean | null
|
|
8529
|
+
/**
|
|
8530
|
+
* Whether to display line numbers
|
|
8531
|
+
*/
|
|
8532
|
+
showLineNumbers?: boolean | null
|
|
8533
|
+
/**
|
|
8534
|
+
* Whether to display the right margin.
|
|
8535
|
+
*/
|
|
8536
|
+
showRightMargin?: boolean | null
|
|
8537
|
+
/**
|
|
8538
|
+
* Whether smart Backspace should be used.
|
|
8539
|
+
*/
|
|
8540
|
+
smartBackspace?: boolean | null
|
|
8541
|
+
/**
|
|
8542
|
+
* Set the behavior of the HOME and END keys.
|
|
8543
|
+
*/
|
|
8544
|
+
smartHomeEnd?: SmartHomeEndType | null
|
|
8545
|
+
/**
|
|
8546
|
+
* Width of a tab character expressed in number of spaces.
|
|
8547
|
+
*/
|
|
8548
|
+
tabWidth?: number | null
|
|
7920
8549
|
}
|
|
7921
8550
|
|
|
7922
8551
|
}
|
|
@@ -7926,53 +8555,97 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
7926
8555
|
// Own properties of GtkSource-4.GtkSource.View
|
|
7927
8556
|
|
|
7928
8557
|
auto_indent: boolean
|
|
8558
|
+
autoIndent: boolean
|
|
7929
8559
|
/**
|
|
7930
8560
|
* Draw a specific background pattern on the view.
|
|
7931
8561
|
*/
|
|
7932
8562
|
background_pattern: BackgroundPatternType
|
|
8563
|
+
/**
|
|
8564
|
+
* Draw a specific background pattern on the view.
|
|
8565
|
+
*/
|
|
8566
|
+
backgroundPattern: BackgroundPatternType
|
|
7933
8567
|
/**
|
|
7934
8568
|
* The completion object associated with the view
|
|
7935
8569
|
*/
|
|
7936
8570
|
readonly completion: Completion
|
|
7937
8571
|
highlight_current_line: boolean
|
|
8572
|
+
highlightCurrentLine: boolean
|
|
7938
8573
|
indent_on_tab: boolean
|
|
8574
|
+
indentOnTab: boolean
|
|
7939
8575
|
/**
|
|
7940
8576
|
* Width of an indentation step expressed in number of spaces.
|
|
7941
8577
|
*/
|
|
7942
8578
|
indent_width: number
|
|
8579
|
+
/**
|
|
8580
|
+
* Width of an indentation step expressed in number of spaces.
|
|
8581
|
+
*/
|
|
8582
|
+
indentWidth: number
|
|
7943
8583
|
insert_spaces_instead_of_tabs: boolean
|
|
8584
|
+
insertSpacesInsteadOfTabs: boolean
|
|
7944
8585
|
/**
|
|
7945
8586
|
* Position of the right margin.
|
|
7946
8587
|
*/
|
|
7947
8588
|
right_margin_position: number
|
|
8589
|
+
/**
|
|
8590
|
+
* Position of the right margin.
|
|
8591
|
+
*/
|
|
8592
|
+
rightMarginPosition: number
|
|
7948
8593
|
/**
|
|
7949
8594
|
* Whether to display line mark pixbufs
|
|
7950
8595
|
*/
|
|
7951
8596
|
show_line_marks: boolean
|
|
8597
|
+
/**
|
|
8598
|
+
* Whether to display line mark pixbufs
|
|
8599
|
+
*/
|
|
8600
|
+
showLineMarks: boolean
|
|
7952
8601
|
/**
|
|
7953
8602
|
* Whether to display line numbers
|
|
7954
8603
|
*/
|
|
7955
8604
|
show_line_numbers: boolean
|
|
8605
|
+
/**
|
|
8606
|
+
* Whether to display line numbers
|
|
8607
|
+
*/
|
|
8608
|
+
showLineNumbers: boolean
|
|
7956
8609
|
/**
|
|
7957
8610
|
* Whether to display the right margin.
|
|
7958
8611
|
*/
|
|
7959
8612
|
show_right_margin: boolean
|
|
8613
|
+
/**
|
|
8614
|
+
* Whether to display the right margin.
|
|
8615
|
+
*/
|
|
8616
|
+
showRightMargin: boolean
|
|
7960
8617
|
/**
|
|
7961
8618
|
* Whether smart Backspace should be used.
|
|
7962
8619
|
*/
|
|
7963
8620
|
smart_backspace: boolean
|
|
8621
|
+
/**
|
|
8622
|
+
* Whether smart Backspace should be used.
|
|
8623
|
+
*/
|
|
8624
|
+
smartBackspace: boolean
|
|
7964
8625
|
/**
|
|
7965
8626
|
* Set the behavior of the HOME and END keys.
|
|
7966
8627
|
*/
|
|
7967
8628
|
smart_home_end: SmartHomeEndType
|
|
8629
|
+
/**
|
|
8630
|
+
* Set the behavior of the HOME and END keys.
|
|
8631
|
+
*/
|
|
8632
|
+
smartHomeEnd: SmartHomeEndType
|
|
7968
8633
|
/**
|
|
7969
8634
|
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
7970
8635
|
*/
|
|
7971
8636
|
readonly space_drawer: SpaceDrawer
|
|
8637
|
+
/**
|
|
8638
|
+
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
8639
|
+
*/
|
|
8640
|
+
readonly spaceDrawer: SpaceDrawer
|
|
7972
8641
|
/**
|
|
7973
8642
|
* Width of a tab character expressed in number of spaces.
|
|
7974
8643
|
*/
|
|
7975
8644
|
tab_width: number
|
|
8645
|
+
/**
|
|
8646
|
+
* Width of a tab character expressed in number of spaces.
|
|
8647
|
+
*/
|
|
8648
|
+
tabWidth: number
|
|
7976
8649
|
|
|
7977
8650
|
// Conflicting properties
|
|
7978
8651
|
|
|
@@ -8041,7 +8714,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8041
8714
|
* @param priority place where priority of the category will be stored.
|
|
8042
8715
|
* @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
|
|
8043
8716
|
*/
|
|
8044
|
-
get_mark_attributes(category: string
|
|
8717
|
+
get_mark_attributes(category: string, priority: number): MarkAttributes
|
|
8045
8718
|
/**
|
|
8046
8719
|
* Gets the position of the right margin in the given `view`.
|
|
8047
8720
|
* @returns the position of the right margin.
|
|
@@ -8170,7 +8843,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8170
8843
|
* @param attributes mark attributes.
|
|
8171
8844
|
* @param priority priority of the category.
|
|
8172
8845
|
*/
|
|
8173
|
-
set_mark_attributes(category: string
|
|
8846
|
+
set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
|
|
8174
8847
|
/**
|
|
8175
8848
|
* Sets the position of the right margin in the given `view`.
|
|
8176
8849
|
* @param pos the width in characters where to position the right margin.
|
|
@@ -8255,7 +8928,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8255
8928
|
* @param child the child widget
|
|
8256
8929
|
* @param child_property the name of a child property installed on the class of `container`
|
|
8257
8930
|
*/
|
|
8258
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
8931
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
8259
8932
|
|
|
8260
8933
|
// Overloads of child_notify
|
|
8261
8934
|
|
|
@@ -8269,7 +8942,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8269
8942
|
* Also see gtk_container_child_notify().
|
|
8270
8943
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8271
8944
|
*/
|
|
8272
|
-
child_notify(child_property: string
|
|
8945
|
+
child_notify(child_property: string): void
|
|
8273
8946
|
/**
|
|
8274
8947
|
* Emits a #GtkWidget::child-notify signal for the
|
|
8275
8948
|
* [child property][child-properties] `child_property`
|
|
@@ -8280,7 +8953,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8280
8953
|
* Also see gtk_container_child_notify().
|
|
8281
8954
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8282
8955
|
*/
|
|
8283
|
-
child_notify(child_property: string
|
|
8956
|
+
child_notify(child_property: string): void
|
|
8284
8957
|
|
|
8285
8958
|
// Own virtual methods of GtkSource-4.GtkSource.View
|
|
8286
8959
|
|
|
@@ -8888,12 +9561,12 @@ interface Encoding {
|
|
|
8888
9561
|
* "ISO-8859-1".
|
|
8889
9562
|
* @returns the character set of the #GtkSourceEncoding.
|
|
8890
9563
|
*/
|
|
8891
|
-
get_charset(): string
|
|
9564
|
+
get_charset(): string
|
|
8892
9565
|
/**
|
|
8893
9566
|
* Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
|
|
8894
9567
|
* @returns the name of the #GtkSourceEncoding.
|
|
8895
9568
|
*/
|
|
8896
|
-
get_name(): string
|
|
9569
|
+
get_name(): string
|
|
8897
9570
|
to_string(): string | null
|
|
8898
9571
|
}
|
|
8899
9572
|
|
|
@@ -8931,7 +9604,7 @@ class Encoding {
|
|
|
8931
9604
|
* @param charset a character set.
|
|
8932
9605
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
8933
9606
|
*/
|
|
8934
|
-
static get_from_charset(charset: string
|
|
9607
|
+
static get_from_charset(charset: string): Encoding | null
|
|
8935
9608
|
static get_utf8(): Encoding
|
|
8936
9609
|
}
|
|
8937
9610
|
|