@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.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
|
|
@@ -959,6 +959,12 @@ export module StyleSchemeChooser {
|
|
|
959
959
|
* the current selection programmatically.
|
|
960
960
|
*/
|
|
961
961
|
style_scheme?: StyleScheme | null
|
|
962
|
+
/**
|
|
963
|
+
* The :style-scheme property contains the currently selected style
|
|
964
|
+
* scheme. The property can be set to change
|
|
965
|
+
* the current selection programmatically.
|
|
966
|
+
*/
|
|
967
|
+
styleScheme?: StyleScheme | null
|
|
962
968
|
}
|
|
963
969
|
|
|
964
970
|
}
|
|
@@ -973,6 +979,12 @@ export interface StyleSchemeChooser {
|
|
|
973
979
|
* the current selection programmatically.
|
|
974
980
|
*/
|
|
975
981
|
style_scheme: StyleScheme
|
|
982
|
+
/**
|
|
983
|
+
* The :style-scheme property contains the currently selected style
|
|
984
|
+
* scheme. The property can be set to change
|
|
985
|
+
* the current selection programmatically.
|
|
986
|
+
*/
|
|
987
|
+
styleScheme: StyleScheme
|
|
976
988
|
|
|
977
989
|
// Owm methods of GtkSource-3.0.GtkSource.StyleSchemeChooser
|
|
978
990
|
|
|
@@ -1250,6 +1262,31 @@ export module Buffer {
|
|
|
1250
1262
|
*/
|
|
1251
1263
|
style_scheme?: StyleScheme | null
|
|
1252
1264
|
undo_manager?: UndoManager | null
|
|
1265
|
+
/**
|
|
1266
|
+
* Whether to highlight matching brackets in the buffer.
|
|
1267
|
+
*/
|
|
1268
|
+
highlightMatchingBrackets?: boolean | null
|
|
1269
|
+
/**
|
|
1270
|
+
* Whether to highlight syntax in the buffer.
|
|
1271
|
+
*/
|
|
1272
|
+
highlightSyntax?: boolean | null
|
|
1273
|
+
/**
|
|
1274
|
+
* Whether the buffer has an implicit trailing newline. See
|
|
1275
|
+
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1276
|
+
*/
|
|
1277
|
+
implicitTrailingNewline?: boolean | null
|
|
1278
|
+
/**
|
|
1279
|
+
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1280
|
+
* will only affect the default undo manager.
|
|
1281
|
+
*/
|
|
1282
|
+
maxUndoLevels?: number | null
|
|
1283
|
+
/**
|
|
1284
|
+
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1285
|
+
* foreground, background, cursor color, current line color, and matching
|
|
1286
|
+
* brackets style.
|
|
1287
|
+
*/
|
|
1288
|
+
styleScheme?: StyleScheme | null
|
|
1289
|
+
undoManager?: UndoManager | null
|
|
1253
1290
|
}
|
|
1254
1291
|
|
|
1255
1292
|
}
|
|
@@ -1259,33 +1296,60 @@ export interface Buffer {
|
|
|
1259
1296
|
// Own properties of GtkSource-3.0.GtkSource.Buffer
|
|
1260
1297
|
|
|
1261
1298
|
readonly can_redo: boolean
|
|
1299
|
+
readonly canRedo: boolean
|
|
1262
1300
|
readonly can_undo: boolean
|
|
1301
|
+
readonly canUndo: boolean
|
|
1263
1302
|
/**
|
|
1264
1303
|
* Whether to highlight matching brackets in the buffer.
|
|
1265
1304
|
*/
|
|
1266
1305
|
highlight_matching_brackets: boolean
|
|
1306
|
+
/**
|
|
1307
|
+
* Whether to highlight matching brackets in the buffer.
|
|
1308
|
+
*/
|
|
1309
|
+
highlightMatchingBrackets: boolean
|
|
1267
1310
|
/**
|
|
1268
1311
|
* Whether to highlight syntax in the buffer.
|
|
1269
1312
|
*/
|
|
1270
1313
|
highlight_syntax: boolean
|
|
1314
|
+
/**
|
|
1315
|
+
* Whether to highlight syntax in the buffer.
|
|
1316
|
+
*/
|
|
1317
|
+
highlightSyntax: boolean
|
|
1271
1318
|
/**
|
|
1272
1319
|
* Whether the buffer has an implicit trailing newline. See
|
|
1273
1320
|
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1274
1321
|
*/
|
|
1275
1322
|
implicit_trailing_newline: boolean
|
|
1323
|
+
/**
|
|
1324
|
+
* Whether the buffer has an implicit trailing newline. See
|
|
1325
|
+
* gtk_source_buffer_set_implicit_trailing_newline().
|
|
1326
|
+
*/
|
|
1327
|
+
implicitTrailingNewline: boolean
|
|
1276
1328
|
language: Language
|
|
1277
1329
|
/**
|
|
1278
1330
|
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1279
1331
|
* will only affect the default undo manager.
|
|
1280
1332
|
*/
|
|
1281
1333
|
max_undo_levels: number
|
|
1334
|
+
/**
|
|
1335
|
+
* Number of undo levels for the buffer. -1 means no limit. This property
|
|
1336
|
+
* will only affect the default undo manager.
|
|
1337
|
+
*/
|
|
1338
|
+
maxUndoLevels: number
|
|
1282
1339
|
/**
|
|
1283
1340
|
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1284
1341
|
* foreground, background, cursor color, current line color, and matching
|
|
1285
1342
|
* brackets style.
|
|
1286
1343
|
*/
|
|
1287
1344
|
style_scheme: StyleScheme
|
|
1345
|
+
/**
|
|
1346
|
+
* Style scheme. It contains styles for syntax highlighting, optionally
|
|
1347
|
+
* foreground, background, cursor color, current line color, and matching
|
|
1348
|
+
* brackets style.
|
|
1349
|
+
*/
|
|
1350
|
+
styleScheme: StyleScheme
|
|
1288
1351
|
undo_manager: UndoManager
|
|
1352
|
+
undoManager: UndoManager
|
|
1289
1353
|
|
|
1290
1354
|
// Own fields of GtkSource-3.0.GtkSource.Buffer
|
|
1291
1355
|
|
|
@@ -1339,7 +1403,7 @@ export interface Buffer {
|
|
|
1339
1403
|
* @param where location to place the mark.
|
|
1340
1404
|
* @returns a new #GtkSourceMark, owned by the buffer.
|
|
1341
1405
|
*/
|
|
1342
|
-
create_source_mark(name: string | null, category: string
|
|
1406
|
+
create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
|
|
1343
1407
|
/**
|
|
1344
1408
|
* Marks the end of a not undoable action on the buffer. When the
|
|
1345
1409
|
* last not undoable block is closed through the call to this
|
|
@@ -1445,7 +1509,7 @@ export interface Buffer {
|
|
|
1445
1509
|
* @param context_class the context class.
|
|
1446
1510
|
* @returns whether we found a context class toggle before @iter
|
|
1447
1511
|
*/
|
|
1448
|
-
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1512
|
+
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
|
|
1449
1513
|
/**
|
|
1450
1514
|
* Moves forward to the next toggle (on or off) of the context class. If no
|
|
1451
1515
|
* matching context class toggles are found, returns %FALSE, otherwise %TRUE.
|
|
@@ -1458,7 +1522,7 @@ export interface Buffer {
|
|
|
1458
1522
|
* @param context_class the context class.
|
|
1459
1523
|
* @returns whether we found a context class toggle after @iter
|
|
1460
1524
|
*/
|
|
1461
|
-
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string
|
|
1525
|
+
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
|
|
1462
1526
|
/**
|
|
1463
1527
|
* Check if the class `context_class` is set on `iter`.
|
|
1464
1528
|
*
|
|
@@ -1467,7 +1531,7 @@ export interface Buffer {
|
|
|
1467
1531
|
* @param context_class class to search for.
|
|
1468
1532
|
* @returns whether @iter has the context class.
|
|
1469
1533
|
*/
|
|
1470
|
-
iter_has_context_class(iter: Gtk.TextIter, context_class: string
|
|
1534
|
+
iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
|
|
1471
1535
|
/**
|
|
1472
1536
|
* Joins the lines of text between the specified iterators.
|
|
1473
1537
|
* @param start a #GtkTextIter.
|
|
@@ -1834,6 +1898,48 @@ export module Completion {
|
|
|
1834
1898
|
* The #GtkSourceView bound to the completion object.
|
|
1835
1899
|
*/
|
|
1836
1900
|
view?: View | null
|
|
1901
|
+
/**
|
|
1902
|
+
* Determines the popup delay (in milliseconds) at which the completion
|
|
1903
|
+
* will be shown for interactive completion.
|
|
1904
|
+
*/
|
|
1905
|
+
autoCompleteDelay?: number | null
|
|
1906
|
+
/**
|
|
1907
|
+
* The scroll page size of the proposals in the completion window. In
|
|
1908
|
+
* other words, when <keycap>PageDown</keycap> or
|
|
1909
|
+
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1910
|
+
* proposal becomes the one which is located one page size backward or
|
|
1911
|
+
* forward.
|
|
1912
|
+
*
|
|
1913
|
+
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1914
|
+
*/
|
|
1915
|
+
proposalPageSize?: number | null
|
|
1916
|
+
/**
|
|
1917
|
+
* The scroll page size of the provider pages in the completion window.
|
|
1918
|
+
*
|
|
1919
|
+
* See the #GtkSourceCompletion::move-page signal.
|
|
1920
|
+
*/
|
|
1921
|
+
providerPageSize?: number | null
|
|
1922
|
+
/**
|
|
1923
|
+
* Determines whether the visibility of the info window should be
|
|
1924
|
+
* saved when the completion is hidden, and restored when the completion
|
|
1925
|
+
* is shown again.
|
|
1926
|
+
*/
|
|
1927
|
+
rememberInfoVisibility?: boolean | null
|
|
1928
|
+
/**
|
|
1929
|
+
* Determines whether the first proposal should be selected when the
|
|
1930
|
+
* completion is first shown.
|
|
1931
|
+
*/
|
|
1932
|
+
selectOnShow?: boolean | null
|
|
1933
|
+
/**
|
|
1934
|
+
* Determines whether provider headers should be shown in the proposal
|
|
1935
|
+
* list. It can be useful to disable when there is only one provider.
|
|
1936
|
+
*/
|
|
1937
|
+
showHeaders?: boolean | null
|
|
1938
|
+
/**
|
|
1939
|
+
* Determines whether provider and proposal icons should be shown in
|
|
1940
|
+
* the completion popup.
|
|
1941
|
+
*/
|
|
1942
|
+
showIcons?: boolean | null
|
|
1837
1943
|
}
|
|
1838
1944
|
|
|
1839
1945
|
}
|
|
@@ -1853,6 +1959,11 @@ export interface Completion extends Gtk.Buildable {
|
|
|
1853
1959
|
* will be shown for interactive completion.
|
|
1854
1960
|
*/
|
|
1855
1961
|
auto_complete_delay: number
|
|
1962
|
+
/**
|
|
1963
|
+
* Determines the popup delay (in milliseconds) at which the completion
|
|
1964
|
+
* will be shown for interactive completion.
|
|
1965
|
+
*/
|
|
1966
|
+
autoCompleteDelay: number
|
|
1856
1967
|
/**
|
|
1857
1968
|
* The scroll page size of the proposals in the completion window. In
|
|
1858
1969
|
* other words, when <keycap>PageDown</keycap> or
|
|
@@ -1863,33 +1974,70 @@ export interface Completion extends Gtk.Buildable {
|
|
|
1863
1974
|
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1864
1975
|
*/
|
|
1865
1976
|
proposal_page_size: number
|
|
1977
|
+
/**
|
|
1978
|
+
* The scroll page size of the proposals in the completion window. In
|
|
1979
|
+
* other words, when <keycap>PageDown</keycap> or
|
|
1980
|
+
* <keycap>PageUp</keycap> is pressed, the selected
|
|
1981
|
+
* proposal becomes the one which is located one page size backward or
|
|
1982
|
+
* forward.
|
|
1983
|
+
*
|
|
1984
|
+
* See also the #GtkSourceCompletion::move-cursor signal.
|
|
1985
|
+
*/
|
|
1986
|
+
proposalPageSize: number
|
|
1866
1987
|
/**
|
|
1867
1988
|
* The scroll page size of the provider pages in the completion window.
|
|
1868
1989
|
*
|
|
1869
1990
|
* See the #GtkSourceCompletion::move-page signal.
|
|
1870
1991
|
*/
|
|
1871
1992
|
provider_page_size: number
|
|
1993
|
+
/**
|
|
1994
|
+
* The scroll page size of the provider pages in the completion window.
|
|
1995
|
+
*
|
|
1996
|
+
* See the #GtkSourceCompletion::move-page signal.
|
|
1997
|
+
*/
|
|
1998
|
+
providerPageSize: number
|
|
1872
1999
|
/**
|
|
1873
2000
|
* Determines whether the visibility of the info window should be
|
|
1874
2001
|
* saved when the completion is hidden, and restored when the completion
|
|
1875
2002
|
* is shown again.
|
|
1876
2003
|
*/
|
|
1877
2004
|
remember_info_visibility: boolean
|
|
2005
|
+
/**
|
|
2006
|
+
* Determines whether the visibility of the info window should be
|
|
2007
|
+
* saved when the completion is hidden, and restored when the completion
|
|
2008
|
+
* is shown again.
|
|
2009
|
+
*/
|
|
2010
|
+
rememberInfoVisibility: boolean
|
|
1878
2011
|
/**
|
|
1879
2012
|
* Determines whether the first proposal should be selected when the
|
|
1880
2013
|
* completion is first shown.
|
|
1881
2014
|
*/
|
|
1882
2015
|
select_on_show: boolean
|
|
2016
|
+
/**
|
|
2017
|
+
* Determines whether the first proposal should be selected when the
|
|
2018
|
+
* completion is first shown.
|
|
2019
|
+
*/
|
|
2020
|
+
selectOnShow: boolean
|
|
1883
2021
|
/**
|
|
1884
2022
|
* Determines whether provider headers should be shown in the proposal
|
|
1885
2023
|
* list. It can be useful to disable when there is only one provider.
|
|
1886
2024
|
*/
|
|
1887
2025
|
show_headers: boolean
|
|
2026
|
+
/**
|
|
2027
|
+
* Determines whether provider headers should be shown in the proposal
|
|
2028
|
+
* list. It can be useful to disable when there is only one provider.
|
|
2029
|
+
*/
|
|
2030
|
+
showHeaders: boolean
|
|
1888
2031
|
/**
|
|
1889
2032
|
* Determines whether provider and proposal icons should be shown in
|
|
1890
2033
|
* the completion popup.
|
|
1891
2034
|
*/
|
|
1892
2035
|
show_icons: boolean
|
|
2036
|
+
/**
|
|
2037
|
+
* Determines whether provider and proposal icons should be shown in
|
|
2038
|
+
* the completion popup.
|
|
2039
|
+
*/
|
|
2040
|
+
showIcons: boolean
|
|
1893
2041
|
/**
|
|
1894
2042
|
* The #GtkSourceView bound to the completion object.
|
|
1895
2043
|
*/
|
|
@@ -2274,7 +2422,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2274
2422
|
* @param child the child widget
|
|
2275
2423
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2276
2424
|
*/
|
|
2277
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2425
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2278
2426
|
|
|
2279
2427
|
// Overloads of child_notify
|
|
2280
2428
|
|
|
@@ -2288,7 +2436,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2288
2436
|
* Also see gtk_container_child_notify().
|
|
2289
2437
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2290
2438
|
*/
|
|
2291
|
-
child_notify(child_property: string
|
|
2439
|
+
child_notify(child_property: string): void
|
|
2292
2440
|
/**
|
|
2293
2441
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2294
2442
|
* [child property][child-properties] `child_property`
|
|
@@ -2299,7 +2447,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
2299
2447
|
* Also see gtk_container_child_notify().
|
|
2300
2448
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2301
2449
|
*/
|
|
2302
|
-
child_notify(child_property: string
|
|
2450
|
+
child_notify(child_property: string): void
|
|
2303
2451
|
|
|
2304
2452
|
// Own virtual methods of GtkSource-3.0.GtkSource.CompletionInfo
|
|
2305
2453
|
|
|
@@ -2624,6 +2772,10 @@ export module CompletionItem {
|
|
|
2624
2772
|
* Proposal text.
|
|
2625
2773
|
*/
|
|
2626
2774
|
text?: string | null
|
|
2775
|
+
/**
|
|
2776
|
+
* The icon name for the icon to be shown for this proposal.
|
|
2777
|
+
*/
|
|
2778
|
+
iconName?: string | null
|
|
2627
2779
|
}
|
|
2628
2780
|
|
|
2629
2781
|
}
|
|
@@ -2644,6 +2796,10 @@ export interface CompletionItem extends CompletionProposal {
|
|
|
2644
2796
|
* The icon name for the icon to be shown for this proposal.
|
|
2645
2797
|
*/
|
|
2646
2798
|
icon_name: string | null
|
|
2799
|
+
/**
|
|
2800
|
+
* The icon name for the icon to be shown for this proposal.
|
|
2801
|
+
*/
|
|
2802
|
+
iconName: string | null
|
|
2647
2803
|
/**
|
|
2648
2804
|
* Optional extra information to be shown for this proposal.
|
|
2649
2805
|
*/
|
|
@@ -2726,7 +2882,7 @@ export class CompletionItem extends GObject.Object {
|
|
|
2726
2882
|
* @param info The item extra information.
|
|
2727
2883
|
* @returns a new #GtkSourceCompletionItem.
|
|
2728
2884
|
*/
|
|
2729
|
-
constructor(label: string
|
|
2885
|
+
constructor(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null)
|
|
2730
2886
|
/**
|
|
2731
2887
|
* Create a new #GtkSourceCompletionItem with label `label,` icon `icon` and
|
|
2732
2888
|
* extra information `info`. Both `icon` and `info` can be %NULL in which case
|
|
@@ -2738,7 +2894,7 @@ export class CompletionItem extends GObject.Object {
|
|
|
2738
2894
|
* @param info The item extra information.
|
|
2739
2895
|
* @returns a new #GtkSourceCompletionItem.
|
|
2740
2896
|
*/
|
|
2741
|
-
static new(label: string
|
|
2897
|
+
static new(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
|
|
2742
2898
|
/**
|
|
2743
2899
|
* Creates a new #GtkSourceCompletionItem from a stock item. If `label` is %NULL,
|
|
2744
2900
|
* the stock label will be used.
|
|
@@ -2749,7 +2905,7 @@ export class CompletionItem extends GObject.Object {
|
|
|
2749
2905
|
* @param info The item extra information.
|
|
2750
2906
|
* @returns a new #GtkSourceCompletionItem.
|
|
2751
2907
|
*/
|
|
2752
|
-
static new_from_stock(label: string | null, text: string
|
|
2908
|
+
static new_from_stock(label: string | null, text: string, stock: string, info: string | null): CompletionItem
|
|
2753
2909
|
/**
|
|
2754
2910
|
* Create a new #GtkSourceCompletionItem with markup label `markup,` icon
|
|
2755
2911
|
* `icon` and extra information `info`. Both `icon` and `info` can be %NULL in
|
|
@@ -2761,7 +2917,7 @@ export class CompletionItem extends GObject.Object {
|
|
|
2761
2917
|
* @param info The item extra information.
|
|
2762
2918
|
* @returns a new #GtkSourceCompletionItem.
|
|
2763
2919
|
*/
|
|
2764
|
-
static new_with_markup(markup: string
|
|
2920
|
+
static new_with_markup(markup: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
|
|
2765
2921
|
_init(config?: CompletionItem.ConstructorProperties): void
|
|
2766
2922
|
/**
|
|
2767
2923
|
* Creates a new #GtkSourceCompletionItem. The desired properties need to be set
|
|
@@ -2790,6 +2946,10 @@ export module CompletionWords {
|
|
|
2790
2946
|
priority?: number | null
|
|
2791
2947
|
proposals_batch_size?: number | null
|
|
2792
2948
|
scan_batch_size?: number | null
|
|
2949
|
+
interactiveDelay?: number | null
|
|
2950
|
+
minimumWordSize?: number | null
|
|
2951
|
+
proposalsBatchSize?: number | null
|
|
2952
|
+
scanBatchSize?: number | null
|
|
2793
2953
|
}
|
|
2794
2954
|
|
|
2795
2955
|
}
|
|
@@ -2804,11 +2964,15 @@ export interface CompletionWords extends CompletionProvider {
|
|
|
2804
2964
|
activation: CompletionActivation
|
|
2805
2965
|
icon: GdkPixbuf.Pixbuf
|
|
2806
2966
|
interactive_delay: number
|
|
2967
|
+
interactiveDelay: number
|
|
2807
2968
|
minimum_word_size: number
|
|
2969
|
+
minimumWordSize: number
|
|
2808
2970
|
name: string | null
|
|
2809
2971
|
priority: number
|
|
2810
2972
|
proposals_batch_size: number
|
|
2973
|
+
proposalsBatchSize: number
|
|
2811
2974
|
scan_batch_size: number
|
|
2975
|
+
scanBatchSize: number
|
|
2812
2976
|
|
|
2813
2977
|
// Own fields of GtkSource-3.0.GtkSource.CompletionWords
|
|
2814
2978
|
|
|
@@ -2899,6 +3063,10 @@ export interface File {
|
|
|
2899
3063
|
* The compression type.
|
|
2900
3064
|
*/
|
|
2901
3065
|
readonly compression_type: CompressionType
|
|
3066
|
+
/**
|
|
3067
|
+
* The compression type.
|
|
3068
|
+
*/
|
|
3069
|
+
readonly compressionType: CompressionType
|
|
2902
3070
|
/**
|
|
2903
3071
|
* The character encoding, initially %NULL. After a successful file
|
|
2904
3072
|
* loading or saving operation, the encoding is non-%NULL.
|
|
@@ -2912,11 +3080,20 @@ export interface File {
|
|
|
2912
3080
|
* The line ending type.
|
|
2913
3081
|
*/
|
|
2914
3082
|
readonly newline_type: NewlineType
|
|
3083
|
+
/**
|
|
3084
|
+
* The line ending type.
|
|
3085
|
+
*/
|
|
3086
|
+
readonly newlineType: NewlineType
|
|
2915
3087
|
/**
|
|
2916
3088
|
* Whether the file is read-only or not. The value of this property is
|
|
2917
3089
|
* not updated automatically (there is no file monitors).
|
|
2918
3090
|
*/
|
|
2919
3091
|
readonly read_only: boolean
|
|
3092
|
+
/**
|
|
3093
|
+
* Whether the file is read-only or not. The value of this property is
|
|
3094
|
+
* not updated automatically (there is no file monitors).
|
|
3095
|
+
*/
|
|
3096
|
+
readonly readOnly: boolean
|
|
2920
3097
|
|
|
2921
3098
|
// Own fields of GtkSource-3.0.GtkSource.File
|
|
2922
3099
|
|
|
@@ -3052,6 +3229,11 @@ export module FileLoader {
|
|
|
3052
3229
|
* construction time.
|
|
3053
3230
|
*/
|
|
3054
3231
|
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
|
|
3055
3237
|
}
|
|
3056
3238
|
|
|
3057
3239
|
}
|
|
@@ -3075,6 +3257,11 @@ export interface FileLoader {
|
|
|
3075
3257
|
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3076
3258
|
*/
|
|
3077
3259
|
readonly input_stream: Gio.InputStream
|
|
3260
|
+
/**
|
|
3261
|
+
* The #GInputStream to load. Useful for reading stdin. If this property
|
|
3262
|
+
* is set, the #GtkSourceFileLoader:location property is ignored.
|
|
3263
|
+
*/
|
|
3264
|
+
readonly inputStream: Gio.InputStream
|
|
3078
3265
|
/**
|
|
3079
3266
|
* The #GFile to load. If the #GtkSourceFileLoader:input-stream is
|
|
3080
3267
|
* %NULL, by default the location is taken from the #GtkSourceFile at
|
|
@@ -3252,6 +3439,14 @@ export module FileSaver {
|
|
|
3252
3439
|
* The newline type.
|
|
3253
3440
|
*/
|
|
3254
3441
|
newline_type?: NewlineType | null
|
|
3442
|
+
/**
|
|
3443
|
+
* The compression type.
|
|
3444
|
+
*/
|
|
3445
|
+
compressionType?: CompressionType | null
|
|
3446
|
+
/**
|
|
3447
|
+
* The newline type.
|
|
3448
|
+
*/
|
|
3449
|
+
newlineType?: NewlineType | null
|
|
3255
3450
|
}
|
|
3256
3451
|
|
|
3257
3452
|
}
|
|
@@ -3269,6 +3464,10 @@ export interface FileSaver {
|
|
|
3269
3464
|
* The compression type.
|
|
3270
3465
|
*/
|
|
3271
3466
|
compression_type: CompressionType
|
|
3467
|
+
/**
|
|
3468
|
+
* The compression type.
|
|
3469
|
+
*/
|
|
3470
|
+
compressionType: CompressionType
|
|
3272
3471
|
/**
|
|
3273
3472
|
* The file's encoding.
|
|
3274
3473
|
*/
|
|
@@ -3291,6 +3490,10 @@ export interface FileSaver {
|
|
|
3291
3490
|
* The newline type.
|
|
3292
3491
|
*/
|
|
3293
3492
|
newline_type: NewlineType
|
|
3493
|
+
/**
|
|
3494
|
+
* The newline type.
|
|
3495
|
+
*/
|
|
3496
|
+
newlineType: NewlineType
|
|
3294
3497
|
|
|
3295
3498
|
// Own fields of GtkSource-3.0.GtkSource.FileSaver
|
|
3296
3499
|
|
|
@@ -3467,6 +3670,10 @@ export module Gutter {
|
|
|
3467
3670
|
* The y-padding.
|
|
3468
3671
|
*/
|
|
3469
3672
|
ypad?: number | null
|
|
3673
|
+
/**
|
|
3674
|
+
* The text window type on which the window is placed.
|
|
3675
|
+
*/
|
|
3676
|
+
windowType?: Gtk.TextWindowType | null
|
|
3470
3677
|
}
|
|
3471
3678
|
|
|
3472
3679
|
}
|
|
@@ -3483,6 +3690,10 @@ export interface Gutter {
|
|
|
3483
3690
|
* The text window type on which the window is placed.
|
|
3484
3691
|
*/
|
|
3485
3692
|
readonly window_type: Gtk.TextWindowType
|
|
3693
|
+
/**
|
|
3694
|
+
* The text window type on which the window is placed.
|
|
3695
|
+
*/
|
|
3696
|
+
readonly windowType: Gtk.TextWindowType
|
|
3486
3697
|
/**
|
|
3487
3698
|
* The x-padding.
|
|
3488
3699
|
*/
|
|
@@ -3655,6 +3866,15 @@ export module GutterRenderer {
|
|
|
3655
3866
|
* The top and bottom padding of the renderer.
|
|
3656
3867
|
*/
|
|
3657
3868
|
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
|
|
3658
3878
|
}
|
|
3659
3879
|
|
|
3660
3880
|
}
|
|
@@ -3670,8 +3890,17 @@ export interface GutterRenderer {
|
|
|
3670
3890
|
* or the last line.
|
|
3671
3891
|
*/
|
|
3672
3892
|
alignment_mode: GutterRendererAlignmentMode
|
|
3893
|
+
/**
|
|
3894
|
+
* The alignment mode of the renderer. This can be used to indicate
|
|
3895
|
+
* that in the case a cell spans multiple lines (due to text wrapping)
|
|
3896
|
+
* the alignment should work on either the full cell, the first line
|
|
3897
|
+
* or the last line.
|
|
3898
|
+
*/
|
|
3899
|
+
alignmentMode: GutterRendererAlignmentMode
|
|
3673
3900
|
background_rgba: Gdk.RGBA
|
|
3901
|
+
backgroundRgba: Gdk.RGBA
|
|
3674
3902
|
background_set: boolean
|
|
3903
|
+
backgroundSet: boolean
|
|
3675
3904
|
size: number
|
|
3676
3905
|
/**
|
|
3677
3906
|
* The view on which the renderer is placed.
|
|
@@ -3686,6 +3915,11 @@ export interface GutterRenderer {
|
|
|
3686
3915
|
* or right).
|
|
3687
3916
|
*/
|
|
3688
3917
|
readonly window_type: Gtk.TextWindowType
|
|
3918
|
+
/**
|
|
3919
|
+
* The window type of the view on which the renderer is placed (left,
|
|
3920
|
+
* or right).
|
|
3921
|
+
*/
|
|
3922
|
+
readonly windowType: Gtk.TextWindowType
|
|
3689
3923
|
/**
|
|
3690
3924
|
* The horizontal alignment of the renderer. Set to 0 for a left
|
|
3691
3925
|
* alignment. 1 for a right alignment. And 0.5 for centering the cells.
|
|
@@ -4076,6 +4310,11 @@ export module GutterRendererPixbuf {
|
|
|
4076
4310
|
* The stock id.
|
|
4077
4311
|
*/
|
|
4078
4312
|
stock_id?: string | null
|
|
4313
|
+
iconName?: string | null
|
|
4314
|
+
/**
|
|
4315
|
+
* The stock id.
|
|
4316
|
+
*/
|
|
4317
|
+
stockId?: string | null
|
|
4079
4318
|
}
|
|
4080
4319
|
|
|
4081
4320
|
}
|
|
@@ -4086,11 +4325,16 @@ export interface GutterRendererPixbuf {
|
|
|
4086
4325
|
|
|
4087
4326
|
gicon: Gio.Icon
|
|
4088
4327
|
icon_name: string | null
|
|
4328
|
+
iconName: string | null
|
|
4089
4329
|
pixbuf: GdkPixbuf.Pixbuf
|
|
4090
4330
|
/**
|
|
4091
4331
|
* The stock id.
|
|
4092
4332
|
*/
|
|
4093
4333
|
stock_id: string | null
|
|
4334
|
+
/**
|
|
4335
|
+
* The stock id.
|
|
4336
|
+
*/
|
|
4337
|
+
stockId: string | null
|
|
4094
4338
|
|
|
4095
4339
|
// Owm methods of GtkSource-3.0.GtkSource.GutterRendererPixbuf
|
|
4096
4340
|
|
|
@@ -4099,13 +4343,13 @@ export interface GutterRendererPixbuf {
|
|
|
4099
4343
|
* @returns a #GIcon
|
|
4100
4344
|
*/
|
|
4101
4345
|
get_gicon(): Gio.Icon
|
|
4102
|
-
get_icon_name(): string
|
|
4346
|
+
get_icon_name(): string
|
|
4103
4347
|
/**
|
|
4104
4348
|
* Get the pixbuf of the renderer.
|
|
4105
4349
|
* @returns a #GdkPixbuf
|
|
4106
4350
|
*/
|
|
4107
4351
|
get_pixbuf(): GdkPixbuf.Pixbuf
|
|
4108
|
-
get_stock_id(): string
|
|
4352
|
+
get_stock_id(): string
|
|
4109
4353
|
set_gicon(icon: Gio.Icon | null): void
|
|
4110
4354
|
set_icon_name(icon_name: string | null): void
|
|
4111
4355
|
set_pixbuf(pixbuf: GdkPixbuf.Pixbuf | null): void
|
|
@@ -4217,15 +4461,15 @@ export interface GutterRendererText {
|
|
|
4217
4461
|
* #GtkSourceGutterRendererText.
|
|
4218
4462
|
* @param text the text to measure.
|
|
4219
4463
|
*/
|
|
4220
|
-
measure(text: string
|
|
4464
|
+
measure(text: string): [ /* width */ number, /* height */ number ]
|
|
4221
4465
|
/**
|
|
4222
4466
|
* Measures the pango markup provided using the pango layout used by the
|
|
4223
4467
|
* #GtkSourceGutterRendererText.
|
|
4224
4468
|
* @param markup the pango markup to measure.
|
|
4225
4469
|
*/
|
|
4226
|
-
measure_markup(markup: string
|
|
4227
|
-
set_markup(markup: string
|
|
4228
|
-
set_text(text: string
|
|
4470
|
+
measure_markup(markup: string): [ /* width */ number, /* height */ number ]
|
|
4471
|
+
set_markup(markup: string, length: number): void
|
|
4472
|
+
set_text(text: string, length: number): void
|
|
4229
4473
|
|
|
4230
4474
|
// Class property signals of GtkSource-3.0.GtkSource.GutterRendererText
|
|
4231
4475
|
|
|
@@ -4342,8 +4586,8 @@ export interface Language {
|
|
|
4342
4586
|
* or modified.
|
|
4343
4587
|
* @returns the ID of @language.
|
|
4344
4588
|
*/
|
|
4345
|
-
get_id(): string
|
|
4346
|
-
get_metadata(name: string
|
|
4589
|
+
get_id(): string
|
|
4590
|
+
get_metadata(name: string): string | null
|
|
4347
4591
|
/**
|
|
4348
4592
|
* Returns the mime types associated to this language. This is just
|
|
4349
4593
|
* an utility wrapper around gtk_source_language_get_metadata() to
|
|
@@ -4358,7 +4602,7 @@ export interface Language {
|
|
|
4358
4602
|
* or modified.
|
|
4359
4603
|
* @returns the name of @language.
|
|
4360
4604
|
*/
|
|
4361
|
-
get_name(): string
|
|
4605
|
+
get_name(): string
|
|
4362
4606
|
/**
|
|
4363
4607
|
* Returns the localized section of the language.
|
|
4364
4608
|
* Each language belong to a section (ex. HTML belogs to the
|
|
@@ -4367,14 +4611,14 @@ export interface Language {
|
|
|
4367
4611
|
* or modified.
|
|
4368
4612
|
* @returns the section of @language.
|
|
4369
4613
|
*/
|
|
4370
|
-
get_section(): string
|
|
4614
|
+
get_section(): string
|
|
4371
4615
|
/**
|
|
4372
4616
|
* Returns the ID of the style to use if the specified `style_id`
|
|
4373
4617
|
* is not present in the current style scheme.
|
|
4374
4618
|
* @param style_id a style ID.
|
|
4375
4619
|
* @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.
|
|
4376
4620
|
*/
|
|
4377
|
-
get_style_fallback(style_id: string
|
|
4621
|
+
get_style_fallback(style_id: string): string | null
|
|
4378
4622
|
/**
|
|
4379
4623
|
* Returns the ids of the styles defined by this `language`.
|
|
4380
4624
|
* @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().
|
|
@@ -4385,7 +4629,7 @@ export interface Language {
|
|
|
4385
4629
|
* @param style_id a style ID.
|
|
4386
4630
|
* @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.
|
|
4387
4631
|
*/
|
|
4388
|
-
get_style_name(style_id: string
|
|
4632
|
+
get_style_name(style_id: string): string | null
|
|
4389
4633
|
|
|
4390
4634
|
// Class property signals of GtkSource-3.0.GtkSource.Language
|
|
4391
4635
|
|
|
@@ -4429,6 +4673,7 @@ export module LanguageManager {
|
|
|
4429
4673
|
// Own constructor properties of GtkSource-3.0.GtkSource.LanguageManager
|
|
4430
4674
|
|
|
4431
4675
|
search_path?: string[] | null
|
|
4676
|
+
searchPath?: string[] | null
|
|
4432
4677
|
}
|
|
4433
4678
|
|
|
4434
4679
|
}
|
|
@@ -4438,7 +4683,9 @@ export interface LanguageManager {
|
|
|
4438
4683
|
// Own properties of GtkSource-3.0.GtkSource.LanguageManager
|
|
4439
4684
|
|
|
4440
4685
|
readonly language_ids: string[]
|
|
4686
|
+
readonly languageIds: string[]
|
|
4441
4687
|
search_path: string[]
|
|
4688
|
+
searchPath: string[]
|
|
4442
4689
|
|
|
4443
4690
|
// Own fields of GtkSource-3.0.GtkSource.LanguageManager
|
|
4444
4691
|
|
|
@@ -4453,7 +4700,7 @@ export interface LanguageManager {
|
|
|
4453
4700
|
* @param id a language id.
|
|
4454
4701
|
* @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.
|
|
4455
4702
|
*/
|
|
4456
|
-
get_language(id: string
|
|
4703
|
+
get_language(id: string): Language | null
|
|
4457
4704
|
/**
|
|
4458
4705
|
* Returns the ids of the available languages.
|
|
4459
4706
|
* @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.
|
|
@@ -4577,6 +4824,7 @@ export module Map {
|
|
|
4577
4824
|
|
|
4578
4825
|
font_desc?: Pango.FontDescription | null
|
|
4579
4826
|
view?: View | null
|
|
4827
|
+
fontDesc?: Pango.FontDescription | null
|
|
4580
4828
|
}
|
|
4581
4829
|
|
|
4582
4830
|
}
|
|
@@ -4586,6 +4834,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4586
4834
|
// Own properties of GtkSource-3.0.GtkSource.Map
|
|
4587
4835
|
|
|
4588
4836
|
font_desc: Pango.FontDescription
|
|
4837
|
+
fontDesc: Pango.FontDescription
|
|
4589
4838
|
view: View
|
|
4590
4839
|
|
|
4591
4840
|
// Conflicting properties
|
|
@@ -4646,7 +4895,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4646
4895
|
* @param child the child widget
|
|
4647
4896
|
* @param child_property the name of a child property installed on the class of `container`
|
|
4648
4897
|
*/
|
|
4649
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
4898
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
4650
4899
|
|
|
4651
4900
|
// Overloads of child_notify
|
|
4652
4901
|
|
|
@@ -4660,7 +4909,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4660
4909
|
* Also see gtk_container_child_notify().
|
|
4661
4910
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4662
4911
|
*/
|
|
4663
|
-
child_notify(child_property: string
|
|
4912
|
+
child_notify(child_property: string): void
|
|
4664
4913
|
/**
|
|
4665
4914
|
* Emits a #GtkWidget::child-notify signal for the
|
|
4666
4915
|
* [child property][child-properties] `child_property`
|
|
@@ -4671,7 +4920,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
|
|
|
4671
4920
|
* Also see gtk_container_child_notify().
|
|
4672
4921
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
4673
4922
|
*/
|
|
4674
|
-
child_notify(child_property: string
|
|
4923
|
+
child_notify(child_property: string): void
|
|
4675
4924
|
|
|
4676
4925
|
// Class property signals of GtkSource-3.0.GtkSource.Map
|
|
4677
4926
|
|
|
@@ -5003,7 +5252,7 @@ export interface Mark {
|
|
|
5003
5252
|
* Returns the mark category.
|
|
5004
5253
|
* @returns the category of the #GtkSourceMark.
|
|
5005
5254
|
*/
|
|
5006
|
-
get_category(): string
|
|
5255
|
+
get_category(): string
|
|
5007
5256
|
/**
|
|
5008
5257
|
* Returns the next #GtkSourceMark in the buffer or %NULL if the mark
|
|
5009
5258
|
* was not added to a buffer. If there is no next mark, %NULL will be returned.
|
|
@@ -5021,7 +5270,7 @@ export interface Mark {
|
|
|
5021
5270
|
* @param category a string specifying the mark category, or %NULL.
|
|
5022
5271
|
* @returns the previous #GtkSourceMark, or %NULL.
|
|
5023
5272
|
*/
|
|
5024
|
-
prev(category: string
|
|
5273
|
+
prev(category: string): Mark | null
|
|
5025
5274
|
|
|
5026
5275
|
// Class property signals of GtkSource-3.0.GtkSource.Mark
|
|
5027
5276
|
|
|
@@ -5061,7 +5310,7 @@ export class Mark extends Gtk.TextMark {
|
|
|
5061
5310
|
* @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).
|
|
5062
5311
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5063
5312
|
*/
|
|
5064
|
-
constructor(name: string
|
|
5313
|
+
constructor(name: string, category: string)
|
|
5065
5314
|
/**
|
|
5066
5315
|
* Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
|
|
5067
5316
|
* If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
|
|
@@ -5073,7 +5322,7 @@ export class Mark extends Gtk.TextMark {
|
|
|
5073
5322
|
* @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).
|
|
5074
5323
|
* @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
|
|
5075
5324
|
*/
|
|
5076
|
-
static new(name: string
|
|
5325
|
+
static new(name: string, category: string): Mark
|
|
5077
5326
|
|
|
5078
5327
|
// Overloads of new
|
|
5079
5328
|
|
|
@@ -5141,6 +5390,14 @@ export module MarkAttributes {
|
|
|
5141
5390
|
* A stock id that may be a base of a rendered icon.
|
|
5142
5391
|
*/
|
|
5143
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
|
+
/**
|
|
5398
|
+
* A stock id that may be a base of a rendered icon.
|
|
5399
|
+
*/
|
|
5400
|
+
stockId?: string | null
|
|
5144
5401
|
}
|
|
5145
5402
|
|
|
5146
5403
|
}
|
|
@@ -5161,6 +5418,10 @@ export interface MarkAttributes {
|
|
|
5161
5418
|
* An icon name that may be a base of a rendered icon.
|
|
5162
5419
|
*/
|
|
5163
5420
|
icon_name: string | null
|
|
5421
|
+
/**
|
|
5422
|
+
* An icon name that may be a base of a rendered icon.
|
|
5423
|
+
*/
|
|
5424
|
+
iconName: string | null
|
|
5164
5425
|
/**
|
|
5165
5426
|
* A #GdkPixbuf that may be a base of a rendered icon.
|
|
5166
5427
|
*/
|
|
@@ -5169,6 +5430,10 @@ export interface MarkAttributes {
|
|
|
5169
5430
|
* A stock id that may be a base of a rendered icon.
|
|
5170
5431
|
*/
|
|
5171
5432
|
stock_id: string | null
|
|
5433
|
+
/**
|
|
5434
|
+
* A stock id that may be a base of a rendered icon.
|
|
5435
|
+
*/
|
|
5436
|
+
stockId: string | null
|
|
5172
5437
|
|
|
5173
5438
|
// Owm methods of GtkSource-3.0.GtkSource.MarkAttributes
|
|
5174
5439
|
|
|
@@ -5188,7 +5453,7 @@ export interface MarkAttributes {
|
|
|
5188
5453
|
* icon name can be %NULL if it wasn't set earlier.
|
|
5189
5454
|
* @returns An icon name. The string belongs to @attributes and should not be freed.
|
|
5190
5455
|
*/
|
|
5191
|
-
get_icon_name(): string
|
|
5456
|
+
get_icon_name(): string
|
|
5192
5457
|
/**
|
|
5193
5458
|
* Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
|
|
5194
5459
|
* pixbuf can be %NULL if it wasn't set earlier.
|
|
@@ -5200,7 +5465,7 @@ export interface MarkAttributes {
|
|
|
5200
5465
|
* be %NULL if it wasn't set earlier.
|
|
5201
5466
|
* @returns Stock id. Returned string is owned by @attributes and shouldn't be freed.
|
|
5202
5467
|
*/
|
|
5203
|
-
get_stock_id(): string
|
|
5468
|
+
get_stock_id(): string
|
|
5204
5469
|
/**
|
|
5205
5470
|
* Queries for a tooltip by emitting
|
|
5206
5471
|
* a #GtkSourceMarkAttributes::query-tooltip-markup signal. The tooltip may contain
|
|
@@ -5242,7 +5507,7 @@ export interface MarkAttributes {
|
|
|
5242
5507
|
* Sets a name of an icon to be used as a base for rendered icon.
|
|
5243
5508
|
* @param icon_name name of an icon to be used.
|
|
5244
5509
|
*/
|
|
5245
|
-
set_icon_name(icon_name: string
|
|
5510
|
+
set_icon_name(icon_name: string): void
|
|
5246
5511
|
/**
|
|
5247
5512
|
* Sets a pixbuf to be used as a base for rendered icon.
|
|
5248
5513
|
* @param pixbuf a #GdkPixbuf to be used.
|
|
@@ -5252,7 +5517,7 @@ export interface MarkAttributes {
|
|
|
5252
5517
|
* Sets stock id to be used as a base for rendered icon.
|
|
5253
5518
|
* @param stock_id a stock id.
|
|
5254
5519
|
*/
|
|
5255
|
-
set_stock_id(stock_id: string
|
|
5520
|
+
set_stock_id(stock_id: string): void
|
|
5256
5521
|
|
|
5257
5522
|
// Own signals of GtkSource-3.0.GtkSource.MarkAttributes
|
|
5258
5523
|
|
|
@@ -5422,63 +5687,204 @@ export module PrintCompositor {
|
|
|
5422
5687
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5423
5688
|
*/
|
|
5424
5689
|
wrap_mode?: Gtk.WrapMode | null
|
|
5425
|
-
|
|
5426
|
-
|
|
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
|
-
|
|
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
|
|
5782
|
+
/**
|
|
5783
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5784
|
+
*
|
|
5785
|
+
* The value of this property cannot be changed anymore after the first
|
|
5786
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5787
|
+
*/
|
|
5788
|
+
wrapMode?: Gtk.WrapMode | null
|
|
5789
|
+
}
|
|
5790
|
+
|
|
5791
|
+
}
|
|
5792
|
+
|
|
5793
|
+
export interface PrintCompositor {
|
|
5794
|
+
|
|
5795
|
+
// Own properties of GtkSource-3.0.GtkSource.PrintCompositor
|
|
5796
|
+
|
|
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
|
+
/**
|
|
5809
|
+
* Name of the font used for the text body.
|
|
5810
|
+
*
|
|
5811
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5812
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5813
|
+
* for a description of the format of the string representation.
|
|
5814
|
+
*
|
|
5815
|
+
* The value of this property cannot be changed anymore after the first
|
|
5816
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5817
|
+
*/
|
|
5818
|
+
bodyFontName: string | null
|
|
5819
|
+
/**
|
|
5820
|
+
* The GtkSourceBuffer object to print.
|
|
5821
|
+
*/
|
|
5822
|
+
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
|
+
/**
|
|
5836
|
+
* Name of the font used to print page footer.
|
|
5837
|
+
* If this property is unspecified, the text body font is used.
|
|
5838
|
+
*
|
|
5839
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5840
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5841
|
+
* for a description of the format of the string representation.
|
|
5842
|
+
*
|
|
5843
|
+
* The value of this property cannot be changed anymore after the first
|
|
5844
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5845
|
+
*/
|
|
5846
|
+
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
|
+
/**
|
|
5860
|
+
* Name of the font used to print page header.
|
|
5861
|
+
* If this property is unspecified, the text body font is used.
|
|
5862
|
+
*
|
|
5863
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5864
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5865
|
+
* for a description of the format of the string representation.
|
|
5866
|
+
*
|
|
5867
|
+
* The value of this property cannot be changed anymore after the first
|
|
5868
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5869
|
+
*/
|
|
5870
|
+
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
|
+
/**
|
|
5879
|
+
* Whether to print the document with highlighted syntax.
|
|
5880
|
+
*
|
|
5881
|
+
* The value of this property cannot be changed anymore after the first
|
|
5882
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5883
|
+
*/
|
|
5884
|
+
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.
|
|
5482
5888
|
*
|
|
5483
5889
|
* Accepted values are strings representing a font description Pango can understand.
|
|
5484
5890
|
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
@@ -5488,11 +5894,28 @@ export interface PrintCompositor {
|
|
|
5488
5894
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5489
5895
|
*/
|
|
5490
5896
|
line_numbers_font_name: string | null
|
|
5897
|
+
/**
|
|
5898
|
+
* Name of the font used to print line numbers on the left margin.
|
|
5899
|
+
* If this property is unspecified, the text body font is used.
|
|
5900
|
+
*
|
|
5901
|
+
* Accepted values are strings representing a font description Pango can understand.
|
|
5902
|
+
* (e.g. "Monospace 10"). See pango_font_description_from_string()
|
|
5903
|
+
* for a description of the format of the string representation.
|
|
5904
|
+
*
|
|
5905
|
+
* The value of this property cannot be changed anymore after the first
|
|
5906
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5907
|
+
*/
|
|
5908
|
+
lineNumbersFontName: string | null
|
|
5491
5909
|
/**
|
|
5492
5910
|
* The number of pages in the document or <code>-1</code> if the
|
|
5493
5911
|
* document has not been completely paginated.
|
|
5494
5912
|
*/
|
|
5495
5913
|
readonly n_pages: number
|
|
5914
|
+
/**
|
|
5915
|
+
* The number of pages in the document or <code>-1</code> if the
|
|
5916
|
+
* document has not been completely paginated.
|
|
5917
|
+
*/
|
|
5918
|
+
readonly nPages: number
|
|
5496
5919
|
/**
|
|
5497
5920
|
* Whether to print a footer in each page.
|
|
5498
5921
|
*
|
|
@@ -5504,6 +5927,17 @@ export interface PrintCompositor {
|
|
|
5504
5927
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5505
5928
|
*/
|
|
5506
5929
|
print_footer: boolean
|
|
5930
|
+
/**
|
|
5931
|
+
* Whether to print a footer in each page.
|
|
5932
|
+
*
|
|
5933
|
+
* Note that by default the footer format is unspecified, and if it is
|
|
5934
|
+
* unspecified the footer will not be printed, regardless of the value of
|
|
5935
|
+
* this property.
|
|
5936
|
+
*
|
|
5937
|
+
* The value of this property cannot be changed anymore after the first
|
|
5938
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5939
|
+
*/
|
|
5940
|
+
printFooter: boolean
|
|
5507
5941
|
/**
|
|
5508
5942
|
* Whether to print a header in each page.
|
|
5509
5943
|
*
|
|
@@ -5515,6 +5949,17 @@ export interface PrintCompositor {
|
|
|
5515
5949
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5516
5950
|
*/
|
|
5517
5951
|
print_header: boolean
|
|
5952
|
+
/**
|
|
5953
|
+
* Whether to print a header in each page.
|
|
5954
|
+
*
|
|
5955
|
+
* Note that by default the header format is unspecified, and if it is
|
|
5956
|
+
* unspecified the header will not be printed, regardless of the value of
|
|
5957
|
+
* this property.
|
|
5958
|
+
*
|
|
5959
|
+
* The value of this property cannot be changed anymore after the first
|
|
5960
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5961
|
+
*/
|
|
5962
|
+
printHeader: boolean
|
|
5518
5963
|
/**
|
|
5519
5964
|
* Interval of printed line numbers. If this property is set to 0 no
|
|
5520
5965
|
* numbers will be printed. If greater than 0, a number will be
|
|
@@ -5524,6 +5969,15 @@ export interface PrintCompositor {
|
|
|
5524
5969
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5525
5970
|
*/
|
|
5526
5971
|
print_line_numbers: number
|
|
5972
|
+
/**
|
|
5973
|
+
* Interval of printed line numbers. If this property is set to 0 no
|
|
5974
|
+
* numbers will be printed. If greater than 0, a number will be
|
|
5975
|
+
* printed every "print-line-numbers" lines (i.e. 1 will print all line numbers).
|
|
5976
|
+
*
|
|
5977
|
+
* The value of this property cannot be changed anymore after the first
|
|
5978
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5979
|
+
*/
|
|
5980
|
+
printLineNumbers: number
|
|
5527
5981
|
/**
|
|
5528
5982
|
* Width of a tab character expressed in spaces.
|
|
5529
5983
|
*
|
|
@@ -5531,6 +5985,13 @@ export interface PrintCompositor {
|
|
|
5531
5985
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5532
5986
|
*/
|
|
5533
5987
|
tab_width: number
|
|
5988
|
+
/**
|
|
5989
|
+
* Width of a tab character expressed in spaces.
|
|
5990
|
+
*
|
|
5991
|
+
* The value of this property cannot be changed anymore after the first
|
|
5992
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
5993
|
+
*/
|
|
5994
|
+
tabWidth: number
|
|
5534
5995
|
/**
|
|
5535
5996
|
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
5536
5997
|
*
|
|
@@ -5538,6 +5999,13 @@ export interface PrintCompositor {
|
|
|
5538
5999
|
* call to the gtk_source_print_compositor_paginate() function.
|
|
5539
6000
|
*/
|
|
5540
6001
|
wrap_mode: Gtk.WrapMode
|
|
6002
|
+
/**
|
|
6003
|
+
* Whether to wrap lines never, at word boundaries, or at character boundaries.
|
|
6004
|
+
*
|
|
6005
|
+
* The value of this property cannot be changed anymore after the first
|
|
6006
|
+
* call to the gtk_source_print_compositor_paginate() function.
|
|
6007
|
+
*/
|
|
6008
|
+
wrapMode: Gtk.WrapMode
|
|
5541
6009
|
|
|
5542
6010
|
// Own fields of GtkSource-3.0.GtkSource.PrintCompositor
|
|
5543
6011
|
|
|
@@ -5757,7 +6225,7 @@ export interface PrintCompositor {
|
|
|
5757
6225
|
* gtk_source_print_compositor_paginate() function.
|
|
5758
6226
|
* @param font_name the name of the default font for the body text.
|
|
5759
6227
|
*/
|
|
5760
|
-
set_body_font_name(font_name: string
|
|
6228
|
+
set_body_font_name(font_name: string): void
|
|
5761
6229
|
/**
|
|
5762
6230
|
* Sets the bottom margin used by `compositor`.
|
|
5763
6231
|
* @param margin the new bottom margin in units of `unit`.
|
|
@@ -6160,6 +6628,10 @@ export module SearchContext {
|
|
|
6160
6628
|
* The #GtkSourceSearchSettings associated to the search context.
|
|
6161
6629
|
*/
|
|
6162
6630
|
settings?: SearchSettings | null
|
|
6631
|
+
/**
|
|
6632
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6633
|
+
*/
|
|
6634
|
+
matchStyle?: Style | null
|
|
6163
6635
|
}
|
|
6164
6636
|
|
|
6165
6637
|
}
|
|
@@ -6180,12 +6652,22 @@ export interface SearchContext {
|
|
|
6180
6652
|
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6181
6653
|
*/
|
|
6182
6654
|
match_style: Style
|
|
6655
|
+
/**
|
|
6656
|
+
* A #GtkSourceStyle, or %NULL for theme's scheme default style.
|
|
6657
|
+
*/
|
|
6658
|
+
matchStyle: Style
|
|
6183
6659
|
/**
|
|
6184
6660
|
* The total number of search occurrences. If the search is disabled,
|
|
6185
6661
|
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6186
6662
|
* is -1.
|
|
6187
6663
|
*/
|
|
6188
6664
|
readonly occurrences_count: number
|
|
6665
|
+
/**
|
|
6666
|
+
* The total number of search occurrences. If the search is disabled,
|
|
6667
|
+
* the value is 0. If the buffer is not already fully scanned, the value
|
|
6668
|
+
* is -1.
|
|
6669
|
+
*/
|
|
6670
|
+
readonly occurrencesCount: number
|
|
6189
6671
|
/**
|
|
6190
6672
|
* If the regex search pattern doesn't follow all the rules, this
|
|
6191
6673
|
* property will be set. If the pattern is valid, the value is %NULL.
|
|
@@ -6193,6 +6675,13 @@ export interface SearchContext {
|
|
|
6193
6675
|
* Free with g_error_free().
|
|
6194
6676
|
*/
|
|
6195
6677
|
readonly regex_error: any
|
|
6678
|
+
/**
|
|
6679
|
+
* If the regex search pattern doesn't follow all the rules, this
|
|
6680
|
+
* property will be set. If the pattern is valid, the value is %NULL.
|
|
6681
|
+
*
|
|
6682
|
+
* Free with g_error_free().
|
|
6683
|
+
*/
|
|
6684
|
+
readonly regexError: any
|
|
6196
6685
|
/**
|
|
6197
6686
|
* The #GtkSourceSearchSettings associated to the search context.
|
|
6198
6687
|
*/
|
|
@@ -6408,7 +6897,7 @@ export interface SearchContext {
|
|
|
6408
6897
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6409
6898
|
* @returns whether the match has been replaced.
|
|
6410
6899
|
*/
|
|
6411
|
-
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string
|
|
6900
|
+
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
|
|
6412
6901
|
/**
|
|
6413
6902
|
* Replaces a search match by another text. If `match_start` and `match_end`
|
|
6414
6903
|
* doesn't correspond to a search match, %FALSE is returned.
|
|
@@ -6425,7 +6914,7 @@ export interface SearchContext {
|
|
|
6425
6914
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6426
6915
|
* @returns whether the match has been replaced.
|
|
6427
6916
|
*/
|
|
6428
|
-
replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string
|
|
6917
|
+
replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
|
|
6429
6918
|
/**
|
|
6430
6919
|
* Replaces all search matches by another text. It is a synchronous function, so
|
|
6431
6920
|
* it can block the user interface.
|
|
@@ -6437,7 +6926,7 @@ export interface SearchContext {
|
|
|
6437
6926
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6438
6927
|
* @returns the number of replaced matches.
|
|
6439
6928
|
*/
|
|
6440
|
-
replace_all(replace: string
|
|
6929
|
+
replace_all(replace: string, replace_length: number): number
|
|
6441
6930
|
/**
|
|
6442
6931
|
* Enables or disables the search occurrences highlighting.
|
|
6443
6932
|
* @param highlight the setting.
|
|
@@ -6555,6 +7044,32 @@ export module SearchSettings {
|
|
|
6555
7044
|
* end of the buffer.
|
|
6556
7045
|
*/
|
|
6557
7046
|
wrap_around?: boolean | null
|
|
7047
|
+
/**
|
|
7048
|
+
* If %TRUE, a search match must start and end a word. The match can
|
|
7049
|
+
* span multiple words.
|
|
7050
|
+
*/
|
|
7051
|
+
atWordBoundaries?: boolean | null
|
|
7052
|
+
/**
|
|
7053
|
+
* Whether the search is case sensitive.
|
|
7054
|
+
*/
|
|
7055
|
+
caseSensitive?: boolean | null
|
|
7056
|
+
/**
|
|
7057
|
+
* Search by regular expressions with
|
|
7058
|
+
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
7059
|
+
*/
|
|
7060
|
+
regexEnabled?: boolean | null
|
|
7061
|
+
/**
|
|
7062
|
+
* A search string, or %NULL if the search is disabled. If the regular
|
|
7063
|
+
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
7064
|
+
* the pattern.
|
|
7065
|
+
*/
|
|
7066
|
+
searchText?: string | null
|
|
7067
|
+
/**
|
|
7068
|
+
* For a forward search, continue at the beginning of the buffer if no
|
|
7069
|
+
* search occurrence is found. For a backward search, continue at the
|
|
7070
|
+
* end of the buffer.
|
|
7071
|
+
*/
|
|
7072
|
+
wrapAround?: boolean | null
|
|
6558
7073
|
}
|
|
6559
7074
|
|
|
6560
7075
|
}
|
|
@@ -6568,27 +7083,53 @@ export interface SearchSettings {
|
|
|
6568
7083
|
* span multiple words.
|
|
6569
7084
|
*/
|
|
6570
7085
|
at_word_boundaries: boolean
|
|
7086
|
+
/**
|
|
7087
|
+
* If %TRUE, a search match must start and end a word. The match can
|
|
7088
|
+
* span multiple words.
|
|
7089
|
+
*/
|
|
7090
|
+
atWordBoundaries: boolean
|
|
6571
7091
|
/**
|
|
6572
7092
|
* Whether the search is case sensitive.
|
|
6573
7093
|
*/
|
|
6574
7094
|
case_sensitive: boolean
|
|
7095
|
+
/**
|
|
7096
|
+
* Whether the search is case sensitive.
|
|
7097
|
+
*/
|
|
7098
|
+
caseSensitive: boolean
|
|
6575
7099
|
/**
|
|
6576
7100
|
* Search by regular expressions with
|
|
6577
7101
|
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
6578
7102
|
*/
|
|
6579
7103
|
regex_enabled: boolean
|
|
7104
|
+
/**
|
|
7105
|
+
* Search by regular expressions with
|
|
7106
|
+
* #GtkSourceSearchSettings:search-text as the pattern.
|
|
7107
|
+
*/
|
|
7108
|
+
regexEnabled: boolean
|
|
6580
7109
|
/**
|
|
6581
7110
|
* A search string, or %NULL if the search is disabled. If the regular
|
|
6582
7111
|
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
6583
7112
|
* the pattern.
|
|
6584
7113
|
*/
|
|
6585
7114
|
search_text: string | null
|
|
7115
|
+
/**
|
|
7116
|
+
* A search string, or %NULL if the search is disabled. If the regular
|
|
7117
|
+
* expression search is enabled, #GtkSourceSearchSettings:search-text is
|
|
7118
|
+
* the pattern.
|
|
7119
|
+
*/
|
|
7120
|
+
searchText: string | null
|
|
6586
7121
|
/**
|
|
6587
7122
|
* For a forward search, continue at the beginning of the buffer if no
|
|
6588
7123
|
* search occurrence is found. For a backward search, continue at the
|
|
6589
7124
|
* end of the buffer.
|
|
6590
7125
|
*/
|
|
6591
7126
|
wrap_around: boolean
|
|
7127
|
+
/**
|
|
7128
|
+
* For a forward search, continue at the beginning of the buffer if no
|
|
7129
|
+
* search occurrence is found. For a backward search, continue at the
|
|
7130
|
+
* end of the buffer.
|
|
7131
|
+
*/
|
|
7132
|
+
wrapAround: boolean
|
|
6592
7133
|
|
|
6593
7134
|
// Own fields of GtkSource-3.0.GtkSource.SearchSettings
|
|
6594
7135
|
|
|
@@ -6728,6 +7269,10 @@ export module SpaceDrawer {
|
|
|
6728
7269
|
* By default, %GTK_SOURCE_SPACE_TYPE_ALL is set for all locations.
|
|
6729
7270
|
*/
|
|
6730
7271
|
matrix?: GLib.Variant | null
|
|
7272
|
+
/**
|
|
7273
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7274
|
+
*/
|
|
7275
|
+
enableMatrix?: boolean | null
|
|
6731
7276
|
}
|
|
6732
7277
|
|
|
6733
7278
|
}
|
|
@@ -6740,6 +7285,10 @@ export interface SpaceDrawer {
|
|
|
6740
7285
|
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
6741
7286
|
*/
|
|
6742
7287
|
enable_matrix: boolean
|
|
7288
|
+
/**
|
|
7289
|
+
* Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
|
|
7290
|
+
*/
|
|
7291
|
+
enableMatrix: boolean
|
|
6743
7292
|
/**
|
|
6744
7293
|
* The :matrix property is a #GVariant property to specify where and
|
|
6745
7294
|
* what kind of white spaces to draw.
|
|
@@ -6778,7 +7327,7 @@ export interface SpaceDrawer {
|
|
|
6778
7327
|
* @param key the `settings` key to bind.
|
|
6779
7328
|
* @param flags flags for the binding.
|
|
6780
7329
|
*/
|
|
6781
|
-
bind_matrix_setting(settings: Gio.Settings, key: string
|
|
7330
|
+
bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
|
|
6782
7331
|
get_enable_matrix(): boolean
|
|
6783
7332
|
/**
|
|
6784
7333
|
* Gets the value of the #GtkSourceSpaceDrawer:matrix property, as a #GVariant.
|
|
@@ -6894,6 +7443,18 @@ export module Style {
|
|
|
6894
7443
|
underline_color?: string | null
|
|
6895
7444
|
underline_color_set?: boolean | null
|
|
6896
7445
|
underline_set?: boolean | null
|
|
7446
|
+
backgroundSet?: boolean | null
|
|
7447
|
+
boldSet?: boolean | null
|
|
7448
|
+
foregroundSet?: boolean | null
|
|
7449
|
+
italicSet?: boolean | null
|
|
7450
|
+
lineBackground?: string | null
|
|
7451
|
+
lineBackgroundSet?: boolean | null
|
|
7452
|
+
pangoUnderline?: Pango.Underline | null
|
|
7453
|
+
scaleSet?: boolean | null
|
|
7454
|
+
strikethroughSet?: boolean | null
|
|
7455
|
+
underlineColor?: string | null
|
|
7456
|
+
underlineColorSet?: boolean | null
|
|
7457
|
+
underlineSet?: boolean | null
|
|
6897
7458
|
}
|
|
6898
7459
|
|
|
6899
7460
|
}
|
|
@@ -6904,23 +7465,35 @@ export interface Style {
|
|
|
6904
7465
|
|
|
6905
7466
|
readonly background: string | null
|
|
6906
7467
|
readonly background_set: boolean
|
|
7468
|
+
readonly backgroundSet: boolean
|
|
6907
7469
|
readonly bold: boolean
|
|
6908
7470
|
readonly bold_set: boolean
|
|
7471
|
+
readonly boldSet: boolean
|
|
6909
7472
|
readonly foreground: string | null
|
|
6910
7473
|
readonly foreground_set: boolean
|
|
7474
|
+
readonly foregroundSet: boolean
|
|
6911
7475
|
readonly italic: boolean
|
|
6912
7476
|
readonly italic_set: boolean
|
|
7477
|
+
readonly italicSet: boolean
|
|
6913
7478
|
readonly line_background: string | null
|
|
7479
|
+
readonly lineBackground: string | null
|
|
6914
7480
|
readonly line_background_set: boolean
|
|
7481
|
+
readonly lineBackgroundSet: boolean
|
|
6915
7482
|
readonly pango_underline: Pango.Underline
|
|
7483
|
+
readonly pangoUnderline: Pango.Underline
|
|
6916
7484
|
readonly scale: string | null
|
|
6917
7485
|
readonly scale_set: boolean
|
|
7486
|
+
readonly scaleSet: boolean
|
|
6918
7487
|
readonly strikethrough: boolean
|
|
6919
7488
|
readonly strikethrough_set: boolean
|
|
7489
|
+
readonly strikethroughSet: boolean
|
|
6920
7490
|
readonly underline: boolean
|
|
6921
7491
|
readonly underline_color: string | null
|
|
7492
|
+
readonly underlineColor: string | null
|
|
6922
7493
|
readonly underline_color_set: boolean
|
|
7494
|
+
readonly underlineColorSet: boolean
|
|
6923
7495
|
readonly underline_set: boolean
|
|
7496
|
+
readonly underlineSet: boolean
|
|
6924
7497
|
|
|
6925
7498
|
// Owm methods of GtkSource-3.0.GtkSource.Style
|
|
6926
7499
|
|
|
@@ -7069,9 +7642,9 @@ export interface StyleScheme {
|
|
|
7069
7642
|
get_authors(): string[] | null
|
|
7070
7643
|
get_description(): string | null
|
|
7071
7644
|
get_filename(): string | null
|
|
7072
|
-
get_id(): string
|
|
7073
|
-
get_name(): string
|
|
7074
|
-
get_style(style_id: string
|
|
7645
|
+
get_id(): string
|
|
7646
|
+
get_name(): string
|
|
7647
|
+
get_style(style_id: string): Style | null
|
|
7075
7648
|
|
|
7076
7649
|
// Class property signals of GtkSource-3.0.GtkSource.StyleScheme
|
|
7077
7650
|
|
|
@@ -7133,7 +7706,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
7133
7706
|
* Also see gtk_container_child_notify().
|
|
7134
7707
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7135
7708
|
*/
|
|
7136
|
-
child_notify(child_property: string
|
|
7709
|
+
child_notify(child_property: string): void
|
|
7137
7710
|
/**
|
|
7138
7711
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7139
7712
|
* [child property][child-properties]
|
|
@@ -7145,7 +7718,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
7145
7718
|
* @param child the child widget
|
|
7146
7719
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7147
7720
|
*/
|
|
7148
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7721
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7149
7722
|
|
|
7150
7723
|
// Overloads of child_notify
|
|
7151
7724
|
|
|
@@ -7159,7 +7732,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
|
|
|
7159
7732
|
* Also see gtk_container_child_notify().
|
|
7160
7733
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7161
7734
|
*/
|
|
7162
|
-
child_notify(child_property: string
|
|
7735
|
+
child_notify(child_property: string): void
|
|
7163
7736
|
|
|
7164
7737
|
// Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserButton
|
|
7165
7738
|
|
|
@@ -7390,7 +7963,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7390
7963
|
* @param child the child widget
|
|
7391
7964
|
* @param child_property the name of a child property installed on the class of `container`
|
|
7392
7965
|
*/
|
|
7393
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
7966
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
7394
7967
|
|
|
7395
7968
|
// Overloads of child_notify
|
|
7396
7969
|
|
|
@@ -7404,7 +7977,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7404
7977
|
* Also see gtk_container_child_notify().
|
|
7405
7978
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7406
7979
|
*/
|
|
7407
|
-
child_notify(child_property: string
|
|
7980
|
+
child_notify(child_property: string): void
|
|
7408
7981
|
/**
|
|
7409
7982
|
* Emits a #GtkWidget::child-notify signal for the
|
|
7410
7983
|
* [child property][child-properties] `child_property`
|
|
@@ -7415,7 +7988,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
|
|
|
7415
7988
|
* Also see gtk_container_child_notify().
|
|
7416
7989
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
7417
7990
|
*/
|
|
7418
|
-
child_notify(child_property: string
|
|
7991
|
+
child_notify(child_property: string): void
|
|
7419
7992
|
|
|
7420
7993
|
// Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserWidget
|
|
7421
7994
|
|
|
@@ -7588,6 +8161,7 @@ export module StyleSchemeManager {
|
|
|
7588
8161
|
// Own constructor properties of GtkSource-3.0.GtkSource.StyleSchemeManager
|
|
7589
8162
|
|
|
7590
8163
|
search_path?: string[] | null
|
|
8164
|
+
searchPath?: string[] | null
|
|
7591
8165
|
}
|
|
7592
8166
|
|
|
7593
8167
|
}
|
|
@@ -7597,7 +8171,9 @@ export interface StyleSchemeManager {
|
|
|
7597
8171
|
// Own properties of GtkSource-3.0.GtkSource.StyleSchemeManager
|
|
7598
8172
|
|
|
7599
8173
|
readonly scheme_ids: string[]
|
|
8174
|
+
readonly schemeIds: string[]
|
|
7600
8175
|
search_path: string[]
|
|
8176
|
+
searchPath: string[]
|
|
7601
8177
|
|
|
7602
8178
|
// Own fields of GtkSource-3.0.GtkSource.StyleSchemeManager
|
|
7603
8179
|
|
|
@@ -7612,7 +8188,7 @@ export interface StyleSchemeManager {
|
|
|
7612
8188
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7613
8189
|
* @param path a directory or a filename.
|
|
7614
8190
|
*/
|
|
7615
|
-
append_search_path(path: string
|
|
8191
|
+
append_search_path(path: string): void
|
|
7616
8192
|
/**
|
|
7617
8193
|
* Mark any currently cached information about the available style scehems
|
|
7618
8194
|
* as invalid. All the available style schemes will be reloaded next time
|
|
@@ -7624,7 +8200,7 @@ export interface StyleSchemeManager {
|
|
|
7624
8200
|
* @param scheme_id style scheme id to find.
|
|
7625
8201
|
* @returns a #GtkSourceStyleScheme object. Returned value is owned by @manager and must not be unref'ed.
|
|
7626
8202
|
*/
|
|
7627
|
-
get_scheme(scheme_id: string
|
|
8203
|
+
get_scheme(scheme_id: string): StyleScheme
|
|
7628
8204
|
/**
|
|
7629
8205
|
* Returns the ids of the available style schemes.
|
|
7630
8206
|
* @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.
|
|
@@ -7642,7 +8218,7 @@ export interface StyleSchemeManager {
|
|
|
7642
8218
|
* See gtk_source_style_scheme_manager_set_search_path() for details.
|
|
7643
8219
|
* @param path a directory or a filename.
|
|
7644
8220
|
*/
|
|
7645
|
-
prepend_search_path(path: string
|
|
8221
|
+
prepend_search_path(path: string): void
|
|
7646
8222
|
/**
|
|
7647
8223
|
* Sets the list of directories where the `manager` looks for
|
|
7648
8224
|
* style scheme files.
|
|
@@ -7719,6 +8295,20 @@ export module Tag {
|
|
|
7719
8295
|
* taken into account.
|
|
7720
8296
|
*/
|
|
7721
8297
|
draw_spaces_set?: boolean | null
|
|
8298
|
+
/**
|
|
8299
|
+
* Whether to draw white spaces. This property takes precedence over the value
|
|
8300
|
+
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8301
|
+
* (only where the tag is applied).
|
|
8302
|
+
*
|
|
8303
|
+
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8304
|
+
* %TRUE.
|
|
8305
|
+
*/
|
|
8306
|
+
drawSpaces?: boolean | null
|
|
8307
|
+
/**
|
|
8308
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8309
|
+
* taken into account.
|
|
8310
|
+
*/
|
|
8311
|
+
drawSpacesSet?: boolean | null
|
|
7722
8312
|
}
|
|
7723
8313
|
|
|
7724
8314
|
}
|
|
@@ -7736,11 +8326,25 @@ export interface Tag {
|
|
|
7736
8326
|
* %TRUE.
|
|
7737
8327
|
*/
|
|
7738
8328
|
draw_spaces: boolean
|
|
8329
|
+
/**
|
|
8330
|
+
* Whether to draw white spaces. This property takes precedence over the value
|
|
8331
|
+
* defined by the GtkSourceSpaceDrawer's #GtkSourceSpaceDrawer:matrix property
|
|
8332
|
+
* (only where the tag is applied).
|
|
8333
|
+
*
|
|
8334
|
+
* Setting this property also changes #GtkSourceTag:draw-spaces-set to
|
|
8335
|
+
* %TRUE.
|
|
8336
|
+
*/
|
|
8337
|
+
drawSpaces: boolean
|
|
7739
8338
|
/**
|
|
7740
8339
|
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
7741
8340
|
* taken into account.
|
|
7742
8341
|
*/
|
|
7743
8342
|
draw_spaces_set: boolean
|
|
8343
|
+
/**
|
|
8344
|
+
* Whether the #GtkSourceTag:draw-spaces property is set and must be
|
|
8345
|
+
* taken into account.
|
|
8346
|
+
*/
|
|
8347
|
+
drawSpacesSet: boolean
|
|
7744
8348
|
|
|
7745
8349
|
// Own fields of GtkSource-3.0.GtkSource.Tag
|
|
7746
8350
|
|
|
@@ -8152,6 +8756,53 @@ export module View {
|
|
|
8152
8756
|
* Width of a tab character expressed in number of spaces.
|
|
8153
8757
|
*/
|
|
8154
8758
|
tab_width?: number | null
|
|
8759
|
+
autoIndent?: boolean | null
|
|
8760
|
+
/**
|
|
8761
|
+
* Draw a specific background pattern on the view.
|
|
8762
|
+
*/
|
|
8763
|
+
backgroundPattern?: BackgroundPatternType | null
|
|
8764
|
+
/**
|
|
8765
|
+
* Set if and how the spaces should be visualized.
|
|
8766
|
+
*
|
|
8767
|
+
* For a finer-grained method, there is also the GtkSourceTag's
|
|
8768
|
+
* #GtkSourceTag:draw-spaces property.
|
|
8769
|
+
*/
|
|
8770
|
+
drawSpaces?: DrawSpacesFlags | null
|
|
8771
|
+
highlightCurrentLine?: boolean | null
|
|
8772
|
+
indentOnTab?: boolean | null
|
|
8773
|
+
/**
|
|
8774
|
+
* Width of an indentation step expressed in number of spaces.
|
|
8775
|
+
*/
|
|
8776
|
+
indentWidth?: number | null
|
|
8777
|
+
insertSpacesInsteadOfTabs?: boolean | null
|
|
8778
|
+
/**
|
|
8779
|
+
* Position of the right margin.
|
|
8780
|
+
*/
|
|
8781
|
+
rightMarginPosition?: number | null
|
|
8782
|
+
/**
|
|
8783
|
+
* Whether to display line mark pixbufs
|
|
8784
|
+
*/
|
|
8785
|
+
showLineMarks?: boolean | null
|
|
8786
|
+
/**
|
|
8787
|
+
* Whether to display line numbers
|
|
8788
|
+
*/
|
|
8789
|
+
showLineNumbers?: boolean | null
|
|
8790
|
+
/**
|
|
8791
|
+
* Whether to display the right margin.
|
|
8792
|
+
*/
|
|
8793
|
+
showRightMargin?: boolean | null
|
|
8794
|
+
/**
|
|
8795
|
+
* Whether smart Backspace should be used.
|
|
8796
|
+
*/
|
|
8797
|
+
smartBackspace?: boolean | null
|
|
8798
|
+
/**
|
|
8799
|
+
* Set the behavior of the HOME and END keys.
|
|
8800
|
+
*/
|
|
8801
|
+
smartHomeEnd?: SmartHomeEndType | null
|
|
8802
|
+
/**
|
|
8803
|
+
* Width of a tab character expressed in number of spaces.
|
|
8804
|
+
*/
|
|
8805
|
+
tabWidth?: number | null
|
|
8155
8806
|
}
|
|
8156
8807
|
|
|
8157
8808
|
}
|
|
@@ -8161,10 +8812,15 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8161
8812
|
// Own properties of GtkSource-3.0.GtkSource.View
|
|
8162
8813
|
|
|
8163
8814
|
auto_indent: boolean
|
|
8815
|
+
autoIndent: boolean
|
|
8164
8816
|
/**
|
|
8165
8817
|
* Draw a specific background pattern on the view.
|
|
8166
8818
|
*/
|
|
8167
8819
|
background_pattern: BackgroundPatternType
|
|
8820
|
+
/**
|
|
8821
|
+
* Draw a specific background pattern on the view.
|
|
8822
|
+
*/
|
|
8823
|
+
backgroundPattern: BackgroundPatternType
|
|
8168
8824
|
/**
|
|
8169
8825
|
* The completion object associated with the view
|
|
8170
8826
|
*/
|
|
@@ -8176,45 +8832,91 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8176
8832
|
* #GtkSourceTag:draw-spaces property.
|
|
8177
8833
|
*/
|
|
8178
8834
|
draw_spaces: DrawSpacesFlags
|
|
8835
|
+
/**
|
|
8836
|
+
* Set if and how the spaces should be visualized.
|
|
8837
|
+
*
|
|
8838
|
+
* For a finer-grained method, there is also the GtkSourceTag's
|
|
8839
|
+
* #GtkSourceTag:draw-spaces property.
|
|
8840
|
+
*/
|
|
8841
|
+
drawSpaces: DrawSpacesFlags
|
|
8179
8842
|
highlight_current_line: boolean
|
|
8843
|
+
highlightCurrentLine: boolean
|
|
8180
8844
|
indent_on_tab: boolean
|
|
8845
|
+
indentOnTab: boolean
|
|
8181
8846
|
/**
|
|
8182
8847
|
* Width of an indentation step expressed in number of spaces.
|
|
8183
8848
|
*/
|
|
8184
8849
|
indent_width: number
|
|
8850
|
+
/**
|
|
8851
|
+
* Width of an indentation step expressed in number of spaces.
|
|
8852
|
+
*/
|
|
8853
|
+
indentWidth: number
|
|
8185
8854
|
insert_spaces_instead_of_tabs: boolean
|
|
8855
|
+
insertSpacesInsteadOfTabs: boolean
|
|
8186
8856
|
/**
|
|
8187
8857
|
* Position of the right margin.
|
|
8188
8858
|
*/
|
|
8189
8859
|
right_margin_position: number
|
|
8860
|
+
/**
|
|
8861
|
+
* Position of the right margin.
|
|
8862
|
+
*/
|
|
8863
|
+
rightMarginPosition: number
|
|
8190
8864
|
/**
|
|
8191
8865
|
* Whether to display line mark pixbufs
|
|
8192
8866
|
*/
|
|
8193
8867
|
show_line_marks: boolean
|
|
8868
|
+
/**
|
|
8869
|
+
* Whether to display line mark pixbufs
|
|
8870
|
+
*/
|
|
8871
|
+
showLineMarks: boolean
|
|
8194
8872
|
/**
|
|
8195
8873
|
* Whether to display line numbers
|
|
8196
8874
|
*/
|
|
8197
8875
|
show_line_numbers: boolean
|
|
8876
|
+
/**
|
|
8877
|
+
* Whether to display line numbers
|
|
8878
|
+
*/
|
|
8879
|
+
showLineNumbers: boolean
|
|
8198
8880
|
/**
|
|
8199
8881
|
* Whether to display the right margin.
|
|
8200
8882
|
*/
|
|
8201
8883
|
show_right_margin: boolean
|
|
8884
|
+
/**
|
|
8885
|
+
* Whether to display the right margin.
|
|
8886
|
+
*/
|
|
8887
|
+
showRightMargin: boolean
|
|
8202
8888
|
/**
|
|
8203
8889
|
* Whether smart Backspace should be used.
|
|
8204
8890
|
*/
|
|
8205
8891
|
smart_backspace: boolean
|
|
8892
|
+
/**
|
|
8893
|
+
* Whether smart Backspace should be used.
|
|
8894
|
+
*/
|
|
8895
|
+
smartBackspace: boolean
|
|
8206
8896
|
/**
|
|
8207
8897
|
* Set the behavior of the HOME and END keys.
|
|
8208
8898
|
*/
|
|
8209
8899
|
smart_home_end: SmartHomeEndType
|
|
8900
|
+
/**
|
|
8901
|
+
* Set the behavior of the HOME and END keys.
|
|
8902
|
+
*/
|
|
8903
|
+
smartHomeEnd: SmartHomeEndType
|
|
8210
8904
|
/**
|
|
8211
8905
|
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
8212
8906
|
*/
|
|
8213
8907
|
readonly space_drawer: SpaceDrawer
|
|
8908
|
+
/**
|
|
8909
|
+
* The #GtkSourceSpaceDrawer object associated with the view.
|
|
8910
|
+
*/
|
|
8911
|
+
readonly spaceDrawer: SpaceDrawer
|
|
8214
8912
|
/**
|
|
8215
8913
|
* Width of a tab character expressed in number of spaces.
|
|
8216
8914
|
*/
|
|
8217
8915
|
tab_width: number
|
|
8916
|
+
/**
|
|
8917
|
+
* Width of a tab character expressed in number of spaces.
|
|
8918
|
+
*/
|
|
8919
|
+
tabWidth: number
|
|
8218
8920
|
|
|
8219
8921
|
// Conflicting properties
|
|
8220
8922
|
|
|
@@ -8289,7 +8991,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8289
8991
|
* @param priority place where priority of the category will be stored.
|
|
8290
8992
|
* @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
|
|
8291
8993
|
*/
|
|
8292
|
-
get_mark_attributes(category: string
|
|
8994
|
+
get_mark_attributes(category: string, priority: number): MarkAttributes
|
|
8293
8995
|
/**
|
|
8294
8996
|
* Gets the position of the right margin in the given `view`.
|
|
8295
8997
|
* @returns the position of the right margin.
|
|
@@ -8427,7 +9129,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8427
9129
|
* @param attributes mark attributes.
|
|
8428
9130
|
* @param priority priority of the category.
|
|
8429
9131
|
*/
|
|
8430
|
-
set_mark_attributes(category: string
|
|
9132
|
+
set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
|
|
8431
9133
|
/**
|
|
8432
9134
|
* Sets the position of the right margin in the given `view`.
|
|
8433
9135
|
* @param pos the width in characters where to position the right margin.
|
|
@@ -8512,7 +9214,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8512
9214
|
* @param child the child widget
|
|
8513
9215
|
* @param child_property the name of a child property installed on the class of `container`
|
|
8514
9216
|
*/
|
|
8515
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
9217
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
8516
9218
|
|
|
8517
9219
|
// Overloads of child_notify
|
|
8518
9220
|
|
|
@@ -8526,7 +9228,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8526
9228
|
* Also see gtk_container_child_notify().
|
|
8527
9229
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8528
9230
|
*/
|
|
8529
|
-
child_notify(child_property: string
|
|
9231
|
+
child_notify(child_property: string): void
|
|
8530
9232
|
/**
|
|
8531
9233
|
* Emits a #GtkWidget::child-notify signal for the
|
|
8532
9234
|
* [child property][child-properties] `child_property`
|
|
@@ -8537,7 +9239,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
8537
9239
|
* Also see gtk_container_child_notify().
|
|
8538
9240
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
8539
9241
|
*/
|
|
8540
|
-
child_notify(child_property: string
|
|
9242
|
+
child_notify(child_property: string): void
|
|
8541
9243
|
|
|
8542
9244
|
// Own virtual methods of GtkSource-3.0.GtkSource.View
|
|
8543
9245
|
|
|
@@ -9144,12 +9846,12 @@ export interface Encoding {
|
|
|
9144
9846
|
* "ISO-8859-1".
|
|
9145
9847
|
* @returns the character set of the #GtkSourceEncoding.
|
|
9146
9848
|
*/
|
|
9147
|
-
get_charset(): string
|
|
9849
|
+
get_charset(): string
|
|
9148
9850
|
/**
|
|
9149
9851
|
* Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
|
|
9150
9852
|
* @returns the name of the #GtkSourceEncoding.
|
|
9151
9853
|
*/
|
|
9152
|
-
get_name(): string
|
|
9854
|
+
get_name(): string
|
|
9153
9855
|
to_string(): string | null
|
|
9154
9856
|
}
|
|
9155
9857
|
|
|
@@ -9187,7 +9889,7 @@ export class Encoding {
|
|
|
9187
9889
|
* @param charset a character set.
|
|
9188
9890
|
* @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
|
|
9189
9891
|
*/
|
|
9190
|
-
static get_from_charset(charset: string
|
|
9892
|
+
static get_from_charset(charset: string): Encoding | null
|
|
9191
9893
|
static get_utf8(): Encoding
|
|
9192
9894
|
}
|
|
9193
9895
|
|