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