… | |
… | |
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 */ |
… | |
… | |
983 | |
976 | |
984 | unsigned char refresh_type, |
977 | unsigned char refresh_type, |
985 | #ifdef META8_OPTION |
978 | #ifdef META8_OPTION |
986 | meta_char, /* Alt-key prefix */ |
979 | meta_char, /* Alt-key prefix */ |
987 | #endif |
980 | #endif |
988 | scrollbar_align, |
|
|
989 | selection_wait, |
981 | selection_wait, |
990 | selection_type; |
982 | selection_type; |
991 | /* ---------- */ |
983 | /* ---------- */ |
992 | bool rvideo_state, rvideo_mode; |
984 | bool rvideo_state, rvideo_mode; |
993 | #ifndef NO_BELL |
985 | #ifndef NO_BELL |
… | |
… | |
1011 | /* give proper Scroll behaviour */ |
1003 | /* give proper Scroll behaviour */ |
1012 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
1004 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
1013 | mouse_slip_wheel_speed, |
1005 | mouse_slip_wheel_speed, |
1014 | #endif |
1006 | #endif |
1015 | refresh_count, |
1007 | refresh_count, |
1016 | last_bot, /* scrollbar last bottom position */ |
|
|
1017 | last_top, /* scrollbar last top position */ |
|
|
1018 | last_state, /* scrollbar last state */ |
|
|
1019 | scrollbar_len, |
|
|
1020 | window_vt_x, |
1008 | window_vt_x, |
1021 | window_vt_y, |
1009 | window_vt_y, |
1022 | window_sb_x, |
1010 | window_sb_x, |
1023 | mouse_row, |
1011 | mouse_row, |
1024 | mouse_col, |
1012 | mouse_col, |
… | |
… | |
1066 | selection_request_time; |
1054 | selection_request_time; |
1067 | pid_t cmd_pid; /* process id of child */ |
1055 | pid_t cmd_pid; /* process id of child */ |
1068 | char * incr_buf; |
1056 | char * incr_buf; |
1069 | size_t incr_buf_size, incr_buf_fill; |
1057 | size_t incr_buf_size, incr_buf_fill; |
1070 | /* ---------- */ |
1058 | /* ---------- */ |
1071 | Cursor leftptr_cursor; |
|
|
1072 | /* ---------- */ |
|
|
1073 | struct mouse_event MEvent; |
1059 | struct mouse_event MEvent; |
1074 | XComposeStatus compose; |
1060 | XComposeStatus compose; |
1075 | struct termios tio; |
1061 | struct termios tio; |
1076 | row_col_t oldcursor; |
1062 | row_col_t oldcursor; |
1077 | #ifdef HAVE_BG_PIXMAP |
1063 | #ifdef HAVE_BG_PIXMAP |
… | |
… | |
1277 | void process_graphics (); |
1263 | void process_graphics (); |
1278 | // init.C |
1264 | // init.C |
1279 | void init_vars (); |
1265 | void init_vars (); |
1280 | void init_secondary (); |
1266 | void init_secondary (); |
1281 | const char **init_resources (int argc, const char *const *argv); |
1267 | const char **init_resources (int argc, const char *const *argv); |
|
|
1268 | void init (int argc, const char *const *argv, stringvec *envv); |
1282 | void init_env (); |
1269 | void init_env (); |
1283 | void set_locale (const char *locale); |
1270 | void set_locale (const char *locale); |
1284 | void init_xlocale (); |
1271 | void init_xlocale (); |
1285 | void init_command (const char *const *argv); |
1272 | void init_command (const char *const *argv); |
1286 | void run_command (const char *const *argv); |
1273 | void run_command (const char *const *argv); |
… | |
… | |
1293 | void tt_winch (); |
1280 | void tt_winch (); |
1294 | rxvt_term (); |
1281 | rxvt_term (); |
1295 | ~rxvt_term (); |
1282 | ~rxvt_term (); |
1296 | void destroy (); |
1283 | void destroy (); |
1297 | void emergency_cleanup (); |
1284 | void emergency_cleanup (); |
1298 | void init (int argc, const char *const *argv, stringvec *envv); |
|
|
1299 | void recolour_cursor (); |
1285 | void recolour_cursor (); |
1300 | void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent); |
1286 | void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent); |
1301 | void window_calc (unsigned int newwidth, unsigned int newheight); |
1287 | void window_calc (unsigned int newwidth, unsigned int newheight); |
1302 | bool set_fonts (); |
1288 | bool set_fonts (); |
1303 | void set_string_property (Atom prop, const char *str, int len = -1); |
1289 | void set_string_property (Atom prop, const char *str, int len = -1); |