@girs/gtksource-3.0 3.0.0-3.2.5 → 3.0.0-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/gtksource-3.0.d.cts +822 -120
- package/gtksource-3.0.d.ts +822 -120
- package/package.json +15 -15
package/gtksource-3.0.d.ts
CHANGED
|
@@ -414,7 +414,7 @@ function encoding_get_default_candidates(): Encoding[]
|
|
|
414
414
|
* @param charset a character set.
|
|
415
415
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
416
416
|
*/
|
|
417
|
-
function encoding_get_from_charset(charset: string
|
|
417
|
+
function encoding_get_from_charset(charset: string): Encoding | null
|
|
418
418
|
function encoding_get_utf8(): Encoding
|
|
419
419
|
function file_loader_error_quark(): GLib.Quark
|
|
420
420
|
function file_saver_error_quark(): GLib.Quark
|
|
@@ -438,7 +438,7 @@ function file_saver_error_quark(): GLib.Quark
|
|
|
438
438
|
* @param text the text to escape.
|
|
439
439
|
* @returns the escaped @text.
|
|
440
440
|
*/
|
|
441
|
-
function utils_escape_search_text(text: string
|
|
441
|
+
function utils_escape_search_text(text: string): string | null
|
|
442
442
|
/**
|
|
443
443
|
* Use this function before gtk_source_search_settings_set_search_text(), to
|
|
444
444
|
* unescape the following sequences of characters: `\n`, `\r`, `\t` and `\\`.
|
|
@@ -451,7 +451,7 @@ function utils_escape_search_text(text: string | null): string | null
|
|
|
451
451
|
* @param text the text to unescape.
|
|
452
452
|
* @returns the unescaped @text.
|
|
453
453
|
*/
|
|
454
|
-
function utils_unescape_search_text(text: string
|
|
454
|
+
function utils_unescape_search_text(text: string): string | null
|
|
455
455
|
module CompletionProposal {
|
|
456
456
|
|
|
457
457
|
// Signal callback interfaces
|
|
@@ -961,6 +961,12 @@ module StyleSchemeChooser {
|
|
|
961
961
|
* the current selection programmatically.
|
|
962
962
|
*/
|
|
963
963
|
style_scheme?: StyleScheme | null
|
|
964
|
+
/**
|
|
965
|
+
* The :style-scheme property contains the currently selected style
|
|
966
|
+
* scheme. The property can be set to change
|
|
967
|
+
* the current selection programmatically.
|
|
968
|
+
*/
|
|
969
|
+
styleScheme?: StyleScheme | null
|
|
964
970
|
}
|
|
965
971
|
|
|
966
972
|
}
|
|
@@ -975,6 +981,12 @@ interface StyleSchemeChooser {
|
|
|
975
981
|
* the current selection programmatically.
|
|
976
982
|
*/
|
|
977
983
|
style_scheme: StyleScheme
|
|
984
|
+
/**
|
|
985
|
+
* The :style-scheme property contains the currently selected style
|
|
986
|
+
* scheme. The property can be set to change
|
|
987
|
+
* the current selection programmatically.
|
|
988
|
+
*/
|
|
989
|
+
styleScheme: StyleScheme
|
|
978
990
|
|
|
979
991
|
// Owm methods of GtkSource-3.0.GtkSource.StyleSchemeChooser
|
|
980
992
|
|
|
@@ -1252,6 +1264,31 @@ module Buffer {
|
|
|
1252
1264
|
*/
|
|
1253
1265
|
style_scheme?: StyleScheme | null
|
|
1254
1266
|
undo_manager?: UndoManager | null
|
|
1267
|
+
/**
|
|
1268
|
+
* Whether to highlight matching brackets in the buffer.
|
|
1269
|
+
*/
|
|
1270
|
+
highlightMatchingBrackets?: boolean | null
|
|
1271
|
+
/**
|
|
1272
|
+
* Whether to highlight syntax in the buffer.
|
|
1273
|
+
*/
|
|
1274
|
+
highlightSyntax?: boolean | null
|
|
1275
|
+
/**
|
|
1276
|
+
* Whether the buffer has an implicit trailing newline. See
|
|
1277
|
+
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1278
|
+
*/
|
|
1279
|
+
implicitTrailingNewline?: boolean | null
|
|
1280
|
+
/**
|
|
1281
|
+
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1282
|
+
* will only affect the default undo manager.
|
|
1283
|
+
*/
|
|
1284
|
+
maxUndoLevels?: number | null
|
|
1285
|
+
/**
|
|
1286
|
+
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1287
|
+
* foreground, background, cursor color, current line color, and matching
|
|
1288
|
+
* brackets style.
|
|
1289
|
+
*/
|
|
1290
|
+
styleScheme?: StyleScheme | null
|
|
1291
|
+
undoManager?: UndoManager | null
|
|
1255
1292
|
}
|
|
1256
1293
|
|
|
1257
1294
|
}
|
|
@@ -1261,33 +1298,60 @@ interface Buffer {
|
|
|
1261
1298
|
// Own properties of GtkSource-3.0.GtkSource.Buffer
|
|
1262
1299
|
|
|
1263
1300
|
readonly can_redo: boolean
|
|
1301
|
+
readonly canRedo: boolean
|
|
1264
1302
|
readonly can_undo: boolean
|
|
1303
|
+
readonly canUndo: boolean
|
|
1265
1304
|
/**
|
|
1266
1305
|
* Whether to highlight matching brackets in the buffer.
|
|
1267
1306
|
*/
|
|
1268
1307
|
highlight_matching_brackets: boolean
|
|
1308
|
+
/**
|
|
1309
|
+
* Whether to highlight matching brackets in the buffer.
|
|
1310
|
+
*/
|
|
1311
|
+
highlightMatchingBrackets: boolean
|
|
1269
1312
|
/**
|
|
1270
1313
|
* Whether to highlight syntax in the buffer.
|
|
1271
1314
|
*/
|
|
1272
1315
|
highlight_syntax: boolean
|
|
1316
|
+
/**
|
|
1317
|
+
* Whether to highlight syntax in the buffer.
|
|
1318
|
+
*/
|
|
1319
|
+
highlightSyntax: boolean
|
|
1273
1320
|
/**
|
|
1274
1321
|
* Whether the buffer has an implicit trailing newline. See
|
|
1275
1322
|
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1276
1323
|
*/
|
|
1277
1324
|
implicit_trailing_newline: boolean
|
|
1325
|
+
/**
|
|
1326
|
+
* Whether the buffer has an implicit trailing newline. See
|
|
1327
|
+
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1328
|
+
*/
|
|
1329
|
+
implicitTrailingNewline: boolean
|
|
1278
1330
|
language: Language
|
|
1279
1331
|
/**
|
|
1280
1332
|
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1281
1333
|
* will only affect the default undo manager.
|
|
1282
1334
|
*/
|
|
1283
1335
|
max_undo_levels: number
|
|
1336
|
+
/**
|
|
1337
|
+
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1338
|
+
* will only affect the default undo manager.
|
|
1339
|
+
*/
|
|
1340
|
+
maxUndoLevels: number
|
|
1284
1341
|
/**
|
|
1285
1342
|
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1286
1343
|
* foreground, background, cursor color, current line color, and matching
|
|
1287
1344
|
* brackets style.
|
|
1288
1345
|
*/
|
|
1289
1346
|
style_scheme: StyleScheme
|
|
1347
|
+
/**
|
|
1348
|
+
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1349
|
+
* foreground, background, cursor color, current line color, and matching
|
|
1350
|
+
* brackets style.
|
|
1351
|
+
*/
|
|
1352
|
+
styleScheme: StyleScheme
|
|
1290
1353
|
undo_manager: UndoManager
|
|
1354
|
+
undoManager: UndoManager
|
|
1291
1355
|
|
|
1292
1356
|
// Own fields of GtkSource-3.0.GtkSource.Buffer
|
|
1293
1357
|
|
|
@@ -1341,7 +1405,7 @@ interface Buffer {
|
|
|
1341
1405
|
* @param where location to place the mark.
|
|
1342
1406
|
* @returns a new #GtkSourceMark, owned by the buffer.
|
|
1343
1407
|
*/
|
|
1344
|
-
create_source_mark(name: string | null, category: string
|
|
1408
|
+
create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
|
|
1345
1409
|
/**
|
|
1346
1410
|
* Marks the end of a not undoable action on the buffer. When the
|
|
1347
1411
|
* last not undoable block is closed through the call to this
|
|
@@ -1447,7 +1511,7 @@ interface Buffer {
|
|
|
1447
1511
|
* @param context_class the context class.
|
|
1448
1512
|
* @returns whether we found a context class toggle before @iter
|
|
1449
1513
|
*/
|
|
1450
|
-
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1514
|
+
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
|
|
1451
1515
|
/**
|
|
1452
1516
|
* Moves forward to the next toggle (on or off) of the context class. If no
|
|
1453
1517
|
* matching context class toggles are found, returns %FALSE, otherwise %TRUE.
|
|
@@ -1460,7 +1524,7 @@ interface Buffer {
|
|
|
1460
1524
|
* @param context_class the context class.
|
|
1461
1525
|
* @returns whether we found a context class toggle after @iter
|
|
1462
1526
|
*/
|
|
1463
|
-
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1527
|
+
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
|
|
1464
1528
|
/**
|
|
1465
1529
|
* Check if the class `context_class` is set on `iter`.
|
|
1466
1530
|
*
|
|
@@ -1469,7 +1533,7 @@ interface Buffer {
|
|
|
1469
1533
|
* @param context_class class to search for.
|
|
1470
1534
|
* @returns whether @iter has the context class.
|
|
1471
1535
|
*/
|
|
1472
|
-
iter_has_context_class(iter: Gtk.TextIter, context_class: string
|
|
1536
|
+
iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
|
|
1473
1537
|
/**
|
|
1474
1538
|
* Joins the lines of text between the specified iterators.
|
|
1475
1539
|
* @param start a #GtkTextIter.
|
|
@@ -1836,6 +1900,48 @@ module Completion {
|
|
|
1836
1900
|
* The #GtkSourceView bound to the completion object.
|
|
1837
1901
|
*/
|
|
1838
1902
|
view?: View | null
|
|
1903
|
+
/**
|
|
1904
|
+
* Determines the popup delay (in milliseconds) at which the completion
|
|
1905
|
+
* will be shown for interactive completion.
|
|
1906
|
+
*/
|
|
1907
|
+
autoCompleteDelay?: number | null
|
|
1908
|
+
/**
|
|
1909
|
+
* The scroll page size of the proposals in the completion window. In
|
|
1910
|
+
* other words, when <keycap>PageDown</keycap> or
|
|
1911
|
+
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1912
|
+
* proposal becomes the one which is located one page size backward or
|
|
1913
|
+
* forward.
|
|
1914
|
+
*
|
|
1915
|
+
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1916
|
+
*/
|
|
1917
|
+
proposalPageSize?: number | null
|
|
1918
|
+
/**
|
|
1919
|
+
* The scroll page size of the provider pages in the completion window.
|
|
1920
|
+
*
|
|
1921
|
+
* See the #GtkSourceCompletion::move-page signal.
|
|
1922
|
+
*/
|
|
1923
|
+
providerPageSize?: number | null
|
|
1924
|
+
/**
|
|
1925
|
+
* Determines whether the visibility of the info window should be
|
|
1926
|
+
* saved when the completion is hidden, and restored when the completion
|
|
1927
|
+
* is shown again.
|
|
1928
|
+
*/
|
|
1929
|
+
rememberInfoVisibility?: boolean | null
|
|
1930
|
+
/**
|
|
1931
|
+
* Determines whether the first proposal should be selected when the
|
|
1932
|
+
* completion is first shown.
|
|
1933
|
+
*/
|
|
1934
|
+
selectOnShow?: boolean | null
|
|
1935
|
+
/**
|
|
1936
|
+
* Determines whether provider headers should be shown in the proposal
|
|
1937
|
+
* list. It can be useful to disable when there is only one provider.
|
|
1938
|
+
*/
|
|
1939
|
+
showHeaders?: boolean | null
|
|
1940
|
+
/**
|
|
1941
|
+
* Determines whether provider and proposal icons should be shown in
|
|
1942
|
+
* the completion popup.
|
|
1943
|
+
*/
|
|
1944
|
+
showIcons?: boolean | null
|
|
1839
1945
|
}
|
|
1840
1946
|
|
|
1841
1947
|
}
|
|
@@ -1855,6 +1961,11 @@ interface Completion extends Gtk.Buildable {
|
|
|
1855
1961
|
* will be shown for interactive completion.
|
|
1856
1962
|
*/
|
|
1857
1963
|
auto_complete_delay: number
|
|
1964
|
+
/**
|
|
1965
|
+
* Determines the popup delay (in milliseconds) at which the completion
|
|
1966
|
+
* will be shown for interactive completion.
|
|
1967
|
+
*/
|
|
1968
|
+
autoCompleteDelay: number
|
|
1858
1969
|
/**
|
|
1859
1970
|
* The scroll page size of the proposals in the completion window. In
|
|
1860
1971
|
* other words, when <keycap>PageDown</keycap> or
|
|
@@ -1865,33 +1976,70 @@ interface Completion extends Gtk.Buildable {
|
|
|
1865
1976
|
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1866
1977
|
*/
|
|
1867
1978
|
proposal_page_size: number
|
|
1979
|
+
/**
|
|
1980
|
+
* The scroll page size of the proposals in the completion window. In
|
|
1981
|
+
* other words, when <keycap>PageDown</keycap> or
|
|
1982
|
+
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1983
|
+
* proposal becomes the one which is located one page size backward or
|
|
1984
|
+
* forward.
|
|
1985
|
+
*
|
|
1986
|
+
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1987
|
+
*/
|
|
1988
|
+
proposalPageSize: number
|
|
1868
1989
|
/**
|
|
1869
1990
|
* The scroll page size of the provider pages in the completion window.
|
|
1870
1991
|
*
|
|
1871
1992
|
* See the #GtkSourceCompletion::move-page signal.
|
|
1872
1993
|
*/
|
|
1873
1994
|
provider_page_size: number
|
|
1995
|
+
/**
|
|
1996
|
+
* The scroll page size of the provider pages in the completion window.
|
|
1997
|
+
*
|
|
1998
|
+
* See the #GtkSourceCompletion::move-page signal.
|
|
1999
|
+
*/
|
|
2000
|
+
providerPageSize: number
|
|
1874
2001
|
/**
|
|
1875
2002
|
* Determines whether the visibility of the info window should be
|
|
1876
2003
|
* saved when the completion is hidden, and restored when the completion
|
|
1877
2004
|
* is shown again.
|
|
1878
2005
|
*/
|
|
1879
2006
|
remember_info_visibility: boolean
|
|
2007
|
+
/**
|
|
2008
|
+
* Determines whether the visibility of the info window should be
|
|
2009
|
+
* saved when the completion is hidden, and restored when the completion
|
|
2010
|
+
* is shown again.
|
|
2011
|
+
*/
|
|
2012
|
+
rememberInfoVisibility: boolean
|
|
1880
2013
|
/**
|
|
1881
2014
|
* Determines whether the first proposal should be selected when the
|
|
1882
2015
|
* completion is first shown.
|
|
1883
2016
|
*/
|
|
1884
2017
|
select_on_show: boolean
|
|
2018
|
+
/**
|
|
2019
|
+
* Determines whether the first proposal should be selected when the
|
|
2020
|
+
* completion is first shown.
|
|
2021
|
+
*/
|
|
2022
|
+
selectOnShow: boolean
|
|
1885
2023
|
/**
|
|
1886
2024
|
* Determines whether provider headers should be shown in the proposal
|
|
1887
2025
|
* list. It can be useful to disable when there is only one provider.
|
|
1888
2026
|
*/
|
|
1889
2027
|
show_headers: boolean
|
|
2028
|
+
/**
|
|
2029
|
+
* Determines whether provider headers should be shown in the proposal
|
|
2030
|
+
* list. It can be useful to disable when there is only one provider.
|
|
2031
|
+
*/
|
|
2032
|
+
showHeaders: boolean
|
|
1890
2033
|
/**
|
|
1891
2034
|
* Determines whether provider and proposal icons should be shown in
|
|
1892
2035
|
* the completion popup.
|
|
1893
2036
|
*/
|
|
1894
2037
|
show_icons: boolean
|
|
2038
|
+
/**
|
|
2039
|
+
* Determines whether provider and proposal icons should be shown in
|
|
2040
|
+
* the completion popup.
|
|
2041
|
+
*/
|
|
2042
|
+
showIcons: boolean
|
|
1895
2043
|
/**
|
|
1896
2044
|
* The #GtkSourceView bound to the completion object.
|
|
1897
2045
|
*/
|
|
@@ -2276,7 +2424,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2276
2424
|
* @param child the child widget
|
|
2277
2425
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2278
2426
|
*/
|
|
2279
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2427
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2280
2428
|
|
|
2281
2429
|
// Overloads of child_notify
|
|
2282
2430
|
|
|
@@ -2290,7 +2438,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2290
2438
|
* Also see gtk_container_child_notify().
|
|
2291
2439
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2292
2440
|
*/
|
|
2293
|
-
child_notify(child_property: string
|
|
2441
|
+
child_notify(child_property: string): void
|
|
2294
2442
|
/**
|
|
2295
2443
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2296
2444
|
* [child property][child-properties] `child_property`
|
|
@@ -2301,7 +2449,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2301
2449
|
* Also see gtk_container_child_notify().
|
|
2302
2450
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2303
2451
|
*/
|
|
2304
|
-
child_notify(child_property: string
|
|
2452
|
+
child_notify(child_property: string): void
|
|
2305
2453
|
|
|
2306
2454
|
// Own virtual methods of GtkSource-3.0.GtkSource.CompletionInfo
|
|
2307
2455
|
|
|
@@ -2626,6 +2774,10 @@ module CompletionItem {
|
|
|
2626
2774
|
* Proposal text.
|
|
2627
2775
|
*/
|
|
2628
2776
|
text?: string | null
|
|
2777
|
+
/**
|
|
2778
|
+
* The icon name for the icon to be shown for this proposal.
|
|
2779
|
+
*/
|
|
2780
|
+
iconName?: string | null
|
|
2629
2781
|
}
|
|
2630
2782
|
|
|
2631
2783
|
}
|
|
@@ -2646,6 +2798,10 @@ interface CompletionItem extends CompletionProposal {
|
|
|
2646
2798
|
* The icon name for the icon to be shown for this proposal.
|
|
2647
2799
|
*/
|
|
2648
2800
|
icon_name: string | null
|
|
2801
|
+
/**
|
|
2802
|
+
* The icon name for the icon to be shown for this proposal.
|
|
2803
|
+
*/
|
|
2804
|
+
iconName: string | null
|
|
2649
2805
|
/**
|
|
2650
2806
|
* Optional extra information to be shown for this proposal.
|
|
2651
2807
|
*/
|
|
@@ -2728,7 +2884,7 @@ class CompletionItem extends GObject.Object {
|
|
|
2728
2884
|
* @param info The item extra information.
|
|
2729
2885
|
* @returns a new #GtkSourceCompletionItem.
|
|
2730
2886
|
*/
|
|
2731
|
-
constructor(label: string
|
|
2887
|
+
constructor(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null)
|
|
2732
2888
|
/**
|
|
2733
2889
|
* Create a new #GtkSourceCompletionItem with label `label,` icon `icon` and
|
|
2734
2890
|
* extra information `info`. Both `icon` and `info` can be %NULL in which case
|
|
@@ -2740,7 +2896,7 @@ class CompletionItem extends GObject.Object {
|
|
|
2740
2896
|
* @param info The item extra information.
|
|
2741
2897
|
* @returns a new #GtkSourceCompletionItem.
|
|
2742
2898
|
*/
|
|
2743
|
-
static new(label: string
|
|
2899
|
+
static new(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
|
|
2744
2900
|
/**
|
|
2745
2901
|
* Creates a new #GtkSourceCompletionItem from a stock item. If `label` is %NULL,
|
|
2746
2902
|
* the stock label will be used.
|
|
@@ -2751,7 +2907,7 @@ class CompletionItem extends GObject.Object {
|
|
|
2751
2907
|
* @param info The item extra information.
|
|
2752
2908
|
* @returns a new #GtkSourceCompletionItem.
|
|
2753
2909
|
*/
|
|
2754
|
-
static new_from_stock(label: string | null, text: string
|
|
2910
|
+
static new_from_stock(label: string | null, text: string, stock: string, info: string | null): CompletionItem
|
|
2755
2911
|
/**
|
|
2756
2912
|
* Create a new #GtkSourceCompletionItem with markup label `markup,` icon
|
|
2757
2913
|
* `icon` and extra information `info`. Both `icon` and `info` can be %NULL in
|
|
@@ -2763,7 +2919,7 @@ class CompletionItem extends GObject.Object {
|
|
|
2763
2919
|
* @param info The item extra information.
|
|
2764
2920
|
* @returns a new #GtkSourceCompletionItem.
|
|
2765
2921
|
*/
|
|
2766
|
-
static new_with_markup(markup: string
|
|
2922
|
+
static new_with_markup(markup: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
|
|
2767
2923
|
_init(config?: CompletionItem.ConstructorProperties): void
|
|
2768
2924
|
/**
|
|
2769
2925
|
* Creates a new #GtkSourceCompletionItem. The desired properties need to be set
|
|
@@ -2792,6 +2948,10 @@ module CompletionWords {
|
|
|
2792
2948
|
priority?: number | null
|
|
2793
2949
|
proposals_batch_size?: number | null
|
|
2794
2950
|
scan_batch_size?: number | null
|
|
2951
|
+
interactiveDelay?: number | null
|
|
2952
|
+
minimumWordSize?: number | null
|
|
2953
|
+
proposalsBatchSize?: number | null
|
|
2954
|
+
scanBatchSize?: number | null
|
|
2795
2955
|
}
|
|
2796
2956
|
|
|
2797
2957
|
}
|
|
@@ -2806,11 +2966,15 @@ interface CompletionWords extends CompletionProvider {
|
|
|
2806
2966
|
activation: CompletionActivation
|
|
2807
2967
|
icon: GdkPixbuf.Pixbuf
|
|
2808
2968
|
interactive_delay: number
|
|
2969
|
+
interactiveDelay: number
|
|
2809
2970
|
minimum_word_size: number
|
|
2971
|
+
minimumWordSize: number
|
|
2810
2972
|
name: string | null
|
|
2811
2973
|
priority: number
|
|
2812
2974
|
proposals_batch_size: number
|
|
2975
|
+
proposalsBatchSize: number
|
|
2813
2976
|
scan_batch_size: number
|
|
2977
|
+
scanBatchSize: number
|
|
2814
2978
|
|
|
2815
2979
|
// Own fields of GtkSource-3.0.GtkSource.CompletionWords
|
|
2816
2980
|
|
|
@@ -2901,6 +3065,10 @@ interface File {
|
|
|
2901
3065
|
* The compression type.
|
|
2902
3066
|
*/
|
|
2903
3067
|
readonly compression_type: CompressionType
|
|
3068
|
+
/**
|
|
3069
|
+
* The compression type.
|
|
3070
|
+
*/
|
|
3071
|
+
readonly compressionType: CompressionType
|
|
2904
3072
|
/**
|
|
2905
3073
|
* The character encoding, initially %NULL. After a successful file
|
|
2906
3074
|
* loading or saving operation, the encoding is non-%NULL.
|
|
@@ -2914,11 +3082,20 @@ interface File {
|
|
|
2914
3082
|
* The line ending type.
|
|
2915
3083
|
*/
|
|
2916
3084
|
readonly newline_type: NewlineType
|
|
3085
|
+
/**
|
|
3086
|
+
* The line ending type.
|
|
3087
|
+
*/
|
|
3088
|
+
readonly newlineType: NewlineType
|
|
2917
3089
|
/**
|
|
2918
3090
|
* Whether the file is read-only or not. The value of this property is
|
|
2919
3091
|
* not updated automatically (there is no file monitors).
|
|
2920
3092
|
*/
|
|
2921
3093
|
readonly read_only: boolean
|
|
3094
|
+
/**
|
|
3095
|
+
* Whether the file is read-only or not. The value of this property is
|
|
3096
|
+
* not updated automatically (there is no file monitors).
|
|
3097
|
+
*/
|
|
3098
|
+
readonly readOnly: boolean
|
|
2922
3099
|
|
|
2923
3100
|
// Own fields of GtkSource-3.0.GtkSource.File
|
|
2924
3101
|
|
|
@@ -3054,6 +3231,11 @@ module FileLoader {
|
|
|
3054
3231
|
* construction time.
|
|
3055
3232
|
*/
|
|
3056
3233
|
location?: Gio.File | null
|
|
3234
|
+
/**
|
|
3235
|
+
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3236
|
+
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3237
|
+
*/
|
|
3238
|
+
inputStream?: Gio.InputStream | null
|
|
3057
3239
|
}
|
|
3058
3240
|
|
|
3059
3241
|
}
|
|
@@ -3077,6 +3259,11 @@ interface FileLoader {
|
|
|
3077
3259
|
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3078
3260
|
*/
|
|
3079
3261
|
readonly input_stream: Gio.InputStream
|
|
3262
|
+
/**
|
|
3263
|
+
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3264
|
+
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3265
|
+
*/
|
|
3266
|
+
readonly inputStream: Gio.InputStream
|
|
3080
3267
|
/**
|
|
3081
3268
|
* The #GFile to load. If the #GtkSourceFileLoader:input-stream is
|
|
3082
3269
|
* %NULL, by default the location is taken from the #GtkSourceFile at
|
|
@@ -3254,6 +3441,14 @@ module FileSaver {
|
|
|
3254
3441
|
* The newline type.
|
|
3255
3442
|
*/
|
|
3256
3443
|
newline_type?: NewlineType | null
|
|
3444
|
+
/**
|
|
3445
|
+
* The compression type.
|
|
3446
|
+
*/
|
|
3447
|
+
compressionType?: CompressionType | null
|
|
3448
|
+
/**
|
|
3449
|
+
* The newline type.
|
|
3450
|
+
*/
|
|
3451
|
+
newlineType?: NewlineType | null
|
|
3257
3452
|
}
|
|
3258
3453
|
|
|
3259
3454
|
}
|
|
@@ -3271,6 +3466,10 @@ interface FileSaver {
|
|
|
3271
3466
|
* The compression type.
|
|
3272
3467
|
*/
|
|
3273
3468
|
compression_type: CompressionType
|
|
3469
|
+
/**
|
|
3470
|
+
* The compression type.
|
|
3471
|
+
*/
|
|
3472
|
+
compressionType: CompressionType
|
|
3274
3473
|
/**
|
|
3275
3474
|
* The file's encoding.
|
|
3276
3475
|
*/
|
|
@@ -3293,6 +3492,10 @@ interface FileSaver {
|
|
|
3293
3492
|
* The newline type.
|
|
3294
3493
|
*/
|
|
3295
3494
|
newline_type: NewlineType
|
|
3495
|
+
/**
|
|
3496
|
+
* The newline type.
|
|
3497
|
+
*/
|
|
3498
|
+
newlineType: NewlineType
|
|
3296
3499
|
|
|
3297
3500
|
// Own fields of GtkSource-3.0.GtkSource.FileSaver
|
|
3298
3501
|
|
|
@@ -3469,6 +3672,10 @@ module Gutter {
|
|
|
3469
3672
|
* The y-padding.
|
|
3470
3673
|
*/
|
|
3471
3674
|
ypad?: number | null
|
|
3675
|
+
/**
|
|
3676
|
+
* The text window type on which the window is placed.
|
|
3677
|
+
*/
|
|
3678
|
+
windowType?: Gtk.TextWindowType | null
|
|
3472
3679
|
}
|
|
3473
3680
|
|
|
3474
3681
|
}
|
|
@@ -3485,6 +3692,10 @@ interface Gutter {
|
|
|
3485
3692
|
* The text window type on which the window is placed.
|
|
3486
3693
|
*/
|
|
3487
3694
|
readonly window_type: Gtk.TextWindowType
|
|
3695
|
+
/**
|
|
3696
|
+
* The text window type on which the window is placed.
|
|
3697
|
+
*/
|
|
3698
|
+
readonly windowType: Gtk.TextWindowType
|
|
3488
3699
|
/**
|
|
3489
3700
|
* The x-padding.
|
|
3490
3701
|
*/
|
|
@@ -3657,6 +3868,15 @@ module GutterRenderer {
|
|
|
3657
3868
|
* The top and bottom padding of the renderer.
|
|
3658
3869
|
*/
|
|
3659
3870
|
ypad?: number | null
|
|
3871
|
+
/**
|
|
3872
|
+
* The alignment mode of the renderer. This can be used to indicate
|
|
3873
|
+
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
3874
|
+
* the alignment should work on either the full cell, the first line
|
|
3875
|
+
* or the last line.
|
|
3876
|
+
*/
|
|
3877
|
+
alignmentMode?: GutterRendererAlignmentMode | null
|
|
3878
|
+
backgroundRgba?: Gdk.RGBA | null
|
|
3879
|
+
backgroundSet?: boolean | null
|
|
3660
3880
|
}
|
|
3661
3881
|
|
|
3662
3882
|
}
|
|
@@ -3672,8 +3892,17 @@ interface GutterRenderer {
|
|
|
3672
3892
|
* or the last line.
|
|
3673
3893
|
*/
|
|
3674
3894
|
alignment_mode: GutterRendererAlignmentMode
|
|
3895
|
+
/**
|
|
3896
|
+
* The alignment mode of the renderer. This can be used to indicate
|
|
3897
|
+
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
3898
|
+
* the alignment should work on either the full cell, the first line
|
|
3899
|
+
* or the last line.
|
|
3900
|
+
*/
|
|
3901
|
+
alignmentMode: GutterRendererAlignmentMode
|
|
3675
3902
|
background_rgba: Gdk.RGBA
|
|
3903
|
+
backgroundRgba: Gdk.RGBA
|
|
3676
3904
|
background_set: boolean
|
|
3905
|
+
backgroundSet: boolean
|
|
3677
3906
|
size: number
|
|
3678
3907
|
/**
|
|
3679
3908
|
* The view on which the renderer is placed.
|
|
@@ -3688,6 +3917,11 @@ interface GutterRenderer {
|
|
|
3688
3917
|
* or right).
|
|
3689
3918
|
*/
|
|
3690
3919
|
readonly window_type: Gtk.TextWindowType
|
|
3920
|
+
/**
|
|
3921
|
+
* The window type of the view on which the renderer is placed (left,
|
|
3922
|
+
* or right).
|
|
3923
|
+
*/
|
|
3924
|
+
readonly windowType: Gtk.TextWindowType
|
|
3691
3925
|
/**
|
|
3692
3926
|
* The horizontal alignment of the renderer. Set to 0 for a left
|
|
3693
3927
|
* alignment. 1 for a right alignment. And 0.5 for centering the cells.
|
|
@@ -4078,6 +4312,11 @@ module GutterRendererPixbuf {
|
|
|
4078
4312
|
* The stock id.
|
|
4079
4313
|
*/
|
|
4080
4314
|
stock_id?: string | null
|
|
4315
|
+
iconName?: string | null
|
|
4316
|
+
/**
|
|
4317
|
+
* The stock id.
|
|
4318
|
+
*/
|
|
4319
|
+
stockId?: string | null
|
|
4081
4320
|
}
|
|
4082
4321
|
|
|
4083
4322
|
}
|
|
@@ -4088,11 +4327,16 @@ interface GutterRendererPixbuf {
|
|
|
4088
4327
|
|
|
4089
4328
|
gicon: Gio.Icon
|
|
4090
4329
|
icon_name: string | null
|
|
4330
|
+
iconName: string | null
|
|
4091
4331
|
pixbuf: GdkPixbuf.Pixbuf
|
|
4092
4332
|
/**
|
|
4093
4333
|
* The stock id.
|
|
4094
4334
|
*/
|
|
4095
4335
|
stock_id: string | null
|
|
4336
|
+
/**
|
|
4337
|
+
* The stock id.
|
|
4338
|
+
*/
|
|
4339
|
+
stockId: string | null
|
|
4096
4340
|
|
|
4097
4341
|
// Owm methods of GtkSource-3.0.GtkSource.GutterRendererPixbuf
|
|
4098
4342
|
|
|
@@ -4101,13 +4345,13 @@ interface GutterRendererPixbuf {
|
|
|
4101
4345
|
* @returns a #GIcon
|
|
4102
4346
|
*/
|
|
4103
4347
|
get_gicon(): Gio.Icon
|
|
4104
|
-
get_icon_name(): string
|
|
4348
|
+
get_icon_name(): string
|
|
4105
4349
|
/**
|
|
4106
4350
|
* Get the pixbuf of the renderer.
|
|
4107
4351
|
* @returns a #GdkPixbuf
|
|
4108
4352
|
*/
|
|
4109
4353
|
get_pixbuf(): GdkPixbuf.Pixbuf
|
|
4110
|
-
get_stock_id(): string
|
|
4354
|
+
get_stock_id(): string
|
|
4111
4355
|
set_gicon(icon: Gio.Icon | null): void
|
|
4112
4356
|
set_icon_name(icon_name: string | null): void
|
|
4113
4357
|
set_pixbuf(pixbuf: GdkPixbuf.Pixbuf | null): void
|
|
@@ -4219,15 +4463,15 @@ interface GutterRendererText {
|
|
|
4219
4463
|
* #GtkSourceGutterRendererText.
|
|
4220
4464
|
* @param text the text to measure.
|
|
4221
4465
|
*/
|
|
4222
|
-
measure(text: string
|
|
4466
|
+
measure(text: string): [ /* width */ number, /* height */ number ]
|
|
4223
4467
|
/**
|
|
4224
4468
|
* Measures the pango markup provided using the pango layout used by the
|
|
4225
4469
|
* #GtkSourceGutterRendererText.
|
|
4226
4470
|
* @param markup the pango markup to measure.
|
|
4227
4471
|
*/
|
|
4228
|
-
measure_markup(markup: string
|
|
4229
|
-
set_markup(markup: string
|
|
4230
|
-
set_text(text: string
|
|
4472
|
+
measure_markup(markup: string): [ /* width */ number, /* height */ number ]
|
|
4473
|
+
set_markup(markup: string, length: number): void
|
|
4474
|
+
set_text(text: string, length: number): void
|
|
4231
4475
|
|
|
4232
4476
|
// Class property signals of GtkSource-3.0.GtkSource.GutterRendererText
|
|
4233
4477
|
|
|
@@ -4344,8 +4588,8 @@ interface Language {
|
|
|
4344
4588
|
* or modified.
|
|
4345
4589
|
* @returns the ID of @language.
|
|
4346
4590
|
*/
|
|
4347
|
-
get_id(): string
|
|
4348
|
-
get_metadata(name: string
|
|
4591
|
+
get_id(): string
|
|
4592
|
+
get_metadata(name: string): string | null
|
|
4349
4593
|
/**
|
|
4350
4594
|
* Returns the mime types associated to this language. This is just
|
|
4351
4595
|
* an utility wrapper around gtk_source_language_get_metadata() to
|
|
@@ -4360,7 +4604,7 @@ interface Language {
|
|
|
4360
4604
|
* or modified.
|
|
4361
4605
|
* @returns the name of @language.
|
|
4362
4606
|
*/
|
|
4363
|
-
get_name(): string
|
|
4607
|
+
get_name(): string
|
|
4364
4608
|
/**
|
|
4365
4609
|
* Returns the localized section of the language.
|
|
4366
4610
|
* Each language belong to a section (ex. HTML belogs to the
|
|
@@ -4369,14 +4613,14 @@ interface Language {
|
|
|
4369
4613
|
* or modified.
|
|
4370
4614
|
* @returns the section of @language.
|
|
4371
4615
|
*/
|
|
4372
|
-
get_section(): string
|
|
4616
|
+
get_section(): string
|
|
4373
4617
|
/**
|
|
4374
4618
|
* Returns the ID of the style to use if the specified `style_id`
|
|
4375
4619
|
* is not present in the current style scheme.
|
|
4376
4620
|
* @param style_id a style ID.
|
|
4377
4621
|
* @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.
|
|
4378
4622
|
*/
|
|
4379
|
-
get_style_fallback(style_id: string
|
|
4623
|
+
get_style_fallback(style_id: string): string | null
|
|
4380
4624
|
/**
|
|
4381
4625
|
* Returns the ids of the styles defined by this `language`.
|
|
4382
4626
|
* @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().
|
|
@@ -4387,7 +4631,7 @@ interface Language {
|
|
|
4387
4631
|
* @param style_id a style ID.
|
|
4388
4632
|
* @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.
|
|
4389
4633
|
*/
|
|
4390
|
-
get_style_name(style_id: string
|
|
4634
|
+
get_style_name(style_id: string): string | null
|
|
4391
4635
|
|
|
4392
4636
|
// Class property signals of GtkSource-3.0.GtkSource.Language
|
|
4393
4637
|
|
|
@@ -4431,6 +4675,7 @@ module LanguageManager {
|
|
|
4431
4675
|
// Own constructor properties of GtkSource-3.0.GtkSource.LanguageManager
|
|
4432
4676
|
|
|
4433
4677
|
search_path?: string[] | null
|
|
4678
|
+
searchPath?: string[] | null
|
|
4434
4679
|
}
|
|
4435
4680
|
|
|
4436
4681
|
}
|
|
@@ -4440,7 +4685,9 @@ interface LanguageManager {
|
|
|
4440
4685
|
// Own properties of GtkSource-3.0.GtkSource.LanguageManager
|
|
4441
4686
|
|
|
4442
4687
|
readonly language_ids: string[]
|
|
4688
|
+
readonly languageIds: string[]
|
|
4443
4689
|
search_path: string[]
|
|
4690
|
+
searchPath: string[]
|
|
4444
4691
|
|
|
4445
4692
|
// Own fields of GtkSource-3.0.GtkSource.LanguageManager
|
|
4446
4693
|
|
|
@@ -4455,7 +4702,7 @@ interface LanguageManager {
|
|
|
4455
4702
|
* @param id a language id.
|
|
4456
4703
|
* @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.
|
|
4457
4704
|
*/
|
|
4458
|
-
get_language(id: string
|
|
4705
|
+
get_language(id: string): Language | null
|
|
4459
4706
|
/**
|
|
4460
4707
|
* Returns the ids of the available languages.
|
|
4461
4708
|
* @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.
|
|
@@ -4579,6 +4826,7 @@ module Map {
|
|
|
4579
4826
|
|
|
4580
4827
|
font_desc?: Pango.FontDescription | null
|
|
4581
4828
|
view?: View | null
|
|
4829
|
+
fontDesc?: Pango.FontDescription | null
|
|
4582
4830
|
}
|
|
4583
4831
|
|
|
4584
4832
|
}
|
|
@@ -4588,6 +4836,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4588
4836
|
// Own properties of GtkSource-3.0.GtkSource.Map
|
|
4589
4837
|
|
|
4590
4838
|
font_desc: Pango.FontDescription
|
|
4839
|
+
fontDesc: Pango.FontDescription
|
|
4591
4840
|
view: View
|
|
4592
4841
|
|
|
4593
4842
|
// Conflicting properties
|
|
@@ -4648,7 +4897,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4648
4897
|
* @param child the child widget
|
|
4649
4898
|
* @param child_property the name of a child property installed on the class of `container`
|
|
4650
4899
|
*/
|
|
4651
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
4900
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
4652
4901
|
|
|
4653
4902
|
// Overloads of child_notify
|
|
4654
4903
|
|
|
@@ -4662,7 +4911,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4662
4911
|
* Also see gtk_container_child_notify().
|
|
4663
4912
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4664
4913
|
*/
|
|
4665
|
-
child_notify(child_property: string
|
|
4914
|
+
child_notify(child_property: string): void
|
|
4666
4915
|
/**
|
|
4667
4916
|
* Emits a #GtkWidget::child-notify signal for the
|
|
4668
4917
|
* [child property][child-properties] `child_property`
|
|
@@ -4673,7 +4922,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
4673
4922
|
* Also see gtk_container_child_notify().
|
|
4674
4923
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4675
4924
|
*/
|
|
4676
|
-
child_notify(child_property: string
|
|
4925
|
+
child_notify(child_property: string): void
|
|
4677
4926
|
|
|
4678
4927
|
// Class property signals of GtkSource-3.0.GtkSource.Map
|
|
4679
4928
|
|
|
@@ -5005,7 +5254,7 @@ interface Mark {
|
|
|
5005
5254
|
* Returns the mark category.
|
|
5006
5255
|
* @returns the category of the #GtkSourceMark.
|
|
5007
5256
|
*/
|
|
5008
|
-
get_category(): string
|
|
5257
|
+
get_category(): string
|
|
5009
5258
|
/**
|
|
5010
5259
|
* Returns the next #GtkSourceMark in the buffer or %NULL if the mark
|
|
5011
5260
|
* was not added to a buffer. If there is no next mark, %NULL will be returned.
|
|
@@ -5023,7 +5272,7 @@ interface Mark {
|
|
|
5023
5272
|
* @param category a string specifying the mark category, or %NULL.
|
|
5024
5273
|
* @returns the previous #GtkSourceMark, or %NULL.
|
|
5025
5274
|
*/
|
|
5026
|
-
prev(category: string
|
|
5275
|
+
prev(category: string): Mark | null
|
|
5027
5276
|
|
|
5028
5277
|
// Class property signals of GtkSource-3.0.GtkSource.Mark
|
|
5029
5278
|
|
|
@@ -5063,7 +5312,7 @@ class Mark extends Gtk.TextMark {
|
|
|
5063
5312
|
* @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).
|
|
5064
5313
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5065
5314
|
*/
|
|
5066
|
-
constructor(name: string
|
|
5315
|
+
constructor(name: string, category: string)
|
|
5067
5316
|
/**
|
|
5068
5317
|
* Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
|
|
5069
5318
|
* If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
|
|
@@ -5075,7 +5324,7 @@ class Mark extends Gtk.TextMark {
|
|
|
5075
5324
|
* @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).
|
|
5076
5325
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5077
5326
|
*/
|
|
5078
|
-
static new(name: string
|
|
5327
|
+
static new(name: string, category: string): Mark
|
|
5079
5328
|
|
|
5080
5329
|
// Overloads of new
|
|
5081
5330
|
|
|
@@ -5143,6 +5392,14 @@ module MarkAttributes {
|
|
|
5143
5392
|
* A stock id that may be a base of a rendered icon.
|
|
5144
5393
|
*/
|
|
5145
5394
|
stock_id?: string | null
|
|
5395
|
+
/**
|
|
5396
|
+
* An icon name that may be a base of a rendered icon.
|
|
5397
|
+
*/
|
|
5398
|
+
iconName?: string | null
|
|
5399
|
+
/**
|
|
5400
|
+
* A stock id that may be a base of a rendered icon.
|
|
5401
|
+
*/
|
|
5402
|
+
stockId?: string | null
|
|
5146
5403
|
}
|
|
5147
5404
|
|
|
5148
5405
|
}
|
|
@@ -5163,6 +5420,10 @@ interface MarkAttributes {
|
|
|
5163
5420
|
* An icon name that may be a base of a rendered icon.
|
|
5164
5421
|
*/
|
|
5165
5422
|
icon_name: string | null
|
|
5423
|
+
/**
|
|
5424
|
+
* An icon name that may be a base of a rendered icon.
|
|
5425
|
+
*/
|
|
5426
|
+
iconName: string | null
|
|
5166
5427
|
/**
|
|
5167
5428
|
* A #GdkPixbuf that may be a base of a rendered icon.
|
|
5168
5429
|
*/
|
|
@@ -5171,6 +5432,10 @@ interface MarkAttributes {
|
|
|
5171
5432
|
* A stock id that may be a base of a rendered icon.
|
|
5172
5433
|
*/
|
|
5173
5434
|
stock_id: string | null
|
|
5435
|
+
/**
|
|
5436
|
+
* A stock id that may be a base of a rendered icon.
|
|
5437
|
+
*/
|
|
5438
|
+
stockId: string | null
|
|
5174
5439
|
|
|
5175
5440
|
// Owm methods of GtkSource-3.0.GtkSource.MarkAttributes
|
|
5176
5441
|
|
|
@@ -5190,7 +5455,7 @@ interface MarkAttributes {
|
|
|
5190
5455
|
* icon name can be %NULL if it wasn't set earlier.
|
|
5191
5456
|
* @returns An icon name. The string belongs to @attributes and should not be freed.
|
|
5192
5457
|
*/
|
|
5193
|
-
get_icon_name(): string
|
|
5458
|
+
get_icon_name(): string
|
|
5194
5459
|
/**
|
|
5195
5460
|
* Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
|
|
5196
5461
|
* pixbuf can be %NULL if it wasn't set earlier.
|
|
@@ -5202,7 +5467,7 @@ interface MarkAttributes {
|
|
|
5202
5467
|
* be %NULL if it wasn't set earlier.
|
|
5203
5468
|
* @returns Stock id. Returned string is owned by @attributes and shouldn't be freed.
|
|
5204
5469
|
*/
|
|
5205
|
-
get_stock_id(): string
|
|
5470
|
+
get_stock_id(): string
|
|
5206
5471
|
/**
|
|
5207
5472
|
* Queries for a tooltip by emitting
|
|
5208
5473
|
* a #GtkSourceMarkAttributes::query-tooltip-markup signal. The tooltip may contain
|
|
@@ -5244,7 +5509,7 @@ interface MarkAttributes {
|
|
|
5244
5509
|
* Sets a name of an icon to be used as a base for rendered icon.
|
|
5245
5510
|
* @param icon_name name of an icon to be used.
|
|
5246
5511
|
*/
|
|
5247
|
-
set_icon_name(icon_name: string
|
|
5512
|
+
set_icon_name(icon_name: string): void
|
|
5248
5513
|
/**
|
|
5249
5514
|
* Sets a pixbuf to be used as a base for rendered icon.
|
|
5250
5515
|
* @param pixbuf a #GdkPixbuf to be used.
|
|
@@ -5254,7 +5519,7 @@ interface MarkAttributes {
|
|
|
5254
5519
|
* Sets stock id to be used as a base for rendered icon.
|
|
5255
5520
|
* @param stock_id a stock id.
|
|
5256
5521
|
*/
|
|
5257
|
-
set_stock_id(stock_id: string
|
|
5522
|
+
set_stock_id(stock_id: string): void
|
|
5258
5523
|
|
|
5259
5524
|
// Own signals of GtkSource-3.0.GtkSource.MarkAttributes
|
|
5260
5525
|
|
|
@@ -5424,63 +5689,204 @@ module PrintCompositor {
|
|
|
5424
5689
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5425
5690
|
*/
|
|
5426
5691
|
wrap_mode?: Gtk.WrapMode | null
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5692
|
+
/**
|
|
5693
|
+
* Name of the font used for the text body.
|
|
5694
|
+
*
|
|
5695
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5696
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5697
|
+
* for a description of the format of the string representation.
|
|
5698
|
+
*
|
|
5699
|
+
* The value of this property cannot be changed anymore after the first
|
|
5700
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5701
|
+
*/
|
|
5702
|
+
bodyFontName?: string | null
|
|
5703
|
+
/**
|
|
5704
|
+
* Name of the font used to print page footer.
|
|
5705
|
+
* If this property is unspecified, the text body font is used.
|
|
5706
|
+
*
|
|
5707
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5708
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5709
|
+
* for a description of the format of the string representation.
|
|
5710
|
+
*
|
|
5711
|
+
* The value of this property cannot be changed anymore after the first
|
|
5712
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5713
|
+
*/
|
|
5714
|
+
footerFontName?: string | null
|
|
5715
|
+
/**
|
|
5716
|
+
* Name of the font used to print page header.
|
|
5717
|
+
* If this property is unspecified, the text body font is used.
|
|
5718
|
+
*
|
|
5719
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5720
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5721
|
+
* for a description of the format of the string representation.
|
|
5722
|
+
*
|
|
5723
|
+
* The value of this property cannot be changed anymore after the first
|
|
5724
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5725
|
+
*/
|
|
5726
|
+
headerFontName?: string | null
|
|
5727
|
+
/**
|
|
5728
|
+
* Whether to print the document with highlighted syntax.
|
|
5729
|
+
*
|
|
5730
|
+
* The value of this property cannot be changed anymore after the first
|
|
5731
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5732
|
+
*/
|
|
5733
|
+
highlightSyntax?: boolean | null
|
|
5734
|
+
/**
|
|
5735
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5736
|
+
* If this property is unspecified, the text body font is used.
|
|
5737
|
+
*
|
|
5738
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5739
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5740
|
+
* for a description of the format of the string representation.
|
|
5741
|
+
*
|
|
5742
|
+
* The value of this property cannot be changed anymore after the first
|
|
5743
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5744
|
+
*/
|
|
5745
|
+
lineNumbersFontName?: string | null
|
|
5746
|
+
/**
|
|
5747
|
+
* Whether to print a footer in each page.
|
|
5748
|
+
*
|
|
5749
|
+
* Note that by default the footer format is unspecified, and if it is
|
|
5750
|
+
* unspecified the footer will not be printed, regardless of the value of
|
|
5751
|
+
* this property.
|
|
5752
|
+
*
|
|
5753
|
+
* The value of this property cannot be changed anymore after the first
|
|
5754
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5755
|
+
*/
|
|
5756
|
+
printFooter?: boolean | null
|
|
5757
|
+
/**
|
|
5758
|
+
* Whether to print a header in each page.
|
|
5759
|
+
*
|
|
5760
|
+
* Note that by default the header format is unspecified, and if it is
|
|
5761
|
+
* unspecified the header will not be printed, regardless of the value of
|
|
5762
|
+
* this property.
|
|
5763
|
+
*
|
|
5764
|
+
* The value of this property cannot be changed anymore after the first
|
|
5765
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5766
|
+
*/
|
|
5767
|
+
printHeader?: boolean | null
|
|
5768
|
+
/**
|
|
5769
|
+
* Interval of printed line numbers. If this property is set to 0 no
|
|
5770
|
+
* numbers will be printed. If greater than 0, a number will be
|
|
5771
|
+
* printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).
|
|
5772
|
+
*
|
|
5773
|
+
* The value of this property cannot be changed anymore after the first
|
|
5774
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5775
|
+
*/
|
|
5776
|
+
printLineNumbers?: number | null
|
|
5777
|
+
/**
|
|
5778
|
+
* Width of a tab character expressed in spaces.
|
|
5779
|
+
*
|
|
5780
|
+
* The value of this property cannot be changed anymore after the first
|
|
5781
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5782
|
+
*/
|
|
5783
|
+
tabWidth?: number | null
|
|
5784
|
+
/**
|
|
5785
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5786
|
+
*
|
|
5787
|
+
* The value of this property cannot be changed anymore after the first
|
|
5788
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5789
|
+
*/
|
|
5790
|
+
wrapMode?: Gtk.WrapMode | null
|
|
5791
|
+
}
|
|
5792
|
+
|
|
5793
|
+
}
|
|
5794
|
+
|
|
5795
|
+
interface PrintCompositor {
|
|
5796
|
+
|
|
5797
|
+
// Own properties of GtkSource-3.0.GtkSource.PrintCompositor
|
|
5798
|
+
|
|
5799
|
+
/**
|
|
5800
|
+
* Name of the font used for the text body.
|
|
5801
|
+
*
|
|
5802
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5803
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5804
|
+
* for a description of the format of the string representation.
|
|
5805
|
+
*
|
|
5806
|
+
* The value of this property cannot be changed anymore after the first
|
|
5807
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5808
|
+
*/
|
|
5809
|
+
body_font_name: string | null
|
|
5810
|
+
/**
|
|
5811
|
+
* Name of the font used for the text body.
|
|
5812
|
+
*
|
|
5813
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5814
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5815
|
+
* for a description of the format of the string representation.
|
|
5816
|
+
*
|
|
5817
|
+
* The value of this property cannot be changed anymore after the first
|
|
5818
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5819
|
+
*/
|
|
5820
|
+
bodyFontName: string | null
|
|
5821
|
+
/**
|
|
5822
|
+
* The GtkSourceBuffer object to print.
|
|
5823
|
+
*/
|
|
5824
|
+
readonly buffer: Buffer
|
|
5825
|
+
/**
|
|
5826
|
+
* Name of the font used to print page footer.
|
|
5827
|
+
* If this property is unspecified, the text body font is used.
|
|
5828
|
+
*
|
|
5829
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5830
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5831
|
+
* for a description of the format of the string representation.
|
|
5832
|
+
*
|
|
5833
|
+
* The value of this property cannot be changed anymore after the first
|
|
5834
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5835
|
+
*/
|
|
5836
|
+
footer_font_name: string | null
|
|
5837
|
+
/**
|
|
5838
|
+
* Name of the font used to print page footer.
|
|
5839
|
+
* If this property is unspecified, the text body font is used.
|
|
5840
|
+
*
|
|
5841
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5842
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5843
|
+
* for a description of the format of the string representation.
|
|
5844
|
+
*
|
|
5845
|
+
* The value of this property cannot be changed anymore after the first
|
|
5846
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5847
|
+
*/
|
|
5848
|
+
footerFontName: string | null
|
|
5849
|
+
/**
|
|
5850
|
+
* Name of the font used to print page header.
|
|
5851
|
+
* If this property is unspecified, the text body font is used.
|
|
5852
|
+
*
|
|
5853
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5854
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5855
|
+
* for a description of the format of the string representation.
|
|
5856
|
+
*
|
|
5857
|
+
* The value of this property cannot be changed anymore after the first
|
|
5858
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5859
|
+
*/
|
|
5860
|
+
header_font_name: string | null
|
|
5861
|
+
/**
|
|
5862
|
+
* Name of the font used to print page header.
|
|
5863
|
+
* If this property is unspecified, the text body font is used.
|
|
5864
|
+
*
|
|
5865
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5866
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5867
|
+
* for a description of the format of the string representation.
|
|
5868
|
+
*
|
|
5869
|
+
* The value of this property cannot be changed anymore after the first
|
|
5870
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5871
|
+
*/
|
|
5872
|
+
headerFontName: string | null
|
|
5873
|
+
/**
|
|
5874
|
+
* Whether to print the document with highlighted syntax.
|
|
5875
|
+
*
|
|
5876
|
+
* The value of this property cannot be changed anymore after the first
|
|
5877
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5878
|
+
*/
|
|
5879
|
+
highlight_syntax: boolean
|
|
5880
|
+
/**
|
|
5881
|
+
* Whether to print the document with highlighted syntax.
|
|
5882
|
+
*
|
|
5883
|
+
* The value of this property cannot be changed anymore after the first
|
|
5884
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5885
|
+
*/
|
|
5886
|
+
highlightSyntax: boolean
|
|
5887
|
+
/**
|
|
5888
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5889
|
+
* If this property is unspecified, the text body font is used.
|
|
5484
5890
|
*
|
|
5485
5891
|
* Accepted values are strings representing a font description Pango can understand.
|
|
5486
5892
|
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
@@ -5490,11 +5896,28 @@ interface PrintCompositor {
|
|
|
5490
5896
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5491
5897
|
*/
|
|
5492
5898
|
line_numbers_font_name: string | null
|
|
5899
|
+
/**
|
|
5900
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5901
|
+
* If this property is unspecified, the text body font is used.
|
|
5902
|
+
*
|
|
5903
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5904
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5905
|
+
* for a description of the format of the string representation.
|
|
5906
|
+
*
|
|
5907
|
+
* The value of this property cannot be changed anymore after the first
|
|
5908
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5909
|
+
*/
|
|
5910
|
+
lineNumbersFontName: string | null
|
|
5493
5911
|
/**
|
|
5494
5912
|
* The number of pages in the document or <code>-1</code> if the
|
|
5495
5913
|
* document has not been completely paginated.
|
|
5496
5914
|
*/
|
|
5497
5915
|
readonly n_pages: number
|
|
5916
|
+
/**
|
|
5917
|
+
* The number of pages in the document or <code>-1</code> if the
|
|
5918
|
+
* document has not been completely paginated.
|
|
5919
|
+
*/
|
|
5920
|
+
readonly nPages: number
|
|
5498
5921
|
/**
|
|
5499
5922
|
* Whether to print a footer in each page.
|
|
5500
5923
|
*
|
|
@@ -5506,6 +5929,17 @@ interface PrintCompositor {
|
|
|
5506
5929
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5507
5930
|
*/
|
|
5508
5931
|
print_footer: boolean
|
|
5932
|
+
/**
|
|
5933
|
+
* Whether to print a footer in each page.
|
|
5934
|
+
*
|
|
5935
|
+
* Note that by default the footer format is unspecified, and if it is
|
|
5936
|
+
* unspecified the footer will not be printed, regardless of the value of
|
|
5937
|
+
* this property.
|
|
5938
|
+
*
|
|
5939
|
+
* The value of this property cannot be changed anymore after the first
|
|
5940
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5941
|
+
*/
|
|
5942
|
+
printFooter: boolean
|
|
5509
5943
|
/**
|
|
5510
5944
|
* Whether to print a header in each page.
|
|
5511
5945
|
*
|
|
@@ -5517,6 +5951,17 @@ interface PrintCompositor {
|
|
|
5517
5951
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5518
5952
|
*/
|
|
5519
5953
|
print_header: boolean
|
|
5954
|
+
/**
|
|
5955
|
+
* Whether to print a header in each page.
|
|
5956
|
+
*
|
|
5957
|
+
* Note that by default the header format is unspecified, and if it is
|
|
5958
|
+
* unspecified the header will not be printed, regardless of the value of
|
|
5959
|
+
* this property.
|
|
5960
|
+
*
|
|
5961
|
+
* The value of this property cannot be changed anymore after the first
|
|
5962
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5963
|
+
*/
|
|
5964
|
+
printHeader: boolean
|
|
5520
5965
|
/**
|
|
5521
5966
|
* Interval of printed line numbers. If this property is set to 0 no
|
|
5522
5967
|
* numbers will be printed. If greater than 0, a number will be
|
|
@@ -5526,6 +5971,15 @@ interface PrintCompositor {
|
|
|
5526
5971
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5527
5972
|
*/
|
|
5528
5973
|
print_line_numbers: number
|
|
5974
|
+
/**
|
|
5975
|
+
* Interval of printed line numbers. If this property is set to 0 no
|
|
5976
|
+
* numbers will be printed. If greater than 0, a number will be
|
|
5977
|
+
* printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).
|
|
5978
|
+
*
|
|
5979
|
+
* The value of this property cannot be changed anymore after the first
|
|
5980
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5981
|
+
*/
|
|
5982
|
+
printLineNumbers: number
|
|
5529
5983
|
/**
|
|
5530
5984
|
* Width of a tab character expressed in spaces.
|
|
5531
5985
|
*
|
|
@@ -5533,6 +5987,13 @@ interface PrintCompositor {
|
|
|
5533
5987
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5534
5988
|
*/
|
|
5535
5989
|
tab_width: number
|
|
5990
|
+
/**
|
|
5991
|
+
* Width of a tab character expressed in spaces.
|
|
5992
|
+
*
|
|
5993
|
+
* The value of this property cannot be changed anymore after the first
|
|
5994
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5995
|
+
*/
|
|
5996
|
+
tabWidth: number
|
|
5536
5997
|
/**
|
|
5537
5998
|
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5538
5999
|
*
|
|
@@ -5540,6 +6001,13 @@ interface PrintCompositor {
|
|
|
5540
6001
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5541
6002
|
*/
|
|
5542
6003
|
wrap_mode: Gtk.WrapMode
|
|
6004
|
+
/**
|
|
6005
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
6006
|
+
*
|
|
6007
|
+
* The value of this property cannot be changed anymore after the first
|
|
6008
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
6009
|
+
*/
|
|
6010
|
+
wrapMode: Gtk.WrapMode
|
|
5543
6011
|
|
|
5544
6012
|
// Own fields of GtkSource-3.0.GtkSource.PrintCompositor
|
|
5545
6013
|
|
|
@@ -5759,7 +6227,7 @@ interface PrintCompositor {
|
|
|
5759
6227
|
* gtk_source_print_compositor_paginate() function.
|
|
5760
6228
|
* @param font_name the name of the default font for the body text.
|
|
5761
6229
|
*/
|
|
5762
|
-
set_body_font_name(font_name: string
|
|
6230
|
+
set_body_font_name(font_name: string): void
|
|
5763
6231
|
/**
|
|
5764
6232
|
* Sets the bottom margin used by `compositor`.
|
|
5765
6233
|
* @param margin the new bottom margin in units of `unit`.
|
|
@@ -6162,6 +6630,10 @@ module SearchContext {
|
|
|
6162
6630
|
* The #GtkSourceSearchSettings associated to the search context.
|
|
6163
6631
|
*/
|
|
6164
6632
|
settings?: SearchSettings | null
|
|
6633
|
+
/**
|
|
6634
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6635
|
+
*/
|
|
6636
|
+
matchStyle?: Style | null
|
|
6165
6637
|
}
|
|
6166
6638
|
|
|
6167
6639
|
}
|
|
@@ -6182,12 +6654,22 @@ interface SearchContext {
|
|
|
6182
6654
|
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6183
6655
|
*/
|
|
6184
6656
|
match_style: Style
|
|
6657
|
+
/**
|
|
6658
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6659
|
+
*/
|
|
6660
|
+
matchStyle: Style
|
|
6185
6661
|
/**
|
|
6186
6662
|
* The total number of search occurrences. If the search is disabled,
|
|
6187
6663
|
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6188
6664
|
* is -1.
|
|
6189
6665
|
*/
|
|
6190
6666
|
readonly occurrences_count: number
|
|
6667
|
+
/**
|
|
6668
|
+
* The total number of search occurrences. If the search is disabled,
|
|
6669
|
+
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6670
|
+
* is -1.
|
|
6671
|
+
*/
|
|
6672
|
+
readonly occurrencesCount: number
|
|
6191
6673
|
/**
|
|
6192
6674
|
* If the regex search pattern doesn't follow all the rules, this
|
|
6193
6675
|
* property will be set. If the pattern is valid, the value is %NULL.
|
|
@@ -6195,6 +6677,13 @@ interface SearchContext {
|
|
|
6195
6677
|
* Free with g_error_free().
|
|
6196
6678
|
*/
|
|
6197
6679
|
readonly regex_error: any
|
|
6680
|
+
/**
|
|
6681
|
+
* If the regex search pattern doesn't follow all the rules, this
|
|
6682
|
+
* property will be set. If the pattern is valid, the value is %NULL.
|
|
6683
|
+
*
|
|
6684
|
+
* Free with g_error_free().
|
|
6685
|
+
*/
|
|
6686
|
+
readonly regexError: any
|
|
6198
6687
|
/**
|
|
6199
6688
|
* The #GtkSourceSearchSettings associated to the search context.
|
|
6200
6689
|
*/
|
|
@@ -6410,7 +6899,7 @@ interface SearchContext {
|
|
|
6410
6899
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6411
6900
|
* @returns whether the match has been replaced.
|
|
6412
6901
|
*/
|
|
6413
|
-
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string
|
|
6902
|
+
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
|
|
6414
6903
|
/**
|
|
6415
6904
|
* Replaces a search match by another text. If `match_start` and `match_end`
|
|
6416
6905
|
* doesn't correspond to a search match, %FALSE is returned.
|
|
@@ -6427,7 +6916,7 @@ interface SearchContext {
|
|
|
6427
6916
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6428
6917
|
* @returns whether the match has been replaced.
|
|
6429
6918
|
*/
|
|
6430
|
-
replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string
|
|
6919
|
+
replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
|
|
6431
6920
|
/**
|
|
6432
6921
|
* Replaces all search matches by another text. It is a synchronous function, so
|
|
6433
6922
|
* it can block the user interface.
|
|
@@ -6439,7 +6928,7 @@ interface SearchContext {
|
|
|
6439
6928
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6440
6929
|
* @returns the number of replaced matches.
|
|
6441
6930
|
*/
|
|
6442
|
-
replace_all(replace: string
|
|
6931
|
+
replace_all(replace: string, replace_length: number): number
|
|
6443
6932
|
/**
|
|
6444
6933
|
* Enables or disables the search occurrences highlighting.
|
|
6445
6934
|
* @param highlight the setting.
|
|
@@ -6557,6 +7046,32 @@ module SearchSettings {
|
|
|
6557
7046
|
* end of the buffer.
|
|
6558
7047
|
*/
|
|
6559
7048
|
wrap_around?: boolean | null
|
|
7049
|
+
/**
|
|
7050
|
+
* If %TRUE, a search match must start and end a word. The match can
|
|
7051
|
+
* span multiple words.
|
|
7052
|
+
*/
|
|
7053
|
+
atWordBoundaries?: boolean | null
|
|
7054
|
+
/**
|
|
7055
|
+
* Whether the search is case sensitive.
|
|
7056
|
+
*/
|
|
7057
|
+
caseSensitive?: boolean | null
|
|
7058
|
+
/**
|
|
7059
|
+
* Search by regular expressions with
|
|
7060
|
+
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
7061
|
+
*/
|
|
7062
|
+
regexEnabled?: boolean | null
|
|
7063
|
+
/**
|
|
7064
|
+
* A search string, or %NULL if the search is disabled. If the regular
|
|
7065
|
+
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
7066
|
+
* the pattern.
|
|
7067
|
+
*/
|
|
7068
|
+
searchText?: string | null
|
|
7069
|
+
/**
|
|
7070
|
+
* For a forward search, continue at the beginning of the buffer if no
|
|
7071
|
+
* search occurrence is found. For a backward search, continue at the
|
|
7072
|
+
* end of the buffer.
|
|
7073
|
+
*/
|
|
7074
|
+
wrapAround?: boolean | null
|
|
6560
7075
|
}
|
|
6561
7076
|
|
|
6562
7077
|
}
|
|
@@ -6570,27 +7085,53 @@ interface SearchSettings {
|
|
|
6570
7085
|
* span multiple words.
|
|
6571
7086
|
*/
|
|
6572
7087
|
at_word_boundaries: boolean
|
|
7088
|
+
/**
|
|
7089
|
+
* If %TRUE, a search match must start and end a word. The match can
|
|
7090
|
+
* span multiple words.
|
|
7091
|
+
*/
|
|
7092
|
+
atWordBoundaries: boolean
|
|
6573
7093
|
/**
|
|
6574
7094
|
* Whether the search is case sensitive.
|
|
6575
7095
|
*/
|
|
6576
7096
|
case_sensitive: boolean
|
|
7097
|
+
/**
|
|
7098
|
+
* Whether the search is case sensitive.
|
|
7099
|
+
*/
|
|
7100
|
+
caseSensitive: boolean
|
|
6577
7101
|
/**
|
|
6578
7102
|
* Search by regular expressions with
|
|
6579
7103
|
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
6580
7104
|
*/
|
|
6581
7105
|
regex_enabled: boolean
|
|
7106
|
+
/**
|
|
7107
|
+
* Search by regular expressions with
|
|
7108
|
+
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
7109
|
+
*/
|
|
7110
|
+
regexEnabled: boolean
|
|
6582
7111
|
/**
|
|
6583
7112
|
* A search string, or %NULL if the search is disabled. If the regular
|
|
6584
7113
|
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
6585
7114
|
* the pattern.
|
|
6586
7115
|
*/
|
|
6587
7116
|
search_text: string | null
|
|
7117
|
+
/**
|
|
7118
|
+
* A search string, or %NULL if the search is disabled. If the regular
|
|
7119
|
+
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
7120
|
+
* the pattern.
|
|
7121
|
+
*/
|
|
7122
|
+
searchText: string | null
|
|
6588
7123
|
/**
|
|
6589
7124
|
* For a forward search, continue at the beginning of the buffer if no
|
|
6590
7125
|
* search occurrence is found. For a backward search, continue at the
|
|
6591
7126
|
* end of the buffer.
|
|
6592
7127
|
*/
|
|
6593
7128
|
wrap_around: boolean
|
|
7129
|
+
/**
|
|
7130
|
+
* For a forward search, continue at the beginning of the buffer if no
|
|
7131
|
+
* search occurrence is found. For a backward search, continue at the
|
|
7132
|
+
* end of the buffer.
|
|
7133
|
+
*/
|
|
7134
|
+
wrapAround: boolean
|
|
6594
7135
|
|
|
6595
7136
|
// Own fields of GtkSource-3.0.GtkSource.SearchSettings
|
|
6596
7137
|
|
|
@@ -6730,6 +7271,10 @@ module SpaceDrawer {
|
|
|
6730
7271
|
* By default, %GTK_SOURCE_SPACE_TYPE_ALL is set for all locations.
|
|
6731
7272
|
*/
|
|
6732
7273
|
matrix?: GLib.Variant | null
|
|
7274
|
+
/**
|
|
7275
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7276
|
+
*/
|
|
7277
|
+
enableMatrix?: boolean | null
|
|
6733
7278
|
}
|
|
6734
7279
|
|
|
6735
7280
|
}
|
|
@@ -6742,6 +7287,10 @@ interface SpaceDrawer {
|
|
|
6742
7287
|
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
6743
7288
|
*/
|
|
6744
7289
|
enable_matrix: boolean
|
|
7290
|
+
/**
|
|
7291
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7292
|
+
*/
|
|
7293
|
+
enableMatrix: boolean
|
|
6745
7294
|
/**
|
|
6746
7295
|
* The :matrix property is a #GVariant property to specify where and
|
|
6747
7296
|
* what kind of white spaces to draw.
|
|
@@ -6780,7 +7329,7 @@ interface SpaceDrawer {
|
|
|
6780
7329
|
* @param key the `settings` key to bind.
|
|
6781
7330
|
* @param flags flags for the binding.
|
|
6782
7331
|
*/
|
|
6783
|
-
bind_matrix_setting(settings: Gio.Settings, key: string
|
|
7332
|
+
bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
|
|
6784
7333
|
get_enable_matrix(): boolean
|
|
6785
7334
|
/**
|
|
6786
7335
|
* Gets the value of the #GtkSourceSpaceDrawer:matrix property, as a #GVariant.
|
|
@@ -6896,6 +7445,18 @@ module Style {
|
|
|
6896
7445
|
underline_color?: string | null
|
|
6897
7446
|
underline_color_set?: boolean | null
|
|
6898
7447
|
underline_set?: boolean | null
|
|
7448
|
+
backgroundSet?: boolean | null
|
|
7449
|
+
boldSet?: boolean | null
|
|
7450
|
+
foregroundSet?: boolean | null
|
|
7451
|
+
italicSet?: boolean | null
|
|
7452
|
+
lineBackground?: string | null
|
|
7453
|
+
lineBackgroundSet?: boolean | null
|
|
7454
|
+
pangoUnderline?: Pango.Underline | null
|
|
7455
|
+
scaleSet?: boolean | null
|
|
7456
|
+
strikethroughSet?: boolean | null
|
|
7457
|
+
underlineColor?: string | null
|
|
7458
|
+
underlineColorSet?: boolean | null
|
|
7459
|
+
underlineSet?: boolean | null
|
|
6899
7460
|
}
|
|
6900
7461
|
|
|
6901
7462
|
}
|
|
@@ -6906,23 +7467,35 @@ interface Style {
|
|
|
6906
7467
|
|
|
6907
7468
|
readonly background: string | null
|
|
6908
7469
|
readonly background_set: boolean
|
|
7470
|
+
readonly backgroundSet: boolean
|
|
6909
7471
|
readonly bold: boolean
|
|
6910
7472
|
readonly bold_set: boolean
|
|
7473
|
+
readonly boldSet: boolean
|
|
6911
7474
|
readonly foreground: string | null
|
|
6912
7475
|
readonly foreground_set: boolean
|
|
7476
|
+
readonly foregroundSet: boolean
|
|
6913
7477
|
readonly italic: boolean
|
|
6914
7478
|
readonly italic_set: boolean
|
|
7479
|
+
readonly italicSet: boolean
|
|
6915
7480
|
readonly line_background: string | null
|
|
7481
|
+
readonly lineBackground: string | null
|
|
6916
7482
|
readonly line_background_set: boolean
|
|
7483
|
+
readonly lineBackgroundSet: boolean
|
|
6917
7484
|
readonly pango_underline: Pango.Underline
|
|
7485
|
+
readonly pangoUnderline: Pango.Underline
|
|
6918
7486
|
readonly scale: string | null
|
|
6919
7487
|
readonly scale_set: boolean
|
|
7488
|
+
readonly scaleSet: boolean
|
|
6920
7489
|
readonly strikethrough: boolean
|
|
6921
7490
|
readonly strikethrough_set: boolean
|
|
7491
|
+
readonly strikethroughSet: boolean
|
|
6922
7492
|
readonly underline: boolean
|
|
6923
7493
|
readonly underline_color: string | null
|
|
7494
|
+
readonly underlineColor: string | null
|
|
6924
7495
|
readonly underline_color_set: boolean
|
|
7496
|
+
readonly underlineColorSet: boolean
|
|
6925
7497
|
readonly underline_set: boolean
|
|
7498
|
+
readonly underlineSet: boolean
|
|
6926
7499
|
|
|
6927
7500
|
// Owm methods of GtkSource-3.0.GtkSource.Style
|
|
6928
7501
|
|
|
@@ -7071,9 +7644,9 @@ interface StyleScheme {
|
|
|
7071
7644
|
get_authors(): string[] | null
|
|
7072
7645
|
get_description(): string | null
|
|
7073
7646
|
get_filename(): string | null
|
|
7074
|
-
get_id(): string
|
|
7075
|
-
get_name(): string
|
|
7076
|
-
get_style(style_id: string
|
|
7647
|
+
get_id(): string
|
|
7648
|
+
get_name(): string
|
|
7649
|
+
get_style(style_id: string): Style | null
|
|
7077
7650
|
|
|
7078
7651
|
// Class property signals of GtkSource-3.0.GtkSource.StyleScheme
|
|
7079
7652
|
|
|
@@ -7135,7 +7708,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
|
|
|
7135
7708
|
* Also see gtk_container_child_notify().
|
|
7136
7709
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7137
7710
|
*/
|
|
7138
|
-
child_notify(child_property: string
|
|
7711
|
+
child_notify(child_property: string): void
|
|
7139
7712
|
/**
|
|
7140
7713
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7141
7714
|
* [child property][child-properties]
|
|
@@ -7147,7 +7720,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
|
|
|
7147
7720
|
* @param child the child widget
|
|
7148
7721
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7149
7722
|
*/
|
|
7150
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7723
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7151
7724
|
|
|
7152
7725
|
// Overloads of child_notify
|
|
7153
7726
|
|
|
@@ -7161,7 +7734,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
|
|
|
7161
7734
|
* Also see gtk_container_child_notify().
|
|
7162
7735
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7163
7736
|
*/
|
|
7164
|
-
child_notify(child_property: string
|
|
7737
|
+
child_notify(child_property: string): void
|
|
7165
7738
|
|
|
7166
7739
|
// Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserButton
|
|
7167
7740
|
|
|
@@ -7392,7 +7965,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
|
|
|
7392
7965
|
* @param child the child widget
|
|
7393
7966
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7394
7967
|
*/
|
|
7395
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7968
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7396
7969
|
|
|
7397
7970
|
// Overloads of child_notify
|
|
7398
7971
|
|
|
@@ -7406,7 +7979,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
|
|
|
7406
7979
|
* Also see gtk_container_child_notify().
|
|
7407
7980
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7408
7981
|
*/
|
|
7409
|
-
child_notify(child_property: string
|
|
7982
|
+
child_notify(child_property: string): void
|
|
7410
7983
|
/**
|
|
7411
7984
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7412
7985
|
* [child property][child-properties] `child_property`
|
|
@@ -7417,7 +7990,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
|
|
|
7417
7990
|
* Also see gtk_container_child_notify().
|
|
7418
7991
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7419
7992
|
*/
|
|
7420
|
-
child_notify(child_property: string
|
|
7993
|
+
child_notify(child_property: string): void
|
|
7421
7994
|
|
|
7422
7995
|
// Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserWidget
|
|
7423
7996
|
|
|
@@ -7590,6 +8163,7 @@ module StyleSchemeManager {
|
|
|
7590
8163
|
// Own constructor properties of GtkSource-3.0.GtkSource.StyleSchemeManager
|
|
7591
8164
|
|
|
7592
8165
|
search_path?: string[] | null
|
|
8166
|
+
searchPath?: string[] | null
|
|
7593
8167
|
}
|
|
7594
8168
|
|
|
7595
8169
|
}
|
|
@@ -7599,7 +8173,9 @@ interface StyleSchemeManager {
|
|
|
7599
8173
|
// Own properties of GtkSource-3.0.GtkSource.StyleSchemeManager
|
|
7600
8174
|
|
|
7601
8175
|
readonly scheme_ids: string[]
|
|
8176
|
+
readonly schemeIds: string[]
|
|
7602
8177
|
search_path: string[]
|
|
8178
|
+
searchPath: string[]
|
|
7603
8179
|
|
|
7604
8180
|
// Own fields of GtkSource-3.0.GtkSource.StyleSchemeManager
|
|
7605
8181
|
|
|
@@ -7614,7 +8190,7 @@ interface StyleSchemeManager {
|
|
|
7614
8190
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7615
8191
|
* @param path a directory or a filename.
|
|
7616
8192
|
*/
|
|
7617
|
-
append_search_path(path: string
|
|
8193
|
+
append_search_path(path: string): void
|
|
7618
8194
|
/**
|
|
7619
8195
|
* Mark any currently cached information about the available style scehems
|
|
7620
8196
|
* as invalid. All the available style schemes will be reloaded next time
|
|
@@ -7626,7 +8202,7 @@ interface StyleSchemeManager {
|
|
|
7626
8202
|
* @param scheme_id style scheme id to find.
|
|
7627
8203
|
* @returns a #GtkSourceStyleScheme object. Returned value is owned by @manager and must not be unref'ed.
|
|
7628
8204
|
*/
|
|
7629
|
-
get_scheme(scheme_id: string
|
|
8205
|
+
get_scheme(scheme_id: string): StyleScheme
|
|
7630
8206
|
/**
|
|
7631
8207
|
* Returns the ids of the available style schemes.
|
|
7632
8208
|
* @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.
|
|
@@ -7644,7 +8220,7 @@ interface StyleSchemeManager {
|
|
|
7644
8220
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7645
8221
|
* @param path a directory or a filename.
|
|
7646
8222
|
*/
|
|
7647
|
-
prepend_search_path(path: string
|
|
8223
|
+
prepend_search_path(path: string): void
|
|
7648
8224
|
/**
|
|
7649
8225
|
* Sets the list of directories where the `manager` looks for
|
|
7650
8226
|
* style scheme files.
|
|
@@ -7721,6 +8297,20 @@ module Tag {
|
|
|
7721
8297
|
* taken into account.
|
|
7722
8298
|
*/
|
|
7723
8299
|
draw_spaces_set?: boolean | null
|
|
8300
|
+
/**
|
|
8301
|
+
* Whether to draw white spaces. This property takes precedence over the value
|
|
8302
|
+
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8303
|
+
* (only where the tag is applied).
|
|
8304
|
+
*
|
|
8305
|
+
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8306
|
+
* %TRUE.
|
|
8307
|
+
*/
|
|
8308
|
+
drawSpaces?: boolean | null
|
|
8309
|
+
/**
|
|
8310
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8311
|
+
* taken into account.
|
|
8312
|
+
*/
|
|
8313
|
+
drawSpacesSet?: boolean | null
|
|
7724
8314
|
}
|
|
7725
8315
|
|
|
7726
8316
|
}
|
|
@@ -7738,11 +8328,25 @@ interface Tag {
|
|
|
7738
8328
|
* %TRUE.
|
|
7739
8329
|
*/
|
|
7740
8330
|
draw_spaces: boolean
|
|
8331
|
+
/**
|
|
8332
|
+
* Whether to draw white spaces. This property takes precedence over the value
|
|
8333
|
+
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8334
|
+
* (only where the tag is applied).
|
|
8335
|
+
*
|
|
8336
|
+
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8337
|
+
* %TRUE.
|
|
8338
|
+
*/
|
|
8339
|
+
drawSpaces: boolean
|
|
7741
8340
|
/**
|
|
7742
8341
|
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
7743
8342
|
* taken into account.
|
|
7744
8343
|
*/
|
|
7745
8344
|
draw_spaces_set: boolean
|
|
8345
|
+
/**
|
|
8346
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8347
|
+
* taken into account.
|
|
8348
|
+
*/
|
|
8349
|
+
drawSpacesSet: boolean
|
|
7746
8350
|
|
|
7747
8351
|
// Own fields of GtkSource-3.0.GtkSource.Tag
|
|
7748
8352
|
|
|
@@ -8154,6 +8758,53 @@ module View {
|
|
|
8154
8758
|
* Width of a tab character expressed in number of spaces.
|
|
8155
8759
|
*/
|
|
8156
8760
|
tab_width?: number | null
|
|
8761
|
+
autoIndent?: boolean | null
|
|
8762
|
+
/**
|
|
8763
|
+
* Draw a specific background pattern on the view.
|
|
8764
|
+
*/
|
|
8765
|
+
backgroundPattern?: BackgroundPatternType | null
|
|
8766
|
+
/**
|
|
8767
|
+
* Set if and how the spaces should be visualized.
|
|
8768
|
+
*
|
|
8769
|
+
* For a finer-grained method, there is also the GtkSourceTag's
|
|
8770
|
+
* #GtkSourceTag:draw-spaces property.
|
|
8771
|
+
*/
|
|
8772
|
+
drawSpaces?: DrawSpacesFlags | null
|
|
8773
|
+
highlightCurrentLine?: boolean | null
|
|
8774
|
+
indentOnTab?: boolean | null
|
|
8775
|
+
/**
|
|
8776
|
+
* Width of an indentation step expressed in number of spaces.
|
|
8777
|
+
*/
|
|
8778
|
+
indentWidth?: number | null
|
|
8779
|
+
insertSpacesInsteadOfTabs?: boolean | null
|
|
8780
|
+
/**
|
|
8781
|
+
* Position of the right margin.
|
|
8782
|
+
*/
|
|
8783
|
+
rightMarginPosition?: number | null
|
|
8784
|
+
/**
|
|
8785
|
+
* Whether to display line mark pixbufs
|
|
8786
|
+
*/
|
|
8787
|
+
showLineMarks?: boolean | null
|
|
8788
|
+
/**
|
|
8789
|
+
* Whether to display line numbers
|
|
8790
|
+
*/
|
|
8791
|
+
showLineNumbers?: boolean | null
|
|
8792
|
+
/**
|
|
8793
|
+
* Whether to display the right margin.
|
|
8794
|
+
*/
|
|
8795
|
+
showRightMargin?: boolean | null
|
|
8796
|
+
/**
|
|
8797
|
+
* Whether smart Backspace should be used.
|
|
8798
|
+
*/
|
|
8799
|
+
smartBackspace?: boolean | null
|
|
8800
|
+
/**
|
|
8801
|
+
* Set the behavior of the HOME and END keys.
|
|
8802
|
+
*/
|
|
8803
|
+
smartHomeEnd?: SmartHomeEndType | null
|
|
8804
|
+
/**
|
|
8805
|
+
* Width of a tab character expressed in number of spaces.
|
|
8806
|
+
*/
|
|
8807
|
+
tabWidth?: number | null
|
|
8157
8808
|
}
|
|
8158
8809
|
|
|
8159
8810
|
}
|
|
@@ -8163,10 +8814,15 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8163
8814
|
// Own properties of GtkSource-3.0.GtkSource.View
|
|
8164
8815
|
|
|
8165
8816
|
auto_indent: boolean
|
|
8817
|
+
autoIndent: boolean
|
|
8166
8818
|
/**
|
|
8167
8819
|
* Draw a specific background pattern on the view.
|
|
8168
8820
|
*/
|
|
8169
8821
|
background_pattern: BackgroundPatternType
|
|
8822
|
+
/**
|
|
8823
|
+
* Draw a specific background pattern on the view.
|
|
8824
|
+
*/
|
|
8825
|
+
backgroundPattern: BackgroundPatternType
|
|
8170
8826
|
/**
|
|
8171
8827
|
* The completion object associated with the view
|
|
8172
8828
|
*/
|
|
@@ -8178,45 +8834,91 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8178
8834
|
* #GtkSourceTag:draw-spaces property.
|
|
8179
8835
|
*/
|
|
8180
8836
|
draw_spaces: DrawSpacesFlags
|
|
8837
|
+
/**
|
|
8838
|
+
* Set if and how the spaces should be visualized.
|
|
8839
|
+
*
|
|
8840
|
+
* For a finer-grained method, there is also the GtkSourceTag's
|
|
8841
|
+
* #GtkSourceTag:draw-spaces property.
|
|
8842
|
+
*/
|
|
8843
|
+
drawSpaces: DrawSpacesFlags
|
|
8181
8844
|
highlight_current_line: boolean
|
|
8845
|
+
highlightCurrentLine: boolean
|
|
8182
8846
|
indent_on_tab: boolean
|
|
8847
|
+
indentOnTab: boolean
|
|
8183
8848
|
/**
|
|
8184
8849
|
* Width of an indentation step expressed in number of spaces.
|
|
8185
8850
|
*/
|
|
8186
8851
|
indent_width: number
|
|
8852
|
+
/**
|
|
8853
|
+
* Width of an indentation step expressed in number of spaces.
|
|
8854
|
+
*/
|
|
8855
|
+
indentWidth: number
|
|
8187
8856
|
insert_spaces_instead_of_tabs: boolean
|
|
8857
|
+
insertSpacesInsteadOfTabs: boolean
|
|
8188
8858
|
/**
|
|
8189
8859
|
* Position of the right margin.
|
|
8190
8860
|
*/
|
|
8191
8861
|
right_margin_position: number
|
|
8862
|
+
/**
|
|
8863
|
+
* Position of the right margin.
|
|
8864
|
+
*/
|
|
8865
|
+
rightMarginPosition: number
|
|
8192
8866
|
/**
|
|
8193
8867
|
* Whether to display line mark pixbufs
|
|
8194
8868
|
*/
|
|
8195
8869
|
show_line_marks: boolean
|
|
8870
|
+
/**
|
|
8871
|
+
* Whether to display line mark pixbufs
|
|
8872
|
+
*/
|
|
8873
|
+
showLineMarks: boolean
|
|
8196
8874
|
/**
|
|
8197
8875
|
* Whether to display line numbers
|
|
8198
8876
|
*/
|
|
8199
8877
|
show_line_numbers: boolean
|
|
8878
|
+
/**
|
|
8879
|
+
* Whether to display line numbers
|
|
8880
|
+
*/
|
|
8881
|
+
showLineNumbers: boolean
|
|
8200
8882
|
/**
|
|
8201
8883
|
* Whether to display the right margin.
|
|
8202
8884
|
*/
|
|
8203
8885
|
show_right_margin: boolean
|
|
8886
|
+
/**
|
|
8887
|
+
* Whether to display the right margin.
|
|
8888
|
+
*/
|
|
8889
|
+
showRightMargin: boolean
|
|
8204
8890
|
/**
|
|
8205
8891
|
* Whether smart Backspace should be used.
|
|
8206
8892
|
*/
|
|
8207
8893
|
smart_backspace: boolean
|
|
8894
|
+
/**
|
|
8895
|
+
* Whether smart Backspace should be used.
|
|
8896
|
+
*/
|
|
8897
|
+
smartBackspace: boolean
|
|
8208
8898
|
/**
|
|
8209
8899
|
* Set the behavior of the HOME and END keys.
|
|
8210
8900
|
*/
|
|
8211
8901
|
smart_home_end: SmartHomeEndType
|
|
8902
|
+
/**
|
|
8903
|
+
* Set the behavior of the HOME and END keys.
|
|
8904
|
+
*/
|
|
8905
|
+
smartHomeEnd: SmartHomeEndType
|
|
8212
8906
|
/**
|
|
8213
8907
|
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
8214
8908
|
*/
|
|
8215
8909
|
readonly space_drawer: SpaceDrawer
|
|
8910
|
+
/**
|
|
8911
|
+
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
8912
|
+
*/
|
|
8913
|
+
readonly spaceDrawer: SpaceDrawer
|
|
8216
8914
|
/**
|
|
8217
8915
|
* Width of a tab character expressed in number of spaces.
|
|
8218
8916
|
*/
|
|
8219
8917
|
tab_width: number
|
|
8918
|
+
/**
|
|
8919
|
+
* Width of a tab character expressed in number of spaces.
|
|
8920
|
+
*/
|
|
8921
|
+
tabWidth: number
|
|
8220
8922
|
|
|
8221
8923
|
// Conflicting properties
|
|
8222
8924
|
|
|
@@ -8291,7 +8993,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8291
8993
|
* @param priority place where priority of the category will be stored.
|
|
8292
8994
|
* @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
|
|
8293
8995
|
*/
|
|
8294
|
-
get_mark_attributes(category: string
|
|
8996
|
+
get_mark_attributes(category: string, priority: number): MarkAttributes
|
|
8295
8997
|
/**
|
|
8296
8998
|
* Gets the position of the right margin in the given `view`.
|
|
8297
8999
|
* @returns the position of the right margin.
|
|
@@ -8429,7 +9131,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8429
9131
|
* @param attributes mark attributes.
|
|
8430
9132
|
* @param priority priority of the category.
|
|
8431
9133
|
*/
|
|
8432
|
-
set_mark_attributes(category: string
|
|
9134
|
+
set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
|
|
8433
9135
|
/**
|
|
8434
9136
|
* Sets the position of the right margin in the given `view`.
|
|
8435
9137
|
* @param pos the width in characters where to position the right margin.
|
|
@@ -8514,7 +9216,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8514
9216
|
* @param child the child widget
|
|
8515
9217
|
* @param child_property the name of a child property installed on the class of `container`
|
|
8516
9218
|
*/
|
|
8517
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
9219
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
8518
9220
|
|
|
8519
9221
|
// Overloads of child_notify
|
|
8520
9222
|
|
|
@@ -8528,7 +9230,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8528
9230
|
* Also see gtk_container_child_notify().
|
|
8529
9231
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8530
9232
|
*/
|
|
8531
|
-
child_notify(child_property: string
|
|
9233
|
+
child_notify(child_property: string): void
|
|
8532
9234
|
/**
|
|
8533
9235
|
* Emits a #GtkWidget::child-notify signal for the
|
|
8534
9236
|
* [child property][child-properties] `child_property`
|
|
@@ -8539,7 +9241,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
8539
9241
|
* Also see gtk_container_child_notify().
|
|
8540
9242
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8541
9243
|
*/
|
|
8542
|
-
child_notify(child_property: string
|
|
9244
|
+
child_notify(child_property: string): void
|
|
8543
9245
|
|
|
8544
9246
|
// Own virtual methods of GtkSource-3.0.GtkSource.View
|
|
8545
9247
|
|
|
@@ -9146,12 +9848,12 @@ interface Encoding {
|
|
|
9146
9848
|
* "ISO-8859-1".
|
|
9147
9849
|
* @returns the character set of the #GtkSourceEncoding.
|
|
9148
9850
|
*/
|
|
9149
|
-
get_charset(): string
|
|
9851
|
+
get_charset(): string
|
|
9150
9852
|
/**
|
|
9151
9853
|
* Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
|
|
9152
9854
|
* @returns the name of the #GtkSourceEncoding.
|
|
9153
9855
|
*/
|
|
9154
|
-
get_name(): string
|
|
9856
|
+
get_name(): string
|
|
9155
9857
|
to_string(): string | null
|
|
9156
9858
|
}
|
|
9157
9859
|
|
|
@@ -9189,7 +9891,7 @@ class Encoding {
|
|
|
9189
9891
|
* @param charset a character set.
|
|
9190
9892
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
9191
9893
|
*/
|
|
9192
|
-
static get_from_charset(charset: string
|
|
9894
|
+
static get_from_charset(charset: string): Encoding | null
|
|
9193
9895
|
static get_utf8(): Encoding
|
|
9194
9896
|
}
|
|
9195
9897
|
|