1 | /* |
1 | /* |
2 | * $Id: rxvt.h,v 1.13 2003/12/18 00:29:29 pcg Exp $ |
2 | * $Id: rxvt.h,v 1.16 2003/12/18 05:45:11 pcg Exp $ |
3 | */ |
3 | */ |
4 | |
4 | |
5 | #ifndef _RXVT_H_ /* include once only */ |
5 | #ifndef _RXVT_H_ /* include once only */ |
6 | #define _RXVT_H_ |
6 | #define _RXVT_H_ |
7 | |
7 | |
… | |
… | |
481 | Rs_backgroundPixmap, |
481 | Rs_backgroundPixmap, |
482 | #endif |
482 | #endif |
483 | #if (MENUBAR_MAX) |
483 | #if (MENUBAR_MAX) |
484 | Rs_menu, |
484 | Rs_menu, |
485 | #endif |
485 | #endif |
486 | #ifndef NO_BOLDFONT |
|
|
487 | Rs_boldFont, |
|
|
488 | #endif |
|
|
489 | #ifdef GREEK_SUPPORT |
486 | #ifdef GREEK_SUPPORT |
490 | Rs_greek_keyboard, |
487 | Rs_greek_keyboard, |
491 | Rs_greektoggle_key, |
488 | Rs_greektoggle_key, |
492 | #endif |
489 | #endif |
493 | Rs_loginShell, |
490 | Rs_loginShell, |
… | |
… | |
725 | #define scrollbar_isUp() (R->scrollBar.state == 'U') |
722 | #define scrollbar_isUp() (R->scrollBar.state == 'U') |
726 | #define scrollbar_isDn() (R->scrollBar.state == 'D') |
723 | #define scrollbar_isDn() (R->scrollBar.state == 'D') |
727 | #define scrollbar_isUpDn() isupper (R->scrollBar.state) |
724 | #define scrollbar_isUpDn() isupper (R->scrollBar.state) |
728 | #define isScrollbarWindow(w) (R->scrollBar.state && (w) == R->scrollBar.win) |
725 | #define isScrollbarWindow(w) (R->scrollBar.state && (w) == R->scrollBar.win) |
729 | |
726 | |
730 | #define scrollbar_setIdle() R->scrollBar.state = 1 |
|
|
731 | #define scrollbar_setMotion() R->scrollBar.state = 'm' |
|
|
732 | #define scrollbar_setUp() R->scrollBar.state = 'U' |
|
|
733 | #define scrollbar_setDn() R->scrollBar.state = 'D' |
|
|
734 | |
|
|
735 | #define scrollbarnext_dnval() (R->scrollBar.end + (R->scrollBar.width + 1)) |
727 | #define scrollbarnext_dnval() (R->scrollBar.end + (R->scrollBar.width + 1)) |
736 | #define scrollbarnext_upButton(y) ((y) > R->scrollBar.end \ |
728 | #define scrollbarnext_upButton(y) ((y) > R->scrollBar.end \ |
737 | && (y) <= scrollbarnext_dnval()) |
729 | && (y) <= scrollbarnext_dnval()) |
738 | #define scrollbarnext_dnButton(y) ((y) > scrollbarnext_dnval()) |
730 | #define scrollbarnext_dnButton(y) ((y) > scrollbarnext_dnval()) |
739 | #define SCROLLNEXT_MINHEIGHT SB_THUMB_MIN_HEIGHT |
731 | #define SCROLLNEXT_MINHEIGHT SB_THUMB_MIN_HEIGHT |
… | |
… | |
770 | |
762 | |
771 | #ifndef STRICT_FONT_CHECKING |
763 | #ifndef STRICT_FONT_CHECKING |
772 | # define rxvt_get_fontwidest(font) ((font)->max_bounds.width) |
764 | # define rxvt_get_fontwidest(font) ((font)->max_bounds.width) |
773 | #endif |
765 | #endif |
774 | |
766 | |
775 | #define rxvt_Gr_ButtonPress(x,y) rxvt_Gr_ButtonReport (r, 'P',(x),(y)) |
767 | #define rxvt_Gr_ButtonPress(x,y) rxvt_Gr_ButtonReport (R, 'P',(x),(y)) |
776 | #define rxvt_Gr_ButtonRelease(x,y) rxvt_Gr_ButtonReport (r, 'R',(x),(y)) |
768 | #define rxvt_Gr_ButtonRelease(x,y) rxvt_Gr_ButtonReport (R, 'R',(x),(y)) |
777 | |
769 | |
778 | #ifdef UTMP_SUPPORT |
770 | #ifdef UTMP_SUPPORT |
779 | # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) |
771 | # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) |
780 | # undef HAVE_UTMPX_H |
772 | # undef HAVE_UTMPX_H |
781 | # undef HAVE_STRUCT_UTMPX |
773 | # undef HAVE_STRUCT_UTMPX |
… | |
… | |
1074 | char *env_display; /* environmental variable DISPLAY */ |
1066 | char *env_display; /* environmental variable DISPLAY */ |
1075 | char *env_term; /* environmental variable TERM */ |
1067 | char *env_term; /* environmental variable TERM */ |
1076 | char *env_colorfgbg; |
1068 | char *env_colorfgbg; |
1077 | char *buffer; |
1069 | char *buffer; |
1078 | char *locale; |
1070 | char *locale; |
|
|
1071 | char *codeset; |
1079 | char charsets[4]; |
1072 | char charsets[4]; |
1080 | unsigned char *v_buffer; /* pointer to physical buffer */ |
1073 | unsigned char *v_buffer; /* pointer to physical buffer */ |
1081 | unsigned int v_buflen; /* size of area to write */ |
1074 | unsigned int v_buflen; /* size of area to write */ |
1082 | char *newfont[MAX_NFONTS]; |
1075 | char *newfont[MAX_NFONTS]; |
1083 | #ifdef KEYSYM_RESOURCE |
1076 | #ifdef KEYSYM_RESOURCE |
… | |
… | |
1131 | bool pty_fill (); |
1124 | bool pty_fill (); |
1132 | void process_x_events (); |
1125 | void process_x_events (); |
1133 | |
1126 | |
1134 | void *operator new (size_t s); |
1127 | void *operator new (size_t s); |
1135 | void operator delete (void *p, size_t s); |
1128 | void operator delete (void *p, size_t s); |
|
|
1129 | |
|
|
1130 | void init_secondary (); |
|
|
1131 | const char **init_resources (int argc, const char *const *argv); |
|
|
1132 | void init_env (); |
|
|
1133 | void init_xlocale (); |
|
|
1134 | void init_command (const char *const *argv); |
|
|
1135 | int run_command (const char *const *argv); |
|
|
1136 | int run_child (const char *const *argv); |
|
|
1137 | |
|
|
1138 | void color_aliases(int idx); |
|
|
1139 | void recolour_cursor (); |
1136 | |
1140 | |
1137 | /* screen(!) */ |
1141 | /* screen(!) */ |
1138 | void scr_blank_line (text_t *et, rend_t *er, unsigned int width, rend_t efs); |
1142 | void scr_blank_line (text_t *et, rend_t *er, unsigned int width, rend_t efs); |
1139 | void scr_blank_screen_mem (text_t **tp, rend_t **rp, unsigned int row, rend_t efs); |
1143 | void scr_blank_screen_mem (text_t **tp, rend_t **rp, unsigned int row, rend_t efs); |
1140 | int scr_scroll_text (int row1, int row2, int count, int spec); |
1144 | int scr_scroll_text (int row1, int row2, int count, int spec); |
1141 | void scr_reset (); |
1145 | void scr_reset (); |
1142 | void scr_reset_realloc (); |
1146 | void scr_reset_realloc (); |
1143 | void scr_release (); |
1147 | void scr_release (); |
1144 | }; |
1148 | }; |
1145 | |
1149 | |
|
|
1150 | #define SET_LOCALE(locale) rxvt_set_locale (locale) |
|
|
1151 | extern void rxvt_set_locale (const char *locale); |
|
|
1152 | |
1146 | #ifndef __attribute__ |
1153 | #ifndef __attribute__ |
1147 | # ifdef __GNUC__ |
1154 | # ifdef __GNUC__ |
1148 | # if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2) |
1155 | # if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2) |
1149 | # define __attribute__(x) |
1156 | # define __attribute__(x) |
1150 | # endif |
1157 | # endif |