@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.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
|
|
@@ -932,6 +932,12 @@ export module StyleSchemeChooser {
|
|
|
932
932
|
* the current selection programmatically.
|
|
933
933
|
*/
|
|
934
934
|
style_scheme?: StyleScheme | null
|
|
935
|
+
/**
|
|
936
|
+
* The :style-scheme property contains the currently selected style
|
|
937
|
+
* scheme. The property can be set to change
|
|
938
|
+
* the current selection programmatically.
|
|
939
|
+
*/
|
|
940
|
+
styleScheme?: StyleScheme | null
|
|
935
941
|
}
|
|
936
942
|
|
|
937
943
|
}
|
|
@@ -946,6 +952,12 @@ export interface StyleSchemeChooser {
|
|
|
946
952
|
* the current selection programmatically.
|
|
947
953
|
*/
|
|
948
954
|
style_scheme: StyleScheme
|
|
955
|
+
/**
|
|
956
|
+
* The :style-scheme property contains the currently selected style
|
|
957
|
+
* scheme. The property can be set to change
|
|
958
|
+
* the current selection programmatically.
|
|
959
|
+
*/
|
|
960
|
+
styleScheme: StyleScheme
|
|
949
961
|
|
|
950
962
|
// Owm methods of GtkSource-4.GtkSource.StyleSchemeChooser
|
|
951
963
|
|
|
@@ -1223,6 +1235,31 @@ export module Buffer {
|
|
|
1223
1235
|
*/
|
|
1224
1236
|
style_scheme?: StyleScheme | null
|
|
1225
1237
|
undo_manager?: UndoManager | null
|
|
1238
|
+
/**
|
|
1239
|
+
* Whether to highlight matching brackets in the buffer.
|
|
1240
|
+
*/
|
|
1241
|
+
highlightMatchingBrackets?: boolean | null
|
|
1242
|
+
/**
|
|
1243
|
+
* Whether to highlight syntax in the buffer.
|
|
1244
|
+
*/
|
|
1245
|
+
highlightSyntax?: boolean | null
|
|
1246
|
+
/**
|
|
1247
|
+
* Whether the buffer has an implicit trailing newline. See
|
|
1248
|
+
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1249
|
+
*/
|
|
1250
|
+
implicitTrailingNewline?: boolean | null
|
|
1251
|
+
/**
|
|
1252
|
+
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1253
|
+
* will only affect the default undo manager.
|
|
1254
|
+
*/
|
|
1255
|
+
maxUndoLevels?: number | null
|
|
1256
|
+
/**
|
|
1257
|
+
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1258
|
+
* foreground, background, cursor color, current line color, and matching
|
|
1259
|
+
* brackets style.
|
|
1260
|
+
*/
|
|
1261
|
+
styleScheme?: StyleScheme | null
|
|
1262
|
+
undoManager?: UndoManager | null
|
|
1226
1263
|
}
|
|
1227
1264
|
|
|
1228
1265
|
}
|
|
@@ -1232,33 +1269,60 @@ export interface Buffer {
|
|
|
1232
1269
|
// Own properties of GtkSource-4.GtkSource.Buffer
|
|
1233
1270
|
|
|
1234
1271
|
readonly can_redo: boolean
|
|
1272
|
+
readonly canRedo: boolean
|
|
1235
1273
|
readonly can_undo: boolean
|
|
1274
|
+
readonly canUndo: boolean
|
|
1236
1275
|
/**
|
|
1237
1276
|
* Whether to highlight matching brackets in the buffer.
|
|
1238
1277
|
*/
|
|
1239
1278
|
highlight_matching_brackets: boolean
|
|
1279
|
+
/**
|
|
1280
|
+
* Whether to highlight matching brackets in the buffer.
|
|
1281
|
+
*/
|
|
1282
|
+
highlightMatchingBrackets: boolean
|
|
1240
1283
|
/**
|
|
1241
1284
|
* Whether to highlight syntax in the buffer.
|
|
1242
1285
|
*/
|
|
1243
1286
|
highlight_syntax: boolean
|
|
1287
|
+
/**
|
|
1288
|
+
* Whether to highlight syntax in the buffer.
|
|
1289
|
+
*/
|
|
1290
|
+
highlightSyntax: boolean
|
|
1244
1291
|
/**
|
|
1245
1292
|
* Whether the buffer has an implicit trailing newline. See
|
|
1246
1293
|
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1247
1294
|
*/
|
|
1248
1295
|
implicit_trailing_newline: boolean
|
|
1296
|
+
/**
|
|
1297
|
+
* Whether the buffer has an implicit trailing newline. See
|
|
1298
|
+
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1299
|
+
*/
|
|
1300
|
+
implicitTrailingNewline: boolean
|
|
1249
1301
|
language: Language
|
|
1250
1302
|
/**
|
|
1251
1303
|
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1252
1304
|
* will only affect the default undo manager.
|
|
1253
1305
|
*/
|
|
1254
1306
|
max_undo_levels: number
|
|
1307
|
+
/**
|
|
1308
|
+
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1309
|
+
* will only affect the default undo manager.
|
|
1310
|
+
*/
|
|
1311
|
+
maxUndoLevels: number
|
|
1255
1312
|
/**
|
|
1256
1313
|
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1257
1314
|
* foreground, background, cursor color, current line color, and matching
|
|
1258
1315
|
* brackets style.
|
|
1259
1316
|
*/
|
|
1260
1317
|
style_scheme: StyleScheme
|
|
1318
|
+
/**
|
|
1319
|
+
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1320
|
+
* foreground, background, cursor color, current line color, and matching
|
|
1321
|
+
* brackets style.
|
|
1322
|
+
*/
|
|
1323
|
+
styleScheme: StyleScheme
|
|
1261
1324
|
undo_manager: UndoManager
|
|
1325
|
+
undoManager: UndoManager
|
|
1262
1326
|
|
|
1263
1327
|
// Own fields of GtkSource-4.GtkSource.Buffer
|
|
1264
1328
|
|
|
@@ -1312,7 +1376,7 @@ export interface Buffer {
|
|
|
1312
1376
|
* @param where location to place the mark.
|
|
1313
1377
|
* @returns a new #GtkSourceMark, owned by the buffer.
|
|
1314
1378
|
*/
|
|
1315
|
-
create_source_mark(name: string | null, category: string
|
|
1379
|
+
create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
|
|
1316
1380
|
/**
|
|
1317
1381
|
* Marks the end of a not undoable action on the buffer. When the
|
|
1318
1382
|
* last not undoable block is closed through the call to this
|
|
@@ -1418,7 +1482,7 @@ export interface Buffer {
|
|
|
1418
1482
|
* @param context_class the context class.
|
|
1419
1483
|
* @returns whether we found a context class toggle before @iter
|
|
1420
1484
|
*/
|
|
1421
|
-
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 ]
|
|
1422
1486
|
/**
|
|
1423
1487
|
* Moves forward to the next toggle (on or off) of the context class. If no
|
|
1424
1488
|
* matching context class toggles are found, returns %FALSE, otherwise %TRUE.
|
|
@@ -1431,7 +1495,7 @@ export interface Buffer {
|
|
|
1431
1495
|
* @param context_class the context class.
|
|
1432
1496
|
* @returns whether we found a context class toggle after @iter
|
|
1433
1497
|
*/
|
|
1434
|
-
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 ]
|
|
1435
1499
|
/**
|
|
1436
1500
|
* Check if the class `context_class` is set on `iter`.
|
|
1437
1501
|
*
|
|
@@ -1440,7 +1504,7 @@ export interface Buffer {
|
|
|
1440
1504
|
* @param context_class class to search for.
|
|
1441
1505
|
* @returns whether @iter has the context class.
|
|
1442
1506
|
*/
|
|
1443
|
-
iter_has_context_class(iter: Gtk.TextIter, context_class: string
|
|
1507
|
+
iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
|
|
1444
1508
|
/**
|
|
1445
1509
|
* Joins the lines of text between the specified iterators.
|
|
1446
1510
|
* @param start a #GtkTextIter.
|
|
@@ -1807,6 +1871,48 @@ export module Completion {
|
|
|
1807
1871
|
* The #GtkSourceView bound to the completion object.
|
|
1808
1872
|
*/
|
|
1809
1873
|
view?: View | null
|
|
1874
|
+
/**
|
|
1875
|
+
* Determines the popup delay (in milliseconds) at which the completion
|
|
1876
|
+
* will be shown for interactive completion.
|
|
1877
|
+
*/
|
|
1878
|
+
autoCompleteDelay?: number | null
|
|
1879
|
+
/**
|
|
1880
|
+
* The scroll page size of the proposals in the completion window. In
|
|
1881
|
+
* other words, when <keycap>PageDown</keycap> or
|
|
1882
|
+
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1883
|
+
* proposal becomes the one which is located one page size backward or
|
|
1884
|
+
* forward.
|
|
1885
|
+
*
|
|
1886
|
+
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1887
|
+
*/
|
|
1888
|
+
proposalPageSize?: number | null
|
|
1889
|
+
/**
|
|
1890
|
+
* The scroll page size of the provider pages in the completion window.
|
|
1891
|
+
*
|
|
1892
|
+
* See the #GtkSourceCompletion::move-page signal.
|
|
1893
|
+
*/
|
|
1894
|
+
providerPageSize?: number | null
|
|
1895
|
+
/**
|
|
1896
|
+
* Determines whether the visibility of the info window should be
|
|
1897
|
+
* saved when the completion is hidden, and restored when the completion
|
|
1898
|
+
* is shown again.
|
|
1899
|
+
*/
|
|
1900
|
+
rememberInfoVisibility?: boolean | null
|
|
1901
|
+
/**
|
|
1902
|
+
* Determines whether the first proposal should be selected when the
|
|
1903
|
+
* completion is first shown.
|
|
1904
|
+
*/
|
|
1905
|
+
selectOnShow?: boolean | null
|
|
1906
|
+
/**
|
|
1907
|
+
* Determines whether provider headers should be shown in the proposal
|
|
1908
|
+
* list. It can be useful to disable when there is only one provider.
|
|
1909
|
+
*/
|
|
1910
|
+
showHeaders?: boolean | null
|
|
1911
|
+
/**
|
|
1912
|
+
* Determines whether provider and proposal icons should be shown in
|
|
1913
|
+
* the completion popup.
|
|
1914
|
+
*/
|
|
1915
|
+
showIcons?: boolean | null
|
|
1810
1916
|
}
|
|
1811
1917
|
|
|
1812
1918
|
}
|
|
@@ -1826,6 +1932,11 @@ export interface Completion extends Gtk.Buildable {
|
|
|
1826
1932
|
* will be shown for interactive completion.
|
|
1827
1933
|
*/
|
|
1828
1934
|
auto_complete_delay: number
|
|
1935
|
+
/**
|
|
1936
|
+
* Determines the popup delay (in milliseconds) at which the completion
|
|
1937
|
+
* will be shown for interactive completion.
|
|
1938
|
+
*/
|
|
1939
|
+
autoCompleteDelay: number
|
|
1829
1940
|
/**
|
|
1830
1941
|
* The scroll page size of the proposals in the completion window. In
|
|
1831
1942
|
* other words, when <keycap>PageDown</keycap> or
|
|
@@ -1836,33 +1947,70 @@ export interface Completion extends Gtk.Buildable {
|
|
|
1836
1947
|
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1837
1948
|
*/
|
|
1838
1949
|
proposal_page_size: number
|
|
1950
|
+
/**
|
|
1951
|
+
* The scroll page size of the proposals in the completion window. In
|
|
1952
|
+
* other words, when <keycap>PageDown</keycap> or
|
|
1953
|
+
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1954
|
+
* proposal becomes the one which is located one page size backward or
|
|
1955
|
+
* forward.
|
|
1956
|
+
*
|
|
1957
|
+
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1958
|
+
*/
|
|
1959
|
+
proposalPageSize: number
|
|
1839
1960
|
/**
|
|
1840
1961
|
* The scroll page size of the provider pages in the completion window.
|
|
1841
1962
|
*
|
|
1842
1963
|
* See the #GtkSourceCompletion::move-page signal.
|
|
1843
1964
|
*/
|
|
1844
1965
|
provider_page_size: number
|
|
1966
|
+
/**
|
|
1967
|
+
* The scroll page size of the provider pages in the completion window.
|
|
1968
|
+
*
|
|
1969
|
+
* See the #GtkSourceCompletion::move-page signal.
|
|
1970
|
+
*/
|
|
1971
|
+
providerPageSize: number
|
|
1845
1972
|
/**
|
|
1846
1973
|
* Determines whether the visibility of the info window should be
|
|
1847
1974
|
* saved when the completion is hidden, and restored when the completion
|
|
1848
1975
|
* is shown again.
|
|
1849
1976
|
*/
|
|
1850
1977
|
remember_info_visibility: boolean
|
|
1978
|
+
/**
|
|
1979
|
+
* Determines whether the visibility of the info window should be
|
|
1980
|
+
* saved when the completion is hidden, and restored when the completion
|
|
1981
|
+
* is shown again.
|
|
1982
|
+
*/
|
|
1983
|
+
rememberInfoVisibility: boolean
|
|
1851
1984
|
/**
|
|
1852
1985
|
* Determines whether the first proposal should be selected when the
|
|
1853
1986
|
* completion is first shown.
|
|
1854
1987
|
*/
|
|
1855
1988
|
select_on_show: boolean
|
|
1989
|
+
/**
|
|
1990
|
+
* Determines whether the first proposal should be selected when the
|
|
1991
|
+
* completion is first shown.
|
|
1992
|
+
*/
|
|
1993
|
+
selectOnShow: boolean
|
|
1856
1994
|
/**
|
|
1857
1995
|
* Determines whether provider headers should be shown in the proposal
|
|
1858
1996
|
* list. It can be useful to disable when there is only one provider.
|
|
1859
1997
|
*/
|
|
1860
1998
|
show_headers: boolean
|
|
1999
|
+
/**
|
|
2000
|
+
* Determines whether provider headers should be shown in the proposal
|
|
2001
|
+
* list. It can be useful to disable when there is only one provider.
|
|
2002
|
+
*/
|
|
2003
|
+
showHeaders: boolean
|
|
1861
2004
|
/**
|
|
1862
2005
|
* Determines whether provider and proposal icons should be shown in
|
|
1863
2006
|
* the completion popup.
|
|
1864
2007
|
*/
|
|
1865
2008
|
show_icons: boolean
|
|
2009
|
+
/**
|
|
2010
|
+
* Determines whether provider and proposal icons should be shown in
|
|
2011
|
+
* the completion popup.
|
|
2012
|
+
*/
|
|
2013
|
+
showIcons: boolean
|
|
1866
2014
|
/**
|
|
1867
2015
|
* The #GtkSourceView bound to the completion object.
|
|
1868
2016
|
*/
|
|
@@ -2220,7 +2368,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2220
2368
|
* @param child the child widget
|
|
2221
2369
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2222
2370
|
*/
|
|
2223
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2371
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2224
2372
|
|
|
2225
2373
|
// Overloads of child_notify
|
|
2226
2374
|
|
|
@@ -2234,7 +2382,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2234
2382
|
* Also see gtk_container_child_notify().
|
|
2235
2383
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2236
2384
|
*/
|
|
2237
|
-
child_notify(child_property: string
|
|
2385
|
+
child_notify(child_property: string): void
|
|
2238
2386
|
/**
|
|
2239
2387
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2240
2388
|
* [child property][child-properties] `child_property`
|
|
@@ -2245,7 +2393,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2245
2393
|
* Also see gtk_container_child_notify().
|
|
2246
2394
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2247
2395
|
*/
|
|
2248
|
-
child_notify(child_property: string
|
|
2396
|
+
child_notify(child_property: string): void
|
|
2249
2397
|
|
|
2250
2398
|
// Class property signals of GtkSource-4.GtkSource.CompletionInfo
|
|
2251
2399
|
|
|
@@ -2560,6 +2708,10 @@ export module CompletionItem {
|
|
|
2560
2708
|
* Proposal text.
|
|
2561
2709
|
*/
|
|
2562
2710
|
text?: string | null
|
|
2711
|
+
/**
|
|
2712
|
+
* The icon name for the icon to be shown for this proposal.
|
|
2713
|
+
*/
|
|
2714
|
+
iconName?: string | null
|
|
2563
2715
|
}
|
|
2564
2716
|
|
|
2565
2717
|
}
|
|
@@ -2580,6 +2732,10 @@ export interface CompletionItem extends CompletionProposal {
|
|
|
2580
2732
|
* The icon name for the icon to be shown for this proposal.
|
|
2581
2733
|
*/
|
|
2582
2734
|
icon_name: string | null
|
|
2735
|
+
/**
|
|
2736
|
+
* The icon name for the icon to be shown for this proposal.
|
|
2737
|
+
*/
|
|
2738
|
+
iconName: string | null
|
|
2583
2739
|
/**
|
|
2584
2740
|
* Optional extra information to be shown for this proposal.
|
|
2585
2741
|
*/
|
|
@@ -2687,6 +2843,10 @@ export module CompletionWords {
|
|
|
2687
2843
|
priority?: number | null
|
|
2688
2844
|
proposals_batch_size?: number | null
|
|
2689
2845
|
scan_batch_size?: number | null
|
|
2846
|
+
interactiveDelay?: number | null
|
|
2847
|
+
minimumWordSize?: number | null
|
|
2848
|
+
proposalsBatchSize?: number | null
|
|
2849
|
+
scanBatchSize?: number | null
|
|
2690
2850
|
}
|
|
2691
2851
|
|
|
2692
2852
|
}
|
|
@@ -2701,11 +2861,15 @@ export interface CompletionWords extends CompletionProvider {
|
|
|
2701
2861
|
activation: CompletionActivation
|
|
2702
2862
|
icon: GdkPixbuf.Pixbuf
|
|
2703
2863
|
interactive_delay: number
|
|
2864
|
+
interactiveDelay: number
|
|
2704
2865
|
minimum_word_size: number
|
|
2866
|
+
minimumWordSize: number
|
|
2705
2867
|
name: string | null
|
|
2706
2868
|
priority: number
|
|
2707
2869
|
proposals_batch_size: number
|
|
2870
|
+
proposalsBatchSize: number
|
|
2708
2871
|
scan_batch_size: number
|
|
2872
|
+
scanBatchSize: number
|
|
2709
2873
|
|
|
2710
2874
|
// Own fields of GtkSource-4.GtkSource.CompletionWords
|
|
2711
2875
|
|
|
@@ -2796,6 +2960,10 @@ export interface File {
|
|
|
2796
2960
|
* The compression type.
|
|
2797
2961
|
*/
|
|
2798
2962
|
readonly compression_type: CompressionType
|
|
2963
|
+
/**
|
|
2964
|
+
* The compression type.
|
|
2965
|
+
*/
|
|
2966
|
+
readonly compressionType: CompressionType
|
|
2799
2967
|
/**
|
|
2800
2968
|
* The character encoding, initially %NULL. After a successful file
|
|
2801
2969
|
* loading or saving operation, the encoding is non-%NULL.
|
|
@@ -2809,11 +2977,20 @@ export interface File {
|
|
|
2809
2977
|
* The line ending type.
|
|
2810
2978
|
*/
|
|
2811
2979
|
readonly newline_type: NewlineType
|
|
2980
|
+
/**
|
|
2981
|
+
* The line ending type.
|
|
2982
|
+
*/
|
|
2983
|
+
readonly newlineType: NewlineType
|
|
2812
2984
|
/**
|
|
2813
2985
|
* Whether the file is read-only or not. The value of this property is
|
|
2814
2986
|
* not updated automatically (there is no file monitors).
|
|
2815
2987
|
*/
|
|
2816
2988
|
readonly read_only: boolean
|
|
2989
|
+
/**
|
|
2990
|
+
* Whether the file is read-only or not. The value of this property is
|
|
2991
|
+
* not updated automatically (there is no file monitors).
|
|
2992
|
+
*/
|
|
2993
|
+
readonly readOnly: boolean
|
|
2817
2994
|
|
|
2818
2995
|
// Own fields of GtkSource-4.GtkSource.File
|
|
2819
2996
|
|
|
@@ -2949,6 +3126,11 @@ export module FileLoader {
|
|
|
2949
3126
|
* construction time.
|
|
2950
3127
|
*/
|
|
2951
3128
|
location?: Gio.File | null
|
|
3129
|
+
/**
|
|
3130
|
+
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3131
|
+
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3132
|
+
*/
|
|
3133
|
+
inputStream?: Gio.InputStream | null
|
|
2952
3134
|
}
|
|
2953
3135
|
|
|
2954
3136
|
}
|
|
@@ -2972,6 +3154,11 @@ export interface FileLoader {
|
|
|
2972
3154
|
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
2973
3155
|
*/
|
|
2974
3156
|
readonly input_stream: Gio.InputStream
|
|
3157
|
+
/**
|
|
3158
|
+
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3159
|
+
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3160
|
+
*/
|
|
3161
|
+
readonly inputStream: Gio.InputStream
|
|
2975
3162
|
/**
|
|
2976
3163
|
* The #GFile to load. If the #GtkSourceFileLoader:input-stream is
|
|
2977
3164
|
* %NULL, by default the location is taken from the #GtkSourceFile at
|
|
@@ -3149,6 +3336,14 @@ export module FileSaver {
|
|
|
3149
3336
|
* The newline type.
|
|
3150
3337
|
*/
|
|
3151
3338
|
newline_type?: NewlineType | null
|
|
3339
|
+
/**
|
|
3340
|
+
* The compression type.
|
|
3341
|
+
*/
|
|
3342
|
+
compressionType?: CompressionType | null
|
|
3343
|
+
/**
|
|
3344
|
+
* The newline type.
|
|
3345
|
+
*/
|
|
3346
|
+
newlineType?: NewlineType | null
|
|
3152
3347
|
}
|
|
3153
3348
|
|
|
3154
3349
|
}
|
|
@@ -3166,6 +3361,10 @@ export interface FileSaver {
|
|
|
3166
3361
|
* The compression type.
|
|
3167
3362
|
*/
|
|
3168
3363
|
compression_type: CompressionType
|
|
3364
|
+
/**
|
|
3365
|
+
* The compression type.
|
|
3366
|
+
*/
|
|
3367
|
+
compressionType: CompressionType
|
|
3169
3368
|
/**
|
|
3170
3369
|
* The file's encoding.
|
|
3171
3370
|
*/
|
|
@@ -3188,6 +3387,10 @@ export interface FileSaver {
|
|
|
3188
3387
|
* The newline type.
|
|
3189
3388
|
*/
|
|
3190
3389
|
newline_type: NewlineType
|
|
3390
|
+
/**
|
|
3391
|
+
* The newline type.
|
|
3392
|
+
*/
|
|
3393
|
+
newlineType: NewlineType
|
|
3191
3394
|
|
|
3192
3395
|
// Own fields of GtkSource-4.GtkSource.FileSaver
|
|
3193
3396
|
|
|
@@ -3356,6 +3559,10 @@ export module Gutter {
|
|
|
3356
3559
|
* The text window type on which the window is placed.
|
|
3357
3560
|
*/
|
|
3358
3561
|
window_type?: Gtk.TextWindowType | null
|
|
3562
|
+
/**
|
|
3563
|
+
* The text window type on which the window is placed.
|
|
3564
|
+
*/
|
|
3565
|
+
windowType?: Gtk.TextWindowType | null
|
|
3359
3566
|
}
|
|
3360
3567
|
|
|
3361
3568
|
}
|
|
@@ -3372,6 +3579,10 @@ export interface Gutter {
|
|
|
3372
3579
|
* The text window type on which the window is placed.
|
|
3373
3580
|
*/
|
|
3374
3581
|
readonly window_type: Gtk.TextWindowType
|
|
3582
|
+
/**
|
|
3583
|
+
* The text window type on which the window is placed.
|
|
3584
|
+
*/
|
|
3585
|
+
readonly windowType: Gtk.TextWindowType
|
|
3375
3586
|
|
|
3376
3587
|
// Own fields of GtkSource-4.GtkSource.Gutter
|
|
3377
3588
|
|
|
@@ -3522,6 +3733,15 @@ export module GutterRenderer {
|
|
|
3522
3733
|
* The top and bottom padding of the renderer.
|
|
3523
3734
|
*/
|
|
3524
3735
|
ypad?: number | null
|
|
3736
|
+
/**
|
|
3737
|
+
* The alignment mode of the renderer. This can be used to indicate
|
|
3738
|
+
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
3739
|
+
* the alignment should work on either the full cell, the first line
|
|
3740
|
+
* or the last line.
|
|
3741
|
+
*/
|
|
3742
|
+
alignmentMode?: GutterRendererAlignmentMode | null
|
|
3743
|
+
backgroundRgba?: Gdk.RGBA | null
|
|
3744
|
+
backgroundSet?: boolean | null
|
|
3525
3745
|
}
|
|
3526
3746
|
|
|
3527
3747
|
}
|
|
@@ -3537,8 +3757,17 @@ export interface GutterRenderer {
|
|
|
3537
3757
|
* or the last line.
|
|
3538
3758
|
*/
|
|
3539
3759
|
alignment_mode: GutterRendererAlignmentMode
|
|
3760
|
+
/**
|
|
3761
|
+
* The alignment mode of the renderer. This can be used to indicate
|
|
3762
|
+
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
3763
|
+
* the alignment should work on either the full cell, the first line
|
|
3764
|
+
* or the last line.
|
|
3765
|
+
*/
|
|
3766
|
+
alignmentMode: GutterRendererAlignmentMode
|
|
3540
3767
|
background_rgba: Gdk.RGBA
|
|
3768
|
+
backgroundRgba: Gdk.RGBA
|
|
3541
3769
|
background_set: boolean
|
|
3770
|
+
backgroundSet: boolean
|
|
3542
3771
|
size: number
|
|
3543
3772
|
/**
|
|
3544
3773
|
* The view on which the renderer is placed.
|
|
@@ -3553,6 +3782,11 @@ export interface GutterRenderer {
|
|
|
3553
3782
|
* or right).
|
|
3554
3783
|
*/
|
|
3555
3784
|
readonly window_type: Gtk.TextWindowType
|
|
3785
|
+
/**
|
|
3786
|
+
* The window type of the view on which the renderer is placed (left,
|
|
3787
|
+
* or right).
|
|
3788
|
+
*/
|
|
3789
|
+
readonly windowType: Gtk.TextWindowType
|
|
3556
3790
|
/**
|
|
3557
3791
|
* The horizontal alignment of the renderer. Set to 0 for a left
|
|
3558
3792
|
* alignment. 1 for a right alignment. And 0.5 for centering the cells.
|
|
@@ -3939,6 +4173,7 @@ export module GutterRendererPixbuf {
|
|
|
3939
4173
|
gicon?: Gio.Icon | null
|
|
3940
4174
|
icon_name?: string | null
|
|
3941
4175
|
pixbuf?: GdkPixbuf.Pixbuf | null
|
|
4176
|
+
iconName?: string | null
|
|
3942
4177
|
}
|
|
3943
4178
|
|
|
3944
4179
|
}
|
|
@@ -3949,6 +4184,7 @@ export interface GutterRendererPixbuf {
|
|
|
3949
4184
|
|
|
3950
4185
|
gicon: Gio.Icon
|
|
3951
4186
|
icon_name: string | null
|
|
4187
|
+
iconName: string | null
|
|
3952
4188
|
pixbuf: GdkPixbuf.Pixbuf
|
|
3953
4189
|
|
|
3954
4190
|
// Owm methods of GtkSource-4.GtkSource.GutterRendererPixbuf
|
|
@@ -3958,7 +4194,7 @@ export interface GutterRendererPixbuf {
|
|
|
3958
4194
|
* @returns a #GIcon
|
|
3959
4195
|
*/
|
|
3960
4196
|
get_gicon(): Gio.Icon
|
|
3961
|
-
get_icon_name(): string
|
|
4197
|
+
get_icon_name(): string
|
|
3962
4198
|
/**
|
|
3963
4199
|
* Get the pixbuf of the renderer.
|
|
3964
4200
|
* @returns a #GdkPixbuf
|
|
@@ -4071,15 +4307,15 @@ export interface GutterRendererText {
|
|
|
4071
4307
|
* #GtkSourceGutterRendererText.
|
|
4072
4308
|
* @param text the text to measure.
|
|
4073
4309
|
*/
|
|
4074
|
-
measure(text: string
|
|
4310
|
+
measure(text: string): [ /* width */ number, /* height */ number ]
|
|
4075
4311
|
/**
|
|
4076
4312
|
* Measures the pango markup provided using the pango layout used by the
|
|
4077
4313
|
* #GtkSourceGutterRendererText.
|
|
4078
4314
|
* @param markup the pango markup to measure.
|
|
4079
4315
|
*/
|
|
4080
|
-
measure_markup(markup: string
|
|
4081
|
-
set_markup(markup: string
|
|
4082
|
-
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
|
|
4083
4319
|
|
|
4084
4320
|
// Class property signals of GtkSource-4.GtkSource.GutterRendererText
|
|
4085
4321
|
|
|
@@ -4196,8 +4432,8 @@ export interface Language {
|
|
|
4196
4432
|
* or modified.
|
|
4197
4433
|
* @returns the ID of @language.
|
|
4198
4434
|
*/
|
|
4199
|
-
get_id(): string
|
|
4200
|
-
get_metadata(name: string
|
|
4435
|
+
get_id(): string
|
|
4436
|
+
get_metadata(name: string): string | null
|
|
4201
4437
|
/**
|
|
4202
4438
|
* Returns the mime types associated to this language. This is just
|
|
4203
4439
|
* an utility wrapper around gtk_source_language_get_metadata() to
|
|
@@ -4212,7 +4448,7 @@ export interface Language {
|
|
|
4212
4448
|
* or modified.
|
|
4213
4449
|
* @returns the name of @language.
|
|
4214
4450
|
*/
|
|
4215
|
-
get_name(): string
|
|
4451
|
+
get_name(): string
|
|
4216
4452
|
/**
|
|
4217
4453
|
* Returns the localized section of the language.
|
|
4218
4454
|
* Each language belong to a section (ex. HTML belogs to the
|
|
@@ -4221,14 +4457,14 @@ export interface Language {
|
|
|
4221
4457
|
* or modified.
|
|
4222
4458
|
* @returns the section of @language.
|
|
4223
4459
|
*/
|
|
4224
|
-
get_section(): string
|
|
4460
|
+
get_section(): string
|
|
4225
4461
|
/**
|
|
4226
4462
|
* Returns the ID of the style to use if the specified `style_id`
|
|
4227
4463
|
* is not present in the current style scheme.
|
|
4228
4464
|
* @param style_id a style ID.
|
|
4229
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.
|
|
4230
4466
|
*/
|
|
4231
|
-
get_style_fallback(style_id: string
|
|
4467
|
+
get_style_fallback(style_id: string): string | null
|
|
4232
4468
|
/**
|
|
4233
4469
|
* Returns the ids of the styles defined by this `language`.
|
|
4234
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().
|
|
@@ -4239,7 +4475,7 @@ export interface Language {
|
|
|
4239
4475
|
* @param style_id a style ID.
|
|
4240
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.
|
|
4241
4477
|
*/
|
|
4242
|
-
get_style_name(style_id: string
|
|
4478
|
+
get_style_name(style_id: string): string | null
|
|
4243
4479
|
|
|
4244
4480
|
// Class property signals of GtkSource-4.GtkSource.Language
|
|
4245
4481
|
|
|
@@ -4283,6 +4519,7 @@ export module LanguageManager {
|
|
|
4283
4519
|
// Own constructor properties of GtkSource-4.GtkSource.LanguageManager
|
|
4284
4520
|
|
|
4285
4521
|
search_path?: string[] | null
|
|
4522
|
+
searchPath?: string[] | null
|
|
4286
4523
|
}
|
|
4287
4524
|
|
|
4288
4525
|
}
|
|
@@ -4292,7 +4529,9 @@ export interface LanguageManager {
|
|
|
4292
4529
|
// Own properties of GtkSource-4.GtkSource.LanguageManager
|
|
4293
4530
|
|
|
4294
4531
|
readonly language_ids: string[]
|
|
4532
|
+
readonly languageIds: string[]
|
|
4295
4533
|
search_path: string[]
|
|
4534
|
+
searchPath: string[]
|
|
4296
4535
|
|
|
4297
4536
|
// Own fields of GtkSource-4.GtkSource.LanguageManager
|
|
4298
4537
|
|
|
@@ -4307,7 +4546,7 @@ export interface LanguageManager {
|
|
|
4307
4546
|
* @param id a language id.
|
|
4308
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.
|
|
4309
4548
|
*/
|
|
4310
|
-
get_language(id: string
|
|
4549
|
+
get_language(id: string): Language | null
|
|
4311
4550
|
/**
|
|
4312
4551
|
* Returns the ids of the available languages.
|
|
4313
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.
|
|
@@ -4431,6 +4670,7 @@ export module Map {
|
|
|
4431
4670
|
|
|
4432
4671
|
font_desc?: Pango.FontDescription | null
|
|
4433
4672
|
view?: View | null
|
|
4673
|
+
fontDesc?: Pango.FontDescription | null
|
|
4434
4674
|
}
|
|
4435
4675
|
|
|
4436
4676
|
}
|
|
@@ -4440,6 +4680,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4440
4680
|
// Own properties of GtkSource-4.GtkSource.Map
|
|
4441
4681
|
|
|
4442
4682
|
font_desc: Pango.FontDescription
|
|
4683
|
+
fontDesc: Pango.FontDescription
|
|
4443
4684
|
view: View
|
|
4444
4685
|
|
|
4445
4686
|
// Conflicting properties
|
|
@@ -4500,7 +4741,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4500
4741
|
* @param child the child widget
|
|
4501
4742
|
* @param child_property the name of a child property installed on the class of `container`
|
|
4502
4743
|
*/
|
|
4503
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
4744
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
4504
4745
|
|
|
4505
4746
|
// Overloads of child_notify
|
|
4506
4747
|
|
|
@@ -4514,7 +4755,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4514
4755
|
* Also see gtk_container_child_notify().
|
|
4515
4756
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4516
4757
|
*/
|
|
4517
|
-
child_notify(child_property: string
|
|
4758
|
+
child_notify(child_property: string): void
|
|
4518
4759
|
/**
|
|
4519
4760
|
* Emits a #GtkWidget::child-notify signal for the
|
|
4520
4761
|
* [child property][child-properties] `child_property`
|
|
@@ -4525,7 +4766,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4525
4766
|
* Also see gtk_container_child_notify().
|
|
4526
4767
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4527
4768
|
*/
|
|
4528
|
-
child_notify(child_property: string
|
|
4769
|
+
child_notify(child_property: string): void
|
|
4529
4770
|
|
|
4530
4771
|
// Class property signals of GtkSource-4.GtkSource.Map
|
|
4531
4772
|
|
|
@@ -4854,7 +5095,7 @@ export interface Mark {
|
|
|
4854
5095
|
* Returns the mark category.
|
|
4855
5096
|
* @returns the category of the #GtkSourceMark.
|
|
4856
5097
|
*/
|
|
4857
|
-
get_category(): string
|
|
5098
|
+
get_category(): string
|
|
4858
5099
|
/**
|
|
4859
5100
|
* Returns the next #GtkSourceMark in the buffer or %NULL if the mark
|
|
4860
5101
|
* was not added to a buffer. If there is no next mark, %NULL will be returned.
|
|
@@ -4912,7 +5153,7 @@ export class Mark extends Gtk.TextMark {
|
|
|
4912
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).
|
|
4913
5154
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
4914
5155
|
*/
|
|
4915
|
-
constructor(name: string | null, category: string
|
|
5156
|
+
constructor(name: string | null, category: string)
|
|
4916
5157
|
/**
|
|
4917
5158
|
* Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
|
|
4918
5159
|
* If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
|
|
@@ -4924,7 +5165,7 @@ export class Mark extends Gtk.TextMark {
|
|
|
4924
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).
|
|
4925
5166
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
4926
5167
|
*/
|
|
4927
|
-
static new(name: string | null, category: string
|
|
5168
|
+
static new(name: string | null, category: string): Mark
|
|
4928
5169
|
|
|
4929
5170
|
// Overloads of new
|
|
4930
5171
|
|
|
@@ -4988,6 +5229,10 @@ export module MarkAttributes {
|
|
|
4988
5229
|
* A #GdkPixbuf that may be a base of a rendered icon.
|
|
4989
5230
|
*/
|
|
4990
5231
|
pixbuf?: GdkPixbuf.Pixbuf | null
|
|
5232
|
+
/**
|
|
5233
|
+
* An icon name that may be a base of a rendered icon.
|
|
5234
|
+
*/
|
|
5235
|
+
iconName?: string | null
|
|
4991
5236
|
}
|
|
4992
5237
|
|
|
4993
5238
|
}
|
|
@@ -5008,6 +5253,10 @@ export interface MarkAttributes {
|
|
|
5008
5253
|
* An icon name that may be a base of a rendered icon.
|
|
5009
5254
|
*/
|
|
5010
5255
|
icon_name: string | null
|
|
5256
|
+
/**
|
|
5257
|
+
* An icon name that may be a base of a rendered icon.
|
|
5258
|
+
*/
|
|
5259
|
+
iconName: string | null
|
|
5011
5260
|
/**
|
|
5012
5261
|
* A #GdkPixbuf that may be a base of a rendered icon.
|
|
5013
5262
|
*/
|
|
@@ -5031,7 +5280,7 @@ export interface MarkAttributes {
|
|
|
5031
5280
|
* icon name can be %NULL if it wasn't set earlier.
|
|
5032
5281
|
* @returns An icon name. The string belongs to @attributes and should not be freed.
|
|
5033
5282
|
*/
|
|
5034
|
-
get_icon_name(): string
|
|
5283
|
+
get_icon_name(): string
|
|
5035
5284
|
/**
|
|
5036
5285
|
* Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
|
|
5037
5286
|
* pixbuf can be %NULL if it wasn't set earlier.
|
|
@@ -5078,7 +5327,7 @@ export interface MarkAttributes {
|
|
|
5078
5327
|
* Sets a name of an icon to be used as a base for rendered icon.
|
|
5079
5328
|
* @param icon_name name of an icon to be used.
|
|
5080
5329
|
*/
|
|
5081
|
-
set_icon_name(icon_name: string
|
|
5330
|
+
set_icon_name(icon_name: string): void
|
|
5082
5331
|
/**
|
|
5083
5332
|
* Sets a pixbuf to be used as a base for rendered icon.
|
|
5084
5333
|
* @param pixbuf a #GdkPixbuf to be used.
|
|
@@ -5250,77 +5499,235 @@ export module PrintCompositor {
|
|
|
5250
5499
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5251
5500
|
*/
|
|
5252
5501
|
wrap_mode?: Gtk.WrapMode | null
|
|
5253
|
-
|
|
5254
|
-
|
|
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
|
-
|
|
5502
|
+
/**
|
|
5503
|
+
* Name of the font used for the text body.
|
|
5504
|
+
*
|
|
5505
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5506
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5507
|
+
* for a description of the format of the string representation.
|
|
5508
|
+
*
|
|
5509
|
+
* The value of this property cannot be changed anymore after the first
|
|
5510
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5511
|
+
*/
|
|
5512
|
+
bodyFontName?: string | null
|
|
5513
|
+
/**
|
|
5514
|
+
* Name of the font used to print page footer.
|
|
5515
|
+
* If this property is unspecified, the text body font is used.
|
|
5516
|
+
*
|
|
5517
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5518
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5519
|
+
* for a description of the format of the string representation.
|
|
5520
|
+
*
|
|
5521
|
+
* The value of this property cannot be changed anymore after the first
|
|
5522
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5523
|
+
*/
|
|
5524
|
+
footerFontName?: string | null
|
|
5525
|
+
/**
|
|
5526
|
+
* Name of the font used to print page header.
|
|
5527
|
+
* If this property is unspecified, the text body font is used.
|
|
5528
|
+
*
|
|
5529
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5530
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5531
|
+
* for a description of the format of the string representation.
|
|
5532
|
+
*
|
|
5533
|
+
* The value of this property cannot be changed anymore after the first
|
|
5534
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5535
|
+
*/
|
|
5536
|
+
headerFontName?: string | null
|
|
5537
|
+
/**
|
|
5538
|
+
* Whether to print the document with highlighted syntax.
|
|
5539
|
+
*
|
|
5540
|
+
* The value of this property cannot be changed anymore after the first
|
|
5541
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5542
|
+
*/
|
|
5543
|
+
highlightSyntax?: boolean | null
|
|
5544
|
+
/**
|
|
5545
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5546
|
+
* If this property is unspecified, the text body font is used.
|
|
5547
|
+
*
|
|
5548
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5549
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5550
|
+
* for a description of the format of the string representation.
|
|
5551
|
+
*
|
|
5552
|
+
* The value of this property cannot be changed anymore after the first
|
|
5553
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5554
|
+
*/
|
|
5555
|
+
lineNumbersFontName?: string | null
|
|
5556
|
+
/**
|
|
5557
|
+
* Whether to print a footer in each page.
|
|
5558
|
+
*
|
|
5559
|
+
* Note that by default the footer format is unspecified, and if it is
|
|
5560
|
+
* unspecified the footer will not be printed, regardless of the value of
|
|
5561
|
+
* this property.
|
|
5562
|
+
*
|
|
5563
|
+
* The value of this property cannot be changed anymore after the first
|
|
5564
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5565
|
+
*/
|
|
5566
|
+
printFooter?: boolean | null
|
|
5567
|
+
/**
|
|
5568
|
+
* Whether to print a header in each page.
|
|
5569
|
+
*
|
|
5570
|
+
* Note that by default the header format is unspecified, and if it is
|
|
5571
|
+
* unspecified the header will not be printed, regardless of the value of
|
|
5572
|
+
* this property.
|
|
5573
|
+
*
|
|
5574
|
+
* The value of this property cannot be changed anymore after the first
|
|
5575
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5576
|
+
*/
|
|
5577
|
+
printHeader?: boolean | null
|
|
5578
|
+
/**
|
|
5579
|
+
* Interval of printed line numbers. If this property is set to 0 no
|
|
5580
|
+
* numbers will be printed. If greater than 0, a number will be
|
|
5581
|
+
* printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).
|
|
5582
|
+
*
|
|
5583
|
+
* The value of this property cannot be changed anymore after the first
|
|
5584
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5585
|
+
*/
|
|
5586
|
+
printLineNumbers?: number | null
|
|
5587
|
+
/**
|
|
5588
|
+
* Width of a tab character expressed in spaces.
|
|
5589
|
+
*
|
|
5590
|
+
* The value of this property cannot be changed anymore after the first
|
|
5591
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5592
|
+
*/
|
|
5593
|
+
tabWidth?: number | null
|
|
5594
|
+
/**
|
|
5595
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5596
|
+
*
|
|
5597
|
+
* The value of this property cannot be changed anymore after the first
|
|
5598
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5599
|
+
*/
|
|
5600
|
+
wrapMode?: Gtk.WrapMode | null
|
|
5601
|
+
}
|
|
5602
|
+
|
|
5603
|
+
}
|
|
5604
|
+
|
|
5605
|
+
export interface PrintCompositor {
|
|
5606
|
+
|
|
5607
|
+
// Own properties of GtkSource-4.GtkSource.PrintCompositor
|
|
5608
|
+
|
|
5609
|
+
/**
|
|
5610
|
+
* Name of the font used for the text body.
|
|
5611
|
+
*
|
|
5612
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5613
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5614
|
+
* for a description of the format of the string representation.
|
|
5615
|
+
*
|
|
5616
|
+
* The value of this property cannot be changed anymore after the first
|
|
5617
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5618
|
+
*/
|
|
5619
|
+
body_font_name: string | null
|
|
5620
|
+
/**
|
|
5621
|
+
* Name of the font used for the text body.
|
|
5622
|
+
*
|
|
5623
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5624
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5625
|
+
* for a description of the format of the string representation.
|
|
5626
|
+
*
|
|
5627
|
+
* The value of this property cannot be changed anymore after the first
|
|
5628
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5629
|
+
*/
|
|
5630
|
+
bodyFontName: string | null
|
|
5631
|
+
/**
|
|
5632
|
+
* The GtkSourceBuffer object to print.
|
|
5633
|
+
*/
|
|
5634
|
+
readonly buffer: Buffer
|
|
5635
|
+
/**
|
|
5636
|
+
* Name of the font used to print page footer.
|
|
5637
|
+
* If this property is unspecified, the text body font is used.
|
|
5638
|
+
*
|
|
5639
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5640
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5641
|
+
* for a description of the format of the string representation.
|
|
5642
|
+
*
|
|
5643
|
+
* The value of this property cannot be changed anymore after the first
|
|
5644
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5645
|
+
*/
|
|
5646
|
+
footer_font_name: string | null
|
|
5647
|
+
/**
|
|
5648
|
+
* Name of the font used to print page footer.
|
|
5649
|
+
* If this property is unspecified, the text body font is used.
|
|
5650
|
+
*
|
|
5651
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5652
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5653
|
+
* for a description of the format of the string representation.
|
|
5654
|
+
*
|
|
5655
|
+
* The value of this property cannot be changed anymore after the first
|
|
5656
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5657
|
+
*/
|
|
5658
|
+
footerFontName: string | null
|
|
5659
|
+
/**
|
|
5660
|
+
* Name of the font used to print page header.
|
|
5661
|
+
* If this property is unspecified, the text body font is used.
|
|
5662
|
+
*
|
|
5663
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5664
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5665
|
+
* for a description of the format of the string representation.
|
|
5666
|
+
*
|
|
5667
|
+
* The value of this property cannot be changed anymore after the first
|
|
5668
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5669
|
+
*/
|
|
5670
|
+
header_font_name: string | null
|
|
5671
|
+
/**
|
|
5672
|
+
* Name of the font used to print page header.
|
|
5673
|
+
* If this property is unspecified, the text body font is used.
|
|
5674
|
+
*
|
|
5675
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5676
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5677
|
+
* for a description of the format of the string representation.
|
|
5678
|
+
*
|
|
5679
|
+
* The value of this property cannot be changed anymore after the first
|
|
5680
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5681
|
+
*/
|
|
5682
|
+
headerFontName: string | null
|
|
5683
|
+
/**
|
|
5684
|
+
* Whether to print the document with highlighted syntax.
|
|
5685
|
+
*
|
|
5686
|
+
* The value of this property cannot be changed anymore after the first
|
|
5687
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5688
|
+
*/
|
|
5689
|
+
highlight_syntax: boolean
|
|
5690
|
+
/**
|
|
5691
|
+
* Whether to print the document with highlighted syntax.
|
|
5692
|
+
*
|
|
5693
|
+
* The value of this property cannot be changed anymore after the first
|
|
5694
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5695
|
+
*/
|
|
5696
|
+
highlightSyntax: boolean
|
|
5697
|
+
/**
|
|
5698
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5699
|
+
* If this property is unspecified, the text body font is used.
|
|
5700
|
+
*
|
|
5701
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5702
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5703
|
+
* for a description of the format of the string representation.
|
|
5704
|
+
*
|
|
5705
|
+
* The value of this property cannot be changed anymore after the first
|
|
5706
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5707
|
+
*/
|
|
5708
|
+
line_numbers_font_name: string | null
|
|
5709
|
+
/**
|
|
5710
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5711
|
+
* If this property is unspecified, the text body font is used.
|
|
5712
|
+
*
|
|
5713
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5714
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5715
|
+
* for a description of the format of the string representation.
|
|
5716
|
+
*
|
|
5717
|
+
* The value of this property cannot be changed anymore after the first
|
|
5718
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5719
|
+
*/
|
|
5720
|
+
lineNumbersFontName: string | null
|
|
5721
|
+
/**
|
|
5722
|
+
* The number of pages in the document or <code>-1</code> if the
|
|
5723
|
+
* document has not been completely paginated.
|
|
5724
|
+
*/
|
|
5323
5725
|
readonly n_pages: number
|
|
5726
|
+
/**
|
|
5727
|
+
* The number of pages in the document or <code>-1</code> if the
|
|
5728
|
+
* document has not been completely paginated.
|
|
5729
|
+
*/
|
|
5730
|
+
readonly nPages: number
|
|
5324
5731
|
/**
|
|
5325
5732
|
* Whether to print a footer in each page.
|
|
5326
5733
|
*
|
|
@@ -5332,6 +5739,17 @@ export interface PrintCompositor {
|
|
|
5332
5739
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5333
5740
|
*/
|
|
5334
5741
|
print_footer: boolean
|
|
5742
|
+
/**
|
|
5743
|
+
* Whether to print a footer in each page.
|
|
5744
|
+
*
|
|
5745
|
+
* Note that by default the footer format is unspecified, and if it is
|
|
5746
|
+
* unspecified the footer will not be printed, regardless of the value of
|
|
5747
|
+
* this property.
|
|
5748
|
+
*
|
|
5749
|
+
* The value of this property cannot be changed anymore after the first
|
|
5750
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5751
|
+
*/
|
|
5752
|
+
printFooter: boolean
|
|
5335
5753
|
/**
|
|
5336
5754
|
* Whether to print a header in each page.
|
|
5337
5755
|
*
|
|
@@ -5343,6 +5761,17 @@ export interface PrintCompositor {
|
|
|
5343
5761
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5344
5762
|
*/
|
|
5345
5763
|
print_header: boolean
|
|
5764
|
+
/**
|
|
5765
|
+
* Whether to print a header in each page.
|
|
5766
|
+
*
|
|
5767
|
+
* Note that by default the header format is unspecified, and if it is
|
|
5768
|
+
* unspecified the header will not be printed, regardless of the value of
|
|
5769
|
+
* this property.
|
|
5770
|
+
*
|
|
5771
|
+
* The value of this property cannot be changed anymore after the first
|
|
5772
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5773
|
+
*/
|
|
5774
|
+
printHeader: boolean
|
|
5346
5775
|
/**
|
|
5347
5776
|
* Interval of printed line numbers. If this property is set to 0 no
|
|
5348
5777
|
* numbers will be printed. If greater than 0, a number will be
|
|
@@ -5352,6 +5781,15 @@ export interface PrintCompositor {
|
|
|
5352
5781
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5353
5782
|
*/
|
|
5354
5783
|
print_line_numbers: number
|
|
5784
|
+
/**
|
|
5785
|
+
* Interval of printed line numbers. If this property is set to 0 no
|
|
5786
|
+
* numbers will be printed. If greater than 0, a number will be
|
|
5787
|
+
* printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).
|
|
5788
|
+
*
|
|
5789
|
+
* The value of this property cannot be changed anymore after the first
|
|
5790
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5791
|
+
*/
|
|
5792
|
+
printLineNumbers: number
|
|
5355
5793
|
/**
|
|
5356
5794
|
* Width of a tab character expressed in spaces.
|
|
5357
5795
|
*
|
|
@@ -5359,6 +5797,13 @@ export interface PrintCompositor {
|
|
|
5359
5797
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5360
5798
|
*/
|
|
5361
5799
|
tab_width: number
|
|
5800
|
+
/**
|
|
5801
|
+
* Width of a tab character expressed in spaces.
|
|
5802
|
+
*
|
|
5803
|
+
* The value of this property cannot be changed anymore after the first
|
|
5804
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5805
|
+
*/
|
|
5806
|
+
tabWidth: number
|
|
5362
5807
|
/**
|
|
5363
5808
|
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5364
5809
|
*
|
|
@@ -5366,6 +5811,13 @@ export interface PrintCompositor {
|
|
|
5366
5811
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5367
5812
|
*/
|
|
5368
5813
|
wrap_mode: Gtk.WrapMode
|
|
5814
|
+
/**
|
|
5815
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5816
|
+
*
|
|
5817
|
+
* The value of this property cannot be changed anymore after the first
|
|
5818
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5819
|
+
*/
|
|
5820
|
+
wrapMode: Gtk.WrapMode
|
|
5369
5821
|
|
|
5370
5822
|
// Own fields of GtkSource-4.GtkSource.PrintCompositor
|
|
5371
5823
|
|
|
@@ -5585,7 +6037,7 @@ export interface PrintCompositor {
|
|
|
5585
6037
|
* gtk_source_print_compositor_paginate() function.
|
|
5586
6038
|
* @param font_name the name of the default font for the body text.
|
|
5587
6039
|
*/
|
|
5588
|
-
set_body_font_name(font_name: string
|
|
6040
|
+
set_body_font_name(font_name: string): void
|
|
5589
6041
|
/**
|
|
5590
6042
|
* Sets the bottom margin used by `compositor`.
|
|
5591
6043
|
* @param margin the new bottom margin in units of `unit`.
|
|
@@ -5990,6 +6442,10 @@ export module SearchContext {
|
|
|
5990
6442
|
* This property is construct-only since version 4.0.
|
|
5991
6443
|
*/
|
|
5992
6444
|
settings?: SearchSettings | null
|
|
6445
|
+
/**
|
|
6446
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6447
|
+
*/
|
|
6448
|
+
matchStyle?: Style | null
|
|
5993
6449
|
}
|
|
5994
6450
|
|
|
5995
6451
|
}
|
|
@@ -6010,12 +6466,22 @@ export interface SearchContext {
|
|
|
6010
6466
|
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6011
6467
|
*/
|
|
6012
6468
|
match_style: Style
|
|
6469
|
+
/**
|
|
6470
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6471
|
+
*/
|
|
6472
|
+
matchStyle: Style
|
|
6013
6473
|
/**
|
|
6014
6474
|
* The total number of search occurrences. If the search is disabled,
|
|
6015
6475
|
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6016
6476
|
* is -1.
|
|
6017
6477
|
*/
|
|
6018
6478
|
readonly occurrences_count: number
|
|
6479
|
+
/**
|
|
6480
|
+
* The total number of search occurrences. If the search is disabled,
|
|
6481
|
+
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6482
|
+
* is -1.
|
|
6483
|
+
*/
|
|
6484
|
+
readonly occurrencesCount: number
|
|
6019
6485
|
/**
|
|
6020
6486
|
* If the regex search pattern doesn't follow all the rules, this
|
|
6021
6487
|
* #GError property will be set. If the pattern is valid, the value is
|
|
@@ -6024,6 +6490,14 @@ export interface SearchContext {
|
|
|
6024
6490
|
* Free with g_error_free().
|
|
6025
6491
|
*/
|
|
6026
6492
|
readonly regex_error: any
|
|
6493
|
+
/**
|
|
6494
|
+
* If the regex search pattern doesn't follow all the rules, this
|
|
6495
|
+
* #GError property will be set. If the pattern is valid, the value is
|
|
6496
|
+
* %NULL.
|
|
6497
|
+
*
|
|
6498
|
+
* Free with g_error_free().
|
|
6499
|
+
*/
|
|
6500
|
+
readonly regexError: any
|
|
6027
6501
|
/**
|
|
6028
6502
|
* The #GtkSourceSearchSettings associated to the search context.
|
|
6029
6503
|
*
|
|
@@ -6208,7 +6682,7 @@ export interface SearchContext {
|
|
|
6208
6682
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6209
6683
|
* @returns whether the match has been replaced.
|
|
6210
6684
|
*/
|
|
6211
|
-
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
|
|
6212
6686
|
/**
|
|
6213
6687
|
* Replaces all search matches by another text. It is a synchronous function, so
|
|
6214
6688
|
* it can block the user interface.
|
|
@@ -6220,7 +6694,7 @@ export interface SearchContext {
|
|
|
6220
6694
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6221
6695
|
* @returns the number of replaced matches.
|
|
6222
6696
|
*/
|
|
6223
|
-
replace_all(replace: string
|
|
6697
|
+
replace_all(replace: string, replace_length: number): number
|
|
6224
6698
|
/**
|
|
6225
6699
|
* Enables or disables the search occurrences highlighting.
|
|
6226
6700
|
* @param highlight the setting.
|
|
@@ -6330,6 +6804,32 @@ export module SearchSettings {
|
|
|
6330
6804
|
* end of the buffer.
|
|
6331
6805
|
*/
|
|
6332
6806
|
wrap_around?: boolean | null
|
|
6807
|
+
/**
|
|
6808
|
+
* If %TRUE, a search match must start and end a word. The match can
|
|
6809
|
+
* span multiple words.
|
|
6810
|
+
*/
|
|
6811
|
+
atWordBoundaries?: boolean | null
|
|
6812
|
+
/**
|
|
6813
|
+
* Whether the search is case sensitive.
|
|
6814
|
+
*/
|
|
6815
|
+
caseSensitive?: boolean | null
|
|
6816
|
+
/**
|
|
6817
|
+
* Search by regular expressions with
|
|
6818
|
+
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
6819
|
+
*/
|
|
6820
|
+
regexEnabled?: boolean | null
|
|
6821
|
+
/**
|
|
6822
|
+
* A search string, or %NULL if the search is disabled. If the regular
|
|
6823
|
+
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
6824
|
+
* the pattern.
|
|
6825
|
+
*/
|
|
6826
|
+
searchText?: string | null
|
|
6827
|
+
/**
|
|
6828
|
+
* For a forward search, continue at the beginning of the buffer if no
|
|
6829
|
+
* search occurrence is found. For a backward search, continue at the
|
|
6830
|
+
* end of the buffer.
|
|
6831
|
+
*/
|
|
6832
|
+
wrapAround?: boolean | null
|
|
6333
6833
|
}
|
|
6334
6834
|
|
|
6335
6835
|
}
|
|
@@ -6343,27 +6843,53 @@ export interface SearchSettings {
|
|
|
6343
6843
|
* span multiple words.
|
|
6344
6844
|
*/
|
|
6345
6845
|
at_word_boundaries: boolean
|
|
6846
|
+
/**
|
|
6847
|
+
* If %TRUE, a search match must start and end a word. The match can
|
|
6848
|
+
* span multiple words.
|
|
6849
|
+
*/
|
|
6850
|
+
atWordBoundaries: boolean
|
|
6346
6851
|
/**
|
|
6347
6852
|
* Whether the search is case sensitive.
|
|
6348
6853
|
*/
|
|
6349
6854
|
case_sensitive: boolean
|
|
6855
|
+
/**
|
|
6856
|
+
* Whether the search is case sensitive.
|
|
6857
|
+
*/
|
|
6858
|
+
caseSensitive: boolean
|
|
6350
6859
|
/**
|
|
6351
6860
|
* Search by regular expressions with
|
|
6352
6861
|
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
6353
6862
|
*/
|
|
6354
6863
|
regex_enabled: boolean
|
|
6864
|
+
/**
|
|
6865
|
+
* Search by regular expressions with
|
|
6866
|
+
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
6867
|
+
*/
|
|
6868
|
+
regexEnabled: boolean
|
|
6355
6869
|
/**
|
|
6356
6870
|
* A search string, or %NULL if the search is disabled. If the regular
|
|
6357
6871
|
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
6358
6872
|
* the pattern.
|
|
6359
6873
|
*/
|
|
6360
6874
|
search_text: string | null
|
|
6875
|
+
/**
|
|
6876
|
+
* A search string, or %NULL if the search is disabled. If the regular
|
|
6877
|
+
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
6878
|
+
* the pattern.
|
|
6879
|
+
*/
|
|
6880
|
+
searchText: string | null
|
|
6361
6881
|
/**
|
|
6362
6882
|
* For a forward search, continue at the beginning of the buffer if no
|
|
6363
6883
|
* search occurrence is found. For a backward search, continue at the
|
|
6364
6884
|
* end of the buffer.
|
|
6365
6885
|
*/
|
|
6366
6886
|
wrap_around: boolean
|
|
6887
|
+
/**
|
|
6888
|
+
* For a forward search, continue at the beginning of the buffer if no
|
|
6889
|
+
* search occurrence is found. For a backward search, continue at the
|
|
6890
|
+
* end of the buffer.
|
|
6891
|
+
*/
|
|
6892
|
+
wrapAround: boolean
|
|
6367
6893
|
|
|
6368
6894
|
// Own fields of GtkSource-4.GtkSource.SearchSettings
|
|
6369
6895
|
|
|
@@ -6503,6 +7029,10 @@ export module SpaceDrawer {
|
|
|
6503
7029
|
* By default, %GTK_SOURCE_SPACE_TYPE_ALL is set for all locations.
|
|
6504
7030
|
*/
|
|
6505
7031
|
matrix?: GLib.Variant | null
|
|
7032
|
+
/**
|
|
7033
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7034
|
+
*/
|
|
7035
|
+
enableMatrix?: boolean | null
|
|
6506
7036
|
}
|
|
6507
7037
|
|
|
6508
7038
|
}
|
|
@@ -6515,6 +7045,10 @@ export interface SpaceDrawer {
|
|
|
6515
7045
|
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
6516
7046
|
*/
|
|
6517
7047
|
enable_matrix: boolean
|
|
7048
|
+
/**
|
|
7049
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7050
|
+
*/
|
|
7051
|
+
enableMatrix: boolean
|
|
6518
7052
|
/**
|
|
6519
7053
|
* The :matrix property is a #GVariant property to specify where and
|
|
6520
7054
|
* what kind of white spaces to draw.
|
|
@@ -6553,7 +7087,7 @@ export interface SpaceDrawer {
|
|
|
6553
7087
|
* @param key the `settings` key to bind.
|
|
6554
7088
|
* @param flags flags for the binding.
|
|
6555
7089
|
*/
|
|
6556
|
-
bind_matrix_setting(settings: Gio.Settings, key: string
|
|
7090
|
+
bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
|
|
6557
7091
|
get_enable_matrix(): boolean
|
|
6558
7092
|
/**
|
|
6559
7093
|
* Gets the value of the #GtkSourceSpaceDrawer:matrix property, as a #GVariant.
|
|
@@ -6668,6 +7202,18 @@ export module Style {
|
|
|
6668
7202
|
underline_color?: string | null
|
|
6669
7203
|
underline_color_set?: boolean | null
|
|
6670
7204
|
underline_set?: boolean | null
|
|
7205
|
+
backgroundSet?: boolean | null
|
|
7206
|
+
boldSet?: boolean | null
|
|
7207
|
+
foregroundSet?: boolean | null
|
|
7208
|
+
italicSet?: boolean | null
|
|
7209
|
+
lineBackground?: string | null
|
|
7210
|
+
lineBackgroundSet?: boolean | null
|
|
7211
|
+
pangoUnderline?: Pango.Underline | null
|
|
7212
|
+
scaleSet?: boolean | null
|
|
7213
|
+
strikethroughSet?: boolean | null
|
|
7214
|
+
underlineColor?: string | null
|
|
7215
|
+
underlineColorSet?: boolean | null
|
|
7216
|
+
underlineSet?: boolean | null
|
|
6671
7217
|
}
|
|
6672
7218
|
|
|
6673
7219
|
}
|
|
@@ -6678,22 +7224,34 @@ export interface Style {
|
|
|
6678
7224
|
|
|
6679
7225
|
readonly background: string | null
|
|
6680
7226
|
readonly background_set: boolean
|
|
7227
|
+
readonly backgroundSet: boolean
|
|
6681
7228
|
readonly bold: boolean
|
|
6682
7229
|
readonly bold_set: boolean
|
|
7230
|
+
readonly boldSet: boolean
|
|
6683
7231
|
readonly foreground: string | null
|
|
6684
7232
|
readonly foreground_set: boolean
|
|
7233
|
+
readonly foregroundSet: boolean
|
|
6685
7234
|
readonly italic: boolean
|
|
6686
7235
|
readonly italic_set: boolean
|
|
7236
|
+
readonly italicSet: boolean
|
|
6687
7237
|
readonly line_background: string | null
|
|
7238
|
+
readonly lineBackground: string | null
|
|
6688
7239
|
readonly line_background_set: boolean
|
|
7240
|
+
readonly lineBackgroundSet: boolean
|
|
6689
7241
|
readonly pango_underline: Pango.Underline
|
|
7242
|
+
readonly pangoUnderline: Pango.Underline
|
|
6690
7243
|
readonly scale: string | null
|
|
6691
7244
|
readonly scale_set: boolean
|
|
7245
|
+
readonly scaleSet: boolean
|
|
6692
7246
|
readonly strikethrough: boolean
|
|
6693
7247
|
readonly strikethrough_set: boolean
|
|
7248
|
+
readonly strikethroughSet: boolean
|
|
6694
7249
|
readonly underline_color: string | null
|
|
7250
|
+
readonly underlineColor: string | null
|
|
6695
7251
|
readonly underline_color_set: boolean
|
|
7252
|
+
readonly underlineColorSet: boolean
|
|
6696
7253
|
readonly underline_set: boolean
|
|
7254
|
+
readonly underlineSet: boolean
|
|
6697
7255
|
|
|
6698
7256
|
// Owm methods of GtkSource-4.GtkSource.Style
|
|
6699
7257
|
|
|
@@ -6839,9 +7397,9 @@ export interface StyleScheme {
|
|
|
6839
7397
|
get_authors(): string[] | null
|
|
6840
7398
|
get_description(): string | null
|
|
6841
7399
|
get_filename(): string | null
|
|
6842
|
-
get_id(): string
|
|
6843
|
-
get_name(): string
|
|
6844
|
-
get_style(style_id: string
|
|
7400
|
+
get_id(): string
|
|
7401
|
+
get_name(): string
|
|
7402
|
+
get_style(style_id: string): Style | null
|
|
6845
7403
|
|
|
6846
7404
|
// Class property signals of GtkSource-4.GtkSource.StyleScheme
|
|
6847
7405
|
|
|
@@ -6903,7 +7461,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
6903
7461
|
* Also see gtk_container_child_notify().
|
|
6904
7462
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
6905
7463
|
*/
|
|
6906
|
-
child_notify(child_property: string
|
|
7464
|
+
child_notify(child_property: string): void
|
|
6907
7465
|
/**
|
|
6908
7466
|
* Emits a #GtkWidget::child-notify signal for the
|
|
6909
7467
|
* [child property][child-properties]
|
|
@@ -6915,7 +7473,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
6915
7473
|
* @param child the child widget
|
|
6916
7474
|
* @param child_property the name of a child property installed on the class of `container`
|
|
6917
7475
|
*/
|
|
6918
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7476
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
6919
7477
|
|
|
6920
7478
|
// Overloads of child_notify
|
|
6921
7479
|
|
|
@@ -6929,7 +7487,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
6929
7487
|
* Also see gtk_container_child_notify().
|
|
6930
7488
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
6931
7489
|
*/
|
|
6932
|
-
child_notify(child_property: string
|
|
7490
|
+
child_notify(child_property: string): void
|
|
6933
7491
|
|
|
6934
7492
|
// Class property signals of GtkSource-4.GtkSource.StyleSchemeChooserButton
|
|
6935
7493
|
|
|
@@ -7160,7 +7718,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7160
7718
|
* @param child the child widget
|
|
7161
7719
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7162
7720
|
*/
|
|
7163
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7721
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7164
7722
|
|
|
7165
7723
|
// Overloads of child_notify
|
|
7166
7724
|
|
|
@@ -7174,7 +7732,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7174
7732
|
* Also see gtk_container_child_notify().
|
|
7175
7733
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7176
7734
|
*/
|
|
7177
|
-
child_notify(child_property: string
|
|
7735
|
+
child_notify(child_property: string): void
|
|
7178
7736
|
/**
|
|
7179
7737
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7180
7738
|
* [child property][child-properties] `child_property`
|
|
@@ -7185,7 +7743,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7185
7743
|
* Also see gtk_container_child_notify().
|
|
7186
7744
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7187
7745
|
*/
|
|
7188
|
-
child_notify(child_property: string
|
|
7746
|
+
child_notify(child_property: string): void
|
|
7189
7747
|
|
|
7190
7748
|
// Class property signals of GtkSource-4.GtkSource.StyleSchemeChooserWidget
|
|
7191
7749
|
|
|
@@ -7358,6 +7916,7 @@ export module StyleSchemeManager {
|
|
|
7358
7916
|
// Own constructor properties of GtkSource-4.GtkSource.StyleSchemeManager
|
|
7359
7917
|
|
|
7360
7918
|
search_path?: string[] | null
|
|
7919
|
+
searchPath?: string[] | null
|
|
7361
7920
|
}
|
|
7362
7921
|
|
|
7363
7922
|
}
|
|
@@ -7367,7 +7926,9 @@ export interface StyleSchemeManager {
|
|
|
7367
7926
|
// Own properties of GtkSource-4.GtkSource.StyleSchemeManager
|
|
7368
7927
|
|
|
7369
7928
|
readonly scheme_ids: string[]
|
|
7929
|
+
readonly schemeIds: string[]
|
|
7370
7930
|
search_path: string[]
|
|
7931
|
+
searchPath: string[]
|
|
7371
7932
|
|
|
7372
7933
|
// Own fields of GtkSource-4.GtkSource.StyleSchemeManager
|
|
7373
7934
|
|
|
@@ -7382,7 +7943,7 @@ export interface StyleSchemeManager {
|
|
|
7382
7943
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7383
7944
|
* @param path a directory or a filename.
|
|
7384
7945
|
*/
|
|
7385
|
-
append_search_path(path: string
|
|
7946
|
+
append_search_path(path: string): void
|
|
7386
7947
|
/**
|
|
7387
7948
|
* Mark any currently cached information about the available style scehems
|
|
7388
7949
|
* as invalid. All the available style schemes will be reloaded next time
|
|
@@ -7394,7 +7955,7 @@ export interface StyleSchemeManager {
|
|
|
7394
7955
|
* @param scheme_id style scheme id to find.
|
|
7395
7956
|
* @returns a #GtkSourceStyleScheme object. The returned value is owned by @manager and must not be unref'ed.
|
|
7396
7957
|
*/
|
|
7397
|
-
get_scheme(scheme_id: string
|
|
7958
|
+
get_scheme(scheme_id: string): StyleScheme | null
|
|
7398
7959
|
/**
|
|
7399
7960
|
* Returns the ids of the available style schemes.
|
|
7400
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.
|
|
@@ -7412,7 +7973,7 @@ export interface StyleSchemeManager {
|
|
|
7412
7973
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7413
7974
|
* @param path a directory or a filename.
|
|
7414
7975
|
*/
|
|
7415
|
-
prepend_search_path(path: string
|
|
7976
|
+
prepend_search_path(path: string): void
|
|
7416
7977
|
/**
|
|
7417
7978
|
* Sets the list of directories where the `manager` looks for
|
|
7418
7979
|
* style scheme files.
|
|
@@ -7489,6 +8050,20 @@ export module Tag {
|
|
|
7489
8050
|
* taken into account.
|
|
7490
8051
|
*/
|
|
7491
8052
|
draw_spaces_set?: boolean | null
|
|
8053
|
+
/**
|
|
8054
|
+
* Whether to draw white spaces. This property takes precedence over the value
|
|
8055
|
+
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8056
|
+
* (only where the tag is applied).
|
|
8057
|
+
*
|
|
8058
|
+
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8059
|
+
* %TRUE.
|
|
8060
|
+
*/
|
|
8061
|
+
drawSpaces?: boolean | null
|
|
8062
|
+
/**
|
|
8063
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8064
|
+
* taken into account.
|
|
8065
|
+
*/
|
|
8066
|
+
drawSpacesSet?: boolean | null
|
|
7492
8067
|
}
|
|
7493
8068
|
|
|
7494
8069
|
}
|
|
@@ -7506,11 +8081,25 @@ export interface Tag {
|
|
|
7506
8081
|
* %TRUE.
|
|
7507
8082
|
*/
|
|
7508
8083
|
draw_spaces: boolean
|
|
8084
|
+
/**
|
|
8085
|
+
* Whether to draw white spaces. This property takes precedence over the value
|
|
8086
|
+
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8087
|
+
* (only where the tag is applied).
|
|
8088
|
+
*
|
|
8089
|
+
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8090
|
+
* %TRUE.
|
|
8091
|
+
*/
|
|
8092
|
+
drawSpaces: boolean
|
|
7509
8093
|
/**
|
|
7510
8094
|
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
7511
8095
|
* taken into account.
|
|
7512
8096
|
*/
|
|
7513
8097
|
draw_spaces_set: boolean
|
|
8098
|
+
/**
|
|
8099
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8100
|
+
* taken into account.
|
|
8101
|
+
*/
|
|
8102
|
+
drawSpacesSet: boolean
|
|
7514
8103
|
|
|
7515
8104
|
// Own fields of GtkSource-4.GtkSource.Tag
|
|
7516
8105
|
|
|
@@ -7915,6 +8504,46 @@ export module View {
|
|
|
7915
8504
|
* Width of a tab character expressed in number of spaces.
|
|
7916
8505
|
*/
|
|
7917
8506
|
tab_width?: number | null
|
|
8507
|
+
autoIndent?: boolean | null
|
|
8508
|
+
/**
|
|
8509
|
+
* Draw a specific background pattern on the view.
|
|
8510
|
+
*/
|
|
8511
|
+
backgroundPattern?: BackgroundPatternType | null
|
|
8512
|
+
highlightCurrentLine?: boolean | null
|
|
8513
|
+
indentOnTab?: boolean | null
|
|
8514
|
+
/**
|
|
8515
|
+
* Width of an indentation step expressed in number of spaces.
|
|
8516
|
+
*/
|
|
8517
|
+
indentWidth?: number | null
|
|
8518
|
+
insertSpacesInsteadOfTabs?: boolean | null
|
|
8519
|
+
/**
|
|
8520
|
+
* Position of the right margin.
|
|
8521
|
+
*/
|
|
8522
|
+
rightMarginPosition?: number | null
|
|
8523
|
+
/**
|
|
8524
|
+
* Whether to display line mark pixbufs
|
|
8525
|
+
*/
|
|
8526
|
+
showLineMarks?: boolean | null
|
|
8527
|
+
/**
|
|
8528
|
+
* Whether to display line numbers
|
|
8529
|
+
*/
|
|
8530
|
+
showLineNumbers?: boolean | null
|
|
8531
|
+
/**
|
|
8532
|
+
* Whether to display the right margin.
|
|
8533
|
+
*/
|
|
8534
|
+
showRightMargin?: boolean | null
|
|
8535
|
+
/**
|
|
8536
|
+
* Whether smart Backspace should be used.
|
|
8537
|
+
*/
|
|
8538
|
+
smartBackspace?: boolean | null
|
|
8539
|
+
/**
|
|
8540
|
+
* Set the behavior of the HOME and END keys.
|
|
8541
|
+
*/
|
|
8542
|
+
smartHomeEnd?: SmartHomeEndType | null
|
|
8543
|
+
/**
|
|
8544
|
+
* Width of a tab character expressed in number of spaces.
|
|
8545
|
+
*/
|
|
8546
|
+
tabWidth?: number | null
|
|
7918
8547
|
}
|
|
7919
8548
|
|
|
7920
8549
|
}
|
|
@@ -7924,53 +8553,97 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
7924
8553
|
// Own properties of GtkSource-4.GtkSource.View
|
|
7925
8554
|
|
|
7926
8555
|
auto_indent: boolean
|
|
8556
|
+
autoIndent: boolean
|
|
7927
8557
|
/**
|
|
7928
8558
|
* Draw a specific background pattern on the view.
|
|
7929
8559
|
*/
|
|
7930
8560
|
background_pattern: BackgroundPatternType
|
|
8561
|
+
/**
|
|
8562
|
+
* Draw a specific background pattern on the view.
|
|
8563
|
+
*/
|
|
8564
|
+
backgroundPattern: BackgroundPatternType
|
|
7931
8565
|
/**
|
|
7932
8566
|
* The completion object associated with the view
|
|
7933
8567
|
*/
|
|
7934
8568
|
readonly completion: Completion
|
|
7935
8569
|
highlight_current_line: boolean
|
|
8570
|
+
highlightCurrentLine: boolean
|
|
7936
8571
|
indent_on_tab: boolean
|
|
8572
|
+
indentOnTab: boolean
|
|
7937
8573
|
/**
|
|
7938
8574
|
* Width of an indentation step expressed in number of spaces.
|
|
7939
8575
|
*/
|
|
7940
8576
|
indent_width: number
|
|
8577
|
+
/**
|
|
8578
|
+
* Width of an indentation step expressed in number of spaces.
|
|
8579
|
+
*/
|
|
8580
|
+
indentWidth: number
|
|
7941
8581
|
insert_spaces_instead_of_tabs: boolean
|
|
8582
|
+
insertSpacesInsteadOfTabs: boolean
|
|
7942
8583
|
/**
|
|
7943
8584
|
* Position of the right margin.
|
|
7944
8585
|
*/
|
|
7945
8586
|
right_margin_position: number
|
|
8587
|
+
/**
|
|
8588
|
+
* Position of the right margin.
|
|
8589
|
+
*/
|
|
8590
|
+
rightMarginPosition: number
|
|
7946
8591
|
/**
|
|
7947
8592
|
* Whether to display line mark pixbufs
|
|
7948
8593
|
*/
|
|
7949
8594
|
show_line_marks: boolean
|
|
8595
|
+
/**
|
|
8596
|
+
* Whether to display line mark pixbufs
|
|
8597
|
+
*/
|
|
8598
|
+
showLineMarks: boolean
|
|
7950
8599
|
/**
|
|
7951
8600
|
* Whether to display line numbers
|
|
7952
8601
|
*/
|
|
7953
8602
|
show_line_numbers: boolean
|
|
8603
|
+
/**
|
|
8604
|
+
* Whether to display line numbers
|
|
8605
|
+
*/
|
|
8606
|
+
showLineNumbers: boolean
|
|
7954
8607
|
/**
|
|
7955
8608
|
* Whether to display the right margin.
|
|
7956
8609
|
*/
|
|
7957
8610
|
show_right_margin: boolean
|
|
8611
|
+
/**
|
|
8612
|
+
* Whether to display the right margin.
|
|
8613
|
+
*/
|
|
8614
|
+
showRightMargin: boolean
|
|
7958
8615
|
/**
|
|
7959
8616
|
* Whether smart Backspace should be used.
|
|
7960
8617
|
*/
|
|
7961
8618
|
smart_backspace: boolean
|
|
8619
|
+
/**
|
|
8620
|
+
* Whether smart Backspace should be used.
|
|
8621
|
+
*/
|
|
8622
|
+
smartBackspace: boolean
|
|
7962
8623
|
/**
|
|
7963
8624
|
* Set the behavior of the HOME and END keys.
|
|
7964
8625
|
*/
|
|
7965
8626
|
smart_home_end: SmartHomeEndType
|
|
8627
|
+
/**
|
|
8628
|
+
* Set the behavior of the HOME and END keys.
|
|
8629
|
+
*/
|
|
8630
|
+
smartHomeEnd: SmartHomeEndType
|
|
7966
8631
|
/**
|
|
7967
8632
|
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
7968
8633
|
*/
|
|
7969
8634
|
readonly space_drawer: SpaceDrawer
|
|
8635
|
+
/**
|
|
8636
|
+
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
8637
|
+
*/
|
|
8638
|
+
readonly spaceDrawer: SpaceDrawer
|
|
7970
8639
|
/**
|
|
7971
8640
|
* Width of a tab character expressed in number of spaces.
|
|
7972
8641
|
*/
|
|
7973
8642
|
tab_width: number
|
|
8643
|
+
/**
|
|
8644
|
+
* Width of a tab character expressed in number of spaces.
|
|
8645
|
+
*/
|
|
8646
|
+
tabWidth: number
|
|
7974
8647
|
|
|
7975
8648
|
// Conflicting properties
|
|
7976
8649
|
|
|
@@ -8039,7 +8712,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8039
8712
|
* @param priority place where priority of the category will be stored.
|
|
8040
8713
|
* @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
|
|
8041
8714
|
*/
|
|
8042
|
-
get_mark_attributes(category: string
|
|
8715
|
+
get_mark_attributes(category: string, priority: number): MarkAttributes
|
|
8043
8716
|
/**
|
|
8044
8717
|
* Gets the position of the right margin in the given `view`.
|
|
8045
8718
|
* @returns the position of the right margin.
|
|
@@ -8168,7 +8841,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8168
8841
|
* @param attributes mark attributes.
|
|
8169
8842
|
* @param priority priority of the category.
|
|
8170
8843
|
*/
|
|
8171
|
-
set_mark_attributes(category: string
|
|
8844
|
+
set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
|
|
8172
8845
|
/**
|
|
8173
8846
|
* Sets the position of the right margin in the given `view`.
|
|
8174
8847
|
* @param pos the width in characters where to position the right margin.
|
|
@@ -8253,7 +8926,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8253
8926
|
* @param child the child widget
|
|
8254
8927
|
* @param child_property the name of a child property installed on the class of `container`
|
|
8255
8928
|
*/
|
|
8256
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
8929
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
8257
8930
|
|
|
8258
8931
|
// Overloads of child_notify
|
|
8259
8932
|
|
|
@@ -8267,7 +8940,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8267
8940
|
* Also see gtk_container_child_notify().
|
|
8268
8941
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8269
8942
|
*/
|
|
8270
|
-
child_notify(child_property: string
|
|
8943
|
+
child_notify(child_property: string): void
|
|
8271
8944
|
/**
|
|
8272
8945
|
* Emits a #GtkWidget::child-notify signal for the
|
|
8273
8946
|
* [child property][child-properties] `child_property`
|
|
@@ -8278,7 +8951,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8278
8951
|
* Also see gtk_container_child_notify().
|
|
8279
8952
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8280
8953
|
*/
|
|
8281
|
-
child_notify(child_property: string
|
|
8954
|
+
child_notify(child_property: string): void
|
|
8282
8955
|
|
|
8283
8956
|
// Own virtual methods of GtkSource-4.GtkSource.View
|
|
8284
8957
|
|
|
@@ -8886,12 +9559,12 @@ export interface Encoding {
|
|
|
8886
9559
|
* "ISO-8859-1".
|
|
8887
9560
|
* @returns the character set of the #GtkSourceEncoding.
|
|
8888
9561
|
*/
|
|
8889
|
-
get_charset(): string
|
|
9562
|
+
get_charset(): string
|
|
8890
9563
|
/**
|
|
8891
9564
|
* Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
|
|
8892
9565
|
* @returns the name of the #GtkSourceEncoding.
|
|
8893
9566
|
*/
|
|
8894
|
-
get_name(): string
|
|
9567
|
+
get_name(): string
|
|
8895
9568
|
to_string(): string | null
|
|
8896
9569
|
}
|
|
8897
9570
|
|
|
@@ -8929,7 +9602,7 @@ export class Encoding {
|
|
|
8929
9602
|
* @param charset a character set.
|
|
8930
9603
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
8931
9604
|
*/
|
|
8932
|
-
static get_from_charset(charset: string
|
|
9605
|
+
static get_from_charset(charset: string): Encoding | null
|
|
8933
9606
|
static get_utf8(): Encoding
|
|
8934
9607
|
}
|
|
8935
9608
|
|