@girs/gtksource-3.0 3.0.0-3.2.6 → 3.0.0-3.2.8
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-3.0-ambient.js +2 -0
- package/gtksource-3.0-import.js +3 -0
- package/gtksource-3.0.d.cts +110 -801
- package/gtksource-3.0.d.ts +110 -801
- package/package.json +24 -18
package/gtksource-3.0.d.cts
CHANGED
|
@@ -412,7 +412,7 @@ export function encoding_get_default_candidates(): Encoding[]
|
|
|
412
412
|
* @param charset a character set.
|
|
413
413
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
414
414
|
*/
|
|
415
|
-
export function encoding_get_from_charset(charset: string
|
|
415
|
+
export function encoding_get_from_charset(charset: string): Encoding | null
|
|
416
416
|
export function encoding_get_utf8(): Encoding
|
|
417
417
|
export function file_loader_error_quark(): GLib.Quark
|
|
418
418
|
export function file_saver_error_quark(): GLib.Quark
|
|
@@ -436,7 +436,7 @@ export function file_saver_error_quark(): GLib.Quark
|
|
|
436
436
|
* @param text the text to escape.
|
|
437
437
|
* @returns the escaped @text.
|
|
438
438
|
*/
|
|
439
|
-
export function utils_escape_search_text(text: string
|
|
439
|
+
export function utils_escape_search_text(text: string): string | null
|
|
440
440
|
/**
|
|
441
441
|
* Use this function before gtk_source_search_settings_set_search_text(), to
|
|
442
442
|
* unescape the following sequences of characters: `\n`, `\r`, `\t` and `\\`.
|
|
@@ -449,7 +449,7 @@ export function utils_escape_search_text(text: string | null): string | null
|
|
|
449
449
|
* @param text the text to unescape.
|
|
450
450
|
* @returns the unescaped @text.
|
|
451
451
|
*/
|
|
452
|
-
export function utils_unescape_search_text(text: string
|
|
452
|
+
export function utils_unescape_search_text(text: string): string | null
|
|
453
453
|
export module CompletionProposal {
|
|
454
454
|
|
|
455
455
|
// Signal callback interfaces
|
|
@@ -953,12 +953,6 @@ export module StyleSchemeChooser {
|
|
|
953
953
|
|
|
954
954
|
// Own constructor properties of GtkSource-3.0.GtkSource.StyleSchemeChooser
|
|
955
955
|
|
|
956
|
-
/**
|
|
957
|
-
* The :style-scheme property contains the currently selected style
|
|
958
|
-
* scheme. The property can be set to change
|
|
959
|
-
* the current selection programmatically.
|
|
960
|
-
*/
|
|
961
|
-
style_scheme?: StyleScheme | null
|
|
962
956
|
/**
|
|
963
957
|
* The :style-scheme property contains the currently selected style
|
|
964
958
|
* scheme. The property can be set to change
|
|
@@ -973,12 +967,6 @@ export interface StyleSchemeChooser {
|
|
|
973
967
|
|
|
974
968
|
// Own properties of GtkSource-3.0.GtkSource.StyleSchemeChooser
|
|
975
969
|
|
|
976
|
-
/**
|
|
977
|
-
* The :style-scheme property contains the currently selected style
|
|
978
|
-
* scheme. The property can be set to change
|
|
979
|
-
* the current selection programmatically.
|
|
980
|
-
*/
|
|
981
|
-
style_scheme: StyleScheme
|
|
982
970
|
/**
|
|
983
971
|
* The :style-scheme property contains the currently selected style
|
|
984
972
|
* scheme. The property can be set to change
|
|
@@ -1236,32 +1224,6 @@ export module Buffer {
|
|
|
1236
1224
|
|
|
1237
1225
|
// Own constructor properties of GtkSource-3.0.GtkSource.Buffer
|
|
1238
1226
|
|
|
1239
|
-
/**
|
|
1240
|
-
* Whether to highlight matching brackets in the buffer.
|
|
1241
|
-
*/
|
|
1242
|
-
highlight_matching_brackets?: boolean | null
|
|
1243
|
-
/**
|
|
1244
|
-
* Whether to highlight syntax in the buffer.
|
|
1245
|
-
*/
|
|
1246
|
-
highlight_syntax?: boolean | null
|
|
1247
|
-
/**
|
|
1248
|
-
* Whether the buffer has an implicit trailing newline. See
|
|
1249
|
-
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1250
|
-
*/
|
|
1251
|
-
implicit_trailing_newline?: boolean | null
|
|
1252
|
-
language?: Language | 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
|
-
max_undo_levels?: 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
|
-
style_scheme?: StyleScheme | null
|
|
1264
|
-
undo_manager?: UndoManager | null
|
|
1265
1227
|
/**
|
|
1266
1228
|
* Whether to highlight matching brackets in the buffer.
|
|
1267
1229
|
*/
|
|
@@ -1275,6 +1237,7 @@ export module Buffer {
|
|
|
1275
1237
|
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1276
1238
|
*/
|
|
1277
1239
|
implicitTrailingNewline?: boolean | null
|
|
1240
|
+
language?: Language | null
|
|
1278
1241
|
/**
|
|
1279
1242
|
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1280
1243
|
* will only affect the default undo manager.
|
|
@@ -1295,60 +1258,33 @@ export interface Buffer {
|
|
|
1295
1258
|
|
|
1296
1259
|
// Own properties of GtkSource-3.0.GtkSource.Buffer
|
|
1297
1260
|
|
|
1298
|
-
readonly can_redo: boolean
|
|
1299
1261
|
readonly canRedo: boolean
|
|
1300
|
-
readonly can_undo: boolean
|
|
1301
1262
|
readonly canUndo: boolean
|
|
1302
|
-
/**
|
|
1303
|
-
* Whether to highlight matching brackets in the buffer.
|
|
1304
|
-
*/
|
|
1305
|
-
highlight_matching_brackets: boolean
|
|
1306
1263
|
/**
|
|
1307
1264
|
* Whether to highlight matching brackets in the buffer.
|
|
1308
1265
|
*/
|
|
1309
1266
|
highlightMatchingBrackets: boolean
|
|
1310
|
-
/**
|
|
1311
|
-
* Whether to highlight syntax in the buffer.
|
|
1312
|
-
*/
|
|
1313
|
-
highlight_syntax: boolean
|
|
1314
1267
|
/**
|
|
1315
1268
|
* Whether to highlight syntax in the buffer.
|
|
1316
1269
|
*/
|
|
1317
1270
|
highlightSyntax: boolean
|
|
1318
|
-
/**
|
|
1319
|
-
* Whether the buffer has an implicit trailing newline. See
|
|
1320
|
-
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1321
|
-
*/
|
|
1322
|
-
implicit_trailing_newline: boolean
|
|
1323
1271
|
/**
|
|
1324
1272
|
* Whether the buffer has an implicit trailing newline. See
|
|
1325
1273
|
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1326
1274
|
*/
|
|
1327
1275
|
implicitTrailingNewline: boolean
|
|
1328
1276
|
language: Language
|
|
1329
|
-
/**
|
|
1330
|
-
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1331
|
-
* will only affect the default undo manager.
|
|
1332
|
-
*/
|
|
1333
|
-
max_undo_levels: number
|
|
1334
1277
|
/**
|
|
1335
1278
|
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1336
1279
|
* will only affect the default undo manager.
|
|
1337
1280
|
*/
|
|
1338
1281
|
maxUndoLevels: number
|
|
1339
|
-
/**
|
|
1340
|
-
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1341
|
-
* foreground, background, cursor color, current line color, and matching
|
|
1342
|
-
* brackets style.
|
|
1343
|
-
*/
|
|
1344
|
-
style_scheme: StyleScheme
|
|
1345
1282
|
/**
|
|
1346
1283
|
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1347
1284
|
* foreground, background, cursor color, current line color, and matching
|
|
1348
1285
|
* brackets style.
|
|
1349
1286
|
*/
|
|
1350
1287
|
styleScheme: StyleScheme
|
|
1351
|
-
undo_manager: UndoManager
|
|
1352
1288
|
undoManager: UndoManager
|
|
1353
1289
|
|
|
1354
1290
|
// Own fields of GtkSource-3.0.GtkSource.Buffer
|
|
@@ -1366,7 +1302,7 @@ export interface Buffer {
|
|
|
1366
1302
|
* @param category category to search for, or %NULL
|
|
1367
1303
|
* @returns whether @iter was moved.
|
|
1368
1304
|
*/
|
|
1369
|
-
backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean
|
|
1305
|
+
backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
|
|
1370
1306
|
/**
|
|
1371
1307
|
* Marks the beginning of a not undoable action on the buffer,
|
|
1372
1308
|
* disabling the undo manager. Typically you would call this function
|
|
@@ -1377,6 +1313,17 @@ export interface Buffer {
|
|
|
1377
1313
|
* gtk_source_buffer_end_not_undoable_action() blocks.
|
|
1378
1314
|
*/
|
|
1379
1315
|
begin_not_undoable_action(): void
|
|
1316
|
+
/**
|
|
1317
|
+
* Determines whether a source buffer can redo the last action
|
|
1318
|
+
* (i.e. if the last operation was an undo).
|
|
1319
|
+
* @returns %TRUE if a redo is possible.
|
|
1320
|
+
*/
|
|
1321
|
+
can_redo(): boolean
|
|
1322
|
+
/**
|
|
1323
|
+
* Determines whether a source buffer can undo the last action.
|
|
1324
|
+
* @returns %TRUE if it's possible to undo the last action.
|
|
1325
|
+
*/
|
|
1326
|
+
can_undo(): boolean
|
|
1380
1327
|
/**
|
|
1381
1328
|
* Changes the case of the text between the specified iterators.
|
|
1382
1329
|
* @param case_type how to change the case.
|
|
@@ -1403,7 +1350,7 @@ export interface Buffer {
|
|
|
1403
1350
|
* @param where location to place the mark.
|
|
1404
1351
|
* @returns a new #GtkSourceMark, owned by the buffer.
|
|
1405
1352
|
*/
|
|
1406
|
-
create_source_mark(name: string | null, category: string
|
|
1353
|
+
create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
|
|
1407
1354
|
/**
|
|
1408
1355
|
* Marks the end of a not undoable action on the buffer. When the
|
|
1409
1356
|
* last not undoable block is closed through the call to this
|
|
@@ -1433,7 +1380,7 @@ export interface Buffer {
|
|
|
1433
1380
|
* @param category category to search for, or %NULL
|
|
1434
1381
|
* @returns whether @iter was moved.
|
|
1435
1382
|
*/
|
|
1436
|
-
forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean
|
|
1383
|
+
forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
|
|
1437
1384
|
/**
|
|
1438
1385
|
* Get all defined context classes at `iter`.
|
|
1439
1386
|
*
|
|
@@ -1509,7 +1456,7 @@ export interface Buffer {
|
|
|
1509
1456
|
* @param context_class the context class.
|
|
1510
1457
|
* @returns whether we found a context class toggle before @iter
|
|
1511
1458
|
*/
|
|
1512
|
-
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1459
|
+
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
|
|
1513
1460
|
/**
|
|
1514
1461
|
* Moves forward to the next toggle (on or off) of the context class. If no
|
|
1515
1462
|
* matching context class toggles are found, returns %FALSE, otherwise %TRUE.
|
|
@@ -1522,7 +1469,7 @@ export interface Buffer {
|
|
|
1522
1469
|
* @param context_class the context class.
|
|
1523
1470
|
* @returns whether we found a context class toggle after @iter
|
|
1524
1471
|
*/
|
|
1525
|
-
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1472
|
+
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
|
|
1526
1473
|
/**
|
|
1527
1474
|
* Check if the class `context_class` is set on `iter`.
|
|
1528
1475
|
*
|
|
@@ -1531,7 +1478,7 @@ export interface Buffer {
|
|
|
1531
1478
|
* @param context_class class to search for.
|
|
1532
1479
|
* @returns whether @iter has the context class.
|
|
1533
1480
|
*/
|
|
1534
|
-
iter_has_context_class(iter: Gtk.TextIter, context_class: string
|
|
1481
|
+
iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
|
|
1535
1482
|
/**
|
|
1536
1483
|
* Joins the lines of text between the specified iterators.
|
|
1537
1484
|
* @param start a #GtkTextIter.
|
|
@@ -1852,52 +1799,6 @@ export module Completion {
|
|
|
1852
1799
|
* <keycombo><keycap>Alt</keycap><keycap>1</keycap></keycombo>.
|
|
1853
1800
|
*/
|
|
1854
1801
|
accelerators?: number | null
|
|
1855
|
-
/**
|
|
1856
|
-
* Determines the popup delay (in milliseconds) at which the completion
|
|
1857
|
-
* will be shown for interactive completion.
|
|
1858
|
-
*/
|
|
1859
|
-
auto_complete_delay?: number | null
|
|
1860
|
-
/**
|
|
1861
|
-
* The scroll page size of the proposals in the completion window. In
|
|
1862
|
-
* other words, when <keycap>PageDown</keycap> or
|
|
1863
|
-
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1864
|
-
* proposal becomes the one which is located one page size backward or
|
|
1865
|
-
* forward.
|
|
1866
|
-
*
|
|
1867
|
-
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1868
|
-
*/
|
|
1869
|
-
proposal_page_size?: number | null
|
|
1870
|
-
/**
|
|
1871
|
-
* The scroll page size of the provider pages in the completion window.
|
|
1872
|
-
*
|
|
1873
|
-
* See the #GtkSourceCompletion::move-page signal.
|
|
1874
|
-
*/
|
|
1875
|
-
provider_page_size?: number | null
|
|
1876
|
-
/**
|
|
1877
|
-
* Determines whether the visibility of the info window should be
|
|
1878
|
-
* saved when the completion is hidden, and restored when the completion
|
|
1879
|
-
* is shown again.
|
|
1880
|
-
*/
|
|
1881
|
-
remember_info_visibility?: boolean | null
|
|
1882
|
-
/**
|
|
1883
|
-
* Determines whether the first proposal should be selected when the
|
|
1884
|
-
* completion is first shown.
|
|
1885
|
-
*/
|
|
1886
|
-
select_on_show?: boolean | null
|
|
1887
|
-
/**
|
|
1888
|
-
* Determines whether provider headers should be shown in the proposal
|
|
1889
|
-
* list. It can be useful to disable when there is only one provider.
|
|
1890
|
-
*/
|
|
1891
|
-
show_headers?: boolean | null
|
|
1892
|
-
/**
|
|
1893
|
-
* Determines whether provider and proposal icons should be shown in
|
|
1894
|
-
* the completion popup.
|
|
1895
|
-
*/
|
|
1896
|
-
show_icons?: boolean | null
|
|
1897
|
-
/**
|
|
1898
|
-
* The #GtkSourceView bound to the completion object.
|
|
1899
|
-
*/
|
|
1900
|
-
view?: View | null
|
|
1901
1802
|
/**
|
|
1902
1803
|
* Determines the popup delay (in milliseconds) at which the completion
|
|
1903
1804
|
* will be shown for interactive completion.
|
|
@@ -1940,6 +1841,10 @@ export module Completion {
|
|
|
1940
1841
|
* the completion popup.
|
|
1941
1842
|
*/
|
|
1942
1843
|
showIcons?: boolean | null
|
|
1844
|
+
/**
|
|
1845
|
+
* The #GtkSourceView bound to the completion object.
|
|
1846
|
+
*/
|
|
1847
|
+
view?: View | null
|
|
1943
1848
|
}
|
|
1944
1849
|
|
|
1945
1850
|
}
|
|
@@ -1954,26 +1859,11 @@ export interface Completion extends Gtk.Buildable {
|
|
|
1954
1859
|
* <keycombo><keycap>Alt</keycap><keycap>1</keycap></keycombo>.
|
|
1955
1860
|
*/
|
|
1956
1861
|
accelerators: number
|
|
1957
|
-
/**
|
|
1958
|
-
* Determines the popup delay (in milliseconds) at which the completion
|
|
1959
|
-
* will be shown for interactive completion.
|
|
1960
|
-
*/
|
|
1961
|
-
auto_complete_delay: number
|
|
1962
1862
|
/**
|
|
1963
1863
|
* Determines the popup delay (in milliseconds) at which the completion
|
|
1964
1864
|
* will be shown for interactive completion.
|
|
1965
1865
|
*/
|
|
1966
1866
|
autoCompleteDelay: number
|
|
1967
|
-
/**
|
|
1968
|
-
* The scroll page size of the proposals in the completion window. In
|
|
1969
|
-
* other words, when <keycap>PageDown</keycap> or
|
|
1970
|
-
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1971
|
-
* proposal becomes the one which is located one page size backward or
|
|
1972
|
-
* forward.
|
|
1973
|
-
*
|
|
1974
|
-
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1975
|
-
*/
|
|
1976
|
-
proposal_page_size: number
|
|
1977
1867
|
/**
|
|
1978
1868
|
* The scroll page size of the proposals in the completion window. In
|
|
1979
1869
|
* other words, when <keycap>PageDown</keycap> or
|
|
@@ -1984,55 +1874,28 @@ export interface Completion extends Gtk.Buildable {
|
|
|
1984
1874
|
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1985
1875
|
*/
|
|
1986
1876
|
proposalPageSize: number
|
|
1987
|
-
/**
|
|
1988
|
-
* The scroll page size of the provider pages in the completion window.
|
|
1989
|
-
*
|
|
1990
|
-
* See the #GtkSourceCompletion::move-page signal.
|
|
1991
|
-
*/
|
|
1992
|
-
provider_page_size: number
|
|
1993
1877
|
/**
|
|
1994
1878
|
* The scroll page size of the provider pages in the completion window.
|
|
1995
1879
|
*
|
|
1996
1880
|
* See the #GtkSourceCompletion::move-page signal.
|
|
1997
1881
|
*/
|
|
1998
1882
|
providerPageSize: number
|
|
1999
|
-
/**
|
|
2000
|
-
* Determines whether the visibility of the info window should be
|
|
2001
|
-
* saved when the completion is hidden, and restored when the completion
|
|
2002
|
-
* is shown again.
|
|
2003
|
-
*/
|
|
2004
|
-
remember_info_visibility: boolean
|
|
2005
1883
|
/**
|
|
2006
1884
|
* Determines whether the visibility of the info window should be
|
|
2007
1885
|
* saved when the completion is hidden, and restored when the completion
|
|
2008
1886
|
* is shown again.
|
|
2009
1887
|
*/
|
|
2010
1888
|
rememberInfoVisibility: boolean
|
|
2011
|
-
/**
|
|
2012
|
-
* Determines whether the first proposal should be selected when the
|
|
2013
|
-
* completion is first shown.
|
|
2014
|
-
*/
|
|
2015
|
-
select_on_show: boolean
|
|
2016
1889
|
/**
|
|
2017
1890
|
* Determines whether the first proposal should be selected when the
|
|
2018
1891
|
* completion is first shown.
|
|
2019
1892
|
*/
|
|
2020
1893
|
selectOnShow: boolean
|
|
2021
|
-
/**
|
|
2022
|
-
* Determines whether provider headers should be shown in the proposal
|
|
2023
|
-
* list. It can be useful to disable when there is only one provider.
|
|
2024
|
-
*/
|
|
2025
|
-
show_headers: boolean
|
|
2026
1894
|
/**
|
|
2027
1895
|
* Determines whether provider headers should be shown in the proposal
|
|
2028
1896
|
* list. It can be useful to disable when there is only one provider.
|
|
2029
1897
|
*/
|
|
2030
1898
|
showHeaders: boolean
|
|
2031
|
-
/**
|
|
2032
|
-
* Determines whether provider and proposal icons should be shown in
|
|
2033
|
-
* the completion popup.
|
|
2034
|
-
*/
|
|
2035
|
-
show_icons: boolean
|
|
2036
1899
|
/**
|
|
2037
1900
|
* Determines whether provider and proposal icons should be shown in
|
|
2038
1901
|
* the completion popup.
|
|
@@ -2422,7 +2285,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2422
2285
|
* @param child the child widget
|
|
2423
2286
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2424
2287
|
*/
|
|
2425
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2288
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2426
2289
|
|
|
2427
2290
|
// Overloads of child_notify
|
|
2428
2291
|
|
|
@@ -2436,7 +2299,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2436
2299
|
* Also see gtk_container_child_notify().
|
|
2437
2300
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2438
2301
|
*/
|
|
2439
|
-
child_notify(child_property: string
|
|
2302
|
+
child_notify(child_property: string): void
|
|
2440
2303
|
/**
|
|
2441
2304
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2442
2305
|
* [child property][child-properties] `child_property`
|
|
@@ -2447,7 +2310,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2447
2310
|
* Also see gtk_container_child_notify().
|
|
2448
2311
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2449
2312
|
*/
|
|
2450
|
-
child_notify(child_property: string
|
|
2313
|
+
child_notify(child_property: string): void
|
|
2451
2314
|
|
|
2452
2315
|
// Own virtual methods of GtkSource-3.0.GtkSource.CompletionInfo
|
|
2453
2316
|
|
|
@@ -2755,7 +2618,7 @@ export module CompletionItem {
|
|
|
2755
2618
|
/**
|
|
2756
2619
|
* The icon name for the icon to be shown for this proposal.
|
|
2757
2620
|
*/
|
|
2758
|
-
|
|
2621
|
+
iconName?: string | null
|
|
2759
2622
|
/**
|
|
2760
2623
|
* Optional extra information to be shown for this proposal.
|
|
2761
2624
|
*/
|
|
@@ -2772,10 +2635,6 @@ export module CompletionItem {
|
|
|
2772
2635
|
* Proposal text.
|
|
2773
2636
|
*/
|
|
2774
2637
|
text?: string | null
|
|
2775
|
-
/**
|
|
2776
|
-
* The icon name for the icon to be shown for this proposal.
|
|
2777
|
-
*/
|
|
2778
|
-
iconName?: string | null
|
|
2779
2638
|
}
|
|
2780
2639
|
|
|
2781
2640
|
}
|
|
@@ -2792,10 +2651,6 @@ export interface CompletionItem extends CompletionProposal {
|
|
|
2792
2651
|
* The #GdkPixbuf for the icon to be shown for this proposal.
|
|
2793
2652
|
*/
|
|
2794
2653
|
icon: GdkPixbuf.Pixbuf
|
|
2795
|
-
/**
|
|
2796
|
-
* The icon name for the icon to be shown for this proposal.
|
|
2797
|
-
*/
|
|
2798
|
-
icon_name: string | null
|
|
2799
2654
|
/**
|
|
2800
2655
|
* The icon name for the icon to be shown for this proposal.
|
|
2801
2656
|
*/
|
|
@@ -2882,7 +2737,7 @@ export class CompletionItem extends GObject.Object {
|
|
|
2882
2737
|
* @param info The item extra information.
|
|
2883
2738
|
* @returns a new #GtkSourceCompletionItem.
|
|
2884
2739
|
*/
|
|
2885
|
-
constructor(label: string
|
|
2740
|
+
constructor(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null)
|
|
2886
2741
|
/**
|
|
2887
2742
|
* Create a new #GtkSourceCompletionItem with label `label,` icon `icon` and
|
|
2888
2743
|
* extra information `info`. Both `icon` and `info` can be %NULL in which case
|
|
@@ -2894,7 +2749,7 @@ export class CompletionItem extends GObject.Object {
|
|
|
2894
2749
|
* @param info The item extra information.
|
|
2895
2750
|
* @returns a new #GtkSourceCompletionItem.
|
|
2896
2751
|
*/
|
|
2897
|
-
static new(label: string
|
|
2752
|
+
static new(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
|
|
2898
2753
|
/**
|
|
2899
2754
|
* Creates a new #GtkSourceCompletionItem from a stock item. If `label` is %NULL,
|
|
2900
2755
|
* the stock label will be used.
|
|
@@ -2905,7 +2760,7 @@ export class CompletionItem extends GObject.Object {
|
|
|
2905
2760
|
* @param info The item extra information.
|
|
2906
2761
|
* @returns a new #GtkSourceCompletionItem.
|
|
2907
2762
|
*/
|
|
2908
|
-
static new_from_stock(label: string | null, text: string
|
|
2763
|
+
static new_from_stock(label: string | null, text: string, stock: string, info: string | null): CompletionItem
|
|
2909
2764
|
/**
|
|
2910
2765
|
* Create a new #GtkSourceCompletionItem with markup label `markup,` icon
|
|
2911
2766
|
* `icon` and extra information `info`. Both `icon` and `info` can be %NULL in
|
|
@@ -2917,7 +2772,7 @@ export class CompletionItem extends GObject.Object {
|
|
|
2917
2772
|
* @param info The item extra information.
|
|
2918
2773
|
* @returns a new #GtkSourceCompletionItem.
|
|
2919
2774
|
*/
|
|
2920
|
-
static new_with_markup(markup: string
|
|
2775
|
+
static new_with_markup(markup: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
|
|
2921
2776
|
_init(config?: CompletionItem.ConstructorProperties): void
|
|
2922
2777
|
/**
|
|
2923
2778
|
* Creates a new #GtkSourceCompletionItem. The desired properties need to be set
|
|
@@ -2940,14 +2795,10 @@ export module CompletionWords {
|
|
|
2940
2795
|
*/
|
|
2941
2796
|
activation?: CompletionActivation | null
|
|
2942
2797
|
icon?: GdkPixbuf.Pixbuf | null
|
|
2943
|
-
interactive_delay?: number | null
|
|
2944
|
-
minimum_word_size?: number | null
|
|
2945
|
-
name?: string | null
|
|
2946
|
-
priority?: number | null
|
|
2947
|
-
proposals_batch_size?: number | null
|
|
2948
|
-
scan_batch_size?: number | null
|
|
2949
2798
|
interactiveDelay?: number | null
|
|
2950
2799
|
minimumWordSize?: number | null
|
|
2800
|
+
name?: string | null
|
|
2801
|
+
priority?: number | null
|
|
2951
2802
|
proposalsBatchSize?: number | null
|
|
2952
2803
|
scanBatchSize?: number | null
|
|
2953
2804
|
}
|
|
@@ -2963,15 +2814,11 @@ export interface CompletionWords extends CompletionProvider {
|
|
|
2963
2814
|
*/
|
|
2964
2815
|
activation: CompletionActivation
|
|
2965
2816
|
icon: GdkPixbuf.Pixbuf
|
|
2966
|
-
interactive_delay: number
|
|
2967
2817
|
interactiveDelay: number
|
|
2968
|
-
minimum_word_size: number
|
|
2969
2818
|
minimumWordSize: number
|
|
2970
2819
|
name: string | null
|
|
2971
2820
|
priority: number
|
|
2972
|
-
proposals_batch_size: number
|
|
2973
2821
|
proposalsBatchSize: number
|
|
2974
|
-
scan_batch_size: number
|
|
2975
2822
|
scanBatchSize: number
|
|
2976
2823
|
|
|
2977
2824
|
// Own fields of GtkSource-3.0.GtkSource.CompletionWords
|
|
@@ -3059,10 +2906,6 @@ export interface File {
|
|
|
3059
2906
|
|
|
3060
2907
|
// Own properties of GtkSource-3.0.GtkSource.File
|
|
3061
2908
|
|
|
3062
|
-
/**
|
|
3063
|
-
* The compression type.
|
|
3064
|
-
*/
|
|
3065
|
-
readonly compression_type: CompressionType
|
|
3066
2909
|
/**
|
|
3067
2910
|
* The compression type.
|
|
3068
2911
|
*/
|
|
@@ -3076,19 +2919,10 @@ export interface File {
|
|
|
3076
2919
|
* The location.
|
|
3077
2920
|
*/
|
|
3078
2921
|
location: Gio.File
|
|
3079
|
-
/**
|
|
3080
|
-
* The line ending type.
|
|
3081
|
-
*/
|
|
3082
|
-
readonly newline_type: NewlineType
|
|
3083
2922
|
/**
|
|
3084
2923
|
* The line ending type.
|
|
3085
2924
|
*/
|
|
3086
2925
|
readonly newlineType: NewlineType
|
|
3087
|
-
/**
|
|
3088
|
-
* Whether the file is read-only or not. The value of this property is
|
|
3089
|
-
* not updated automatically (there is no file monitors).
|
|
3090
|
-
*/
|
|
3091
|
-
readonly read_only: boolean
|
|
3092
2926
|
/**
|
|
3093
2927
|
* Whether the file is read-only or not. The value of this property is
|
|
3094
2928
|
* not updated automatically (there is no file monitors).
|
|
@@ -3222,18 +3056,13 @@ export module FileLoader {
|
|
|
3222
3056
|
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3223
3057
|
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3224
3058
|
*/
|
|
3225
|
-
|
|
3059
|
+
inputStream?: Gio.InputStream | null
|
|
3226
3060
|
/**
|
|
3227
3061
|
* The #GFile to load. If the #GtkSourceFileLoader:input-stream is
|
|
3228
3062
|
* %NULL, by default the location is taken from the #GtkSourceFile at
|
|
3229
3063
|
* construction time.
|
|
3230
3064
|
*/
|
|
3231
3065
|
location?: Gio.File | null
|
|
3232
|
-
/**
|
|
3233
|
-
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3234
|
-
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3235
|
-
*/
|
|
3236
|
-
inputStream?: Gio.InputStream | null
|
|
3237
3066
|
}
|
|
3238
3067
|
|
|
3239
3068
|
}
|
|
@@ -3252,11 +3081,6 @@ export interface FileLoader {
|
|
|
3252
3081
|
* reference to the file.
|
|
3253
3082
|
*/
|
|
3254
3083
|
readonly file: File
|
|
3255
|
-
/**
|
|
3256
|
-
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3257
|
-
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3258
|
-
*/
|
|
3259
|
-
readonly input_stream: Gio.InputStream
|
|
3260
3084
|
/**
|
|
3261
3085
|
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3262
3086
|
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
@@ -3416,7 +3240,7 @@ export module FileSaver {
|
|
|
3416
3240
|
/**
|
|
3417
3241
|
* The compression type.
|
|
3418
3242
|
*/
|
|
3419
|
-
|
|
3243
|
+
compressionType?: CompressionType | null
|
|
3420
3244
|
/**
|
|
3421
3245
|
* The file's encoding.
|
|
3422
3246
|
*/
|
|
@@ -3435,14 +3259,6 @@ export module FileSaver {
|
|
|
3435
3259
|
* from the #GtkSourceFile at construction time.
|
|
3436
3260
|
*/
|
|
3437
3261
|
location?: Gio.File | null
|
|
3438
|
-
/**
|
|
3439
|
-
* The newline type.
|
|
3440
|
-
*/
|
|
3441
|
-
newline_type?: NewlineType | null
|
|
3442
|
-
/**
|
|
3443
|
-
* The compression type.
|
|
3444
|
-
*/
|
|
3445
|
-
compressionType?: CompressionType | null
|
|
3446
3262
|
/**
|
|
3447
3263
|
* The newline type.
|
|
3448
3264
|
*/
|
|
@@ -3460,10 +3276,6 @@ export interface FileSaver {
|
|
|
3460
3276
|
* weak reference to the buffer.
|
|
3461
3277
|
*/
|
|
3462
3278
|
readonly buffer: Buffer
|
|
3463
|
-
/**
|
|
3464
|
-
* The compression type.
|
|
3465
|
-
*/
|
|
3466
|
-
compression_type: CompressionType
|
|
3467
3279
|
/**
|
|
3468
3280
|
* The compression type.
|
|
3469
3281
|
*/
|
|
@@ -3486,10 +3298,6 @@ export interface FileSaver {
|
|
|
3486
3298
|
* from the #GtkSourceFile at construction time.
|
|
3487
3299
|
*/
|
|
3488
3300
|
readonly location: Gio.File
|
|
3489
|
-
/**
|
|
3490
|
-
* The newline type.
|
|
3491
|
-
*/
|
|
3492
|
-
newline_type: NewlineType
|
|
3493
3301
|
/**
|
|
3494
3302
|
* The newline type.
|
|
3495
3303
|
*/
|
|
@@ -3661,7 +3469,7 @@ export module Gutter {
|
|
|
3661
3469
|
/**
|
|
3662
3470
|
* The text window type on which the window is placed.
|
|
3663
3471
|
*/
|
|
3664
|
-
|
|
3472
|
+
windowType?: Gtk.TextWindowType | null
|
|
3665
3473
|
/**
|
|
3666
3474
|
* The x-padding.
|
|
3667
3475
|
*/
|
|
@@ -3670,10 +3478,6 @@ export module Gutter {
|
|
|
3670
3478
|
* The y-padding.
|
|
3671
3479
|
*/
|
|
3672
3480
|
ypad?: number | null
|
|
3673
|
-
/**
|
|
3674
|
-
* The text window type on which the window is placed.
|
|
3675
|
-
*/
|
|
3676
|
-
windowType?: Gtk.TextWindowType | null
|
|
3677
3481
|
}
|
|
3678
3482
|
|
|
3679
3483
|
}
|
|
@@ -3686,10 +3490,6 @@ export interface Gutter {
|
|
|
3686
3490
|
* The #GtkSourceView of the gutter.
|
|
3687
3491
|
*/
|
|
3688
3492
|
readonly view: View
|
|
3689
|
-
/**
|
|
3690
|
-
* The text window type on which the window is placed.
|
|
3691
|
-
*/
|
|
3692
|
-
readonly window_type: Gtk.TextWindowType
|
|
3693
3493
|
/**
|
|
3694
3494
|
* The text window type on which the window is placed.
|
|
3695
3495
|
*/
|
|
@@ -3838,9 +3638,9 @@ export module GutterRenderer {
|
|
|
3838
3638
|
* the alignment should work on either the full cell, the first line
|
|
3839
3639
|
* or the last line.
|
|
3840
3640
|
*/
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3641
|
+
alignmentMode?: GutterRendererAlignmentMode | null
|
|
3642
|
+
backgroundRgba?: Gdk.RGBA | null
|
|
3643
|
+
backgroundSet?: boolean | null
|
|
3844
3644
|
size?: number | null
|
|
3845
3645
|
/**
|
|
3846
3646
|
* The visibility of the renderer.
|
|
@@ -3866,15 +3666,6 @@ export module GutterRenderer {
|
|
|
3866
3666
|
* The top and bottom padding of the renderer.
|
|
3867
3667
|
*/
|
|
3868
3668
|
ypad?: number | null
|
|
3869
|
-
/**
|
|
3870
|
-
* The alignment mode of the renderer. This can be used to indicate
|
|
3871
|
-
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
3872
|
-
* the alignment should work on either the full cell, the first line
|
|
3873
|
-
* or the last line.
|
|
3874
|
-
*/
|
|
3875
|
-
alignmentMode?: GutterRendererAlignmentMode | null
|
|
3876
|
-
backgroundRgba?: Gdk.RGBA | null
|
|
3877
|
-
backgroundSet?: boolean | null
|
|
3878
3669
|
}
|
|
3879
3670
|
|
|
3880
3671
|
}
|
|
@@ -3883,13 +3674,6 @@ export interface GutterRenderer {
|
|
|
3883
3674
|
|
|
3884
3675
|
// Own properties of GtkSource-3.0.GtkSource.GutterRenderer
|
|
3885
3676
|
|
|
3886
|
-
/**
|
|
3887
|
-
* The alignment mode of the renderer. This can be used to indicate
|
|
3888
|
-
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
3889
|
-
* the alignment should work on either the full cell, the first line
|
|
3890
|
-
* or the last line.
|
|
3891
|
-
*/
|
|
3892
|
-
alignment_mode: GutterRendererAlignmentMode
|
|
3893
3677
|
/**
|
|
3894
3678
|
* The alignment mode of the renderer. This can be used to indicate
|
|
3895
3679
|
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
@@ -3897,9 +3681,7 @@ export interface GutterRenderer {
|
|
|
3897
3681
|
* or the last line.
|
|
3898
3682
|
*/
|
|
3899
3683
|
alignmentMode: GutterRendererAlignmentMode
|
|
3900
|
-
background_rgba: Gdk.RGBA
|
|
3901
3684
|
backgroundRgba: Gdk.RGBA
|
|
3902
|
-
background_set: boolean
|
|
3903
3685
|
backgroundSet: boolean
|
|
3904
3686
|
size: number
|
|
3905
3687
|
/**
|
|
@@ -3910,11 +3692,6 @@ export interface GutterRenderer {
|
|
|
3910
3692
|
* The visibility of the renderer.
|
|
3911
3693
|
*/
|
|
3912
3694
|
visible: boolean
|
|
3913
|
-
/**
|
|
3914
|
-
* The window type of the view on which the renderer is placed (left,
|
|
3915
|
-
* or right).
|
|
3916
|
-
*/
|
|
3917
|
-
readonly window_type: Gtk.TextWindowType
|
|
3918
3695
|
/**
|
|
3919
3696
|
* The window type of the view on which the renderer is placed (left,
|
|
3920
3697
|
* or right).
|
|
@@ -4304,13 +4081,8 @@ export module GutterRendererPixbuf {
|
|
|
4304
4081
|
// Own constructor properties of GtkSource-3.0.GtkSource.GutterRendererPixbuf
|
|
4305
4082
|
|
|
4306
4083
|
gicon?: Gio.Icon | null
|
|
4307
|
-
icon_name?: string | null
|
|
4308
|
-
pixbuf?: GdkPixbuf.Pixbuf | null
|
|
4309
|
-
/**
|
|
4310
|
-
* The stock id.
|
|
4311
|
-
*/
|
|
4312
|
-
stock_id?: string | null
|
|
4313
4084
|
iconName?: string | null
|
|
4085
|
+
pixbuf?: GdkPixbuf.Pixbuf | null
|
|
4314
4086
|
/**
|
|
4315
4087
|
* The stock id.
|
|
4316
4088
|
*/
|
|
@@ -4324,13 +4096,8 @@ export interface GutterRendererPixbuf {
|
|
|
4324
4096
|
// Own properties of GtkSource-3.0.GtkSource.GutterRendererPixbuf
|
|
4325
4097
|
|
|
4326
4098
|
gicon: Gio.Icon
|
|
4327
|
-
icon_name: string | null
|
|
4328
4099
|
iconName: string | null
|
|
4329
4100
|
pixbuf: GdkPixbuf.Pixbuf
|
|
4330
|
-
/**
|
|
4331
|
-
* The stock id.
|
|
4332
|
-
*/
|
|
4333
|
-
stock_id: string | null
|
|
4334
4101
|
/**
|
|
4335
4102
|
* The stock id.
|
|
4336
4103
|
*/
|
|
@@ -4343,13 +4110,13 @@ export interface GutterRendererPixbuf {
|
|
|
4343
4110
|
* @returns a #GIcon
|
|
4344
4111
|
*/
|
|
4345
4112
|
get_gicon(): Gio.Icon
|
|
4346
|
-
get_icon_name(): string
|
|
4113
|
+
get_icon_name(): string
|
|
4347
4114
|
/**
|
|
4348
4115
|
* Get the pixbuf of the renderer.
|
|
4349
4116
|
* @returns a #GdkPixbuf
|
|
4350
4117
|
*/
|
|
4351
4118
|
get_pixbuf(): GdkPixbuf.Pixbuf
|
|
4352
|
-
get_stock_id(): string
|
|
4119
|
+
get_stock_id(): string
|
|
4353
4120
|
set_gicon(icon: Gio.Icon | null): void
|
|
4354
4121
|
set_icon_name(icon_name: string | null): void
|
|
4355
4122
|
set_pixbuf(pixbuf: GdkPixbuf.Pixbuf | null): void
|
|
@@ -4461,15 +4228,15 @@ export interface GutterRendererText {
|
|
|
4461
4228
|
* #GtkSourceGutterRendererText.
|
|
4462
4229
|
* @param text the text to measure.
|
|
4463
4230
|
*/
|
|
4464
|
-
measure(text: string
|
|
4231
|
+
measure(text: string): [ /* width */ number, /* height */ number ]
|
|
4465
4232
|
/**
|
|
4466
4233
|
* Measures the pango markup provided using the pango layout used by the
|
|
4467
4234
|
* #GtkSourceGutterRendererText.
|
|
4468
4235
|
* @param markup the pango markup to measure.
|
|
4469
4236
|
*/
|
|
4470
|
-
measure_markup(markup: string
|
|
4471
|
-
set_markup(markup: string
|
|
4472
|
-
set_text(text: string
|
|
4237
|
+
measure_markup(markup: string): [ /* width */ number, /* height */ number ]
|
|
4238
|
+
set_markup(markup: string, length: number): void
|
|
4239
|
+
set_text(text: string, length: number): void
|
|
4473
4240
|
|
|
4474
4241
|
// Class property signals of GtkSource-3.0.GtkSource.GutterRendererText
|
|
4475
4242
|
|
|
@@ -4586,8 +4353,8 @@ export interface Language {
|
|
|
4586
4353
|
* or modified.
|
|
4587
4354
|
* @returns the ID of @language.
|
|
4588
4355
|
*/
|
|
4589
|
-
get_id(): string
|
|
4590
|
-
get_metadata(name: string
|
|
4356
|
+
get_id(): string
|
|
4357
|
+
get_metadata(name: string): string | null
|
|
4591
4358
|
/**
|
|
4592
4359
|
* Returns the mime types associated to this language. This is just
|
|
4593
4360
|
* an utility wrapper around gtk_source_language_get_metadata() to
|
|
@@ -4602,7 +4369,7 @@ export interface Language {
|
|
|
4602
4369
|
* or modified.
|
|
4603
4370
|
* @returns the name of @language.
|
|
4604
4371
|
*/
|
|
4605
|
-
get_name(): string
|
|
4372
|
+
get_name(): string
|
|
4606
4373
|
/**
|
|
4607
4374
|
* Returns the localized section of the language.
|
|
4608
4375
|
* Each language belong to a section (ex. HTML belogs to the
|
|
@@ -4611,14 +4378,14 @@ export interface Language {
|
|
|
4611
4378
|
* or modified.
|
|
4612
4379
|
* @returns the section of @language.
|
|
4613
4380
|
*/
|
|
4614
|
-
get_section(): string
|
|
4381
|
+
get_section(): string
|
|
4615
4382
|
/**
|
|
4616
4383
|
* Returns the ID of the style to use if the specified `style_id`
|
|
4617
4384
|
* is not present in the current style scheme.
|
|
4618
4385
|
* @param style_id a style ID.
|
|
4619
4386
|
* @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.
|
|
4620
4387
|
*/
|
|
4621
|
-
get_style_fallback(style_id: string
|
|
4388
|
+
get_style_fallback(style_id: string): string | null
|
|
4622
4389
|
/**
|
|
4623
4390
|
* Returns the ids of the styles defined by this `language`.
|
|
4624
4391
|
* @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().
|
|
@@ -4629,7 +4396,7 @@ export interface Language {
|
|
|
4629
4396
|
* @param style_id a style ID.
|
|
4630
4397
|
* @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.
|
|
4631
4398
|
*/
|
|
4632
|
-
get_style_name(style_id: string
|
|
4399
|
+
get_style_name(style_id: string): string | null
|
|
4633
4400
|
|
|
4634
4401
|
// Class property signals of GtkSource-3.0.GtkSource.Language
|
|
4635
4402
|
|
|
@@ -4672,7 +4439,6 @@ export module LanguageManager {
|
|
|
4672
4439
|
|
|
4673
4440
|
// Own constructor properties of GtkSource-3.0.GtkSource.LanguageManager
|
|
4674
4441
|
|
|
4675
|
-
search_path?: string[] | null
|
|
4676
4442
|
searchPath?: string[] | null
|
|
4677
4443
|
}
|
|
4678
4444
|
|
|
@@ -4682,9 +4448,7 @@ export interface LanguageManager {
|
|
|
4682
4448
|
|
|
4683
4449
|
// Own properties of GtkSource-3.0.GtkSource.LanguageManager
|
|
4684
4450
|
|
|
4685
|
-
readonly language_ids: string[]
|
|
4686
4451
|
readonly languageIds: string[]
|
|
4687
|
-
search_path: string[]
|
|
4688
4452
|
searchPath: string[]
|
|
4689
4453
|
|
|
4690
4454
|
// Own fields of GtkSource-3.0.GtkSource.LanguageManager
|
|
@@ -4700,7 +4464,7 @@ export interface LanguageManager {
|
|
|
4700
4464
|
* @param id a language id.
|
|
4701
4465
|
* @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.
|
|
4702
4466
|
*/
|
|
4703
|
-
get_language(id: string
|
|
4467
|
+
get_language(id: string): Language | null
|
|
4704
4468
|
/**
|
|
4705
4469
|
* Returns the ids of the available languages.
|
|
4706
4470
|
* @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.
|
|
@@ -4822,9 +4586,8 @@ export module Map {
|
|
|
4822
4586
|
|
|
4823
4587
|
// Own constructor properties of GtkSource-3.0.GtkSource.Map
|
|
4824
4588
|
|
|
4825
|
-
font_desc?: Pango.FontDescription | null
|
|
4826
|
-
view?: View | null
|
|
4827
4589
|
fontDesc?: Pango.FontDescription | null
|
|
4590
|
+
view?: View | null
|
|
4828
4591
|
}
|
|
4829
4592
|
|
|
4830
4593
|
}
|
|
@@ -4833,7 +4596,6 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4833
4596
|
|
|
4834
4597
|
// Own properties of GtkSource-3.0.GtkSource.Map
|
|
4835
4598
|
|
|
4836
|
-
font_desc: Pango.FontDescription
|
|
4837
4599
|
fontDesc: Pango.FontDescription
|
|
4838
4600
|
view: View
|
|
4839
4601
|
|
|
@@ -4895,7 +4657,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4895
4657
|
* @param child the child widget
|
|
4896
4658
|
* @param child_property the name of a child property installed on the class of `container`
|
|
4897
4659
|
*/
|
|
4898
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
4660
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
4899
4661
|
|
|
4900
4662
|
// Overloads of child_notify
|
|
4901
4663
|
|
|
@@ -4909,7 +4671,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4909
4671
|
* Also see gtk_container_child_notify().
|
|
4910
4672
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4911
4673
|
*/
|
|
4912
|
-
child_notify(child_property: string
|
|
4674
|
+
child_notify(child_property: string): void
|
|
4913
4675
|
/**
|
|
4914
4676
|
* Emits a #GtkWidget::child-notify signal for the
|
|
4915
4677
|
* [child property][child-properties] `child_property`
|
|
@@ -4920,7 +4682,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4920
4682
|
* Also see gtk_container_child_notify().
|
|
4921
4683
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4922
4684
|
*/
|
|
4923
|
-
child_notify(child_property: string
|
|
4685
|
+
child_notify(child_property: string): void
|
|
4924
4686
|
|
|
4925
4687
|
// Class property signals of GtkSource-3.0.GtkSource.Map
|
|
4926
4688
|
|
|
@@ -5252,7 +5014,7 @@ export interface Mark {
|
|
|
5252
5014
|
* Returns the mark category.
|
|
5253
5015
|
* @returns the category of the #GtkSourceMark.
|
|
5254
5016
|
*/
|
|
5255
|
-
get_category(): string
|
|
5017
|
+
get_category(): string
|
|
5256
5018
|
/**
|
|
5257
5019
|
* Returns the next #GtkSourceMark in the buffer or %NULL if the mark
|
|
5258
5020
|
* was not added to a buffer. If there is no next mark, %NULL will be returned.
|
|
@@ -5270,7 +5032,7 @@ export interface Mark {
|
|
|
5270
5032
|
* @param category a string specifying the mark category, or %NULL.
|
|
5271
5033
|
* @returns the previous #GtkSourceMark, or %NULL.
|
|
5272
5034
|
*/
|
|
5273
|
-
prev(category: string
|
|
5035
|
+
prev(category: string): Mark | null
|
|
5274
5036
|
|
|
5275
5037
|
// Class property signals of GtkSource-3.0.GtkSource.Mark
|
|
5276
5038
|
|
|
@@ -5310,7 +5072,7 @@ export class Mark extends Gtk.TextMark {
|
|
|
5310
5072
|
* @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).
|
|
5311
5073
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5312
5074
|
*/
|
|
5313
|
-
constructor(name: string
|
|
5075
|
+
constructor(name: string, category: string)
|
|
5314
5076
|
/**
|
|
5315
5077
|
* Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
|
|
5316
5078
|
* If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
|
|
@@ -5322,7 +5084,7 @@ export class Mark extends Gtk.TextMark {
|
|
|
5322
5084
|
* @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).
|
|
5323
5085
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5324
5086
|
*/
|
|
5325
|
-
static new(name: string
|
|
5087
|
+
static new(name: string, category: string): Mark
|
|
5326
5088
|
|
|
5327
5089
|
// Overloads of new
|
|
5328
5090
|
|
|
@@ -5381,19 +5143,11 @@ export module MarkAttributes {
|
|
|
5381
5143
|
/**
|
|
5382
5144
|
* An icon name that may be a base of a rendered icon.
|
|
5383
5145
|
*/
|
|
5384
|
-
|
|
5146
|
+
iconName?: string | null
|
|
5385
5147
|
/**
|
|
5386
5148
|
* A #GdkPixbuf that may be a base of a rendered icon.
|
|
5387
5149
|
*/
|
|
5388
5150
|
pixbuf?: GdkPixbuf.Pixbuf | null
|
|
5389
|
-
/**
|
|
5390
|
-
* A stock id that may be a base of a rendered icon.
|
|
5391
|
-
*/
|
|
5392
|
-
stock_id?: string | null
|
|
5393
|
-
/**
|
|
5394
|
-
* An icon name that may be a base of a rendered icon.
|
|
5395
|
-
*/
|
|
5396
|
-
iconName?: string | null
|
|
5397
5151
|
/**
|
|
5398
5152
|
* A stock id that may be a base of a rendered icon.
|
|
5399
5153
|
*/
|
|
@@ -5414,10 +5168,6 @@ export interface MarkAttributes {
|
|
|
5414
5168
|
* A #GIcon that may be a base of a rendered icon.
|
|
5415
5169
|
*/
|
|
5416
5170
|
gicon: Gio.Icon
|
|
5417
|
-
/**
|
|
5418
|
-
* An icon name that may be a base of a rendered icon.
|
|
5419
|
-
*/
|
|
5420
|
-
icon_name: string | null
|
|
5421
5171
|
/**
|
|
5422
5172
|
* An icon name that may be a base of a rendered icon.
|
|
5423
5173
|
*/
|
|
@@ -5426,10 +5176,6 @@ export interface MarkAttributes {
|
|
|
5426
5176
|
* A #GdkPixbuf that may be a base of a rendered icon.
|
|
5427
5177
|
*/
|
|
5428
5178
|
pixbuf: GdkPixbuf.Pixbuf
|
|
5429
|
-
/**
|
|
5430
|
-
* A stock id that may be a base of a rendered icon.
|
|
5431
|
-
*/
|
|
5432
|
-
stock_id: string | null
|
|
5433
5179
|
/**
|
|
5434
5180
|
* A stock id that may be a base of a rendered icon.
|
|
5435
5181
|
*/
|
|
@@ -5453,7 +5199,7 @@ export interface MarkAttributes {
|
|
|
5453
5199
|
* icon name can be %NULL if it wasn't set earlier.
|
|
5454
5200
|
* @returns An icon name. The string belongs to @attributes and should not be freed.
|
|
5455
5201
|
*/
|
|
5456
|
-
get_icon_name(): string
|
|
5202
|
+
get_icon_name(): string
|
|
5457
5203
|
/**
|
|
5458
5204
|
* Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
|
|
5459
5205
|
* pixbuf can be %NULL if it wasn't set earlier.
|
|
@@ -5465,7 +5211,7 @@ export interface MarkAttributes {
|
|
|
5465
5211
|
* be %NULL if it wasn't set earlier.
|
|
5466
5212
|
* @returns Stock id. Returned string is owned by @attributes and shouldn't be freed.
|
|
5467
5213
|
*/
|
|
5468
|
-
get_stock_id(): string
|
|
5214
|
+
get_stock_id(): string
|
|
5469
5215
|
/**
|
|
5470
5216
|
* Queries for a tooltip by emitting
|
|
5471
5217
|
* a #GtkSourceMarkAttributes::query-tooltip-markup signal. The tooltip may contain
|
|
@@ -5507,7 +5253,7 @@ export interface MarkAttributes {
|
|
|
5507
5253
|
* Sets a name of an icon to be used as a base for rendered icon.
|
|
5508
5254
|
* @param icon_name name of an icon to be used.
|
|
5509
5255
|
*/
|
|
5510
|
-
set_icon_name(icon_name: string
|
|
5256
|
+
set_icon_name(icon_name: string): void
|
|
5511
5257
|
/**
|
|
5512
5258
|
* Sets a pixbuf to be used as a base for rendered icon.
|
|
5513
5259
|
* @param pixbuf a #GdkPixbuf to be used.
|
|
@@ -5517,7 +5263,7 @@ export interface MarkAttributes {
|
|
|
5517
5263
|
* Sets stock id to be used as a base for rendered icon.
|
|
5518
5264
|
* @param stock_id a stock id.
|
|
5519
5265
|
*/
|
|
5520
|
-
set_stock_id(stock_id: string
|
|
5266
|
+
set_stock_id(stock_id: string): void
|
|
5521
5267
|
|
|
5522
5268
|
// Own signals of GtkSource-3.0.GtkSource.MarkAttributes
|
|
5523
5269
|
|
|
@@ -5594,7 +5340,7 @@ export module PrintCompositor {
|
|
|
5594
5340
|
* The value of this property cannot be changed anymore after the first
|
|
5595
5341
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5596
5342
|
*/
|
|
5597
|
-
|
|
5343
|
+
bodyFontName?: string | null
|
|
5598
5344
|
/**
|
|
5599
5345
|
* The GtkSourceBuffer object to print.
|
|
5600
5346
|
*/
|
|
@@ -5610,7 +5356,7 @@ export module PrintCompositor {
|
|
|
5610
5356
|
* The value of this property cannot be changed anymore after the first
|
|
5611
5357
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5612
5358
|
*/
|
|
5613
|
-
|
|
5359
|
+
footerFontName?: string | null
|
|
5614
5360
|
/**
|
|
5615
5361
|
* Name of the font used to print page header.
|
|
5616
5362
|
* If this property is unspecified, the text body font is used.
|
|
@@ -5622,14 +5368,14 @@ export module PrintCompositor {
|
|
|
5622
5368
|
* The value of this property cannot be changed anymore after the first
|
|
5623
5369
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5624
5370
|
*/
|
|
5625
|
-
|
|
5371
|
+
headerFontName?: string | null
|
|
5626
5372
|
/**
|
|
5627
5373
|
* Whether to print the document with highlighted syntax.
|
|
5628
5374
|
*
|
|
5629
5375
|
* The value of this property cannot be changed anymore after the first
|
|
5630
5376
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5631
5377
|
*/
|
|
5632
|
-
|
|
5378
|
+
highlightSyntax?: boolean | null
|
|
5633
5379
|
/**
|
|
5634
5380
|
* Name of the font used to print line numbers on the left margin.
|
|
5635
5381
|
* If this property is unspecified, the text body font is used.
|
|
@@ -5641,7 +5387,7 @@ export module PrintCompositor {
|
|
|
5641
5387
|
* The value of this property cannot be changed anymore after the first
|
|
5642
5388
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5643
5389
|
*/
|
|
5644
|
-
|
|
5390
|
+
lineNumbersFontName?: string | null
|
|
5645
5391
|
/**
|
|
5646
5392
|
* Whether to print a footer in each page.
|
|
5647
5393
|
*
|
|
@@ -5652,7 +5398,7 @@ export module PrintCompositor {
|
|
|
5652
5398
|
* The value of this property cannot be changed anymore after the first
|
|
5653
5399
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5654
5400
|
*/
|
|
5655
|
-
|
|
5401
|
+
printFooter?: boolean | null
|
|
5656
5402
|
/**
|
|
5657
5403
|
* Whether to print a header in each page.
|
|
5658
5404
|
*
|
|
@@ -5663,7 +5409,7 @@ export module PrintCompositor {
|
|
|
5663
5409
|
* The value of this property cannot be changed anymore after the first
|
|
5664
5410
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5665
5411
|
*/
|
|
5666
|
-
|
|
5412
|
+
printHeader?: boolean | null
|
|
5667
5413
|
/**
|
|
5668
5414
|
* Interval of printed line numbers. If this property is set to 0 no
|
|
5669
5415
|
* numbers will be printed. If greater than 0, a number will be
|
|
@@ -5672,113 +5418,14 @@ export module PrintCompositor {
|
|
|
5672
5418
|
* The value of this property cannot be changed anymore after the first
|
|
5673
5419
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5674
5420
|
*/
|
|
5675
|
-
|
|
5421
|
+
printLineNumbers?: number | null
|
|
5676
5422
|
/**
|
|
5677
5423
|
* Width of a tab character expressed in spaces.
|
|
5678
5424
|
*
|
|
5679
5425
|
* The value of this property cannot be changed anymore after the first
|
|
5680
5426
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5681
5427
|
*/
|
|
5682
|
-
|
|
5683
|
-
/**
|
|
5684
|
-
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
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
|
-
wrap_mode?: Gtk.WrapMode | null
|
|
5690
|
-
/**
|
|
5691
|
-
* Name of the font used for the text body.
|
|
5692
|
-
*
|
|
5693
|
-
* Accepted values are strings representing a font description Pango can understand.
|
|
5694
|
-
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5695
|
-
* for a description of the format of the string representation.
|
|
5696
|
-
*
|
|
5697
|
-
* The value of this property cannot be changed anymore after the first
|
|
5698
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5699
|
-
*/
|
|
5700
|
-
bodyFontName?: string | null
|
|
5701
|
-
/**
|
|
5702
|
-
* Name of the font used to print page footer.
|
|
5703
|
-
* If this property is unspecified, the text body font is used.
|
|
5704
|
-
*
|
|
5705
|
-
* Accepted values are strings representing a font description Pango can understand.
|
|
5706
|
-
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5707
|
-
* for a description of the format of the string representation.
|
|
5708
|
-
*
|
|
5709
|
-
* The value of this property cannot be changed anymore after the first
|
|
5710
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5711
|
-
*/
|
|
5712
|
-
footerFontName?: string | null
|
|
5713
|
-
/**
|
|
5714
|
-
* Name of the font used to print page header.
|
|
5715
|
-
* If this property is unspecified, the text body font is used.
|
|
5716
|
-
*
|
|
5717
|
-
* Accepted values are strings representing a font description Pango can understand.
|
|
5718
|
-
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5719
|
-
* for a description of the format of the string representation.
|
|
5720
|
-
*
|
|
5721
|
-
* The value of this property cannot be changed anymore after the first
|
|
5722
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5723
|
-
*/
|
|
5724
|
-
headerFontName?: string | null
|
|
5725
|
-
/**
|
|
5726
|
-
* Whether to print the document with highlighted syntax.
|
|
5727
|
-
*
|
|
5728
|
-
* The value of this property cannot be changed anymore after the first
|
|
5729
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5730
|
-
*/
|
|
5731
|
-
highlightSyntax?: boolean | null
|
|
5732
|
-
/**
|
|
5733
|
-
* Name of the font used to print line numbers on the left margin.
|
|
5734
|
-
* If this property is unspecified, the text body font is used.
|
|
5735
|
-
*
|
|
5736
|
-
* Accepted values are strings representing a font description Pango can understand.
|
|
5737
|
-
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5738
|
-
* for a description of the format of the string representation.
|
|
5739
|
-
*
|
|
5740
|
-
* The value of this property cannot be changed anymore after the first
|
|
5741
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5742
|
-
*/
|
|
5743
|
-
lineNumbersFontName?: string | null
|
|
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 | null
|
|
5755
|
-
/**
|
|
5756
|
-
* Whether to print a header in each page.
|
|
5757
|
-
*
|
|
5758
|
-
* Note that by default the header format is unspecified, and if it is
|
|
5759
|
-
* unspecified the header will not be printed, regardless of the value of
|
|
5760
|
-
* this property.
|
|
5761
|
-
*
|
|
5762
|
-
* The value of this property cannot be changed anymore after the first
|
|
5763
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5764
|
-
*/
|
|
5765
|
-
printHeader?: boolean | null
|
|
5766
|
-
/**
|
|
5767
|
-
* Interval of printed line numbers. If this property is set to 0 no
|
|
5768
|
-
* numbers will be printed. If greater than 0, a number will be
|
|
5769
|
-
* printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).
|
|
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
|
-
printLineNumbers?: number | null
|
|
5775
|
-
/**
|
|
5776
|
-
* Width of a tab character expressed in spaces.
|
|
5777
|
-
*
|
|
5778
|
-
* The value of this property cannot be changed anymore after the first
|
|
5779
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5780
|
-
*/
|
|
5781
|
-
tabWidth?: number | null
|
|
5428
|
+
tabWidth?: number | null
|
|
5782
5429
|
/**
|
|
5783
5430
|
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5784
5431
|
*
|
|
@@ -5794,17 +5441,6 @@ export interface PrintCompositor {
|
|
|
5794
5441
|
|
|
5795
5442
|
// Own properties of GtkSource-3.0.GtkSource.PrintCompositor
|
|
5796
5443
|
|
|
5797
|
-
/**
|
|
5798
|
-
* Name of the font used for the text body.
|
|
5799
|
-
*
|
|
5800
|
-
* Accepted values are strings representing a font description Pango can understand.
|
|
5801
|
-
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5802
|
-
* for a description of the format of the string representation.
|
|
5803
|
-
*
|
|
5804
|
-
* The value of this property cannot be changed anymore after the first
|
|
5805
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5806
|
-
*/
|
|
5807
|
-
body_font_name: string | null
|
|
5808
5444
|
/**
|
|
5809
5445
|
* Name of the font used for the text body.
|
|
5810
5446
|
*
|
|
@@ -5820,18 +5456,6 @@ export interface PrintCompositor {
|
|
|
5820
5456
|
* The GtkSourceBuffer object to print.
|
|
5821
5457
|
*/
|
|
5822
5458
|
readonly buffer: Buffer
|
|
5823
|
-
/**
|
|
5824
|
-
* Name of the font used to print page footer.
|
|
5825
|
-
* If this property is unspecified, the text body font is used.
|
|
5826
|
-
*
|
|
5827
|
-
* Accepted values are strings representing a font description Pango can understand.
|
|
5828
|
-
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5829
|
-
* for a description of the format of the string representation.
|
|
5830
|
-
*
|
|
5831
|
-
* The value of this property cannot be changed anymore after the first
|
|
5832
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5833
|
-
*/
|
|
5834
|
-
footer_font_name: string | null
|
|
5835
5459
|
/**
|
|
5836
5460
|
* Name of the font used to print page footer.
|
|
5837
5461
|
* If this property is unspecified, the text body font is used.
|
|
@@ -5844,18 +5468,6 @@ export interface PrintCompositor {
|
|
|
5844
5468
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5845
5469
|
*/
|
|
5846
5470
|
footerFontName: string | null
|
|
5847
|
-
/**
|
|
5848
|
-
* Name of the font used to print page header.
|
|
5849
|
-
* If this property is unspecified, the text body font is used.
|
|
5850
|
-
*
|
|
5851
|
-
* Accepted values are strings representing a font description Pango can understand.
|
|
5852
|
-
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5853
|
-
* for a description of the format of the string representation.
|
|
5854
|
-
*
|
|
5855
|
-
* The value of this property cannot be changed anymore after the first
|
|
5856
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5857
|
-
*/
|
|
5858
|
-
header_font_name: string | null
|
|
5859
5471
|
/**
|
|
5860
5472
|
* Name of the font used to print page header.
|
|
5861
5473
|
* If this property is unspecified, the text body font is used.
|
|
@@ -5868,13 +5480,6 @@ export interface PrintCompositor {
|
|
|
5868
5480
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5869
5481
|
*/
|
|
5870
5482
|
headerFontName: string | null
|
|
5871
|
-
/**
|
|
5872
|
-
* Whether to print the document with highlighted syntax.
|
|
5873
|
-
*
|
|
5874
|
-
* The value of this property cannot be changed anymore after the first
|
|
5875
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5876
|
-
*/
|
|
5877
|
-
highlight_syntax: boolean
|
|
5878
5483
|
/**
|
|
5879
5484
|
* Whether to print the document with highlighted syntax.
|
|
5880
5485
|
*
|
|
@@ -5882,18 +5487,6 @@ export interface PrintCompositor {
|
|
|
5882
5487
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5883
5488
|
*/
|
|
5884
5489
|
highlightSyntax: boolean
|
|
5885
|
-
/**
|
|
5886
|
-
* Name of the font used to print line numbers on the left margin.
|
|
5887
|
-
* If this property is unspecified, the text body font is used.
|
|
5888
|
-
*
|
|
5889
|
-
* Accepted values are strings representing a font description Pango can understand.
|
|
5890
|
-
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5891
|
-
* for a description of the format of the string representation.
|
|
5892
|
-
*
|
|
5893
|
-
* The value of this property cannot be changed anymore after the first
|
|
5894
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5895
|
-
*/
|
|
5896
|
-
line_numbers_font_name: string | null
|
|
5897
5490
|
/**
|
|
5898
5491
|
* Name of the font used to print line numbers on the left margin.
|
|
5899
5492
|
* If this property is unspecified, the text body font is used.
|
|
@@ -5906,27 +5499,11 @@ export interface PrintCompositor {
|
|
|
5906
5499
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5907
5500
|
*/
|
|
5908
5501
|
lineNumbersFontName: string | null
|
|
5909
|
-
/**
|
|
5910
|
-
* The number of pages in the document or <code>-1</code> if the
|
|
5911
|
-
* document has not been completely paginated.
|
|
5912
|
-
*/
|
|
5913
|
-
readonly n_pages: number
|
|
5914
5502
|
/**
|
|
5915
5503
|
* The number of pages in the document or <code>-1</code> if the
|
|
5916
5504
|
* document has not been completely paginated.
|
|
5917
5505
|
*/
|
|
5918
5506
|
readonly nPages: number
|
|
5919
|
-
/**
|
|
5920
|
-
* Whether to print a footer in each page.
|
|
5921
|
-
*
|
|
5922
|
-
* Note that by default the footer format is unspecified, and if it is
|
|
5923
|
-
* unspecified the footer will not be printed, regardless of the value of
|
|
5924
|
-
* this property.
|
|
5925
|
-
*
|
|
5926
|
-
* The value of this property cannot be changed anymore after the first
|
|
5927
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5928
|
-
*/
|
|
5929
|
-
print_footer: boolean
|
|
5930
5507
|
/**
|
|
5931
5508
|
* Whether to print a footer in each page.
|
|
5932
5509
|
*
|
|
@@ -5938,17 +5515,6 @@ export interface PrintCompositor {
|
|
|
5938
5515
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5939
5516
|
*/
|
|
5940
5517
|
printFooter: boolean
|
|
5941
|
-
/**
|
|
5942
|
-
* Whether to print a header in each page.
|
|
5943
|
-
*
|
|
5944
|
-
* Note that by default the header format is unspecified, and if it is
|
|
5945
|
-
* unspecified the header will not be printed, regardless of the value of
|
|
5946
|
-
* this property.
|
|
5947
|
-
*
|
|
5948
|
-
* The value of this property cannot be changed anymore after the first
|
|
5949
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5950
|
-
*/
|
|
5951
|
-
print_header: boolean
|
|
5952
5518
|
/**
|
|
5953
5519
|
* Whether to print a header in each page.
|
|
5954
5520
|
*
|
|
@@ -5960,15 +5526,6 @@ export interface PrintCompositor {
|
|
|
5960
5526
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5961
5527
|
*/
|
|
5962
5528
|
printHeader: boolean
|
|
5963
|
-
/**
|
|
5964
|
-
* Interval of printed line numbers. If this property is set to 0 no
|
|
5965
|
-
* numbers will be printed. If greater than 0, a number will be
|
|
5966
|
-
* printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).
|
|
5967
|
-
*
|
|
5968
|
-
* The value of this property cannot be changed anymore after the first
|
|
5969
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5970
|
-
*/
|
|
5971
|
-
print_line_numbers: number
|
|
5972
5529
|
/**
|
|
5973
5530
|
* Interval of printed line numbers. If this property is set to 0 no
|
|
5974
5531
|
* numbers will be printed. If greater than 0, a number will be
|
|
@@ -5978,13 +5535,6 @@ export interface PrintCompositor {
|
|
|
5978
5535
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5979
5536
|
*/
|
|
5980
5537
|
printLineNumbers: number
|
|
5981
|
-
/**
|
|
5982
|
-
* Width of a tab character expressed in spaces.
|
|
5983
|
-
*
|
|
5984
|
-
* The value of this property cannot be changed anymore after the first
|
|
5985
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
5986
|
-
*/
|
|
5987
|
-
tab_width: number
|
|
5988
5538
|
/**
|
|
5989
5539
|
* Width of a tab character expressed in spaces.
|
|
5990
5540
|
*
|
|
@@ -5992,13 +5542,6 @@ export interface PrintCompositor {
|
|
|
5992
5542
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5993
5543
|
*/
|
|
5994
5544
|
tabWidth: number
|
|
5995
|
-
/**
|
|
5996
|
-
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5997
|
-
*
|
|
5998
|
-
* The value of this property cannot be changed anymore after the first
|
|
5999
|
-
* call to the gtk_source_print_compositor_paginate() function.
|
|
6000
|
-
*/
|
|
6001
|
-
wrap_mode: Gtk.WrapMode
|
|
6002
5545
|
/**
|
|
6003
5546
|
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
6004
5547
|
*
|
|
@@ -6225,7 +5768,7 @@ export interface PrintCompositor {
|
|
|
6225
5768
|
* gtk_source_print_compositor_paginate() function.
|
|
6226
5769
|
* @param font_name the name of the default font for the body text.
|
|
6227
5770
|
*/
|
|
6228
|
-
set_body_font_name(font_name: string
|
|
5771
|
+
set_body_font_name(font_name: string): void
|
|
6229
5772
|
/**
|
|
6230
5773
|
* Sets the bottom margin used by `compositor`.
|
|
6231
5774
|
* @param margin the new bottom margin in units of `unit`.
|
|
@@ -6623,15 +6166,11 @@ export module SearchContext {
|
|
|
6623
6166
|
/**
|
|
6624
6167
|
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6625
6168
|
*/
|
|
6626
|
-
|
|
6169
|
+
matchStyle?: Style | null
|
|
6627
6170
|
/**
|
|
6628
6171
|
* The #GtkSourceSearchSettings associated to the search context.
|
|
6629
6172
|
*/
|
|
6630
6173
|
settings?: SearchSettings | null
|
|
6631
|
-
/**
|
|
6632
|
-
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6633
|
-
*/
|
|
6634
|
-
matchStyle?: Style | null
|
|
6635
6174
|
}
|
|
6636
6175
|
|
|
6637
6176
|
}
|
|
@@ -6648,33 +6187,16 @@ export interface SearchContext {
|
|
|
6648
6187
|
* Highlight the search occurrences.
|
|
6649
6188
|
*/
|
|
6650
6189
|
highlight: boolean
|
|
6651
|
-
/**
|
|
6652
|
-
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6653
|
-
*/
|
|
6654
|
-
match_style: Style
|
|
6655
6190
|
/**
|
|
6656
6191
|
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6657
6192
|
*/
|
|
6658
6193
|
matchStyle: Style
|
|
6659
|
-
/**
|
|
6660
|
-
* The total number of search occurrences. If the search is disabled,
|
|
6661
|
-
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6662
|
-
* is -1.
|
|
6663
|
-
*/
|
|
6664
|
-
readonly occurrences_count: number
|
|
6665
6194
|
/**
|
|
6666
6195
|
* The total number of search occurrences. If the search is disabled,
|
|
6667
6196
|
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6668
6197
|
* is -1.
|
|
6669
6198
|
*/
|
|
6670
6199
|
readonly occurrencesCount: number
|
|
6671
|
-
/**
|
|
6672
|
-
* If the regex search pattern doesn't follow all the rules, this
|
|
6673
|
-
* property will be set. If the pattern is valid, the value is %NULL.
|
|
6674
|
-
*
|
|
6675
|
-
* Free with g_error_free().
|
|
6676
|
-
*/
|
|
6677
|
-
readonly regex_error: any
|
|
6678
6200
|
/**
|
|
6679
6201
|
* If the regex search pattern doesn't follow all the rules, this
|
|
6680
6202
|
* property will be set. If the pattern is valid, the value is %NULL.
|
|
@@ -6897,7 +6419,7 @@ export interface SearchContext {
|
|
|
6897
6419
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6898
6420
|
* @returns whether the match has been replaced.
|
|
6899
6421
|
*/
|
|
6900
|
-
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string
|
|
6422
|
+
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
|
|
6901
6423
|
/**
|
|
6902
6424
|
* Replaces a search match by another text. If `match_start` and `match_end`
|
|
6903
6425
|
* doesn't correspond to a search match, %FALSE is returned.
|
|
@@ -6914,7 +6436,7 @@ export interface SearchContext {
|
|
|
6914
6436
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6915
6437
|
* @returns whether the match has been replaced.
|
|
6916
6438
|
*/
|
|
6917
|
-
replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string
|
|
6439
|
+
replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
|
|
6918
6440
|
/**
|
|
6919
6441
|
* Replaces all search matches by another text. It is a synchronous function, so
|
|
6920
6442
|
* it can block the user interface.
|
|
@@ -6926,7 +6448,7 @@ export interface SearchContext {
|
|
|
6926
6448
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6927
6449
|
* @returns the number of replaced matches.
|
|
6928
6450
|
*/
|
|
6929
|
-
replace_all(replace: string
|
|
6451
|
+
replace_all(replace: string, replace_length: number): number
|
|
6930
6452
|
/**
|
|
6931
6453
|
* Enables or disables the search occurrences highlighting.
|
|
6932
6454
|
* @param highlight the setting.
|
|
@@ -7018,32 +6540,6 @@ export module SearchSettings {
|
|
|
7018
6540
|
|
|
7019
6541
|
// Own constructor properties of GtkSource-3.0.GtkSource.SearchSettings
|
|
7020
6542
|
|
|
7021
|
-
/**
|
|
7022
|
-
* If %TRUE, a search match must start and end a word. The match can
|
|
7023
|
-
* span multiple words.
|
|
7024
|
-
*/
|
|
7025
|
-
at_word_boundaries?: boolean | null
|
|
7026
|
-
/**
|
|
7027
|
-
* Whether the search is case sensitive.
|
|
7028
|
-
*/
|
|
7029
|
-
case_sensitive?: boolean | null
|
|
7030
|
-
/**
|
|
7031
|
-
* Search by regular expressions with
|
|
7032
|
-
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
7033
|
-
*/
|
|
7034
|
-
regex_enabled?: boolean | null
|
|
7035
|
-
/**
|
|
7036
|
-
* A search string, or %NULL if the search is disabled. If the regular
|
|
7037
|
-
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
7038
|
-
* the pattern.
|
|
7039
|
-
*/
|
|
7040
|
-
search_text?: string | null
|
|
7041
|
-
/**
|
|
7042
|
-
* For a forward search, continue at the beginning of the buffer if no
|
|
7043
|
-
* search occurrence is found. For a backward search, continue at the
|
|
7044
|
-
* end of the buffer.
|
|
7045
|
-
*/
|
|
7046
|
-
wrap_around?: boolean | null
|
|
7047
6543
|
/**
|
|
7048
6544
|
* If %TRUE, a search match must start and end a word. The match can
|
|
7049
6545
|
* span multiple words.
|
|
@@ -7078,52 +6574,26 @@ export interface SearchSettings {
|
|
|
7078
6574
|
|
|
7079
6575
|
// Own properties of GtkSource-3.0.GtkSource.SearchSettings
|
|
7080
6576
|
|
|
7081
|
-
/**
|
|
7082
|
-
* If %TRUE, a search match must start and end a word. The match can
|
|
7083
|
-
* span multiple words.
|
|
7084
|
-
*/
|
|
7085
|
-
at_word_boundaries: boolean
|
|
7086
6577
|
/**
|
|
7087
6578
|
* If %TRUE, a search match must start and end a word. The match can
|
|
7088
6579
|
* span multiple words.
|
|
7089
6580
|
*/
|
|
7090
6581
|
atWordBoundaries: boolean
|
|
7091
|
-
/**
|
|
7092
|
-
* Whether the search is case sensitive.
|
|
7093
|
-
*/
|
|
7094
|
-
case_sensitive: boolean
|
|
7095
6582
|
/**
|
|
7096
6583
|
* Whether the search is case sensitive.
|
|
7097
6584
|
*/
|
|
7098
6585
|
caseSensitive: boolean
|
|
7099
|
-
/**
|
|
7100
|
-
* Search by regular expressions with
|
|
7101
|
-
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
7102
|
-
*/
|
|
7103
|
-
regex_enabled: boolean
|
|
7104
6586
|
/**
|
|
7105
6587
|
* Search by regular expressions with
|
|
7106
6588
|
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
7107
6589
|
*/
|
|
7108
6590
|
regexEnabled: boolean
|
|
7109
|
-
/**
|
|
7110
|
-
* A search string, or %NULL if the search is disabled. If the regular
|
|
7111
|
-
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
7112
|
-
* the pattern.
|
|
7113
|
-
*/
|
|
7114
|
-
search_text: string | null
|
|
7115
6591
|
/**
|
|
7116
6592
|
* A search string, or %NULL if the search is disabled. If the regular
|
|
7117
6593
|
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
7118
6594
|
* the pattern.
|
|
7119
6595
|
*/
|
|
7120
6596
|
searchText: string | null
|
|
7121
|
-
/**
|
|
7122
|
-
* For a forward search, continue at the beginning of the buffer if no
|
|
7123
|
-
* search occurrence is found. For a backward search, continue at the
|
|
7124
|
-
* end of the buffer.
|
|
7125
|
-
*/
|
|
7126
|
-
wrap_around: boolean
|
|
7127
6597
|
/**
|
|
7128
6598
|
* For a forward search, continue at the beginning of the buffer if no
|
|
7129
6599
|
* search occurrence is found. For a backward search, continue at the
|
|
@@ -7252,7 +6722,7 @@ export module SpaceDrawer {
|
|
|
7252
6722
|
/**
|
|
7253
6723
|
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7254
6724
|
*/
|
|
7255
|
-
|
|
6725
|
+
enableMatrix?: boolean | null
|
|
7256
6726
|
/**
|
|
7257
6727
|
* The :matrix property is a #GVariant property to specify where and
|
|
7258
6728
|
* what kind of white spaces to draw.
|
|
@@ -7269,10 +6739,6 @@ export module SpaceDrawer {
|
|
|
7269
6739
|
* By default, %GTK_SOURCE_SPACE_TYPE_ALL is set for all locations.
|
|
7270
6740
|
*/
|
|
7271
6741
|
matrix?: GLib.Variant | null
|
|
7272
|
-
/**
|
|
7273
|
-
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7274
|
-
*/
|
|
7275
|
-
enableMatrix?: boolean | null
|
|
7276
6742
|
}
|
|
7277
6743
|
|
|
7278
6744
|
}
|
|
@@ -7281,10 +6747,6 @@ export interface SpaceDrawer {
|
|
|
7281
6747
|
|
|
7282
6748
|
// Own properties of GtkSource-3.0.GtkSource.SpaceDrawer
|
|
7283
6749
|
|
|
7284
|
-
/**
|
|
7285
|
-
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7286
|
-
*/
|
|
7287
|
-
enable_matrix: boolean
|
|
7288
6750
|
/**
|
|
7289
6751
|
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7290
6752
|
*/
|
|
@@ -7327,7 +6789,7 @@ export interface SpaceDrawer {
|
|
|
7327
6789
|
* @param key the `settings` key to bind.
|
|
7328
6790
|
* @param flags flags for the binding.
|
|
7329
6791
|
*/
|
|
7330
|
-
bind_matrix_setting(settings: Gio.Settings, key: string
|
|
6792
|
+
bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
|
|
7331
6793
|
get_enable_matrix(): boolean
|
|
7332
6794
|
/**
|
|
7333
6795
|
* Gets the value of the #GtkSourceSpaceDrawer:matrix property, as a #GVariant.
|
|
@@ -7425,33 +6887,21 @@ export module Style {
|
|
|
7425
6887
|
// Own constructor properties of GtkSource-3.0.GtkSource.Style
|
|
7426
6888
|
|
|
7427
6889
|
background?: string | null
|
|
7428
|
-
background_set?: boolean | null
|
|
7429
|
-
bold?: boolean | null
|
|
7430
|
-
bold_set?: boolean | null
|
|
7431
|
-
foreground?: string | null
|
|
7432
|
-
foreground_set?: boolean | null
|
|
7433
|
-
italic?: boolean | null
|
|
7434
|
-
italic_set?: boolean | null
|
|
7435
|
-
line_background?: string | null
|
|
7436
|
-
line_background_set?: boolean | null
|
|
7437
|
-
pango_underline?: Pango.Underline | null
|
|
7438
|
-
scale?: string | null
|
|
7439
|
-
scale_set?: boolean | null
|
|
7440
|
-
strikethrough?: boolean | null
|
|
7441
|
-
strikethrough_set?: boolean | null
|
|
7442
|
-
underline?: boolean | null
|
|
7443
|
-
underline_color?: string | null
|
|
7444
|
-
underline_color_set?: boolean | null
|
|
7445
|
-
underline_set?: boolean | null
|
|
7446
6890
|
backgroundSet?: boolean | null
|
|
6891
|
+
bold?: boolean | null
|
|
7447
6892
|
boldSet?: boolean | null
|
|
6893
|
+
foreground?: string | null
|
|
7448
6894
|
foregroundSet?: boolean | null
|
|
6895
|
+
italic?: boolean | null
|
|
7449
6896
|
italicSet?: boolean | null
|
|
7450
6897
|
lineBackground?: string | null
|
|
7451
6898
|
lineBackgroundSet?: boolean | null
|
|
7452
6899
|
pangoUnderline?: Pango.Underline | null
|
|
6900
|
+
scale?: string | null
|
|
7453
6901
|
scaleSet?: boolean | null
|
|
6902
|
+
strikethrough?: boolean | null
|
|
7454
6903
|
strikethroughSet?: boolean | null
|
|
6904
|
+
underline?: boolean | null
|
|
7455
6905
|
underlineColor?: string | null
|
|
7456
6906
|
underlineColorSet?: boolean | null
|
|
7457
6907
|
underlineSet?: boolean | null
|
|
@@ -7464,35 +6914,23 @@ export interface Style {
|
|
|
7464
6914
|
// Own properties of GtkSource-3.0.GtkSource.Style
|
|
7465
6915
|
|
|
7466
6916
|
readonly background: string | null
|
|
7467
|
-
readonly background_set: boolean
|
|
7468
6917
|
readonly backgroundSet: boolean
|
|
7469
6918
|
readonly bold: boolean
|
|
7470
|
-
readonly bold_set: boolean
|
|
7471
6919
|
readonly boldSet: boolean
|
|
7472
6920
|
readonly foreground: string | null
|
|
7473
|
-
readonly foreground_set: boolean
|
|
7474
6921
|
readonly foregroundSet: boolean
|
|
7475
6922
|
readonly italic: boolean
|
|
7476
|
-
readonly italic_set: boolean
|
|
7477
6923
|
readonly italicSet: boolean
|
|
7478
|
-
readonly line_background: string | null
|
|
7479
6924
|
readonly lineBackground: string | null
|
|
7480
|
-
readonly line_background_set: boolean
|
|
7481
6925
|
readonly lineBackgroundSet: boolean
|
|
7482
|
-
readonly pango_underline: Pango.Underline
|
|
7483
6926
|
readonly pangoUnderline: Pango.Underline
|
|
7484
6927
|
readonly scale: string | null
|
|
7485
|
-
readonly scale_set: boolean
|
|
7486
6928
|
readonly scaleSet: boolean
|
|
7487
6929
|
readonly strikethrough: boolean
|
|
7488
|
-
readonly strikethrough_set: boolean
|
|
7489
6930
|
readonly strikethroughSet: boolean
|
|
7490
6931
|
readonly underline: boolean
|
|
7491
|
-
readonly underline_color: string | null
|
|
7492
6932
|
readonly underlineColor: string | null
|
|
7493
|
-
readonly underline_color_set: boolean
|
|
7494
6933
|
readonly underlineColorSet: boolean
|
|
7495
|
-
readonly underline_set: boolean
|
|
7496
6934
|
readonly underlineSet: boolean
|
|
7497
6935
|
|
|
7498
6936
|
// Owm methods of GtkSource-3.0.GtkSource.Style
|
|
@@ -7642,9 +7080,9 @@ export interface StyleScheme {
|
|
|
7642
7080
|
get_authors(): string[] | null
|
|
7643
7081
|
get_description(): string | null
|
|
7644
7082
|
get_filename(): string | null
|
|
7645
|
-
get_id(): string
|
|
7646
|
-
get_name(): string
|
|
7647
|
-
get_style(style_id: string
|
|
7083
|
+
get_id(): string
|
|
7084
|
+
get_name(): string
|
|
7085
|
+
get_style(style_id: string): Style | null
|
|
7648
7086
|
|
|
7649
7087
|
// Class property signals of GtkSource-3.0.GtkSource.StyleScheme
|
|
7650
7088
|
|
|
@@ -7706,7 +7144,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
7706
7144
|
* Also see gtk_container_child_notify().
|
|
7707
7145
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7708
7146
|
*/
|
|
7709
|
-
child_notify(child_property: string
|
|
7147
|
+
child_notify(child_property: string): void
|
|
7710
7148
|
/**
|
|
7711
7149
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7712
7150
|
* [child property][child-properties]
|
|
@@ -7718,7 +7156,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
7718
7156
|
* @param child the child widget
|
|
7719
7157
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7720
7158
|
*/
|
|
7721
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7159
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7722
7160
|
|
|
7723
7161
|
// Overloads of child_notify
|
|
7724
7162
|
|
|
@@ -7732,7 +7170,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
7732
7170
|
* Also see gtk_container_child_notify().
|
|
7733
7171
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7734
7172
|
*/
|
|
7735
|
-
child_notify(child_property: string
|
|
7173
|
+
child_notify(child_property: string): void
|
|
7736
7174
|
|
|
7737
7175
|
// Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserButton
|
|
7738
7176
|
|
|
@@ -7963,7 +7401,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7963
7401
|
* @param child the child widget
|
|
7964
7402
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7965
7403
|
*/
|
|
7966
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7404
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7967
7405
|
|
|
7968
7406
|
// Overloads of child_notify
|
|
7969
7407
|
|
|
@@ -7977,7 +7415,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7977
7415
|
* Also see gtk_container_child_notify().
|
|
7978
7416
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7979
7417
|
*/
|
|
7980
|
-
child_notify(child_property: string
|
|
7418
|
+
child_notify(child_property: string): void
|
|
7981
7419
|
/**
|
|
7982
7420
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7983
7421
|
* [child property][child-properties] `child_property`
|
|
@@ -7988,7 +7426,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7988
7426
|
* Also see gtk_container_child_notify().
|
|
7989
7427
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7990
7428
|
*/
|
|
7991
|
-
child_notify(child_property: string
|
|
7429
|
+
child_notify(child_property: string): void
|
|
7992
7430
|
|
|
7993
7431
|
// Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserWidget
|
|
7994
7432
|
|
|
@@ -8160,7 +7598,6 @@ export module StyleSchemeManager {
|
|
|
8160
7598
|
|
|
8161
7599
|
// Own constructor properties of GtkSource-3.0.GtkSource.StyleSchemeManager
|
|
8162
7600
|
|
|
8163
|
-
search_path?: string[] | null
|
|
8164
7601
|
searchPath?: string[] | null
|
|
8165
7602
|
}
|
|
8166
7603
|
|
|
@@ -8170,9 +7607,7 @@ export interface StyleSchemeManager {
|
|
|
8170
7607
|
|
|
8171
7608
|
// Own properties of GtkSource-3.0.GtkSource.StyleSchemeManager
|
|
8172
7609
|
|
|
8173
|
-
readonly scheme_ids: string[]
|
|
8174
7610
|
readonly schemeIds: string[]
|
|
8175
|
-
search_path: string[]
|
|
8176
7611
|
searchPath: string[]
|
|
8177
7612
|
|
|
8178
7613
|
// Own fields of GtkSource-3.0.GtkSource.StyleSchemeManager
|
|
@@ -8188,7 +7623,7 @@ export interface StyleSchemeManager {
|
|
|
8188
7623
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
8189
7624
|
* @param path a directory or a filename.
|
|
8190
7625
|
*/
|
|
8191
|
-
append_search_path(path: string
|
|
7626
|
+
append_search_path(path: string): void
|
|
8192
7627
|
/**
|
|
8193
7628
|
* Mark any currently cached information about the available style scehems
|
|
8194
7629
|
* as invalid. All the available style schemes will be reloaded next time
|
|
@@ -8200,7 +7635,7 @@ export interface StyleSchemeManager {
|
|
|
8200
7635
|
* @param scheme_id style scheme id to find.
|
|
8201
7636
|
* @returns a #GtkSourceStyleScheme object. Returned value is owned by @manager and must not be unref'ed.
|
|
8202
7637
|
*/
|
|
8203
|
-
get_scheme(scheme_id: string
|
|
7638
|
+
get_scheme(scheme_id: string): StyleScheme
|
|
8204
7639
|
/**
|
|
8205
7640
|
* Returns the ids of the available style schemes.
|
|
8206
7641
|
* @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.
|
|
@@ -8218,7 +7653,7 @@ export interface StyleSchemeManager {
|
|
|
8218
7653
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
8219
7654
|
* @param path a directory or a filename.
|
|
8220
7655
|
*/
|
|
8221
|
-
prepend_search_path(path: string
|
|
7656
|
+
prepend_search_path(path: string): void
|
|
8222
7657
|
/**
|
|
8223
7658
|
* Sets the list of directories where the `manager` looks for
|
|
8224
7659
|
* style scheme files.
|
|
@@ -8281,20 +7716,6 @@ export module Tag {
|
|
|
8281
7716
|
|
|
8282
7717
|
// Own constructor properties of GtkSource-3.0.GtkSource.Tag
|
|
8283
7718
|
|
|
8284
|
-
/**
|
|
8285
|
-
* Whether to draw white spaces. This property takes precedence over the value
|
|
8286
|
-
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8287
|
-
* (only where the tag is applied).
|
|
8288
|
-
*
|
|
8289
|
-
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8290
|
-
* %TRUE.
|
|
8291
|
-
*/
|
|
8292
|
-
draw_spaces?: boolean | null
|
|
8293
|
-
/**
|
|
8294
|
-
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8295
|
-
* taken into account.
|
|
8296
|
-
*/
|
|
8297
|
-
draw_spaces_set?: boolean | null
|
|
8298
7719
|
/**
|
|
8299
7720
|
* Whether to draw white spaces. This property takes precedence over the value
|
|
8300
7721
|
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
@@ -8317,15 +7738,6 @@ export interface Tag {
|
|
|
8317
7738
|
|
|
8318
7739
|
// Own properties of GtkSource-3.0.GtkSource.Tag
|
|
8319
7740
|
|
|
8320
|
-
/**
|
|
8321
|
-
* Whether to draw white spaces. This property takes precedence over the value
|
|
8322
|
-
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8323
|
-
* (only where the tag is applied).
|
|
8324
|
-
*
|
|
8325
|
-
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8326
|
-
* %TRUE.
|
|
8327
|
-
*/
|
|
8328
|
-
draw_spaces: boolean
|
|
8329
7741
|
/**
|
|
8330
7742
|
* Whether to draw white spaces. This property takes precedence over the value
|
|
8331
7743
|
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
@@ -8335,11 +7747,6 @@ export interface Tag {
|
|
|
8335
7747
|
* %TRUE.
|
|
8336
7748
|
*/
|
|
8337
7749
|
drawSpaces: boolean
|
|
8338
|
-
/**
|
|
8339
|
-
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8340
|
-
* taken into account.
|
|
8341
|
-
*/
|
|
8342
|
-
draw_spaces_set: boolean
|
|
8343
7750
|
/**
|
|
8344
7751
|
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8345
7752
|
* taken into account.
|
|
@@ -8709,53 +8116,6 @@ export module View {
|
|
|
8709
8116
|
|
|
8710
8117
|
// Own constructor properties of GtkSource-3.0.GtkSource.View
|
|
8711
8118
|
|
|
8712
|
-
auto_indent?: boolean | null
|
|
8713
|
-
/**
|
|
8714
|
-
* Draw a specific background pattern on the view.
|
|
8715
|
-
*/
|
|
8716
|
-
background_pattern?: BackgroundPatternType | null
|
|
8717
|
-
/**
|
|
8718
|
-
* Set if and how the spaces should be visualized.
|
|
8719
|
-
*
|
|
8720
|
-
* For a finer-grained method, there is also the GtkSourceTag's
|
|
8721
|
-
* #GtkSourceTag:draw-spaces property.
|
|
8722
|
-
*/
|
|
8723
|
-
draw_spaces?: DrawSpacesFlags | null
|
|
8724
|
-
highlight_current_line?: boolean | null
|
|
8725
|
-
indent_on_tab?: boolean | null
|
|
8726
|
-
/**
|
|
8727
|
-
* Width of an indentation step expressed in number of spaces.
|
|
8728
|
-
*/
|
|
8729
|
-
indent_width?: number | null
|
|
8730
|
-
insert_spaces_instead_of_tabs?: boolean | null
|
|
8731
|
-
/**
|
|
8732
|
-
* Position of the right margin.
|
|
8733
|
-
*/
|
|
8734
|
-
right_margin_position?: number | null
|
|
8735
|
-
/**
|
|
8736
|
-
* Whether to display line mark pixbufs
|
|
8737
|
-
*/
|
|
8738
|
-
show_line_marks?: boolean | null
|
|
8739
|
-
/**
|
|
8740
|
-
* Whether to display line numbers
|
|
8741
|
-
*/
|
|
8742
|
-
show_line_numbers?: boolean | null
|
|
8743
|
-
/**
|
|
8744
|
-
* Whether to display the right margin.
|
|
8745
|
-
*/
|
|
8746
|
-
show_right_margin?: boolean | null
|
|
8747
|
-
/**
|
|
8748
|
-
* Whether smart Backspace should be used.
|
|
8749
|
-
*/
|
|
8750
|
-
smart_backspace?: boolean | null
|
|
8751
|
-
/**
|
|
8752
|
-
* Set the behavior of the HOME and END keys.
|
|
8753
|
-
*/
|
|
8754
|
-
smart_home_end?: SmartHomeEndType | null
|
|
8755
|
-
/**
|
|
8756
|
-
* Width of a tab character expressed in number of spaces.
|
|
8757
|
-
*/
|
|
8758
|
-
tab_width?: number | null
|
|
8759
8119
|
autoIndent?: boolean | null
|
|
8760
8120
|
/**
|
|
8761
8121
|
* Draw a specific background pattern on the view.
|
|
@@ -8811,12 +8171,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8811
8171
|
|
|
8812
8172
|
// Own properties of GtkSource-3.0.GtkSource.View
|
|
8813
8173
|
|
|
8814
|
-
auto_indent: boolean
|
|
8815
8174
|
autoIndent: boolean
|
|
8816
|
-
/**
|
|
8817
|
-
* Draw a specific background pattern on the view.
|
|
8818
|
-
*/
|
|
8819
|
-
background_pattern: BackgroundPatternType
|
|
8820
8175
|
/**
|
|
8821
8176
|
* Draw a specific background pattern on the view.
|
|
8822
8177
|
*/
|
|
@@ -8825,13 +8180,6 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8825
8180
|
* The completion object associated with the view
|
|
8826
8181
|
*/
|
|
8827
8182
|
readonly completion: Completion
|
|
8828
|
-
/**
|
|
8829
|
-
* Set if and how the spaces should be visualized.
|
|
8830
|
-
*
|
|
8831
|
-
* For a finer-grained method, there is also the GtkSourceTag's
|
|
8832
|
-
* #GtkSourceTag:draw-spaces property.
|
|
8833
|
-
*/
|
|
8834
|
-
draw_spaces: DrawSpacesFlags
|
|
8835
8183
|
/**
|
|
8836
8184
|
* Set if and how the spaces should be visualized.
|
|
8837
8185
|
*
|
|
@@ -8839,80 +8187,41 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8839
8187
|
* #GtkSourceTag:draw-spaces property.
|
|
8840
8188
|
*/
|
|
8841
8189
|
drawSpaces: DrawSpacesFlags
|
|
8842
|
-
highlight_current_line: boolean
|
|
8843
8190
|
highlightCurrentLine: boolean
|
|
8844
|
-
indent_on_tab: boolean
|
|
8845
8191
|
indentOnTab: boolean
|
|
8846
|
-
/**
|
|
8847
|
-
* Width of an indentation step expressed in number of spaces.
|
|
8848
|
-
*/
|
|
8849
|
-
indent_width: number
|
|
8850
8192
|
/**
|
|
8851
8193
|
* Width of an indentation step expressed in number of spaces.
|
|
8852
8194
|
*/
|
|
8853
8195
|
indentWidth: number
|
|
8854
|
-
insert_spaces_instead_of_tabs: boolean
|
|
8855
8196
|
insertSpacesInsteadOfTabs: boolean
|
|
8856
|
-
/**
|
|
8857
|
-
* Position of the right margin.
|
|
8858
|
-
*/
|
|
8859
|
-
right_margin_position: number
|
|
8860
8197
|
/**
|
|
8861
8198
|
* Position of the right margin.
|
|
8862
8199
|
*/
|
|
8863
8200
|
rightMarginPosition: number
|
|
8864
|
-
/**
|
|
8865
|
-
* Whether to display line mark pixbufs
|
|
8866
|
-
*/
|
|
8867
|
-
show_line_marks: boolean
|
|
8868
8201
|
/**
|
|
8869
8202
|
* Whether to display line mark pixbufs
|
|
8870
8203
|
*/
|
|
8871
8204
|
showLineMarks: boolean
|
|
8872
|
-
/**
|
|
8873
|
-
* Whether to display line numbers
|
|
8874
|
-
*/
|
|
8875
|
-
show_line_numbers: boolean
|
|
8876
8205
|
/**
|
|
8877
8206
|
* Whether to display line numbers
|
|
8878
8207
|
*/
|
|
8879
8208
|
showLineNumbers: boolean
|
|
8880
|
-
/**
|
|
8881
|
-
* Whether to display the right margin.
|
|
8882
|
-
*/
|
|
8883
|
-
show_right_margin: boolean
|
|
8884
8209
|
/**
|
|
8885
8210
|
* Whether to display the right margin.
|
|
8886
8211
|
*/
|
|
8887
8212
|
showRightMargin: boolean
|
|
8888
|
-
/**
|
|
8889
|
-
* Whether smart Backspace should be used.
|
|
8890
|
-
*/
|
|
8891
|
-
smart_backspace: boolean
|
|
8892
8213
|
/**
|
|
8893
8214
|
* Whether smart Backspace should be used.
|
|
8894
8215
|
*/
|
|
8895
8216
|
smartBackspace: boolean
|
|
8896
|
-
/**
|
|
8897
|
-
* Set the behavior of the HOME and END keys.
|
|
8898
|
-
*/
|
|
8899
|
-
smart_home_end: SmartHomeEndType
|
|
8900
8217
|
/**
|
|
8901
8218
|
* Set the behavior of the HOME and END keys.
|
|
8902
8219
|
*/
|
|
8903
8220
|
smartHomeEnd: SmartHomeEndType
|
|
8904
|
-
/**
|
|
8905
|
-
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
8906
|
-
*/
|
|
8907
|
-
readonly space_drawer: SpaceDrawer
|
|
8908
8221
|
/**
|
|
8909
8222
|
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
8910
8223
|
*/
|
|
8911
8224
|
readonly spaceDrawer: SpaceDrawer
|
|
8912
|
-
/**
|
|
8913
|
-
* Width of a tab character expressed in number of spaces.
|
|
8914
|
-
*/
|
|
8915
|
-
tab_width: number
|
|
8916
8225
|
/**
|
|
8917
8226
|
* Width of a tab character expressed in number of spaces.
|
|
8918
8227
|
*/
|
|
@@ -8991,7 +8300,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8991
8300
|
* @param priority place where priority of the category will be stored.
|
|
8992
8301
|
* @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
|
|
8993
8302
|
*/
|
|
8994
|
-
get_mark_attributes(category: string
|
|
8303
|
+
get_mark_attributes(category: string, priority: number): MarkAttributes
|
|
8995
8304
|
/**
|
|
8996
8305
|
* Gets the position of the right margin in the given `view`.
|
|
8997
8306
|
* @returns the position of the right margin.
|
|
@@ -9129,7 +8438,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
9129
8438
|
* @param attributes mark attributes.
|
|
9130
8439
|
* @param priority priority of the category.
|
|
9131
8440
|
*/
|
|
9132
|
-
set_mark_attributes(category: string
|
|
8441
|
+
set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
|
|
9133
8442
|
/**
|
|
9134
8443
|
* Sets the position of the right margin in the given `view`.
|
|
9135
8444
|
* @param pos the width in characters where to position the right margin.
|
|
@@ -9214,7 +8523,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
9214
8523
|
* @param child the child widget
|
|
9215
8524
|
* @param child_property the name of a child property installed on the class of `container`
|
|
9216
8525
|
*/
|
|
9217
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
8526
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
9218
8527
|
|
|
9219
8528
|
// Overloads of child_notify
|
|
9220
8529
|
|
|
@@ -9228,7 +8537,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
9228
8537
|
* Also see gtk_container_child_notify().
|
|
9229
8538
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
9230
8539
|
*/
|
|
9231
|
-
child_notify(child_property: string
|
|
8540
|
+
child_notify(child_property: string): void
|
|
9232
8541
|
/**
|
|
9233
8542
|
* Emits a #GtkWidget::child-notify signal for the
|
|
9234
8543
|
* [child property][child-properties] `child_property`
|
|
@@ -9239,7 +8548,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
9239
8548
|
* Also see gtk_container_child_notify().
|
|
9240
8549
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
9241
8550
|
*/
|
|
9242
|
-
child_notify(child_property: string
|
|
8551
|
+
child_notify(child_property: string): void
|
|
9243
8552
|
|
|
9244
8553
|
// Own virtual methods of GtkSource-3.0.GtkSource.View
|
|
9245
8554
|
|
|
@@ -9846,12 +9155,12 @@ export interface Encoding {
|
|
|
9846
9155
|
* "ISO-8859-1".
|
|
9847
9156
|
* @returns the character set of the #GtkSourceEncoding.
|
|
9848
9157
|
*/
|
|
9849
|
-
get_charset(): string
|
|
9158
|
+
get_charset(): string
|
|
9850
9159
|
/**
|
|
9851
9160
|
* Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
|
|
9852
9161
|
* @returns the name of the #GtkSourceEncoding.
|
|
9853
9162
|
*/
|
|
9854
|
-
get_name(): string
|
|
9163
|
+
get_name(): string
|
|
9855
9164
|
to_string(): string | null
|
|
9856
9165
|
}
|
|
9857
9166
|
|
|
@@ -9889,7 +9198,7 @@ export class Encoding {
|
|
|
9889
9198
|
* @param charset a character set.
|
|
9890
9199
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
9891
9200
|
*/
|
|
9892
|
-
static get_from_charset(charset: string
|
|
9201
|
+
static get_from_charset(charset: string): Encoding | null
|
|
9893
9202
|
static get_utf8(): Encoding
|
|
9894
9203
|
}
|
|
9895
9204
|
|