Merge branch 'master' of http://git.roojs.com/app.Builder.js
[app.Builder.js] / src / vapi / gtksourceview-3.0.vapi
1 /* gtksourceview-3.0.vapi generated by vapigen-0.26, do not modify. */
2
3 [CCode (cprefix = "Gtk", gir_namespace = "GtkSource", gir_version = "3.0", lower_case_cprefix = "gtk_")]
4 namespace Gtk {
5         namespace SourceUtils {
6                 [CCode (cheader_filename = "gtksourceview/gtksource.h")]
7                 public static string escape_search_text (string text);
8                 [CCode (cheader_filename = "gtksourceview/gtksource.h")]
9                 public static string unescape_search_text (string text);
10         }
11         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_buffer_get_type ()")]
12         [GIR (name = "Buffer")]
13         public class SourceBuffer : Gtk.TextBuffer {
14                 [CCode (has_construct_function = false)]
15                 public SourceBuffer (Gtk.TextTagTable? table);
16                 public bool backward_iter_to_source_mark (Gtk.TextIter iter, string? category);
17                 public void begin_not_undoable_action ();
18                 public void change_case (Gtk.SourceChangeCaseType case_type, Gtk.TextIter start, Gtk.TextIter end);
19                 public unowned Gtk.SourceMark create_source_mark (string? name, string category, Gtk.TextIter where);
20                 public void end_not_undoable_action ();
21                 public void ensure_highlight (Gtk.TextIter start, Gtk.TextIter end);
22                 public bool forward_iter_to_source_mark (Gtk.TextIter iter, string? category);
23                 [CCode (array_length = false, array_null_terminated = true)]
24                 public string[] get_context_classes_at_iter (Gtk.TextIter iter);
25                 public bool get_highlight_matching_brackets ();
26                 public bool get_highlight_syntax ();
27                 public bool get_implicit_trailing_newline ();
28                 public unowned Gtk.SourceLanguage get_language ();
29                 public int get_max_undo_levels ();
30                 public GLib.SList<weak Gtk.SourceMark> get_source_marks_at_iter (Gtk.TextIter iter, string? category);
31                 public GLib.SList<weak Gtk.SourceMark> get_source_marks_at_line (int line, string? category);
32                 public unowned Gtk.SourceStyleScheme get_style_scheme ();
33                 public unowned Gtk.SourceUndoManager? get_undo_manager ();
34                 public bool iter_backward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
35                 public bool iter_forward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
36                 public bool iter_has_context_class (Gtk.TextIter iter, string context_class);
37                 public void remove_source_marks (Gtk.TextIter start, Gtk.TextIter end, string? category);
38                 public void set_highlight_matching_brackets (bool highlight);
39                 public void set_highlight_syntax (bool highlight);
40                 public void set_implicit_trailing_newline (bool implicit_trailing_newline);
41                 public void set_language (Gtk.SourceLanguage? language);
42                 public void set_max_undo_levels (int max_undo_levels);
43                 public void set_style_scheme (Gtk.SourceStyleScheme? scheme);
44                 public void set_undo_manager (Gtk.SourceUndoManager? manager);
45                 [CCode (has_construct_function = false)]
46                 public SourceBuffer.with_language (Gtk.SourceLanguage language);
47                 [NoAccessorMethod]
48                 public bool can_redo { get; }
49                 [NoAccessorMethod]
50                 public bool can_undo { get; }
51                 public bool highlight_matching_brackets { get; set; }
52                 public bool highlight_syntax { get; set; }
53                 public bool implicit_trailing_newline { get; set construct; }
54                 public Gtk.SourceLanguage language { get; set; }
55                 public int max_undo_levels { get; set; }
56                 public Gtk.SourceStyleScheme style_scheme { get; set; }
57                 public Gtk.SourceUndoManager undo_manager { get; set construct; }
58                 public virtual signal void bracket_matched (Gtk.TextIter iter, Gtk.SourceBracketMatchType state);
59                 public signal void highlight_updated (Gtk.TextIter start, Gtk.TextIter end);
60                 [HasEmitter]
61                 public virtual signal void redo ();
62                 public signal void source_mark_updated (Gtk.TextMark mark);
63                 [HasEmitter]
64                 public virtual signal void undo ();
65         }
66         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_get_type ()")]
67         [GIR (name = "Completion")]
68         public class SourceCompletion : GLib.Object, Gtk.Buildable {
69                 [CCode (has_construct_function = false)]
70                 protected SourceCompletion ();
71                 public bool add_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error;
72                 public void block_interactive ();
73                 public unowned Gtk.SourceCompletionContext create_context (Gtk.TextIter? position);
74                 public unowned Gtk.SourceCompletionInfo get_info_window ();
75                 public unowned GLib.List<Gtk.SourceCompletionProvider> get_providers ();
76                 public unowned Gtk.SourceView get_view ();
77                 [Deprecated (since = "3.8")]
78                 public void move_window (Gtk.TextIter iter);
79                 [NoWrapper]
80                 public virtual bool proposal_activated (Gtk.SourceCompletionProvider provider, Gtk.SourceCompletionProposal proposal);
81                 public bool remove_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error;
82                 [CCode (cname = "gtk_source_completion_show")]
83                 public bool start (GLib.List<Gtk.SourceCompletionProvider>? providers, Gtk.SourceCompletionContext context);
84                 public void unblock_interactive ();
85                 [NoAccessorMethod]
86                 public uint accelerators { get; set construct; }
87                 [NoAccessorMethod]
88                 public uint auto_complete_delay { get; set construct; }
89                 [NoAccessorMethod]
90                 public uint proposal_page_size { get; set construct; }
91                 [NoAccessorMethod]
92                 public uint provider_page_size { get; set construct; }
93                 [NoAccessorMethod]
94                 public bool remember_info_visibility { get; set construct; }
95                 [NoAccessorMethod]
96                 public bool select_on_show { get; set construct; }
97                 [NoAccessorMethod]
98                 public bool show_headers { get; set construct; }
99                 [NoAccessorMethod]
100                 public bool show_icons { get; set construct; }
101                 public Gtk.SourceView view { get; construct; }
102                 public virtual signal void activate_proposal ();
103                 [HasEmitter]
104                 public virtual signal void hide ();
105                 public virtual signal void move_cursor (Gtk.ScrollStep step, int num);
106                 public virtual signal void move_page (Gtk.ScrollStep step, int num);
107                 public virtual signal void populate_context (Gtk.SourceCompletionContext context);
108                 public virtual signal void show ();
109         }
110         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_context_get_type ()")]
111         [GIR (name = "CompletionContext")]
112         public class SourceCompletionContext : GLib.InitiallyUnowned {
113                 [CCode (has_construct_function = false)]
114                 protected SourceCompletionContext ();
115                 public void add_proposals (Gtk.SourceCompletionProvider provider, GLib.List<Gtk.SourceCompletionProposal>? proposals, bool finished);
116                 public Gtk.SourceCompletionActivation get_activation ();
117                 public Gtk.TextIter get_iter ();
118                 [NoAccessorMethod]
119                 public Gtk.SourceCompletionActivation activation { get; set construct; }
120                 [NoAccessorMethod]
121                 public Gtk.SourceCompletion completion { owned get; construct; }
122                 [NoAccessorMethod]
123                 public Gtk.TextIter iter { get; set; }
124                 public virtual signal void cancelled ();
125         }
126         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_info_get_type ()")]
127         [GIR (name = "CompletionInfo")]
128         public class SourceCompletionInfo : Gtk.Window, Atk.Implementor, Gtk.Buildable {
129                 [CCode (has_construct_function = false)]
130                 public SourceCompletionInfo ();
131                 [Deprecated (since = "3.8")]
132                 public unowned Gtk.Widget get_widget ();
133                 public void move_to_iter (Gtk.TextView view, Gtk.TextIter? iter);
134                 [Deprecated (since = "3.8")]
135                 public void set_widget (Gtk.Widget? widget);
136                 [Deprecated (since = "3.10")]
137                 public virtual signal void before_show ();
138         }
139         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_item_get_type ()")]
140         [GIR (name = "CompletionItem")]
141         public class SourceCompletionItem : GLib.Object, Gtk.SourceCompletionProposal {
142                 [CCode (has_construct_function = false)]
143                 public SourceCompletionItem (string label, string text, Gdk.Pixbuf? icon, string? info);
144                 [CCode (has_construct_function = false)]
145                 [Deprecated (since = "3.10")]
146                 public SourceCompletionItem.from_stock (string? label, string text, string stock, string? info);
147                 [CCode (has_construct_function = false)]
148                 public SourceCompletionItem.with_markup (string markup, string text, Gdk.Pixbuf? icon, string? info);
149                 [NoAccessorMethod]
150                 public Gdk.Pixbuf icon { owned get; set; }
151                 [NoAccessorMethod]
152                 public string info { owned get; set; }
153                 [NoAccessorMethod]
154                 public string label { owned get; set; }
155                 [NoAccessorMethod]
156                 public string markup { owned get; set; }
157                 [NoAccessorMethod]
158                 public string text { owned get; set; }
159         }
160         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_words_get_type ()")]
161         [GIR (name = "CompletionWords")]
162         public class SourceCompletionWords : GLib.Object, Gtk.SourceCompletionProvider {
163                 [CCode (has_construct_function = false)]
164                 public SourceCompletionWords (string? name, Gdk.Pixbuf? icon);
165                 public void register (Gtk.TextBuffer buffer);
166                 public void unregister (Gtk.TextBuffer buffer);
167                 [NoAccessorMethod]
168                 public Gtk.SourceCompletionActivation activation { get; set construct; }
169                 [NoAccessorMethod]
170                 public Gdk.Pixbuf icon { owned get; set construct; }
171                 [NoAccessorMethod]
172                 public int interactive_delay { get; set construct; }
173                 [NoAccessorMethod]
174                 public uint minimum_word_size { get; set construct; }
175                 [NoAccessorMethod]
176                 public string name { owned get; set construct; }
177                 [NoAccessorMethod]
178                 public int priority { get; set construct; }
179                 [NoAccessorMethod]
180                 public uint proposals_batch_size { get; set construct; }
181                 [NoAccessorMethod]
182                 public uint scan_batch_size { get; set construct; }
183         }
184         [CCode (cheader_filename = "gtksourceview/gtksource.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_source_encoding_get_type ()")]
185         [Compact]
186         [GIR (name = "Encoding")]
187         public class SourceEncoding {
188                 public Gtk.SourceEncoding copy ();
189                 [CCode (cname = "gtk_source_encoding_get_all")]
190                 public static GLib.SList<weak Gtk.SourceEncoding> et_all ();
191                 [CCode (cname = "gtk_source_encoding_get_current")]
192                 public static unowned Gtk.SourceEncoding et_current ();
193                 [CCode (cname = "gtk_source_encoding_get_from_charset")]
194                 public static unowned Gtk.SourceEncoding? et_from_charset (string charset);
195                 [CCode (cname = "gtk_source_encoding_get_utf8")]
196                 public static unowned Gtk.SourceEncoding et_utf8 ();
197                 public void free ();
198                 public unowned string get_charset ();
199                 public unowned string get_name ();
200                 public string to_string ();
201         }
202         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_get_type ()")]
203         [GIR (name = "File")]
204         public class SourceFile : GLib.Object {
205                 [CCode (has_construct_function = false)]
206                 public SourceFile ();
207                 public Gtk.SourceCompressionType get_compression_type ();
208                 public unowned Gtk.SourceEncoding get_encoding ();
209                 public unowned GLib.File get_location ();
210                 public Gtk.SourceNewlineType get_newline_type ();
211                 public void set_location (GLib.File? location);
212                 public Gtk.SourceCompressionType compression_type { get; }
213                 public Gtk.SourceEncoding encoding { get; }
214                 public GLib.File location { get; set; }
215                 public Gtk.SourceNewlineType newline_type { get; }
216         }
217         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_loader_get_type ()")]
218         [GIR (name = "FileLoader")]
219         public class SourceFileLoader : GLib.Object {
220                 [CCode (has_construct_function = false)]
221                 public SourceFileLoader (Gtk.SourceBuffer buffer, Gtk.SourceFile file);
222                 [CCode (has_construct_function = false)]
223                 public SourceFileLoader.from_stream (Gtk.SourceBuffer buffer, Gtk.SourceFile file, GLib.InputStream stream);
224                 public unowned Gtk.SourceBuffer get_buffer ();
225                 public Gtk.SourceCompressionType get_compression_type ();
226                 public unowned Gtk.SourceEncoding get_encoding ();
227                 public unowned Gtk.SourceFile get_file ();
228                 public unowned GLib.InputStream get_input_stream ();
229                 public unowned GLib.File get_location ();
230                 public Gtk.SourceNewlineType get_newline_type ();
231                 public async bool load_async (int io_priority, GLib.Cancellable? cancellable, owned GLib.FileProgressCallback? progress_callback) throws GLib.Error;
232                 public void set_candidate_encodings (GLib.SList<Gtk.SourceEncoding> candidate_encodings);
233                 public Gtk.SourceBuffer buffer { get; construct; }
234                 public Gtk.SourceFile file { get; construct; }
235                 public GLib.InputStream input_stream { get; construct; }
236                 public GLib.File location { get; construct; }
237         }
238         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_saver_get_type ()")]
239         [GIR (name = "FileSaver")]
240         public class SourceFileSaver : GLib.Object {
241                 [CCode (has_construct_function = false)]
242                 public SourceFileSaver (Gtk.SourceBuffer buffer, Gtk.SourceFile file);
243                 public unowned Gtk.SourceBuffer get_buffer ();
244                 public Gtk.SourceCompressionType get_compression_type ();
245                 public unowned Gtk.SourceEncoding get_encoding ();
246                 public unowned Gtk.SourceFile get_file ();
247                 public Gtk.SourceFileSaverFlags get_flags ();
248                 public unowned GLib.File get_location ();
249                 public Gtk.SourceNewlineType get_newline_type ();
250                 public async bool save_async (int io_priority, GLib.Cancellable? cancellable, owned GLib.FileProgressCallback? progress_callback) throws GLib.Error;
251                 public void set_compression_type (Gtk.SourceCompressionType compression_type);
252                 public void set_encoding (Gtk.SourceEncoding? encoding);
253                 public void set_flags (Gtk.SourceFileSaverFlags flags);
254                 public void set_newline_type (Gtk.SourceNewlineType newline_type);
255                 [CCode (has_construct_function = false)]
256                 public SourceFileSaver.with_target (Gtk.SourceBuffer buffer, Gtk.SourceFile file, GLib.File target_location);
257                 public Gtk.SourceBuffer buffer { get; construct; }
258                 public Gtk.SourceCompressionType compression_type { get; set construct; }
259                 public Gtk.SourceEncoding encoding { get; set construct; }
260                 public Gtk.SourceFile file { get; construct; }
261                 public Gtk.SourceFileSaverFlags flags { get; set construct; }
262                 public GLib.File location { get; construct; }
263                 public Gtk.SourceNewlineType newline_type { get; set construct; }
264         }
265         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_get_type ()")]
266         [GIR (name = "Gutter")]
267         public class SourceGutter : GLib.Object {
268                 [CCode (has_construct_function = false)]
269                 protected SourceGutter ();
270                 [Deprecated (since = "3.12")]
271                 public void get_padding (int xpad, int ypad);
272                 public unowned Gtk.SourceGutterRenderer get_renderer_at_pos (int x, int y);
273                 [Deprecated (since = "3.12")]
274                 public unowned Gdk.Window get_window ();
275                 public bool insert (Gtk.SourceGutterRenderer renderer, int position);
276                 public void queue_draw ();
277                 public void remove (Gtk.SourceGutterRenderer renderer);
278                 public void reorder (Gtk.SourceGutterRenderer renderer, int position);
279                 [Deprecated (since = "3.12")]
280                 public void set_padding (int xpad, int ypad);
281                 [NoAccessorMethod]
282                 public Gtk.SourceView view { owned get; construct; }
283                 [NoAccessorMethod]
284                 public Gtk.TextWindowType window_type { get; construct; }
285                 [Deprecated (since = "3.12")]
286                 [NoAccessorMethod]
287                 public int xpad { get; set construct; }
288                 [Deprecated (since = "3.12")]
289                 [NoAccessorMethod]
290                 public int ypad { get; set construct; }
291         }
292         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_get_type ()")]
293         [GIR (name = "GutterRenderer")]
294         public abstract class SourceGutterRenderer : GLib.InitiallyUnowned {
295                 [CCode (has_construct_function = false)]
296                 protected SourceGutterRenderer ();
297                 public virtual void begin (Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.TextIter start, Gtk.TextIter end);
298                 [NoWrapper]
299                 public virtual void change_buffer (Gtk.TextBuffer old_buffer);
300                 [NoWrapper]
301                 public virtual void change_view (Gtk.TextView old_view);
302                 public virtual void draw (Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.TextIter start, Gtk.TextIter end, Gtk.SourceGutterRendererState state);
303                 public virtual void end ();
304                 public void get_alignment (out float xalign, out float yalign);
305                 public Gtk.SourceGutterRendererAlignmentMode get_alignment_mode ();
306                 public bool get_background (out Gdk.RGBA color);
307                 public void get_padding (out int xpad, out int ypad);
308                 public int get_size ();
309                 public unowned Gtk.TextView get_view ();
310                 public bool get_visible ();
311                 public Gtk.TextWindowType get_window_type ();
312                 public void set_alignment (float xalign, float yalign);
313                 public void set_alignment_mode (Gtk.SourceGutterRendererAlignmentMode mode);
314                 public void set_background (Gdk.RGBA? color);
315                 public void set_padding (int xpad, int ypad);
316                 public void set_size (int size);
317                 public void set_visible (bool visible);
318                 public Gtk.SourceGutterRendererAlignmentMode alignment_mode { get; set construct; }
319                 [NoAccessorMethod]
320                 public Gdk.RGBA background_rgba { get; set; }
321                 [NoAccessorMethod]
322                 public bool background_set { get; set construct; }
323                 public int size { get; set construct; }
324                 public Gtk.TextView view { get; }
325                 public bool visible { get; set construct; }
326                 public Gtk.TextWindowType window_type { get; }
327                 [NoAccessorMethod]
328                 public float xalign { get; set construct; }
329                 [NoAccessorMethod]
330                 public int xpad { get; set construct; }
331                 [NoAccessorMethod]
332                 public float yalign { get; set construct; }
333                 [NoAccessorMethod]
334                 public int ypad { get; set construct; }
335                 [HasEmitter]
336                 public virtual signal void activate (Gtk.TextIter iter, Cairo.RectangleInt area, Gdk.Event event);
337                 [HasEmitter]
338                 public virtual signal bool query_activatable (Gtk.TextIter iter, Cairo.RectangleInt area, Gdk.Event event);
339                 [HasEmitter]
340                 public virtual signal void query_data (Gtk.TextIter start, Gtk.TextIter end, Gtk.SourceGutterRendererState state);
341                 [HasEmitter]
342                 public virtual signal bool query_tooltip (Gtk.TextIter iter, Cairo.RectangleInt area, int x, int y, Gtk.Tooltip tooltip);
343                 [HasEmitter]
344                 public virtual signal void queue_draw ();
345         }
346         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_pixbuf_get_type ()")]
347         [GIR (name = "GutterRendererPixbuf")]
348         public class SourceGutterRendererPixbuf : Gtk.SourceGutterRenderer {
349                 [CCode (has_construct_function = false, type = "GtkSourceGutterRenderer*")]
350                 public SourceGutterRendererPixbuf ();
351                 public unowned GLib.Icon get_gicon ();
352                 public unowned string get_icon_name ();
353                 public unowned Gdk.Pixbuf get_pixbuf ();
354                 [Deprecated (since = "3.10")]
355                 public unowned string get_stock_id ();
356                 public void set_gicon (GLib.Icon? icon);
357                 public void set_icon_name (string? icon_name);
358                 public void set_pixbuf (Gdk.Pixbuf? pixbuf);
359                 [Deprecated (since = "3.10")]
360                 public void set_stock_id (string? stock_id);
361                 public GLib.Icon gicon { get; set; }
362                 public string icon_name { get; set; }
363                 public Gdk.Pixbuf pixbuf { get; set; }
364                 [Deprecated (since = "3.10")]
365                 public string stock_id { get; set; }
366         }
367         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_text_get_type ()")]
368         [GIR (name = "GutterRendererText")]
369         public class SourceGutterRendererText : Gtk.SourceGutterRenderer {
370                 [CCode (has_construct_function = false, type = "GtkSourceGutterRenderer*")]
371                 public SourceGutterRendererText ();
372                 public void measure (string text, int width, int height);
373                 public void measure_markup (string markup, int width, int height);
374                 public void set_markup (string markup, int length);
375                 public void set_text (string text, int length);
376                 [NoAccessorMethod]
377                 public string markup { owned get; set construct; }
378                 [NoAccessorMethod]
379                 public string text { owned get; set construct; }
380         }
381         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_language_get_type ()")]
382         [GIR (name = "Language")]
383         public class SourceLanguage : GLib.Object {
384                 [CCode (has_construct_function = false)]
385                 protected SourceLanguage ();
386                 [CCode (array_length = false, array_null_terminated = true)]
387                 public string[] get_globs ();
388                 public bool get_hidden ();
389                 public unowned string get_id ();
390                 public unowned string get_metadata (string name);
391                 [CCode (array_length = false, array_null_terminated = true)]
392                 public string[] get_mime_types ();
393                 public unowned string get_name ();
394                 public unowned string get_section ();
395                 public unowned string get_style_fallback (string style_id);
396                 [CCode (array_length = false, array_null_terminated = true)]
397                 public string[] get_style_ids ();
398                 public unowned string get_style_name (string style_id);
399                 public bool hidden { get; }
400                 public string id { get; }
401                 public string name { get; }
402                 public string section { get; }
403         }
404         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_language_manager_get_type ()")]
405         [GIR (name = "LanguageManager")]
406         public class SourceLanguageManager : GLib.Object {
407                 [CCode (has_construct_function = false)]
408                 public SourceLanguageManager ();
409                 public static unowned Gtk.SourceLanguageManager get_default ();
410                 public unowned Gtk.SourceLanguage? get_language (string id);
411                 [CCode (array_length = false, array_null_terminated = true)]
412                 public unowned string[]? get_language_ids ();
413                 [CCode (array_length = false, array_null_terminated = true)]
414                 public unowned string[] get_search_path ();
415                 public unowned Gtk.SourceLanguage? guess_language (string? filename, string? content_type);
416                 public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? dirs);
417                 [CCode (array_length = false, array_null_terminated = true)]
418                 public string[] language_ids { get; }
419                 [CCode (array_length = false, array_null_terminated = true)]
420                 public string[] search_path { get; set; }
421         }
422         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_mark_get_type ()")]
423         [GIR (name = "Mark")]
424         public class SourceMark : Gtk.TextMark {
425                 [CCode (has_construct_function = false)]
426                 public SourceMark (string name, string category);
427                 public unowned string get_category ();
428                 public unowned Gtk.SourceMark? next (string? category);
429                 public unowned Gtk.SourceMark? prev (string category);
430                 public string category { get; construct; }
431         }
432         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_mark_attributes_get_type ()")]
433         [GIR (name = "MarkAttributes")]
434         public class SourceMarkAttributes : GLib.Object {
435                 [CCode (has_construct_function = false)]
436                 public SourceMarkAttributes ();
437                 public bool get_background (out Gdk.RGBA background);
438                 public unowned GLib.Icon get_gicon ();
439                 public unowned string get_icon_name ();
440                 public unowned Gdk.Pixbuf get_pixbuf ();
441                 [Deprecated (since = "3.10")]
442                 public unowned string get_stock_id ();
443                 public string get_tooltip_markup (Gtk.SourceMark mark);
444                 public string get_tooltip_text (Gtk.SourceMark mark);
445                 public unowned Gdk.Pixbuf render_icon (Gtk.Widget widget, int size);
446                 public void set_background (Gdk.RGBA background);
447                 public void set_gicon (GLib.Icon gicon);
448                 public void set_icon_name (string icon_name);
449                 public void set_pixbuf (Gdk.Pixbuf pixbuf);
450                 [Deprecated (since = "3.10")]
451                 public void set_stock_id (string stock_id);
452                 [NoAccessorMethod]
453                 public Gdk.RGBA background { get; set; }
454                 public GLib.Icon gicon { get; set; }
455                 public string icon_name { get; set; }
456                 public Gdk.Pixbuf pixbuf { get; set; }
457                 [Deprecated (since = "3.10")]
458                 public string stock_id { get; set; }
459                 public signal string query_tooltip_markup (Gtk.SourceMark mark);
460                 public signal string query_tooltip_text (Gtk.SourceMark mark);
461         }
462         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_print_compositor_get_type ()")]
463         [GIR (name = "PrintCompositor")]
464         public class SourcePrintCompositor : GLib.Object {
465                 [CCode (has_construct_function = false)]
466                 public SourcePrintCompositor (Gtk.SourceBuffer buffer);
467                 public void draw_page (Gtk.PrintContext context, int page_nr);
468                 [CCode (has_construct_function = false)]
469                 public SourcePrintCompositor.from_view (Gtk.SourceView view);
470                 public string get_body_font_name ();
471                 public double get_bottom_margin (Gtk.Unit unit);
472                 public unowned Gtk.SourceBuffer get_buffer ();
473                 public string get_footer_font_name ();
474                 public string get_header_font_name ();
475                 public bool get_highlight_syntax ();
476                 public double get_left_margin (Gtk.Unit unit);
477                 public string get_line_numbers_font_name ();
478                 public int get_n_pages ();
479                 public double get_pagination_progress ();
480                 public bool get_print_footer ();
481                 public bool get_print_header ();
482                 public uint get_print_line_numbers ();
483                 public double get_right_margin (Gtk.Unit unit);
484                 public uint get_tab_width ();
485                 public double get_top_margin (Gtk.Unit unit);
486                 public Gtk.WrapMode get_wrap_mode ();
487                 public bool paginate (Gtk.PrintContext context);
488                 public void set_body_font_name (string font_name);
489                 public void set_bottom_margin (double margin, Gtk.Unit unit);
490                 public void set_footer_font_name (string? font_name);
491                 public void set_footer_format (bool separator, string? left, string? center, string? right);
492                 public void set_header_font_name (string? font_name);
493                 public void set_header_format (bool separator, string? left, string? center, string? right);
494                 public void set_highlight_syntax (bool highlight);
495                 public void set_left_margin (double margin, Gtk.Unit unit);
496                 public void set_line_numbers_font_name (string? font_name);
497                 public void set_print_footer (bool print);
498                 public void set_print_header (bool print);
499                 public void set_print_line_numbers (uint interval);
500                 public void set_right_margin (double margin, Gtk.Unit unit);
501                 public void set_tab_width (uint width);
502                 public void set_top_margin (double margin, Gtk.Unit unit);
503                 public void set_wrap_mode (Gtk.WrapMode wrap_mode);
504                 public string body_font_name { owned get; set; }
505                 public Gtk.SourceBuffer buffer { get; construct; }
506                 public string footer_font_name { owned get; set; }
507                 public string header_font_name { owned get; set; }
508                 public bool highlight_syntax { get; set; }
509                 public string line_numbers_font_name { owned get; set; }
510                 public int n_pages { get; }
511                 public bool print_footer { get; set; }
512                 public bool print_header { get; set; }
513                 public uint print_line_numbers { get; set; }
514                 public uint tab_width { get; set; }
515                 public Gtk.WrapMode wrap_mode { get; set; }
516         }
517         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_search_context_get_type ()")]
518         [GIR (name = "SearchContext")]
519         public class SourceSearchContext : GLib.Object {
520                 [CCode (has_construct_function = false)]
521                 public SourceSearchContext (Gtk.SourceBuffer buffer, Gtk.SourceSearchSettings? settings);
522                 public bool backward (Gtk.TextIter iter, out Gtk.TextIter match_start, out Gtk.TextIter match_end);
523                 public async bool backward_async (Gtk.TextIter iter, GLib.Cancellable? cancellable, out Gtk.TextIter match_start, out Gtk.TextIter match_end) throws GLib.Error;
524                 public bool forward (Gtk.TextIter iter, out Gtk.TextIter match_start, out Gtk.TextIter match_end);
525                 public async bool forward_async (Gtk.TextIter iter, GLib.Cancellable? cancellable, out Gtk.TextIter match_start, out Gtk.TextIter match_end) throws GLib.Error;
526                 public unowned Gtk.SourceBuffer get_buffer ();
527                 public bool get_highlight ();
528                 public int get_occurrence_position (Gtk.TextIter match_start, Gtk.TextIter match_end);
529                 public int get_occurrences_count ();
530                 public GLib.Error? get_regex_error ();
531                 public unowned Gtk.SourceSearchSettings get_settings ();
532                 public bool replace (Gtk.TextIter match_start, Gtk.TextIter match_end, string replace, int replace_length) throws GLib.Error;
533                 public uint replace_all (string replace, int replace_length) throws GLib.Error;
534                 public void set_highlight (bool highlight);
535                 public void set_settings (Gtk.SourceSearchSettings? settings);
536                 public Gtk.SourceBuffer buffer { get; construct; }
537                 public bool highlight { get; set construct; }
538                 public int occurrences_count { get; }
539                 public GLib.Error? regex_error { owned get; }
540                 public Gtk.SourceSearchSettings settings { get; set construct; }
541         }
542         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_search_settings_get_type ()")]
543         [GIR (name = "SearchSettings")]
544         public class SourceSearchSettings : GLib.Object {
545                 [CCode (has_construct_function = false)]
546                 public SourceSearchSettings ();
547                 public bool get_at_word_boundaries ();
548                 public bool get_case_sensitive ();
549                 public bool get_regex_enabled ();
550                 public unowned string? get_search_text ();
551                 public bool get_wrap_around ();
552                 public void set_at_word_boundaries (bool at_word_boundaries);
553                 public void set_case_sensitive (bool case_sensitive);
554                 public void set_regex_enabled (bool regex_enabled);
555                 public void set_search_text (string? search_text);
556                 public void set_wrap_around (bool wrap_around);
557                 public bool at_word_boundaries { get; set construct; }
558                 public bool case_sensitive { get; set construct; }
559                 public bool regex_enabled { get; set construct; }
560                 public string search_text { get; set construct; }
561                 public bool wrap_around { get; set construct; }
562         }
563         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_get_type ()")]
564         [GIR (name = "Style")]
565         public class SourceStyle : GLib.Object {
566                 [CCode (has_construct_function = false)]
567                 protected SourceStyle ();
568                 public Gtk.SourceStyle copy ();
569                 [NoAccessorMethod]
570                 public string background { owned get; construct; }
571                 [NoAccessorMethod]
572                 public bool background_set { get; construct; }
573                 [NoAccessorMethod]
574                 public bool bold { get; construct; }
575                 [NoAccessorMethod]
576                 public bool bold_set { get; construct; }
577                 [NoAccessorMethod]
578                 public string foreground { owned get; construct; }
579                 [NoAccessorMethod]
580                 public bool foreground_set { get; construct; }
581                 [NoAccessorMethod]
582                 public bool italic { get; construct; }
583                 [NoAccessorMethod]
584                 public bool italic_set { get; construct; }
585                 [NoAccessorMethod]
586                 public string line_background { owned get; construct; }
587                 [NoAccessorMethod]
588                 public bool line_background_set { get; construct; }
589                 [NoAccessorMethod]
590                 public string scale { owned get; construct; }
591                 [NoAccessorMethod]
592                 public bool scale_set { get; construct; }
593                 [NoAccessorMethod]
594                 public bool strikethrough { get; construct; }
595                 [NoAccessorMethod]
596                 public bool strikethrough_set { get; construct; }
597                 [NoAccessorMethod]
598                 public bool underline { get; construct; }
599                 [NoAccessorMethod]
600                 public bool underline_set { get; construct; }
601         }
602         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_get_type ()")]
603         [GIR (name = "StyleScheme")]
604         public class SourceStyleScheme : GLib.Object {
605                 [CCode (has_construct_function = false)]
606                 protected SourceStyleScheme ();
607                 [CCode (array_length = false, array_null_terminated = true)]
608                 public unowned string[]? get_authors ();
609                 public unowned string? get_description ();
610                 public unowned string? get_filename ();
611                 public unowned string get_id ();
612                 public unowned string get_name ();
613                 public unowned Gtk.SourceStyle? get_style (string style_id);
614                 public string description { get; }
615                 public string filename { get; }
616                 public string id { get; construct; }
617                 public string name { get; }
618         }
619         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_manager_get_type ()")]
620         [GIR (name = "StyleSchemeManager")]
621         public class SourceStyleSchemeManager : GLib.Object {
622                 [CCode (has_construct_function = false)]
623                 public SourceStyleSchemeManager ();
624                 public void append_search_path (string path);
625                 public void force_rescan ();
626                 public static unowned Gtk.SourceStyleSchemeManager get_default ();
627                 public unowned Gtk.SourceStyleScheme get_scheme (string scheme_id);
628                 [CCode (array_length = false, array_null_terminated = true)]
629                 public unowned string[] get_scheme_ids ();
630                 [CCode (array_length = false, array_null_terminated = true)]
631                 public unowned string[] get_search_path ();
632                 public void prepend_search_path (string path);
633                 public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? path);
634                 [CCode (array_length = false, array_null_terminated = true)]
635                 public string[] scheme_ids { get; }
636                 [CCode (array_length = false, array_null_terminated = true)]
637                 public string[] search_path { get; set; }
638         }
639         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_view_get_type ()")]
640         [GIR (name = "View")]
641         public class SourceView : Gtk.TextView, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
642                 [CCode (has_construct_function = false, type = "GtkWidget*")]
643                 public SourceView ();
644                 public bool get_auto_indent ();
645                 public unowned Gtk.SourceCompletion get_completion ();
646                 public Gtk.SourceDrawSpacesFlags get_draw_spaces ();
647                 public unowned Gtk.SourceGutter get_gutter (Gtk.TextWindowType window_type);
648                 public bool get_highlight_current_line ();
649                 public bool get_indent_on_tab ();
650                 public int get_indent_width ();
651                 public bool get_insert_spaces_instead_of_tabs ();
652                 public unowned Gtk.SourceMarkAttributes get_mark_attributes (string category, int priority);
653                 public uint get_right_margin_position ();
654                 public bool get_show_line_marks ();
655                 public bool get_show_line_numbers ();
656                 public bool get_show_right_margin ();
657                 public Gtk.SourceSmartHomeEndType get_smart_home_end ();
658                 public uint get_tab_width ();
659                 public uint get_visual_column (Gtk.TextIter iter);
660                 public void set_auto_indent (bool enable);
661                 public void set_draw_spaces (Gtk.SourceDrawSpacesFlags flags);
662                 public void set_highlight_current_line (bool hl);
663                 public void set_indent_on_tab (bool enable);
664                 public void set_indent_width (int width);
665                 public void set_insert_spaces_instead_of_tabs (bool enable);
666                 public void set_mark_attributes (string category, Gtk.SourceMarkAttributes attributes, int priority);
667                 public void set_right_margin_position (uint pos);
668                 public void set_show_line_marks (bool show);
669                 public void set_show_line_numbers (bool show);
670                 public void set_show_right_margin (bool show);
671                 public void set_smart_home_end (Gtk.SourceSmartHomeEndType smart_he);
672                 public void set_tab_width (uint width);
673                 [CCode (has_construct_function = false, type = "GtkWidget*")]
674                 public SourceView.with_buffer (Gtk.SourceBuffer buffer);
675                 public bool auto_indent { get; set; }
676                 public Gtk.SourceCompletion completion { get; }
677                 public Gtk.SourceDrawSpacesFlags draw_spaces { get; set; }
678                 public bool highlight_current_line { get; set; }
679                 public bool indent_on_tab { get; set; }
680                 public int indent_width { get; set; }
681                 public bool insert_spaces_instead_of_tabs { get; set; }
682                 public uint right_margin_position { get; set; }
683                 public bool show_line_marks { get; set; }
684                 public bool show_line_numbers { get; set; }
685                 public bool show_right_margin { get; set; }
686                 public Gtk.SourceSmartHomeEndType smart_home_end { get; set; }
687                 public uint tab_width { get; set; }
688                 public virtual signal void line_mark_activated (Gtk.TextIter iter, Gdk.Event event);
689                 public virtual signal void move_lines (bool copy, int step);
690                 public virtual signal void move_words (int step);
691                 public virtual signal void redo ();
692                 public virtual signal void show_completion ();
693                 public virtual signal void undo ();
694         }
695         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_proposal_get_type ()")]
696         [GIR (name = "CompletionProposal")]
697         public interface SourceCompletionProposal : GLib.Object {
698                 public virtual bool equal (Gtk.SourceCompletionProposal other);
699                 public virtual unowned Gdk.Pixbuf get_icon ();
700                 public abstract string get_info ();
701                 public abstract string get_label ();
702                 public abstract string get_markup ();
703                 public abstract string get_text ();
704                 public virtual uint hash ();
705                 [HasEmitter]
706                 public virtual signal void changed ();
707         }
708         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_provider_get_type ()")]
709         [GIR (name = "CompletionProvider")]
710         public interface SourceCompletionProvider : GLib.Object {
711                 public virtual bool activate_proposal (Gtk.SourceCompletionProposal proposal, Gtk.TextIter iter);
712                 public virtual Gtk.SourceCompletionActivation get_activation ();
713                 public virtual unowned Gdk.Pixbuf? get_icon ();
714                 public virtual unowned Gtk.Widget? get_info_widget (Gtk.SourceCompletionProposal proposal);
715                 public virtual int get_interactive_delay ();
716                 public virtual string get_name ();
717                 public virtual int get_priority ();
718                 public virtual bool get_start_iter (Gtk.SourceCompletionContext context, Gtk.SourceCompletionProposal proposal, out Gtk.TextIter iter);
719                 public virtual bool match (Gtk.SourceCompletionContext context);
720                 public virtual void populate (Gtk.SourceCompletionContext context);
721                 public virtual void update_info (Gtk.SourceCompletionProposal proposal, Gtk.SourceCompletionInfo info);
722         }
723         [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_undo_manager_get_type ()")]
724         [GIR (name = "UndoManager")]
725         public interface SourceUndoManager : GLib.Object {
726                 public abstract void begin_not_undoable_action ();
727                 public abstract bool can_redo ();
728                 public abstract bool can_undo ();
729                 public abstract void end_not_undoable_action ();
730                 public abstract void redo ();
731                 public abstract void undo ();
732                 [HasEmitter]
733                 public virtual signal void can_redo_changed ();
734                 [HasEmitter]
735                 public virtual signal void can_undo_changed ();
736         }
737         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_BRACKET_MATCH_", type_id = "gtk_source_bracket_match_type_get_type ()")]
738         [GIR (name = "BracketMatchType")]
739         public enum SourceBracketMatchType {
740                 NONE,
741                 OUT_OF_RANGE,
742                 NOT_FOUND,
743                 FOUND
744         }
745         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_CHANGE_CASE_", type_id = "gtk_source_change_case_type_get_type ()")]
746         [GIR (name = "ChangeCaseType")]
747         public enum SourceChangeCaseType {
748                 LOWER,
749                 UPPER,
750                 TOGGLE,
751                 TITLE
752         }
753         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_COMPLETION_ACTIVATION_", type_id = "gtk_source_completion_activation_get_type ()")]
754         [Flags]
755         [GIR (name = "CompletionActivation")]
756         public enum SourceCompletionActivation {
757                 NONE,
758                 INTERACTIVE,
759                 USER_REQUESTED
760         }
761         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_COMPRESSION_TYPE_", type_id = "gtk_source_compression_type_get_type ()")]
762         [GIR (name = "CompressionType")]
763         public enum SourceCompressionType {
764                 NONE,
765                 GZIP
766         }
767         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_DRAW_SPACES_", type_id = "gtk_source_draw_spaces_flags_get_type ()")]
768         [Flags]
769         [GIR (name = "DrawSpacesFlags")]
770         public enum SourceDrawSpacesFlags {
771                 SPACE,
772                 TAB,
773                 NEWLINE,
774                 NBSP,
775                 LEADING,
776                 TEXT,
777                 TRAILING,
778                 ALL
779         }
780         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_FILE_SAVER_FLAGS_", type_id = "gtk_source_file_saver_flags_get_type ()")]
781         [Flags]
782         [GIR (name = "FileSaverFlags")]
783         public enum SourceFileSaverFlags {
784                 NONE,
785                 IGNORE_INVALID_CHARS,
786                 IGNORE_MODIFICATION_TIME,
787                 CREATE_BACKUP
788         }
789         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_", type_id = "gtk_source_gutter_renderer_alignment_mode_get_type ()")]
790         [GIR (name = "GutterRendererAlignmentMode")]
791         public enum SourceGutterRendererAlignmentMode {
792                 CELL,
793                 FIRST,
794                 LAST
795         }
796         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_GUTTER_RENDERER_STATE_", type_id = "gtk_source_gutter_renderer_state_get_type ()")]
797         [Flags]
798         [GIR (name = "GutterRendererState")]
799         public enum SourceGutterRendererState {
800                 NORMAL,
801                 CURSOR,
802                 PRELIT,
803                 SELECTED
804         }
805         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_NEWLINE_TYPE_", type_id = "gtk_source_newline_type_get_type ()")]
806         [GIR (name = "NewlineType")]
807         public enum SourceNewlineType {
808                 LF,
809                 CR,
810                 CR_LF
811         }
812         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_SMART_HOME_END_", type_id = "gtk_source_smart_home_end_type_get_type ()")]
813         [GIR (name = "SmartHomeEndType")]
814         public enum SourceSmartHomeEndType {
815                 DISABLED,
816                 BEFORE,
817                 AFTER,
818                 ALWAYS
819         }
820         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_VIEW_GUTTER_POSITION_", type_id = "gtk_source_view_gutter_position_get_type ()")]
821         [GIR (name = "ViewGutterPosition")]
822         public enum SourceViewGutterPosition {
823                 LINES,
824                 MARKS
825         }
826         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_COMPLETION_ERROR_")]
827         [GIR (name = "CompletionError")]
828         public errordomain SourceCompletionError {
829                 ALREADY_BOUND,
830                 NOT_BOUND;
831                 [CCode (cname = "gtk_source_completion_error_quark")]
832                 public static GLib.Quark uark ();
833         }
834         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_FILE_LOADER_ERROR_")]
835         [GIR (name = "FileLoaderError")]
836         public errordomain SourceFileLoaderError {
837                 TOO_BIG,
838                 ENCODING_AUTO_DETECTION_FAILED,
839                 CONVERSION_FALLBACK;
840                 [CCode (cname = "gtk_source_file_loader_error_quark")]
841                 public static GLib.Quark uark ();
842         }
843         [CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_FILE_SAVER_ERROR_")]
844         [GIR (name = "FileSaverError")]
845         public errordomain SourceFileSaverError {
846                 INVALID_CHARS,
847                 EXTERNALLY_MODIFIED;
848                 [CCode (cname = "gtk_source_file_saver_error_quark")]
849                 public static GLib.Quark uark ();
850         }
851 }