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.8 by pcg, Mon Jan 19 17:26:43 2004 UTC vs.
Revision 1.11 by pcg, Mon Feb 9 07:11:49 2004 UTC

1/*
2 * $Id: rxvtlib.h.in,v 1.8 2004/01/19 17:26:43 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
8/*
9 * section 1 generated by GNU autoconf for @build@
10 * this section may be changed as appropriate _before_ building
11 */
12/*****************************************************************************
13 * SECTION 1 *
14 *****************************************************************************/
15
16/*
17 * The following line MUST not be changed without also changing
18 * config.h in the main directory before building
19 */
20// none anymore
21
22/*****************************************************************************
23 * INCLUDES *
24 *****************************************************************************/
25 3
26#include <stdio.h> 4#include <stdio.h>
27#include <ctype.h> 5#include <ctype.h>
28#include <errno.h> 6#include <errno.h>
29@include_stdarg_h@ 7@include_stdarg_h@
60/* whatever normal size corresponds to a integer pointer */ 38/* whatever normal size corresponds to a integer pointer */
61@rxvt_intp_define@ 39@rxvt_intp_define@
62/* whatever normal size corresponds to a unsigned integer pointer */ 40/* whatever normal size corresponds to a unsigned integer pointer */
63@rxvt_u_intp_define@ 41@rxvt_u_intp_define@
64 42
65/*****************************************************************************
66 * SECTION 2 *
67 * DO NOT TOUCH ANYTHING BELOW HERE *
68 *****************************************************************************/
69
70struct rxvt_fontset; 43struct rxvt_fontset;
71struct rxvt_color; 44struct rxvt_color;
72struct rxvt_vars; /* defined later on */ 45struct rxvt_vars; /* defined later on */
73struct rxvt_term; 46struct rxvt_term;
47struct rxvt_display;
48struct rxvt_im;
74 49
75typedef struct rxvt_term *rxvt_t; 50typedef struct rxvt_term *rxvt_t;
76 51
77extern rxvt_t rxvt_current_term; 52extern rxvt_t rxvt_current_term;
78
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 53
90# define SET_R(r) rxvt_current_term = (r) 54# define SET_R(r) rxvt_current_term = (r)
91# define GET_R rxvt_current_term 55# define GET_R rxvt_current_term
92 56
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) 57#define scrollbar_visible() scrollBar.state
110#define menubar_visible(rxvtvars) ((rxvtvars)->menuBar.state) 58#define menubar_visible() menuBar.state
111 59
112typedef struct { 60typedef struct {
113 int32_t row; 61 int32_t row;
114 int32_t col; 62 int32_t col;
115} row_col_t; 63} row_col_t;
278 short top; /* slider top position */ 226 short top; /* slider top position */
279 short bot; /* slider bottom position */ 227 short bot; /* slider bottom position */
280 short style; /* style: rxvt, xterm, next */ 228 short style; /* style: rxvt, xterm, next */
281 short width; /* scrollbar width */ 229 short width; /* scrollbar width */
282 Window win; 230 Window win;
283 int (*update)(pR_ int, int, int, int); 231 int (rxvt_term::*update)(int, int, int, int);
284 232
285 void setIdle() { state = 1 ; } 233 void setIdle() { state = 1 ; }
286 void setMotion() { state = 'm'; } 234 void setMotion() { state = 'm'; }
287 void setUp() { state = 'U'; } 235 void setUp() { state = 'U'; }
288 void setDn() { state = 'D'; } 236 void setDn() { state = 'D'; }
292 TermWin_t TermWin; 240 TermWin_t TermWin;
293 scrollBar_t scrollBar; 241 scrollBar_t scrollBar;
294 menuBar_t menuBar; 242 menuBar_t menuBar;
295 unsigned long Options; 243 unsigned long Options;
296 XSizeHints szHint; 244 XSizeHints szHint;
297 Display *Xdisplay; 245 rxvt_display *display;
298 int Xdepth;
299 int Xscreen;
300 Visual *Xvisual;
301 Colormap Xcmap;
302 rxvt_color *PixColors; 246 rxvt_color *PixColors;
303 short numPixColors; 247 short numPixColors;
304 Cursor TermWin_cursor; /* cursor for vt window */ 248 Cursor TermWin_cursor; /* cursor for vt window */
305 int sb_shadow; /* scrollbar shadow width */ 249 int sb_shadow; /* scrollbar shadow width */
306 int Xfd; /* file descriptor of X server connection */
307 int cmd_fd; /* pty file descriptor; connected to command */ 250 int cmd_fd; /* pty file descriptor; connected to command */
308 int tty_fd; /* tty file descriptor; connected to child */ 251 int tty_fd; /* tty file descriptor; connected to child */
309 int numlock_state; 252 int numlock_state;
310 text_t **drawn_text; /* text drawn on screen (characters) */ 253 text_t **drawn_text; /* text drawn on screen (characters) */
311 rend_t **drawn_rend; /* text drawn on screen (rendition) */ 254 rend_t **drawn_rend; /* text drawn on screen (rendition) */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines