@girs/gtksource-4 4.3.0 → 4.5.0
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 +52 -38
- package/gtksource-4-surface.d.ts +20 -0
- package/gtksource-4-surface.js +6 -0
- package/gtksource-4-vocabulary.d.ts +303 -0
- package/gtksource-4-vocabulary.js +71 -0
- package/gtksource-4.d.ts +364 -69
- package/package.json +19 -19
- package/tsconfig.json +1 -1
package/gtksource-4.d.ts
CHANGED
|
@@ -47,11 +47,11 @@ export namespace GtkSource {
|
|
|
47
47
|
/**
|
|
48
48
|
* no pattern
|
|
49
49
|
*/
|
|
50
|
-
NONE,
|
|
50
|
+
NONE = 0,
|
|
51
51
|
/**
|
|
52
52
|
* grid pattern
|
|
53
53
|
*/
|
|
54
|
-
GRID,
|
|
54
|
+
GRID = 1,
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
|
|
@@ -69,20 +69,20 @@ export namespace GtkSource {
|
|
|
69
69
|
/**
|
|
70
70
|
* there is no bracket to match.
|
|
71
71
|
*/
|
|
72
|
-
NONE,
|
|
72
|
+
NONE = 0,
|
|
73
73
|
/**
|
|
74
74
|
* matching a bracket
|
|
75
75
|
* failed because the maximum range was reached.
|
|
76
76
|
*/
|
|
77
|
-
OUT_OF_RANGE,
|
|
77
|
+
OUT_OF_RANGE = 1,
|
|
78
78
|
/**
|
|
79
79
|
* a matching bracket was not found.
|
|
80
80
|
*/
|
|
81
|
-
NOT_FOUND,
|
|
81
|
+
NOT_FOUND = 2,
|
|
82
82
|
/**
|
|
83
83
|
* a matching bracket was found.
|
|
84
84
|
*/
|
|
85
|
-
FOUND,
|
|
85
|
+
FOUND = 3,
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
|
|
@@ -101,19 +101,19 @@ export namespace GtkSource {
|
|
|
101
101
|
/**
|
|
102
102
|
* change case to lowercase.
|
|
103
103
|
*/
|
|
104
|
-
LOWER,
|
|
104
|
+
LOWER = 0,
|
|
105
105
|
/**
|
|
106
106
|
* change case to uppercase.
|
|
107
107
|
*/
|
|
108
|
-
UPPER,
|
|
108
|
+
UPPER = 1,
|
|
109
109
|
/**
|
|
110
110
|
* toggle case of each character.
|
|
111
111
|
*/
|
|
112
|
-
TOGGLE,
|
|
112
|
+
TOGGLE = 2,
|
|
113
113
|
/**
|
|
114
114
|
* capitalize each word.
|
|
115
115
|
*/
|
|
116
|
-
TITLE,
|
|
116
|
+
TITLE = 3,
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
|
|
@@ -161,11 +161,11 @@ export namespace GtkSource {
|
|
|
161
161
|
/**
|
|
162
162
|
* plain text.
|
|
163
163
|
*/
|
|
164
|
-
NONE,
|
|
164
|
+
NONE = 0,
|
|
165
165
|
/**
|
|
166
166
|
* gzip compression.
|
|
167
167
|
*/
|
|
168
|
-
GZIP,
|
|
168
|
+
GZIP = 1,
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
|
|
@@ -246,15 +246,15 @@ export namespace GtkSource {
|
|
|
246
246
|
/**
|
|
247
247
|
* The full cell.
|
|
248
248
|
*/
|
|
249
|
-
CELL,
|
|
249
|
+
CELL = 0,
|
|
250
250
|
/**
|
|
251
251
|
* The first line.
|
|
252
252
|
*/
|
|
253
|
-
FIRST,
|
|
253
|
+
FIRST = 1,
|
|
254
254
|
/**
|
|
255
255
|
* The last line.
|
|
256
256
|
*/
|
|
257
|
-
LAST,
|
|
257
|
+
LAST = 2,
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
|
|
@@ -273,16 +273,16 @@ export namespace GtkSource {
|
|
|
273
273
|
/**
|
|
274
274
|
* line feed, used on UNIX.
|
|
275
275
|
*/
|
|
276
|
-
LF,
|
|
276
|
+
LF = 0,
|
|
277
277
|
/**
|
|
278
278
|
* carriage return, used on Mac.
|
|
279
279
|
*/
|
|
280
|
-
CR,
|
|
280
|
+
CR = 1,
|
|
281
281
|
/**
|
|
282
282
|
* carriage return followed by a line feed, used
|
|
283
283
|
* on Windows.
|
|
284
284
|
*/
|
|
285
|
-
CR_LF,
|
|
285
|
+
CR_LF = 2,
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
|
|
@@ -300,24 +300,24 @@ export namespace GtkSource {
|
|
|
300
300
|
/**
|
|
301
301
|
* smart-home-end disabled.
|
|
302
302
|
*/
|
|
303
|
-
DISABLED,
|
|
303
|
+
DISABLED = 0,
|
|
304
304
|
/**
|
|
305
305
|
* move to the first/last
|
|
306
306
|
* non-whitespace character on the first press of the HOME/END keys and
|
|
307
307
|
* to the beginning/end of the line on the second press.
|
|
308
308
|
*/
|
|
309
|
-
BEFORE,
|
|
309
|
+
BEFORE = 1,
|
|
310
310
|
/**
|
|
311
311
|
* move to the beginning/end of the
|
|
312
312
|
* line on the first press of the HOME/END keys and to the first/last
|
|
313
313
|
* non-whitespace character on the second press.
|
|
314
314
|
*/
|
|
315
|
-
AFTER,
|
|
315
|
+
AFTER = 2,
|
|
316
316
|
/**
|
|
317
317
|
* always move to the first/last
|
|
318
318
|
* non-whitespace character when the HOME/END keys are pressed.
|
|
319
319
|
*/
|
|
320
|
-
ALWAYS,
|
|
320
|
+
ALWAYS = 3,
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
|
|
@@ -336,12 +336,12 @@ export namespace GtkSource {
|
|
|
336
336
|
* the gutter position of the lines
|
|
337
337
|
* renderer
|
|
338
338
|
*/
|
|
339
|
-
LINES,
|
|
339
|
+
LINES = -30,
|
|
340
340
|
/**
|
|
341
341
|
* the gutter position of the marks
|
|
342
342
|
* renderer
|
|
343
343
|
*/
|
|
344
|
-
MARKS,
|
|
344
|
+
MARKS = -20,
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
|
|
@@ -464,19 +464,19 @@ export namespace GtkSource {
|
|
|
464
464
|
/**
|
|
465
465
|
* None.
|
|
466
466
|
*/
|
|
467
|
-
NONE,
|
|
467
|
+
NONE = 0,
|
|
468
468
|
/**
|
|
469
469
|
* Interactive activation. By
|
|
470
470
|
* default, it occurs on each insertion in the {@link Gtk.TextBuffer}. This can be
|
|
471
471
|
* blocked temporarily with `gtk_source_completion_block_interactive()`.
|
|
472
472
|
*/
|
|
473
|
-
INTERACTIVE,
|
|
473
|
+
INTERACTIVE = 1,
|
|
474
474
|
/**
|
|
475
475
|
* User requested activation.
|
|
476
476
|
* By default, it occurs when the user presses
|
|
477
477
|
* <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.
|
|
478
478
|
*/
|
|
479
|
-
USER_REQUESTED,
|
|
479
|
+
USER_REQUESTED = 2,
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
|
|
@@ -496,19 +496,19 @@ export namespace GtkSource {
|
|
|
496
496
|
/**
|
|
497
497
|
* No flags.
|
|
498
498
|
*/
|
|
499
|
-
NONE,
|
|
499
|
+
NONE = 0,
|
|
500
500
|
/**
|
|
501
501
|
* Ignore invalid characters.
|
|
502
502
|
*/
|
|
503
|
-
IGNORE_INVALID_CHARS,
|
|
503
|
+
IGNORE_INVALID_CHARS = 1,
|
|
504
504
|
/**
|
|
505
505
|
* Save file despite external modifications.
|
|
506
506
|
*/
|
|
507
|
-
IGNORE_MODIFICATION_TIME,
|
|
507
|
+
IGNORE_MODIFICATION_TIME = 2,
|
|
508
508
|
/**
|
|
509
509
|
* Create a backup before saving the file.
|
|
510
510
|
*/
|
|
511
|
-
CREATE_BACKUP,
|
|
511
|
+
CREATE_BACKUP = 4,
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
|
|
@@ -526,22 +526,22 @@ export namespace GtkSource {
|
|
|
526
526
|
/**
|
|
527
527
|
* normal state
|
|
528
528
|
*/
|
|
529
|
-
NORMAL,
|
|
529
|
+
NORMAL = 0,
|
|
530
530
|
/**
|
|
531
531
|
* area in the renderer represents the
|
|
532
532
|
* line on which the insert cursor is currently positioned
|
|
533
533
|
*/
|
|
534
|
-
CURSOR,
|
|
534
|
+
CURSOR = 1,
|
|
535
535
|
/**
|
|
536
536
|
* the mouse pointer is currently
|
|
537
537
|
* over the activatable area of the renderer
|
|
538
538
|
*/
|
|
539
|
-
PRELIT,
|
|
539
|
+
PRELIT = 2,
|
|
540
540
|
/**
|
|
541
541
|
* area in the renderer represents
|
|
542
542
|
* a line in the buffer which contains part of the selection
|
|
543
543
|
*/
|
|
544
|
-
SELECTED,
|
|
544
|
+
SELECTED = 4,
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
|
|
@@ -560,19 +560,19 @@ export namespace GtkSource {
|
|
|
560
560
|
/**
|
|
561
561
|
* no flags specified
|
|
562
562
|
*/
|
|
563
|
-
NONE,
|
|
563
|
+
NONE = 0,
|
|
564
564
|
/**
|
|
565
565
|
* case sensitive sort
|
|
566
566
|
*/
|
|
567
|
-
CASE_SENSITIVE,
|
|
567
|
+
CASE_SENSITIVE = 1,
|
|
568
568
|
/**
|
|
569
569
|
* sort in reverse order
|
|
570
570
|
*/
|
|
571
|
-
REVERSE_ORDER,
|
|
571
|
+
REVERSE_ORDER = 2,
|
|
572
572
|
/**
|
|
573
573
|
* remove duplicates
|
|
574
574
|
*/
|
|
575
|
-
REMOVE_DUPLICATES,
|
|
575
|
+
REMOVE_DUPLICATES = 4,
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
|
|
@@ -595,24 +595,24 @@ export namespace GtkSource {
|
|
|
595
595
|
/**
|
|
596
596
|
* No flags.
|
|
597
597
|
*/
|
|
598
|
-
NONE,
|
|
598
|
+
NONE = 0,
|
|
599
599
|
/**
|
|
600
600
|
* Leading white spaces on a line, i.e. the
|
|
601
601
|
* indentation.
|
|
602
602
|
*/
|
|
603
|
-
LEADING,
|
|
603
|
+
LEADING = 1,
|
|
604
604
|
/**
|
|
605
605
|
* White spaces inside a line of text.
|
|
606
606
|
*/
|
|
607
|
-
INSIDE_TEXT,
|
|
607
|
+
INSIDE_TEXT = 2,
|
|
608
608
|
/**
|
|
609
609
|
* Trailing white spaces on a line.
|
|
610
610
|
*/
|
|
611
|
-
TRAILING,
|
|
611
|
+
TRAILING = 4,
|
|
612
612
|
/**
|
|
613
613
|
* White spaces anywhere.
|
|
614
614
|
*/
|
|
615
|
-
ALL,
|
|
615
|
+
ALL = 7,
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
|
|
@@ -632,29 +632,29 @@ export namespace GtkSource {
|
|
|
632
632
|
/**
|
|
633
633
|
* No flags.
|
|
634
634
|
*/
|
|
635
|
-
NONE,
|
|
635
|
+
NONE = 0,
|
|
636
636
|
/**
|
|
637
637
|
* Space character.
|
|
638
638
|
*/
|
|
639
|
-
SPACE,
|
|
639
|
+
SPACE = 1,
|
|
640
640
|
/**
|
|
641
641
|
* Tab character.
|
|
642
642
|
*/
|
|
643
|
-
TAB,
|
|
643
|
+
TAB = 2,
|
|
644
644
|
/**
|
|
645
645
|
* Line break character. If the
|
|
646
646
|
* {@link GtkSource.Buffer.implicit_trailing_newline} property is `true`,
|
|
647
647
|
* {@link GtkSource.SpaceDrawer} also draws a line break at the end of the buffer.
|
|
648
648
|
*/
|
|
649
|
-
NEWLINE,
|
|
649
|
+
NEWLINE = 4,
|
|
650
650
|
/**
|
|
651
651
|
* Non-breaking space character.
|
|
652
652
|
*/
|
|
653
|
-
NBSP,
|
|
653
|
+
NBSP = 8,
|
|
654
654
|
/**
|
|
655
655
|
* All white spaces.
|
|
656
656
|
*/
|
|
657
|
-
ALL,
|
|
657
|
+
ALL = 15,
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
|
|
@@ -674,7 +674,7 @@ export namespace GtkSource {
|
|
|
674
674
|
* @since 2.12
|
|
675
675
|
* @run-last
|
|
676
676
|
*/
|
|
677
|
-
"bracket-matched": (
|
|
677
|
+
"bracket-matched": (iter: Gtk.TextIter | null, state: BracketMatchType) => void;
|
|
678
678
|
/**
|
|
679
679
|
* The ::highlight-updated signal is emitted when the syntax
|
|
680
680
|
* highlighting and [context classes][context-classes] are updated in a
|
|
@@ -682,7 +682,7 @@ export namespace GtkSource {
|
|
|
682
682
|
* @signal
|
|
683
683
|
* @run-last
|
|
684
684
|
*/
|
|
685
|
-
"highlight-updated": (
|
|
685
|
+
"highlight-updated": (start: Gtk.TextIter, end: Gtk.TextIter) => void;
|
|
686
686
|
/**
|
|
687
687
|
* The ::redo signal is emitted to redo the last undo operation.
|
|
688
688
|
* @signal
|
|
@@ -695,7 +695,7 @@ export namespace GtkSource {
|
|
|
695
695
|
* @signal
|
|
696
696
|
* @run-last
|
|
697
697
|
*/
|
|
698
|
-
"source-mark-updated": (
|
|
698
|
+
"source-mark-updated": (mark: Gtk.TextMark) => void;
|
|
699
699
|
/**
|
|
700
700
|
* The ::undo signal is emitted to undo the last user action which
|
|
701
701
|
* modified the buffer.
|
|
@@ -926,6 +926,7 @@ export namespace GtkSource {
|
|
|
926
926
|
* @param iter an iterator.
|
|
927
927
|
* @param category category to search for, or `null`
|
|
928
928
|
* @returns whether `iter` was moved.
|
|
929
|
+
* @since 2.2
|
|
929
930
|
*/
|
|
930
931
|
backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [boolean, Gtk.TextIter];
|
|
931
932
|
|
|
@@ -945,6 +946,7 @@ export namespace GtkSource {
|
|
|
945
946
|
* @param case_type how to change the case.
|
|
946
947
|
* @param start a {@link Gtk.TextIter}.
|
|
947
948
|
* @param end a {@link Gtk.TextIter}.
|
|
949
|
+
* @since 3.12
|
|
948
950
|
*/
|
|
949
951
|
change_case(case_type: ChangeCaseType, start: Gtk.TextIter, end: Gtk.TextIter): void;
|
|
950
952
|
|
|
@@ -966,6 +968,7 @@ export namespace GtkSource {
|
|
|
966
968
|
* @param category a string defining the mark category.
|
|
967
969
|
* @param where location to place the mark.
|
|
968
970
|
* @returns a new {@link GtkSource.Mark}, owned by the buffer.
|
|
971
|
+
* @since 2.2
|
|
969
972
|
*/
|
|
970
973
|
create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark;
|
|
971
974
|
|
|
@@ -999,6 +1002,7 @@ export namespace GtkSource {
|
|
|
999
1002
|
* @param iter an iterator.
|
|
1000
1003
|
* @param category category to search for, or `null`
|
|
1001
1004
|
* @returns whether `iter` was moved.
|
|
1005
|
+
* @since 2.2
|
|
1002
1006
|
*/
|
|
1003
1007
|
forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [boolean, Gtk.TextIter];
|
|
1004
1008
|
|
|
@@ -1008,6 +1012,7 @@ export namespace GtkSource {
|
|
|
1008
1012
|
* See the {@link GtkSource.Buffer} description for the list of default context classes.
|
|
1009
1013
|
* @param iter a {@link Gtk.TextIter}.
|
|
1010
1014
|
* @returns a new `null` terminated array of context class names. Use `g_strfreev()` to free the array if it is no longer needed.
|
|
1015
|
+
* @since 2.10
|
|
1011
1016
|
*/
|
|
1012
1017
|
get_context_classes_at_iter(iter: Gtk.TextIter): string[];
|
|
1013
1018
|
|
|
@@ -1027,6 +1032,7 @@ export namespace GtkSource {
|
|
|
1027
1032
|
|
|
1028
1033
|
/**
|
|
1029
1034
|
* @returns whether the `buffer` has an implicit trailing newline.
|
|
1035
|
+
* @since 3.14
|
|
1030
1036
|
*/
|
|
1031
1037
|
get_implicit_trailing_newline(): boolean;
|
|
1032
1038
|
|
|
@@ -1050,6 +1056,7 @@ export namespace GtkSource {
|
|
|
1050
1056
|
* @param iter an iterator.
|
|
1051
1057
|
* @param category category to search for, or `null`
|
|
1052
1058
|
* @returns a newly allocated {@link GLib.SList}.
|
|
1059
|
+
* @since 2.2
|
|
1053
1060
|
*/
|
|
1054
1061
|
get_source_marks_at_iter(iter: Gtk.TextIter, category: string | null): Mark[];
|
|
1055
1062
|
|
|
@@ -1059,6 +1066,7 @@ export namespace GtkSource {
|
|
|
1059
1066
|
* @param line a line number.
|
|
1060
1067
|
* @param category category to search for, or `null`
|
|
1061
1068
|
* @returns a newly allocated {@link GLib.SList}.
|
|
1069
|
+
* @since 2.2
|
|
1062
1070
|
*/
|
|
1063
1071
|
get_source_marks_at_line(line: number, category: string | null): Mark[];
|
|
1064
1072
|
|
|
@@ -1089,6 +1097,7 @@ export namespace GtkSource {
|
|
|
1089
1097
|
* @param iter a {@link Gtk.TextIter}.
|
|
1090
1098
|
* @param context_class the context class.
|
|
1091
1099
|
* @returns whether we found a context class toggle before `iter`
|
|
1100
|
+
* @since 2.10
|
|
1092
1101
|
*/
|
|
1093
1102
|
iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [boolean, Gtk.TextIter];
|
|
1094
1103
|
|
|
@@ -1103,6 +1112,7 @@ export namespace GtkSource {
|
|
|
1103
1112
|
* @param iter a {@link Gtk.TextIter}.
|
|
1104
1113
|
* @param context_class the context class.
|
|
1105
1114
|
* @returns whether we found a context class toggle after `iter`
|
|
1115
|
+
* @since 2.10
|
|
1106
1116
|
*/
|
|
1107
1117
|
iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [boolean, Gtk.TextIter];
|
|
1108
1118
|
|
|
@@ -1113,6 +1123,7 @@ export namespace GtkSource {
|
|
|
1113
1123
|
* @param iter a {@link Gtk.TextIter}.
|
|
1114
1124
|
* @param context_class class to search for.
|
|
1115
1125
|
* @returns whether `iter` has the context class.
|
|
1126
|
+
* @since 2.10
|
|
1116
1127
|
*/
|
|
1117
1128
|
iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean;
|
|
1118
1129
|
|
|
@@ -1120,6 +1131,7 @@ export namespace GtkSource {
|
|
|
1120
1131
|
* Joins the lines of text between the specified iterators.
|
|
1121
1132
|
* @param start a {@link Gtk.TextIter}.
|
|
1122
1133
|
* @param end a {@link Gtk.TextIter}.
|
|
1134
|
+
* @since 3.16
|
|
1123
1135
|
*/
|
|
1124
1136
|
join_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
|
|
1125
1137
|
|
|
@@ -1137,6 +1149,7 @@ export namespace GtkSource {
|
|
|
1137
1149
|
* @param start a {@link Gtk.TextIter}.
|
|
1138
1150
|
* @param end a {@link Gtk.TextIter}.
|
|
1139
1151
|
* @param category category to search for, or `null`.
|
|
1152
|
+
* @since 2.2
|
|
1140
1153
|
*/
|
|
1141
1154
|
remove_source_marks(start: Gtk.TextIter, end: Gtk.TextIter, category: string | null): void;
|
|
1142
1155
|
|
|
@@ -1180,6 +1193,7 @@ export namespace GtkSource {
|
|
|
1180
1193
|
* content is not modified when loaded into the `buffer`, and the `buffer`'s
|
|
1181
1194
|
* content is not modified when saved into a file.
|
|
1182
1195
|
* @param implicit_trailing_newline the new value.
|
|
1196
|
+
* @since 3.14
|
|
1183
1197
|
*/
|
|
1184
1198
|
set_implicit_trailing_newline(implicit_trailing_newline: boolean): void;
|
|
1185
1199
|
|
|
@@ -1238,6 +1252,7 @@ export namespace GtkSource {
|
|
|
1238
1252
|
* @param end a {@link Gtk.TextIter}.
|
|
1239
1253
|
* @param flags {@link GtkSource.SortFlags} specifying how the sort should behave
|
|
1240
1254
|
* @param column sort considering the text starting at the given column
|
|
1255
|
+
* @since 3.18
|
|
1241
1256
|
*/
|
|
1242
1257
|
sort_lines(start: Gtk.TextIter, end: Gtk.TextIter, flags: SortFlags, column: number): void;
|
|
1243
1258
|
|
|
@@ -1297,7 +1312,7 @@ export namespace GtkSource {
|
|
|
1297
1312
|
* @action
|
|
1298
1313
|
* @run-last
|
|
1299
1314
|
*/
|
|
1300
|
-
"move-cursor": (
|
|
1315
|
+
"move-cursor": (step: Gtk.ScrollStep, num: number) => void;
|
|
1301
1316
|
/**
|
|
1302
1317
|
* The {@link GtkSource.Completion.SignalSignatures.move_page | GtkSource.Completion::move-page} signal is a keybinding
|
|
1303
1318
|
* signal which gets emitted when the user initiates a page
|
|
@@ -1322,7 +1337,7 @@ export namespace GtkSource {
|
|
|
1322
1337
|
* @action
|
|
1323
1338
|
* @run-last
|
|
1324
1339
|
*/
|
|
1325
|
-
"move-page": (
|
|
1340
|
+
"move-page": (step: Gtk.ScrollStep, num: number) => void;
|
|
1326
1341
|
/**
|
|
1327
1342
|
* Emitted just before starting to populate the completion with providers.
|
|
1328
1343
|
* You can use this signal to add additional attributes in the context.
|
|
@@ -1330,7 +1345,7 @@ export namespace GtkSource {
|
|
|
1330
1345
|
* @action
|
|
1331
1346
|
* @run-last
|
|
1332
1347
|
*/
|
|
1333
|
-
"populate-context": (
|
|
1348
|
+
"populate-context": (context: CompletionContext) => void;
|
|
1334
1349
|
/**
|
|
1335
1350
|
* Emitted when the completion window is shown. The default handler
|
|
1336
1351
|
* will actually show the window.
|
|
@@ -1597,6 +1612,7 @@ export namespace GtkSource {
|
|
|
1597
1612
|
* no longer need it.
|
|
1598
1613
|
* @param provider a {@link GtkSource.CompletionProvider}.
|
|
1599
1614
|
* @returns `true` if `provider` was successfully added, otherwise if `error` is provided, it will be set with the error and `false` is returned.
|
|
1615
|
+
* @throws GLib.Error
|
|
1600
1616
|
*/
|
|
1601
1617
|
add_provider(provider: CompletionProvider): boolean;
|
|
1602
1618
|
|
|
@@ -1651,6 +1667,7 @@ export namespace GtkSource {
|
|
|
1651
1667
|
* Remove `provider` from the completion.
|
|
1652
1668
|
* @param provider a {@link GtkSource.CompletionProvider}.
|
|
1653
1669
|
* @returns `true` if `provider` was successfully removed, otherwise if `error` is provided, it will be set with the error and `false` is returned.
|
|
1670
|
+
* @throws GLib.Error
|
|
1654
1671
|
*/
|
|
1655
1672
|
remove_provider(provider: CompletionProvider): boolean;
|
|
1656
1673
|
|
|
@@ -1683,6 +1700,7 @@ export namespace GtkSource {
|
|
|
1683
1700
|
* @param builder a {@link Gtk.Builder}
|
|
1684
1701
|
* @param child child to add
|
|
1685
1702
|
* @param type kind of child or `null`
|
|
1703
|
+
* @since 2.12
|
|
1686
1704
|
*/
|
|
1687
1705
|
add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
1688
1706
|
|
|
@@ -1694,6 +1712,7 @@ export namespace GtkSource {
|
|
|
1694
1712
|
* @param builder {@link Gtk.Builder} used to construct this object
|
|
1695
1713
|
* @param name name of child to construct
|
|
1696
1714
|
* @returns the constructed child
|
|
1715
|
+
* @since 2.12
|
|
1697
1716
|
*/
|
|
1698
1717
|
construct_child<T = GObject.Object>(builder: Gtk.Builder, name: string): T;
|
|
1699
1718
|
|
|
@@ -1704,6 +1723,7 @@ export namespace GtkSource {
|
|
|
1704
1723
|
* @param child child object or `null` for non-child tags
|
|
1705
1724
|
* @param tagname the name of the tag
|
|
1706
1725
|
* @param data user data created in custom_tag_start
|
|
1726
|
+
* @since 2.12
|
|
1707
1727
|
*/
|
|
1708
1728
|
custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
1709
1729
|
|
|
@@ -1714,6 +1734,7 @@ export namespace GtkSource {
|
|
|
1714
1734
|
* @param child child object or `null` for non-child tags
|
|
1715
1735
|
* @param tagname name of tag
|
|
1716
1736
|
* @param data user data that will be passed in to parser functions
|
|
1737
|
+
* @since 2.12
|
|
1717
1738
|
*/
|
|
1718
1739
|
custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
1719
1740
|
|
|
@@ -1723,6 +1744,7 @@ export namespace GtkSource {
|
|
|
1723
1744
|
* @param child child object or `null` for non-child tags
|
|
1724
1745
|
* @param tagname name of tag
|
|
1725
1746
|
* @returns `true` if a object has a custom implementation, `false` if it doesn't.
|
|
1747
|
+
* @since 2.12
|
|
1726
1748
|
*/
|
|
1727
1749
|
custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, null];
|
|
1728
1750
|
|
|
@@ -1731,6 +1753,7 @@ export namespace GtkSource {
|
|
|
1731
1753
|
* @param builder a {@link Gtk.Builder}
|
|
1732
1754
|
* @param childname name of child
|
|
1733
1755
|
* @returns the internal child of the buildable object
|
|
1756
|
+
* @since 2.12
|
|
1734
1757
|
*/
|
|
1735
1758
|
get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
1736
1759
|
|
|
@@ -1741,6 +1764,7 @@ export namespace GtkSource {
|
|
|
1741
1764
|
* [GtkBuilder UI definition][BUILDER-UI]
|
|
1742
1765
|
* used to construct the `buildable`.
|
|
1743
1766
|
* @returns the name set with `gtk_buildable_set_name()`
|
|
1767
|
+
* @since 2.12
|
|
1744
1768
|
*/
|
|
1745
1769
|
get_name(): string;
|
|
1746
1770
|
|
|
@@ -1751,6 +1775,7 @@ export namespace GtkSource {
|
|
|
1751
1775
|
* `gtk_builder_add_from_file()` or `gtk_builder_add_from_string()`
|
|
1752
1776
|
* is called on a builder.
|
|
1753
1777
|
* @param builder a {@link Gtk.Builder}
|
|
1778
|
+
* @since 2.12
|
|
1754
1779
|
*/
|
|
1755
1780
|
parser_finished(builder: Gtk.Builder): void;
|
|
1756
1781
|
|
|
@@ -1759,12 +1784,14 @@ export namespace GtkSource {
|
|
|
1759
1784
|
* @param builder a {@link Gtk.Builder}
|
|
1760
1785
|
* @param name name of property
|
|
1761
1786
|
* @param value value of property
|
|
1787
|
+
* @since 2.12
|
|
1762
1788
|
*/
|
|
1763
1789
|
set_buildable_property(builder: Gtk.Builder, name: string, value: GObject.Value | any): void;
|
|
1764
1790
|
|
|
1765
1791
|
/**
|
|
1766
1792
|
* Sets the name of the `buildable` object.
|
|
1767
1793
|
* @param name name to set
|
|
1794
|
+
* @since 2.12
|
|
1768
1795
|
*/
|
|
1769
1796
|
set_name(name: string): void;
|
|
1770
1797
|
|
|
@@ -1774,6 +1801,7 @@ export namespace GtkSource {
|
|
|
1774
1801
|
* @param builder a {@link Gtk.Builder}
|
|
1775
1802
|
* @param child child to add
|
|
1776
1803
|
* @param type kind of child or `null`
|
|
1804
|
+
* @since 2.12
|
|
1777
1805
|
* @virtual
|
|
1778
1806
|
*/
|
|
1779
1807
|
vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
@@ -1785,6 +1813,7 @@ export namespace GtkSource {
|
|
|
1785
1813
|
* specified in the UI definition.
|
|
1786
1814
|
* @param builder {@link Gtk.Builder} used to construct this object
|
|
1787
1815
|
* @param name name of child to construct
|
|
1816
|
+
* @since 2.12
|
|
1788
1817
|
* @virtual
|
|
1789
1818
|
*/
|
|
1790
1819
|
vfunc_construct_child<T = GObject.Object>(builder: Gtk.Builder, name: string): T;
|
|
@@ -1796,6 +1825,7 @@ export namespace GtkSource {
|
|
|
1796
1825
|
* @param child child object or `null` for non-child tags
|
|
1797
1826
|
* @param tagname the name of the tag
|
|
1798
1827
|
* @param data user data created in custom_tag_start
|
|
1828
|
+
* @since 2.12
|
|
1799
1829
|
* @virtual
|
|
1800
1830
|
*/
|
|
1801
1831
|
vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
@@ -1807,6 +1837,7 @@ export namespace GtkSource {
|
|
|
1807
1837
|
* @param child child object or `null` for non-child tags
|
|
1808
1838
|
* @param tagname name of tag
|
|
1809
1839
|
* @param data user data that will be passed in to parser functions
|
|
1840
|
+
* @since 2.12
|
|
1810
1841
|
* @virtual
|
|
1811
1842
|
*/
|
|
1812
1843
|
vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
@@ -1816,6 +1847,7 @@ export namespace GtkSource {
|
|
|
1816
1847
|
* @param builder a {@link Gtk.Builder} used to construct this object
|
|
1817
1848
|
* @param child child object or `null` for non-child tags
|
|
1818
1849
|
* @param tagname name of tag
|
|
1850
|
+
* @since 2.12
|
|
1819
1851
|
* @virtual
|
|
1820
1852
|
*/
|
|
1821
1853
|
vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, never];
|
|
@@ -1824,6 +1856,7 @@ export namespace GtkSource {
|
|
|
1824
1856
|
* Get the internal child called `childname` of the `buildable` object.
|
|
1825
1857
|
* @param builder a {@link Gtk.Builder}
|
|
1826
1858
|
* @param childname name of child
|
|
1859
|
+
* @since 2.12
|
|
1827
1860
|
* @virtual
|
|
1828
1861
|
*/
|
|
1829
1862
|
vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
@@ -1834,6 +1867,7 @@ export namespace GtkSource {
|
|
|
1834
1867
|
* {@link Gtk.Builder} sets the name based on the
|
|
1835
1868
|
* [GtkBuilder UI definition][BUILDER-UI]
|
|
1836
1869
|
* used to construct the `buildable`.
|
|
1870
|
+
* @since 2.12
|
|
1837
1871
|
* @virtual
|
|
1838
1872
|
*/
|
|
1839
1873
|
vfunc_get_name(): string;
|
|
@@ -1845,6 +1879,7 @@ export namespace GtkSource {
|
|
|
1845
1879
|
* `gtk_builder_add_from_file()` or `gtk_builder_add_from_string()`
|
|
1846
1880
|
* is called on a builder.
|
|
1847
1881
|
* @param builder a {@link Gtk.Builder}
|
|
1882
|
+
* @since 2.12
|
|
1848
1883
|
* @virtual
|
|
1849
1884
|
*/
|
|
1850
1885
|
vfunc_parser_finished(builder: Gtk.Builder): void;
|
|
@@ -1854,6 +1889,7 @@ export namespace GtkSource {
|
|
|
1854
1889
|
* @param builder a {@link Gtk.Builder}
|
|
1855
1890
|
* @param name name of property
|
|
1856
1891
|
* @param value value of property
|
|
1892
|
+
* @since 2.12
|
|
1857
1893
|
* @virtual
|
|
1858
1894
|
*/
|
|
1859
1895
|
vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: unknown): void;
|
|
@@ -1861,6 +1897,7 @@ export namespace GtkSource {
|
|
|
1861
1897
|
/**
|
|
1862
1898
|
* Sets the name of the `buildable` object.
|
|
1863
1899
|
* @param name name to set
|
|
1900
|
+
* @since 2.12
|
|
1864
1901
|
* @virtual
|
|
1865
1902
|
*/
|
|
1866
1903
|
vfunc_set_name(name: string): void;
|
|
@@ -2233,36 +2270,43 @@ export namespace GtkSource {
|
|
|
2233
2270
|
// Methods
|
|
2234
2271
|
/**
|
|
2235
2272
|
* @param gicon the {@link Gio.Icon}, or `null`.
|
|
2273
|
+
* @since 3.24
|
|
2236
2274
|
*/
|
|
2237
2275
|
set_gicon(gicon: Gio.Icon | null): void;
|
|
2238
2276
|
|
|
2239
2277
|
/**
|
|
2240
2278
|
* @param icon the {@link GdkPixbuf.Pixbuf}, or `null`.
|
|
2279
|
+
* @since 3.24
|
|
2241
2280
|
*/
|
|
2242
2281
|
set_icon(icon: GdkPixbuf.Pixbuf | null): void;
|
|
2243
2282
|
|
|
2244
2283
|
/**
|
|
2245
2284
|
* @param icon_name the icon name, or `null`.
|
|
2285
|
+
* @since 3.24
|
|
2246
2286
|
*/
|
|
2247
2287
|
set_icon_name(icon_name: string | null): void;
|
|
2248
2288
|
|
|
2249
2289
|
/**
|
|
2250
2290
|
* @param info the info, or `null`.
|
|
2291
|
+
* @since 3.24
|
|
2251
2292
|
*/
|
|
2252
2293
|
set_info(info: string | null): void;
|
|
2253
2294
|
|
|
2254
2295
|
/**
|
|
2255
2296
|
* @param label the label, or `null`.
|
|
2297
|
+
* @since 3.24
|
|
2256
2298
|
*/
|
|
2257
2299
|
set_label(label: string | null): void;
|
|
2258
2300
|
|
|
2259
2301
|
/**
|
|
2260
2302
|
* @param markup the markup, or `null`.
|
|
2303
|
+
* @since 3.24
|
|
2261
2304
|
*/
|
|
2262
2305
|
set_markup(markup: string | null): void;
|
|
2263
2306
|
|
|
2264
2307
|
/**
|
|
2265
2308
|
* @param text the text, or `null`.
|
|
2309
|
+
* @since 3.24
|
|
2266
2310
|
*/
|
|
2267
2311
|
set_text(text: string | null): void;
|
|
2268
2312
|
|
|
@@ -2285,6 +2329,7 @@ export namespace GtkSource {
|
|
|
2285
2329
|
/**
|
|
2286
2330
|
* Gets the {@link Gio.Icon} for the icon of `proposal`.
|
|
2287
2331
|
* @returns A {@link Gio.Icon} with the icon of `proposal`.
|
|
2332
|
+
* @since 3.18
|
|
2288
2333
|
*/
|
|
2289
2334
|
get_gicon(): Gio.Icon | null;
|
|
2290
2335
|
|
|
@@ -2297,6 +2342,7 @@ export namespace GtkSource {
|
|
|
2297
2342
|
/**
|
|
2298
2343
|
* Gets the icon name of `proposal`.
|
|
2299
2344
|
* @returns The icon name of `proposal`.
|
|
2345
|
+
* @since 3.18
|
|
2300
2346
|
*/
|
|
2301
2347
|
get_icon_name(): string | null;
|
|
2302
2348
|
|
|
@@ -2364,6 +2410,7 @@ export namespace GtkSource {
|
|
|
2364
2410
|
|
|
2365
2411
|
/**
|
|
2366
2412
|
* Gets the {@link Gio.Icon} for the icon of `proposal`.
|
|
2413
|
+
* @since 3.18
|
|
2367
2414
|
* @virtual
|
|
2368
2415
|
*/
|
|
2369
2416
|
vfunc_get_gicon(): Gio.Icon | null;
|
|
@@ -2376,6 +2423,7 @@ export namespace GtkSource {
|
|
|
2376
2423
|
|
|
2377
2424
|
/**
|
|
2378
2425
|
* Gets the icon name of `proposal`.
|
|
2426
|
+
* @since 3.18
|
|
2379
2427
|
* @virtual
|
|
2380
2428
|
*/
|
|
2381
2429
|
vfunc_get_icon_name(): string | null;
|
|
@@ -2603,6 +2651,7 @@ export namespace GtkSource {
|
|
|
2603
2651
|
/**
|
|
2604
2652
|
* Gets the {@link Gio.Icon} for the icon of `provider`.
|
|
2605
2653
|
* @returns The icon to be used for the provider, or `null` if the provider does not have a special icon.
|
|
2654
|
+
* @since 3.18
|
|
2606
2655
|
*/
|
|
2607
2656
|
get_gicon(): Gio.Icon | null;
|
|
2608
2657
|
|
|
@@ -2615,6 +2664,7 @@ export namespace GtkSource {
|
|
|
2615
2664
|
/**
|
|
2616
2665
|
* Gets the icon name of `provider`.
|
|
2617
2666
|
* @returns The icon name to be used for the provider, or `null` if the provider does not have a special icon.
|
|
2667
|
+
* @since 3.18
|
|
2618
2668
|
*/
|
|
2619
2669
|
get_icon_name(): string | null;
|
|
2620
2670
|
|
|
@@ -2736,6 +2786,7 @@ export namespace GtkSource {
|
|
|
2736
2786
|
|
|
2737
2787
|
/**
|
|
2738
2788
|
* Gets the {@link Gio.Icon} for the icon of `provider`.
|
|
2789
|
+
* @since 3.18
|
|
2739
2790
|
* @virtual
|
|
2740
2791
|
*/
|
|
2741
2792
|
vfunc_get_gicon(): Gio.Icon | null;
|
|
@@ -2748,6 +2799,7 @@ export namespace GtkSource {
|
|
|
2748
2799
|
|
|
2749
2800
|
/**
|
|
2750
2801
|
* Gets the icon name of `provider`.
|
|
2802
|
+
* @since 3.18
|
|
2751
2803
|
* @virtual
|
|
2752
2804
|
*/
|
|
2753
2805
|
vfunc_get_icon_name(): string | null;
|
|
@@ -2984,11 +3036,13 @@ export namespace GtkSource {
|
|
|
2984
3036
|
*
|
|
2985
3037
|
* Since this function is synchronous, it is advised to call it only on local
|
|
2986
3038
|
* files. See `gtk_source_file_is_local()`.
|
|
3039
|
+
* @since 3.18
|
|
2987
3040
|
*/
|
|
2988
3041
|
check_file_on_disk(): void;
|
|
2989
3042
|
|
|
2990
3043
|
/**
|
|
2991
3044
|
* @returns the compression type.
|
|
3045
|
+
* @since 3.14
|
|
2992
3046
|
*/
|
|
2993
3047
|
get_compression_type(): CompressionType;
|
|
2994
3048
|
|
|
@@ -2996,16 +3050,19 @@ export namespace GtkSource {
|
|
|
2996
3050
|
* The encoding is initially `null`. After a successful file loading or saving
|
|
2997
3051
|
* operation, the encoding is non-`null`.
|
|
2998
3052
|
* @returns the character encoding.
|
|
3053
|
+
* @since 3.14
|
|
2999
3054
|
*/
|
|
3000
3055
|
get_encoding(): Encoding;
|
|
3001
3056
|
|
|
3002
3057
|
/**
|
|
3003
3058
|
* @returns the {@link Gio.File}.
|
|
3059
|
+
* @since 3.14
|
|
3004
3060
|
*/
|
|
3005
3061
|
get_location(): Gio.File;
|
|
3006
3062
|
|
|
3007
3063
|
/**
|
|
3008
3064
|
* @returns the newline type.
|
|
3065
|
+
* @since 3.14
|
|
3009
3066
|
*/
|
|
3010
3067
|
get_newline_type(): NewlineType;
|
|
3011
3068
|
|
|
@@ -3016,6 +3073,7 @@ export namespace GtkSource {
|
|
|
3016
3073
|
* To have an up-to-date value, you must first call
|
|
3017
3074
|
* `gtk_source_file_check_file_on_disk()`.
|
|
3018
3075
|
* @returns whether the file has been deleted.
|
|
3076
|
+
* @since 3.18
|
|
3019
3077
|
*/
|
|
3020
3078
|
is_deleted(): boolean;
|
|
3021
3079
|
|
|
@@ -3026,6 +3084,7 @@ export namespace GtkSource {
|
|
|
3026
3084
|
* To have an up-to-date value, you must first call
|
|
3027
3085
|
* `gtk_source_file_check_file_on_disk()`.
|
|
3028
3086
|
* @returns whether the file is externally modified.
|
|
3087
|
+
* @since 3.18
|
|
3029
3088
|
*/
|
|
3030
3089
|
is_externally_modified(): boolean;
|
|
3031
3090
|
|
|
@@ -3033,6 +3092,7 @@ export namespace GtkSource {
|
|
|
3033
3092
|
* Returns whether the file is local. If the {@link GtkSource.File.location} is `null`,
|
|
3034
3093
|
* returns `false`.
|
|
3035
3094
|
* @returns whether the file is local.
|
|
3095
|
+
* @since 3.18
|
|
3036
3096
|
*/
|
|
3037
3097
|
is_local(): boolean;
|
|
3038
3098
|
|
|
@@ -3043,12 +3103,14 @@ export namespace GtkSource {
|
|
|
3043
3103
|
* To have an up-to-date value, you must first call
|
|
3044
3104
|
* `gtk_source_file_check_file_on_disk()`.
|
|
3045
3105
|
* @returns whether the file is read-only.
|
|
3106
|
+
* @since 3.18
|
|
3046
3107
|
*/
|
|
3047
3108
|
is_readonly(): boolean;
|
|
3048
3109
|
|
|
3049
3110
|
/**
|
|
3050
3111
|
* Sets the location.
|
|
3051
3112
|
* @param location the new {@link Gio.File}, or `null`.
|
|
3113
|
+
* @since 3.14
|
|
3052
3114
|
*/
|
|
3053
3115
|
set_location(location: Gio.File | null): void;
|
|
3054
3116
|
}
|
|
@@ -3155,36 +3217,43 @@ export namespace GtkSource {
|
|
|
3155
3217
|
// Methods
|
|
3156
3218
|
/**
|
|
3157
3219
|
* @returns the {@link GtkSource.Buffer} to load the contents into.
|
|
3220
|
+
* @since 3.14
|
|
3158
3221
|
*/
|
|
3159
3222
|
get_buffer(): Buffer;
|
|
3160
3223
|
|
|
3161
3224
|
/**
|
|
3162
3225
|
* @returns the detected compression type.
|
|
3226
|
+
* @since 3.14
|
|
3163
3227
|
*/
|
|
3164
3228
|
get_compression_type(): CompressionType;
|
|
3165
3229
|
|
|
3166
3230
|
/**
|
|
3167
3231
|
* @returns the detected file encoding.
|
|
3232
|
+
* @since 3.14
|
|
3168
3233
|
*/
|
|
3169
3234
|
get_encoding(): Encoding;
|
|
3170
3235
|
|
|
3171
3236
|
/**
|
|
3172
3237
|
* @returns the {@link GtkSource.File}.
|
|
3238
|
+
* @since 3.14
|
|
3173
3239
|
*/
|
|
3174
3240
|
get_file(): File;
|
|
3175
3241
|
|
|
3176
3242
|
/**
|
|
3177
3243
|
* @returns the {@link Gio.InputStream} to load, or `null` if a {@link Gio.File} is used.
|
|
3244
|
+
* @since 3.14
|
|
3178
3245
|
*/
|
|
3179
3246
|
get_input_stream(): Gio.InputStream | null;
|
|
3180
3247
|
|
|
3181
3248
|
/**
|
|
3182
3249
|
* @returns the {@link Gio.File} to load, or `null` if an input stream is used.
|
|
3250
|
+
* @since 3.14
|
|
3183
3251
|
*/
|
|
3184
3252
|
get_location(): Gio.File | null;
|
|
3185
3253
|
|
|
3186
3254
|
/**
|
|
3187
3255
|
* @returns the detected newline type.
|
|
3256
|
+
* @since 3.14
|
|
3188
3257
|
*/
|
|
3189
3258
|
get_newline_type(): NewlineType;
|
|
3190
3259
|
|
|
@@ -3195,6 +3264,7 @@ export namespace GtkSource {
|
|
|
3195
3264
|
* @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
|
|
3196
3265
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
3197
3266
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
3267
|
+
* @since 3.14
|
|
3198
3268
|
*/
|
|
3199
3269
|
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
|
|
3200
3270
|
|
|
@@ -3206,6 +3276,7 @@ export namespace GtkSource {
|
|
|
3206
3276
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
3207
3277
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
3208
3278
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
3279
|
+
* @since 3.14
|
|
3209
3280
|
*/
|
|
3210
3281
|
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
3211
3282
|
|
|
@@ -3217,6 +3288,7 @@ export namespace GtkSource {
|
|
|
3217
3288
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
3218
3289
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
3219
3290
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
3291
|
+
* @since 3.14
|
|
3220
3292
|
*/
|
|
3221
3293
|
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
3222
3294
|
|
|
@@ -3228,6 +3300,8 @@ export namespace GtkSource {
|
|
|
3228
3300
|
* type.
|
|
3229
3301
|
* @param result a {@link Gio.AsyncResult}.
|
|
3230
3302
|
* @returns whether the contents has been loaded successfully.
|
|
3303
|
+
* @since 3.14
|
|
3304
|
+
* @throws GLib.Error
|
|
3231
3305
|
*/
|
|
3232
3306
|
load_finish(result: Gio.AsyncResult): boolean;
|
|
3233
3307
|
|
|
@@ -3244,6 +3318,7 @@ export namespace GtkSource {
|
|
|
3244
3318
|
* 2. The default candidates as returned by
|
|
3245
3319
|
* `gtk_source_encoding_get_default_candidates()`.
|
|
3246
3320
|
* @param candidate_encodings a list of {@link GtkSource.Encoding}<!-- -->s.
|
|
3321
|
+
* @since 3.14
|
|
3247
3322
|
*/
|
|
3248
3323
|
set_candidate_encodings(candidate_encodings: Encoding[]): void;
|
|
3249
3324
|
}
|
|
@@ -3390,36 +3465,43 @@ export namespace GtkSource {
|
|
|
3390
3465
|
// Methods
|
|
3391
3466
|
/**
|
|
3392
3467
|
* @returns the {@link GtkSource.Buffer} to save.
|
|
3468
|
+
* @since 3.14
|
|
3393
3469
|
*/
|
|
3394
3470
|
get_buffer(): Buffer;
|
|
3395
3471
|
|
|
3396
3472
|
/**
|
|
3397
3473
|
* @returns the compression type.
|
|
3474
|
+
* @since 3.14
|
|
3398
3475
|
*/
|
|
3399
3476
|
get_compression_type(): CompressionType;
|
|
3400
3477
|
|
|
3401
3478
|
/**
|
|
3402
3479
|
* @returns the encoding.
|
|
3480
|
+
* @since 3.14
|
|
3403
3481
|
*/
|
|
3404
3482
|
get_encoding(): Encoding;
|
|
3405
3483
|
|
|
3406
3484
|
/**
|
|
3407
3485
|
* @returns the {@link GtkSource.File}.
|
|
3486
|
+
* @since 3.14
|
|
3408
3487
|
*/
|
|
3409
3488
|
get_file(): File;
|
|
3410
3489
|
|
|
3411
3490
|
/**
|
|
3412
3491
|
* @returns the flags.
|
|
3492
|
+
* @since 3.14
|
|
3413
3493
|
*/
|
|
3414
3494
|
get_flags(): FileSaverFlags;
|
|
3415
3495
|
|
|
3416
3496
|
/**
|
|
3417
3497
|
* @returns the {@link Gio.File} where to save the buffer to.
|
|
3498
|
+
* @since 3.14
|
|
3418
3499
|
*/
|
|
3419
3500
|
get_location(): Gio.File;
|
|
3420
3501
|
|
|
3421
3502
|
/**
|
|
3422
3503
|
* @returns the newline type.
|
|
3504
|
+
* @since 3.14
|
|
3423
3505
|
*/
|
|
3424
3506
|
get_newline_type(): NewlineType;
|
|
3425
3507
|
|
|
@@ -3429,6 +3511,7 @@ export namespace GtkSource {
|
|
|
3429
3511
|
* @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
|
|
3430
3512
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
3431
3513
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
3514
|
+
* @since 3.14
|
|
3432
3515
|
*/
|
|
3433
3516
|
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
|
|
3434
3517
|
|
|
@@ -3439,6 +3522,7 @@ export namespace GtkSource {
|
|
|
3439
3522
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
3440
3523
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
3441
3524
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
3525
|
+
* @since 3.14
|
|
3442
3526
|
*/
|
|
3443
3527
|
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
3444
3528
|
|
|
@@ -3449,6 +3533,7 @@ export namespace GtkSource {
|
|
|
3449
3533
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
3450
3534
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
3451
3535
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
3536
|
+
* @since 3.14
|
|
3452
3537
|
*/
|
|
3453
3538
|
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
3454
3539
|
|
|
@@ -3463,6 +3548,8 @@ export namespace GtkSource {
|
|
|
3463
3548
|
* if the file has been saved successfully.
|
|
3464
3549
|
* @param result a {@link Gio.AsyncResult}.
|
|
3465
3550
|
* @returns whether the file was saved successfully.
|
|
3551
|
+
* @since 3.14
|
|
3552
|
+
* @throws GLib.Error
|
|
3466
3553
|
*/
|
|
3467
3554
|
save_finish(result: Gio.AsyncResult): boolean;
|
|
3468
3555
|
|
|
@@ -3470,6 +3557,7 @@ export namespace GtkSource {
|
|
|
3470
3557
|
* Sets the compression type. By default the compression type is taken from the
|
|
3471
3558
|
* {@link GtkSource.File}.
|
|
3472
3559
|
* @param compression_type the new compression type.
|
|
3560
|
+
* @since 3.14
|
|
3473
3561
|
*/
|
|
3474
3562
|
set_compression_type(compression_type: CompressionType): void;
|
|
3475
3563
|
|
|
@@ -3477,11 +3565,13 @@ export namespace GtkSource {
|
|
|
3477
3565
|
* Sets the encoding. If `encoding` is `null`, the UTF-8 encoding will be set.
|
|
3478
3566
|
* By default the encoding is taken from the {@link GtkSource.File}.
|
|
3479
3567
|
* @param encoding the new encoding, or `null` for UTF-8.
|
|
3568
|
+
* @since 3.14
|
|
3480
3569
|
*/
|
|
3481
3570
|
set_encoding(encoding: Encoding | null): void;
|
|
3482
3571
|
|
|
3483
3572
|
/**
|
|
3484
3573
|
* @param flags the new flags.
|
|
3574
|
+
* @since 3.14
|
|
3485
3575
|
*/
|
|
3486
3576
|
set_flags(flags: FileSaverFlags): void;
|
|
3487
3577
|
|
|
@@ -3489,6 +3579,7 @@ export namespace GtkSource {
|
|
|
3489
3579
|
* Sets the newline type. By default the newline type is taken from the
|
|
3490
3580
|
* {@link GtkSource.File}.
|
|
3491
3581
|
* @param newline_type the new newline type.
|
|
3582
|
+
* @since 3.14
|
|
3492
3583
|
*/
|
|
3493
3584
|
set_newline_type(newline_type: NewlineType): void;
|
|
3494
3585
|
}
|
|
@@ -3574,11 +3665,13 @@ export namespace GtkSource {
|
|
|
3574
3665
|
|
|
3575
3666
|
/**
|
|
3576
3667
|
* @returns the associated {@link GtkSource.View}.
|
|
3668
|
+
* @since 3.24
|
|
3577
3669
|
*/
|
|
3578
3670
|
get_view(): View;
|
|
3579
3671
|
|
|
3580
3672
|
/**
|
|
3581
3673
|
* @returns the {@link Gtk.TextWindowType} of `gutter`.
|
|
3674
|
+
* @since 3.24
|
|
3582
3675
|
*/
|
|
3583
3676
|
get_window_type(): Gtk.TextWindowType;
|
|
3584
3677
|
|
|
@@ -3589,18 +3682,21 @@ export namespace GtkSource {
|
|
|
3589
3682
|
* @param renderer a gutter renderer (must inherit from {@link GtkSource.GutterRenderer}).
|
|
3590
3683
|
* @param position the renderer position.
|
|
3591
3684
|
* @returns `true` if operation succeeded. Otherwise `false`.
|
|
3685
|
+
* @since 3.0
|
|
3592
3686
|
*/
|
|
3593
3687
|
insert(renderer: GutterRenderer, position: number): boolean;
|
|
3594
3688
|
|
|
3595
3689
|
/**
|
|
3596
3690
|
* Invalidates the drawable area of the gutter. You can use this to force a
|
|
3597
3691
|
* redraw of the gutter if something has changed and needs to be redrawn.
|
|
3692
|
+
* @since 2.8
|
|
3598
3693
|
*/
|
|
3599
3694
|
queue_draw(): void;
|
|
3600
3695
|
|
|
3601
3696
|
/**
|
|
3602
3697
|
* Removes `renderer` from `gutter`.
|
|
3603
3698
|
* @param renderer a {@link GtkSource.GutterRenderer}.
|
|
3699
|
+
* @since 2.8
|
|
3604
3700
|
*/
|
|
3605
3701
|
remove(renderer: GutterRenderer): void;
|
|
3606
3702
|
|
|
@@ -3608,6 +3704,7 @@ export namespace GtkSource {
|
|
|
3608
3704
|
* Reorders `renderer` in `gutter` to new `position`.
|
|
3609
3705
|
* @param renderer a {@link Gtk.CellRenderer}.
|
|
3610
3706
|
* @param position the new renderer position.
|
|
3707
|
+
* @since 2.8
|
|
3611
3708
|
*/
|
|
3612
3709
|
reorder(renderer: GutterRenderer, position: number): void;
|
|
3613
3710
|
}
|
|
@@ -3622,14 +3719,14 @@ export namespace GtkSource {
|
|
|
3622
3719
|
* @signal
|
|
3623
3720
|
* @run-last
|
|
3624
3721
|
*/
|
|
3625
|
-
activate: (
|
|
3722
|
+
activate: (iter: Gtk.TextIter, area: Gdk.Rectangle, event: Gdk.Event) => void;
|
|
3626
3723
|
/**
|
|
3627
3724
|
* The ::query-activatable signal is emitted when the renderer
|
|
3628
3725
|
* can possibly be activated.
|
|
3629
3726
|
* @signal
|
|
3630
3727
|
* @run-last
|
|
3631
3728
|
*/
|
|
3632
|
-
"query-activatable": (
|
|
3729
|
+
"query-activatable": (iter: Gtk.TextIter, area: Gdk.Rectangle, event: Gdk.Event) => boolean | void;
|
|
3633
3730
|
/**
|
|
3634
3731
|
* The ::query-data signal is emitted when the renderer needs
|
|
3635
3732
|
* to be filled with data just before a cell is drawn. This can
|
|
@@ -3638,14 +3735,14 @@ export namespace GtkSource {
|
|
|
3638
3735
|
* @signal
|
|
3639
3736
|
* @run-last
|
|
3640
3737
|
*/
|
|
3641
|
-
"query-data": (
|
|
3738
|
+
"query-data": (start: Gtk.TextIter, end: Gtk.TextIter, state: GutterRendererState) => void;
|
|
3642
3739
|
/**
|
|
3643
3740
|
* The ::query-tooltip signal is emitted when the renderer can
|
|
3644
3741
|
* show a tooltip.
|
|
3645
3742
|
* @signal
|
|
3646
3743
|
* @run-last
|
|
3647
3744
|
*/
|
|
3648
|
-
"query-tooltip": (
|
|
3745
|
+
"query-tooltip": (iter: Gtk.TextIter, area: Gdk.Rectangle, x: number, y: number, tooltip: Gtk.Tooltip) => boolean | void;
|
|
3649
3746
|
/**
|
|
3650
3747
|
* The ::queue-draw signal is emitted when the renderer needs
|
|
3651
3748
|
* to be redrawn. Use `gtk_source_gutter_renderer_queue_draw()`
|
|
@@ -4486,6 +4583,7 @@ export namespace GtkSource {
|
|
|
4486
4583
|
* is not present in the current style scheme.
|
|
4487
4584
|
* @param style_id a style ID.
|
|
4488
4585
|
* @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.
|
|
4586
|
+
* @since 3.4
|
|
4489
4587
|
*/
|
|
4490
4588
|
get_style_fallback(style_id: string): string | null;
|
|
4491
4589
|
|
|
@@ -4635,6 +4733,7 @@ export namespace GtkSource {
|
|
|
4635
4733
|
* @param filename a filename in Glib filename encoding, or `null`.
|
|
4636
4734
|
* @param content_type a content type (as in GIO API), or `null`.
|
|
4637
4735
|
* @returns a {@link GtkSource.Language}, or `null` if there is no suitable language for given `filename` and/or `content_type`. Return value is owned by `lm` and should not be freed.
|
|
4736
|
+
* @since 2.4
|
|
4638
4737
|
*/
|
|
4639
4738
|
guess_language(filename: string | null, content_type: string | null): Language | null;
|
|
4640
4739
|
|
|
@@ -4799,12 +4898,14 @@ export namespace GtkSource {
|
|
|
4799
4898
|
/**
|
|
4800
4899
|
* Gets the {@link GtkSource.Map.view} property, which is the view this widget is mapping.
|
|
4801
4900
|
* @returns a {@link GtkSource.View} or `null`.
|
|
4901
|
+
* @since 3.18
|
|
4802
4902
|
*/
|
|
4803
4903
|
get_view(): View | null;
|
|
4804
4904
|
|
|
4805
4905
|
/**
|
|
4806
4906
|
* Sets the view that `map` will be doing the mapping to.
|
|
4807
4907
|
* @param view a {@link GtkSource.View}
|
|
4908
|
+
* @since 3.18
|
|
4808
4909
|
*/
|
|
4809
4910
|
set_view(view: View): void;
|
|
4810
4911
|
}
|
|
@@ -4875,6 +4976,7 @@ export namespace GtkSource {
|
|
|
4875
4976
|
/**
|
|
4876
4977
|
* Returns the mark category.
|
|
4877
4978
|
* @returns the category of the {@link GtkSource.Mark}.
|
|
4979
|
+
* @since 2.2
|
|
4878
4980
|
*/
|
|
4879
4981
|
get_category(): string;
|
|
4880
4982
|
|
|
@@ -4885,6 +4987,7 @@ export namespace GtkSource {
|
|
|
4885
4987
|
* If `category` is `null`, looks for marks of any category.
|
|
4886
4988
|
* @param category a string specifying the mark category, or `null`.
|
|
4887
4989
|
* @returns the next {@link GtkSource.Mark}, or `null`.
|
|
4990
|
+
* @since 2.2
|
|
4888
4991
|
*/
|
|
4889
4992
|
next(category: string | null): Mark | null;
|
|
4890
4993
|
|
|
@@ -4895,6 +4998,7 @@ export namespace GtkSource {
|
|
|
4895
4998
|
* If `category` is `null`, looks for marks of any category
|
|
4896
4999
|
* @param category a string specifying the mark category, or `null`.
|
|
4897
5000
|
* @returns the previous {@link GtkSource.Mark}, or `null`.
|
|
5001
|
+
* @since 2.2
|
|
4898
5002
|
*/
|
|
4899
5003
|
prev(category: string): Mark | null;
|
|
4900
5004
|
}
|
|
@@ -4909,14 +5013,14 @@ export namespace GtkSource {
|
|
|
4909
5013
|
* @signal
|
|
4910
5014
|
* @run-last
|
|
4911
5015
|
*/
|
|
4912
|
-
"query-tooltip-markup": (
|
|
5016
|
+
"query-tooltip-markup": (mark: Mark) => string;
|
|
4913
5017
|
/**
|
|
4914
5018
|
* The code should connect to this signal to provide a tooltip for given
|
|
4915
5019
|
* `mark`. The tooltip should be just a plain text.
|
|
4916
5020
|
* @signal
|
|
4917
5021
|
* @run-last
|
|
4918
5022
|
*/
|
|
4919
|
-
"query-tooltip-text": (
|
|
5023
|
+
"query-tooltip-text": (mark: Mark) => string;
|
|
4920
5024
|
"notify::background": (pspec: GObject.ParamSpec) => void;
|
|
4921
5025
|
"notify::gicon": (pspec: GObject.ParamSpec) => void;
|
|
4922
5026
|
"notify::icon-name": (pspec: GObject.ParamSpec) => void;
|
|
@@ -5504,6 +5608,7 @@ export namespace GtkSource {
|
|
|
5504
5608
|
* Returns the name of the font used to print the text body. The returned string
|
|
5505
5609
|
* must be freed with `g_free()`.
|
|
5506
5610
|
* @returns a new string containing the name of the font used to print the text body.
|
|
5611
|
+
* @since 2.2
|
|
5507
5612
|
*/
|
|
5508
5613
|
get_body_font_name(): string;
|
|
5509
5614
|
|
|
@@ -5511,6 +5616,7 @@ export namespace GtkSource {
|
|
|
5511
5616
|
* Gets the bottom margin in units of `unit`.
|
|
5512
5617
|
* @param unit the unit for the return value.
|
|
5513
5618
|
* @returns the bottom margin.
|
|
5619
|
+
* @since 2.2
|
|
5514
5620
|
*/
|
|
5515
5621
|
get_bottom_margin(unit: Gtk.Unit): number;
|
|
5516
5622
|
|
|
@@ -5519,6 +5625,7 @@ export namespace GtkSource {
|
|
|
5519
5625
|
* object reference is owned by the compositor object and
|
|
5520
5626
|
* should not be unreferenced.
|
|
5521
5627
|
* @returns the {@link GtkSource.Buffer} associated with the compositor.
|
|
5628
|
+
* @since 2.2
|
|
5522
5629
|
*/
|
|
5523
5630
|
get_buffer(): Buffer;
|
|
5524
5631
|
|
|
@@ -5526,6 +5633,7 @@ export namespace GtkSource {
|
|
|
5526
5633
|
* Returns the name of the font used to print the page footer.
|
|
5527
5634
|
* The returned string must be freed with `g_free()`.
|
|
5528
5635
|
* @returns a new string containing the name of the font used to print the page footer.
|
|
5636
|
+
* @since 2.2
|
|
5529
5637
|
*/
|
|
5530
5638
|
get_footer_font_name(): string;
|
|
5531
5639
|
|
|
@@ -5533,6 +5641,7 @@ export namespace GtkSource {
|
|
|
5533
5641
|
* Returns the name of the font used to print the page header.
|
|
5534
5642
|
* The returned string must be freed with `g_free()`.
|
|
5535
5643
|
* @returns a new string containing the name of the font used to print the page header.
|
|
5644
|
+
* @since 2.2
|
|
5536
5645
|
*/
|
|
5537
5646
|
get_header_font_name(): string;
|
|
5538
5647
|
|
|
@@ -5541,6 +5650,7 @@ export namespace GtkSource {
|
|
|
5541
5650
|
* buffer rules. Note that highlighting will happen
|
|
5542
5651
|
* only if the buffer to print has highlighting activated.
|
|
5543
5652
|
* @returns `true` if the printed output will be highlighted.
|
|
5653
|
+
* @since 2.2
|
|
5544
5654
|
*/
|
|
5545
5655
|
get_highlight_syntax(): boolean;
|
|
5546
5656
|
|
|
@@ -5548,6 +5658,7 @@ export namespace GtkSource {
|
|
|
5548
5658
|
* Gets the left margin in units of `unit`.
|
|
5549
5659
|
* @param unit the unit for the return value.
|
|
5550
5660
|
* @returns the left margin
|
|
5661
|
+
* @since 2.2
|
|
5551
5662
|
*/
|
|
5552
5663
|
get_left_margin(unit: Gtk.Unit): number;
|
|
5553
5664
|
|
|
@@ -5555,6 +5666,7 @@ export namespace GtkSource {
|
|
|
5555
5666
|
* Returns the name of the font used to print line numbers on the left margin.
|
|
5556
5667
|
* The returned string must be freed with `g_free()`.
|
|
5557
5668
|
* @returns a new string containing the name of the font used to print line numbers on the left margin.
|
|
5669
|
+
* @since 2.2
|
|
5558
5670
|
*/
|
|
5559
5671
|
get_line_numbers_font_name(): string;
|
|
5560
5672
|
|
|
@@ -5562,12 +5674,14 @@ export namespace GtkSource {
|
|
|
5562
5674
|
* Returns the number of pages in the document or <code>-1</code> if the
|
|
5563
5675
|
* document has not been completely paginated.
|
|
5564
5676
|
* @returns the number of pages in the document or <code>-1</code> if the document has not been completely paginated.
|
|
5677
|
+
* @since 2.2
|
|
5565
5678
|
*/
|
|
5566
5679
|
get_n_pages(): number;
|
|
5567
5680
|
|
|
5568
5681
|
/**
|
|
5569
5682
|
* Returns the current fraction of the document pagination that has been completed.
|
|
5570
5683
|
* @returns a fraction from 0.0 to 1.0 inclusive.
|
|
5684
|
+
* @since 2.2
|
|
5571
5685
|
*/
|
|
5572
5686
|
get_pagination_progress(): number;
|
|
5573
5687
|
|
|
@@ -5577,6 +5691,7 @@ export namespace GtkSource {
|
|
|
5577
5691
|
* <emphasis>and</emphasis> some format strings have been specified
|
|
5578
5692
|
* with `gtk_source_print_compositor_set_footer_format()`.
|
|
5579
5693
|
* @returns `true` if the footer is set to be printed.
|
|
5694
|
+
* @since 2.2
|
|
5580
5695
|
*/
|
|
5581
5696
|
get_print_footer(): boolean;
|
|
5582
5697
|
|
|
@@ -5586,6 +5701,7 @@ export namespace GtkSource {
|
|
|
5586
5701
|
* <emphasis>and</emphasis> some format strings have been specified
|
|
5587
5702
|
* with `gtk_source_print_compositor_set_header_format()`.
|
|
5588
5703
|
* @returns `true` if the header is set to be printed.
|
|
5704
|
+
* @since 2.2
|
|
5589
5705
|
*/
|
|
5590
5706
|
get_print_header(): boolean;
|
|
5591
5707
|
|
|
@@ -5594,6 +5710,7 @@ export namespace GtkSource {
|
|
|
5594
5710
|
* value is 0, no line numbers will be printed. The default value is
|
|
5595
5711
|
* 1 (i.e. numbers printed in all lines).
|
|
5596
5712
|
* @returns the interval of printed line numbers.
|
|
5713
|
+
* @since 2.2
|
|
5597
5714
|
*/
|
|
5598
5715
|
get_print_line_numbers(): number;
|
|
5599
5716
|
|
|
@@ -5601,12 +5718,14 @@ export namespace GtkSource {
|
|
|
5601
5718
|
* Gets the right margin in units of `unit`.
|
|
5602
5719
|
* @param unit the unit for the return value.
|
|
5603
5720
|
* @returns the right margin.
|
|
5721
|
+
* @since 2.2
|
|
5604
5722
|
*/
|
|
5605
5723
|
get_right_margin(unit: Gtk.Unit): number;
|
|
5606
5724
|
|
|
5607
5725
|
/**
|
|
5608
5726
|
* Returns the width of tabulation in characters for printed text.
|
|
5609
5727
|
* @returns width of tab.
|
|
5728
|
+
* @since 2.2
|
|
5610
5729
|
*/
|
|
5611
5730
|
get_tab_width(): number;
|
|
5612
5731
|
|
|
@@ -5614,12 +5733,14 @@ export namespace GtkSource {
|
|
|
5614
5733
|
* Gets the top margin in units of `unit`.
|
|
5615
5734
|
* @param unit the unit for the return value.
|
|
5616
5735
|
* @returns the top margin.
|
|
5736
|
+
* @since 2.2
|
|
5617
5737
|
*/
|
|
5618
5738
|
get_top_margin(unit: Gtk.Unit): number;
|
|
5619
5739
|
|
|
5620
5740
|
/**
|
|
5621
5741
|
* Gets the line wrapping mode for the printed text.
|
|
5622
5742
|
* @returns the line wrap mode.
|
|
5743
|
+
* @since 2.2
|
|
5623
5744
|
*/
|
|
5624
5745
|
get_wrap_mode(): Gtk.WrapMode;
|
|
5625
5746
|
|
|
@@ -5686,6 +5807,7 @@ export namespace GtkSource {
|
|
|
5686
5807
|
* </programlisting></informalexample>
|
|
5687
5808
|
* @param context the {@link Gtk.PrintContext} whose parameters (e.g. paper size, print margins, etc.) are used by the the `compositor` to paginate the document.
|
|
5688
5809
|
* @returns `true` if the document has been completely paginated, `false` otherwise.
|
|
5810
|
+
* @since 2.2
|
|
5689
5811
|
*/
|
|
5690
5812
|
paginate(context: Gtk.PrintContext): boolean;
|
|
5691
5813
|
|
|
@@ -5700,6 +5822,7 @@ export namespace GtkSource {
|
|
|
5700
5822
|
* This function cannot be called anymore after the first call to the
|
|
5701
5823
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5702
5824
|
* @param font_name the name of the default font for the body text.
|
|
5825
|
+
* @since 2.2
|
|
5703
5826
|
*/
|
|
5704
5827
|
set_body_font_name(font_name: string): void;
|
|
5705
5828
|
|
|
@@ -5707,6 +5830,7 @@ export namespace GtkSource {
|
|
|
5707
5830
|
* Sets the bottom margin used by `compositor`.
|
|
5708
5831
|
* @param margin the new bottom margin in units of `unit`.
|
|
5709
5832
|
* @param unit the units for `margin`.
|
|
5833
|
+
* @since 2.2
|
|
5710
5834
|
*/
|
|
5711
5835
|
set_bottom_margin(margin: number, unit: Gtk.Unit): void;
|
|
5712
5836
|
|
|
@@ -5723,6 +5847,7 @@ export namespace GtkSource {
|
|
|
5723
5847
|
* This function cannot be called anymore after the first call to the
|
|
5724
5848
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5725
5849
|
* @param font_name the name of the font for the footer text, or `null`.
|
|
5850
|
+
* @since 2.2
|
|
5726
5851
|
*/
|
|
5727
5852
|
set_footer_font_name(font_name: string | null): void;
|
|
5728
5853
|
|
|
@@ -5733,6 +5858,7 @@ export namespace GtkSource {
|
|
|
5733
5858
|
* @param left a format string to print on the left of the footer.
|
|
5734
5859
|
* @param center a format string to print on the center of the footer.
|
|
5735
5860
|
* @param right a format string to print on the right of the footer.
|
|
5861
|
+
* @since 2.2
|
|
5736
5862
|
*/
|
|
5737
5863
|
set_footer_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
|
|
5738
5864
|
|
|
@@ -5749,6 +5875,7 @@ export namespace GtkSource {
|
|
|
5749
5875
|
* This function cannot be called anymore after the first call to the
|
|
5750
5876
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5751
5877
|
* @param font_name the name of the font for header text, or `null`.
|
|
5878
|
+
* @since 2.2
|
|
5752
5879
|
*/
|
|
5753
5880
|
set_header_font_name(font_name: string | null): void;
|
|
5754
5881
|
|
|
@@ -5778,6 +5905,7 @@ export namespace GtkSource {
|
|
|
5778
5905
|
* @param left a format string to print on the left of the header.
|
|
5779
5906
|
* @param center a format string to print on the center of the header.
|
|
5780
5907
|
* @param right a format string to print on the right of the header.
|
|
5908
|
+
* @since 2.2
|
|
5781
5909
|
*/
|
|
5782
5910
|
set_header_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
|
|
5783
5911
|
|
|
@@ -5788,6 +5916,7 @@ export namespace GtkSource {
|
|
|
5788
5916
|
* This function cannot be called anymore after the first call to the
|
|
5789
5917
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5790
5918
|
* @param highlight whether syntax should be highlighted.
|
|
5919
|
+
* @since 2.2
|
|
5791
5920
|
*/
|
|
5792
5921
|
set_highlight_syntax(highlight: boolean): void;
|
|
5793
5922
|
|
|
@@ -5795,6 +5924,7 @@ export namespace GtkSource {
|
|
|
5795
5924
|
* Sets the left margin used by `compositor`.
|
|
5796
5925
|
* @param margin the new left margin in units of `unit`.
|
|
5797
5926
|
* @param unit the units for `margin`.
|
|
5927
|
+
* @since 2.2
|
|
5798
5928
|
*/
|
|
5799
5929
|
set_left_margin(margin: number, unit: Gtk.Unit): void;
|
|
5800
5930
|
|
|
@@ -5811,6 +5941,7 @@ export namespace GtkSource {
|
|
|
5811
5941
|
* This function cannot be called anymore after the first call to the
|
|
5812
5942
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5813
5943
|
* @param font_name the name of the font for line numbers, or `null`.
|
|
5944
|
+
* @since 2.2
|
|
5814
5945
|
*/
|
|
5815
5946
|
set_line_numbers_font_name(font_name: string | null): void;
|
|
5816
5947
|
|
|
@@ -5826,6 +5957,7 @@ export namespace GtkSource {
|
|
|
5826
5957
|
* This function cannot be called anymore after the first call to the
|
|
5827
5958
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5828
5959
|
* @param print `true` if you want the footer to be printed.
|
|
5960
|
+
* @since 2.2
|
|
5829
5961
|
*/
|
|
5830
5962
|
set_print_footer(print: boolean): void;
|
|
5831
5963
|
|
|
@@ -5841,6 +5973,7 @@ export namespace GtkSource {
|
|
|
5841
5973
|
* This function cannot be called anymore after the first call to the
|
|
5842
5974
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5843
5975
|
* @param print `true` if you want the header to be printed.
|
|
5976
|
+
* @since 2.2
|
|
5844
5977
|
*/
|
|
5845
5978
|
set_print_header(print: boolean): void;
|
|
5846
5979
|
|
|
@@ -5854,6 +5987,7 @@ export namespace GtkSource {
|
|
|
5854
5987
|
* This function cannot be called anymore after the first call to the
|
|
5855
5988
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5856
5989
|
* @param interval interval for printed line numbers.
|
|
5990
|
+
* @since 2.2
|
|
5857
5991
|
*/
|
|
5858
5992
|
set_print_line_numbers(interval: number): void;
|
|
5859
5993
|
|
|
@@ -5861,6 +5995,7 @@ export namespace GtkSource {
|
|
|
5861
5995
|
* Sets the right margin used by `compositor`.
|
|
5862
5996
|
* @param margin the new right margin in units of `unit`.
|
|
5863
5997
|
* @param unit the units for `margin`.
|
|
5998
|
+
* @since 2.2
|
|
5864
5999
|
*/
|
|
5865
6000
|
set_right_margin(margin: number, unit: Gtk.Unit): void;
|
|
5866
6001
|
|
|
@@ -5870,6 +6005,7 @@ export namespace GtkSource {
|
|
|
5870
6005
|
* This function cannot be called anymore after the first call to the
|
|
5871
6006
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5872
6007
|
* @param width width of tab in characters.
|
|
6008
|
+
* @since 2.2
|
|
5873
6009
|
*/
|
|
5874
6010
|
set_tab_width(width: number): void;
|
|
5875
6011
|
|
|
@@ -5877,6 +6013,7 @@ export namespace GtkSource {
|
|
|
5877
6013
|
* Sets the top margin used by `compositor`.
|
|
5878
6014
|
* @param margin the new top margin in units of `unit`
|
|
5879
6015
|
* @param unit the units for `margin`
|
|
6016
|
+
* @since 2.2
|
|
5880
6017
|
*/
|
|
5881
6018
|
set_top_margin(margin: number, unit: Gtk.Unit): void;
|
|
5882
6019
|
|
|
@@ -5886,6 +6023,7 @@ export namespace GtkSource {
|
|
|
5886
6023
|
* This function cannot be called anymore after the first call to the
|
|
5887
6024
|
* `gtk_source_print_compositor_paginate()` function.
|
|
5888
6025
|
* @param wrap_mode a {@link Gtk.WrapMode}.
|
|
6026
|
+
* @since 2.2
|
|
5889
6027
|
*/
|
|
5890
6028
|
set_wrap_mode(wrap_mode: Gtk.WrapMode): void;
|
|
5891
6029
|
}
|
|
@@ -5951,6 +6089,7 @@ export namespace GtkSource {
|
|
|
5951
6089
|
/**
|
|
5952
6090
|
* Adds `region_to_add` to `region`. `region_to_add` is not modified.
|
|
5953
6091
|
* @param region_to_add the {@link GtkSource.Region} to add to `region`, or `null`.
|
|
6092
|
+
* @since 3.22
|
|
5954
6093
|
*/
|
|
5955
6094
|
add_region(region_to_add: Region | null): void;
|
|
5956
6095
|
|
|
@@ -5958,23 +6097,27 @@ export namespace GtkSource {
|
|
|
5958
6097
|
* Adds the subregion delimited by `_start` and `_end` to `region`.
|
|
5959
6098
|
* @param _start the start of the subregion.
|
|
5960
6099
|
* @param _end the end of the subregion.
|
|
6100
|
+
* @since 3.22
|
|
5961
6101
|
*/
|
|
5962
6102
|
add_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
|
|
5963
6103
|
|
|
5964
6104
|
/**
|
|
5965
6105
|
* Gets the `start` and `end` bounds of the `region`.
|
|
5966
6106
|
* @returns `true` if `start` and `end` have been set successfully (if non-`null`), or `false` if the `region` is empty.
|
|
6107
|
+
* @since 3.22
|
|
5967
6108
|
*/
|
|
5968
6109
|
get_bounds(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
|
|
5969
6110
|
|
|
5970
6111
|
/**
|
|
5971
6112
|
* @returns the {@link Gtk.TextBuffer}.
|
|
6113
|
+
* @since 3.22
|
|
5972
6114
|
*/
|
|
5973
6115
|
get_buffer(): Gtk.TextBuffer | null;
|
|
5974
6116
|
|
|
5975
6117
|
/**
|
|
5976
6118
|
* Initializes a {@link GtkSource.RegionIter} to the first subregion of `region`. If
|
|
5977
6119
|
* `region` is empty, `iter` will be initialized to the end iterator.
|
|
6120
|
+
* @since 3.22
|
|
5978
6121
|
*/
|
|
5979
6122
|
get_start_region_iter(): RegionIter;
|
|
5980
6123
|
|
|
@@ -5983,6 +6126,7 @@ export namespace GtkSource {
|
|
|
5983
6126
|
* `region2` are not modified.
|
|
5984
6127
|
* @param region2 a {@link GtkSource.Region}, or `null`.
|
|
5985
6128
|
* @returns the intersection as a {@link GtkSource.Region} object.
|
|
6129
|
+
* @since 3.22
|
|
5986
6130
|
*/
|
|
5987
6131
|
intersect_region(region2: Region | null): Region | null;
|
|
5988
6132
|
|
|
@@ -5992,12 +6136,14 @@ export namespace GtkSource {
|
|
|
5992
6136
|
* @param _start the start of the subregion.
|
|
5993
6137
|
* @param _end the end of the subregion.
|
|
5994
6138
|
* @returns the intersection as a new {@link GtkSource.Region}.
|
|
6139
|
+
* @since 3.22
|
|
5995
6140
|
*/
|
|
5996
6141
|
intersect_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): Region | null;
|
|
5997
6142
|
|
|
5998
6143
|
/**
|
|
5999
6144
|
* Returns whether the `region` is empty. A `null` `region` is considered empty.
|
|
6000
6145
|
* @returns whether the `region` is empty.
|
|
6146
|
+
* @since 3.22
|
|
6001
6147
|
*/
|
|
6002
6148
|
is_empty(): boolean;
|
|
6003
6149
|
|
|
@@ -6005,6 +6151,7 @@ export namespace GtkSource {
|
|
|
6005
6151
|
* Subtracts `region_to_subtract` from `region`. `region_to_subtract` is not
|
|
6006
6152
|
* modified.
|
|
6007
6153
|
* @param region_to_subtract the {@link GtkSource.Region} to subtract from `region`, or `null`.
|
|
6154
|
+
* @since 3.22
|
|
6008
6155
|
*/
|
|
6009
6156
|
subtract_region(region_to_subtract: Region | null): void;
|
|
6010
6157
|
|
|
@@ -6012,6 +6159,7 @@ export namespace GtkSource {
|
|
|
6012
6159
|
* Subtracts the subregion delimited by `_start` and `_end` from `region`.
|
|
6013
6160
|
* @param _start the start of the subregion.
|
|
6014
6161
|
* @param _end the end of the subregion.
|
|
6162
|
+
* @since 3.22
|
|
6015
6163
|
*/
|
|
6016
6164
|
subtract_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
|
|
6017
6165
|
|
|
@@ -6021,6 +6169,7 @@ export namespace GtkSource {
|
|
|
6021
6169
|
* The returned string contains the character offsets of the subregions. It
|
|
6022
6170
|
* doesn't include a newline character at the end of the string.
|
|
6023
6171
|
* @returns a string represention of `region`. Free with `g_free()` when no longer needed.
|
|
6172
|
+
* @since 3.22
|
|
6024
6173
|
*/
|
|
6025
6174
|
to_string(): string | null;
|
|
6026
6175
|
}
|
|
@@ -6181,6 +6330,7 @@ export namespace GtkSource {
|
|
|
6181
6330
|
* the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
|
|
6182
6331
|
* @param iter start of search.
|
|
6183
6332
|
* @returns whether a match was found.
|
|
6333
|
+
* @since 4.0
|
|
6184
6334
|
*/
|
|
6185
6335
|
backward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
|
|
6186
6336
|
|
|
@@ -6197,6 +6347,7 @@ export namespace GtkSource {
|
|
|
6197
6347
|
* ownership of `cancellable`, so you can unref it after calling this function.
|
|
6198
6348
|
* @param iter start of search.
|
|
6199
6349
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
6350
|
+
* @since 3.10
|
|
6200
6351
|
*/
|
|
6201
6352
|
backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
|
|
6202
6353
|
|
|
@@ -6214,6 +6365,7 @@ export namespace GtkSource {
|
|
|
6214
6365
|
* @param iter start of search.
|
|
6215
6366
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
6216
6367
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
|
|
6368
|
+
* @since 3.10
|
|
6217
6369
|
*/
|
|
6218
6370
|
backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
6219
6371
|
|
|
@@ -6231,6 +6383,7 @@ export namespace GtkSource {
|
|
|
6231
6383
|
* @param iter start of search.
|
|
6232
6384
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
6233
6385
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
|
|
6386
|
+
* @since 3.10
|
|
6234
6387
|
*/
|
|
6235
6388
|
backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]> | void;
|
|
6236
6389
|
|
|
@@ -6242,6 +6395,8 @@ export namespace GtkSource {
|
|
|
6242
6395
|
* details.
|
|
6243
6396
|
* @param result a {@link Gio.AsyncResult}.
|
|
6244
6397
|
* @returns whether a match was found.
|
|
6398
|
+
* @since 4.0
|
|
6399
|
+
* @throws GLib.Error
|
|
6245
6400
|
*/
|
|
6246
6401
|
backward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
|
|
6247
6402
|
|
|
@@ -6258,6 +6413,7 @@ export namespace GtkSource {
|
|
|
6258
6413
|
* the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
|
|
6259
6414
|
* @param iter start of search.
|
|
6260
6415
|
* @returns whether a match was found.
|
|
6416
|
+
* @since 4.0
|
|
6261
6417
|
*/
|
|
6262
6418
|
forward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
|
|
6263
6419
|
|
|
@@ -6274,6 +6430,7 @@ export namespace GtkSource {
|
|
|
6274
6430
|
* ownership of `cancellable`, so you can unref it after calling this function.
|
|
6275
6431
|
* @param iter start of search.
|
|
6276
6432
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
6433
|
+
* @since 3.10
|
|
6277
6434
|
*/
|
|
6278
6435
|
forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
|
|
6279
6436
|
|
|
@@ -6291,6 +6448,7 @@ export namespace GtkSource {
|
|
|
6291
6448
|
* @param iter start of search.
|
|
6292
6449
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
6293
6450
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
|
|
6451
|
+
* @since 3.10
|
|
6294
6452
|
*/
|
|
6295
6453
|
forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
6296
6454
|
|
|
@@ -6308,6 +6466,7 @@ export namespace GtkSource {
|
|
|
6308
6466
|
* @param iter start of search.
|
|
6309
6467
|
* @param cancellable a {@link Gio.Cancellable}, or `null`.
|
|
6310
6468
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
|
|
6469
|
+
* @since 3.10
|
|
6311
6470
|
*/
|
|
6312
6471
|
forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]> | void;
|
|
6313
6472
|
|
|
@@ -6319,21 +6478,26 @@ export namespace GtkSource {
|
|
|
6319
6478
|
* details.
|
|
6320
6479
|
* @param result a {@link Gio.AsyncResult}.
|
|
6321
6480
|
* @returns whether a match was found.
|
|
6481
|
+
* @since 4.0
|
|
6482
|
+
* @throws GLib.Error
|
|
6322
6483
|
*/
|
|
6323
6484
|
forward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
|
|
6324
6485
|
|
|
6325
6486
|
/**
|
|
6326
6487
|
* @returns the associated buffer.
|
|
6488
|
+
* @since 3.10
|
|
6327
6489
|
*/
|
|
6328
6490
|
get_buffer(): Buffer;
|
|
6329
6491
|
|
|
6330
6492
|
/**
|
|
6331
6493
|
* @returns whether to highlight the search occurrences.
|
|
6494
|
+
* @since 3.10
|
|
6332
6495
|
*/
|
|
6333
6496
|
get_highlight(): boolean;
|
|
6334
6497
|
|
|
6335
6498
|
/**
|
|
6336
6499
|
* @returns the {@link GtkSource.Style} to apply on search matches.
|
|
6500
|
+
* @since 3.16
|
|
6337
6501
|
*/
|
|
6338
6502
|
get_match_style(): Style;
|
|
6339
6503
|
|
|
@@ -6345,6 +6509,7 @@ export namespace GtkSource {
|
|
|
6345
6509
|
* @param match_start the start of the occurrence.
|
|
6346
6510
|
* @param match_end the end of the occurrence.
|
|
6347
6511
|
* @returns the position of the search occurrence. The first occurrence has the position 1 (not 0). Returns 0 if `match_start` and `match_end` don't delimit an occurrence. Returns -1 if the position is not yet known.
|
|
6512
|
+
* @since 3.10
|
|
6348
6513
|
*/
|
|
6349
6514
|
get_occurrence_position(match_start: Gtk.TextIter, match_end: Gtk.TextIter): number;
|
|
6350
6515
|
|
|
@@ -6353,6 +6518,7 @@ export namespace GtkSource {
|
|
|
6353
6518
|
* fully scanned, the total number of occurrences is unknown, and -1 is
|
|
6354
6519
|
* returned.
|
|
6355
6520
|
* @returns the total number of search occurrences, or -1 if unknown.
|
|
6521
|
+
* @since 3.10
|
|
6356
6522
|
*/
|
|
6357
6523
|
get_occurrences_count(): number;
|
|
6358
6524
|
|
|
@@ -6363,11 +6529,13 @@ export namespace GtkSource {
|
|
|
6363
6529
|
*
|
|
6364
6530
|
* Free the return value with `g_error_free()`.
|
|
6365
6531
|
* @returns the {@link GLib.Error}, or `null` if the pattern is valid.
|
|
6532
|
+
* @since 3.10
|
|
6366
6533
|
*/
|
|
6367
6534
|
get_regex_error(): GLib.Error | null;
|
|
6368
6535
|
|
|
6369
6536
|
/**
|
|
6370
6537
|
* @returns the search settings.
|
|
6538
|
+
* @since 3.10
|
|
6371
6539
|
*/
|
|
6372
6540
|
get_settings(): SearchSettings;
|
|
6373
6541
|
|
|
@@ -6386,6 +6554,8 @@ export namespace GtkSource {
|
|
|
6386
6554
|
* @param replace the replacement text.
|
|
6387
6555
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6388
6556
|
* @returns whether the match has been replaced.
|
|
6557
|
+
* @since 4.0
|
|
6558
|
+
* @throws GLib.Error
|
|
6389
6559
|
*/
|
|
6390
6560
|
replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean;
|
|
6391
6561
|
|
|
@@ -6399,12 +6569,15 @@ export namespace GtkSource {
|
|
|
6399
6569
|
* @param replace the replacement text.
|
|
6400
6570
|
* @param replace_length the length of `replace` in bytes, or -1.
|
|
6401
6571
|
* @returns the number of replaced matches.
|
|
6572
|
+
* @since 3.10
|
|
6573
|
+
* @throws GLib.Error
|
|
6402
6574
|
*/
|
|
6403
6575
|
replace_all(replace: string, replace_length: number): number;
|
|
6404
6576
|
|
|
6405
6577
|
/**
|
|
6406
6578
|
* Enables or disables the search occurrences highlighting.
|
|
6407
6579
|
* @param highlight the setting.
|
|
6580
|
+
* @since 3.10
|
|
6408
6581
|
*/
|
|
6409
6582
|
set_highlight(highlight: boolean): void;
|
|
6410
6583
|
|
|
@@ -6414,6 +6587,7 @@ export namespace GtkSource {
|
|
|
6414
6587
|
* To enable or disable the search highlighting, use
|
|
6415
6588
|
* `gtk_source_search_context_set_highlight()`.
|
|
6416
6589
|
* @param match_style a {@link GtkSource.Style}, or `null`.
|
|
6590
|
+
* @since 3.16
|
|
6417
6591
|
*/
|
|
6418
6592
|
set_match_style(match_style: Style | null): void;
|
|
6419
6593
|
}
|
|
@@ -6575,16 +6749,19 @@ export namespace GtkSource {
|
|
|
6575
6749
|
// Methods
|
|
6576
6750
|
/**
|
|
6577
6751
|
* @returns whether to search at word boundaries.
|
|
6752
|
+
* @since 3.10
|
|
6578
6753
|
*/
|
|
6579
6754
|
get_at_word_boundaries(): boolean;
|
|
6580
6755
|
|
|
6581
6756
|
/**
|
|
6582
6757
|
* @returns whether the search is case sensitive.
|
|
6758
|
+
* @since 3.10
|
|
6583
6759
|
*/
|
|
6584
6760
|
get_case_sensitive(): boolean;
|
|
6585
6761
|
|
|
6586
6762
|
/**
|
|
6587
6763
|
* @returns whether to search by regular expressions.
|
|
6764
|
+
* @since 3.10
|
|
6588
6765
|
*/
|
|
6589
6766
|
get_regex_enabled(): boolean;
|
|
6590
6767
|
|
|
@@ -6594,11 +6771,13 @@ export namespace GtkSource {
|
|
|
6594
6771
|
* You may be interested to call `gtk_source_utils_escape_search_text()` after
|
|
6595
6772
|
* this function.
|
|
6596
6773
|
* @returns the text to search, or `null` if the search is disabled.
|
|
6774
|
+
* @since 3.10
|
|
6597
6775
|
*/
|
|
6598
6776
|
get_search_text(): string | null;
|
|
6599
6777
|
|
|
6600
6778
|
/**
|
|
6601
6779
|
* @returns whether to wrap around the search.
|
|
6780
|
+
* @since 3.10
|
|
6602
6781
|
*/
|
|
6603
6782
|
get_wrap_around(): boolean;
|
|
6604
6783
|
|
|
@@ -6608,12 +6787,14 @@ export namespace GtkSource {
|
|
|
6608
6787
|
* multiple words. See also `gtk_text_iter_starts_word()` and
|
|
6609
6788
|
* `gtk_text_iter_ends_word()`.
|
|
6610
6789
|
* @param at_word_boundaries the setting.
|
|
6790
|
+
* @since 3.10
|
|
6611
6791
|
*/
|
|
6612
6792
|
set_at_word_boundaries(at_word_boundaries: boolean): void;
|
|
6613
6793
|
|
|
6614
6794
|
/**
|
|
6615
6795
|
* Enables or disables the case sensitivity for the search.
|
|
6616
6796
|
* @param case_sensitive the setting.
|
|
6797
|
+
* @since 3.10
|
|
6617
6798
|
*/
|
|
6618
6799
|
set_case_sensitive(case_sensitive: boolean): void;
|
|
6619
6800
|
|
|
@@ -6626,6 +6807,7 @@ export namespace GtkSource {
|
|
|
6626
6807
|
* [Regular expression syntax](https://developer.gnome.org/glib/stable/glib-regex-syntax.html)
|
|
6627
6808
|
* page in the GLib reference manual.
|
|
6628
6809
|
* @param regex_enabled the setting.
|
|
6810
|
+
* @since 3.10
|
|
6629
6811
|
*/
|
|
6630
6812
|
set_regex_enabled(regex_enabled: boolean): void;
|
|
6631
6813
|
|
|
@@ -6637,6 +6819,7 @@ export namespace GtkSource {
|
|
|
6637
6819
|
* You may be interested to call `gtk_source_utils_unescape_search_text()` before
|
|
6638
6820
|
* this function.
|
|
6639
6821
|
* @param search_text the nul-terminated text to search, or `null` to disable the search.
|
|
6822
|
+
* @since 3.10
|
|
6640
6823
|
*/
|
|
6641
6824
|
set_search_text(search_text: string | null): void;
|
|
6642
6825
|
|
|
@@ -6646,6 +6829,7 @@ export namespace GtkSource {
|
|
|
6646
6829
|
* occurrences are found. Similarly, the backward search continues to search at
|
|
6647
6830
|
* the end of the buffer.
|
|
6648
6831
|
* @param wrap_around the setting.
|
|
6832
|
+
* @since 3.10
|
|
6649
6833
|
*/
|
|
6650
6834
|
set_wrap_around(wrap_around: boolean): void;
|
|
6651
6835
|
}
|
|
@@ -6751,11 +6935,13 @@ export namespace GtkSource {
|
|
|
6751
6935
|
* @param settings a {@link Gio.Settings} object.
|
|
6752
6936
|
* @param key the `settings` key to bind.
|
|
6753
6937
|
* @param flags flags for the binding.
|
|
6938
|
+
* @since 3.24
|
|
6754
6939
|
*/
|
|
6755
6940
|
bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void;
|
|
6756
6941
|
|
|
6757
6942
|
/**
|
|
6758
6943
|
* @returns whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
|
|
6944
|
+
* @since 3.24
|
|
6759
6945
|
*/
|
|
6760
6946
|
get_enable_matrix(): boolean;
|
|
6761
6947
|
|
|
@@ -6766,6 +6952,7 @@ export namespace GtkSource {
|
|
|
6766
6952
|
* The `gtk_source_space_drawer_get_types_for_locations()` function may be more
|
|
6767
6953
|
* convenient to use.
|
|
6768
6954
|
* @returns the {@link GtkSource.SpaceDrawer.matrix} value as a new floating {@link GLib.Variant} instance.
|
|
6955
|
+
* @since 3.24
|
|
6769
6956
|
*/
|
|
6770
6957
|
get_matrix(): GLib.Variant;
|
|
6771
6958
|
|
|
@@ -6780,12 +6967,14 @@ export namespace GtkSource {
|
|
|
6780
6967
|
* specified `locations`.
|
|
6781
6968
|
* @param locations one or several {@link GtkSource.SpaceLocationFlags}.
|
|
6782
6969
|
* @returns a combination of {@link GtkSource.SpaceTypeFlags}.
|
|
6970
|
+
* @since 3.24
|
|
6783
6971
|
*/
|
|
6784
6972
|
get_types_for_locations(locations: SpaceLocationFlags): SpaceTypeFlags;
|
|
6785
6973
|
|
|
6786
6974
|
/**
|
|
6787
6975
|
* Sets whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
|
|
6788
6976
|
* @param enable_matrix the new value.
|
|
6977
|
+
* @since 3.24
|
|
6789
6978
|
*/
|
|
6790
6979
|
set_enable_matrix(enable_matrix: boolean): void;
|
|
6791
6980
|
|
|
@@ -6798,6 +6987,7 @@ export namespace GtkSource {
|
|
|
6798
6987
|
* The `gtk_source_space_drawer_set_types_for_locations()` function may be more
|
|
6799
6988
|
* convenient to use.
|
|
6800
6989
|
* @param matrix the new matrix value, or `null`.
|
|
6990
|
+
* @since 3.24
|
|
6801
6991
|
*/
|
|
6802
6992
|
set_matrix(matrix: GLib.Variant | null): void;
|
|
6803
6993
|
|
|
@@ -6806,6 +6996,7 @@ export namespace GtkSource {
|
|
|
6806
6996
|
* `locations`.
|
|
6807
6997
|
* @param locations one or several {@link GtkSource.SpaceLocationFlags}.
|
|
6808
6998
|
* @param types a combination of {@link GtkSource.SpaceTypeFlags}.
|
|
6999
|
+
* @since 3.24
|
|
6809
7000
|
*/
|
|
6810
7001
|
set_types_for_locations(locations: SpaceLocationFlags, types: SpaceTypeFlags): void;
|
|
6811
7002
|
}
|
|
@@ -7093,6 +7284,7 @@ export namespace GtkSource {
|
|
|
7093
7284
|
* If `style` is `null`, the related *-set properties of {@link Gtk.TextTag} are set to
|
|
7094
7285
|
* `false`.
|
|
7095
7286
|
* @param tag a {@link Gtk.TextTag} to apply styles to.
|
|
7287
|
+
* @since 3.22
|
|
7096
7288
|
*/
|
|
7097
7289
|
apply(tag: Gtk.TextTag): void;
|
|
7098
7290
|
|
|
@@ -7100,6 +7292,7 @@ export namespace GtkSource {
|
|
|
7100
7292
|
* Creates a copy of `style`, that is a new {@link GtkSource.Style} instance which
|
|
7101
7293
|
* has the same attributes set.
|
|
7102
7294
|
* @returns copy of `style`, call `g_object_unref()` when you are done with it.
|
|
7295
|
+
* @since 2.0
|
|
7103
7296
|
*/
|
|
7104
7297
|
copy(): Style;
|
|
7105
7298
|
}
|
|
@@ -7192,32 +7385,38 @@ export namespace GtkSource {
|
|
|
7192
7385
|
// Methods
|
|
7193
7386
|
/**
|
|
7194
7387
|
* @returns a `null`-terminated array containing the `scheme` authors or `null` if no author is specified by the style scheme.
|
|
7388
|
+
* @since 2.0
|
|
7195
7389
|
*/
|
|
7196
7390
|
get_authors(): string[] | null;
|
|
7197
7391
|
|
|
7198
7392
|
/**
|
|
7199
7393
|
* @returns `scheme` description (if defined), or `null`.
|
|
7394
|
+
* @since 2.0
|
|
7200
7395
|
*/
|
|
7201
7396
|
get_description(): string | null;
|
|
7202
7397
|
|
|
7203
7398
|
/**
|
|
7204
7399
|
* @returns `scheme` file name if the scheme was created parsing a style scheme file or `null` in the other cases.
|
|
7400
|
+
* @since 2.0
|
|
7205
7401
|
*/
|
|
7206
7402
|
get_filename(): string | null;
|
|
7207
7403
|
|
|
7208
7404
|
/**
|
|
7209
7405
|
* @returns `scheme` id.
|
|
7406
|
+
* @since 2.0
|
|
7210
7407
|
*/
|
|
7211
7408
|
get_id(): string;
|
|
7212
7409
|
|
|
7213
7410
|
/**
|
|
7214
7411
|
* @returns `scheme` name.
|
|
7412
|
+
* @since 2.0
|
|
7215
7413
|
*/
|
|
7216
7414
|
get_name(): string;
|
|
7217
7415
|
|
|
7218
7416
|
/**
|
|
7219
7417
|
* @param style_id id of the style to retrieve.
|
|
7220
7418
|
* @returns style which corresponds to `style_id` in the `scheme`, or `null` when no style with this name found. It is owned by `scheme` and may not be unref'ed.
|
|
7419
|
+
* @since 2.0
|
|
7221
7420
|
*/
|
|
7222
7421
|
get_style(style_id: string): Style | null;
|
|
7223
7422
|
}
|
|
@@ -7434,6 +7633,7 @@ export namespace GtkSource {
|
|
|
7434
7633
|
*
|
|
7435
7634
|
* See `gtk_actionable_set_action_name()` for more information.
|
|
7436
7635
|
* @returns the action name, or `null` if none is set
|
|
7636
|
+
* @since 3.4
|
|
7437
7637
|
*/
|
|
7438
7638
|
get_action_name(): string | null;
|
|
7439
7639
|
|
|
@@ -7442,6 +7642,7 @@ export namespace GtkSource {
|
|
|
7442
7642
|
*
|
|
7443
7643
|
* See `gtk_actionable_set_action_target_value()` for more information.
|
|
7444
7644
|
* @returns the current target value
|
|
7645
|
+
* @since 3.4
|
|
7445
7646
|
*/
|
|
7446
7647
|
get_action_target_value(): GLib.Variant;
|
|
7447
7648
|
|
|
@@ -7458,6 +7659,7 @@ export namespace GtkSource {
|
|
|
7458
7659
|
* respectively. This is the same form used for actions in the {@link Gio.Menu}
|
|
7459
7660
|
* associated with the window.
|
|
7460
7661
|
* @param action_name an action name, or `null`
|
|
7662
|
+
* @since 3.4
|
|
7461
7663
|
*/
|
|
7462
7664
|
set_action_name(action_name: string | null): void;
|
|
7463
7665
|
|
|
@@ -7482,6 +7684,7 @@ export namespace GtkSource {
|
|
|
7482
7684
|
* be rendered as active (and the other buttons, with different targets,
|
|
7483
7685
|
* rendered inactive).
|
|
7484
7686
|
* @param target_value a {@link GLib.Variant} to set as the target value, or `null`
|
|
7687
|
+
* @since 3.4
|
|
7485
7688
|
*/
|
|
7486
7689
|
set_action_target_value(target_value: GLib.Variant | null): void;
|
|
7487
7690
|
|
|
@@ -7498,6 +7701,7 @@ export namespace GtkSource {
|
|
|
7498
7701
|
* `action` is the action name and `target` is the string to use
|
|
7499
7702
|
* as the target.)
|
|
7500
7703
|
* @param detailed_action_name the detailed action name
|
|
7704
|
+
* @since 3.4
|
|
7501
7705
|
*/
|
|
7502
7706
|
set_detailed_action_name(detailed_action_name: string): void;
|
|
7503
7707
|
|
|
@@ -7505,6 +7709,7 @@ export namespace GtkSource {
|
|
|
7505
7709
|
* Gets the action name for `actionable`.
|
|
7506
7710
|
*
|
|
7507
7711
|
* See `gtk_actionable_set_action_name()` for more information.
|
|
7712
|
+
* @since 3.4
|
|
7508
7713
|
* @virtual
|
|
7509
7714
|
*/
|
|
7510
7715
|
vfunc_get_action_name(): string | null;
|
|
@@ -7513,6 +7718,7 @@ export namespace GtkSource {
|
|
|
7513
7718
|
* Gets the current target value of `actionable`.
|
|
7514
7719
|
*
|
|
7515
7720
|
* See `gtk_actionable_set_action_target_value()` for more information.
|
|
7721
|
+
* @since 3.4
|
|
7516
7722
|
* @virtual
|
|
7517
7723
|
*/
|
|
7518
7724
|
vfunc_get_action_target_value(): GLib.Variant;
|
|
@@ -7530,6 +7736,7 @@ export namespace GtkSource {
|
|
|
7530
7736
|
* respectively. This is the same form used for actions in the {@link Gio.Menu}
|
|
7531
7737
|
* associated with the window.
|
|
7532
7738
|
* @param action_name an action name, or `null`
|
|
7739
|
+
* @since 3.4
|
|
7533
7740
|
* @virtual
|
|
7534
7741
|
*/
|
|
7535
7742
|
vfunc_set_action_name(action_name: string | null): void;
|
|
@@ -7555,6 +7762,7 @@ export namespace GtkSource {
|
|
|
7555
7762
|
* be rendered as active (and the other buttons, with different targets,
|
|
7556
7763
|
* rendered inactive).
|
|
7557
7764
|
* @param target_value a {@link GLib.Variant} to set as the target value, or `null`
|
|
7765
|
+
* @since 3.4
|
|
7558
7766
|
* @virtual
|
|
7559
7767
|
*/
|
|
7560
7768
|
vfunc_set_action_target_value(target_value: GLib.Variant | null): void;
|
|
@@ -7576,12 +7784,16 @@ export namespace GtkSource {
|
|
|
7576
7784
|
* > `gtk_activatable_get_related_action()` to retrieve the
|
|
7577
7785
|
* > previous action.
|
|
7578
7786
|
* @param action the {@link Gtk.Action} to set
|
|
7787
|
+
* @since 2.16
|
|
7788
|
+
* @deprecated since 3.10
|
|
7579
7789
|
*/
|
|
7580
7790
|
do_set_related_action(action: Gtk.Action): void;
|
|
7581
7791
|
|
|
7582
7792
|
/**
|
|
7583
7793
|
* Gets the related {@link Gtk.Action} for `activatable`.
|
|
7584
7794
|
* @returns the related {@link Gtk.Action} if one is set.
|
|
7795
|
+
* @since 2.16
|
|
7796
|
+
* @deprecated since 3.10
|
|
7585
7797
|
*/
|
|
7586
7798
|
get_related_action(): Gtk.Action;
|
|
7587
7799
|
|
|
@@ -7590,6 +7802,8 @@ export namespace GtkSource {
|
|
|
7590
7802
|
* and appearance when setting the related action or when
|
|
7591
7803
|
* the action changes appearance.
|
|
7592
7804
|
* @returns whether `activatable` uses its actions appearance.
|
|
7805
|
+
* @since 2.16
|
|
7806
|
+
* @deprecated since 3.10
|
|
7593
7807
|
*/
|
|
7594
7808
|
get_use_action_appearance(): boolean;
|
|
7595
7809
|
|
|
@@ -7599,6 +7813,8 @@ export namespace GtkSource {
|
|
|
7599
7813
|
* > {@link Gtk.Activatable} implementors need to handle the {@link Gtk.Activatable.related_action}
|
|
7600
7814
|
* > property and call `gtk_activatable_do_set_related_action()` when it changes.
|
|
7601
7815
|
* @param action the {@link Gtk.Action} to set
|
|
7816
|
+
* @since 2.16
|
|
7817
|
+
* @deprecated since 3.10
|
|
7602
7818
|
*/
|
|
7603
7819
|
set_related_action(action: Gtk.Action): void;
|
|
7604
7820
|
|
|
@@ -7611,6 +7827,8 @@ export namespace GtkSource {
|
|
|
7611
7827
|
* > `gtk_activatable_sync_action_properties()` to update `activatable`
|
|
7612
7828
|
* > if needed.
|
|
7613
7829
|
* @param use_appearance whether to use the actions appearance
|
|
7830
|
+
* @since 2.16
|
|
7831
|
+
* @deprecated since 3.10
|
|
7614
7832
|
*/
|
|
7615
7833
|
set_use_action_appearance(use_appearance: boolean): void;
|
|
7616
7834
|
|
|
@@ -7620,6 +7838,8 @@ export namespace GtkSource {
|
|
|
7620
7838
|
* or unset and by the implementing class when
|
|
7621
7839
|
* {@link Gtk.Activatable.use_action_appearance} changes.
|
|
7622
7840
|
* @param action the related {@link Gtk.Action} or `null`
|
|
7841
|
+
* @since 2.16
|
|
7842
|
+
* @deprecated since 3.10
|
|
7623
7843
|
*/
|
|
7624
7844
|
sync_action_properties(action: Gtk.Action | null): void;
|
|
7625
7845
|
|
|
@@ -7629,6 +7849,8 @@ export namespace GtkSource {
|
|
|
7629
7849
|
* or unset and by the implementing class when
|
|
7630
7850
|
* {@link Gtk.Activatable.use_action_appearance} changes.
|
|
7631
7851
|
* @param action the related {@link Gtk.Action} or `null`
|
|
7852
|
+
* @since 2.16
|
|
7853
|
+
* @deprecated since 3.10
|
|
7632
7854
|
* @virtual
|
|
7633
7855
|
*/
|
|
7634
7856
|
vfunc_sync_action_properties(action: Gtk.Action | null): void;
|
|
@@ -7646,17 +7868,20 @@ export namespace GtkSource {
|
|
|
7646
7868
|
/**
|
|
7647
7869
|
* Gets the currently-selected scheme.
|
|
7648
7870
|
* @returns the currently-selected scheme.
|
|
7871
|
+
* @since 3.16
|
|
7649
7872
|
*/
|
|
7650
7873
|
get_style_scheme(): StyleScheme;
|
|
7651
7874
|
|
|
7652
7875
|
/**
|
|
7653
7876
|
* Sets the scheme.
|
|
7654
7877
|
* @param scheme a {@link GtkSource.StyleScheme}
|
|
7878
|
+
* @since 3.16
|
|
7655
7879
|
*/
|
|
7656
7880
|
set_style_scheme(scheme: StyleScheme): void;
|
|
7657
7881
|
|
|
7658
7882
|
/**
|
|
7659
7883
|
* Gets the currently-selected scheme.
|
|
7884
|
+
* @since 3.16
|
|
7660
7885
|
* @virtual
|
|
7661
7886
|
*/
|
|
7662
7887
|
vfunc_get_style_scheme(): StyleScheme;
|
|
@@ -7664,6 +7889,7 @@ export namespace GtkSource {
|
|
|
7664
7889
|
/**
|
|
7665
7890
|
* Sets the scheme.
|
|
7666
7891
|
* @param scheme a {@link GtkSource.StyleScheme}
|
|
7892
|
+
* @since 3.16
|
|
7667
7893
|
* @virtual
|
|
7668
7894
|
*/
|
|
7669
7895
|
vfunc_set_style_scheme(scheme: StyleScheme): void;
|
|
@@ -7690,6 +7916,7 @@ export namespace GtkSource {
|
|
|
7690
7916
|
* Returns whether the widget should grab focus when it is clicked with the mouse.
|
|
7691
7917
|
* See `gtk_widget_set_focus_on_click()`.
|
|
7692
7918
|
* @returns `true` if the widget should grab focus when it is clicked with the mouse.
|
|
7919
|
+
* @since 3.20
|
|
7693
7920
|
*/
|
|
7694
7921
|
get_focus_on_click(): boolean;
|
|
7695
7922
|
|
|
@@ -7699,6 +7926,7 @@ export namespace GtkSource {
|
|
|
7699
7926
|
* you don’t want the keyboard focus removed from the main area of the
|
|
7700
7927
|
* application.
|
|
7701
7928
|
* @param focus_on_click whether the widget should grab focus when clicked with the mouse
|
|
7929
|
+
* @since 3.20
|
|
7702
7930
|
*/
|
|
7703
7931
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
7704
7932
|
}
|
|
@@ -7814,17 +8042,20 @@ export namespace GtkSource {
|
|
|
7814
8042
|
/**
|
|
7815
8043
|
* Gets the currently-selected scheme.
|
|
7816
8044
|
* @returns the currently-selected scheme.
|
|
8045
|
+
* @since 3.16
|
|
7817
8046
|
*/
|
|
7818
8047
|
get_style_scheme(): StyleScheme;
|
|
7819
8048
|
|
|
7820
8049
|
/**
|
|
7821
8050
|
* Sets the scheme.
|
|
7822
8051
|
* @param scheme a {@link GtkSource.StyleScheme}
|
|
8052
|
+
* @since 3.16
|
|
7823
8053
|
*/
|
|
7824
8054
|
set_style_scheme(scheme: StyleScheme): void;
|
|
7825
8055
|
|
|
7826
8056
|
/**
|
|
7827
8057
|
* Gets the currently-selected scheme.
|
|
8058
|
+
* @since 3.16
|
|
7828
8059
|
* @virtual
|
|
7829
8060
|
*/
|
|
7830
8061
|
vfunc_get_style_scheme(): StyleScheme;
|
|
@@ -7832,6 +8063,7 @@ export namespace GtkSource {
|
|
|
7832
8063
|
/**
|
|
7833
8064
|
* Sets the scheme.
|
|
7834
8065
|
* @param scheme a {@link GtkSource.StyleScheme}
|
|
8066
|
+
* @since 3.16
|
|
7835
8067
|
* @virtual
|
|
7836
8068
|
*/
|
|
7837
8069
|
vfunc_set_style_scheme(scheme: StyleScheme): void;
|
|
@@ -8148,7 +8380,7 @@ export namespace GtkSource {
|
|
|
8148
8380
|
* @action
|
|
8149
8381
|
* @run-last
|
|
8150
8382
|
*/
|
|
8151
|
-
"change-case": (
|
|
8383
|
+
"change-case": (case_type: ChangeCaseType) => void;
|
|
8152
8384
|
/**
|
|
8153
8385
|
* Keybinding signal to edit a number at the current cursor position.
|
|
8154
8386
|
* @signal
|
|
@@ -8156,7 +8388,7 @@ export namespace GtkSource {
|
|
|
8156
8388
|
* @action
|
|
8157
8389
|
* @run-last
|
|
8158
8390
|
*/
|
|
8159
|
-
"change-number": (
|
|
8391
|
+
"change-number": (count: number) => void;
|
|
8160
8392
|
/**
|
|
8161
8393
|
* Keybinding signal to join the lines currently selected.
|
|
8162
8394
|
* @signal
|
|
@@ -8172,7 +8404,7 @@ export namespace GtkSource {
|
|
|
8172
8404
|
* @signal
|
|
8173
8405
|
* @run-last
|
|
8174
8406
|
*/
|
|
8175
|
-
"line-mark-activated": (
|
|
8407
|
+
"line-mark-activated": (iter: Gtk.TextIter, event: Gdk.Event) => void;
|
|
8176
8408
|
/**
|
|
8177
8409
|
* The ::move-lines signal is a keybinding which gets emitted
|
|
8178
8410
|
* when the user initiates moving a line. The default binding key
|
|
@@ -8182,7 +8414,7 @@ export namespace GtkSource {
|
|
|
8182
8414
|
* @action
|
|
8183
8415
|
* @run-last
|
|
8184
8416
|
*/
|
|
8185
|
-
"move-lines": (
|
|
8417
|
+
"move-lines": (down: boolean) => void;
|
|
8186
8418
|
/**
|
|
8187
8419
|
* Keybinding signal to move the cursor to the matching bracket.
|
|
8188
8420
|
* @signal
|
|
@@ -8190,7 +8422,7 @@ export namespace GtkSource {
|
|
|
8190
8422
|
* @action
|
|
8191
8423
|
* @run-last
|
|
8192
8424
|
*/
|
|
8193
|
-
"move-to-matching-bracket": (
|
|
8425
|
+
"move-to-matching-bracket": (extend_selection: boolean) => void;
|
|
8194
8426
|
/**
|
|
8195
8427
|
* The ::move-words signal is a keybinding which gets emitted
|
|
8196
8428
|
* when the user initiates moving a word. The default binding key
|
|
@@ -8201,7 +8433,7 @@ export namespace GtkSource {
|
|
|
8201
8433
|
* @action
|
|
8202
8434
|
* @run-last
|
|
8203
8435
|
*/
|
|
8204
|
-
"move-words": (
|
|
8436
|
+
"move-words": (count: number) => void;
|
|
8205
8437
|
/**
|
|
8206
8438
|
* @signal
|
|
8207
8439
|
* @action
|
|
@@ -8234,7 +8466,7 @@ export namespace GtkSource {
|
|
|
8234
8466
|
* @since 3.0
|
|
8235
8467
|
* @run-last
|
|
8236
8468
|
*/
|
|
8237
|
-
"smart-home-end": (
|
|
8469
|
+
"smart-home-end": (iter: Gtk.TextIter, count: number) => void;
|
|
8238
8470
|
/**
|
|
8239
8471
|
* @signal
|
|
8240
8472
|
* @action
|
|
@@ -8643,6 +8875,7 @@ export namespace GtkSource {
|
|
|
8643
8875
|
* Returns the {@link GtkSource.BackgroundPatternType} specifying if and how
|
|
8644
8876
|
* the background pattern should be displayed for this `view`.
|
|
8645
8877
|
* @returns the {@link GtkSource.BackgroundPatternType}.
|
|
8878
|
+
* @since 3.16
|
|
8646
8879
|
*/
|
|
8647
8880
|
get_background_pattern(): BackgroundPatternType;
|
|
8648
8881
|
|
|
@@ -8661,6 +8894,7 @@ export namespace GtkSource {
|
|
|
8661
8894
|
* and mark category icons are rendered in the left gutter.
|
|
8662
8895
|
* @param window_type the gutter window type.
|
|
8663
8896
|
* @returns the {@link GtkSource.Gutter}.
|
|
8897
|
+
* @since 2.8
|
|
8664
8898
|
*/
|
|
8665
8899
|
get_gutter(window_type: Gtk.TextWindowType): Gutter;
|
|
8666
8900
|
|
|
@@ -8708,6 +8942,7 @@ export namespace GtkSource {
|
|
|
8708
8942
|
/**
|
|
8709
8943
|
* Returns whether line marks are displayed beside the text.
|
|
8710
8944
|
* @returns `true` if the line marks are displayed.
|
|
8945
|
+
* @since 2.2
|
|
8711
8946
|
*/
|
|
8712
8947
|
get_show_line_marks(): boolean;
|
|
8713
8948
|
|
|
@@ -8727,6 +8962,7 @@ export namespace GtkSource {
|
|
|
8727
8962
|
* Returns `true` if pressing the Backspace key will try to delete spaces
|
|
8728
8963
|
* up to the previous tab stop.
|
|
8729
8964
|
* @returns `true` if smart Backspace handling is enabled.
|
|
8965
|
+
* @since 3.18
|
|
8730
8966
|
*/
|
|
8731
8967
|
get_smart_backspace(): boolean;
|
|
8732
8968
|
|
|
@@ -8742,6 +8978,7 @@ export namespace GtkSource {
|
|
|
8742
8978
|
* guaranteed to be the same for the lifetime of `view`. Each {@link GtkSource.View}
|
|
8743
8979
|
* object has a different {@link GtkSource.SpaceDrawer}.
|
|
8744
8980
|
* @returns the {@link GtkSource.SpaceDrawer} associated with `view`.
|
|
8981
|
+
* @since 3.24
|
|
8745
8982
|
*/
|
|
8746
8983
|
get_space_drawer(): SpaceDrawer;
|
|
8747
8984
|
|
|
@@ -8764,6 +9001,7 @@ export namespace GtkSource {
|
|
|
8764
9001
|
* empty lines are not indented.
|
|
8765
9002
|
* @param start {@link Gtk.TextIter} of the first line to indent
|
|
8766
9003
|
* @param end {@link Gtk.TextIter} of the last line to indent
|
|
9004
|
+
* @since 3.16
|
|
8767
9005
|
*/
|
|
8768
9006
|
indent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
|
|
8769
9007
|
|
|
@@ -8781,6 +9019,7 @@ export namespace GtkSource {
|
|
|
8781
9019
|
/**
|
|
8782
9020
|
* Set if and how the background pattern should be displayed.
|
|
8783
9021
|
* @param background_pattern the {@link GtkSource.BackgroundPatternType}.
|
|
9022
|
+
* @since 3.16
|
|
8784
9023
|
*/
|
|
8785
9024
|
set_background_pattern(background_pattern: BackgroundPatternType): void;
|
|
8786
9025
|
|
|
@@ -8854,6 +9093,7 @@ export namespace GtkSource {
|
|
|
8854
9093
|
/**
|
|
8855
9094
|
* If `true` line marks will be displayed beside the text.
|
|
8856
9095
|
* @param show whether line marks should be displayed.
|
|
9096
|
+
* @since 2.2
|
|
8857
9097
|
*/
|
|
8858
9098
|
set_show_line_marks(show: boolean): void;
|
|
8859
9099
|
|
|
@@ -8873,6 +9113,7 @@ export namespace GtkSource {
|
|
|
8873
9113
|
* When set to `true`, pressing the Backspace key will try to delete spaces
|
|
8874
9114
|
* up to the previous tab stop.
|
|
8875
9115
|
* @param smart_backspace whether to enable smart Backspace handling.
|
|
9116
|
+
* @since 3.18
|
|
8876
9117
|
*/
|
|
8877
9118
|
set_smart_backspace(smart_backspace: boolean): void;
|
|
8878
9119
|
|
|
@@ -8896,6 +9137,7 @@ export namespace GtkSource {
|
|
|
8896
9137
|
* specified lines.
|
|
8897
9138
|
* @param start {@link Gtk.TextIter} of the first line to indent
|
|
8898
9139
|
* @param end {@link Gtk.TextIter} of the last line to indent
|
|
9140
|
+
* @since 3.16
|
|
8899
9141
|
*/
|
|
8900
9142
|
unindent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
|
|
8901
9143
|
|
|
@@ -8964,36 +9206,42 @@ export namespace GtkSource {
|
|
|
8964
9206
|
* display overlayed graphics, like the overshoot indication,
|
|
8965
9207
|
* at the right position.
|
|
8966
9208
|
* @returns `true` if `border` has been set
|
|
9209
|
+
* @since 3.16
|
|
8967
9210
|
*/
|
|
8968
9211
|
get_border(): [boolean, Gtk.Border];
|
|
8969
9212
|
|
|
8970
9213
|
/**
|
|
8971
9214
|
* Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
|
|
8972
9215
|
* @returns horizontal {@link Gtk.Adjustment}.
|
|
9216
|
+
* @since 3.0
|
|
8973
9217
|
*/
|
|
8974
9218
|
get_hadjustment(): Gtk.Adjustment;
|
|
8975
9219
|
|
|
8976
9220
|
/**
|
|
8977
9221
|
* Gets the horizontal {@link Gtk.ScrollablePolicy}.
|
|
8978
9222
|
* @returns The horizontal {@link Gtk.ScrollablePolicy}.
|
|
9223
|
+
* @since 3.0
|
|
8979
9224
|
*/
|
|
8980
9225
|
get_hscroll_policy(): Gtk.ScrollablePolicy;
|
|
8981
9226
|
|
|
8982
9227
|
/**
|
|
8983
9228
|
* Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
|
|
8984
9229
|
* @returns vertical {@link Gtk.Adjustment}.
|
|
9230
|
+
* @since 3.0
|
|
8985
9231
|
*/
|
|
8986
9232
|
get_vadjustment(): Gtk.Adjustment;
|
|
8987
9233
|
|
|
8988
9234
|
/**
|
|
8989
9235
|
* Gets the vertical {@link Gtk.ScrollablePolicy}.
|
|
8990
9236
|
* @returns The vertical {@link Gtk.ScrollablePolicy}.
|
|
9237
|
+
* @since 3.0
|
|
8991
9238
|
*/
|
|
8992
9239
|
get_vscroll_policy(): Gtk.ScrollablePolicy;
|
|
8993
9240
|
|
|
8994
9241
|
/**
|
|
8995
9242
|
* Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
|
|
8996
9243
|
* @param hadjustment a {@link Gtk.Adjustment}
|
|
9244
|
+
* @since 3.0
|
|
8997
9245
|
*/
|
|
8998
9246
|
set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
|
|
8999
9247
|
|
|
@@ -9002,12 +9250,14 @@ export namespace GtkSource {
|
|
|
9002
9250
|
* horizontal scrolling should start below the minimum width or
|
|
9003
9251
|
* below the natural width.
|
|
9004
9252
|
* @param policy the horizontal {@link Gtk.ScrollablePolicy}
|
|
9253
|
+
* @since 3.0
|
|
9005
9254
|
*/
|
|
9006
9255
|
set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
9007
9256
|
|
|
9008
9257
|
/**
|
|
9009
9258
|
* Sets the vertical adjustment of the {@link Gtk.Scrollable}.
|
|
9010
9259
|
* @param vadjustment a {@link Gtk.Adjustment}
|
|
9260
|
+
* @since 3.0
|
|
9011
9261
|
*/
|
|
9012
9262
|
set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
|
|
9013
9263
|
|
|
@@ -9016,6 +9266,7 @@ export namespace GtkSource {
|
|
|
9016
9266
|
* vertical scrolling should start below the minimum height or
|
|
9017
9267
|
* below the natural height.
|
|
9018
9268
|
* @param policy the vertical {@link Gtk.ScrollablePolicy}
|
|
9269
|
+
* @since 3.0
|
|
9019
9270
|
*/
|
|
9020
9271
|
set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
|
|
9021
9272
|
|
|
@@ -9025,6 +9276,7 @@ export namespace GtkSource {
|
|
|
9025
9276
|
* be treeview headers. GTK+ can use this information to
|
|
9026
9277
|
* display overlayed graphics, like the overshoot indication,
|
|
9027
9278
|
* at the right position.
|
|
9279
|
+
* @since 3.16
|
|
9028
9280
|
* @virtual
|
|
9029
9281
|
*/
|
|
9030
9282
|
vfunc_get_border(): [boolean, Gtk.Border];
|
|
@@ -9128,11 +9380,13 @@ export namespace GtkSource {
|
|
|
9128
9380
|
// Static methods
|
|
9129
9381
|
/**
|
|
9130
9382
|
* Gets all encodings.
|
|
9383
|
+
* @since 3.14
|
|
9131
9384
|
*/
|
|
9132
9385
|
static get_all(): Encoding[];
|
|
9133
9386
|
|
|
9134
9387
|
/**
|
|
9135
9388
|
* Gets the {@link GtkSource.Encoding} for the current locale. See also `g_get_charset()`.
|
|
9389
|
+
* @since 3.14
|
|
9136
9390
|
*/
|
|
9137
9391
|
static get_current(): Encoding;
|
|
9138
9392
|
|
|
@@ -9143,6 +9397,7 @@ export namespace GtkSource {
|
|
|
9143
9397
|
* This function returns a different list depending on the current locale (i.e.
|
|
9144
9398
|
* language, country and default encoding). The UTF-8 encoding and the current
|
|
9145
9399
|
* locale encoding are guaranteed to be present in the returned list.
|
|
9400
|
+
* @since 3.18
|
|
9146
9401
|
*/
|
|
9147
9402
|
static get_default_candidates(): Encoding[];
|
|
9148
9403
|
|
|
@@ -9150,20 +9405,26 @@ export namespace GtkSource {
|
|
|
9150
9405
|
* Gets a {@link GtkSource.Encoding} from a character set such as "UTF-8" or
|
|
9151
9406
|
* "ISO-8859-1".
|
|
9152
9407
|
* @param charset a character set.
|
|
9408
|
+
* @since 3.14
|
|
9153
9409
|
*/
|
|
9154
9410
|
static get_from_charset(charset: string): Encoding | null;
|
|
9155
9411
|
|
|
9412
|
+
/**
|
|
9413
|
+
* @since 3.14
|
|
9414
|
+
*/
|
|
9156
9415
|
static get_utf8(): Encoding;
|
|
9157
9416
|
|
|
9158
9417
|
// Methods
|
|
9159
9418
|
/**
|
|
9160
9419
|
* Used by language bindings.
|
|
9161
9420
|
* @returns a copy of `enc`.
|
|
9421
|
+
* @since 3.14
|
|
9162
9422
|
*/
|
|
9163
9423
|
copy(): Encoding;
|
|
9164
9424
|
|
|
9165
9425
|
/**
|
|
9166
9426
|
* Used by language bindings.
|
|
9427
|
+
* @since 3.14
|
|
9167
9428
|
*/
|
|
9168
9429
|
free(): void;
|
|
9169
9430
|
|
|
@@ -9171,17 +9432,20 @@ export namespace GtkSource {
|
|
|
9171
9432
|
* Gets the character set of the {@link GtkSource.Encoding}, such as "UTF-8" or
|
|
9172
9433
|
* "ISO-8859-1".
|
|
9173
9434
|
* @returns the character set of the {@link GtkSource.Encoding}.
|
|
9435
|
+
* @since 3.14
|
|
9174
9436
|
*/
|
|
9175
9437
|
get_charset(): string;
|
|
9176
9438
|
|
|
9177
9439
|
/**
|
|
9178
9440
|
* Gets the name of the {@link GtkSource.Encoding} such as "Unicode" or "Western".
|
|
9179
9441
|
* @returns the name of the {@link GtkSource.Encoding}.
|
|
9442
|
+
* @since 3.14
|
|
9180
9443
|
*/
|
|
9181
9444
|
get_name(): string;
|
|
9182
9445
|
|
|
9183
9446
|
/**
|
|
9184
9447
|
* @returns a string representation. Free with `g_free()` when no longer needed.
|
|
9448
|
+
* @since 3.14
|
|
9185
9449
|
*/
|
|
9186
9450
|
to_string(): string;
|
|
9187
9451
|
}
|
|
@@ -9369,17 +9633,20 @@ export namespace GtkSource {
|
|
|
9369
9633
|
/**
|
|
9370
9634
|
* Gets the subregion at this iterator.
|
|
9371
9635
|
* @returns `true` if `start` and `end` have been set successfully (if non-`null`), or `false` if `iter` is the end iterator or if the region is empty.
|
|
9636
|
+
* @since 3.22
|
|
9372
9637
|
*/
|
|
9373
9638
|
get_subregion(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
|
|
9374
9639
|
|
|
9375
9640
|
/**
|
|
9376
9641
|
* @returns whether `iter` is the end iterator.
|
|
9642
|
+
* @since 3.22
|
|
9377
9643
|
*/
|
|
9378
9644
|
is_end(): boolean;
|
|
9379
9645
|
|
|
9380
9646
|
/**
|
|
9381
9647
|
* Moves `iter` to the next subregion.
|
|
9382
9648
|
* @returns `true` if `iter` moved and is dereferenceable, or `false` if `iter` has been set to the end iterator.
|
|
9649
|
+
* @since 3.22
|
|
9383
9650
|
*/
|
|
9384
9651
|
next(): boolean;
|
|
9385
9652
|
}
|
|
@@ -9520,6 +9787,7 @@ export namespace GtkSource {
|
|
|
9520
9787
|
|
|
9521
9788
|
/**
|
|
9522
9789
|
* Gets the {@link Gio.Icon} for the icon of `proposal`.
|
|
9790
|
+
* @since 3.18
|
|
9523
9791
|
* @virtual
|
|
9524
9792
|
*/
|
|
9525
9793
|
vfunc_get_gicon(): Gio.Icon | null;
|
|
@@ -9532,6 +9800,7 @@ export namespace GtkSource {
|
|
|
9532
9800
|
|
|
9533
9801
|
/**
|
|
9534
9802
|
* Gets the icon name of `proposal`.
|
|
9803
|
+
* @since 3.18
|
|
9535
9804
|
* @virtual
|
|
9536
9805
|
*/
|
|
9537
9806
|
vfunc_get_icon_name(): string | null;
|
|
@@ -9616,6 +9885,7 @@ export namespace GtkSource {
|
|
|
9616
9885
|
/**
|
|
9617
9886
|
* Gets the {@link Gio.Icon} for the icon of `proposal`.
|
|
9618
9887
|
* @returns A {@link Gio.Icon} with the icon of `proposal`.
|
|
9888
|
+
* @since 3.18
|
|
9619
9889
|
*/
|
|
9620
9890
|
get_gicon(): Gio.Icon | null;
|
|
9621
9891
|
|
|
@@ -9628,6 +9898,7 @@ export namespace GtkSource {
|
|
|
9628
9898
|
/**
|
|
9629
9899
|
* Gets the icon name of `proposal`.
|
|
9630
9900
|
* @returns The icon name of `proposal`.
|
|
9901
|
+
* @since 3.18
|
|
9631
9902
|
*/
|
|
9632
9903
|
get_icon_name(): string | null;
|
|
9633
9904
|
|
|
@@ -9715,6 +9986,7 @@ export namespace GtkSource {
|
|
|
9715
9986
|
|
|
9716
9987
|
/**
|
|
9717
9988
|
* Gets the {@link Gio.Icon} for the icon of `provider`.
|
|
9989
|
+
* @since 3.18
|
|
9718
9990
|
* @virtual
|
|
9719
9991
|
*/
|
|
9720
9992
|
vfunc_get_gicon(): Gio.Icon | null;
|
|
@@ -9727,6 +9999,7 @@ export namespace GtkSource {
|
|
|
9727
9999
|
|
|
9728
10000
|
/**
|
|
9729
10001
|
* Gets the icon name of `provider`.
|
|
10002
|
+
* @since 3.18
|
|
9730
10003
|
* @virtual
|
|
9731
10004
|
*/
|
|
9732
10005
|
vfunc_get_icon_name(): string | null;
|
|
@@ -9868,6 +10141,7 @@ export namespace GtkSource {
|
|
|
9868
10141
|
/**
|
|
9869
10142
|
* Gets the {@link Gio.Icon} for the icon of `provider`.
|
|
9870
10143
|
* @returns The icon to be used for the provider, or `null` if the provider does not have a special icon.
|
|
10144
|
+
* @since 3.18
|
|
9871
10145
|
*/
|
|
9872
10146
|
get_gicon(): Gio.Icon | null;
|
|
9873
10147
|
|
|
@@ -9880,6 +10154,7 @@ export namespace GtkSource {
|
|
|
9880
10154
|
/**
|
|
9881
10155
|
* Gets the icon name of `provider`.
|
|
9882
10156
|
* @returns The icon name to be used for the provider, or `null` if the provider does not have a special icon.
|
|
10157
|
+
* @since 3.18
|
|
9883
10158
|
*/
|
|
9884
10159
|
get_icon_name(): string | null;
|
|
9885
10160
|
|
|
@@ -9992,6 +10267,7 @@ export namespace GtkSource {
|
|
|
9992
10267
|
// Virtual methods
|
|
9993
10268
|
/**
|
|
9994
10269
|
* Gets the currently-selected scheme.
|
|
10270
|
+
* @since 3.16
|
|
9995
10271
|
* @virtual
|
|
9996
10272
|
*/
|
|
9997
10273
|
vfunc_get_style_scheme(): StyleScheme;
|
|
@@ -9999,6 +10275,7 @@ export namespace GtkSource {
|
|
|
9999
10275
|
/**
|
|
10000
10276
|
* Sets the scheme.
|
|
10001
10277
|
* @param scheme a {@link GtkSource.StyleScheme}
|
|
10278
|
+
* @since 3.16
|
|
10002
10279
|
* @virtual
|
|
10003
10280
|
*/
|
|
10004
10281
|
vfunc_set_style_scheme(scheme: StyleScheme): void;
|
|
@@ -10044,12 +10321,14 @@ export namespace GtkSource {
|
|
|
10044
10321
|
/**
|
|
10045
10322
|
* Gets the currently-selected scheme.
|
|
10046
10323
|
* @returns the currently-selected scheme.
|
|
10324
|
+
* @since 3.16
|
|
10047
10325
|
*/
|
|
10048
10326
|
get_style_scheme(): StyleScheme;
|
|
10049
10327
|
|
|
10050
10328
|
/**
|
|
10051
10329
|
* Sets the scheme.
|
|
10052
10330
|
* @param scheme a {@link GtkSource.StyleScheme}
|
|
10331
|
+
* @since 3.16
|
|
10053
10332
|
*/
|
|
10054
10333
|
set_style_scheme(scheme: StyleScheme): void;
|
|
10055
10334
|
}
|
|
@@ -10071,36 +10350,42 @@ export namespace GtkSource {
|
|
|
10071
10350
|
* Begin a not undoable action on the buffer. All changes between this call
|
|
10072
10351
|
* and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
|
|
10073
10352
|
* be undone. This function should be re-entrant.
|
|
10353
|
+
* @since 2.10
|
|
10074
10354
|
* @virtual
|
|
10075
10355
|
*/
|
|
10076
10356
|
vfunc_begin_not_undoable_action(): void;
|
|
10077
10357
|
|
|
10078
10358
|
/**
|
|
10079
10359
|
* Get whether there are redo operations available.
|
|
10360
|
+
* @since 2.10
|
|
10080
10361
|
* @virtual
|
|
10081
10362
|
*/
|
|
10082
10363
|
vfunc_can_redo(): boolean;
|
|
10083
10364
|
|
|
10084
10365
|
/**
|
|
10085
10366
|
* Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
|
|
10367
|
+
* @since 2.10
|
|
10086
10368
|
* @virtual
|
|
10087
10369
|
*/
|
|
10088
10370
|
vfunc_can_redo_changed(): void;
|
|
10089
10371
|
|
|
10090
10372
|
/**
|
|
10091
10373
|
* Get whether there are undo operations available.
|
|
10374
|
+
* @since 2.10
|
|
10092
10375
|
* @virtual
|
|
10093
10376
|
*/
|
|
10094
10377
|
vfunc_can_undo(): boolean;
|
|
10095
10378
|
|
|
10096
10379
|
/**
|
|
10097
10380
|
* Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
|
|
10381
|
+
* @since 2.10
|
|
10098
10382
|
* @virtual
|
|
10099
10383
|
*/
|
|
10100
10384
|
vfunc_can_undo_changed(): void;
|
|
10101
10385
|
|
|
10102
10386
|
/**
|
|
10103
10387
|
* Ends a not undoable action on the buffer.
|
|
10388
|
+
* @since 2.10
|
|
10104
10389
|
* @virtual
|
|
10105
10390
|
*/
|
|
10106
10391
|
vfunc_end_not_undoable_action(): void;
|
|
@@ -10109,6 +10394,7 @@ export namespace GtkSource {
|
|
|
10109
10394
|
* Perform a single redo. Calling this function when there are no redo operations
|
|
10110
10395
|
* available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
|
|
10111
10396
|
* if there are redo operations available.
|
|
10397
|
+
* @since 2.10
|
|
10112
10398
|
* @virtual
|
|
10113
10399
|
*/
|
|
10114
10400
|
vfunc_redo(): void;
|
|
@@ -10117,6 +10403,7 @@ export namespace GtkSource {
|
|
|
10117
10403
|
* Perform a single undo. Calling this function when there are no undo operations
|
|
10118
10404
|
* available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
|
|
10119
10405
|
* if there are undo operations available.
|
|
10406
|
+
* @since 2.10
|
|
10120
10407
|
* @virtual
|
|
10121
10408
|
*/
|
|
10122
10409
|
vfunc_undo(): void;
|
|
@@ -10141,33 +10428,39 @@ export namespace GtkSource {
|
|
|
10141
10428
|
* Begin a not undoable action on the buffer. All changes between this call
|
|
10142
10429
|
* and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
|
|
10143
10430
|
* be undone. This function should be re-entrant.
|
|
10431
|
+
* @since 2.10
|
|
10144
10432
|
*/
|
|
10145
10433
|
begin_not_undoable_action(): void;
|
|
10146
10434
|
|
|
10147
10435
|
/**
|
|
10148
10436
|
* Get whether there are redo operations available.
|
|
10149
10437
|
* @returns `true` if there are redo operations available, `false` otherwise
|
|
10438
|
+
* @since 2.10
|
|
10150
10439
|
*/
|
|
10151
10440
|
can_redo(): boolean;
|
|
10152
10441
|
|
|
10153
10442
|
/**
|
|
10154
10443
|
* Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
|
|
10444
|
+
* @since 2.10
|
|
10155
10445
|
*/
|
|
10156
10446
|
can_redo_changed(): void;
|
|
10157
10447
|
|
|
10158
10448
|
/**
|
|
10159
10449
|
* Get whether there are undo operations available.
|
|
10160
10450
|
* @returns `true` if there are undo operations available, `false` otherwise
|
|
10451
|
+
* @since 2.10
|
|
10161
10452
|
*/
|
|
10162
10453
|
can_undo(): boolean;
|
|
10163
10454
|
|
|
10164
10455
|
/**
|
|
10165
10456
|
* Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
|
|
10457
|
+
* @since 2.10
|
|
10166
10458
|
*/
|
|
10167
10459
|
can_undo_changed(): void;
|
|
10168
10460
|
|
|
10169
10461
|
/**
|
|
10170
10462
|
* Ends a not undoable action on the buffer.
|
|
10463
|
+
* @since 2.10
|
|
10171
10464
|
*/
|
|
10172
10465
|
end_not_undoable_action(): void;
|
|
10173
10466
|
|
|
@@ -10175,6 +10468,7 @@ export namespace GtkSource {
|
|
|
10175
10468
|
* Perform a single redo. Calling this function when there are no redo operations
|
|
10176
10469
|
* available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
|
|
10177
10470
|
* if there are redo operations available.
|
|
10471
|
+
* @since 2.10
|
|
10178
10472
|
*/
|
|
10179
10473
|
redo(): void;
|
|
10180
10474
|
|
|
@@ -10182,6 +10476,7 @@ export namespace GtkSource {
|
|
|
10182
10476
|
* Perform a single undo. Calling this function when there are no undo operations
|
|
10183
10477
|
* available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
|
|
10184
10478
|
* if there are undo operations available.
|
|
10479
|
+
* @since 2.10
|
|
10185
10480
|
*/
|
|
10186
10481
|
undo(): void;
|
|
10187
10482
|
}
|