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

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.352 by ayin, Sun Jan 20 14:12:39 2008 UTC vs.
Revision 1.357 by ayin, Wed Feb 6 12:05:59 2008 UTC

97/* 97/*
98 ***************************************************************************** 98 *****************************************************************************
99 * SYSTEM HACKS 99 * SYSTEM HACKS
100 ***************************************************************************** 100 *****************************************************************************
101 */ 101 */
102/* Consistent defines - please report on the necessity
103 * @ Unixware: defines (__svr4__)
104 */
105#if defined (SVR4) && !defined (__svr4__)
106# define __svr4__ 1
107#endif
108#if defined (sun) && !defined (__sun__)
109# define __sun__ 1
110#endif
111 102
112#ifndef HAVE_XPOINTER 103#ifndef HAVE_XPOINTER
113typedef char *XPointer; 104typedef char *XPointer;
114#endif 105#endif
115 106
209 ***************************************************************************** 200 *****************************************************************************
210 * STRUCTURES AND TYPEDEFS 201 * STRUCTURES AND TYPEDEFS
211 ***************************************************************************** 202 *****************************************************************************
212 */ 203 */
213 204
214/* If we're using either the rxvt scrollbar, keep the
215 * scrollColor resource.
216 */
217#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(PLAIN_SCROLLBAR)
218# define KEEP_SCROLLCOLOR 1
219#else
220# undef KEEP_SCROLLCOLOR
221#endif
222
223/* 205/*
224 * the 'essential' information for reporting Mouse Events 206 * the 'essential' information for reporting Mouse Events
225 * pared down from XButtonEvent 207 * pared down from XButtonEvent
226 */ 208 */
227struct mouse_event { 209struct mouse_event {
277# define NO_MOUSE_REPORT_SCROLLBAR 1 259# define NO_MOUSE_REPORT_SCROLLBAR 1
278#endif 260#endif
279 261
280#define scrollBar_esc 30 262#define scrollBar_esc 30
281 263
282#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) 264#if !defined (RXVT_SCROLLBAR) && !defined (NEXT_SCROLLBAR)
283# define HAVE_SCROLLBARS 1 265# define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
284#endif 266#endif
285 267
286enum { 268enum {
287 NO_REFRESH = 0, /* Window not visible at all! */ 269 NO_REFRESH = 0, /* Window not visible at all! */
288 FAST_REFRESH = 1, /* Fully exposed window */ 270 FAST_REFRESH = 1, /* Fully exposed window */
497 Color_underline, 479 Color_underline,
498#endif 480#endif
499#ifdef OPTION_HC 481#ifdef OPTION_HC
500 Color_HC, 482 Color_HC,
501#endif 483#endif
502#ifdef KEEP_SCROLLCOLOR
503 Color_scroll, 484 Color_scroll,
485#ifdef RXVT_SCROLLBAR
504 Color_trough, 486 Color_trough,
505#endif 487#endif
506#if ENABLE_TRANSPARENCY 488#if ENABLE_TRANSPARENCY
507 Color_tint, 489 Color_tint,
508#endif 490#endif
509#if OFF_FOCUS_FADING 491#if OFF_FOCUS_FADING
510 Color_fade, 492 Color_fade,
511#endif 493#endif
512 NRS_COLORS, /* */ 494 NRS_COLORS, /* */
513#ifdef KEEP_SCROLLCOLOR 495#ifdef RXVT_SCROLLBAR
514 Color_topShadow = NRS_COLORS, 496 Color_topShadow = NRS_COLORS,
515 Color_bottomShadow, 497 Color_bottomShadow,
516 TOTAL_COLORS 498 TOTAL_COLORS
517#else 499#else
518 TOTAL_COLORS = NRS_COLORS 500 TOTAL_COLORS = NRS_COLORS
1151#endif 1133#endif
1152 1134
1153 void x_cb (XEvent &xev); 1135 void x_cb (XEvent &xev);
1154 xevent_watcher termwin_ev; 1136 xevent_watcher termwin_ev;
1155 xevent_watcher vt_ev; 1137 xevent_watcher vt_ev;
1156#ifdef HAVE_SCROLLBARS
1157 xevent_watcher scrollbar_ev; 1138 xevent_watcher scrollbar_ev;
1158#endif
1159 1139
1160 void child_cb (ev::child &w, int revents); ev::child child_ev; 1140 void child_cb (ev::child &w, int revents); ev::child child_ev;
1161 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev; 1141 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev;
1162 void refresh_check (); 1142 void refresh_check ();
1163 void flush (); 1143 void flush ();
1490 1470
1491 // scrollbar.C 1471 // scrollbar.C
1492 void resize_scrollbar (); 1472 void resize_scrollbar ();
1493 int scrollbar_mapping (int map); 1473 int scrollbar_mapping (int map);
1494 int scrollbar_show (int update); 1474 int scrollbar_show (int update);
1495 void setup_scrollbar (const char *scrollalign, const char *scrollstyle, const char *thickness);
1496 1475
1497 // xdefaults.C 1476 // xdefaults.C
1498 void get_options (int argc, const char *const *argv); 1477 void get_options (int argc, const char *const *argv);
1499 int parse_keysym (const char *str, const char *arg); 1478 int parse_keysym (const char *str, const char *arg);
1500 const char *x_resource (const char *name); 1479 const char *x_resource (const char *name);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines