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.70 by pcg, Thu Apr 8 20:22:25 2004 UTC vs.
Revision 1.83 by root, Fri Jul 30 22:36:42 2004 UTC

266enum { 266enum {
267 NO_REFRESH = 0 , /* Window not visible at all! */ 267 NO_REFRESH = 0 , /* Window not visible at all! */
268 FAST_REFRESH = 1<<0, /* Fully exposed window */ 268 FAST_REFRESH = 1<<0, /* Fully exposed window */
269 SLOW_REFRESH = 1<<1, /* Partially exposed window */ 269 SLOW_REFRESH = 1<<1, /* Partially exposed window */
270 SMOOTH_REFRESH = 1<<2, /* Do sync'ing to make it smooth */ 270 SMOOTH_REFRESH = 1<<2, /* Do sync'ing to make it smooth */
271#if 0
271 REFRESH_BOUNDS = 1<<3 272 REFRESH_BOUNDS = 1<<3
273#endif
274 REFRESH_BOUNDS = 0 /* only required for old int_bwidth code. */ //TODO: remove this and all depending code
272}; 275};
273 276
274#ifdef NO_SECONDARY_SCREEN 277#ifdef NO_SECONDARY_SCREEN
275# define NSCREENS 0 278# define NSCREENS 0
276#else 279#else
548 Rs_imLocale, 551 Rs_imLocale,
549#ifndef NO_SECONDARY_SCREEN 552#ifndef NO_SECONDARY_SCREEN
550 Rs_secondaryScreen, 553 Rs_secondaryScreen,
551 Rs_secondaryScroll, 554 Rs_secondaryScroll,
552#endif 555#endif
556#ifndef NO_BOLD_UNDERLINE_REVERSE
557 Rs_realBold,
558#endif
559#ifdef OFF_FOCUS_FADING
560 Rs_fade,
561#endif
562#ifdef TINTING
563 Rs_shade,
564#endif
553 NUM_RESOURCES 565 NUM_RESOURCES
554}; 566};
555 567
556// see init.C:xa_names, which must be kept in sync 568// see init.C:xa_names, which must be kept in sync
557enum { 569enum {
646#define STRLEN(x) strlen((const char *)(x)) 658#define STRLEN(x) strlen((const char *)(x))
647#define STRCHR(x, y) strchr((const char *)(x), (int)(y)) 659#define STRCHR(x, y) strchr((const char *)(x), (int)(y))
648#define STRRCHR(x, y) strrchr((const char *)(x), (int)(y)) 660#define STRRCHR(x, y) strrchr((const char *)(x), (int)(y))
649 661
650/* convert pixel dimensions to row/column values. Everything as int32_t */ 662/* convert pixel dimensions to row/column values. Everything as int32_t */
651#define Pixel2Col(x) Pixel2Width((int32_t)(x) - (int32_t)TermWin.int_bwidth) 663#define Pixel2Col(x) Pixel2Width((int32_t)(x))
652#define Pixel2Row(y) Pixel2Height((int32_t)(y) - (int32_t)TermWin.int_bwidth) 664#define Pixel2Row(y) Pixel2Height((int32_t)(y))
653#define Pixel2Width(x) ((int32_t)(x) / (int32_t)TermWin.fwidth) 665#define Pixel2Width(x) ((int32_t)(x) / (int32_t)TermWin.fwidth)
654#define Pixel2Height(y) ((int32_t)(y) / (int32_t)TermWin.fheight) 666#define Pixel2Height(y) ((int32_t)(y) / (int32_t)TermWin.fheight)
655#define Col2Pixel(col) ((int32_t)Width2Pixel(col) + (int32_t)TermWin.int_bwidth) 667#define Col2Pixel(col) ((int32_t)Width2Pixel(col))
656#define Row2Pixel(row) ((int32_t)Height2Pixel(row) + (int32_t)TermWin.int_bwidth) 668#define Row2Pixel(row) ((int32_t)Height2Pixel(row))
657#define Width2Pixel(n) ((int32_t)(n) * (int32_t)TermWin.fwidth) 669#define Width2Pixel(n) ((int32_t)(n) * (int32_t)TermWin.fwidth)
658#define Height2Pixel(n) ((int32_t)(n) * (int32_t)TermWin.fheight) 670#define Height2Pixel(n) ((int32_t)(n) * (int32_t)TermWin.fheight)
659 671
660#define TermWin_TotalWidth() ((int32_t)TermWin.width + 2 * (int32_t)TermWin.int_bwidth) 672#define TermWin_TotalWidth() ((int32_t)TermWin.width)
661#define TermWin_TotalHeight() ((int32_t)TermWin.height + 2 * (int32_t)TermWin.int_bwidth) 673#define TermWin_TotalHeight() ((int32_t)TermWin.height)
662 674
663/* how to build & extract colors and attributes */ 675/* how to build & extract colors and attributes */
664#define GET_BASEFG(x) (((x) & RS_fgMask)) 676#define GET_BASEFG(x) (((x) & RS_fgMask))
665#define GET_BASEBG(x) (((x) & RS_bgMask)>>Color_Bits) 677#define GET_BASEBG(x) (((x) & RS_bgMask)>>Color_Bits)
666#ifndef NO_BRIGHTCOLOR 678#ifndef NO_BRIGHTCOLOR
936 rend_t rstyle; 948 rend_t rstyle;
937/* ---------- */ 949/* ---------- */
938 uint32_t pixcolor_set[NPIXCLR_SETS]; 950 uint32_t pixcolor_set[NPIXCLR_SETS];
939/* ---------- */ 951/* ---------- */
940#ifdef SELECTION_SCROLLING 952#ifdef SELECTION_SCROLLING
941 int scroll_selection_delay,
942 scroll_selection_lines; 953 int scroll_selection_lines;
943 enum page_dirn scroll_selection_dir; 954 enum page_dirn scroll_selection_dir;
944 int selection_save_x, 955 int selection_save_x,
945 selection_save_y, 956 selection_save_y,
946 selection_save_state, 957 selection_save_state;
947 pending_scroll_selection;
948#endif 958#endif
949/* ---------- */ 959/* ---------- */
950 int csrO, /* Hops - csr offset in thumb/slider to */ 960 int csrO, /* Hops - csr offset in thumb/slider to */
951 /* give proper Scroll behaviour */ 961 /* give proper Scroll behaviour */
952#ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING
953 scroll_arrow_delay,
954#endif
955#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) 962#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING)
956 mouse_slip_wheel_delay,
957 mouse_slip_wheel_speed, 963 mouse_slip_wheel_speed,
958#endif 964#endif
959 refresh_count, 965 refresh_count,
960 refresh_limit, 966 refresh_limit,
961 fnum, /* logical font number */ 967 fnum, /* logical font number */
1140#endif 1146#endif
1141#ifdef TEXT_BLINK 1147#ifdef TEXT_BLINK
1142 void text_blink_cb (time_watcher &w); time_watcher text_blink_ev; 1148 void text_blink_cb (time_watcher &w); time_watcher text_blink_ev;
1143#endif 1149#endif
1144 1150
1151#ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING
1152 void cont_scroll_cb (time_watcher &w); time_watcher cont_scroll_ev;
1153#endif
1154#ifdef SELECTION_SCROLLING
1155 void sel_scroll_cb (time_watcher &w); time_watcher sel_scroll_ev;
1156#endif
1157#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING)
1158 void slip_wheel_cb (time_watcher &w); time_watcher slip_wheel_ev;
1159#endif
1160
1145#ifdef POINTER_BLANK 1161#ifdef POINTER_BLANK
1146 void pointer_cb (time_watcher &w); time_watcher pointer_ev; 1162 void pointer_cb (time_watcher &w); time_watcher pointer_ev;
1147 void pointer_blank (); 1163 void pointer_blank ();
1164#endif
1148 void pointer_unblank (); 1165 void pointer_unblank ();
1149#endif
1150 1166
1151 void tt_printf (const char *fmt,...); 1167 void tt_printf (const char *fmt,...);
1152 void tt_write (const unsigned char *data, unsigned int len); 1168 void tt_write (const unsigned char *data, unsigned int len);
1153 1169
1154 void tt_winch (); 1170 void tt_winch ();
1157 ~rxvt_term (); 1173 ~rxvt_term ();
1158 void destroy (); 1174 void destroy ();
1159 1175
1160 bool init (int argc, const char *const *argv); 1176 bool init (int argc, const char *const *argv);
1161 bool init_vars (); 1177 bool init_vars ();
1162
1163 unicode_t next_char ();
1164 1178
1165 bool pty_fill (); 1179 bool pty_fill ();
1166 1180
1167 void *operator new (size_t s); 1181 void *operator new (size_t s);
1168 void operator delete (void *p, size_t s); 1182 void operator delete (void *p, size_t s);
1210 void scr_blank_screen_mem (text_t **tp, rend_t **rp, unsigned int row, rend_t efs); 1224 void scr_blank_screen_mem (text_t **tp, rend_t **rp, unsigned int row, rend_t efs);
1211 int scr_scroll_text (int row1, int row2, int count, int spec); 1225 int scr_scroll_text (int row1, int row2, int count, int spec);
1212 void scr_reset (); 1226 void scr_reset ();
1213 void scr_reset_realloc (); 1227 void scr_reset_realloc ();
1214 void scr_release (); 1228 void scr_release ();
1215 void scr_clear (bool really = true); 1229 void scr_clear (bool really = false);
1216 void scr_refresh (unsigned char refresh_type); 1230 void scr_refresh (unsigned char refresh_type);
1217 bool scr_refresh_rend (rend_t mask, rend_t value); 1231 bool scr_refresh_rend (rend_t mask, rend_t value);
1218 void scr_erase_screen (int mode); 1232 void scr_erase_screen (int mode);
1219 void scr_touch (bool refresh); 1233 void scr_touch (bool refresh);
1220 void scr_expose (int x, int y, int width, int height, bool refresh); 1234 void scr_expose (int x, int y, int width, int height, bool refresh);
1224 /* autoconvert */ 1238 /* autoconvert */
1225 1239
1226 // command.C 1240 // command.C
1227 void lookup_key (XKeyEvent &ev); 1241 void lookup_key (XKeyEvent &ev);
1228 unsigned int cmd_write (const unsigned char *str, unsigned int count); 1242 unsigned int cmd_write (const unsigned char *str, unsigned int count);
1243
1244 unicode_t next_char ();
1229 unicode_t cmd_getc (); 1245 unicode_t cmd_getc ();
1246 unicode_t next_octet ();
1247 unicode_t cmd_get8 ();
1248
1230 bool cmd_parse (); 1249 bool cmd_parse ();
1231 void mouse_report (XButtonEvent &ev); 1250 void mouse_report (XButtonEvent &ev);
1232 void button_press (XButtonEvent &ev); 1251 void button_press (XButtonEvent &ev);
1233 void button_release (XButtonEvent &ev); 1252 void button_release (XButtonEvent &ev);
1234 int check_our_parents (); 1253 int check_our_parents ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines