1 | /* |
1 | /* |
2 | * $Id: rxvtlib.h.in,v 1.6 2003/12/17 09:00:35 pcg Exp $ |
2 | * $Id: rxvtlib.h.in,v 1.8 2004/01/19 17:26:43 pcg Exp $ |
3 | */ |
3 | */ |
4 | |
4 | |
5 | #ifndef _RXVTLIB_H_ /* include once only */ |
5 | #ifndef _RXVTLIB_H_ /* include once only */ |
6 | #define _RXVTLIB_H_ |
6 | #define _RXVTLIB_H_ |
7 | |
7 | |
… | |
… | |
279 | short bot; /* slider bottom position */ |
279 | short bot; /* slider bottom position */ |
280 | short style; /* style: rxvt, xterm, next */ |
280 | short style; /* style: rxvt, xterm, next */ |
281 | short width; /* scrollbar width */ |
281 | short width; /* scrollbar width */ |
282 | Window win; |
282 | Window win; |
283 | int (*update)(pR_ int, int, int, int); |
283 | int (*update)(pR_ int, int, int, int); |
|
|
284 | |
|
|
285 | void setIdle() { state = 1 ; } |
|
|
286 | void setMotion() { state = 'm'; } |
|
|
287 | void setUp() { state = 'U'; } |
|
|
288 | void setDn() { state = 'D'; } |
284 | } scrollBar_t; |
289 | } scrollBar_t; |
285 | |
290 | |
286 | struct rxvt_vars { |
291 | struct rxvt_vars { |
287 | TermWin_t TermWin; |
292 | TermWin_t TermWin; |
288 | scrollBar_t scrollBar; |
293 | scrollBar_t scrollBar; |
289 | menuBar_t menuBar; |
294 | menuBar_t menuBar; |
290 | Display *Xdisplay; |
|
|
291 | unsigned long Options; |
295 | unsigned long Options; |
292 | XSizeHints szHint; |
296 | XSizeHints szHint; |
|
|
297 | Display *Xdisplay; |
|
|
298 | int Xdepth; |
|
|
299 | int Xscreen; |
|
|
300 | Visual *Xvisual; |
293 | Colormap Xcmap; |
301 | Colormap Xcmap; |
294 | rxvt_color *PixColors; |
302 | rxvt_color *PixColors; |
295 | short numPixColors; |
303 | short numPixColors; |
296 | Cursor TermWin_cursor; /* cursor for vt window */ |
304 | Cursor TermWin_cursor; /* cursor for vt window */ |
297 | int Xdepth; |
|
|
298 | int sb_shadow; /* scrollbar shadow width */ |
305 | int sb_shadow; /* scrollbar shadow width */ |
299 | int Xfd; /* file descriptor of X server connection */ |
306 | int Xfd; /* file descriptor of X server connection */ |
300 | int cmd_fd; /* pty file descriptor; connected to command */ |
307 | int cmd_fd; /* pty file descriptor; connected to command */ |
301 | int tty_fd; /* tty file descriptor; connected to child */ |
308 | int tty_fd; /* tty file descriptor; connected to child */ |
302 | int numlock_state; |
309 | int numlock_state; |