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.406 by root, Sun May 23 00:02:52 2010 UTC vs.
Revision 1.413 by sf-exg, Mon Jul 26 09:57:53 2010 UTC

323#define RS_fgMask (RS_colorMask << RS_fgShift) 323#define RS_fgMask (RS_colorMask << RS_fgShift)
324 324
325// must have space for rxvt_fontset::fontCount * 2 + 2 values 325// must have space for rxvt_fontset::fontCount * 2 + 2 values
326#define RS_fontShift (RS_fgShift + Color_Bits) 326#define RS_fontShift (RS_fgShift + Color_Bits)
327#define RS_Careful (1UL << RS_fontShift) /* be careful when drawing these */ 327#define RS_Careful (1UL << RS_fontShift) /* be careful when drawing these */
328#define RS_fontCount rxvt_fontset::fontCount
328#define RS_fontMask ((rxvt_fontset::fontCount << (RS_fontShift + 1)) | RS_Careful) // includes RS_Careful 329#define RS_fontMask ((RS_fontCount << (RS_fontShift + 1)) | RS_Careful) // includes RS_Careful
329 330
330// toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral" 331// toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral"
331#define RS_redraw (2UL << RS_fontShift) 332#define RS_redraw (2UL << RS_fontShift)
332 333
333#define RS_Sel (1UL << 22) 334#define RS_Sel (1UL << 22)
334 335
335// 5 custom bits for extensions 336// 4 custom bits for extensions
336#define RS_customCount 16UL 337#define RS_customCount 16UL
337#define RS_customShift 23 338#define RS_customShift 23
338#define RS_customMask ((RS_customCount - 1UL) << RS_customShift) 339#define RS_customMask ((RS_customCount - 1UL) << RS_customShift)
339 340
340// font styles 341// font styles
614/* 615/*
615 ***************************************************************************** 616 *****************************************************************************
616 * MACRO DEFINES 617 * MACRO DEFINES
617 ***************************************************************************** 618 *****************************************************************************
618 */ 619 */
620
621// speed hack, copy some member variable into a local variable of the same name
619#define dLocal(type,name) type const name = this->name 622#define dLocal(type,name) type const name = this->name
620 623
621// for speed reasons, we assume that all codepoints 32 to 126 are 624// for speed reasons, we assume that all codepoints 32 to 126 are
622// single-width. 625// single-width.
623#define WCWIDTH(c) (IN_RANGE_INC (c, 0x20, 0x7e) ? 1 : wcwidth (c)) 626#define WCWIDTH(c) (IN_RANGE_INC (c, 0x20, 0x7e) ? 1 : wcwidth (c))
804{ 807{
805 int x, y, w, h; // overlay dimensions 808 int x, y, w, h; // overlay dimensions
806 text_t **text; 809 text_t **text;
807 rend_t **rend; 810 rend_t **rend;
808 811
809 // while tempting to add swap() etc. here, it effetcively only increases code size 812 // while tempting to add swap() etc. here, it effectively only increases code size
810}; 813};
811 814
812/* ------------------------------------------------------------------------- */ 815/* ------------------------------------------------------------------------- */
813 816
814typedef struct 817typedef struct
1305 void recolour_cursor (); 1308 void recolour_cursor ();
1306 void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent); 1309 void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent);
1307 void window_calc (unsigned int newwidth, unsigned int newheight); 1310 void window_calc (unsigned int newwidth, unsigned int newheight);
1308 bool set_fonts (); 1311 bool set_fonts ();
1309 void set_string_property (Atom prop, const char *str, int len = -1); 1312 void set_string_property (Atom prop, const char *str, int len = -1);
1313 void set_mbstring_property (Atom prop, const char *str, int len = -1);
1310 void set_utf8_property (Atom prop, const char *str, int len = -1); 1314 void set_utf8_property (Atom prop, const char *str, int len = -1);
1311 void set_title (const char *str); 1315 void set_title (const char *str);
1312 void set_icon_name (const char *str); 1316 void set_icon_name (const char *str);
1313 void set_window_color (int idx, const char *color); 1317 void set_window_color (int idx, const char *color);
1314 void set_colorfgbg (); 1318 void set_colorfgbg ();
1404 else 1408 else
1405 priv_modes &= ~bit; 1409 priv_modes &= ~bit;
1406 } 1410 }
1407 1411
1408 // modifies first argument(!) 1412 // modifies first argument(!)
1413 void tt_paste (char *data, unsigned int len) NOTHROW;
1409 void paste (char *data, unsigned int len) NOTHROW; 1414 void paste (char *data, unsigned int len) NOTHROW;
1410 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; 1415 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW;
1411 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; 1416 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW;
1412 void scr_kill_char (line_t &l, int col) const NOTHROW; 1417 void scr_kill_char (line_t &l, int col) const NOTHROW;
1413 int scr_scroll_text (int row1, int row2, int count) NOTHROW; 1418 int scr_scroll_text (int row1, int row2, int count) NOTHROW;
1472 void selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW; 1477 void selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW;
1473 void selection_property (Window win, Atom prop) NOTHROW; 1478 void selection_property (Window win, Atom prop) NOTHROW;
1474 void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW; 1479 void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW;
1475 int selection_request_other (Atom target, int selnum) NOTHROW; 1480 int selection_request_other (Atom target, int selnum) NOTHROW;
1476 void selection_clear (bool clipboard = false) NOTHROW; 1481 void selection_clear (bool clipboard = false) NOTHROW;
1477 void clipboard_copy (Time tm);
1478 void selection_make (Time tm); 1482 void selection_make (Time tm);
1479 bool selection_grab (Time tm, bool clipboard = false) NOTHROW; 1483 bool selection_grab (Time tm, bool clipboard = false) NOTHROW;
1480 void selection_start_colrow (int col, int row) NOTHROW; 1484 void selection_start_colrow (int col, int row) NOTHROW;
1481 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW; 1485 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW;
1482 void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) NOTHROW; 1486 void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) NOTHROW;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines