… | |
… | |
278 | rxvt_img *img; |
278 | rxvt_img *img; |
279 | |
279 | |
280 | void destroy () |
280 | void destroy () |
281 | { |
281 | { |
282 | delete img; |
282 | delete img; |
|
|
283 | img = 0; |
283 | } |
284 | } |
284 | |
285 | |
285 | rxvt_image (); |
286 | rxvt_image (); |
286 | void set_file_geometry (rxvt_screen *s, const char *file); |
287 | void set_file_geometry (rxvt_screen *s, const char *file); |
287 | void set_file (rxvt_screen *s, const char *file); |
288 | void set_file (rxvt_screen *s, const char *file); |
… | |
… | |
1442 | void set_widthheight (unsigned int newwidth, unsigned int newheight); |
1443 | void set_widthheight (unsigned int newwidth, unsigned int newheight); |
1443 | void get_window_origin (int &x, int &y); |
1444 | void get_window_origin (int &x, int &y); |
1444 | |
1445 | |
1445 | // screen.C |
1446 | // screen.C |
1446 | |
1447 | |
|
|
1448 | bool option (uint8_t opt) const NOTHROW |
|
|
1449 | { |
|
|
1450 | return options[opt >> 3] & (1 << (opt & 7)); |
|
|
1451 | } |
|
|
1452 | |
|
|
1453 | void set_option (uint8_t opt, bool set = true) NOTHROW; |
|
|
1454 | |
1447 | int fgcolor_of (rend_t r) const NOTHROW |
1455 | int fgcolor_of (rend_t r) const NOTHROW |
1448 | { |
1456 | { |
1449 | int base = GET_BASEFG (r); |
1457 | int base = GET_BASEFG (r); |
1450 | #ifndef NO_BRIGHTCOLOR |
1458 | #ifndef NO_BRIGHTCOLOR |
1451 | if (r & RS_Bold |
1459 | if (r & RS_Bold |
… | |
… | |
1469 | && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR)) |
1477 | && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR)) |
1470 | base += minBrightCOLOR - minCOLOR; |
1478 | base += minBrightCOLOR - minCOLOR; |
1471 | #endif |
1479 | #endif |
1472 | return base; |
1480 | return base; |
1473 | } |
1481 | } |
1474 | |
|
|
1475 | bool option (uint8_t opt) const NOTHROW |
|
|
1476 | { |
|
|
1477 | return options[opt >> 3] & (1 << (opt & 7)); |
|
|
1478 | } |
|
|
1479 | |
|
|
1480 | void set_option (uint8_t opt, bool set = true) NOTHROW; |
|
|
1481 | |
1482 | |
1482 | // modifies first argument(!) |
1483 | // modifies first argument(!) |
1483 | void tt_paste (char *data, unsigned int len) NOTHROW; |
1484 | void tt_paste (char *data, unsigned int len) NOTHROW; |
1484 | void paste (char *data, unsigned int len) NOTHROW; |
1485 | void paste (char *data, unsigned int len) NOTHROW; |
1485 | void scr_alloc () NOTHROW; |
1486 | void scr_alloc () NOTHROW; |
… | |
… | |
1563 | const char **get_options (int argc, const char *const *argv); |
1564 | const char **get_options (int argc, const char *const *argv); |
1564 | int parse_keysym (const char *str, const char *arg); |
1565 | int parse_keysym (const char *str, const char *arg); |
1565 | const char *x_resource (const char *name); |
1566 | const char *x_resource (const char *name); |
1566 | void extract_resources (); |
1567 | void extract_resources (); |
1567 | void extract_keysym_resources (); |
1568 | void extract_keysym_resources (); |
1568 | void find_resources (const char *n_prefix, const char *c_prefix, int mode, |
|
|
1569 | Bool (*proc)(XrmDatabase *, XrmBindingList, XrmQuarkList, XrmRepresentation *, XrmValue *, XPointer)); |
|
|
1570 | bool parse_bool_resource (const char *str) |
|
|
1571 | { |
|
|
1572 | return (!strcasecmp (str, "TRUE") |
|
|
1573 | || !strcasecmp (str, "YES") |
|
|
1574 | || !strcasecmp (str, "ON") |
|
|
1575 | || !strcasecmp (str, "1")); |
|
|
1576 | } |
|
|
1577 | }; |
1569 | }; |
1578 | |
1570 | |
1579 | #endif /* _RXVT_H_ */ |
1571 | #endif /* _RXVT_H_ */ |
1580 | |
1572 | |