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.9 by pcg, Sat Jan 31 00:20:21 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 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 (*update)(int, int, int, int);
284 253
285 void setIdle() { state = 1 ; } 254 void setIdle() { state = 1 ; }
286 void setMotion() { state = 'm'; } 255 void setMotion() { state = 'm'; }
287 void setUp() { state = 'U'; } 256 void setUp() { state = 'U'; }
288 void setDn() { state = 'D'; } 257 void setDn() { state = 'D'; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines