write static delegate instead of callback use static delegate instead of
[vala-lang.git] / vapi / vte.vala
blobbd0006fda40b78dc7e9f4666a101499269e22727
1 [CCode (cprefix = "Vte", lower_case_cprefix = "vte_", cheader_filename = "vte/vte.h")]
2 namespace Vte {
3 [CCode (cprefix = "VTE_ANTI_ALIAS_")]
4 public enum TerminalAntiAlias {
5 USE_DEFAULT,
6 FORCE_ENABLE,
7 FORCE_DISABLE,
9 [CCode (cprefix = "VTE_ERASE_")]
10 public enum TerminalEraseBinding {
11 AUTO,
12 ASCII_BACKSPACE,
13 ASCII_DELETE,
14 DELETE_SEQUENCE,
16 [CCode (cheader_filename = "vte/reaper.h")]
17 public class Reaper : GLib.Object {
18 public static int add_child (GLib.Pid pid);
19 public static weak Vte.Reaper get ();
20 public static GLib.Type get_type ();
21 public signal void child_exited (int p0, int p1);
23 [CCode (cheader_filename = "vte/vte.h")]
24 public class Terminal : Gtk.Widget {
25 public weak Gtk.Adjustment adjustment;
26 public long char_width;
27 public long char_height;
28 public long char_ascent;
29 public long char_descent;
30 public long row_count;
31 public long column_count;
32 public weak string window_title;
33 public weak string icon_title;
34 public void copy_clipboard ();
35 public void copy_primary ();
36 public void feed (string data, long length);
37 public void feed_child (string text, long length);
38 public void feed_child_binary (string data, long length);
39 public int fork_command (string command, string argv, string envv, string directory, bool lastlog, bool utmp, bool wtmp);
40 public int forkpty (string envv, string directory, bool lastlog, bool utmp, bool wtmp);
41 public weak Gtk.Adjustment get_adjustment ();
42 public bool get_allow_bold ();
43 public bool get_audible_bell ();
44 public long get_char_ascent ();
45 public long get_char_descent ();
46 public long get_char_height ();
47 public long get_char_width ();
48 public long get_column_count ();
49 public void get_cursor_position (long column, long row);
50 public weak string get_default_emulation ();
51 public weak string get_emulation ();
52 public weak string get_encoding ();
53 public weak Pango.FontDescription get_font ();
54 public bool get_has_selection ();
55 public weak string get_icon_title ();
56 public bool get_mouse_autohide ();
57 public void get_padding (int xpad, int ypad);
58 public long get_row_count ();
59 public weak string get_status_line ();
60 public weak string get_text (Vte.IsSelectedFunc is_selected, pointer data, GLib.Array attributes);
61 public weak string get_text_include_trailing_spaces (Vte.IsSelectedFunc is_selected, pointer data, GLib.Array attributes);
62 public weak string get_text_range (long start_row, long start_col, long end_row, long end_col, Vte.IsSelectedFunc is_selected, pointer data, GLib.Array attributes);
63 public static weak Gtk.Type get_type ();
64 public bool get_using_xft ();
65 public bool get_visible_bell ();
66 public weak string get_window_title ();
67 public void im_append_menuitems (Gtk.MenuShell menushell);
68 public bool is_word_char (unichar c);
69 public int match_add (string match);
70 public weak string match_check (long column, long row, int tag);
71 public void match_clear_all ();
72 public void match_remove (int tag);
73 public void match_set_cursor (int tag, Gdk.Cursor cursor);
74 public void match_set_cursor_type (int tag, Gdk.CursorType cursor_type);
75 public Terminal ();
76 public void paste_clipboard ();
77 public void paste_primary ();
78 public void reset (bool full, bool clear_history);
79 public void select_all ();
80 public void select_none ();
81 public void set_allow_bold (bool allow_bold);
82 public void set_audible_bell (bool is_audible);
83 public void set_background_image (Gdk.Pixbuf image);
84 public void set_background_image_file (string path);
85 public void set_background_saturation (double saturation);
86 public void set_background_tint_color (Gdk.Color color);
87 public void set_background_transparent (bool transparent);
88 public void set_backspace_binding (Vte.TerminalEraseBinding binding);
89 public void set_color_background (Gdk.Color background);
90 public void set_color_bold (Gdk.Color bold);
91 public void set_color_cursor (Gdk.Color cursor_background);
92 public void set_color_dim (Gdk.Color dim);
93 public void set_color_foreground (Gdk.Color foreground);
94 public void set_color_highlight (Gdk.Color highlight_background);
95 public void set_colors (Gdk.Color foreground, Gdk.Color background, Gdk.Color palette, long palette_size);
96 public void set_cursor_blinks (bool blink);
97 public void set_default_colors ();
98 public void set_delete_binding (Vte.TerminalEraseBinding binding);
99 public void set_emulation (string emulation);
100 public void set_encoding (string codeset);
101 public void set_font (Pango.FontDescription font_desc);
102 public void set_font_from_string (string name);
103 public void set_font_from_string_full (string name, Vte.TerminalAntiAlias antialias);
104 public void set_font_full (Pango.FontDescription font_desc, Vte.TerminalAntiAlias antialias);
105 public void set_mouse_autohide (bool setting);
106 public void set_opacity (ushort opacity);
107 public void set_pty (int pty_master);
108 public void set_scroll_background (bool scroll);
109 public void set_scroll_on_keystroke (bool scroll);
110 public void set_scroll_on_output (bool scroll);
111 public void set_scrollback_lines (long lines);
112 public void set_size (long columns, long rows);
113 public void set_visible_bell (bool is_visible);
114 public void set_word_chars (string spec);
115 public signal void child_exited ();
116 public signal void window_title_changed ();
117 public signal void icon_title_changed ();
118 public signal void encoding_changed ();
119 public signal void commit (string text, uint size);
120 public signal void emulation_changed ();
121 public signal void char_size_changed (uint char_width, uint char_height);
122 public signal void selection_changed ();
123 public signal void contents_changed ();
124 public signal void cursor_moved ();
125 public signal void deiconify_window ();
126 public signal void iconify_window ();
127 public signal void raise_window ();
128 public signal void lower_window ();
129 public signal void refresh_window ();
130 public signal void restore_window ();
131 public signal void maximize_window ();
132 public signal void resize_window (uint width, uint height);
133 public signal void move_window (uint x, uint y);
134 public signal void status_line_changed ();
135 public signal void increase_font_size ();
136 public signal void decrease_font_size ();
137 public signal void text_modified ();
138 public signal void text_inserted ();
139 public signal void text_deleted ();
140 public signal void text_scrolled (int delta);
142 [CCode (cheader_filename = "vte/vteaccess.h")]
143 public class TerminalAccessible : Gtk.Accessible, Atk.Text, Atk.Component, Atk.Action {
144 public static weak Gtk.Type get_type ();
145 public TerminalAccessible (Vte.Terminal terminal);
147 [CCode (cheader_filename = "vte/vte.h")]
148 public class TerminalAccessibleFactory : Atk.ObjectFactory {
149 public static weak Gtk.Type get_type ();
150 public TerminalAccessibleFactory ();
152 [ReferenceType]
153 public struct CharAttributes {
154 public long row;
155 public long column;
156 public Gdk.Color fore;
157 public Gdk.Color back;
158 public uint underline;
159 public uint strikethrough;
161 public static delegate bool IsSelectedFunc (Vte.Terminal terminal, long column, long row, pointer data);