1 /* vte.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Vte", lower_case_cprefix = "vte_")]
6 [CCode (cheader_filename = "vte/vte.h")]
7 public class CharAttributes {
10 public Gdk.Color fore;
12 public uint strikethrough;
13 public uint underline;
15 [CCode (cheader_filename = "vte/vte.h")]
16 public class Pty : GLib.Object, GLib.Initable {
17 [CCode (has_construct_function = false)]
18 public Pty (Vte.PtyFlags flags) throws GLib.Error;
19 public void child_setup ();
21 public static GLib.Quark error_quark ();
22 [CCode (has_construct_function = false)]
23 public Pty.foreign (int fd) throws GLib.Error;
25 public bool get_size (int rows, int columns) throws GLib.Error;
26 public bool set_size (int rows, int columns) throws GLib.Error;
27 public void set_term (string emulation);
28 public bool set_utf8 (bool utf8) throws GLib.Error;
29 public int fd { get; construct; }
31 public Vte.PtyFlags flags { get; construct; }
33 public string term { owned get; set; }
36 [CCode (cheader_filename = "vte/vte.h")]
37 public class PtyClass {
39 [CCode (cheader_filename = "vte/reaper.h")]
40 public class Reaper : GLib.Object {
41 [CCode (has_construct_function = false)]
43 public static int add_child (GLib.Pid pid);
44 public static unowned Vte.Reaper @get ();
45 public virtual signal void child_exited (int p0, int p1);
47 [CCode (cheader_filename = "vte/vte.h")]
48 public class Terminal : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
49 public weak Gtk.Adjustment adjustment;
50 public long char_ascent;
51 public long char_descent;
52 public long char_height;
53 public long char_width;
54 public long column_count;
55 public long row_count;
56 [CCode (type = "GtkWidget*", has_construct_function = false)]
58 public void copy_primary ();
59 public void feed (string data, long length);
60 public void feed_child (string text, long length);
61 public void feed_child_binary (string data, long length);
62 public int fork_command (string? command, [CCode (array_length = false)] string[]? argv, [CCode (array_length = false)] string[]? envv, string? working_directory, bool lastlog, bool utmp, bool wtmp);
63 public bool fork_command_full (Vte.PtyFlags pty_flags, string? working_directory, [CCode (array_length = false)] string[]? argv, [CCode (array_length = false)] string[]? envv, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc child_setup, GLib.Pid child_pid) throws GLib.Error;
64 public int forkpty (string[] envv, string working_directory, bool lastlog, bool utmp, bool wtmp);
65 public unowned Gtk.Adjustment get_adjustment ();
66 public bool get_allow_bold ();
67 public bool get_audible_bell ();
68 public long get_char_ascent ();
69 public long get_char_descent ();
70 public long get_char_height ();
71 public long get_char_width ();
72 public int get_child_exit_status ();
73 public long get_column_count ();
74 public Vte.TerminalCursorBlinkMode get_cursor_blink_mode ();
75 public void get_cursor_position (out long column, out long row);
76 public Vte.TerminalCursorShape get_cursor_shape ();
77 public unowned string get_default_emulation ();
78 public unowned string get_emulation ();
79 public unowned string get_encoding ();
80 public unowned Pango.FontDescription get_font ();
81 public bool get_has_selection ();
82 public unowned string get_icon_title ();
83 public bool get_mouse_autohide ();
84 public void get_padding (int xpad, int ypad);
85 public int get_pty ();
86 public unowned Vte.Pty get_pty_object ();
87 public long get_row_count ();
88 public unowned string get_status_line ();
89 public unowned string get_text (Vte.SelectionFunc is_selected, GLib.Array attributes);
90 public unowned string get_text_include_trailing_spaces (Vte.SelectionFunc is_selected, GLib.Array attributes);
91 public unowned string get_text_range (long start_row, long start_col, long end_row, long end_col, Vte.SelectionFunc is_selected, GLib.Array attributes);
92 public bool get_using_xft ();
93 public bool get_visible_bell ();
94 public unowned string get_window_title ();
95 public void im_append_menuitems (Gtk.MenuShell menushell);
96 public bool is_word_char (unichar c);
97 public int match_add (string match);
98 public int match_add_gregex (GLib.Regex regex, GLib.RegexMatchFlags flags);
99 public unowned string match_check (long column, long row, int tag);
100 public void match_clear_all ();
101 public void match_remove (int tag);
102 public void match_set_cursor (int tag, Gdk.Cursor cursor);
103 public void match_set_cursor_name (int tag, string cursor_name);
104 public void match_set_cursor_type (int tag, Gdk.CursorType cursor_type);
105 public void paste_primary ();
106 public Vte.Pty pty_new (Vte.PtyFlags flags) throws GLib.Error;
107 public void reset (bool clear_tabstops, bool clear_history);
108 public bool search_find_next ();
109 public bool search_find_previous ();
110 public unowned GLib.Regex search_get_gregex ();
111 public bool search_get_wrap_around ();
112 public void search_set_gregex (GLib.Regex regex);
113 public void search_set_wrap_around (bool wrap_around);
114 public void select_all ();
115 public void select_none ();
116 public void set_allow_bold (bool allow_bold);
117 public void set_audible_bell (bool is_audible);
118 public void set_background_image (Gdk.Pixbuf image);
119 public void set_background_image_file (string path);
120 public void set_background_saturation (double saturation);
121 public void set_background_tint_color (Gdk.Color color);
122 public void set_background_transparent (bool transparent);
123 public void set_backspace_binding (Vte.TerminalEraseBinding binding);
124 public void set_color_background (Gdk.Color background);
125 public void set_color_bold (Gdk.Color bold);
126 public void set_color_cursor (Gdk.Color cursor_background);
127 public void set_color_dim (Gdk.Color dim);
128 public void set_color_foreground (Gdk.Color foreground);
129 public void set_color_highlight (Gdk.Color highlight_background);
130 public void set_colors (Gdk.Color foreground, Gdk.Color background, Gdk.Color[] palette);
131 public void set_cursor_blink_mode (Vte.TerminalCursorBlinkMode mode);
132 public void set_cursor_blinks (bool blink);
133 public void set_cursor_shape (Vte.TerminalCursorShape shape);
134 public void set_default_colors ();
135 public void set_delete_binding (Vte.TerminalEraseBinding binding);
136 public void set_emulation (string emulation);
137 public void set_encoding (string codeset);
138 public void set_font (Pango.FontDescription font_desc);
139 public void set_font_from_string (string name);
140 public void set_font_from_string_full (string name, Vte.TerminalAntiAlias antialias);
141 public void set_font_full (Pango.FontDescription font_desc, Vte.TerminalAntiAlias antialias);
142 public void set_mouse_autohide (bool setting);
143 public void set_opacity (uint16 opacity);
144 public void set_pty (int pty_master);
145 public void set_pty_object (Vte.Pty pty);
146 public void set_scroll_background (bool scroll);
147 public void set_scroll_on_keystroke (bool scroll);
148 public void set_scroll_on_output (bool scroll);
149 public void set_scrollback_lines (long lines);
150 public void set_size (long columns, long rows);
151 public void set_visible_bell (bool is_visible);
152 public void set_word_chars (string spec);
154 public virtual void vte_reserved3 ();
156 public virtual void vte_reserved4 ();
157 public void watch_child (GLib.Pid child_pid);
158 public bool write_contents (GLib.OutputStream stream, Vte.TerminalWriteFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
159 public bool allow_bold { get; set; }
160 public bool audible_bell { get; set; }
162 public string background_image_file { owned get; set; }
164 public Gdk.Pixbuf background_image_pixbuf { owned get; set; }
166 public double background_opacity { get; set; }
168 public double background_saturation { get; set; }
170 public Gdk.Color background_tint_color { get; set; }
172 public bool background_transparent { get; set; }
174 public Vte.TerminalEraseBinding backspace_binding { get; set; }
175 public Vte.TerminalCursorBlinkMode cursor_blink_mode { get; set; }
176 public Vte.TerminalCursorShape cursor_shape { get; set; }
178 public Vte.TerminalEraseBinding delete_binding { get; set; }
179 public string emulation { get; set; }
180 public string encoding { get; set; }
182 public Pango.FontDescription font_desc { owned get; set; }
183 public string icon_title { get; }
185 public bool pointer_autohide { get; set; }
186 public int pty { get; set; }
187 public Vte.Pty pty_object { get; set; }
189 public bool scroll_background { get; set; }
191 public bool scroll_on_keystroke { get; set; }
193 public bool scroll_on_output { get; set; }
195 public uint scrollback_lines { get; set; }
196 public bool visible_bell { get; set; }
197 public string window_title { get; }
199 public string word_chars { owned get; set; }
200 public virtual signal void beep ();
201 public virtual signal void char_size_changed (uint char_width, uint char_height);
202 public virtual signal void child_exited ();
203 public virtual signal void commit (string text, uint size);
204 public virtual signal void contents_changed ();
206 public virtual signal void copy_clipboard ();
207 public virtual signal void cursor_moved ();
208 public virtual signal void decrease_font_size ();
209 public virtual signal void deiconify_window ();
210 public virtual signal void emulation_changed ();
211 public virtual signal void encoding_changed ();
212 public virtual signal void eof ();
213 public virtual signal void icon_title_changed ();
214 public virtual signal void iconify_window ();
215 public virtual signal void increase_font_size ();
216 public virtual signal void lower_window ();
217 public virtual signal void maximize_window ();
218 public virtual signal void move_window (uint x, uint y);
220 public virtual signal void paste_clipboard ();
221 public virtual signal void raise_window ();
222 public virtual signal void refresh_window ();
223 public virtual signal void resize_window (uint width, uint height);
224 public virtual signal void restore_window ();
225 public virtual signal void selection_changed ();
226 public virtual signal void set_scroll_adjustments (Gtk.Adjustment hadjustment, Gtk.Adjustment vadjustment);
227 public virtual signal void status_line_changed ();
228 public virtual signal void text_deleted ();
229 public virtual signal void text_inserted ();
230 public virtual signal void text_modified ();
231 public virtual signal void text_scrolled (int delta);
232 public virtual signal void window_title_changed ();
234 [CCode (cheader_filename = "vte/vteaccess.h")]
235 public class TerminalAccessible : Gtk.Accessible, Atk.Text, Atk.Component, Atk.Action {
236 [CCode (type = "AtkObject*", has_construct_function = false)]
237 public TerminalAccessible (Vte.Terminal terminal);
239 [CCode (cheader_filename = "vte/vte.h")]
240 public class TerminalAccessibleFactory : Atk.ObjectFactory {
241 [CCode (type = "AtkObjectFactory*", has_construct_function = false)]
242 public TerminalAccessibleFactory ();
244 [CCode (cprefix = "VTE_PTY_ERROR_", cheader_filename = "vte/vte.h")]
245 public enum PtyError {
249 [CCode (cprefix = "VTE_PTY_", cheader_filename = "vte/vte.h")]
251 public enum PtyFlags {
259 [CCode (cprefix = "VTE_ANTI_ALIAS_", cheader_filename = "vte/vte.h")]
260 public enum TerminalAntiAlias {
265 [CCode (cprefix = "VTE_CURSOR_BLINK_", cheader_filename = "vte/vte.h")]
266 public enum TerminalCursorBlinkMode {
271 [CCode (cprefix = "VTE_CURSOR_SHAPE_", cheader_filename = "vte/vte.h")]
272 public enum TerminalCursorShape {
277 [CCode (cprefix = "VTE_ERASE_", cheader_filename = "vte/vte.h")]
278 public enum TerminalEraseBinding {
285 [CCode (cprefix = "VTE_TERMINAL_WRITE_", cheader_filename = "vte/vte.h")]
286 public enum TerminalWriteFlags {
289 [CCode (cheader_filename = "vte/vte.h")]
290 public delegate bool SelectionFunc (Vte.Terminal terminal, long column, long row);
291 [CCode (cheader_filename = "vte/vte.h")]
292 public const int MAJOR_VERSION;
293 [CCode (cheader_filename = "vte/vte.h")]
294 public const int MICRO_VERSION;
295 [CCode (cheader_filename = "vte/vte.h")]
296 public const int MINOR_VERSION;
297 [CCode (cheader_filename = "vte/vte.h")]
298 public static unowned string get_user_shell ();