… | |
… | |
657 | |
657 | |
658 | #if ENABLE_STYLES |
658 | #if ENABLE_STYLES |
659 | # define FONTSET(style) fontset[GET_STYLE (style)] |
659 | # define FONTSET(style) fontset[GET_STYLE (style)] |
660 | #else |
660 | #else |
661 | # define FONTSET(style) fontset[0] |
661 | # define FONTSET(style) fontset[0] |
662 | #endif |
|
|
663 | |
|
|
664 | #ifdef HAVE_SCROLLBARS |
|
|
665 | # define scrollbar_TotalWidth() (scrollBar.width + sb_shadow * 2) |
|
|
666 | #else |
|
|
667 | # define scrollbar_TotalWidth() (0) |
|
|
668 | #endif |
662 | #endif |
669 | |
663 | |
670 | typedef callback<void (const char *)> log_callback; |
664 | typedef callback<void (const char *)> log_callback; |
671 | typedef callback<int (int)> getfd_callback; |
665 | typedef callback<int (int)> getfd_callback; |
672 | |
666 | |
… | |
… | |
932 | scrollBar_t scrollBar; |
926 | scrollBar_t scrollBar; |
933 | uint8_t options[(Opt_count + 7) >> 3]; |
927 | uint8_t options[(Opt_count + 7) >> 3]; |
934 | XSizeHints szHint; |
928 | XSizeHints szHint; |
935 | rxvt_color *pix_colors; |
929 | rxvt_color *pix_colors; |
936 | Cursor TermWin_cursor; /* cursor for vt window */ |
930 | Cursor TermWin_cursor; /* cursor for vt window */ |
937 | int sb_shadow; /* scrollbar shadow width */ |
|
|
938 | int numlock_state; |
931 | int numlock_state; |
939 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
932 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
940 | line_t *drawn_buf; // text on screen |
933 | line_t *drawn_buf; // text on screen |
941 | line_t *swap_buf; // lines for swap buffer |
934 | line_t *swap_buf; // lines for swap buffer |
942 | char *tabs; /* per location: 1 == tab-stop */ |
935 | char *tabs; /* per location: 1 == tab-stop */ |