… | |
… | |
331 | // 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" |
332 | #define RS_redraw (2UL << RS_fontShift) |
332 | #define RS_redraw (2UL << RS_fontShift) |
333 | |
333 | |
334 | #define RS_Sel (1UL << 22) |
334 | #define RS_Sel (1UL << 22) |
335 | |
335 | |
336 | // 5 custom bits for extensions |
336 | // 4 custom bits for extensions |
337 | #define RS_customCount 16UL |
337 | #define RS_customCount 16UL |
338 | #define RS_customShift 23 |
338 | #define RS_customShift 23 |
339 | #define RS_customMask ((RS_customCount - 1UL) << RS_customShift) |
339 | #define RS_customMask ((RS_customCount - 1UL) << RS_customShift) |
340 | |
340 | |
341 | // font styles |
341 | // font styles |
… | |
… | |
615 | /* |
615 | /* |
616 | ***************************************************************************** |
616 | ***************************************************************************** |
617 | * MACRO DEFINES |
617 | * MACRO DEFINES |
618 | ***************************************************************************** |
618 | ***************************************************************************** |
619 | */ |
619 | */ |
|
|
620 | |
|
|
621 | // speed hack, copy some member variable into a local variable of the same name |
620 | #define dLocal(type,name) type const name = this->name |
622 | #define dLocal(type,name) type const name = this->name |
621 | |
623 | |
622 | // 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 |
623 | // single-width. |
625 | // single-width. |
624 | #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)) |
… | |
… | |
1306 | void recolour_cursor (); |
1308 | void recolour_cursor (); |
1307 | 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); |
1308 | void window_calc (unsigned int newwidth, unsigned int newheight); |
1310 | void window_calc (unsigned int newwidth, unsigned int newheight); |
1309 | bool set_fonts (); |
1311 | bool set_fonts (); |
1310 | 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); |
1311 | 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); |
1312 | void set_title (const char *str); |
1315 | void set_title (const char *str); |
1313 | void set_icon_name (const char *str); |
1316 | void set_icon_name (const char *str); |
1314 | void set_window_color (int idx, const char *color); |
1317 | void set_window_color (int idx, const char *color); |
1315 | void set_colorfgbg (); |
1318 | void set_colorfgbg (); |