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.190 by root, Sat Jan 7 19:29:17 2006 UTC vs.
Revision 1.193 by root, Mon Jan 9 23:00:07 2006 UTC

699#define Col2Pixel(col) ((int32_t)Width2Pixel(col)) 699#define Col2Pixel(col) ((int32_t)Width2Pixel(col))
700#define Row2Pixel(row) ((int32_t)Height2Pixel(row)) 700#define Row2Pixel(row) ((int32_t)Height2Pixel(row))
701#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) 701#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth)
702#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) 702#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight)
703 703
704#define OPTION(opt) (options & (opt))
705#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \
706 | Opt_jumpScroll | Opt_secondaryScreen \
707 | Opt_pastableTabs | Opt_intensityStyles)
708
704// for m >= -n, ensure remainder lies between 0..n-1 709// for m >= -n, ensure remainder lies between 0..n-1
705#define MOD(m,n) (((m) + (n)) % (n)) 710#define MOD(m,n) (((m) + (n)) % (n))
706 711
707#define LINENO(n) MOD (term_start + int(n), total_rows) 712#define LINENO(n) MOD (term_start + int(n), total_rows)
708#define ROW(n) row_buf [LINENO (n)] 713#define ROW(n) row_buf [LINENO (n)]
971 log_callback *log_hook; // log error messages through this hook, if != 0 976 log_callback *log_hook; // log error messages through this hook, if != 0
972 getfd_callback *getfd_hook; // convert remote to local fd, if != 0 977 getfd_callback *getfd_hook; // convert remote to local fd, if != 0
973 978
974#if ENABLE_PERL 979#if ENABLE_PERL
975 rxvt_perl_term perl; 980 rxvt_perl_term perl;
981#endif
982#if USE_XGETDEFAULT
983 XrmDatabase xrmdatabase;
976#endif 984#endif
977 985
978 struct mbstate mbstate; // current input multibyte state 986 struct mbstate mbstate; // current input multibyte state
979 987
980 unsigned char want_refresh:1, 988 unsigned char want_refresh:1,
1441 base += minBrightCOLOR - minCOLOR; 1449 base += minBrightCOLOR - minCOLOR;
1442#endif 1450#endif
1443 return base; 1451 return base;
1444 } 1452 }
1445 1453
1454 bool option (uint32_t opt)
1455 {
1456 return OPTION (opt);
1457 }
1458
1459 void set_option (uint32_t opt, bool set)
1460 {
1461 if (set)
1462 options |= opt;
1463 else
1464 options &= ~opt;
1465 }
1466
1446 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs); 1467 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs);
1447 void scr_blank_screen_mem (line_t &l, rend_t efs); 1468 void scr_blank_screen_mem (line_t &l, rend_t efs);
1448 int scr_scroll_text (int row1, int row2, int count); 1469 int scr_scroll_text (int row1, int row2, int count);
1449 void scr_reset (); 1470 void scr_reset ();
1450 void scr_release (); 1471 void scr_release ();
1493 int scr_move_to (int y, int len); 1514 int scr_move_to (int y, int len);
1494 int scr_page (enum page_dirn direction, int nlines); 1515 int scr_page (enum page_dirn direction, int nlines);
1495 int scr_changeview (unsigned int oldviewstart); 1516 int scr_changeview (unsigned int oldviewstart);
1496 void scr_bell (); 1517 void scr_bell ();
1497 void scr_printscreen (int fullhist); 1518 void scr_printscreen (int fullhist);
1519 void scr_xor_rect (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle1, rend_t rstyle2);
1520 void scr_xor_span (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle);
1498 void scr_reverse_selection (); 1521 void scr_reverse_selection ();
1499 void scr_dump (int fd); 1522 void scr_dump (int fd);
1500 void selection_check (int check_more); 1523 void selection_check (int check_more);
1501 void selection_paste (Window win, Atom prop, bool delete_prop); 1524 void selection_paste (Window win, Atom prop, bool delete_prop);
1502 void selection_property (Window win, Atom prop); 1525 void selection_property (Window win, Atom prop);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines