1 /* gtksourceview-3.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gtk", gir_namespace = "GtkSource", gir_version = "3.0", lower_case_cprefix = "gtk_")]
4 [Version (deprecated = true, deprecated_since = "3.13.90", replacement = "bindings distributed with gtksourceview-3.0")]
6 namespace SourceUtils {
7 [CCode (cheader_filename = "gtksourceview/gtksource.h")]
8 [Version (since = "3.10")]
9 public static string escape_search_text (string text);
10 [CCode (cheader_filename = "gtksourceview/gtksource.h")]
11 [Version (since = "3.10")]
12 public static string unescape_search_text (string text);
14 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_buffer_get_type ()")]
15 [GIR (name = "Buffer")]
16 public class SourceBuffer : Gtk.TextBuffer {
17 [CCode (has_construct_function = false)]
18 public SourceBuffer (Gtk.TextTagTable? table);
19 [Version (since = "2.2")]
20 public bool backward_iter_to_source_mark (Gtk.TextIter iter, string? category);
21 public void begin_not_undoable_action ();
22 [Version (since = "3.12")]
23 public void change_case (Gtk.SourceChangeCaseType case_type, Gtk.TextIter start, Gtk.TextIter end);
24 [Version (since = "2.2")]
25 public unowned Gtk.SourceMark create_source_mark (string? name, string category, Gtk.TextIter where);
26 public void end_not_undoable_action ();
27 public void ensure_highlight (Gtk.TextIter start, Gtk.TextIter end);
28 [Version (since = "2.2")]
29 public bool forward_iter_to_source_mark (Gtk.TextIter iter, string? category);
30 [CCode (array_length = false, array_null_terminated = true)]
31 [Version (since = "2.10")]
32 public string[] get_context_classes_at_iter (Gtk.TextIter iter);
33 public bool get_highlight_matching_brackets ();
34 public bool get_highlight_syntax ();
35 [Version (since = "3.14")]
36 public bool get_implicit_trailing_newline ();
37 public unowned Gtk.SourceLanguage? get_language ();
38 public int get_max_undo_levels ();
39 [Version (since = "2.2")]
40 public GLib.SList<weak Gtk.SourceMark> get_source_marks_at_iter (Gtk.TextIter iter, string? category);
41 [Version (since = "2.2")]
42 public GLib.SList<weak Gtk.SourceMark> get_source_marks_at_line (int line, string? category);
43 public unowned Gtk.SourceStyleScheme? get_style_scheme ();
44 public unowned Gtk.SourceUndoManager? get_undo_manager ();
45 [Version (since = "2.10")]
46 public bool iter_backward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
47 [Version (since = "2.10")]
48 public bool iter_forward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
49 [Version (since = "2.10")]
50 public bool iter_has_context_class (Gtk.TextIter iter, string context_class);
51 [Version (since = "3.16")]
52 public void join_lines (Gtk.TextIter start, Gtk.TextIter end);
53 [Version (since = "2.2")]
54 public void remove_source_marks (Gtk.TextIter start, Gtk.TextIter end, string? category);
55 public void set_highlight_matching_brackets (bool highlight);
56 public void set_highlight_syntax (bool highlight);
57 [Version (since = "3.14")]
58 public void set_implicit_trailing_newline (bool implicit_trailing_newline);
59 public void set_language (Gtk.SourceLanguage? language);
60 public void set_max_undo_levels (int max_undo_levels);
61 public void set_style_scheme (Gtk.SourceStyleScheme? scheme);
62 public void set_undo_manager (Gtk.SourceUndoManager? manager);
63 [Version (since = "3.18")]
64 public void sort_lines (Gtk.TextIter start, Gtk.TextIter end, Gtk.SourceSortFlags flags, int column);
65 [CCode (has_construct_function = false)]
66 public SourceBuffer.with_language (Gtk.SourceLanguage language);
68 public bool can_redo { get; }
70 public bool can_undo { get; }
71 public bool highlight_matching_brackets { get; set; }
72 public bool highlight_syntax { get; set; }
73 [Version (since = "3.14")]
74 public bool implicit_trailing_newline { get; set construct; }
75 public Gtk.SourceLanguage language { get; set; }
76 public int max_undo_levels { get; set; }
77 public Gtk.SourceStyleScheme style_scheme { get; set; }
78 public Gtk.SourceUndoManager undo_manager { get; set construct; }
79 [Version (since = "2.12")]
80 public virtual signal void bracket_matched (Gtk.TextIter iter, Gtk.SourceBracketMatchType state);
81 public signal void highlight_updated (Gtk.TextIter start, Gtk.TextIter end);
83 public virtual signal void redo ();
84 public signal void source_mark_updated (Gtk.TextMark mark);
86 public virtual signal void undo ();
88 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_get_type ()")]
89 [GIR (name = "Completion")]
90 public class SourceCompletion : GLib.Object, Gtk.Buildable {
91 [CCode (has_construct_function = false)]
92 protected SourceCompletion ();
93 public bool add_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error;
94 public void block_interactive ();
95 public unowned Gtk.SourceCompletionContext create_context (Gtk.TextIter? position);
96 public unowned Gtk.SourceCompletionInfo get_info_window ();
97 public unowned GLib.List<Gtk.SourceCompletionProvider> get_providers ();
98 public unowned Gtk.SourceView? get_view ();
99 [Version (deprecated = true, deprecated_since = "3.8")]
100 public void move_window (Gtk.TextIter iter);
102 public virtual bool proposal_activated (Gtk.SourceCompletionProvider provider, Gtk.SourceCompletionProposal proposal);
103 public bool remove_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error;
104 [CCode (cname = "gtk_source_completion_show")]
105 public bool start (GLib.List<Gtk.SourceCompletionProvider>? providers, Gtk.SourceCompletionContext context);
106 public void unblock_interactive ();
108 public uint accelerators { get; set construct; }
110 public uint auto_complete_delay { get; set construct; }
112 public uint proposal_page_size { get; set construct; }
114 public uint provider_page_size { get; set construct; }
116 public bool remember_info_visibility { get; set construct; }
118 public bool select_on_show { get; set construct; }
120 public bool show_headers { get; set construct; }
122 public bool show_icons { get; set construct; }
123 public Gtk.SourceView view { get; construct; }
124 public virtual signal void activate_proposal ();
126 public virtual signal void hide ();
127 public virtual signal void move_cursor (Gtk.ScrollStep step, int num);
128 public virtual signal void move_page (Gtk.ScrollStep step, int num);
129 public virtual signal void populate_context (Gtk.SourceCompletionContext context);
130 public virtual signal void show ();
132 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_context_get_type ()")]
133 [GIR (name = "CompletionContext")]
134 public class SourceCompletionContext : GLib.InitiallyUnowned {
135 [CCode (has_construct_function = false)]
136 protected SourceCompletionContext ();
137 public void add_proposals (Gtk.SourceCompletionProvider provider, GLib.List<Gtk.SourceCompletionProposal>? proposals, bool finished);
138 public Gtk.SourceCompletionActivation get_activation ();
139 public bool get_iter (out Gtk.TextIter iter);
141 public Gtk.SourceCompletionActivation activation { get; set construct; }
143 public Gtk.SourceCompletion completion { owned get; construct; }
145 public Gtk.TextIter iter { get; set; }
146 public virtual signal void cancelled ();
148 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_info_get_type ()")]
149 [GIR (name = "CompletionInfo")]
150 public class SourceCompletionInfo : Gtk.Window, Atk.Implementor, Gtk.Buildable {
151 [CCode (has_construct_function = false)]
152 public SourceCompletionInfo ();
153 [Version (deprecated = true, deprecated_since = "3.8")]
154 public unowned Gtk.Widget get_widget ();
155 public void move_to_iter (Gtk.TextView view, Gtk.TextIter? iter);
156 [Version (deprecated = true, deprecated_since = "3.8")]
157 public void set_widget (Gtk.Widget? widget);
158 [Version (deprecated = true, deprecated_since = "3.10")]
159 public virtual signal void before_show ();
161 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_item_get_type ()")]
162 [GIR (name = "CompletionItem")]
163 public class SourceCompletionItem : GLib.Object, Gtk.SourceCompletionProposal {
164 [CCode (has_construct_function = false)]
165 public SourceCompletionItem (string label, string text, Gdk.Pixbuf? icon, string? info);
166 [CCode (has_construct_function = false)]
167 [Version (deprecated = true, deprecated_since = "3.10")]
168 public SourceCompletionItem.from_stock (string? label, string text, string stock, string? info);
169 [CCode (has_construct_function = false)]
170 public SourceCompletionItem.with_markup (string markup, string text, Gdk.Pixbuf? icon, string? info);
172 [Version (since = "3.18")]
173 public GLib.Icon gicon { owned get; set; }
175 public Gdk.Pixbuf icon { owned get; set; }
177 [Version (since = "3.18")]
178 public string icon_name { owned get; set; }
180 public string info { owned get; set; }
182 public string label { owned get; set; }
184 public string markup { owned get; set; }
186 public string text { owned get; set; }
188 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_words_get_type ()")]
189 [GIR (name = "CompletionWords")]
190 public class SourceCompletionWords : GLib.Object, Gtk.SourceCompletionProvider {
191 [CCode (has_construct_function = false)]
192 public SourceCompletionWords (string? name, Gdk.Pixbuf? icon);
193 public void register (Gtk.TextBuffer buffer);
194 public void unregister (Gtk.TextBuffer buffer);
196 [Version (since = "3.10")]
197 public Gtk.SourceCompletionActivation activation { get; set construct; }
199 public Gdk.Pixbuf icon { owned get; set construct; }
201 public int interactive_delay { get; set construct; }
203 public uint minimum_word_size { get; set construct; }
205 public string name { owned get; set construct; }
207 public int priority { get; set construct; }
209 public uint proposals_batch_size { get; set construct; }
211 public uint scan_batch_size { get; set construct; }
213 [CCode (cheader_filename = "gtksourceview/gtksource.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_source_encoding_get_type ()")]
215 [GIR (name = "Encoding")]
216 public class SourceEncoding {
217 [Version (since = "3.14")]
218 public Gtk.SourceEncoding copy ();
219 [CCode (cname = "gtk_source_encoding_get_all")]
220 [Version (since = "3.14")]
221 public static GLib.SList<weak Gtk.SourceEncoding> et_all ();
222 [CCode (cname = "gtk_source_encoding_get_current")]
223 [Version (since = "3.14")]
224 public static unowned Gtk.SourceEncoding et_current ();
225 [CCode (cname = "gtk_source_encoding_get_default_candidates")]
226 [Version (since = "3.18")]
227 public static GLib.SList<weak Gtk.SourceEncoding> et_default_candidates ();
228 [CCode (cname = "gtk_source_encoding_get_from_charset")]
229 [Version (since = "3.14")]
230 public static unowned Gtk.SourceEncoding? et_from_charset (string charset);
231 [CCode (cname = "gtk_source_encoding_get_utf8")]
232 [Version (since = "3.14")]
233 public static unowned Gtk.SourceEncoding et_utf8 ();
234 [Version (since = "3.14")]
236 [Version (since = "3.14")]
237 public unowned string get_charset ();
238 [Version (since = "3.14")]
239 public unowned string get_name ();
240 [Version (since = "3.14")]
241 public string to_string ();
243 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_get_type ()")]
244 [GIR (name = "File")]
245 public class SourceFile : GLib.Object {
246 [CCode (has_construct_function = false)]
247 [Version (since = "3.14")]
248 public SourceFile ();
249 [Version (since = "3.18")]
250 public void check_file_on_disk ();
251 [Version (since = "3.14")]
252 public Gtk.SourceCompressionType get_compression_type ();
253 [Version (since = "3.14")]
254 public unowned Gtk.SourceEncoding get_encoding ();
255 [Version (since = "3.14")]
256 public unowned GLib.File get_location ();
257 [Version (since = "3.14")]
258 public Gtk.SourceNewlineType get_newline_type ();
259 [Version (since = "3.18")]
260 public bool is_deleted ();
261 [Version (since = "3.18")]
262 public bool is_externally_modified ();
263 [Version (since = "3.18")]
264 public bool is_local ();
265 [Version (since = "3.18")]
266 public bool is_readonly ();
267 [Version (since = "3.14")]
268 public void set_location (GLib.File? location);
269 [Version (since = "3.14")]
270 public Gtk.SourceCompressionType compression_type { get; }
271 [Version (since = "3.14")]
272 public Gtk.SourceEncoding encoding { get; }
273 [Version (since = "3.14")]
274 public GLib.File location { get; set construct; }
275 [Version (since = "3.14")]
276 public Gtk.SourceNewlineType newline_type { get; }
278 [Version (since = "3.18")]
279 public bool read_only { get; }
281 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_loader_get_type ()")]
282 [GIR (name = "FileLoader")]
283 public class SourceFileLoader : GLib.Object {
284 [CCode (has_construct_function = false)]
285 [Version (since = "3.14")]
286 public SourceFileLoader (Gtk.SourceBuffer buffer, Gtk.SourceFile file);
287 [CCode (has_construct_function = false)]
288 [Version (since = "3.14")]
289 public SourceFileLoader.from_stream (Gtk.SourceBuffer buffer, Gtk.SourceFile file, GLib.InputStream stream);
290 [Version (since = "3.14")]
291 public unowned Gtk.SourceBuffer get_buffer ();
292 [Version (since = "3.14")]
293 public Gtk.SourceCompressionType get_compression_type ();
294 [Version (since = "3.14")]
295 public unowned Gtk.SourceEncoding get_encoding ();
296 [Version (since = "3.14")]
297 public unowned Gtk.SourceFile get_file ();
298 [Version (since = "3.14")]
299 public unowned GLib.InputStream? get_input_stream ();
300 [Version (since = "3.14")]
301 public unowned GLib.File? get_location ();
302 [Version (since = "3.14")]
303 public Gtk.SourceNewlineType get_newline_type ();
304 [Version (since = "3.14")]
305 public async bool load_async (int io_priority, GLib.Cancellable? cancellable, owned GLib.FileProgressCallback? progress_callback) throws GLib.Error;
306 [Version (since = "3.14")]
307 public void set_candidate_encodings (GLib.SList<Gtk.SourceEncoding> candidate_encodings);
308 [Version (since = "3.14")]
309 public Gtk.SourceBuffer buffer { get; construct; }
310 [Version (since = "3.14")]
311 public Gtk.SourceFile file { get; construct; }
312 [Version (since = "3.14")]
313 public GLib.InputStream input_stream { get; construct; }
314 [Version (since = "3.14")]
315 public GLib.File location { get; construct; }
317 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_saver_get_type ()")]
318 [GIR (name = "FileSaver")]
319 public class SourceFileSaver : GLib.Object {
320 [CCode (has_construct_function = false)]
321 [Version (since = "3.14")]
322 public SourceFileSaver (Gtk.SourceBuffer buffer, Gtk.SourceFile file);
323 [Version (since = "3.14")]
324 public unowned Gtk.SourceBuffer get_buffer ();
325 [Version (since = "3.14")]
326 public Gtk.SourceCompressionType get_compression_type ();
327 [Version (since = "3.14")]
328 public unowned Gtk.SourceEncoding get_encoding ();
329 [Version (since = "3.14")]
330 public unowned Gtk.SourceFile get_file ();
331 [Version (since = "3.14")]
332 public Gtk.SourceFileSaverFlags get_flags ();
333 [Version (since = "3.14")]
334 public unowned GLib.File get_location ();
335 [Version (since = "3.14")]
336 public Gtk.SourceNewlineType get_newline_type ();
337 [Version (since = "3.14")]
338 public async bool save_async (int io_priority, GLib.Cancellable? cancellable, owned GLib.FileProgressCallback? progress_callback) throws GLib.Error;
339 [Version (since = "3.14")]
340 public void set_compression_type (Gtk.SourceCompressionType compression_type);
341 [Version (since = "3.14")]
342 public void set_encoding (Gtk.SourceEncoding? encoding);
343 [Version (since = "3.14")]
344 public void set_flags (Gtk.SourceFileSaverFlags flags);
345 [Version (since = "3.14")]
346 public void set_newline_type (Gtk.SourceNewlineType newline_type);
347 [CCode (has_construct_function = false)]
348 [Version (since = "3.14")]
349 public SourceFileSaver.with_target (Gtk.SourceBuffer buffer, Gtk.SourceFile file, GLib.File target_location);
350 [Version (since = "3.14")]
351 public Gtk.SourceBuffer buffer { get; construct; }
352 [Version (since = "3.14")]
353 public Gtk.SourceCompressionType compression_type { get; set construct; }
354 [Version (since = "3.14")]
355 public Gtk.SourceEncoding encoding { get; set construct; }
356 [Version (since = "3.14")]
357 public Gtk.SourceFile file { get; construct; }
358 [Version (since = "3.14")]
359 public Gtk.SourceFileSaverFlags flags { get; set construct; }
360 [Version (since = "3.14")]
361 public GLib.File location { get; construct; }
362 [Version (since = "3.14")]
363 public Gtk.SourceNewlineType newline_type { get; set construct; }
365 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_get_type ()")]
366 [GIR (name = "Gutter")]
367 public class SourceGutter : GLib.Object {
368 [CCode (has_construct_function = false)]
369 protected SourceGutter ();
370 [Version (deprecated = true, deprecated_since = "3.12")]
371 public void get_padding (int xpad, int ypad);
372 public unowned Gtk.SourceGutterRenderer? get_renderer_at_pos (int x, int y);
373 [Version (deprecated = true, deprecated_since = "3.12", since = "2.8")]
374 public unowned Gdk.Window get_window ();
375 [Version (since = "3.0")]
376 public bool insert (Gtk.SourceGutterRenderer renderer, int position);
377 [Version (since = "2.8")]
378 public void queue_draw ();
379 [Version (since = "2.8")]
380 public void remove (Gtk.SourceGutterRenderer renderer);
381 [Version (since = "2.8")]
382 public void reorder (Gtk.SourceGutterRenderer renderer, int position);
383 [Version (deprecated = true, deprecated_since = "3.12")]
384 public void set_padding (int xpad, int ypad);
386 public Gtk.SourceView view { owned get; construct; }
388 public Gtk.TextWindowType window_type { get; construct; }
390 [Version (deprecated = true, deprecated_since = "3.12")]
391 public int xpad { get; set construct; }
393 [Version (deprecated = true, deprecated_since = "3.12")]
394 public int ypad { get; set construct; }
396 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_get_type ()")]
397 [GIR (name = "GutterRenderer")]
398 public abstract class SourceGutterRenderer : GLib.InitiallyUnowned {
399 [CCode (has_construct_function = false)]
400 protected SourceGutterRenderer ();
401 public virtual void begin (Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.TextIter start, Gtk.TextIter end);
403 public virtual void change_buffer (Gtk.TextBuffer? old_buffer);
405 public virtual void change_view (Gtk.TextView? old_view);
406 public virtual void draw (Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.TextIter start, Gtk.TextIter end, Gtk.SourceGutterRendererState state);
407 public virtual void end ();
408 public void get_alignment (out float xalign, out float yalign);
409 public Gtk.SourceGutterRendererAlignmentMode get_alignment_mode ();
410 public bool get_background (out Gdk.RGBA color);
411 public void get_padding (out int xpad, out int ypad);
412 public int get_size ();
413 public unowned Gtk.TextView get_view ();
414 public bool get_visible ();
415 public Gtk.TextWindowType get_window_type ();
416 public void set_alignment (float xalign, float yalign);
417 public void set_alignment_mode (Gtk.SourceGutterRendererAlignmentMode mode);
418 public void set_background (Gdk.RGBA? color);
419 public void set_padding (int xpad, int ypad);
420 public void set_size (int size);
421 public void set_visible (bool visible);
422 public Gtk.SourceGutterRendererAlignmentMode alignment_mode { get; set construct; }
424 public Gdk.RGBA background_rgba { get; set; }
426 public bool background_set { get; set construct; }
427 public int size { get; set construct; }
428 public Gtk.TextView view { get; }
429 public bool visible { get; set construct; }
430 public Gtk.TextWindowType window_type { get; }
432 public float xalign { get; set construct; }
434 public int xpad { get; set construct; }
436 public float yalign { get; set construct; }
438 public int ypad { get; set construct; }
440 public virtual signal void activate (Gtk.TextIter iter, Gdk.Rectangle area, Gdk.Event event);
442 public virtual signal bool query_activatable (Gtk.TextIter iter, Gdk.Rectangle area, Gdk.Event event);
444 public virtual signal void query_data (Gtk.TextIter start, Gtk.TextIter end, Gtk.SourceGutterRendererState state);
446 public virtual signal bool query_tooltip (Gtk.TextIter iter, Gdk.Rectangle area, int x, int y, Gtk.Tooltip tooltip);
448 public virtual signal void queue_draw ();
450 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_pixbuf_get_type ()")]
451 [GIR (name = "GutterRendererPixbuf")]
452 public class SourceGutterRendererPixbuf : Gtk.SourceGutterRenderer {
453 [CCode (has_construct_function = false, type = "GtkSourceGutterRenderer*")]
454 public SourceGutterRendererPixbuf ();
455 public unowned GLib.Icon get_gicon ();
456 public unowned string get_icon_name ();
457 public unowned Gdk.Pixbuf get_pixbuf ();
458 [Version (deprecated = true, deprecated_since = "3.10")]
459 public unowned string get_stock_id ();
460 public void set_gicon (GLib.Icon? icon);
461 public void set_icon_name (string? icon_name);
462 public void set_pixbuf (Gdk.Pixbuf? pixbuf);
463 [Version (deprecated = true, deprecated_since = "3.10")]
464 public void set_stock_id (string? stock_id);
465 public GLib.Icon gicon { get; set; }
466 public string icon_name { get; set; }
467 public Gdk.Pixbuf pixbuf { get; set; }
468 [Version (deprecated = true, deprecated_since = "3.10")]
469 public string stock_id { get; set; }
471 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_text_get_type ()")]
472 [GIR (name = "GutterRendererText")]
473 public class SourceGutterRendererText : Gtk.SourceGutterRenderer {
474 [CCode (has_construct_function = false, type = "GtkSourceGutterRenderer*")]
475 public SourceGutterRendererText ();
476 public void measure (string text, out int width, out int height);
477 public void measure_markup (string markup, out int width, out int height);
478 public void set_markup (string markup, int length);
479 public void set_text (string text, int length);
481 public string markup { owned get; set construct; }
483 public string text { owned get; set construct; }
485 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_language_get_type ()")]
486 [GIR (name = "Language")]
487 public class SourceLanguage : GLib.Object {
488 [CCode (has_construct_function = false)]
489 protected SourceLanguage ();
490 [CCode (array_length = false, array_null_terminated = true)]
491 public string[]? get_globs ();
492 public bool get_hidden ();
493 public unowned string get_id ();
494 public unowned string? get_metadata (string name);
495 [CCode (array_length = false, array_null_terminated = true)]
496 public string[]? get_mime_types ();
497 public unowned string get_name ();
498 public unowned string get_section ();
499 [Version (since = "3.4")]
500 public unowned string? get_style_fallback (string style_id);
501 [CCode (array_length = false, array_null_terminated = true)]
502 public string[]? get_style_ids ();
503 public unowned string? get_style_name (string style_id);
504 public bool hidden { get; }
505 public string id { get; }
506 public string name { get; }
507 public string section { get; }
509 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_language_manager_get_type ()")]
510 [GIR (name = "LanguageManager")]
511 public class SourceLanguageManager : GLib.Object {
512 [CCode (has_construct_function = false)]
513 public SourceLanguageManager ();
514 public static unowned Gtk.SourceLanguageManager get_default ();
515 public unowned Gtk.SourceLanguage? get_language (string id);
516 [CCode (array_length = false, array_null_terminated = true)]
517 public unowned string[]? get_language_ids ();
518 [CCode (array_length = false, array_null_terminated = true)]
519 public unowned string[] get_search_path ();
520 [Version (since = "2.4")]
521 public unowned Gtk.SourceLanguage? guess_language (string? filename, string? content_type);
522 public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? dirs);
523 [CCode (array_length = false, array_null_terminated = true)]
524 public string[] language_ids { get; }
525 [CCode (array_length = false, array_null_terminated = true)]
526 public string[] search_path { get; set; }
528 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_map_get_type ()")]
530 public class SourceMap : Gtk.SourceView, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
531 [CCode (has_construct_function = false, type = "GtkWidget*")]
532 [Version (since = "3.18")]
534 [Version (since = "3.18")]
535 public unowned Gtk.SourceView? get_view ();
536 [Version (since = "3.18")]
537 public void set_view (Gtk.SourceView view);
539 public Pango.FontDescription font_desc { owned get; set; }
540 public Gtk.SourceView view { get; set; }
542 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_mark_get_type ()")]
543 [GIR (name = "Mark")]
544 public class SourceMark : Gtk.TextMark {
545 [CCode (has_construct_function = false)]
546 [Version (since = "2.2")]
547 public SourceMark (string name, string category);
548 [Version (since = "2.2")]
549 public unowned string get_category ();
550 [Version (since = "2.2")]
551 public unowned Gtk.SourceMark? next (string? category);
552 [Version (since = "2.2")]
553 public unowned Gtk.SourceMark? prev (string category);
554 public string category { get; construct; }
556 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_mark_attributes_get_type ()")]
557 [GIR (name = "MarkAttributes")]
558 public class SourceMarkAttributes : GLib.Object {
559 [CCode (has_construct_function = false)]
560 public SourceMarkAttributes ();
561 public bool get_background (out Gdk.RGBA background);
562 public unowned GLib.Icon get_gicon ();
563 public unowned string get_icon_name ();
564 public unowned Gdk.Pixbuf get_pixbuf ();
565 [Version (deprecated = true, deprecated_since = "3.10")]
566 public unowned string get_stock_id ();
567 public string get_tooltip_markup (Gtk.SourceMark mark);
568 public string get_tooltip_text (Gtk.SourceMark mark);
569 public unowned Gdk.Pixbuf render_icon (Gtk.Widget widget, int size);
570 public void set_background (Gdk.RGBA background);
571 public void set_gicon (GLib.Icon gicon);
572 public void set_icon_name (string icon_name);
573 public void set_pixbuf (Gdk.Pixbuf pixbuf);
574 [Version (deprecated = true, deprecated_since = "3.10")]
575 public void set_stock_id (string stock_id);
577 public Gdk.RGBA background { get; set; }
578 public GLib.Icon gicon { get; set; }
579 public string icon_name { get; set; }
580 public Gdk.Pixbuf pixbuf { get; set; }
581 [Version (deprecated = true, deprecated_since = "3.10")]
582 public string stock_id { get; set; }
583 public signal string query_tooltip_markup (Gtk.SourceMark mark);
584 public signal string query_tooltip_text (Gtk.SourceMark mark);
586 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_print_compositor_get_type ()")]
587 [GIR (name = "PrintCompositor")]
588 public class SourcePrintCompositor : GLib.Object {
589 [CCode (has_construct_function = false)]
590 [Version (since = "2.2")]
591 public SourcePrintCompositor (Gtk.SourceBuffer buffer);
592 public void draw_page (Gtk.PrintContext context, int page_nr);
593 [CCode (has_construct_function = false)]
594 [Version (since = "2.2")]
595 public SourcePrintCompositor.from_view (Gtk.SourceView view);
596 [Version (since = "2.2")]
597 public string get_body_font_name ();
598 [Version (since = "2.2")]
599 public double get_bottom_margin (Gtk.Unit unit);
600 [Version (since = "2.2")]
601 public unowned Gtk.SourceBuffer get_buffer ();
602 [Version (since = "2.2")]
603 public string get_footer_font_name ();
604 [Version (since = "2.2")]
605 public string get_header_font_name ();
606 [Version (since = "2.2")]
607 public bool get_highlight_syntax ();
608 [Version (since = "2.2")]
609 public double get_left_margin (Gtk.Unit unit);
610 [Version (since = "2.2")]
611 public string get_line_numbers_font_name ();
612 [Version (since = "2.2")]
613 public int get_n_pages ();
614 [Version (since = "2.2")]
615 public double get_pagination_progress ();
616 [Version (since = "2.2")]
617 public bool get_print_footer ();
618 [Version (since = "2.2")]
619 public bool get_print_header ();
620 [Version (since = "2.2")]
621 public uint get_print_line_numbers ();
622 [Version (since = "2.2")]
623 public double get_right_margin (Gtk.Unit unit);
624 [Version (since = "2.2")]
625 public uint get_tab_width ();
626 [Version (since = "2.2")]
627 public double get_top_margin (Gtk.Unit unit);
628 [Version (since = "2.2")]
629 public Gtk.WrapMode get_wrap_mode ();
630 [Version (since = "2.2")]
631 public bool paginate (Gtk.PrintContext context);
632 [Version (since = "2.2")]
633 public void set_body_font_name (string font_name);
634 [Version (since = "2.2")]
635 public void set_bottom_margin (double margin, Gtk.Unit unit);
636 [Version (since = "2.2")]
637 public void set_footer_font_name (string? font_name);
638 [Version (since = "2.2")]
639 public void set_footer_format (bool separator, string? left, string? center, string? right);
640 [Version (since = "2.2")]
641 public void set_header_font_name (string? font_name);
642 [Version (since = "2.2")]
643 public void set_header_format (bool separator, string? left, string? center, string? right);
644 [Version (since = "2.2")]
645 public void set_highlight_syntax (bool highlight);
646 [Version (since = "2.2")]
647 public void set_left_margin (double margin, Gtk.Unit unit);
648 [Version (since = "2.2")]
649 public void set_line_numbers_font_name (string? font_name);
650 [Version (since = "2.2")]
651 public void set_print_footer (bool print);
652 [Version (since = "2.2")]
653 public void set_print_header (bool print);
654 [Version (since = "2.2")]
655 public void set_print_line_numbers (uint interval);
656 [Version (since = "2.2")]
657 public void set_right_margin (double margin, Gtk.Unit unit);
658 [Version (since = "2.2")]
659 public void set_tab_width (uint width);
660 [Version (since = "2.2")]
661 public void set_top_margin (double margin, Gtk.Unit unit);
662 [Version (since = "2.2")]
663 public void set_wrap_mode (Gtk.WrapMode wrap_mode);
664 [Version (since = "2.2")]
665 public string body_font_name { owned get; set; }
666 [Version (since = "2.2")]
667 public Gtk.SourceBuffer buffer { get; construct; }
668 [Version (since = "2.2")]
669 public string footer_font_name { owned get; set; }
670 [Version (since = "2.2")]
671 public string header_font_name { owned get; set; }
672 [Version (since = "2.2")]
673 public bool highlight_syntax { get; set; }
674 [Version (since = "2.2")]
675 public string line_numbers_font_name { owned get; set; }
676 [Version (since = "2.2")]
677 public int n_pages { get; }
678 [Version (since = "2.2")]
679 public bool print_footer { get; set; }
680 [Version (since = "2.2")]
681 public bool print_header { get; set; }
682 [Version (since = "2.2")]
683 public uint print_line_numbers { get; set; }
684 [Version (since = "2.2")]
685 public uint tab_width { get; set; }
686 [Version (since = "2.2")]
687 public Gtk.WrapMode wrap_mode { get; set; }
689 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_search_context_get_type ()")]
690 [GIR (name = "SearchContext")]
691 public class SourceSearchContext : GLib.Object {
692 [CCode (has_construct_function = false)]
693 [Version (since = "3.10")]
694 public SourceSearchContext (Gtk.SourceBuffer buffer, Gtk.SourceSearchSettings? settings);
695 [Version (since = "3.10")]
696 public bool backward (Gtk.TextIter iter, out Gtk.TextIter match_start, out Gtk.TextIter match_end);
697 [Version (since = "3.10")]
698 public async bool backward_async (Gtk.TextIter iter, GLib.Cancellable? cancellable, out Gtk.TextIter match_start, out Gtk.TextIter match_end) throws GLib.Error;
699 [Version (since = "3.10")]
700 public bool forward (Gtk.TextIter iter, out Gtk.TextIter match_start, out Gtk.TextIter match_end);
701 [Version (since = "3.10")]
702 public async bool forward_async (Gtk.TextIter iter, GLib.Cancellable? cancellable, out Gtk.TextIter match_start, out Gtk.TextIter match_end) throws GLib.Error;
703 [Version (since = "3.10")]
704 public unowned Gtk.SourceBuffer get_buffer ();
705 [Version (since = "3.10")]
706 public bool get_highlight ();
707 [Version (since = "3.16")]
708 public unowned Gtk.SourceStyle get_match_style ();
709 [Version (since = "3.10")]
710 public int get_occurrence_position (Gtk.TextIter match_start, Gtk.TextIter match_end);
711 [Version (since = "3.10")]
712 public int get_occurrences_count ();
713 [Version (since = "3.10")]
714 public GLib.Error? get_regex_error ();
715 [Version (since = "3.10")]
716 public unowned Gtk.SourceSearchSettings get_settings ();
717 [Version (since = "3.10")]
718 public bool replace (Gtk.TextIter match_start, Gtk.TextIter match_end, string replace, int replace_length) throws GLib.Error;
719 [Version (since = "3.10")]
720 public uint replace_all (string replace, int replace_length) throws GLib.Error;
721 [Version (since = "3.10")]
722 public void set_highlight (bool highlight);
723 [Version (since = "3.16")]
724 public void set_match_style (Gtk.SourceStyle? match_style);
725 [Version (since = "3.10")]
726 public void set_settings (Gtk.SourceSearchSettings? settings);
727 [Version (since = "3.10")]
728 public Gtk.SourceBuffer buffer { get; construct; }
729 [Version (since = "3.10")]
730 public bool highlight { get; set construct; }
731 [Version (since = "3.16")]
732 public Gtk.SourceStyle match_style { get; set construct; }
733 [Version (since = "3.10")]
734 public int occurrences_count { get; }
735 [Version (since = "3.10")]
736 public GLib.Error? regex_error { owned get; }
737 [Version (since = "3.10")]
738 public Gtk.SourceSearchSettings settings { get; set construct; }
740 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_search_settings_get_type ()")]
741 [GIR (name = "SearchSettings")]
742 public class SourceSearchSettings : GLib.Object {
743 [CCode (has_construct_function = false)]
744 [Version (since = "3.10")]
745 public SourceSearchSettings ();
746 [Version (since = "3.10")]
747 public bool get_at_word_boundaries ();
748 [Version (since = "3.10")]
749 public bool get_case_sensitive ();
750 [Version (since = "3.10")]
751 public bool get_regex_enabled ();
752 [Version (since = "3.10")]
753 public unowned string? get_search_text ();
754 [Version (since = "3.10")]
755 public bool get_wrap_around ();
756 [Version (since = "3.10")]
757 public void set_at_word_boundaries (bool at_word_boundaries);
758 [Version (since = "3.10")]
759 public void set_case_sensitive (bool case_sensitive);
760 [Version (since = "3.10")]
761 public void set_regex_enabled (bool regex_enabled);
762 [Version (since = "3.10")]
763 public void set_search_text (string? search_text);
764 [Version (since = "3.10")]
765 public void set_wrap_around (bool wrap_around);
766 [Version (since = "3.10")]
767 public bool at_word_boundaries { get; set construct; }
768 [Version (since = "3.10")]
769 public bool case_sensitive { get; set construct; }
770 [Version (since = "3.10")]
771 public bool regex_enabled { get; set construct; }
772 [Version (since = "3.10")]
773 public string search_text { get; set construct; }
774 [Version (since = "3.10")]
775 public bool wrap_around { get; set construct; }
777 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_get_type ()")]
778 [GIR (name = "Style")]
779 public class SourceStyle : GLib.Object {
780 [CCode (has_construct_function = false)]
781 protected SourceStyle ();
782 [Version (since = "2.0")]
783 public Gtk.SourceStyle copy ();
785 public string background { owned get; construct; }
787 public bool background_set { get; construct; }
789 public bool bold { get; construct; }
791 public bool bold_set { get; construct; }
793 public string foreground { owned get; construct; }
795 public bool foreground_set { get; construct; }
797 public bool italic { get; construct; }
799 public bool italic_set { get; construct; }
801 public string line_background { owned get; construct; }
803 public bool line_background_set { get; construct; }
805 public Pango.Underline pango_underline { get; construct; }
807 public string scale { owned get; construct; }
809 public bool scale_set { get; construct; }
811 public bool strikethrough { get; construct; }
813 public bool strikethrough_set { get; construct; }
815 [Version (deprecated = true, deprecated_since = "3.18")]
816 public bool underline { get; construct; }
818 public string underline_color { owned get; construct; }
820 public bool underline_color_set { get; construct; }
822 public bool underline_set { get; construct; }
824 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_get_type ()")]
825 [GIR (name = "StyleScheme")]
826 public class SourceStyleScheme : GLib.Object {
827 [CCode (has_construct_function = false)]
828 protected SourceStyleScheme ();
829 [CCode (array_length = false, array_null_terminated = true)]
830 [Version (since = "2.0")]
831 public unowned string[]? get_authors ();
832 [Version (since = "2.0")]
833 public unowned string? get_description ();
834 [Version (since = "2.0")]
835 public unowned string? get_filename ();
836 [Version (since = "2.0")]
837 public unowned string get_id ();
838 [Version (since = "2.0")]
839 public unowned string get_name ();
840 [Version (since = "2.0")]
841 public unowned Gtk.SourceStyle? get_style (string style_id);
842 public string description { get; }
843 public string filename { get; }
844 public string id { get; construct; }
845 public string name { get; }
847 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_chooser_button_get_type ()")]
848 [GIR (name = "StyleSchemeChooserButton")]
849 public class SourceStyleSchemeChooserButton : Gtk.Button, Atk.Implementor, Gtk.Actionable, Gtk.Activatable, Gtk.Buildable, Gtk.SourceStyleSchemeChooser {
850 [CCode (has_construct_function = false, type = "GtkWidget*")]
851 [Version (since = "3.16")]
852 public SourceStyleSchemeChooserButton ();
854 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_chooser_widget_get_type ()")]
855 [GIR (name = "StyleSchemeChooserWidget")]
856 public class SourceStyleSchemeChooserWidget : Gtk.Bin, Atk.Implementor, Gtk.Buildable, Gtk.SourceStyleSchemeChooser {
857 [CCode (has_construct_function = false, type = "GtkWidget*")]
858 [Version (since = "3.16")]
859 public SourceStyleSchemeChooserWidget ();
861 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_manager_get_type ()")]
862 [GIR (name = "StyleSchemeManager")]
863 public class SourceStyleSchemeManager : GLib.Object {
864 [CCode (has_construct_function = false)]
865 public SourceStyleSchemeManager ();
866 public void append_search_path (string path);
867 public void force_rescan ();
868 public static unowned Gtk.SourceStyleSchemeManager get_default ();
869 public unowned Gtk.SourceStyleScheme get_scheme (string scheme_id);
870 [CCode (array_length = false, array_null_terminated = true)]
871 public unowned string[]? get_scheme_ids ();
872 [CCode (array_length = false, array_null_terminated = true)]
873 public unowned string[] get_search_path ();
874 public void prepend_search_path (string path);
875 public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? path);
876 [CCode (array_length = false, array_null_terminated = true)]
877 public string[] scheme_ids { get; }
878 [CCode (array_length = false, array_null_terminated = true)]
879 public string[] search_path { get; set; }
881 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_tag_get_type ()")]
883 public class SourceTag : Gtk.TextTag {
884 [CCode (has_construct_function = false, type = "GtkTextTag*")]
885 [Version (since = "3.20")]
886 public SourceTag (string? name);
888 [Version (since = "3.20")]
889 public bool draw_spaces { get; set; }
891 [Version (since = "3.20")]
892 public bool draw_spaces_set { get; set; }
894 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_view_get_type ()")]
895 [GIR (name = "View")]
896 public class SourceView : Gtk.TextView, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
897 [CCode (has_construct_function = false, type = "GtkWidget*")]
898 public SourceView ();
899 public bool get_auto_indent ();
900 [Version (since = "3.16")]
901 public Gtk.SourceBackgroundPatternType get_background_pattern ();
902 public unowned Gtk.SourceCompletion get_completion ();
903 public Gtk.SourceDrawSpacesFlags get_draw_spaces ();
904 [Version (since = "2.8")]
905 public unowned Gtk.SourceGutter get_gutter (Gtk.TextWindowType window_type);
906 public bool get_highlight_current_line ();
907 public bool get_indent_on_tab ();
908 public int get_indent_width ();
909 public bool get_insert_spaces_instead_of_tabs ();
910 public unowned Gtk.SourceMarkAttributes get_mark_attributes (string category, int priority);
911 public uint get_right_margin_position ();
912 [Version (since = "2.2")]
913 public bool get_show_line_marks ();
914 public bool get_show_line_numbers ();
915 public bool get_show_right_margin ();
916 [Version (since = "3.18")]
917 public bool get_smart_backspace ();
918 public Gtk.SourceSmartHomeEndType get_smart_home_end ();
919 public uint get_tab_width ();
920 public uint get_visual_column (Gtk.TextIter iter);
921 [Version (since = "3.16")]
922 public void indent_lines (Gtk.TextIter start, Gtk.TextIter end);
923 public void set_auto_indent (bool enable);
924 [Version (since = "3.16")]
925 public void set_background_pattern (Gtk.SourceBackgroundPatternType background_pattern);
926 public void set_draw_spaces (Gtk.SourceDrawSpacesFlags flags);
927 public void set_highlight_current_line (bool highlight);
928 public void set_indent_on_tab (bool enable);
929 public void set_indent_width (int width);
930 public void set_insert_spaces_instead_of_tabs (bool enable);
931 public void set_mark_attributes (string category, Gtk.SourceMarkAttributes attributes, int priority);
932 public void set_right_margin_position (uint pos);
933 [Version (since = "2.2")]
934 public void set_show_line_marks (bool show);
935 public void set_show_line_numbers (bool show);
936 public void set_show_right_margin (bool show);
937 [Version (since = "3.18")]
938 public void set_smart_backspace (bool smart_backspace);
939 public void set_smart_home_end (Gtk.SourceSmartHomeEndType smart_home_end);
940 public void set_tab_width (uint width);
941 [Version (since = "3.16")]
942 public void unindent_lines (Gtk.TextIter start, Gtk.TextIter end);
943 [CCode (has_construct_function = false, type = "GtkWidget*")]
944 public SourceView.with_buffer (Gtk.SourceBuffer buffer);
945 public bool auto_indent { get; set; }
946 [Version (since = "3.16")]
947 public Gtk.SourceBackgroundPatternType background_pattern { get; set; }
948 public Gtk.SourceCompletion completion { get; }
949 [Version (since = "2.4")]
950 public Gtk.SourceDrawSpacesFlags draw_spaces { get; set; }
951 public bool highlight_current_line { get; set; }
952 public bool indent_on_tab { get; set; }
953 public int indent_width { get; set; }
954 public bool insert_spaces_instead_of_tabs { get; set; }
955 public uint right_margin_position { get; set; }
956 public bool show_line_marks { get; set; }
957 public bool show_line_numbers { get; set; }
958 public bool show_right_margin { get; set; }
959 [Version (since = "3.18")]
960 public bool smart_backspace { get; set; }
961 [Version (since = "2.0")]
962 public Gtk.SourceSmartHomeEndType smart_home_end { get; set; }
963 public uint tab_width { get; set; }
964 [Version (since = "3.16")]
965 public signal void change_case (Gtk.SourceChangeCaseType case_type);
966 [Version (since = "3.16")]
967 public signal void change_number (int count);
968 [Version (since = "3.16")]
969 public signal void join_lines ();
970 public virtual signal void line_mark_activated (Gtk.TextIter iter, Gdk.Event event);
971 [Version (since = "2.10")]
972 public virtual signal void move_lines (bool copy, int step);
973 [Version (since = "3.16")]
974 public signal void move_to_matching_bracket (bool extend_selection);
975 [Version (since = "3.0")]
976 public virtual signal void move_words (int step);
977 public virtual signal void redo ();
978 public virtual signal void show_completion ();
979 public virtual signal void undo ();
981 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_proposal_get_type ()")]
982 [GIR (name = "CompletionProposal")]
983 public interface SourceCompletionProposal : GLib.Object {
984 public virtual bool equal (Gtk.SourceCompletionProposal other);
985 [Version (since = "3.18")]
986 public abstract unowned GLib.Icon? get_gicon ();
987 public virtual unowned Gdk.Pixbuf? get_icon ();
988 [Version (since = "3.18")]
989 public abstract unowned string? get_icon_name ();
990 public abstract string? get_info ();
991 public abstract string get_label ();
992 public abstract string get_markup ();
993 public abstract string get_text ();
994 public virtual uint hash ();
996 public virtual signal void changed ();
998 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_provider_get_type ()")]
999 [GIR (name = "CompletionProvider")]
1000 public interface SourceCompletionProvider : GLib.Object {
1001 public virtual bool activate_proposal (Gtk.SourceCompletionProposal proposal, Gtk.TextIter iter);
1002 public virtual Gtk.SourceCompletionActivation get_activation ();
1003 [Version (since = "3.18")]
1004 public virtual unowned GLib.Icon? get_gicon ();
1005 public virtual unowned Gdk.Pixbuf? get_icon ();
1006 [Version (since = "3.18")]
1007 public virtual unowned string? get_icon_name ();
1008 public virtual unowned Gtk.Widget? get_info_widget (Gtk.SourceCompletionProposal proposal);
1009 public virtual int get_interactive_delay ();
1010 public virtual string get_name ();
1011 public virtual int get_priority ();
1012 public virtual bool get_start_iter (Gtk.SourceCompletionContext context, Gtk.SourceCompletionProposal proposal, out Gtk.TextIter iter);
1013 public virtual bool match (Gtk.SourceCompletionContext context);
1014 public virtual void populate (Gtk.SourceCompletionContext context);
1015 public virtual void update_info (Gtk.SourceCompletionProposal proposal, Gtk.SourceCompletionInfo info);
1017 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_chooser_get_type ()")]
1018 [GIR (name = "StyleSchemeChooser")]
1019 public interface SourceStyleSchemeChooser : GLib.Object {
1020 [Version (since = "3.16")]
1021 public abstract unowned Gtk.SourceStyleScheme get_style_scheme ();
1022 [Version (since = "3.16")]
1023 public abstract void set_style_scheme (Gtk.SourceStyleScheme scheme);
1024 [Version (since = "3.16")]
1025 public abstract Gtk.SourceStyleScheme style_scheme { get; set; }
1027 [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_undo_manager_get_type ()")]
1028 [GIR (name = "UndoManager")]
1029 public interface SourceUndoManager : GLib.Object {
1030 [Version (since = "2.10")]
1031 public abstract void begin_not_undoable_action ();
1032 [Version (since = "2.10")]
1033 public abstract bool can_redo ();
1034 [Version (since = "2.10")]
1035 public abstract bool can_undo ();
1036 [Version (since = "2.10")]
1037 public abstract void end_not_undoable_action ();
1038 [Version (since = "2.10")]
1039 public abstract void redo ();
1040 [Version (since = "2.10")]
1041 public abstract void undo ();
1043 [Version (since = "2.10")]
1044 public virtual signal void can_redo_changed ();
1046 [Version (since = "2.10")]
1047 public virtual signal void can_undo_changed ();
1049 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_BACKGROUND_PATTERN_TYPE_", type_id = "gtk_source_background_pattern_type_get_type ()")]
1050 [GIR (name = "BackgroundPatternType")]
1051 [Version (since = "3.16")]
1052 public enum SourceBackgroundPatternType {
1056 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_BRACKET_MATCH_", type_id = "gtk_source_bracket_match_type_get_type ()")]
1057 [GIR (name = "BracketMatchType")]
1058 public enum SourceBracketMatchType {
1064 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_CHANGE_CASE_", type_id = "gtk_source_change_case_type_get_type ()")]
1065 [GIR (name = "ChangeCaseType")]
1066 [Version (since = "3.12")]
1067 public enum SourceChangeCaseType {
1073 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_COMPLETION_ACTIVATION_", type_id = "gtk_source_completion_activation_get_type ()")]
1075 [GIR (name = "CompletionActivation")]
1076 public enum SourceCompletionActivation {
1081 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_COMPRESSION_TYPE_", type_id = "gtk_source_compression_type_get_type ()")]
1082 [GIR (name = "CompressionType")]
1083 [Version (since = "3.14")]
1084 public enum SourceCompressionType {
1088 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_DRAW_SPACES_", type_id = "gtk_source_draw_spaces_flags_get_type ()")]
1090 [GIR (name = "DrawSpacesFlags")]
1091 public enum SourceDrawSpacesFlags {
1101 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_FILE_SAVER_FLAGS_", type_id = "gtk_source_file_saver_flags_get_type ()")]
1103 [GIR (name = "FileSaverFlags")]
1104 [Version (since = "3.14")]
1105 public enum SourceFileSaverFlags {
1107 IGNORE_INVALID_CHARS,
1108 IGNORE_MODIFICATION_TIME,
1111 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_", type_id = "gtk_source_gutter_renderer_alignment_mode_get_type ()")]
1112 [GIR (name = "GutterRendererAlignmentMode")]
1113 public enum SourceGutterRendererAlignmentMode {
1118 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_GUTTER_RENDERER_STATE_", type_id = "gtk_source_gutter_renderer_state_get_type ()")]
1120 [GIR (name = "GutterRendererState")]
1121 public enum SourceGutterRendererState {
1127 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_NEWLINE_TYPE_", type_id = "gtk_source_newline_type_get_type ()")]
1128 [GIR (name = "NewlineType")]
1129 [Version (since = "3.14")]
1130 public enum SourceNewlineType {
1135 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_SMART_HOME_END_", type_id = "gtk_source_smart_home_end_type_get_type ()")]
1136 [GIR (name = "SmartHomeEndType")]
1137 public enum SourceSmartHomeEndType {
1143 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_SORT_FLAGS_", type_id = "gtk_source_sort_flags_get_type ()")]
1145 [GIR (name = "SortFlags")]
1146 [Version (since = "3.18")]
1147 public enum SourceSortFlags {
1153 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_VIEW_GUTTER_POSITION_", type_id = "gtk_source_view_gutter_position_get_type ()")]
1154 [GIR (name = "ViewGutterPosition")]
1155 public enum SourceViewGutterPosition {
1159 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_COMPLETION_ERROR_")]
1160 [GIR (name = "CompletionError")]
1161 public errordomain SourceCompletionError {
1164 [CCode (cname = "gtk_source_completion_error_quark")]
1165 public static GLib.Quark uark ();
1167 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_FILE_LOADER_ERROR_")]
1168 [GIR (name = "FileLoaderError")]
1169 public errordomain SourceFileLoaderError {
1171 ENCODING_AUTO_DETECTION_FAILED,
1172 CONVERSION_FALLBACK;
1173 [CCode (cname = "gtk_source_file_loader_error_quark")]
1174 public static GLib.Quark uark ();
1176 [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_FILE_SAVER_ERROR_")]
1177 [GIR (name = "FileSaverError")]
1178 [Version (since = "3.14")]
1179 public errordomain SourceFileSaverError {
1181 EXTERNALLY_MODIFIED;
1182 [CCode (cname = "gtk_source_file_saver_error_quark")]
1183 public static GLib.Quark uark ();