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 |
… | |
… | |
235 | /* ------------------------------------------------------------------------- */ |
216 | /* ------------------------------------------------------------------------- */ |
236 | |
217 | |
237 | typedef struct { |
218 | typedef struct { |
238 | short state; |
219 | short state; |
239 | Window win; |
220 | Window win; |
|
|
221 | struct rxvt_drawable *drawable; |
240 | } menuBar_t; |
222 | } menuBar_t; |
241 | |
223 | |
242 | typedef struct { |
224 | typedef struct { |
243 | char state; /* scrollbar state */ |
225 | char state; /* scrollbar state */ |
244 | char init; /* scrollbar has been initialised */ |
226 | char init; /* scrollbar has been initialised */ |
… | |
… | |
247 | short top; /* slider top position */ |
229 | short top; /* slider top position */ |
248 | short bot; /* slider bottom position */ |
230 | short bot; /* slider bottom position */ |
249 | short style; /* style: rxvt, xterm, next */ |
231 | short style; /* style: rxvt, xterm, next */ |
250 | short width; /* scrollbar width */ |
232 | short width; /* scrollbar width */ |
251 | Window win; |
233 | Window win; |
252 | //int (*update)(int, int, int, int); |
234 | int (rxvt_term::*update)(int, int, int, int); |
253 | |
235 | |
254 | void setIdle() { state = 1 ; } |
236 | void setIdle() { state = 1 ; } |
255 | void setMotion() { state = 'm'; } |
237 | void setMotion() { state = 'm'; } |
256 | void setUp() { state = 'U'; } |
238 | void setUp() { state = 'U'; } |
257 | void setDn() { state = 'D'; } |
239 | void setDn() { state = 'D'; } |
… | |
… | |
261 | TermWin_t TermWin; |
243 | TermWin_t TermWin; |
262 | scrollBar_t scrollBar; |
244 | scrollBar_t scrollBar; |
263 | menuBar_t menuBar; |
245 | menuBar_t menuBar; |
264 | unsigned long Options; |
246 | unsigned long Options; |
265 | XSizeHints szHint; |
247 | XSizeHints szHint; |
266 | Display *Xdisplay; |
248 | rxvt_display *display; |
267 | int Xdepth; |
|
|
268 | int Xscreen; |
|
|
269 | Visual *Xvisual; |
|
|
270 | Colormap Xcmap; |
|
|
271 | rxvt_color *PixColors; |
249 | rxvt_color *PixColors; |
272 | short numPixColors; |
250 | short numPixColors; |
273 | Cursor TermWin_cursor; /* cursor for vt window */ |
251 | Cursor TermWin_cursor; /* cursor for vt window */ |
274 | int sb_shadow; /* scrollbar shadow width */ |
252 | 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 */ |
253 | int cmd_fd; /* pty file descriptor; connected to command */ |
277 | int tty_fd; /* tty file descriptor; connected to child */ |
254 | int tty_fd; /* tty file descriptor; connected to child */ |
278 | int numlock_state; |
255 | int numlock_state; |
279 | text_t **drawn_text; /* text drawn on screen (characters) */ |
256 | text_t **drawn_text; /* text drawn on screen (characters) */ |
280 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |
257 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |