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.4 by pcg, Thu Nov 27 10:12:10 2003 UTC vs.
Revision 1.9 by pcg, Sat Jan 31 00:20:21 2004 UTC

1/*
2 * $Id: rxvtlib.h.in,v 1.4 2003/11/27 10:12:10 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;
184 * scrollback region : we're only here if TermWin.view_start != 0 153 * scrollback region : we're only here if TermWin.view_start != 0
185 * Rows [TermWin.saveLines] ... [TermWin.saveLines + TermWin.nrow - 1] 154 * Rows [TermWin.saveLines] ... [TermWin.saveLines + TermWin.nrow - 1]
186 * normal `unscrolled' screen region 155 * normal `unscrolled' screen region
187 */ 156 */
188typedef struct { 157typedef struct {
158 int16_t *tlen; /* length of each text line */
189 text_t **text; /* _all_ the text */ 159 text_t **text; /* _all_ the text */
190 int16_t *tlen; /* length of each text line */
191 rend_t **rend; /* rendition, uses RS_ flags */ 160 rend_t **rend; /* rendition, uses RS_ flags */
192 row_col_t cur; /* cursor position on the screen */ 161 row_col_t cur; /* cursor position on the screen */
193 uint16_t tscroll; /* top of settable scroll region */ 162 uint16_t tscroll; /* top of settable scroll region */
194 uint16_t bscroll; /* bottom of settable scroll region */ 163 uint16_t bscroll; /* bottom of settable scroll region */
195 uint16_t charset; /* character set number [0..3] */ 164 uint16_t charset; /* character set number [0..3] */
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 (*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 num_fds; /* number of file descriptors being used */
303 int numlock_state; 278 int numlock_state;
304 text_t **drawn_text; /* text drawn on screen (characters) */ 279 text_t **drawn_text; /* text drawn on screen (characters) */
305 rend_t **drawn_rend; /* text drawn on screen (rendition) */ 280 rend_t **drawn_rend; /* text drawn on screen (rendition) */
306 text_t **buf_text; 281 text_t **buf_text;
307 rend_t **buf_rend; 282 rend_t **buf_rend;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines