1 /* gtksourceview-2.0.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "Gtk", lower_case_cprefix = "gtk_")]
5 [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
6 public class SourceBuffer : Gtk.TextBuffer {
7 public bool backward_iter_to_source_mark (Gtk.TextIter iter, string category);
8 public void begin_not_undoable_action ();
9 public weak Gtk.SourceMark create_source_mark (string name, string category, Gtk.TextIter where);
10 public void end_not_undoable_action ();
11 public void ensure_highlight (Gtk.TextIter start, Gtk.TextIter end);
12 public bool forward_iter_to_source_mark (Gtk.TextIter iter, string category);
13 public bool get_highlight_matching_brackets ();
14 public bool get_highlight_syntax ();
15 public weak Gtk.SourceLanguage get_language ();
16 public int get_max_undo_levels ();
17 public weak GLib.SList get_source_marks_at_iter (Gtk.TextIter iter, string category);
18 public weak GLib.SList get_source_marks_at_line (int line, string category);
19 public weak Gtk.SourceStyleScheme get_style_scheme ();
20 [CCode (has_construct_function = false)]
21 public SourceBuffer (Gtk.TextTagTable table);
23 public void remove_source_marks (Gtk.TextIter start, Gtk.TextIter end, string category);
24 public void set_highlight_matching_brackets (bool highlight);
25 public void set_highlight_syntax (bool highlight);
26 public void set_language (Gtk.SourceLanguage language);
27 public void set_max_undo_levels (int max_undo_levels);
28 public void set_style_scheme (Gtk.SourceStyleScheme scheme);
30 [CCode (has_construct_function = false)]
31 public SourceBuffer.with_language (Gtk.SourceLanguage language);
33 public bool can_redo { get; }
35 public bool can_undo { get; }
36 public bool highlight_matching_brackets { get; set; }
37 public bool highlight_syntax { get; set; }
38 public Gtk.SourceLanguage language { get; set; }
39 public int max_undo_levels { get; set; }
40 public Gtk.SourceStyleScheme style_scheme { get; set; }
41 public virtual signal void source_mark_updated (Gtk.TextMark p0);
43 [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
44 public class SourceLanguage : GLib.Object {
45 public weak string get_globs ();
46 public bool get_hidden ();
47 public weak string get_id ();
48 public weak string get_metadata (string name);
49 public weak string get_mime_types ();
50 public weak string get_name ();
51 public weak string get_section ();
52 public weak string get_style_ids ();
53 public weak string get_style_name (string style_id);
54 public bool hidden { get; }
55 public string id { get; }
56 public string name { get; }
57 public string section { get; }
59 [CCode (cheader_filename = "gtksourceview/gtksourcelanguagemanager.h")]
60 public class SourceLanguageManager : GLib.Object {
61 public static weak Gtk.SourceLanguageManager get_default ();
62 public weak Gtk.SourceLanguage get_language (string id);
63 public weak string get_language_ids ();
64 public weak string get_search_path ();
65 [CCode (has_construct_function = false)]
66 public SourceLanguageManager ();
67 public void set_search_path (string dirs);
68 public string[] language_ids { get; }
69 public string[] search_path { get; set; }
71 [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
72 public class SourceMark : Gtk.TextMark {
73 public weak string get_category ();
74 [CCode (has_construct_function = false)]
75 public SourceMark (string name, string category);
76 public weak Gtk.SourceMark next (string category);
77 public weak Gtk.SourceMark prev (string category);
79 public string category { get; construct; }
81 [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
82 public class SourcePrintCompositor : GLib.Object {
83 public void draw_page (Gtk.PrintContext context, int page_nr);
84 [CCode (has_construct_function = false)]
85 public SourcePrintCompositor.from_view (Gtk.SourceView view);
86 public weak string get_body_font_name ();
87 public double get_bottom_margin (Gtk.Unit unit);
88 public weak Gtk.SourceBuffer get_buffer ();
89 public weak string get_footer_font_name ();
90 public weak string get_header_font_name ();
91 public bool get_highlight_syntax ();
92 public double get_left_margin (Gtk.Unit unit);
93 public weak string get_line_numbers_font_name ();
94 public int get_n_pages ();
95 public double get_pagination_progress ();
96 public bool get_print_footer ();
97 public bool get_print_header ();
98 public uint get_print_line_numbers ();
99 public double get_right_margin (Gtk.Unit unit);
100 public uint get_tab_width ();
101 public double get_top_margin (Gtk.Unit unit);
102 public Gtk.WrapMode get_wrap_mode ();
103 [CCode (has_construct_function = false)]
104 public SourcePrintCompositor (Gtk.SourceBuffer buffer);
105 public bool paginate (Gtk.PrintContext context);
106 public void set_body_font_name (string font_name);
107 public void set_bottom_margin (double margin, Gtk.Unit unit);
108 public void set_footer_font_name (string font_name);
109 public void set_footer_format (bool separator, string left, string center, string right);
110 public void set_header_font_name (string font_name);
111 public void set_header_format (bool separator, string left, string center, string right);
112 public void set_highlight_syntax (bool highlight);
113 public void set_left_margin (double margin, Gtk.Unit unit);
114 public void set_line_numbers_font_name (string font_name);
115 public void set_print_footer (bool print);
116 public void set_print_header (bool print);
117 public void set_print_line_numbers (uint interval);
118 public void set_right_margin (double margin, Gtk.Unit unit);
119 public void set_tab_width (uint width);
120 public void set_top_margin (double margin, Gtk.Unit unit);
121 public void set_wrap_mode (Gtk.WrapMode wrap_mode);
122 public string body_font_name { get; set; }
124 public Gtk.SourceBuffer buffer { get; construct; }
125 public string footer_font_name { get; set; }
126 public string header_font_name { get; set; }
127 public bool highlight_syntax { get; set; }
128 public string line_numbers_font_name { get; set; }
129 public int n_pages { get; }
130 public bool print_footer { get; set; }
131 public bool print_header { get; set; }
132 public uint print_line_numbers { get; set; }
133 public uint tab_width { get; set; }
134 public Gtk.WrapMode wrap_mode { get; set; }
136 [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
137 public class SourceStyle : GLib.Object {
138 public weak Gtk.SourceStyle copy ();
140 public string background { get; construct; }
142 public bool background_set { get; construct; }
144 public bool bold { get; construct; }
146 public bool bold_set { get; construct; }
148 public string foreground { get; construct; }
150 public bool foreground_set { get; construct; }
152 public bool italic { get; construct; }
154 public bool italic_set { get; construct; }
156 public string line_background { get; construct; }
158 public bool line_background_set { get; construct; }
160 public bool strikethrough { get; construct; }
162 public bool strikethrough_set { get; construct; }
164 public bool underline { get; construct; }
166 public bool underline_set { get; construct; }
168 [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
169 public class SourceStyleScheme : GLib.Object {
170 public weak string get_authors ();
171 public weak string get_description ();
172 public weak string get_filename ();
173 public weak string get_id ();
174 public weak string get_name ();
175 public weak Gtk.SourceStyle get_style (string style_id);
176 public string description { get; }
177 public string filename { get; }
179 public string id { get; construct; }
180 public string name { get; }
182 [CCode (cheader_filename = "gtksourceview/gtksourcestyleschemamanager.h")]
183 public class SourceStyleSchemeManager : GLib.Object {
184 public void append_search_path (string path);
185 public void force_rescan ();
186 public static weak Gtk.SourceStyleSchemeManager get_default ();
187 public weak Gtk.SourceStyleScheme get_scheme (string scheme_id);
188 public weak string get_scheme_ids ();
189 public weak string get_search_path ();
190 [CCode (has_construct_function = false)]
191 public SourceStyleSchemeManager ();
192 public void prepend_search_path (string path);
193 public void set_search_path (string path);
194 public string[] scheme_ids { get; }
195 public string[] search_path { get; set; }
197 [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
198 public class SourceView : Gtk.TextView, Atk.Implementor, Gtk.Buildable {
199 public bool get_auto_indent ();
200 public bool get_highlight_current_line ();
201 public bool get_indent_on_tab ();
202 public int get_indent_width ();
203 public bool get_insert_spaces_instead_of_tabs ();
204 public weak Gdk.Pixbuf get_mark_category_pixbuf (string category);
205 public int get_mark_category_priority (string category);
206 public uint get_right_margin_position ();
207 public bool get_show_line_marks ();
208 public bool get_show_line_numbers ();
209 public bool get_show_right_margin ();
210 public Gtk.SourceSmartHomeEndType get_smart_home_end ();
211 public uint get_tab_width ();
212 [CCode (type = "GtkWidget*", has_construct_function = false)]
213 public SourceView ();
214 public void set_auto_indent (bool enable);
215 public void set_highlight_current_line (bool show);
216 public void set_indent_on_tab (bool enable);
217 public void set_indent_width (int width);
218 public void set_insert_spaces_instead_of_tabs (bool enable);
219 public void set_mark_category_pixbuf (string category, Gdk.Pixbuf pixbuf);
220 public void set_mark_category_priority (string category, int priority);
221 public void set_right_margin_position (uint pos);
222 public void set_show_line_marks (bool show);
223 public void set_show_line_numbers (bool show);
224 public void set_show_right_margin (bool show);
225 public void set_smart_home_end (Gtk.SourceSmartHomeEndType smart_he);
226 public void set_tab_width (uint width);
227 [CCode (type = "GtkWidget*", has_construct_function = false)]
228 public SourceView.with_buffer (Gtk.SourceBuffer buffer);
229 public bool auto_indent { get; set; }
230 public bool highlight_current_line { get; set; }
231 public bool indent_on_tab { get; set; }
232 public int indent_width { get; set; }
233 public bool insert_spaces_instead_of_tabs { get; set; }
234 public uint right_margin_position { get; set; }
235 public bool show_line_marks { get; set; }
236 public bool show_line_numbers { get; set; }
237 public bool show_right_margin { get; set; }
238 public Gtk.SourceSmartHomeEndType smart_home_end { get; set; }
239 public uint tab_width { get; set; }
240 public virtual signal void redo ();
241 public virtual signal void undo ();
243 [CCode (cprefix = "GTK_SOURCE_SEARCH_", has_type_id = "0", cheader_filename = "gtksourceview/gtksourceiter.h")]
245 public enum SourceSearchFlags {
250 [CCode (cprefix = "GTK_SOURCE_SMART_HOME_END_", has_type_id = "0", cheader_filename = "gtksourceview/gtksourceview.h")]
251 public enum SourceSmartHomeEndType {
257 [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
258 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);
259 [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
260 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);