ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtlib.h.in
(Generate patch)

Comparing rxvt-unicode/src/rxvtlib.h.in (file contents):
Revision 1.6 by pcg, Wed Dec 17 09:00:35 2003 UTC vs.
Revision 1.10 by pcg, Sat Jan 31 02:14:58 2004 UTC

1/*
2 * $Id: rxvtlib.h.in,v 1.6 2003/12/17 09:00:35 pcg Exp $
3 */
4
5#ifndef _RXVTLIB_H_ /* include once only */ 1#ifndef _RXVTLIB_H_ /* include once only */
6#define _RXVTLIB_H_ 2#define _RXVTLIB_H_
7 3
8/* 4/*
9 * section 1 generated by GNU autoconf for @build@ 5 * section 1 generated by GNU autoconf for @build@
74 70
75typedef struct rxvt_term *rxvt_t; 71typedef struct rxvt_term *rxvt_t;
76 72
77extern rxvt_t rxvt_current_term; 73extern rxvt_t rxvt_current_term;
78 74
79#define EXPLICIT_CONTEXT 1
80
81#if EXPLICIT_CONTEXT
82
83# define pR rxvt_t rxvt_term
84# define aR rxvt_term
85# define pR_ pR,
86# define aR_ aR,
87
88# define R rxvt_term
89
90# define SET_R(r) rxvt_current_term = (r) 75# define SET_R(r) rxvt_current_term = (r)
91# define GET_R rxvt_current_term 76# define GET_R rxvt_current_term
92 77
93#else
94
95# define pR
96# define pR_
97# define aR
98# define aR_
99
100# define R rxvt_current_term
101
102# define SET_R(r) rxvt_current_term = (r)
103# define GET_R R
104
105#endif
106
107#define dR rxvt_t rxvt_term = GET_R
108
109#define scrollbar_visible(rxvtvars) ((rxvtvars)->scrollBar.state) 78#define scrollbar_visible() scrollBar.state
110#define menubar_visible(rxvtvars) ((rxvtvars)->menuBar.state) 79#define menubar_visible() menuBar.state
111 80
112typedef struct { 81typedef struct {
113 int32_t row; 82 int32_t row;
114 int32_t col; 83 int32_t col;
115} row_col_t; 84} row_col_t;
278 short top; /* slider top position */ 247 short top; /* slider top position */
279 short bot; /* slider bottom position */ 248 short bot; /* slider bottom position */
280 short style; /* style: rxvt, xterm, next */ 249 short style; /* style: rxvt, xterm, next */
281 short width; /* scrollbar width */ 250 short width; /* scrollbar width */
282 Window win; 251 Window win;
283 int (*update)(pR_ int, int, int, int); 252 int (rxvt_term::*update)(int, int, int, int);
253
254 void setIdle() { state = 1 ; }
255 void setMotion() { state = 'm'; }
256 void setUp() { state = 'U'; }
257 void setDn() { state = 'D'; }
284} scrollBar_t; 258} scrollBar_t;
285 259
286struct rxvt_vars { 260struct rxvt_vars {
287 TermWin_t TermWin; 261 TermWin_t TermWin;
288 scrollBar_t scrollBar; 262 scrollBar_t scrollBar;
289 menuBar_t menuBar; 263 menuBar_t menuBar;
290 Display *Xdisplay;
291 unsigned long Options; 264 unsigned long Options;
292 XSizeHints szHint; 265 XSizeHints szHint;
266 Display *Xdisplay;
267 int Xdepth;
268 int Xscreen;
269 Visual *Xvisual;
293 Colormap Xcmap; 270 Colormap Xcmap;
294 rxvt_color *PixColors; 271 rxvt_color *PixColors;
295 short numPixColors; 272 short numPixColors;
296 Cursor TermWin_cursor; /* cursor for vt window */ 273 Cursor TermWin_cursor; /* cursor for vt window */
297 int Xdepth;
298 int sb_shadow; /* scrollbar shadow width */ 274 int sb_shadow; /* scrollbar shadow width */
299 int Xfd; /* file descriptor of X server connection */ 275 int Xfd; /* file descriptor of X server connection */
300 int cmd_fd; /* pty file descriptor; connected to command */ 276 int cmd_fd; /* pty file descriptor; connected to command */
301 int tty_fd; /* tty file descriptor; connected to child */ 277 int tty_fd; /* tty file descriptor; connected to child */
302 int numlock_state; 278 int numlock_state;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines