1 /* 2 * This file is part of gtkD. 3 * 4 * gtkD is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License 6 * as published by the Free Software Foundation; either version 3 7 * of the License, or (at your option) any later version, with 8 * some exceptions, please read the COPYING file. 9 * 10 * gtkD is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with gtkD; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA 18 */ 19 20 // generated automatically - do not change 21 // find conversion definition on APILookup.txt 22 // implement new conversion functionalities on the wrap.utils pakage 23 24 25 module vtec.vtetypes; 26 27 public import gtkc.gtktypes; 28 29 /** 30 * An enumerated type which can be used to indicate the cursor blink mode 31 * for the terminal. 32 */ 33 public enum VteCursorBlinkMode 34 { 35 /** 36 * Follow GTK+ settings for cursor blinking. 37 */ 38 SYSTEM = 0, 39 /** 40 * Cursor blinks. 41 */ 42 ON = 1, 43 /** 44 * Cursor does not blink. 45 */ 46 OFF = 2, 47 } 48 alias VteCursorBlinkMode CursorBlinkMode; 49 50 /** 51 * An enumerated type which can be used to indicate what should the terminal 52 * draw at the cursor position. 53 */ 54 public enum VteCursorShape 55 { 56 /** 57 * Draw a block cursor. This is the default. 58 */ 59 BLOCK = 0, 60 /** 61 * Draw a vertical bar on the left side of character. 62 * This is similar to the default cursor for other GTK+ widgets. 63 */ 64 IBEAM = 1, 65 /** 66 * Draw a horizontal bar below the character. 67 */ 68 UNDERLINE = 2, 69 } 70 alias VteCursorShape CursorShape; 71 72 /** 73 * An enumerated type which can be used to indicate which string the terminal 74 * should send to an application when the user presses the Delete or Backspace 75 * keys. 76 */ 77 public enum VteEraseBinding 78 { 79 /** 80 * For backspace, attempt to determine the right value from the terminal's IO settings. For delete, use the control sequence. 81 */ 82 AUTO = 0, 83 /** 84 * Send an ASCII backspace character (0x08). 85 */ 86 ASCII_BACKSPACE = 1, 87 /** 88 * Send an ASCII delete character (0x7F). 89 */ 90 ASCII_DELETE = 2, 91 /** 92 * Send the "@@7" control sequence. 93 */ 94 DELETE_SEQUENCE = 3, 95 /** 96 * Send terminal's "erase" setting. 97 */ 98 TTY = 4, 99 } 100 alias VteEraseBinding EraseBinding; 101 102 public enum VtePtyError 103 { 104 /** 105 * Obsolete. Deprecated: 0.42 106 */ 107 PTY_HELPER_FAILED = 0, 108 /** 109 * failure when using PTY98 to allocate the PTY 110 */ 111 PTY98_FAILED = 1, 112 } 113 alias VtePtyError PtyError; 114 115 public enum VtePtyFlags 116 { 117 /** 118 * Unused. Deprecated: 0.38 119 */ 120 NO_LASTLOG = 1, 121 /** 122 * Unused. Deprecated: 0.38 123 */ 124 NO_UTMP = 2, 125 /** 126 * Unused. Deprecated: 0.38 127 */ 128 NO_WTMP = 4, 129 /** 130 * Unused. Deprecated: 0.38 131 */ 132 NO_HELPER = 8, 133 /** 134 * Unused. Deprecated: 0.38 135 */ 136 NO_FALLBACK = 16, 137 /** 138 * the default flags 139 */ 140 DEFAULT = 0, 141 } 142 alias VtePtyFlags PtyFlags; 143 144 /** 145 * A flag type to determine how terminal contents should be written 146 * to an output stream. 147 */ 148 public enum VteWriteFlags 149 { 150 /** 151 * Write contents as UTF-8 text. This is the default. 152 */ 153 DEFAULT = 0, 154 } 155 alias VteWriteFlags WriteFlags; 156 157 struct VteCharAttributes 158 { 159 long row; 160 long column; 161 PangoColor fore; 162 PangoColor back; 163 import std.bitmanip: bitfields; 164 mixin(bitfields!( 165 uint, "underline", 1, 166 uint, "strikethrough", 1, 167 uint, "", 30 168 )); 169 } 170 171 struct VtePty; 172 173 struct VtePtyClass; 174 175 struct VteTerminal 176 { 177 GtkWidget widget; 178 void**[1] UnusedPadding; 179 } 180 181 /** 182 * All of these fields should be considered read-only, except for derived classes. 183 */ 184 struct VteTerminalClass 185 { 186 GtkWidgetClass parentClass; 187 /** */ 188 extern(C) void function(VteTerminal* terminal) eof; 189 /** */ 190 extern(C) void function(VteTerminal* terminal, int status) childExited; 191 /** */ 192 extern(C) void function(VteTerminal* terminal) encodingChanged; 193 /** */ 194 extern(C) void function(VteTerminal* terminal, uint charWidth, uint charHeight) charSizeChanged; 195 /** */ 196 extern(C) void function(VteTerminal* terminal) windowTitleChanged; 197 /** */ 198 extern(C) void function(VteTerminal* terminal) iconTitleChanged; 199 /** */ 200 extern(C) void function(VteTerminal* terminal) selectionChanged; 201 /** */ 202 extern(C) void function(VteTerminal* terminal) contentsChanged; 203 /** */ 204 extern(C) void function(VteTerminal* terminal) cursorMoved; 205 /** */ 206 extern(C) void function(VteTerminal* terminal, const(char)* text, uint size) commit; 207 /** */ 208 extern(C) void function(VteTerminal* terminal) deiconifyWindow; 209 /** */ 210 extern(C) void function(VteTerminal* terminal) iconifyWindow; 211 /** */ 212 extern(C) void function(VteTerminal* terminal) raiseWindow; 213 /** */ 214 extern(C) void function(VteTerminal* terminal) lowerWindow; 215 /** */ 216 extern(C) void function(VteTerminal* terminal) refreshWindow; 217 /** */ 218 extern(C) void function(VteTerminal* terminal) restoreWindow; 219 /** */ 220 extern(C) void function(VteTerminal* terminal) maximizeWindow; 221 /** */ 222 extern(C) void function(VteTerminal* terminal, uint width, uint height) resizeWindow; 223 /** */ 224 extern(C) void function(VteTerminal* terminal, uint x, uint y) moveWindow; 225 /** */ 226 extern(C) void function(VteTerminal* terminal) increaseFontSize; 227 /** */ 228 extern(C) void function(VteTerminal* terminal) decreaseFontSize; 229 /** */ 230 extern(C) void function(VteTerminal* terminal) textModified; 231 /** */ 232 extern(C) void function(VteTerminal* terminal) textInserted; 233 /** */ 234 extern(C) void function(VteTerminal* terminal) textDeleted; 235 /** */ 236 extern(C) void function(VteTerminal* terminal, int delta) textScrolled; 237 /** */ 238 extern(C) void function(VteTerminal* terminal) copyClipboard; 239 /** */ 240 extern(C) void function(VteTerminal* terminal) pasteClipboard; 241 /** */ 242 extern(C) void function(VteTerminal* terminal) bell; 243 void*[16] padding; 244 VteTerminalClassPrivate* priv; 245 } 246 247 struct VteTerminalClassPrivate; 248 249 /** 250 * Specifies the type of a selection function used to check whether 251 * a cell has to be selected or not. 252 * 253 * Params: 254 * terminal = terminal in which the cell is. 255 * column = column in which the cell is. 256 * row = row in which the cell is. 257 * data = user data. 258 * 259 * Return: %TRUE if cell has to be selected; %FALSE if otherwise. 260 */ 261 public alias extern(C) int function(VteTerminal* terminal, glong column, glong row, void* data) VteSelectionFunc;