1 | #ifndef _RXVTLIB_H_ /* include once only */ |
1 | #ifndef _RXVTLIB_H_ /* include once only */ |
2 | #define _RXVTLIB_H_ |
2 | #define _RXVTLIB_H_ |
3 | |
|
|
4 | /* |
|
|
5 | * section 1 generated by GNU autoconf for @build@ |
|
|
6 | * this section may be changed as appropriate _before_ building |
|
|
7 | */ |
|
|
8 | /***************************************************************************** |
|
|
9 | * SECTION 1 * |
|
|
10 | *****************************************************************************/ |
|
|
11 | |
|
|
12 | /* |
|
|
13 | * The following line MUST not be changed without also changing |
|
|
14 | * config.h in the main directory before building |
|
|
15 | */ |
|
|
16 | // none anymore |
|
|
17 | |
|
|
18 | /***************************************************************************** |
|
|
19 | * INCLUDES * |
|
|
20 | *****************************************************************************/ |
|
|
21 | |
3 | |
22 | #include <stdio.h> |
4 | #include <stdio.h> |
23 | #include <ctype.h> |
5 | #include <ctype.h> |
24 | #include <errno.h> |
6 | #include <errno.h> |
25 | @include_stdarg_h@ |
7 | @include_stdarg_h@ |
… | |
… | |
56 | /* whatever normal size corresponds to a integer pointer */ |
38 | /* whatever normal size corresponds to a integer pointer */ |
57 | @rxvt_intp_define@ |
39 | @rxvt_intp_define@ |
58 | /* whatever normal size corresponds to a unsigned integer pointer */ |
40 | /* whatever normal size corresponds to a unsigned integer pointer */ |
59 | @rxvt_u_intp_define@ |
41 | @rxvt_u_intp_define@ |
60 | |
42 | |
61 | /***************************************************************************** |
|
|
62 | * SECTION 2 * |
|
|
63 | * DO NOT TOUCH ANYTHING BELOW HERE * |
|
|
64 | *****************************************************************************/ |
|
|
65 | |
|
|
66 | struct rxvt_fontset; |
43 | struct rxvt_fontset; |
67 | struct rxvt_color; |
44 | struct rxvt_color; |
68 | struct rxvt_vars; /* defined later on */ |
45 | struct rxvt_vars; /* defined later on */ |
69 | struct rxvt_term; |
46 | struct rxvt_term; |
|
|
47 | struct rxvt_display; |
|
|
48 | struct rxvt_im; |
|
|
49 | struct rxvt_drawable; |
70 | |
50 | |
71 | typedef struct rxvt_term *rxvt_t; |
51 | typedef struct rxvt_term *rxvt_t; |
72 | |
52 | |
73 | extern rxvt_t rxvt_current_term; |
53 | extern rxvt_t rxvt_current_term; |
74 | |
54 | |
… | |
… | |
121 | Window parent[6]; /* parent identifiers - we're parent[0] */ |
101 | Window parent[6]; /* parent identifiers - we're parent[0] */ |
122 | Window vt; /* vt100 window */ |
102 | Window vt; /* vt100 window */ |
123 | GC gc; /* GC for drawing */ |
103 | GC gc; /* GC for drawing */ |
124 | Pixmap pixmap; |
104 | Pixmap pixmap; |
125 | rxvt_fontset *fontset; |
105 | rxvt_fontset *fontset; |
|
|
106 | rxvt_drawable *drawable; |
126 | } TermWin_t; |
107 | } TermWin_t; |
127 | |
108 | |
128 | /* |
109 | /* |
129 | * screen accounting: |
110 | * screen accounting: |
130 | * screen_t elements |
111 | * screen_t elements |
… | |
… | |
261 | TermWin_t TermWin; |
242 | TermWin_t TermWin; |
262 | scrollBar_t scrollBar; |
243 | scrollBar_t scrollBar; |
263 | menuBar_t menuBar; |
244 | menuBar_t menuBar; |
264 | unsigned long Options; |
245 | unsigned long Options; |
265 | XSizeHints szHint; |
246 | XSizeHints szHint; |
266 | Display *Xdisplay; |
247 | rxvt_display *display; |
267 | int Xdepth; |
|
|
268 | int Xscreen; |
|
|
269 | Visual *Xvisual; |
|
|
270 | Colormap Xcmap; |
|
|
271 | rxvt_color *PixColors; |
248 | rxvt_color *PixColors; |
272 | short numPixColors; |
249 | short numPixColors; |
273 | Cursor TermWin_cursor; /* cursor for vt window */ |
250 | Cursor TermWin_cursor; /* cursor for vt window */ |
274 | int sb_shadow; /* scrollbar shadow width */ |
251 | int sb_shadow; /* scrollbar shadow width */ |
275 | int Xfd; /* file descriptor of X server connection */ |
|
|
276 | int cmd_fd; /* pty file descriptor; connected to command */ |
252 | int cmd_fd; /* pty file descriptor; connected to command */ |
277 | int tty_fd; /* tty file descriptor; connected to child */ |
253 | int tty_fd; /* tty file descriptor; connected to child */ |
278 | int numlock_state; |
254 | int numlock_state; |
279 | text_t **drawn_text; /* text drawn on screen (characters) */ |
255 | text_t **drawn_text; /* text drawn on screen (characters) */ |
280 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |
256 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |