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