51f0b9b0b687a8a6f3afcaf2cfecbb52e67bca03
[roobuilder] / src / vapi / gtksourceview-5.vapi
1 /* gtksourceview-5.vapi generated by vapigen, do not modify. */
2
3 [CCode (cprefix = "GtkSource", gir_namespace = "GtkSource", gir_version = "5", lower_case_cprefix = "gtk_source_")]
4 namespace GtkSource {
5         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_buffer_get_type ()")]
6         public class Buffer : Gtk.TextBuffer {
7                 [CCode (has_construct_function = false)]
8                 public Buffer (Gtk.TextTagTable? table);
9                 public bool backward_iter_to_source_mark (ref Gtk.TextIter iter, string? category);
10                 public void change_case (GtkSource.ChangeCaseType case_type, Gtk.TextIter start, Gtk.TextIter end);
11                 public unowned GtkSource.Mark create_source_mark (string? name, string category, Gtk.TextIter where);
12                 public void ensure_highlight (Gtk.TextIter start, Gtk.TextIter end);
13                 public bool forward_iter_to_source_mark (ref Gtk.TextIter iter, string? category);
14                 [CCode (array_length = false, array_null_terminated = true)]
15                 public string[] get_context_classes_at_iter (Gtk.TextIter iter);
16                 public bool get_highlight_matching_brackets ();
17                 public bool get_highlight_syntax ();
18                 public bool get_implicit_trailing_newline ();
19                 public unowned GtkSource.Language? get_language ();
20                 public GLib.SList<weak GtkSource.Mark> get_source_marks_at_iter (Gtk.TextIter iter, string? category);
21                 public GLib.SList<weak GtkSource.Mark> get_source_marks_at_line (int line, string? category);
22                 public unowned GtkSource.StyleScheme? get_style_scheme ();
23                 public bool iter_backward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
24                 public bool iter_forward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
25                 public bool iter_has_context_class (Gtk.TextIter iter, string context_class);
26                 public void join_lines (Gtk.TextIter start, Gtk.TextIter end);
27                 public void remove_source_marks (Gtk.TextIter start, Gtk.TextIter end, string? category);
28                 public void set_highlight_matching_brackets (bool highlight);
29                 public void set_highlight_syntax (bool highlight);
30                 public void set_implicit_trailing_newline (bool implicit_trailing_newline);
31                 public void set_language (GtkSource.Language? language);
32                 public void set_style_scheme (GtkSource.StyleScheme? scheme);
33                 public void sort_lines (Gtk.TextIter start, Gtk.TextIter end, GtkSource.SortFlags flags, int column);
34                 [CCode (has_construct_function = false)]
35                 public Buffer.with_language (GtkSource.Language language);
36                 public bool highlight_matching_brackets { get; set; }
37                 public bool highlight_syntax { get; set; }
38                 public bool implicit_trailing_newline { get; set construct; }
39                 public GtkSource.Language language { get; set; }
40                 public GtkSource.StyleScheme style_scheme { get; set; }
41                 public virtual signal void bracket_matched (Gtk.TextIter? iter, GtkSource.BracketMatchType state);
42                 public signal void cursor_moved ();
43                 public signal void highlight_updated (Gtk.TextIter start, Gtk.TextIter end);
44                 public signal void source_mark_updated (Gtk.TextMark mark);
45         }
46         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_get_type ()")]
47         public class Completion : GLib.Object {
48                 [CCode (has_construct_function = false)]
49                 protected Completion ();
50                 public void add_provider (GtkSource.CompletionProvider provider);
51                 public void block_interactive ();
52                 public static Pango.AttrList? fuzzy_highlight (string haystack, string casefold_query);
53                 public static bool fuzzy_match (string? haystack, string casefold_needle, out uint priority);
54                 public unowned GtkSource.Buffer get_buffer ();
55                 public uint get_page_size ();
56                 public unowned GtkSource.View get_view ();
57                 public void remove_provider (GtkSource.CompletionProvider provider);
58                 public void set_page_size (uint page_size);
59                 public void unblock_interactive ();
60                 public Gtk.TextView buffer { get; }
61                 public uint page_size { get; set; }
62                 [NoAccessorMethod]
63                 public bool remember_info_visibility { get; set; }
64                 [NoAccessorMethod]
65                 public bool select_on_show { get; set; }
66                 [NoAccessorMethod]
67                 public bool show_icons { get; set; }
68                 public GtkSource.View view { get; construct; }
69                 [HasEmitter]
70                 public signal void hide ();
71                 public signal void provider_added (GtkSource.CompletionProvider provider);
72                 public signal void provider_removed (GtkSource.CompletionProvider provider);
73                 [HasEmitter]
74                 public signal void show ();
75         }
76         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_cell_get_type ()")]
77         public class CompletionCell : Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
78                 [CCode (has_construct_function = false)]
79                 protected CompletionCell ();
80                 public GtkSource.CompletionColumn get_column ();
81                 public unowned Gtk.Widget? get_widget ();
82                 public void set_gicon (GLib.Icon gicon);
83                 public void set_icon_name (string icon_name);
84                 public void set_markup (string markup);
85                 public void set_paintable (Gdk.Paintable paintable);
86                 public void set_text (string? text);
87                 public void set_text_with_attributes (string text, Pango.AttrList attrs);
88                 public void set_widget (Gtk.Widget child);
89                 public GtkSource.CompletionColumn column { get; construct; }
90                 [NoAccessorMethod]
91                 public string markup { owned get; set; }
92                 [NoAccessorMethod]
93                 public Gdk.Paintable paintable { owned get; set; }
94                 [NoAccessorMethod]
95                 public string text { owned get; set; }
96                 public Gtk.Widget widget { get; set; }
97         }
98         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_context_get_type ()")]
99         public class CompletionContext : GLib.Object, GLib.ListModel {
100                 [CCode (has_construct_function = false)]
101                 protected CompletionContext ();
102                 public GtkSource.CompletionActivation get_activation ();
103                 public bool get_bounds (out Gtk.TextIter begin, out Gtk.TextIter end);
104                 public unowned GtkSource.Buffer? get_buffer ();
105                 public bool get_busy ();
106                 public unowned GtkSource.Completion? get_completion ();
107                 public bool get_empty ();
108                 public unowned GtkSource.Language? get_language ();
109                 [Version (since = "5.6")]
110                 public unowned GLib.ListModel? get_proposals_for_provider (GtkSource.CompletionProvider provider);
111                 public unowned GtkSource.View? get_view ();
112                 public string get_word ();
113                 [Version (since = "5.6")]
114                 public GLib.ListModel list_providers ();
115                 public void set_proposals_for_provider (GtkSource.CompletionProvider provider, GLib.ListModel? results);
116                 public bool busy { get; }
117                 public GtkSource.Completion completion { get; construct; }
118                 public bool empty { get; }
119                 [Version (since = "5.6")]
120                 public signal void provider_model_changed (GtkSource.CompletionProvider provider, GLib.ListModel? model);
121         }
122         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_snippets_get_type ()")]
123         public class CompletionSnippets : GLib.Object, GtkSource.CompletionProvider {
124                 [CCode (has_construct_function = false)]
125                 public CompletionSnippets ();
126                 [NoAccessorMethod]
127                 public int priority { get; set construct; }
128                 [NoAccessorMethod]
129                 public string title { owned get; set construct; }
130         }
131         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_words_get_type ()")]
132         public class CompletionWords : GLib.Object, GtkSource.CompletionProvider {
133                 [CCode (has_construct_function = false)]
134                 public CompletionWords (string? title);
135                 public void register (Gtk.TextBuffer buffer);
136                 public void unregister (Gtk.TextBuffer buffer);
137                 [NoAccessorMethod]
138                 public uint minimum_word_size { get; set construct; }
139                 [NoAccessorMethod]
140                 public int priority { get; set construct; }
141                 [NoAccessorMethod]
142                 public uint proposals_batch_size { get; set construct; }
143                 [NoAccessorMethod]
144                 public uint scan_batch_size { get; set construct; }
145                 [NoAccessorMethod]
146                 public string title { owned get; set construct; }
147         }
148         [CCode (cheader_filename = "gtksourceview/gtksource.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_source_encoding_get_type ()")]
149         [Compact]
150         public class Encoding {
151                 public GtkSource.Encoding copy ();
152                 public void free ();
153                 public static GLib.SList<weak GtkSource.Encoding> get_all ();
154                 public unowned string get_charset ();
155                 public static unowned GtkSource.Encoding get_current ();
156                 public static GLib.SList<weak GtkSource.Encoding> get_default_candidates ();
157                 public static unowned GtkSource.Encoding? get_from_charset (string charset);
158                 public unowned string get_name ();
159                 public static unowned GtkSource.Encoding get_utf8 ();
160                 public string to_string ();
161         }
162         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_get_type ()")]
163         public class File : GLib.Object {
164                 [CCode (has_construct_function = false)]
165                 public File ();
166                 public void check_file_on_disk ();
167                 public GtkSource.CompressionType get_compression_type ();
168                 public unowned GtkSource.Encoding get_encoding ();
169                 public unowned GLib.File get_location ();
170                 public GtkSource.NewlineType get_newline_type ();
171                 public bool is_deleted ();
172                 public bool is_externally_modified ();
173                 public bool is_local ();
174                 public bool is_readonly ();
175                 public void set_location (GLib.File? location);
176                 public GtkSource.CompressionType compression_type { get; }
177                 public GtkSource.Encoding encoding { get; }
178                 public GLib.File location { get; set construct; }
179                 public GtkSource.NewlineType newline_type { get; }
180                 [NoAccessorMethod]
181                 public bool read_only { get; }
182         }
183         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_loader_get_type ()")]
184         public class FileLoader : GLib.Object {
185                 [CCode (has_construct_function = false)]
186                 public FileLoader (GtkSource.Buffer buffer, GtkSource.File file);
187                 [CCode (has_construct_function = false)]
188                 public FileLoader.from_stream (GtkSource.Buffer buffer, GtkSource.File file, GLib.InputStream stream);
189                 public unowned GtkSource.Buffer get_buffer ();
190                 public GtkSource.CompressionType get_compression_type ();
191                 public unowned GtkSource.Encoding get_encoding ();
192                 public unowned GtkSource.File get_file ();
193                 public unowned GLib.InputStream? get_input_stream ();
194                 public unowned GLib.File? get_location ();
195                 public GtkSource.NewlineType get_newline_type ();
196                 public async bool load_async (int io_priority, GLib.Cancellable? cancellable, owned GLib.FileProgressCallback? progress_callback) throws GLib.Error;
197                 public void set_candidate_encodings (GLib.SList<GtkSource.Encoding> candidate_encodings);
198                 public GtkSource.Buffer buffer { get; construct; }
199                 public GtkSource.File file { get; construct; }
200                 public GLib.InputStream input_stream { get; construct; }
201                 public GLib.File location { get; construct; }
202         }
203         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_saver_get_type ()")]
204         public class FileSaver : GLib.Object {
205                 [CCode (has_construct_function = false)]
206                 public FileSaver (GtkSource.Buffer buffer, GtkSource.File file);
207                 public unowned GtkSource.Buffer get_buffer ();
208                 public GtkSource.CompressionType get_compression_type ();
209                 public unowned GtkSource.Encoding get_encoding ();
210                 public unowned GtkSource.File get_file ();
211                 public GtkSource.FileSaverFlags get_flags ();
212                 public unowned GLib.File get_location ();
213                 public GtkSource.NewlineType get_newline_type ();
214                 public async bool save_async (int io_priority, GLib.Cancellable? cancellable, owned GLib.FileProgressCallback? progress_callback) throws GLib.Error;
215                 public void set_compression_type (GtkSource.CompressionType compression_type);
216                 public void set_encoding (GtkSource.Encoding? encoding);
217                 public void set_flags (GtkSource.FileSaverFlags flags);
218                 public void set_newline_type (GtkSource.NewlineType newline_type);
219                 [CCode (has_construct_function = false)]
220                 public FileSaver.with_target (GtkSource.Buffer buffer, GtkSource.File file, GLib.File target_location);
221                 public GtkSource.Buffer buffer { get; construct; }
222                 public GtkSource.CompressionType compression_type { get; set construct; }
223                 public GtkSource.Encoding encoding { get; set construct; }
224                 public GtkSource.File file { get; construct; }
225                 public GtkSource.FileSaverFlags flags { get; set construct; }
226                 public GLib.File location { get; construct; }
227                 public GtkSource.NewlineType newline_type { get; set construct; }
228         }
229         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_get_type ()")]
230         public class Gutter : Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
231                 [CCode (has_construct_function = false)]
232                 protected Gutter ();
233                 public unowned GtkSource.View get_view ();
234                 public bool insert (GtkSource.GutterRenderer renderer, int position);
235                 public void remove (GtkSource.GutterRenderer renderer);
236                 public void reorder (GtkSource.GutterRenderer renderer, int position);
237                 public GtkSource.View view { get; construct; }
238                 [NoAccessorMethod]
239                 public Gtk.TextWindowType window_type { get; construct; }
240         }
241         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_lines_get_type ()")]
242         public class GutterLines : GLib.Object {
243                 [CCode (has_construct_function = false)]
244                 protected GutterLines ();
245                 public void add_class (uint line, string name);
246                 public void add_qclass (uint line, GLib.Quark qname);
247                 public unowned Gtk.TextBuffer get_buffer ();
248                 public uint get_first ();
249                 public void get_iter_at_line (out Gtk.TextIter iter, uint line);
250                 public uint get_last ();
251                 public void get_line_yrange (uint line, GtkSource.GutterRendererAlignmentMode mode, out int y, out int height);
252                 public unowned Gtk.TextView get_view ();
253                 [Version (since = "5.6")]
254                 public bool has_any_class (uint line);
255                 public bool has_class (uint line, string name);
256                 public bool has_qclass (uint line, GLib.Quark qname);
257                 public bool is_cursor (uint line);
258                 public bool is_prelit (uint line);
259                 public bool is_selected (uint line);
260                 public void remove_class (uint line, string name);
261                 public void remove_qclass (uint line, GLib.Quark qname);
262         }
263         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_get_type ()")]
264         public abstract class GutterRenderer : Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
265                 [CCode (has_construct_function = false)]
266                 protected GutterRenderer ();
267                 public void align_cell (uint line, float width, float height, out float x, out float y);
268                 [NoWrapper]
269                 public virtual void begin (GtkSource.GutterLines lines);
270                 [NoWrapper]
271                 public virtual void change_buffer (GtkSource.Buffer? old_buffer);
272                 [NoWrapper]
273                 public virtual void change_view (GtkSource.View? old_view);
274                 [NoWrapper]
275                 public virtual void end ();
276                 public GtkSource.GutterRendererAlignmentMode get_alignment_mode ();
277                 public unowned GtkSource.Buffer? get_buffer ();
278                 public unowned GtkSource.View get_view ();
279                 public float get_xalign ();
280                 public int get_xpad ();
281                 public float get_yalign ();
282                 public int get_ypad ();
283                 public void set_alignment_mode (GtkSource.GutterRendererAlignmentMode mode);
284                 public void set_xalign (float xalign);
285                 public void set_xpad (int xpad);
286                 public void set_yalign (float yalign);
287                 public void set_ypad (int ypad);
288                 [NoWrapper]
289                 public virtual void snapshot_line (Gtk.Snapshot snapshot, GtkSource.GutterLines lines, uint line);
290                 public GtkSource.GutterRendererAlignmentMode alignment_mode { get; set; }
291                 [NoAccessorMethod]
292                 public GtkSource.GutterLines lines { owned get; }
293                 public Gtk.TextView view { get; }
294                 public float xalign { get; set; }
295                 public int xpad { get; set; }
296                 public float yalign { get; set; }
297                 public int ypad { get; set; }
298                 [HasEmitter]
299                 public virtual signal void activate (Gtk.TextIter iter, Gdk.Rectangle area, uint button, Gdk.ModifierType state, int n_presses);
300                 [HasEmitter]
301                 public virtual signal bool query_activatable (Gtk.TextIter iter, Gdk.Rectangle area);
302                 public virtual signal void query_data (GLib.Object lines, uint line);
303         }
304         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_pixbuf_get_type ()")]
305         public class GutterRendererPixbuf : GtkSource.GutterRenderer, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
306                 [CCode (has_construct_function = false, type = "GtkSourceGutterRenderer*")]
307                 public GutterRendererPixbuf ();
308                 public unowned GLib.Icon get_gicon ();
309                 public unowned string get_icon_name ();
310                 public unowned Gdk.Paintable? get_paintable ();
311                 public unowned Gdk.Pixbuf get_pixbuf ();
312                 public void overlay_paintable (Gdk.Paintable paintable);
313                 public void set_gicon (GLib.Icon? icon);
314                 public void set_icon_name (string? icon_name);
315                 public void set_paintable (Gdk.Paintable? paintable);
316                 public void set_pixbuf (Gdk.Pixbuf? pixbuf);
317                 public GLib.Icon gicon { get; set; }
318                 public string icon_name { get; set; }
319                 public Gdk.Paintable paintable { get; set; }
320                 public Gdk.Pixbuf pixbuf { get; set; }
321         }
322         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_text_get_type ()")]
323         public class GutterRendererText : GtkSource.GutterRenderer, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
324                 [CCode (has_construct_function = false, type = "GtkSourceGutterRenderer*")]
325                 public GutterRendererText ();
326                 public void measure (string text, out int width, out int height);
327                 public void measure_markup (string markup, out int width, out int height);
328                 public void set_markup (string markup, int length);
329                 public void set_text (string text, int length);
330                 [NoAccessorMethod]
331                 public string markup { owned get; set construct; }
332                 [NoAccessorMethod]
333                 public string text { owned get; set construct; }
334         }
335         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_hover_get_type ()")]
336         public class Hover : GLib.Object {
337                 [CCode (has_construct_function = false)]
338                 protected Hover ();
339                 public void add_provider (GtkSource.HoverProvider provider);
340                 public void remove_provider (GtkSource.HoverProvider provider);
341                 [NoAccessorMethod]
342                 public uint hover_delay { get; set; }
343         }
344         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_hover_context_get_type ()")]
345         public class HoverContext : GLib.Object {
346                 [CCode (has_construct_function = false)]
347                 protected HoverContext ();
348                 public bool get_bounds (out Gtk.TextIter begin, out Gtk.TextIter end);
349                 public unowned GtkSource.Buffer get_buffer ();
350                 public bool get_iter (Gtk.TextIter iter);
351                 public unowned GtkSource.View get_view ();
352         }
353         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_hover_display_get_type ()")]
354         public class HoverDisplay : Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
355                 [CCode (has_construct_function = false)]
356                 protected HoverDisplay ();
357                 public void append (Gtk.Widget child);
358                 public void insert_after (Gtk.Widget child, Gtk.Widget sibling);
359                 public void prepend (Gtk.Widget child);
360                 public void remove (Gtk.Widget child);
361         }
362         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_language_get_type ()")]
363         public class Language : GLib.Object {
364                 [CCode (has_construct_function = false)]
365                 protected Language ();
366                 [CCode (array_length = false, array_null_terminated = true)]
367                 public string[]? get_globs ();
368                 public bool get_hidden ();
369                 public unowned string get_id ();
370                 public unowned string? get_metadata (string name);
371                 [CCode (array_length = false, array_null_terminated = true)]
372                 public string[]? get_mime_types ();
373                 public unowned string get_name ();
374                 public unowned string get_section ();
375                 public unowned string? get_style_fallback (string style_id);
376                 [CCode (array_length = false, array_null_terminated = true)]
377                 public string[]? get_style_ids ();
378                 public unowned string? get_style_name (string style_id);
379                 public bool hidden { get; }
380                 public string id { get; }
381                 public string name { get; }
382                 public string section { get; }
383         }
384         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_language_manager_get_type ()")]
385         public class LanguageManager : GLib.Object {
386                 [CCode (has_construct_function = false)]
387                 public LanguageManager ();
388                 [Version (since = "5.4")]
389                 public void append_search_path (string path);
390                 public static unowned GtkSource.LanguageManager get_default ();
391                 public unowned GtkSource.Language? get_language (string id);
392                 [CCode (array_length = false, array_null_terminated = true)]
393                 public unowned string[]? get_language_ids ();
394                 [CCode (array_length = false, array_null_terminated = true)]
395                 public unowned string[] get_search_path ();
396                 public unowned GtkSource.Language? guess_language (string? filename, string? content_type);
397                 [Version (since = "5.4")]
398                 public void prepend_search_path (string path);
399                 public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? dirs);
400                 [CCode (array_length = false, array_null_terminated = true)]
401                 public string[] language_ids { get; }
402                 [CCode (array_length = false, array_null_terminated = true)]
403                 public string[] search_path { get; set; }
404         }
405         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_map_get_type ()")]
406         public class Map : GtkSource.View, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable {
407                 [CCode (has_construct_function = false, type = "GtkWidget*")]
408                 public Map ();
409                 public unowned GtkSource.View? get_view ();
410                 public void set_view (GtkSource.View view);
411                 [NoAccessorMethod]
412                 public Pango.FontDescription font_desc { owned get; set; }
413                 public GtkSource.View view { get; set; }
414         }
415         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_mark_get_type ()")]
416         public class Mark : Gtk.TextMark {
417                 [CCode (has_construct_function = false)]
418                 public Mark (string? name, string category);
419                 public unowned string get_category ();
420                 public unowned GtkSource.Mark? next (string? category);
421                 public unowned GtkSource.Mark? prev (string category);
422                 public string category { get; construct; }
423         }
424         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_mark_attributes_get_type ()")]
425         public class MarkAttributes : GLib.Object {
426                 [CCode (has_construct_function = false)]
427                 public MarkAttributes ();
428                 public bool get_background (out Gdk.RGBA background);
429                 public unowned GLib.Icon get_gicon ();
430                 public unowned string get_icon_name ();
431                 public unowned Gdk.Pixbuf get_pixbuf ();
432                 public string get_tooltip_markup (GtkSource.Mark mark);
433                 public string get_tooltip_text (GtkSource.Mark mark);
434                 public unowned Gdk.Paintable render_icon (Gtk.Widget widget, int size);
435                 public void set_background (Gdk.RGBA background);
436                 public void set_gicon (GLib.Icon gicon);
437                 public void set_icon_name (string icon_name);
438                 public void set_pixbuf (Gdk.Pixbuf pixbuf);
439                 [NoAccessorMethod]
440                 public Gdk.RGBA background { owned get; set; }
441                 public GLib.Icon gicon { get; set; }
442                 public string icon_name { get; set; }
443                 public Gdk.Pixbuf pixbuf { get; set; }
444                 public signal string query_tooltip_markup (GtkSource.Mark mark);
445                 public signal string query_tooltip_text (GtkSource.Mark mark);
446         }
447         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_print_compositor_get_type ()")]
448         public class PrintCompositor : GLib.Object {
449                 [CCode (has_construct_function = false)]
450                 public PrintCompositor (GtkSource.Buffer buffer);
451                 public void draw_page (Gtk.PrintContext context, int page_nr);
452                 [CCode (has_construct_function = false)]
453                 public PrintCompositor.from_view (GtkSource.View view);
454                 public string get_body_font_name ();
455                 public double get_bottom_margin (Gtk.Unit unit);
456                 public unowned GtkSource.Buffer get_buffer ();
457                 public string get_footer_font_name ();
458                 public string get_header_font_name ();
459                 public bool get_highlight_syntax ();
460                 public double get_left_margin (Gtk.Unit unit);
461                 public string get_line_numbers_font_name ();
462                 public int get_n_pages ();
463                 public double get_pagination_progress ();
464                 public bool get_print_footer ();
465                 public bool get_print_header ();
466                 public uint get_print_line_numbers ();
467                 public double get_right_margin (Gtk.Unit unit);
468                 public uint get_tab_width ();
469                 public double get_top_margin (Gtk.Unit unit);
470                 public Gtk.WrapMode get_wrap_mode ();
471                 [Version (since = "5.2")]
472                 public void ignore_tag (Gtk.TextTag tag);
473                 public bool paginate (Gtk.PrintContext context);
474                 public void set_body_font_name (string font_name);
475                 public void set_bottom_margin (double margin, Gtk.Unit unit);
476                 public void set_footer_font_name (string? font_name);
477                 public void set_footer_format (bool separator, string? left, string? center, string? right);
478                 public void set_header_font_name (string? font_name);
479                 public void set_header_format (bool separator, string? left, string? center, string? right);
480                 public void set_highlight_syntax (bool highlight);
481                 public void set_left_margin (double margin, Gtk.Unit unit);
482                 public void set_line_numbers_font_name (string? font_name);
483                 public void set_print_footer (bool print);
484                 public void set_print_header (bool print);
485                 public void set_print_line_numbers (uint interval);
486                 public void set_right_margin (double margin, Gtk.Unit unit);
487                 public void set_tab_width (uint width);
488                 public void set_top_margin (double margin, Gtk.Unit unit);
489                 public void set_wrap_mode (Gtk.WrapMode wrap_mode);
490                 public string body_font_name { owned get; set; }
491                 public GtkSource.Buffer buffer { get; construct; }
492                 public string footer_font_name { owned get; set; }
493                 public string header_font_name { owned get; set; }
494                 public bool highlight_syntax { get; set; }
495                 public string line_numbers_font_name { owned get; set; }
496                 public int n_pages { get; }
497                 public bool print_footer { get; set; }
498                 public bool print_header { get; set; }
499                 public uint print_line_numbers { get; set; }
500                 public uint tab_width { get; set; }
501                 public Gtk.WrapMode wrap_mode { get; set; }
502         }
503         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_region_get_type ()")]
504         public class Region : GLib.Object {
505                 [CCode (has_construct_function = false)]
506                 public Region (Gtk.TextBuffer buffer);
507                 public void add_region (GtkSource.Region? region_to_add);
508                 public void add_subregion (Gtk.TextIter _start, Gtk.TextIter _end);
509                 public bool get_bounds (out Gtk.TextIter start, out Gtk.TextIter end);
510                 public unowned Gtk.TextBuffer? get_buffer ();
511                 public GtkSource.RegionIter get_start_region_iter ();
512                 public GtkSource.Region? intersect_region (GtkSource.Region? region2);
513                 public GtkSource.Region? intersect_subregion (Gtk.TextIter _start, Gtk.TextIter _end);
514                 public bool is_empty ();
515                 public void subtract_region (GtkSource.Region? region_to_subtract);
516                 public void subtract_subregion (Gtk.TextIter _start, Gtk.TextIter _end);
517                 public string? to_string ();
518                 public Gtk.TextBuffer buffer { get; construct; }
519         }
520         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_search_context_get_type ()")]
521         public class SearchContext : GLib.Object {
522                 [CCode (has_construct_function = false)]
523                 public SearchContext (GtkSource.Buffer buffer, GtkSource.SearchSettings? settings);
524                 public bool backward (Gtk.TextIter iter, out Gtk.TextIter match_start, out Gtk.TextIter match_end, out bool has_wrapped_around);
525                 public async bool backward_async (Gtk.TextIter iter, GLib.Cancellable? cancellable, out Gtk.TextIter match_start, out Gtk.TextIter match_end, out bool has_wrapped_around) throws GLib.Error;
526                 public bool forward (Gtk.TextIter iter, out Gtk.TextIter match_start, out Gtk.TextIter match_end, out bool has_wrapped_around);
527                 public async bool forward_async (Gtk.TextIter iter, GLib.Cancellable? cancellable, out Gtk.TextIter match_start, out Gtk.TextIter match_end, out bool has_wrapped_around) throws GLib.Error;
528                 public unowned GtkSource.Buffer get_buffer ();
529                 public bool get_highlight ();
530                 public unowned GtkSource.Style get_match_style ();
531                 public int get_occurrence_position (Gtk.TextIter match_start, Gtk.TextIter match_end);
532                 public int get_occurrences_count ();
533                 public GLib.Error? get_regex_error ();
534                 public unowned GtkSource.SearchSettings get_settings ();
535                 public bool replace (Gtk.TextIter match_start, Gtk.TextIter match_end, string replace, int replace_length) throws GLib.Error;
536                 public uint replace_all (string replace, int replace_length) throws GLib.Error;
537                 public void set_highlight (bool highlight);
538                 public void set_match_style (GtkSource.Style? match_style);
539                 public GtkSource.Buffer buffer { get; construct; }
540                 public bool highlight { get; set construct; }
541                 public GtkSource.Style match_style { get; set construct; }
542                 public int occurrences_count { get; }
543                 public GLib.Error regex_error { owned get; }
544                 public GtkSource.SearchSettings settings { get; construct; }
545         }
546         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_search_settings_get_type ()")]
547         public class SearchSettings : GLib.Object {
548                 [CCode (has_construct_function = false)]
549                 public SearchSettings ();
550                 public bool get_at_word_boundaries ();
551                 public bool get_case_sensitive ();
552                 public bool get_regex_enabled ();
553                 public unowned string? get_search_text ();
554                 public bool get_wrap_around ();
555                 public void set_at_word_boundaries (bool at_word_boundaries);
556                 public void set_case_sensitive (bool case_sensitive);
557                 public void set_regex_enabled (bool regex_enabled);
558                 public void set_search_text (string? search_text);
559                 public void set_wrap_around (bool wrap_around);
560                 public bool at_word_boundaries { get; set construct; }
561                 public bool case_sensitive { get; set construct; }
562                 public bool regex_enabled { get; set construct; }
563                 public string search_text { get; set construct; }
564                 public bool wrap_around { get; set construct; }
565         }
566         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_snippet_get_type ()")]
567         public class Snippet : GLib.Object {
568                 [CCode (has_construct_function = false)]
569                 public Snippet (string? trigger, string? language_id);
570                 public void add_chunk (GtkSource.SnippetChunk chunk);
571                 public GtkSource.Snippet copy ();
572                 public unowned GtkSource.SnippetContext? get_context ();
573                 public unowned string get_description ();
574                 public int get_focus_position ();
575                 public unowned string get_language_id ();
576                 public uint get_n_chunks ();
577                 public unowned string get_name ();
578                 public unowned GtkSource.SnippetChunk get_nth_chunk (uint nth);
579                 public unowned string? get_trigger ();
580                 [CCode (has_construct_function = false)]
581                 [Version (since = "5.6")]
582                 public Snippet.parsed (string text) throws GLib.Error;
583                 public void set_description (string description);
584                 public void set_language_id (string language_id);
585                 public void set_name (string name);
586                 public void set_trigger (string trigger);
587                 [NoAccessorMethod]
588                 public Gtk.TextBuffer buffer { owned get; }
589                 public string description { get; set; }
590                 public int focus_position { get; }
591                 public string language_id { get; set; }
592                 public string name { get; set; }
593                 public string trigger { get; set; }
594         }
595         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_snippet_chunk_get_type ()")]
596         public class SnippetChunk : GLib.InitiallyUnowned {
597                 [CCode (has_construct_function = false)]
598                 public SnippetChunk ();
599                 public GtkSource.SnippetChunk copy ();
600                 public unowned GtkSource.SnippetContext get_context ();
601                 public int get_focus_position ();
602                 public unowned string? get_spec ();
603                 public unowned string get_text ();
604                 public bool get_text_set ();
605                 public unowned string get_tooltip_text ();
606                 public void set_context (GtkSource.SnippetContext context);
607                 public void set_focus_position (int focus_position);
608                 public void set_spec (string spec);
609                 public void set_text (string text);
610                 public void set_text_set (bool text_set);
611                 public void set_tooltip_text (string tooltip_text);
612                 public GtkSource.SnippetContext context { get; set; }
613                 public int focus_position { get; set; }
614                 public string spec { get; set; }
615                 public string text { get; set; }
616                 public bool text_set { get; set; }
617                 public string tooltip_text { get; set; }
618         }
619         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_snippet_context_get_type ()")]
620         public class SnippetContext : GLib.Object {
621                 [CCode (has_construct_function = false)]
622                 public SnippetContext ();
623                 public void clear_variables ();
624                 public string expand (string input);
625                 public unowned string? get_variable (string key);
626                 public void set_constant (string key, string value);
627                 public void set_line_prefix (string line_prefix);
628                 public void set_tab_width (int tab_width);
629                 public void set_use_spaces (bool use_spaces);
630                 public void set_variable (string key, string value);
631                 public signal void changed ();
632         }
633         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_snippet_manager_get_type ()")]
634         public class SnippetManager : GLib.Object {
635                 [CCode (has_construct_function = false)]
636                 protected SnippetManager ();
637                 public static unowned GtkSource.SnippetManager get_default ();
638                 [CCode (array_length = false, array_null_terminated = true)]
639                 public unowned string[] get_search_path ();
640                 public GtkSource.Snippet? get_snippet (string? group, string? language_id, string trigger);
641                 [Version (since = "5.6")]
642                 public unowned GLib.ListModel list_all ();
643                 [CCode (array_length = false, array_null_terminated = true)]
644                 public (unowned string)[] list_groups ();
645                 public GLib.ListModel list_matching (string? group, string? language_id, string? trigger_prefix);
646                 public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? dirs);
647                 [CCode (array_length = false, array_null_terminated = true)]
648                 public string[] search_path { get; set; }
649         }
650         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_space_drawer_get_type ()")]
651         public class SpaceDrawer : GLib.Object {
652                 [CCode (has_construct_function = false)]
653                 public SpaceDrawer ();
654                 public void bind_matrix_setting (GLib.Settings settings, string key, GLib.SettingsBindFlags flags);
655                 public bool get_enable_matrix ();
656                 public GLib.Variant get_matrix ();
657                 public GtkSource.SpaceTypeFlags get_types_for_locations (GtkSource.SpaceLocationFlags locations);
658                 public void set_enable_matrix (bool enable_matrix);
659                 public void set_matrix (GLib.Variant? matrix);
660                 public void set_types_for_locations (GtkSource.SpaceLocationFlags locations, GtkSource.SpaceTypeFlags types);
661                 public bool enable_matrix { get; set construct; }
662                 public GLib.Variant matrix { owned get; set construct; }
663         }
664         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_get_type ()")]
665         public class Style : GLib.Object {
666                 [CCode (has_construct_function = false)]
667                 protected Style ();
668                 public void apply (Gtk.TextTag tag);
669                 public GtkSource.Style copy ();
670                 [NoAccessorMethod]
671                 public string background { owned get; construct; }
672                 [NoAccessorMethod]
673                 public bool background_set { get; construct; }
674                 [NoAccessorMethod]
675                 public bool bold { get; construct; }
676                 [NoAccessorMethod]
677                 public bool bold_set { get; construct; }
678                 [NoAccessorMethod]
679                 public string foreground { owned get; construct; }
680                 [NoAccessorMethod]
681                 public bool foreground_set { get; construct; }
682                 [NoAccessorMethod]
683                 public bool italic { get; construct; }
684                 [NoAccessorMethod]
685                 public bool italic_set { get; construct; }
686                 [NoAccessorMethod]
687                 public string line_background { owned get; construct; }
688                 [NoAccessorMethod]
689                 public bool line_background_set { get; construct; }
690                 [NoAccessorMethod]
691                 public Pango.Underline pango_underline { get; construct; }
692                 [NoAccessorMethod]
693                 public string scale { owned get; construct; }
694                 [NoAccessorMethod]
695                 public bool scale_set { get; construct; }
696                 [NoAccessorMethod]
697                 public bool strikethrough { get; construct; }
698                 [NoAccessorMethod]
699                 public bool strikethrough_set { get; construct; }
700                 [NoAccessorMethod]
701                 public string underline_color { owned get; construct; }
702                 [NoAccessorMethod]
703                 public bool underline_color_set { get; construct; }
704                 [NoAccessorMethod]
705                 public bool underline_set { get; construct; }
706                 [NoAccessorMethod]
707                 public Pango.Weight weight { get; construct; }
708                 [NoAccessorMethod]
709                 public bool weight_set { get; construct; }
710         }
711         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_get_type ()")]
712         public class StyleScheme : GLib.Object {
713                 [CCode (has_construct_function = false)]
714                 protected StyleScheme ();
715                 [CCode (array_length = false, array_null_terminated = true)]
716                 public unowned string[]? get_authors ();
717                 public unowned string? get_description ();
718                 public unowned string? get_filename ();
719                 public unowned string get_id ();
720                 [Version (since = "5.4")]
721                 public unowned string? get_metadata (string name);
722                 public unowned string get_name ();
723                 public unowned GtkSource.Style? get_style (string style_id);
724                 public string description { get; }
725                 public string filename { get; }
726                 public string id { get; construct; }
727                 public string name { get; }
728         }
729         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_chooser_button_get_type ()")]
730         public class StyleSchemeChooserButton : Gtk.Button, Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget, GtkSource.StyleSchemeChooser {
731                 [CCode (has_construct_function = false, type = "GtkWidget*")]
732                 public StyleSchemeChooserButton ();
733         }
734         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_chooser_widget_get_type ()")]
735         public class StyleSchemeChooserWidget : Gtk.Widget, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, GtkSource.StyleSchemeChooser {
736                 [CCode (has_construct_function = false, type = "GtkWidget*")]
737                 public StyleSchemeChooserWidget ();
738         }
739         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_manager_get_type ()")]
740         public class StyleSchemeManager : GLib.Object {
741                 [CCode (has_construct_function = false)]
742                 public StyleSchemeManager ();
743                 public void append_search_path (string path);
744                 public void force_rescan ();
745                 public static unowned GtkSource.StyleSchemeManager get_default ();
746                 public unowned GtkSource.StyleScheme? get_scheme (string scheme_id);
747                 [CCode (array_length = false, array_null_terminated = true)]
748                 public unowned string[]? get_scheme_ids ();
749                 [CCode (array_length = false, array_null_terminated = true)]
750                 public unowned string[] get_search_path ();
751                 public void prepend_search_path (string path);
752                 public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? path);
753                 [CCode (array_length = false, array_null_terminated = true)]
754                 public string[] scheme_ids { get; }
755                 [CCode (array_length = false, array_null_terminated = true)]
756                 public string[] search_path { get; set; }
757         }
758         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_preview_get_type ()")]
759         [Version (since = "5.4")]
760         public class StyleSchemePreview : Gtk.Widget, Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget {
761                 [CCode (has_construct_function = false, type = "GtkWidget*")]
762                 public StyleSchemePreview (GtkSource.StyleScheme scheme);
763                 public unowned GtkSource.StyleScheme get_scheme ();
764                 public bool get_selected ();
765                 public void set_selected (bool selected);
766                 public GtkSource.StyleScheme scheme { get; construct; }
767                 public bool selected { get; set; }
768                 public signal void activate ();
769         }
770         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_tag_get_type ()")]
771         public class Tag : Gtk.TextTag {
772                 [CCode (has_construct_function = false, type = "GtkTextTag*")]
773                 public Tag (string? name);
774                 [NoAccessorMethod]
775                 public bool draw_spaces { get; set; }
776                 [NoAccessorMethod]
777                 public bool draw_spaces_set { get; set; }
778         }
779         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_view_get_type ()")]
780         public class View : Gtk.TextView, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Scrollable {
781                 [CCode (has_construct_function = false, type = "GtkWidget*")]
782                 public View ();
783                 public bool get_auto_indent ();
784                 public GtkSource.BackgroundPatternType get_background_pattern ();
785                 public unowned GtkSource.Completion get_completion ();
786                 public bool get_enable_snippets ();
787                 public unowned GtkSource.Gutter get_gutter (Gtk.TextWindowType window_type);
788                 public bool get_highlight_current_line ();
789                 public unowned GtkSource.Hover get_hover ();
790                 public bool get_indent_on_tab ();
791                 public int get_indent_width ();
792                 public unowned GtkSource.Indenter? get_indenter ();
793                 public bool get_insert_spaces_instead_of_tabs ();
794                 public unowned GtkSource.MarkAttributes get_mark_attributes (string category, int priority);
795                 public uint get_right_margin_position ();
796                 public bool get_show_line_marks ();
797                 public bool get_show_line_numbers ();
798                 public bool get_show_right_margin ();
799                 public bool get_smart_backspace ();
800                 public GtkSource.SmartHomeEndType get_smart_home_end ();
801                 public unowned GtkSource.SpaceDrawer get_space_drawer ();
802                 public uint get_tab_width ();
803                 public uint get_visual_column (Gtk.TextIter iter);
804                 public void indent_lines (Gtk.TextIter start, Gtk.TextIter end);
805                 public void set_auto_indent (bool enable);
806                 public void set_background_pattern (GtkSource.BackgroundPatternType background_pattern);
807                 public void set_enable_snippets (bool enable_snippets);
808                 public void set_highlight_current_line (bool highlight);
809                 public void set_indent_on_tab (bool enable);
810                 public void set_indent_width (int width);
811                 public void set_indenter (GtkSource.Indenter? indenter);
812                 public void set_insert_spaces_instead_of_tabs (bool enable);
813                 public void set_mark_attributes (string category, GtkSource.MarkAttributes attributes, int priority);
814                 public void set_right_margin_position (uint pos);
815                 public void set_show_line_marks (bool show);
816                 public void set_show_line_numbers (bool show);
817                 public void set_show_right_margin (bool show);
818                 public void set_smart_backspace (bool smart_backspace);
819                 public void set_smart_home_end (GtkSource.SmartHomeEndType smart_home_end);
820                 public void set_tab_width (uint width);
821                 public void unindent_lines (Gtk.TextIter start, Gtk.TextIter end);
822                 [CCode (has_construct_function = false, type = "GtkWidget*")]
823                 public View.with_buffer (GtkSource.Buffer buffer);
824                 public bool auto_indent { get; set; }
825                 public GtkSource.BackgroundPatternType background_pattern { get; set; }
826                 public GtkSource.Completion completion { get; }
827                 public bool enable_snippets { get; set; }
828                 public bool highlight_current_line { get; set; }
829                 public bool indent_on_tab { get; set; }
830                 public int indent_width { get; set; }
831                 public GtkSource.Indenter indenter { get; set; }
832                 public bool insert_spaces_instead_of_tabs { get; set; }
833                 public uint right_margin_position { get; set; }
834                 public bool show_line_marks { get; set; }
835                 public bool show_line_numbers { get; set; }
836                 public bool show_right_margin { get; set; }
837                 public bool smart_backspace { get; set; }
838                 public GtkSource.SmartHomeEndType smart_home_end { get; set; }
839                 public GtkSource.SpaceDrawer space_drawer { get; }
840                 public uint tab_width { get; set; }
841                 public signal void change_case (GtkSource.ChangeCaseType case_type);
842                 public signal void change_number (int count);
843                 public signal void join_lines ();
844                 public virtual signal void line_mark_activated (Gtk.TextIter iter, uint button, Gdk.ModifierType state, int n_presses);
845                 public virtual signal void move_lines (bool down);
846                 public signal void move_to_matching_bracket (bool extend_selection);
847                 public virtual signal void move_words (int step);
848                 [HasEmitter]
849                 public virtual signal void push_snippet (GtkSource.Snippet snippet, ref Gtk.TextIter location);
850                 public virtual signal void show_completion ();
851         }
852         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_vim_im_context_get_type ()")]
853         [Version (since = "5.4")]
854         public class VimIMContext : Gtk.IMContext {
855                 [CCode (has_construct_function = false, type = "GtkIMContext*")]
856                 public VimIMContext ();
857                 public unowned string get_command_bar_text ();
858                 public unowned string get_command_text ();
859                 public string command_bar_text { get; }
860                 public string command_text { get; }
861                 public signal void edit (GtkSource.View view, string? path);
862                 [HasEmitter]
863                 public signal bool execute_command (string command);
864                 public signal void format_text (Gtk.TextIter begin, Gtk.TextIter end);
865                 public signal void write (GtkSource.View view, string? path);
866         }
867         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_cname = "GtkSourceCompletionProposalInterface", type_id = "gtk_source_completion_proposal_get_type ()")]
868         public interface CompletionProposal : GLib.Object {
869                 [Version (since = "5.6")]
870                 public virtual string? get_typed_text ();
871         }
872         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_cname = "GtkSourceCompletionProviderInterface", type_id = "gtk_source_completion_provider_get_type ()")]
873         public interface CompletionProvider : GLib.Object {
874                 public abstract void activate (GtkSource.CompletionContext context, GtkSource.CompletionProposal proposal);
875                 public abstract void display (GtkSource.CompletionContext context, GtkSource.CompletionProposal proposal, GtkSource.CompletionCell cell);
876                 public virtual int get_priority (GtkSource.CompletionContext context);
877                 public virtual string? get_title ();
878                 public virtual bool is_trigger (Gtk.TextIter iter, unichar ch);
879                 public virtual bool key_activates (GtkSource.CompletionContext context, GtkSource.CompletionProposal proposal, uint keyval, Gdk.ModifierType state);
880                 public virtual GLib.GenericArray<GtkSource.CompletionProposal>? list_alternates (GtkSource.CompletionContext context, GtkSource.CompletionProposal proposal);
881                 public abstract async GLib.ListModel populate_async (GtkSource.CompletionContext context, GLib.Cancellable? cancellable) throws GLib.Error;
882                 public abstract void refilter (GtkSource.CompletionContext context, GLib.ListModel model);
883         }
884         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_cname = "GtkSourceHoverProviderInterface", type_id = "gtk_source_hover_provider_get_type ()")]
885         public interface HoverProvider : GLib.Object {
886                 [NoWrapper]
887                 public abstract bool populate (GtkSource.HoverContext context, GtkSource.HoverDisplay display) throws GLib.Error;
888                 public abstract async bool populate_async (GtkSource.HoverContext context, GtkSource.HoverDisplay display, GLib.Cancellable? cancellable) throws GLib.Error;
889         }
890         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_cname = "GtkSourceIndenterInterface", type_id = "gtk_source_indenter_get_type ()")]
891         public interface Indenter : GLib.Object {
892                 public abstract void indent (GtkSource.View view, ref Gtk.TextIter iter);
893                 public abstract bool is_trigger (GtkSource.View view, Gtk.TextIter location, Gdk.ModifierType state, uint keyval);
894         }
895         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_cname = "GtkSourceStyleSchemeChooserInterface", type_id = "gtk_source_style_scheme_chooser_get_type ()")]
896         public interface StyleSchemeChooser : GLib.Object {
897                 public abstract unowned GtkSource.StyleScheme get_style_scheme ();
898                 public abstract void set_style_scheme (GtkSource.StyleScheme scheme);
899                 public abstract GtkSource.StyleScheme style_scheme { get; set; }
900         }
901         [CCode (cheader_filename = "gtksourceview/gtksource.h", has_type_id = false)]
902         public struct RegionIter {
903                 public bool get_subregion (out Gtk.TextIter start, out Gtk.TextIter end);
904                 public bool is_end ();
905                 public bool next ();
906         }
907         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_BACKGROUND_PATTERN_TYPE_", type_id = "gtk_source_background_pattern_type_get_type ()")]
908         public enum BackgroundPatternType {
909                 NONE,
910                 GRID
911         }
912         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_BRACKET_MATCH_", type_id = "gtk_source_bracket_match_type_get_type ()")]
913         public enum BracketMatchType {
914                 NONE,
915                 OUT_OF_RANGE,
916                 NOT_FOUND,
917                 FOUND
918         }
919         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_CHANGE_CASE_", type_id = "gtk_source_change_case_type_get_type ()")]
920         public enum ChangeCaseType {
921                 LOWER,
922                 UPPER,
923                 TOGGLE,
924                 TITLE
925         }
926         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_COMPLETION_ACTIVATION_", type_id = "gtk_source_completion_activation_get_type ()")]
927         public enum CompletionActivation {
928                 NONE,
929                 INTERACTIVE,
930                 USER_REQUESTED
931         }
932         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_COMPLETION_COLUMN_", type_id = "gtk_source_completion_column_get_type ()")]
933         public enum CompletionColumn {
934                 ICON,
935                 BEFORE,
936                 TYPED_TEXT,
937                 AFTER,
938                 COMMENT,
939                 DETAILS
940         }
941         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_COMPRESSION_TYPE_", type_id = "gtk_source_compression_type_get_type ()")]
942         public enum CompressionType {
943                 NONE,
944                 GZIP
945         }
946         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_FILE_SAVER_FLAGS_", type_id = "gtk_source_file_saver_flags_get_type ()")]
947         [Flags]
948         public enum FileSaverFlags {
949                 NONE,
950                 IGNORE_INVALID_CHARS,
951                 IGNORE_MODIFICATION_TIME,
952                 CREATE_BACKUP
953         }
954         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_", type_id = "gtk_source_gutter_renderer_alignment_mode_get_type ()")]
955         public enum GutterRendererAlignmentMode {
956                 CELL,
957                 FIRST,
958                 LAST
959         }
960         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_NEWLINE_TYPE_", type_id = "gtk_source_newline_type_get_type ()")]
961         public enum NewlineType {
962                 LF,
963                 CR,
964                 CR_LF
965         }
966         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_SMART_HOME_END_", type_id = "gtk_source_smart_home_end_type_get_type ()")]
967         public enum SmartHomeEndType {
968                 DISABLED,
969                 BEFORE,
970                 AFTER,
971                 ALWAYS
972         }
973         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_SORT_FLAGS_", type_id = "gtk_source_sort_flags_get_type ()")]
974         [Flags]
975         public enum SortFlags {
976                 NONE,
977                 CASE_SENSITIVE,
978                 REVERSE_ORDER,
979                 REMOVE_DUPLICATES
980         }
981         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_SPACE_LOCATION_", type_id = "gtk_source_space_location_flags_get_type ()")]
982         [Flags]
983         public enum SpaceLocationFlags {
984                 NONE,
985                 LEADING,
986                 INSIDE_TEXT,
987                 TRAILING,
988                 ALL
989         }
990         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_SPACE_TYPE_", type_id = "gtk_source_space_type_flags_get_type ()")]
991         [Flags]
992         public enum SpaceTypeFlags {
993                 NONE,
994                 SPACE,
995                 TAB,
996                 NEWLINE,
997                 NBSP,
998                 ALL
999         }
1000         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_VIEW_GUTTER_POSITION_", type_id = "gtk_source_view_gutter_position_get_type ()")]
1001         public enum ViewGutterPosition {
1002                 LINES,
1003                 MARKS
1004         }
1005         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_FILE_LOADER_ERROR_", type_id = "gtk_source_file_loader_error_get_type ()")]
1006         public errordomain FileLoaderError {
1007                 TOO_BIG,
1008                 ENCODING_AUTO_DETECTION_FAILED,
1009                 CONVERSION_FALLBACK;
1010                 public static GLib.Quark quark ();
1011         }
1012         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_FILE_SAVER_ERROR_", type_id = "gtk_source_file_saver_error_get_type ()")]
1013         public errordomain FileSaverError {
1014                 INVALID_CHARS,
1015                 EXTERNALLY_MODIFIED;
1016                 public static GLib.Quark quark ();
1017         }
1018         [CCode (cheader_filename = "gtksourceview/gtksource.h", instance_pos = 1.9)]
1019         [Version (since = "5.2")]
1020         public delegate bool SchedulerCallback (int64 deadline);
1021         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1022         [Version (replacement = "Encoding.get_all")]
1023         public static GLib.SList<weak GtkSource.Encoding> encoding_get_all ();
1024         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1025         [Version (replacement = "Encoding.get_current")]
1026         public static unowned GtkSource.Encoding encoding_get_current ();
1027         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1028         [Version (replacement = "Encoding.get_default_candidates")]
1029         public static GLib.SList<weak GtkSource.Encoding> encoding_get_default_candidates ();
1030         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1031         [Version (replacement = "Encoding.get_from_charset")]
1032         public static unowned GtkSource.Encoding? encoding_get_from_charset (string charset);
1033         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1034         [Version (replacement = "Encoding.get_utf8")]
1035         public static unowned GtkSource.Encoding encoding_get_utf8 ();
1036         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1037         [Version (replacement = "FileLoaderError.quark")]
1038         public static GLib.Quark file_loader_error_quark ();
1039         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1040         [Version (replacement = "FileSaverError.quark")]
1041         public static GLib.Quark file_saver_error_quark ();
1042         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1043         public static void finalize ();
1044         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1045         public static void init ();
1046         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1047         [Version (since = "5.2")]
1048         public static size_t scheduler_add ([CCode (scope = "async")] GtkSource.SchedulerCallback callback);
1049         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1050         [Version (since = "5.2")]
1051         public static size_t scheduler_add_full (owned GtkSource.SchedulerCallback callback);
1052         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1053         [Version (since = "5.2")]
1054         public static void scheduler_remove (size_t handler_id);
1055         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1056         public static string utils_escape_search_text (string text);
1057         [CCode (cheader_filename = "gtksourceview/gtksource.h")]
1058         public static string utils_unescape_search_text (string text);
1059 }