1 /* vte-2.90.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Vte", gir_namespace = "Vte", gir_version = "2.90", lower_case_cprefix = "vte_")]
5 [CCode (cheader_filename = "vte/vte.h", type_id = "vte_pty_get_type ()")]
6 [Version (since = "0.26")]
7 public class Pty : GLib.Object, GLib.Initable {
8 [CCode (has_construct_function = false)]
9 public Pty (Vte.PtyFlags flags) throws GLib.Error;
10 public void child_setup ();
12 [CCode (has_construct_function = false)]
13 public Pty.foreign (int fd) throws GLib.Error;
15 public bool get_size (out int rows, out int columns) throws GLib.Error;
16 public bool set_size (int rows, int columns) throws GLib.Error;
17 public void set_term (string? emulation);
18 public bool set_utf8 (bool utf8) throws GLib.Error;
19 public int fd { get; construct; }
21 public Vte.PtyFlags flags { get; construct; }
23 public string term { owned get; set; }
25 [CCode (cheader_filename = "vte/vte.h", type_id = "vte_terminal_get_type ()")]
26 public class Terminal : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
27 [CCode (has_construct_function = false, type = "GtkWidget*")]
29 public void copy_primary ();
30 public void feed ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "glong")] uint8[] data);
31 public void feed_child (string text, long length);
32 [Version (since = "0.12.1")]
33 public void feed_child_binary (string data, long length);
34 [Version (since = "0.26")]
35 public bool fork_command_full (Vte.PtyFlags pty_flags, string? working_directory, [CCode (array_length = false, array_null_terminated = true)] string[] argv, [CCode (array_length = false, array_null_terminated = true)] string[]? envv, GLib.SpawnFlags spawn_flags, [CCode (delegate_target_pos = 6.5)] GLib.SpawnChildSetupFunc? child_setup, out GLib.Pid child_pid) throws GLib.Error;
36 public bool get_allow_bold ();
37 public bool get_audible_bell ();
38 public long get_char_height ();
39 public long get_char_width ();
40 [Version (since = "0.20")]
41 public int get_child_exit_status ();
42 public long get_column_count ();
43 [Version (since = "0.34")]
44 public unowned string get_current_directory_uri ();
45 [Version (since = "0.34")]
46 public unowned string get_current_file_uri ();
47 [Version (since = "0.17.1")]
48 public Vte.TerminalCursorBlinkMode get_cursor_blink_mode ();
49 public void get_cursor_position (out long column, out long row);
50 [Version (since = "0.17.6")]
51 public Vte.TerminalCursorShape get_cursor_shape ();
52 [Version (since = "0.11.11")]
53 public unowned string get_default_emulation ();
54 public unowned string get_emulation ();
55 public unowned string get_encoding ();
56 public unowned Pango.FontDescription get_font ();
57 public bool get_has_selection ();
58 public unowned string get_icon_title ();
59 public bool get_mouse_autohide ();
60 [Version (since = "0.26")]
61 public unowned Vte.Pty get_pty_object ();
62 public long get_row_count ();
63 public unowned string get_status_line ();
64 public string get_text ([CCode (delegate_target_pos = 1.5)] Vte.SelectionFunc? is_selected, out GLib.Array<Vte.CharAttributes?> attributes);
65 [Version (since = "0.11.11")]
66 public string get_text_include_trailing_spaces ([CCode (delegate_target_pos = 1.5)] Vte.SelectionFunc? is_selected, out GLib.Array<Vte.CharAttributes?> attributes);
67 public string get_text_range (long start_row, long start_col, long end_row, long end_col, [CCode (delegate_target_pos = 5.5)] Vte.SelectionFunc? is_selected, out GLib.Array<Vte.CharAttributes?> attributes);
68 public bool get_visible_bell ();
69 public unowned string get_window_title ();
70 public void im_append_menuitems (Gtk.MenuShell menushell);
71 public bool is_word_char (unichar c);
72 [Version (since = "0.17.1")]
73 public int match_add_gregex (GLib.Regex regex, GLib.RegexMatchFlags flags);
74 public string? match_check (long column, long row, out int tag);
75 public void match_clear_all ();
76 public void match_remove (int tag);
77 [Version (since = "0.11")]
78 public void match_set_cursor (int tag, Gdk.Cursor? cursor);
79 [Version (since = "0.17.1")]
80 public void match_set_cursor_name (int tag, string cursor_name);
81 [Version (since = "0.11.9")]
82 public void match_set_cursor_type (int tag, Gdk.CursorType cursor_type);
83 public void paste_primary ();
84 [Version (since = "0.26")]
85 public Vte.Pty pty_new (Vte.PtyFlags flags) throws GLib.Error;
86 public void reset (bool clear_tabstops, bool clear_history);
87 [Version (since = "0.26")]
88 public bool search_find_next ();
89 [Version (since = "0.26")]
90 public bool search_find_previous ();
91 [Version (since = "0.26")]
92 public unowned GLib.Regex search_get_gregex ();
93 [Version (since = "0.26")]
94 public bool search_get_wrap_around ();
95 [Version (since = "0.26")]
96 public void search_set_gregex (GLib.Regex? regex);
97 [Version (since = "0.26")]
98 public void search_set_wrap_around (bool wrap_around);
99 [Version (since = "0.16")]
100 public void select_all ();
101 [Version (since = "0.16")]
102 public void select_none ();
103 public void set_allow_bold (bool allow_bold);
104 public void set_audible_bell (bool is_audible);
105 public void set_background_image (Gdk.Pixbuf? image);
106 public void set_background_image_file (string path);
107 public void set_background_saturation (double saturation);
108 [Version (since = "0.11")]
109 public void set_background_tint_color (Gdk.Color color);
110 public void set_background_transparent (bool transparent);
111 public void set_backspace_binding (Vte.TerminalEraseBinding binding);
112 public void set_color_background (Gdk.Color background);
113 [Version (since = "0.28")]
114 public void set_color_background_rgba (Gdk.RGBA background);
115 public void set_color_bold (Gdk.Color bold);
116 public void set_color_bold_rgba (Gdk.RGBA? bold);
117 [Version (since = "0.11.11")]
118 public void set_color_cursor (Gdk.Color? cursor_background);
119 [Version (since = "0.28")]
120 public void set_color_cursor_rgba (Gdk.RGBA? cursor_background);
121 public void set_color_dim (Gdk.Color dim);
122 [Version (since = "0.28")]
123 public void set_color_dim_rgba (Gdk.RGBA? dim);
124 public void set_color_foreground (Gdk.Color foreground);
125 [Version (since = "0.28")]
126 public void set_color_foreground_rgba (Gdk.RGBA foreground);
127 [Version (since = "0.11.11")]
128 public void set_color_highlight (Gdk.Color? highlight_background);
129 [Version (since = "0.28")]
130 public void set_color_highlight_rgba (Gdk.RGBA? highlight_background);
131 public void set_colors (Gdk.Color? foreground, Gdk.Color? background, [CCode (array_length_cname = "palette_size", array_length_pos = 3.1, array_length_type = "glong")] Gdk.Color[] palette);
132 [Version (since = "0.28")]
133 public void set_colors_rgba (Gdk.RGBA? foreground, Gdk.RGBA? background, [CCode (array_length_cname = "palette_size", array_length_pos = 3.1, array_length_type = "gsize")] Gdk.RGBA[] palette);
134 [Version (since = "0.17.1")]
135 public void set_cursor_blink_mode (Vte.TerminalCursorBlinkMode mode);
136 [Version (since = "0.20")]
137 public void set_cursor_shape (Vte.TerminalCursorShape shape);
138 public void set_default_colors ();
139 public void set_delete_binding (Vte.TerminalEraseBinding binding);
140 public void set_emulation (string? emulation);
141 public void set_encoding (string? codeset);
142 public void set_font (Pango.FontDescription? font_desc);
143 public void set_font_from_string (string name);
144 public void set_mouse_autohide (bool setting);
145 public void set_opacity (uint16 opacity);
146 [Version (since = "0.26.")]
147 public void set_pty_object (Vte.Pty? pty);
148 [Version (since = "0.11")]
149 public void set_scroll_background (bool scroll);
150 public void set_scroll_on_keystroke (bool scroll);
151 public void set_scroll_on_output (bool scroll);
152 public void set_scrollback_lines (long lines);
153 public void set_size (long columns, long rows);
154 public void set_visible_bell (bool is_visible);
155 public void set_word_chars (string spec);
156 [Version (since = "0.26")]
157 public void watch_child (GLib.Pid child_pid);
158 [Version (since = "0.24")]
159 public bool write_contents (GLib.OutputStream stream, Vte.TerminalWriteFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
160 [Version (since = "0.20")]
161 public bool allow_bold { get; set; }
162 [Version (since = "0.20")]
163 public bool audible_bell { get; set; }
165 public string background_image_file { owned get; set; }
167 [Version (since = "0.20")]
168 public Gdk.Pixbuf background_image_pixbuf { owned get; set; }
170 [Version (since = "0.20")]
171 public double background_opacity { get; set; }
173 [Version (since = "0.20")]
174 public double background_saturation { get; set; }
176 [Version (since = "0.20")]
177 public Gdk.Color background_tint_color { get; set; }
179 [Version (since = "0.20")]
180 public bool background_transparent { get; set; }
182 [Version (since = "0.20")]
183 public Vte.TerminalEraseBinding backspace_binding { get; set; }
184 [Version (since = "0.34")]
185 public string current_directory_uri { get; }
186 [Version (since = "0.34")]
187 public string current_file_uri { get; }
188 [Version (since = "0.20")]
189 public Vte.TerminalCursorBlinkMode cursor_blink_mode { get; set; }
190 [Version (since = "0.20")]
191 public Vte.TerminalCursorShape cursor_shape { get; set; }
193 [Version (since = "0.20")]
194 public Vte.TerminalEraseBinding delete_binding { get; set; }
195 [Version (since = "0.20")]
196 public string emulation { get; set; }
197 [Version (since = "0.20")]
198 public string encoding { get; set; }
200 [Version (since = "0.20")]
201 public Pango.FontDescription font_desc { owned get; set; }
202 [Version (since = "0.20")]
203 public string icon_title { get; }
205 [Version (since = "0.20")]
206 public bool pointer_autohide { get; set; }
207 [Version (since = "0.26")]
208 public Vte.Pty pty_object { get; set; }
210 [Version (since = "0.20")]
211 public bool scroll_background { get; set; }
213 [Version (since = "0.20")]
214 public bool scroll_on_keystroke { get; set; }
216 [Version (since = "0.20")]
217 public bool scroll_on_output { get; set; }
219 [Version (since = "0.20")]
220 public uint scrollback_lines { get; set; }
221 [Version (since = "0.20")]
222 public bool visible_bell { get; set; }
223 [Version (since = "0.20")]
224 public string window_title { get; }
226 [Version (since = "0.20")]
227 public string word_chars { owned get; set; }
228 public virtual signal void beep ();
229 public virtual signal void char_size_changed (uint char_width, uint char_height);
230 public virtual signal void child_exited ();
231 public virtual signal void commit (string text, uint size);
232 public virtual signal void contents_changed ();
234 public virtual signal void copy_clipboard ();
235 [Version (since = "0.34")]
236 public signal void current_directory_uri_changed ();
237 [Version (since = "0.34")]
238 public signal void current_file_uri_changed ();
239 public virtual signal void cursor_moved ();
240 public virtual signal void decrease_font_size ();
241 public virtual signal void deiconify_window ();
242 public virtual signal void emulation_changed ();
243 public virtual signal void encoding_changed ();
244 public virtual signal void eof ();
245 public virtual signal void icon_title_changed ();
246 public virtual signal void iconify_window ();
247 public virtual signal void increase_font_size ();
248 public virtual signal void lower_window ();
249 public virtual signal void maximize_window ();
250 public virtual signal void move_window (uint x, uint y);
252 public virtual signal void paste_clipboard ();
253 public virtual signal void raise_window ();
254 public virtual signal void refresh_window ();
255 public virtual signal void resize_window (uint width, uint height);
256 public virtual signal void restore_window ();
257 public virtual signal void selection_changed ();
258 public virtual signal void status_line_changed ();
259 public virtual signal void text_deleted ();
260 public virtual signal void text_inserted ();
261 public virtual signal void text_modified ();
262 public virtual signal void text_scrolled (int delta);
263 public virtual signal void window_title_changed ();
265 [CCode (cheader_filename = "vte/vte.h", has_type_id = false)]
266 public struct CharAttributes {
268 [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_PTY_", type_id = "vte_pty_flags_get_type ()")]
270 [Version (since = "0.26")]
271 public enum PtyFlags {
279 [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_ANTI_ALIAS_", type_id = "vte_terminal_anti_alias_get_type ()")]
280 public enum TerminalAntiAlias {
285 [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_CURSOR_BLINK_", type_id = "vte_terminal_cursor_blink_mode_get_type ()")]
286 public enum TerminalCursorBlinkMode {
291 [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_CURSOR_SHAPE_", type_id = "vte_terminal_cursor_shape_get_type ()")]
292 public enum TerminalCursorShape {
297 [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_ERASE_", type_id = "vte_terminal_erase_binding_get_type ()")]
298 public enum TerminalEraseBinding {
305 [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_TERMINAL_WRITE_", type_id = "vte_terminal_write_flags_get_type ()")]
306 public enum TerminalWriteFlags {
309 [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_PTY_ERROR_")]
310 [Version (since = "0.26")]
311 public errordomain PtyError {
314 public static GLib.Quark quark ();
316 [CCode (cheader_filename = "vte/vte.h", instance_pos = 3.9)]
317 public delegate bool SelectionFunc (Vte.Terminal terminal, long column, long row);
318 [CCode (cheader_filename = "vte/vte.h")]
319 public const int MAJOR_VERSION;
320 [CCode (cheader_filename = "vte/vte.h")]
321 public const int MICRO_VERSION;
322 [CCode (cheader_filename = "vte/vte.h")]
323 public const int MINOR_VERSION;
324 [CCode (cheader_filename = "vte/vte.h")]
325 [Version (since = "0.28")]
326 public static string? get_user_shell ();