8401f790f33c9b30d097d9ee83e5c39a36e5dab0
[platform/upstream/vala.git] / vapi / vte-2.90.vapi
1 /* vte-2.90.vapi generated by vapigen, do not modify. */
2
3 [CCode (cprefix = "Vte", gir_namespace = "Vte", gir_version = "2.90", lower_case_cprefix = "vte_")]
4 namespace Vte {
5         [CCode (cheader_filename = "vte/vte.h", type_id = "vte_pty_get_type ()")]
6         public class Pty : GLib.Object, GLib.Initable {
7                 [CCode (has_construct_function = false)]
8                 public Pty (Vte.PtyFlags flags) throws GLib.Error;
9                 public void child_setup ();
10                 public void close ();
11                 [CCode (has_construct_function = false)]
12                 public Pty.foreign (int fd) throws GLib.Error;
13                 public int get_fd ();
14                 public bool get_size (out int rows, out int columns) throws GLib.Error;
15                 public bool set_size (int rows, int columns) throws GLib.Error;
16                 public void set_term (string? emulation);
17                 public bool set_utf8 (bool utf8) throws GLib.Error;
18                 public int fd { get; construct; }
19                 [NoAccessorMethod]
20                 public Vte.PtyFlags flags { get; construct; }
21                 [NoAccessorMethod]
22                 public string term { owned get; set; }
23         }
24         [CCode (cheader_filename = "vte/vte.h", type_id = "vte_terminal_get_type ()")]
25         public class Terminal : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
26                 [CCode (has_construct_function = false, type = "GtkWidget*")]
27                 public Terminal ();
28                 public void copy_primary ();
29                 public void feed ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "glong")] uint8[] data);
30                 public void feed_child (string text, long length);
31                 public void feed_child_binary (string data, long length);
32                 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;
33                 public bool get_allow_bold ();
34                 public bool get_audible_bell ();
35                 public long get_char_height ();
36                 public long get_char_width ();
37                 public int get_child_exit_status ();
38                 public long get_column_count ();
39                 public unowned string get_current_directory_uri ();
40                 public unowned string get_current_file_uri ();
41                 public Vte.TerminalCursorBlinkMode get_cursor_blink_mode ();
42                 public void get_cursor_position (out long column, out long row);
43                 public Vte.TerminalCursorShape get_cursor_shape ();
44                 public unowned string get_default_emulation ();
45                 public unowned string get_emulation ();
46                 public unowned string get_encoding ();
47                 public unowned Pango.FontDescription get_font ();
48                 public bool get_has_selection ();
49                 public unowned string get_icon_title ();
50                 public bool get_mouse_autohide ();
51                 public unowned Vte.Pty get_pty_object ();
52                 public long get_row_count ();
53                 public unowned string get_status_line ();
54                 public bool get_visible_bell ();
55                 public unowned string get_window_title ();
56                 public void im_append_menuitems (Gtk.MenuShell menushell);
57                 public bool is_word_char (unichar c);
58                 public int match_add_gregex (GLib.Regex regex, GLib.RegexMatchFlags flags);
59                 public string? match_check (long column, long row, out int tag);
60                 public void match_clear_all ();
61                 public void match_remove (int tag);
62                 public void match_set_cursor (int tag, Gdk.Cursor? cursor);
63                 public void match_set_cursor_name (int tag, string cursor_name);
64                 public void match_set_cursor_type (int tag, Gdk.CursorType cursor_type);
65                 public void paste_primary ();
66                 public Vte.Pty pty_new (Vte.PtyFlags flags) throws GLib.Error;
67                 public void reset (bool clear_tabstops, bool clear_history);
68                 public bool search_find_next ();
69                 public bool search_find_previous ();
70                 public unowned GLib.Regex search_get_gregex ();
71                 public bool search_get_wrap_around ();
72                 public void search_set_gregex (GLib.Regex? regex);
73                 public void search_set_wrap_around (bool wrap_around);
74                 public void select_all ();
75                 public void select_none ();
76                 public void set_allow_bold (bool allow_bold);
77                 public void set_audible_bell (bool is_audible);
78                 public void set_background_image (Gdk.Pixbuf? image);
79                 public void set_background_image_file (string path);
80                 public void set_background_saturation (double saturation);
81                 public void set_background_tint_color (Gdk.Color color);
82                 public void set_background_transparent (bool transparent);
83                 public void set_backspace_binding (Vte.TerminalEraseBinding binding);
84                 public void set_color_background (Gdk.Color background);
85                 public void set_color_background_rgba (Gdk.RGBA background);
86                 public void set_color_bold (Gdk.Color bold);
87                 public void set_color_bold_rgba (Gdk.RGBA? bold);
88                 public void set_color_cursor (Gdk.Color? cursor_background);
89                 public void set_color_cursor_rgba (Gdk.RGBA? cursor_background);
90                 public void set_color_dim (Gdk.Color dim);
91                 public void set_color_dim_rgba (Gdk.RGBA? dim);
92                 public void set_color_foreground (Gdk.Color foreground);
93                 public void set_color_foreground_rgba (Gdk.RGBA foreground);
94                 public void set_color_highlight (Gdk.Color? highlight_background);
95                 public void set_color_highlight_rgba (Gdk.RGBA? highlight_background);
96                 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);
97                 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);
98                 public void set_cursor_blink_mode (Vte.TerminalCursorBlinkMode mode);
99                 public void set_cursor_shape (Vte.TerminalCursorShape shape);
100                 public void set_default_colors ();
101                 public void set_delete_binding (Vte.TerminalEraseBinding binding);
102                 public void set_emulation (string? emulation);
103                 public void set_encoding (string? codeset);
104                 public void set_font (Pango.FontDescription? font_desc);
105                 public void set_font_from_string (string name);
106                 public void set_mouse_autohide (bool setting);
107                 public void set_opacity (uint16 opacity);
108                 public void set_pty_object (Vte.Pty? pty);
109                 public void set_scroll_background (bool scroll);
110                 public void set_scroll_on_keystroke (bool scroll);
111                 public void set_scroll_on_output (bool scroll);
112                 public void set_scrollback_lines (long lines);
113                 public void set_size (long columns, long rows);
114                 public void set_visible_bell (bool is_visible);
115                 public void set_word_chars (string spec);
116                 public void watch_child (GLib.Pid child_pid);
117                 public bool write_contents (GLib.OutputStream stream, Vte.TerminalWriteFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
118                 public bool allow_bold { get; set; }
119                 public bool audible_bell { get; set; }
120                 [NoAccessorMethod]
121                 public string background_image_file { owned get; set; }
122                 [NoAccessorMethod]
123                 public Gdk.Pixbuf background_image_pixbuf { owned get; set; }
124                 [NoAccessorMethod]
125                 public double background_opacity { get; set; }
126                 [NoAccessorMethod]
127                 public double background_saturation { get; set; }
128                 [NoAccessorMethod]
129                 public Gdk.Color background_tint_color { get; set; }
130                 [NoAccessorMethod]
131                 public bool background_transparent { get; set; }
132                 [NoAccessorMethod]
133                 public Vte.TerminalEraseBinding backspace_binding { get; set; }
134                 public string current_directory_uri { get; }
135                 public string current_file_uri { get; }
136                 public Vte.TerminalCursorBlinkMode cursor_blink_mode { get; set; }
137                 public Vte.TerminalCursorShape cursor_shape { get; set; }
138                 [NoAccessorMethod]
139                 public Vte.TerminalEraseBinding delete_binding { get; set; }
140                 public string emulation { get; set; }
141                 public string encoding { get; set; }
142                 [NoAccessorMethod]
143                 public Pango.FontDescription font_desc { owned get; set; }
144                 public string icon_title { get; }
145                 [NoAccessorMethod]
146                 public bool pointer_autohide { get; set; }
147                 public Vte.Pty pty_object { get; set; }
148                 [NoAccessorMethod]
149                 public bool scroll_background { get; set; }
150                 [NoAccessorMethod]
151                 public bool scroll_on_keystroke { get; set; }
152                 [NoAccessorMethod]
153                 public bool scroll_on_output { get; set; }
154                 [NoAccessorMethod]
155                 public uint scrollback_lines { get; set; }
156                 public bool visible_bell { get; set; }
157                 public string window_title { get; }
158                 [NoAccessorMethod]
159                 public string word_chars { owned get; set; }
160                 public virtual signal void beep ();
161                 public virtual signal void char_size_changed (uint char_width, uint char_height);
162                 public virtual signal void child_exited ();
163                 public virtual signal void commit (string text, uint size);
164                 public virtual signal void contents_changed ();
165                 [HasEmitter]
166                 public virtual signal void copy_clipboard ();
167                 public signal void current_directory_uri_changed ();
168                 public signal void current_file_uri_changed ();
169                 public virtual signal void cursor_moved ();
170                 public virtual signal void decrease_font_size ();
171                 public virtual signal void deiconify_window ();
172                 public virtual signal void emulation_changed ();
173                 public virtual signal void encoding_changed ();
174                 public virtual signal void eof ();
175                 public virtual signal void icon_title_changed ();
176                 public virtual signal void iconify_window ();
177                 public virtual signal void increase_font_size ();
178                 public virtual signal void lower_window ();
179                 public virtual signal void maximize_window ();
180                 public virtual signal void move_window (uint x, uint y);
181                 [HasEmitter]
182                 public virtual signal void paste_clipboard ();
183                 public virtual signal void raise_window ();
184                 public virtual signal void refresh_window ();
185                 public virtual signal void resize_window (uint width, uint height);
186                 public virtual signal void restore_window ();
187                 public virtual signal void selection_changed ();
188                 public virtual signal void status_line_changed ();
189                 public virtual signal void text_deleted ();
190                 public virtual signal void text_inserted ();
191                 public virtual signal void text_modified ();
192                 public virtual signal void text_scrolled (int delta);
193                 public virtual signal void window_title_changed ();
194         }
195         [CCode (cheader_filename = "vte/vte.h", cname = "_VteCharAttributes", has_type_id = false)]
196         public struct _CharAttributes {
197         }
198         [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_PTY_", type_id = "vte_pty_flags_get_type ()")]
199         [Flags]
200         public enum PtyFlags {
201                 NO_LASTLOG,
202                 NO_UTMP,
203                 NO_WTMP,
204                 NO_HELPER,
205                 NO_FALLBACK,
206                 DEFAULT
207         }
208         [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_ANTI_ALIAS_", type_id = "vte_terminal_anti_alias_get_type ()")]
209         public enum TerminalAntiAlias {
210                 USE_DEFAULT,
211                 FORCE_ENABLE,
212                 FORCE_DISABLE
213         }
214         [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_CURSOR_BLINK_", type_id = "vte_terminal_cursor_blink_mode_get_type ()")]
215         public enum TerminalCursorBlinkMode {
216                 SYSTEM,
217                 ON,
218                 OFF
219         }
220         [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_CURSOR_SHAPE_", type_id = "vte_terminal_cursor_shape_get_type ()")]
221         public enum TerminalCursorShape {
222                 BLOCK,
223                 IBEAM,
224                 UNDERLINE
225         }
226         [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_ERASE_", type_id = "vte_terminal_erase_binding_get_type ()")]
227         public enum TerminalEraseBinding {
228                 AUTO,
229                 ASCII_BACKSPACE,
230                 ASCII_DELETE,
231                 DELETE_SEQUENCE,
232                 TTY
233         }
234         [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_TERMINAL_WRITE_", type_id = "vte_terminal_write_flags_get_type ()")]
235         public enum TerminalWriteFlags {
236                 DEFAULT
237         }
238         [CCode (cheader_filename = "vte/vte.h", cprefix = "VTE_PTY_ERROR_")]
239         public errordomain PtyError {
240                 PTY_HELPER_FAILED,
241                 PTY98_FAILED;
242                 public static GLib.Quark quark ();
243         }
244         [CCode (cheader_filename = "vte/vte.h", instance_pos = 3.9)]
245         public delegate bool SelectionFunc (Vte.Terminal terminal, long column, long row);
246         [CCode (cheader_filename = "vte/vte.h")]
247         public const int MAJOR_VERSION;
248         [CCode (cheader_filename = "vte/vte.h")]
249         public const int MICRO_VERSION;
250         [CCode (cheader_filename = "vte/vte.h")]
251         public const int MINOR_VERSION;
252         [CCode (cheader_filename = "vte/vte.h")]
253         public static string? get_user_shell ();
254 }