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.362 by ayin, Tue Feb 19 13:01:33 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
1008 mouse_slip_wheel_speed, 990 mouse_slip_wheel_speed,
1009#endif 991#endif
1010 refresh_count, 992 refresh_count,
1011 window_vt_x, 993 window_vt_x,
1012 window_vt_y, 994 window_vt_y,
1013 window_sb_x,
1014 mouse_row, 995 mouse_row,
1015 mouse_col, 996 mouse_col,
1016# ifdef POINTER_BLANK 997# ifdef POINTER_BLANK
1017 pointerBlankDelay, 998 pointerBlankDelay,
1018# endif 999# endif
1026 unsigned long priv_modes, 1007 unsigned long priv_modes,
1027 SavedModes; 1008 SavedModes;
1028/* ---------- */ 1009/* ---------- */
1029 Atom *xa; 1010 Atom *xa;
1030/* ---------- */ 1011/* ---------- */
1031#ifdef RXVT_SCROLLBAR
1032 GC scrollbarGC,
1033 topShadowGC,
1034 botShadowGC;
1035#endif
1036#ifdef XTERM_SCROLLBAR
1037 GC xscrollbarGC,
1038 ShadowGC;
1039#endif
1040#ifdef PLAIN_SCROLLBAR
1041 GC pscrollbarGC;
1042#endif
1043#ifdef NEXT_SCROLLBAR
1044 GC blackGC,
1045 whiteGC,
1046 grayGC,
1047 darkGC,
1048 stippleGC;
1049 Pixmap dimple,
1050 upArrow,
1051 downArrow,
1052 upArrowHi,
1053 downArrowHi;
1054#endif
1055/* ---------- */
1056 Time selection_time, 1012 Time selection_time,
1057 selection_request_time; 1013 selection_request_time;
1058 pid_t cmd_pid; /* process id of child */ 1014 pid_t cmd_pid; /* process id of child */
1059 char * incr_buf; 1015 char * incr_buf;
1060 size_t incr_buf_size, incr_buf_fill; 1016 size_t incr_buf_size, incr_buf_fill;
1120 1076
1121#if ENABLE_FRILLS || ISO_14755 1077#if ENABLE_FRILLS || ISO_14755
1122 // ISO 14755 entry support 1078 // ISO 14755 entry support
1123 unicode_t iso14755buf; 1079 unicode_t iso14755buf;
1124 void commit_iso14755 (); 1080 void commit_iso14755 ();
1125 int hex_keyval (XKeyEvent &ev);
1126# if ISO_14755 1081# if ISO_14755
1127 void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1); 1082 void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1);
1128 void iso14755_54 (int x, int y); 1083 void iso14755_54 (int x, int y);
1129# endif 1084# endif
1130#endif 1085#endif
1151#endif 1106#endif
1152 1107
1153 void x_cb (XEvent &xev); 1108 void x_cb (XEvent &xev);
1154 xevent_watcher termwin_ev; 1109 xevent_watcher termwin_ev;
1155 xevent_watcher vt_ev; 1110 xevent_watcher vt_ev;
1156#ifdef HAVE_SCROLLBARS
1157 xevent_watcher scrollbar_ev; 1111 xevent_watcher scrollbar_ev;
1158#endif
1159 1112
1160 void child_cb (ev::child &w, int revents); ev::child child_ev; 1113 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; 1114 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev;
1162 void refresh_check (); 1115 void refresh_check ();
1163 void flush (); 1116 void flush ();
1377 options[opt >> 3] |= (1 << (opt & 7)); 1330 options[opt >> 3] |= (1 << (opt & 7));
1378 else 1331 else
1379 options[opt >> 3] &= ~(1 << (opt & 7)); 1332 options[opt >> 3] &= ~(1 << (opt & 7));
1380 } 1333 }
1381 1334
1382 void PrivMode (int set, unsigned bit) NOTHROW 1335 void set_privmode (unsigned bit, int set) NOTHROW
1383 { 1336 {
1384 if (set) 1337 if (set)
1385 priv_modes |= bit; 1338 priv_modes |= bit;
1386 else 1339 else
1387 priv_modes &= ~bit; 1340 priv_modes &= ~bit;
1463 void selection_send (const XSelectionRequestEvent &rq) NOTHROW; 1416 void selection_send (const XSelectionRequestEvent &rq) NOTHROW;
1464 void selection_click (int clicks, int x, int y) NOTHROW; 1417 void selection_click (int clicks, int x, int y) NOTHROW;
1465 void selection_extend (int x, int y, int flag) NOTHROW; 1418 void selection_extend (int x, int y, int flag) NOTHROW;
1466 void selection_rotate (int x, int y) NOTHROW; 1419 void selection_rotate (int x, int y) NOTHROW;
1467 1420
1468#if defined(NEXT_SCROLLBAR)
1469 // scrollbar-next.C
1470 Pixmap renderPixmap (const char *const *data, int width, int height);
1471 void init_scrollbar_stuff ();
1472 void drawBevel (Drawable d, int x1, int y1, int w, int h);
1473 int scrollbar_show_next (int update, int last_top, int last_bot, int scrollbar_len);
1474#endif
1475
1476#if defined(RXVT_SCROLLBAR)
1477 // scrollbar-rxvt.C
1478 int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len);
1479#endif
1480
1481#if defined(XTERM_SCROLLBAR)
1482 // scrollbar-xterm.C
1483 int scrollbar_show_xterm (int update, int last_top, int last_bot, int scrollbar_len);
1484#endif
1485
1486#if defined(PLAIN_SCROLLBAR)
1487 // scrollbar-plain.C
1488 int scrollbar_show_plain (int update, int last_top, int last_bot, int scrollbar_len);
1489#endif
1490
1491 // scrollbar.C
1492 void resize_scrollbar ();
1493 int scrollbar_mapping (int map);
1494 int scrollbar_show (int update);
1495 void setup_scrollbar (const char *scrollalign, const char *scrollstyle, const char *thickness);
1496
1497 // xdefaults.C 1421 // xdefaults.C
1498 void get_options (int argc, const char *const *argv); 1422 void get_options (int argc, const char *const *argv);
1499 int parse_keysym (const char *str, const char *arg); 1423 int parse_keysym (const char *str, const char *arg);
1500 const char *x_resource (const char *name); 1424 const char *x_resource (const char *name);
1501 void extract_resources (); 1425 void extract_resources ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines