posix: Fix dup0 wrappers in POSIX profile
[vala-lang.git] / vapi / gtksourceview-2.0.vapi
blob98dcf26a51ada91555753787dcd840680695ac7c
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 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 void redo ();
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);
29                 public void undo ();
30                 [CCode (has_construct_function = false)]
31                 public SourceBuffer.with_language (Gtk.SourceLanguage language);
32                 [NoAccessorMethod]
33                 public bool can_redo { get; }
34                 [NoAccessorMethod]
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);
42         }
43         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
44         public class SourceLanguage : GLib.Object {
45                 public unowned string get_globs ();
46                 public bool get_hidden ();
47                 public unowned string get_id ();
48                 public unowned string get_metadata (string name);
49                 public unowned string get_mime_types ();
50                 public unowned string get_name ();
51                 public unowned string get_section ();
52                 public unowned string get_style_ids ();
53                 public unowned 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; }
58         }
59         [CCode (cheader_filename = "gtksourceview/gtksourcelanguagemanager.h")]
60         public class SourceLanguageManager : GLib.Object {
61                 [CCode (has_construct_function = false)]
62                 public SourceLanguageManager ();
63                 public static unowned Gtk.SourceLanguageManager get_default ();
64                 public unowned Gtk.SourceLanguage get_language (string id);
65                 [CCode (array_length = false, array_null_terminated = true)]
66                 public unowned string[]? get_language_ids ();
67                 [CCode (array_length = false, array_null_terminated = true)]
68                 public unowned string[]? get_search_path ();
69                 public unowned Gtk.SourceLanguage guess_language (string filename, string content_type);
70                 public void set_search_path ([CCode (array_length = false)] string[]? dirs);
71                 [CCode (array_length = false, array_null_terminated = true)]
72                 public string[] language_ids { get; }
73                 [CCode (array_length = false, array_null_terminated = true)]
74                 public string[] search_path { get; set; }
75         }
76         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
77         public class SourceMark : Gtk.TextMark {
78                 [CCode (has_construct_function = false)]
79                 public SourceMark (string name, string category);
80                 public unowned string get_category ();
81                 public unowned Gtk.SourceMark next (string category);
82                 public unowned Gtk.SourceMark prev (string category);
83                 public string category { get; construct; }
84         }
85         [CCode (cheader_filename = "gtksourceview/gtksourceprintcompositor.h")]
86         public class SourcePrintCompositor : GLib.Object {
87                 [CCode (has_construct_function = false)]
88                 public SourcePrintCompositor (Gtk.SourceBuffer buffer);
89                 public void draw_page (Gtk.PrintContext context, int page_nr);
90                 [CCode (has_construct_function = false)]
91                 public SourcePrintCompositor.from_view (Gtk.SourceView view);
92                 public unowned string get_body_font_name ();
93                 public double get_bottom_margin (Gtk.Unit unit);
94                 public unowned Gtk.SourceBuffer get_buffer ();
95                 public unowned string get_footer_font_name ();
96                 public unowned string get_header_font_name ();
97                 public bool get_highlight_syntax ();
98                 public double get_left_margin (Gtk.Unit unit);
99                 public unowned string get_line_numbers_font_name ();
100                 public int get_n_pages ();
101                 public double get_pagination_progress ();
102                 public bool get_print_footer ();
103                 public bool get_print_header ();
104                 public uint get_print_line_numbers ();
105                 public double get_right_margin (Gtk.Unit unit);
106                 public uint get_tab_width ();
107                 public double get_top_margin (Gtk.Unit unit);
108                 public Gtk.WrapMode get_wrap_mode ();
109                 public bool paginate (Gtk.PrintContext context);
110                 public void set_body_font_name (string font_name);
111                 public void set_bottom_margin (double margin, Gtk.Unit unit);
112                 public void set_footer_font_name (string font_name);
113                 public void set_footer_format (bool separator, string left, string center, string right);
114                 public void set_header_font_name (string font_name);
115                 public void set_header_format (bool separator, string left, string center, string right);
116                 public void set_highlight_syntax (bool highlight);
117                 public void set_left_margin (double margin, Gtk.Unit unit);
118                 public void set_line_numbers_font_name (string font_name);
119                 public void set_print_footer (bool print);
120                 public void set_print_header (bool print);
121                 public void set_print_line_numbers (uint interval);
122                 public void set_right_margin (double margin, Gtk.Unit unit);
123                 public void set_tab_width (uint width);
124                 public void set_top_margin (double margin, Gtk.Unit unit);
125                 public void set_wrap_mode (Gtk.WrapMode wrap_mode);
126                 public string body_font_name { get; set; }
127                 public Gtk.SourceBuffer buffer { get; construct; }
128                 public string footer_font_name { get; set; }
129                 public string header_font_name { get; set; }
130                 public bool highlight_syntax { get; set; }
131                 public string line_numbers_font_name { get; set; }
132                 public int n_pages { get; }
133                 public bool print_footer { get; set; }
134                 public bool print_header { get; set; }
135                 public uint print_line_numbers { get; set; }
136                 public uint tab_width { get; set; }
137                 public Gtk.WrapMode wrap_mode { get; set; }
138         }
139         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
140         public class SourceStyle : GLib.Object {
141                 public Gtk.SourceStyle copy ();
142                 [NoAccessorMethod]
143                 public string background { owned get; construct; }
144                 [NoAccessorMethod]
145                 public bool background_set { get; construct; }
146                 [NoAccessorMethod]
147                 public bool bold { get; construct; }
148                 [NoAccessorMethod]
149                 public bool bold_set { get; construct; }
150                 [NoAccessorMethod]
151                 public string foreground { owned get; construct; }
152                 [NoAccessorMethod]
153                 public bool foreground_set { get; construct; }
154                 [NoAccessorMethod]
155                 public bool italic { get; construct; }
156                 [NoAccessorMethod]
157                 public bool italic_set { get; construct; }
158                 [NoAccessorMethod]
159                 public string line_background { owned get; construct; }
160                 [NoAccessorMethod]
161                 public bool line_background_set { get; construct; }
162                 [NoAccessorMethod]
163                 public bool strikethrough { get; construct; }
164                 [NoAccessorMethod]
165                 public bool strikethrough_set { get; construct; }
166                 [NoAccessorMethod]
167                 public bool underline { get; construct; }
168                 [NoAccessorMethod]
169                 public bool underline_set { get; construct; }
170         }
171         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
172         public class SourceStyleScheme : GLib.Object {
173                 public unowned string get_authors ();
174                 public unowned string get_description ();
175                 public unowned string get_filename ();
176                 public unowned string get_id ();
177                 public unowned string get_name ();
178                 public unowned Gtk.SourceStyle get_style (string style_id);
179                 public string description { get; }
180                 public string filename { get; }
181                 public string id { get; construct; }
182                 public string name { get; }
183         }
184         [CCode (cheader_filename = "gtksourceview/gtksourcestyleschememanager.h")]
185         public class SourceStyleSchemeManager : GLib.Object {
186                 [CCode (has_construct_function = false)]
187                 public SourceStyleSchemeManager ();
188                 public void append_search_path (string path);
189                 public void force_rescan ();
190                 public static unowned Gtk.SourceStyleSchemeManager get_default ();
191                 public unowned Gtk.SourceStyleScheme get_scheme (string scheme_id);
192                 [CCode (array_length = false, array_null_terminated = true)]
193                 public unowned string[] get_scheme_ids ();
194                 [CCode (array_length = false, array_null_terminated = true)]
195                 public unowned string[] get_search_path ();
196                 public void prepend_search_path (string path);
197                 public void set_search_path (string path);
198                 [CCode (array_length = false, array_null_terminated = true)]
199                 public string[] scheme_ids { get; }
200                 [CCode (array_length = false, array_null_terminated = true)]
201                 public string[] search_path { get; set; }
202         }
203         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
204         public class SourceView : Gtk.TextView, Atk.Implementor, Gtk.Buildable {
205                 [CCode (type = "GtkWidget*", has_construct_function = false)]
206                 public SourceView ();
207                 public bool get_auto_indent ();
208                 public Gtk.SourceDrawSpacesFlags get_draw_spaces ();
209                 public bool get_highlight_current_line ();
210                 public bool get_indent_on_tab ();
211                 public int get_indent_width ();
212                 public bool get_insert_spaces_instead_of_tabs ();
213                 public bool get_mark_category_background (string category, Gdk.Color dest);
214                 public unowned Gdk.Pixbuf get_mark_category_pixbuf (string category);
215                 public int get_mark_category_priority (string category);
216                 public uint get_right_margin_position ();
217                 public bool get_show_line_marks ();
218                 public bool get_show_line_numbers ();
219                 public bool get_show_right_margin ();
220                 public Gtk.SourceSmartHomeEndType get_smart_home_end ();
221                 public uint get_tab_width ();
222                 public void set_auto_indent (bool enable);
223                 public void set_draw_spaces (Gtk.SourceDrawSpacesFlags flags);
224                 public void set_highlight_current_line (bool show);
225                 public void set_indent_on_tab (bool enable);
226                 public void set_indent_width (int width);
227                 public void set_insert_spaces_instead_of_tabs (bool enable);
228                 public void set_mark_category_background (string category, Gdk.Color color);
229                 public void set_mark_category_pixbuf (string category, Gdk.Pixbuf pixbuf);
230                 public void set_mark_category_priority (string category, int priority);
231                 public void set_mark_category_tooltip_func (string category, Gtk.SourceViewMarkTooltipFunc func, GLib.DestroyNotify user_data_notify);
232                 public void set_mark_category_tooltip_markup_func (string category, Gtk.SourceViewMarkTooltipFunc markup_func, GLib.DestroyNotify user_data_notify);
233                 public void set_right_margin_position (uint pos);
234                 public void set_show_line_marks (bool show);
235                 public void set_show_line_numbers (bool show);
236                 public void set_show_right_margin (bool show);
237                 public void set_smart_home_end (Gtk.SourceSmartHomeEndType smart_he);
238                 public void set_tab_width (uint width);
239                 [CCode (type = "GtkWidget*", has_construct_function = false)]
240                 public SourceView.with_buffer (Gtk.SourceBuffer buffer);
241                 public bool auto_indent { get; set; }
242                 public Gtk.SourceDrawSpacesFlags draw_spaces { get; set; }
243                 public bool highlight_current_line { get; set; }
244                 public bool indent_on_tab { get; set; }
245                 public int indent_width { get; set; }
246                 public bool insert_spaces_instead_of_tabs { get; set; }
247                 public uint right_margin_position { get; set; }
248                 public bool show_line_marks { get; set; }
249                 public bool show_line_numbers { get; set; }
250                 public bool show_right_margin { get; set; }
251                 public Gtk.SourceSmartHomeEndType smart_home_end { get; set; }
252                 public uint tab_width { get; set; }
253                 public virtual signal void redo ();
254                 public virtual signal void undo ();
255         }
256         [CCode (cprefix = "GTK_SOURCE_DRAW_SPACES_", cheader_filename = "gtksourceview/gtksourceview.h")]
257         [Flags]
258         public enum SourceDrawSpacesFlags {
259                 SPACE,
260                 TAB,
261                 NEWLINE,
262                 NBSP,
263                 ALL
264         }
265         [CCode (cprefix = "GTK_SOURCE_SEARCH_", cheader_filename = "gtksourceview/gtksourceiter.h")]
266         [Flags]
267         public enum SourceSearchFlags {
268                 VISIBLE_ONLY,
269                 TEXT_ONLY,
270                 CASE_INSENSITIVE
271         }
272         [CCode (cprefix = "GTK_SOURCE_SMART_HOME_END_", cheader_filename = "gtksourceview/gtksourceview.h")]
273         public enum SourceSmartHomeEndType {
274                 DISABLED,
275                 BEFORE,
276                 AFTER,
277                 ALWAYS
278         }
279         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
280         public delegate unowned string SourceViewMarkTooltipFunc (Gtk.SourceMark mark);
281         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
282         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);
283         [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
284         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);