Revert "codegen: Don't implicitly initialize local variables with an initializer"
[vala-gnome.git] / vapi / gtksourceview-2.0.vapi
blob8c5ddb6edb4771fe83eacd4742962dab38268fd6
1 /* gtksourceview-2.0.vapi generated by vapigen, do not modify. */
3 namespace Gtk {
4         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
5         public class SourceBuffer : Gtk.TextBuffer {
6                 [CCode (has_construct_function = false)]
7                 public SourceBuffer (Gtk.TextTagTable? table);
8                 public bool backward_iter_to_source_mark (Gtk.TextIter iter, string category);
9                 public void begin_not_undoable_action ();
10                 public unowned Gtk.SourceMark create_source_mark (string name, string category, Gtk.TextIter where);
11                 public void end_not_undoable_action ();
12                 public void ensure_highlight (Gtk.TextIter start, Gtk.TextIter end);
13                 public bool forward_iter_to_source_mark (Gtk.TextIter iter, string category);
14                 public unowned string get_context_classes_at_iter (Gtk.TextIter iter);
15                 public bool get_highlight_matching_brackets ();
16                 public bool get_highlight_syntax ();
17                 public unowned Gtk.SourceLanguage get_language ();
18                 public int get_max_undo_levels ();
19                 public unowned GLib.SList get_source_marks_at_iter (Gtk.TextIter iter, string category);
20                 public unowned GLib.SList get_source_marks_at_line (int line, string category);
21                 public unowned Gtk.SourceStyleScheme get_style_scheme ();
22                 public unowned Gtk.SourceUndoManager get_undo_manager ();
23                 public bool iter_backward_to_context_class_toggle (Gtk.TextIter iter, string context_class);
24                 public bool iter_forward_to_context_class_toggle (Gtk.TextIter iter, string context_class);
25                 public bool iter_has_context_class (Gtk.TextIter iter, string context_class);
26                 public void remove_source_marks (Gtk.TextIter start, Gtk.TextIter end, string category);
27                 public void set_highlight_matching_brackets (bool highlight);
28                 public void set_highlight_syntax (bool highlight);
29                 public void set_language (Gtk.SourceLanguage language);
30                 public void set_max_undo_levels (int max_undo_levels);
31                 public void set_style_scheme (Gtk.SourceStyleScheme scheme);
32                 public void set_undo_manager (Gtk.SourceUndoManager manager);
33                 [CCode (has_construct_function = false)]
34                 public SourceBuffer.with_language (Gtk.SourceLanguage language);
35                 [NoAccessorMethod]
36                 public bool can_redo { get; }
37                 [NoAccessorMethod]
38                 public bool can_undo { get; }
39                 public bool highlight_matching_brackets { get; set; }
40                 public bool highlight_syntax { get; set; }
41                 public Gtk.SourceLanguage language { get; set; }
42                 public int max_undo_levels { get; set; }
43                 public Gtk.SourceStyleScheme style_scheme { get; set; }
44                 public Gtk.SourceUndoManager undo_manager { get; set construct; }
45                 public virtual signal void highlight_updated (Gtk.TextIter p0, Gtk.TextIter p1);
46                 [HasEmitter]
47                 public virtual signal void redo ();
48                 public virtual signal void source_mark_updated (Gtk.TextMark p0);
49                 [HasEmitter]
50                 public virtual signal void undo ();
51         }
52         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
53         public class SourceCompletion : Gtk.Object {
54                 [CCode (has_construct_function = false)]
55                 protected SourceCompletion ();
56                 public bool add_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error;
57                 public void block_interactive ();
58                 public unowned Gtk.SourceCompletionContext create_context (Gtk.TextIter? position = null);
59                 public static GLib.Quark error_quark ();
60                 public unowned Gtk.SourceCompletionInfo get_info_window ();
61                 public unowned GLib.List get_providers ();
62                 public void* get_view ();
63                 public void move_window (Gtk.TextIter iter);
64                 [NoWrapper]
65                 public virtual bool proposal_activated (Gtk.SourceCompletionProvider provider, Gtk.SourceCompletionProposal proposal);
66                 public bool remove_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error;
67                 public void unblock_interactive ();
68                 [NoAccessorMethod]
69                 public uint accelerators { get; set construct; }
70                 [NoAccessorMethod]
71                 public uint auto_complete_delay { get; set construct; }
72                 [NoAccessorMethod]
73                 public uint proposal_page_size { get; set construct; }
74                 [NoAccessorMethod]
75                 public uint provider_page_size { get; set construct; }
76                 [NoAccessorMethod]
77                 public bool remember_info_visibility { get; set construct; }
78                 [NoAccessorMethod]
79                 public bool select_on_show { get; set construct; }
80                 [NoAccessorMethod]
81                 public bool show_headers { get; set construct; }
82                 [NoAccessorMethod]
83                 public bool show_icons { get; set construct; }
84                 public Gtk.SourceView view { get; construct; }
85                 public virtual signal void activate_proposal ();
86                 [HasEmitter]
87                 public virtual signal void hide ();
88                 public virtual signal void move_cursor (Gtk.ScrollStep step, int num);
89                 public virtual signal void move_page (Gtk.ScrollStep step, int num);
90                 public virtual signal void populate_context (Gtk.SourceCompletionContext context);
91                 [HasEmitter]
92                 public virtual signal void show ();
93         }
94         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
95         public class SourceCompletionContext : GLib.InitiallyUnowned {
96                 [CCode (has_construct_function = false)]
97                 protected SourceCompletionContext ();
98                 public void add_proposals (Gtk.SourceCompletionProvider provider, GLib.List<Gtk.SourceCompletionProposal> proposals, bool finished);
99                 public Gtk.SourceCompletionActivation get_activation ();
100                 public Gtk.TextIter get_iter ();
101                 [NoAccessorMethod]
102                 public Gtk.SourceCompletionActivation activation { get; set; }
103                 [NoAccessorMethod]
104                 public Gtk.SourceCompletion completion { owned get; construct; }
105                 [NoAccessorMethod]
106                 public Gtk.TextIter iter { get; set; }
107                 public virtual signal void cancelled ();
108         }
109         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
110         public class SourceCompletionInfo : Gtk.Window, Atk.Implementor, Gtk.Buildable {
111                 [CCode (has_construct_function = false)]
112                 public SourceCompletionInfo ();
113                 public unowned Gtk.Widget get_widget ();
114                 public void move_to_iter (Gtk.TextView view, Gtk.TextIter? iter = null);
115                 public void process_resize ();
116                 public void set_sizing (int width, int height, bool shrink_width, bool shrink_height);
117                 public void set_widget (Gtk.Widget widget);
118                 [NoAccessorMethod]
119                 public int max_height { get; set construct; }
120                 [NoAccessorMethod]
121                 public int max_width { get; set construct; }
122                 [NoAccessorMethod]
123                 public bool shrink_height { get; set construct; }
124                 [NoAccessorMethod]
125                 public bool shrink_width { get; set construct; }
126                 public virtual signal void before_show ();
127         }
128         [CCode (cheader_filename = "gtksourceview/gtksourcecompletionitem.h")]
129         public class SourceCompletionItem : GLib.Object, Gtk.SourceCompletionProposal {
130                 [CCode (has_construct_function = false)]
131                 public SourceCompletionItem (string label, string text, Gdk.Pixbuf? icon, string? info);
132                 [CCode (has_construct_function = false)]
133                 public SourceCompletionItem.from_stock (string label, string text, string stock, string info);
134                 [CCode (has_construct_function = false)]
135                 public SourceCompletionItem.with_markup (string markup, string text, Gdk.Pixbuf icon, string info);
136                 [NoAccessorMethod]
137                 public Gdk.Pixbuf icon { owned get; set; }
138                 [NoAccessorMethod]
139                 public string info { owned get; set; }
140                 [NoAccessorMethod]
141                 public string label { owned get; set; }
142                 [NoAccessorMethod]
143                 public string markup { owned get; set; }
144                 [NoAccessorMethod]
145                 public string text { owned get; set; }
146         }
147         [CCode (cheader_filename = "gtksourceview/completion-providers/words/gtksourcecompletionwords.h")]
148         public class SourceCompletionWords : GLib.Object, Gtk.SourceCompletionProvider {
149                 [CCode (has_construct_function = false)]
150                 public SourceCompletionWords (string name, Gdk.Pixbuf icon);
151                 public void register (Gtk.TextBuffer buffer);
152                 public void unregister (Gtk.TextBuffer buffer);
153                 [NoAccessorMethod]
154                 public Gdk.Pixbuf icon { owned get; set construct; }
155                 [NoAccessorMethod]
156                 public int interactive_delay { get; set construct; }
157                 [NoAccessorMethod]
158                 public uint minimum_word_size { get; set construct; }
159                 [NoAccessorMethod]
160                 public string name { owned get; set construct; }
161                 [NoAccessorMethod]
162                 public int priority { get; set construct; }
163                 [NoAccessorMethod]
164                 public uint proposals_batch_size { get; set construct; }
165                 [NoAccessorMethod]
166                 public uint scan_batch_size { get; set construct; }
167         }
168         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
169         public class SourceGutter : GLib.Object {
170                 [CCode (has_construct_function = false)]
171                 protected SourceGutter ();
172                 public unowned Gdk.Window get_window ();
173                 public void insert (Gtk.CellRenderer renderer, int position);
174                 public void queue_draw ();
175                 public void remove (Gtk.CellRenderer renderer);
176                 public void reorder (Gtk.CellRenderer renderer, int position);
177                 public void set_cell_data_func (Gtk.CellRenderer renderer, owned Gtk.SourceGutterDataFunc func);
178                 public void set_cell_size_func (Gtk.CellRenderer renderer, owned Gtk.SourceGutterSizeFunc func);
179                 [NoAccessorMethod]
180                 public Gtk.SourceView view { owned get; construct; }
181                 [NoAccessorMethod]
182                 public Gtk.TextWindowType window_type { get; construct; }
183                 public virtual signal void cell_activated (Gtk.CellRenderer renderer, Gtk.TextIter iter, Gdk.Event event);
184                 public virtual signal bool query_tooltip (Gtk.CellRenderer renderer, Gtk.TextIter iter, Gtk.Tooltip tooltip);
185         }
186         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
187         public class SourceLanguage : GLib.Object {
188                 [CCode (has_construct_function = false)]
189                 protected SourceLanguage ();
190                 public unowned string get_globs ();
191                 public bool get_hidden ();
192                 public unowned string get_id ();
193                 public unowned string get_metadata (string name);
194                 public unowned string get_mime_types ();
195                 public unowned string get_name ();
196                 public unowned string get_section ();
197                 public unowned string get_style_ids ();
198                 public unowned string get_style_name (string style_id);
199                 public bool hidden { get; }
200                 public string id { get; }
201                 public string name { get; }
202                 public string section { get; }
203         }
204         [CCode (cheader_filename = "gtksourceview/gtksourcelanguagemanager.h")]
205         public class SourceLanguageManager : GLib.Object {
206                 [CCode (has_construct_function = false)]
207                 public SourceLanguageManager ();
208                 public static unowned Gtk.SourceLanguageManager get_default ();
209                 public unowned Gtk.SourceLanguage get_language (string id);
210                 [CCode (array_length = false, array_null_terminated = true)]
211                 public unowned string[]? get_language_ids ();
212                 [CCode (array_length = false, array_null_terminated = true)]
213                 public unowned string[]? get_search_path ();
214                 public unowned Gtk.SourceLanguage? guess_language (string? filename, string? content_type);
215                 public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? dirs);
216                 [CCode (array_length = false, array_null_terminated = true)]
217                 public string[] language_ids { get; }
218                 [CCode (array_length = false, array_null_terminated = true)]
219                 public string[] search_path { get; set; }
220         }
221         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
222         public class SourceMark : Gtk.TextMark {
223                 [CCode (has_construct_function = false)]
224                 public SourceMark (string name, string category);
225                 public unowned string get_category ();
226                 public unowned Gtk.SourceMark next (string category);
227                 public unowned Gtk.SourceMark prev (string category);
228                 public string category { get; construct; }
229         }
230         [CCode (cheader_filename = "gtksourceview/gtksourceprintcompositor.h")]
231         public class SourcePrintCompositor : GLib.Object {
232                 [CCode (has_construct_function = false)]
233                 public SourcePrintCompositor (Gtk.SourceBuffer buffer);
234                 public void draw_page (Gtk.PrintContext context, int page_nr);
235                 [CCode (has_construct_function = false)]
236                 public SourcePrintCompositor.from_view (Gtk.SourceView view);
237                 public unowned string get_body_font_name ();
238                 public double get_bottom_margin (Gtk.Unit unit);
239                 public unowned Gtk.SourceBuffer get_buffer ();
240                 public unowned string get_footer_font_name ();
241                 public unowned string get_header_font_name ();
242                 public bool get_highlight_syntax ();
243                 public double get_left_margin (Gtk.Unit unit);
244                 public unowned string get_line_numbers_font_name ();
245                 public int get_n_pages ();
246                 public double get_pagination_progress ();
247                 public bool get_print_footer ();
248                 public bool get_print_header ();
249                 public uint get_print_line_numbers ();
250                 public double get_right_margin (Gtk.Unit unit);
251                 public uint get_tab_width ();
252                 public double get_top_margin (Gtk.Unit unit);
253                 public Gtk.WrapMode get_wrap_mode ();
254                 public bool paginate (Gtk.PrintContext context);
255                 public void set_body_font_name (string font_name);
256                 public void set_bottom_margin (double margin, Gtk.Unit unit);
257                 public void set_footer_font_name (string font_name);
258                 public void set_footer_format (bool separator, string left, string center, string right);
259                 public void set_header_font_name (string font_name);
260                 public void set_header_format (bool separator, string left, string center, string right);
261                 public void set_highlight_syntax (bool highlight);
262                 public void set_left_margin (double margin, Gtk.Unit unit);
263                 public void set_line_numbers_font_name (string font_name);
264                 public void set_print_footer (bool print);
265                 public void set_print_header (bool print);
266                 public void set_print_line_numbers (uint interval);
267                 public void set_right_margin (double margin, Gtk.Unit unit);
268                 public void set_tab_width (uint width);
269                 public void set_top_margin (double margin, Gtk.Unit unit);
270                 public void set_wrap_mode (Gtk.WrapMode wrap_mode);
271                 public string body_font_name { get; set; }
272                 public Gtk.SourceBuffer buffer { get; construct; }
273                 public string footer_font_name { get; set; }
274                 public string header_font_name { get; set; }
275                 public bool highlight_syntax { get; set; }
276                 public string line_numbers_font_name { get; set; }
277                 public int n_pages { get; }
278                 public bool print_footer { get; set; }
279                 public bool print_header { get; set; }
280                 public uint print_line_numbers { get; set; }
281                 public uint tab_width { get; set; }
282                 public Gtk.WrapMode wrap_mode { get; set; }
283         }
284         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
285         public class SourceStyle : GLib.Object {
286                 [CCode (has_construct_function = false)]
287                 protected SourceStyle ();
288                 public Gtk.SourceStyle copy ();
289                 [NoAccessorMethod]
290                 public string background { owned get; construct; }
291                 [NoAccessorMethod]
292                 public bool background_set { get; construct; }
293                 [NoAccessorMethod]
294                 public bool bold { get; construct; }
295                 [NoAccessorMethod]
296                 public bool bold_set { get; construct; }
297                 [NoAccessorMethod]
298                 public string foreground { owned get; construct; }
299                 [NoAccessorMethod]
300                 public bool foreground_set { get; construct; }
301                 [NoAccessorMethod]
302                 public bool italic { get; construct; }
303                 [NoAccessorMethod]
304                 public bool italic_set { get; construct; }
305                 [NoAccessorMethod]
306                 public string line_background { owned get; construct; }
307                 [NoAccessorMethod]
308                 public bool line_background_set { get; construct; }
309                 [NoAccessorMethod]
310                 public bool strikethrough { get; construct; }
311                 [NoAccessorMethod]
312                 public bool strikethrough_set { get; construct; }
313                 [NoAccessorMethod]
314                 public bool underline { get; construct; }
315                 [NoAccessorMethod]
316                 public bool underline_set { get; construct; }
317         }
318         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
319         public class SourceStyleScheme : GLib.Object {
320                 [CCode (has_construct_function = false)]
321                 protected SourceStyleScheme ();
322                 public unowned string get_authors ();
323                 public unowned string get_description ();
324                 public unowned string get_filename ();
325                 public unowned string get_id ();
326                 public unowned string get_name ();
327                 public unowned Gtk.SourceStyle get_style (string style_id);
328                 public string description { get; }
329                 public string filename { get; }
330                 public string id { get; construct; }
331                 public string name { get; }
332         }
333         [CCode (cheader_filename = "gtksourceview/gtksourcestyleschememanager.h")]
334         public class SourceStyleSchemeManager : GLib.Object {
335                 [CCode (has_construct_function = false)]
336                 public SourceStyleSchemeManager ();
337                 public void append_search_path (string path);
338                 public void force_rescan ();
339                 public static unowned Gtk.SourceStyleSchemeManager get_default ();
340                 public unowned Gtk.SourceStyleScheme get_scheme (string scheme_id);
341                 [CCode (array_length = false, array_null_terminated = true)]
342                 public unowned string[] get_scheme_ids ();
343                 [CCode (array_length = false, array_null_terminated = true)]
344                 public unowned string[] get_search_path ();
345                 public void prepend_search_path (string path);
346                 public void set_search_path (string path);
347                 [CCode (array_length = false, array_null_terminated = true)]
348                 public string[] scheme_ids { get; }
349                 [CCode (array_length = false, array_null_terminated = true)]
350                 public string[] search_path { get; set; }
351         }
352         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
353         public class SourceView : Gtk.TextView, Atk.Implementor, Gtk.Buildable {
354                 [CCode (has_construct_function = false, type = "GtkWidget*")]
355                 public SourceView ();
356                 public bool get_auto_indent ();
357                 public unowned Gtk.SourceCompletion get_completion ();
358                 public Gtk.SourceDrawSpacesFlags get_draw_spaces ();
359                 public unowned Gtk.SourceGutter get_gutter (Gtk.TextWindowType window_type);
360                 public bool get_highlight_current_line ();
361                 public bool get_indent_on_tab ();
362                 public int get_indent_width ();
363                 public bool get_insert_spaces_instead_of_tabs ();
364                 public bool get_mark_category_background (string category, Gdk.Color dest);
365                 public unowned Gdk.Pixbuf get_mark_category_pixbuf (string category);
366                 public int get_mark_category_priority (string category);
367                 public uint get_right_margin_position ();
368                 public bool get_show_line_marks ();
369                 public bool get_show_line_numbers ();
370                 public bool get_show_right_margin ();
371                 public Gtk.SourceSmartHomeEndType get_smart_home_end ();
372                 public uint get_tab_width ();
373                 public void set_auto_indent (bool enable);
374                 public void set_draw_spaces (Gtk.SourceDrawSpacesFlags flags);
375                 public void set_highlight_current_line (bool show);
376                 public void set_indent_on_tab (bool enable);
377                 public void set_indent_width (int width);
378                 public void set_insert_spaces_instead_of_tabs (bool enable);
379                 public void set_mark_category_background (string category, Gdk.Color color);
380                 public void set_mark_category_icon_from_icon_name (string category, string name);
381                 public void set_mark_category_icon_from_pixbuf (string category, Gdk.Pixbuf pixbuf);
382                 public void set_mark_category_icon_from_stock (string category, string stock_id);
383                 public void set_mark_category_pixbuf (string category, Gdk.Pixbuf pixbuf);
384                 public void set_mark_category_priority (string category, int priority);
385                 public void set_mark_category_tooltip_func (string category, Gtk.SourceViewMarkTooltipFunc func, GLib.DestroyNotify user_data_notify);
386                 public void set_mark_category_tooltip_markup_func (string category, Gtk.SourceViewMarkTooltipFunc markup_func, GLib.DestroyNotify user_data_notify);
387                 public void set_right_margin_position (uint pos);
388                 public void set_show_line_marks (bool show);
389                 public void set_show_line_numbers (bool show);
390                 public void set_show_right_margin (bool show);
391                 public void set_smart_home_end (Gtk.SourceSmartHomeEndType smart_he);
392                 public void set_tab_width (uint width);
393                 [CCode (has_construct_function = false, type = "GtkWidget*")]
394                 public SourceView.with_buffer (Gtk.SourceBuffer buffer);
395                 public bool auto_indent { get; set; }
396                 public Gtk.SourceCompletion completion { get; }
397                 public Gtk.SourceDrawSpacesFlags draw_spaces { get; set; }
398                 public bool highlight_current_line { get; set; }
399                 public bool indent_on_tab { get; set; }
400                 public int indent_width { get; set; }
401                 public bool insert_spaces_instead_of_tabs { get; set; }
402                 public uint right_margin_position { get; set; }
403                 public bool show_line_marks { get; set; }
404                 public bool show_line_numbers { get; set; }
405                 public bool show_right_margin { get; set; }
406                 public Gtk.SourceSmartHomeEndType smart_home_end { get; set; }
407                 public uint tab_width { get; set; }
408                 public virtual signal void line_mark_activated (Gtk.TextIter iter, Gdk.Event event);
409                 public virtual signal void move_lines (bool copy, int step);
410                 public virtual signal void redo ();
411                 public virtual signal void show_completion ();
412                 public virtual signal void undo ();
413         }
414         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
415         public interface SourceCompletionProposal : GLib.Object {
416                 public virtual bool equal (Gtk.SourceCompletionProposal other);
417                 public virtual unowned Gdk.Pixbuf get_icon ();
418                 public abstract string get_info ();
419                 public abstract string get_label ();
420                 public abstract string get_markup ();
421                 public abstract string get_text ();
422                 public virtual uint hash ();
423                 [HasEmitter]
424                 public signal void changed ();
425         }
426         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
427         public interface SourceCompletionProvider : GLib.Object {
428                 public virtual bool activate_proposal (Gtk.SourceCompletionProposal proposal, Gtk.TextIter iter);
429                 public virtual Gtk.SourceCompletionActivation get_activation ();
430                 public virtual unowned Gdk.Pixbuf? get_icon ();
431                 public virtual unowned Gtk.Widget? get_info_widget (Gtk.SourceCompletionProposal proposal);
432                 public virtual int get_interactive_delay ();
433                 public virtual string get_name ();
434                 public virtual int get_priority ();
435                 public virtual bool get_start_iter (Gtk.SourceCompletionContext context, Gtk.SourceCompletionProposal proposal, Gtk.TextIter iter);
436                 public virtual bool match (Gtk.SourceCompletionContext context);
437                 public virtual void populate (Gtk.SourceCompletionContext context);
438                 public virtual void update_info (Gtk.SourceCompletionProposal proposal, Gtk.SourceCompletionInfo info);
439         }
440         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
441         public interface SourceUndoManager : GLib.Object {
442                 public abstract void begin_not_undoable_action ();
443                 public abstract bool can_redo ();
444                 public abstract bool can_undo ();
445                 public abstract void end_not_undoable_action ();
446                 public abstract void redo ();
447                 public abstract void undo ();
448                 [HasEmitter]
449                 public signal void can_redo_changed ();
450                 [HasEmitter]
451                 public signal void can_undo_changed ();
452         }
453         [CCode (cheader_filename = "gtksourceview/gtksourceview.h", cprefix = "GTK_SOURCE_COMPLETION_ACTIVATION_")]
454         [Flags]
455         public enum SourceCompletionActivation {
456                 NONE,
457                 INTERACTIVE,
458                 USER_REQUESTED
459         }
460         [CCode (cheader_filename = "gtksourceview/gtksourceview.h", cprefix = "GTK_SOURCE_COMPLETION_ERROR_")]
461         public enum SourceCompletionError {
462                 ALREADY_BOUND,
463                 NOT_BOUND
464         }
465         [CCode (cheader_filename = "gtksourceview/gtksourceview.h", cprefix = "GTK_SOURCE_DRAW_SPACES_")]
466         [Flags]
467         public enum SourceDrawSpacesFlags {
468                 SPACE,
469                 TAB,
470                 NEWLINE,
471                 NBSP,
472                 LEADING,
473                 TEXT,
474                 TRAILING,
475                 ALL
476         }
477         [CCode (cheader_filename = "gtksourceview/gtksourceiter.h", cprefix = "GTK_SOURCE_SEARCH_")]
478         [Flags]
479         public enum SourceSearchFlags {
480                 VISIBLE_ONLY,
481                 TEXT_ONLY,
482                 CASE_INSENSITIVE
483         }
484         [CCode (cheader_filename = "gtksourceview/gtksourceview.h", cprefix = "GTK_SOURCE_SMART_HOME_END_")]
485         public enum SourceSmartHomeEndType {
486                 DISABLED,
487                 BEFORE,
488                 AFTER,
489                 ALWAYS
490         }
491         [CCode (cheader_filename = "gtksourceview/gtksourceview.h", cprefix = "GTK_SOURCE_VIEW_GUTTER_POSITION_")]
492         public enum SourceViewGutterPosition {
493                 LINES,
494                 MARKS
495         }
496         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
497         public delegate void SourceGutterDataFunc (Gtk.SourceGutter gutter, Gtk.CellRenderer cell, int line_number, bool current_line);
498         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
499         public delegate void SourceGutterSizeFunc (Gtk.SourceGutter gutter, Gtk.CellRenderer cell);
500         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
501         public delegate unowned string SourceViewMarkTooltipFunc (Gtk.SourceMark mark);
502         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
503         public const string SOURCE_COMPLETION_CAPABILITY_AUTOMATIC;
504         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
505         public const string SOURCE_COMPLETION_CAPABILITY_INTERACTIVE;
506         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
507         public static bool source_iter_backward_search (Gtk.TextIter iter, string str, Gtk.SourceSearchFlags flags, out Gtk.TextIter match_start, out Gtk.TextIter match_end, Gtk.TextIter? limit);
508         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
509         public static bool source_iter_forward_search (Gtk.TextIter iter, string str, Gtk.SourceSearchFlags flags, out Gtk.TextIter match_start, out Gtk.TextIter match_end, Gtk.TextIter? limit);