… | |
… | |
182 | |
182 | |
183 | #define menuBar_esc 10 |
183 | #define menuBar_esc 10 |
184 | #define scrollBar_esc 30 |
184 | #define scrollBar_esc 30 |
185 | #define menuBar_margin 2 /* margin below text */ |
185 | #define menuBar_margin 2 /* margin below text */ |
186 | |
186 | |
187 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) |
187 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) |
188 | # define HAVE_SCROLLBARS |
188 | # define HAVE_SCROLLBARS |
189 | #endif |
189 | #endif |
190 | |
190 | |
191 | /* width of scrollBar, menuBar shadow, must be 1 or 2 */ |
191 | /* width of scrollBar, menuBar shadow, must be 1 or 2 */ |
192 | #ifdef HALFSHADOW |
192 | #ifdef HALFSHADOW |
… | |
… | |
200 | #define R_SB_ALIGN_BOTTOM 2 |
200 | #define R_SB_ALIGN_BOTTOM 2 |
201 | |
201 | |
202 | #define R_SB_RXVT 0 |
202 | #define R_SB_RXVT 0 |
203 | #define R_SB_NEXT 1 |
203 | #define R_SB_NEXT 1 |
204 | #define R_SB_XTERM 2 |
204 | #define R_SB_XTERM 2 |
|
|
205 | #define R_SB_PLAIN 4 |
205 | |
206 | |
206 | #define SB_WIDTH_NEXT 19 |
207 | #define SB_WIDTH_NEXT 19 |
207 | #define SB_WIDTH_XTERM 7 |
208 | #define SB_WIDTH_XTERM 15 |
|
|
209 | #define SB_WIDTH_PLAIN 7 |
208 | #ifndef SB_WIDTH_RXVT |
210 | #ifndef SB_WIDTH_RXVT |
209 | # define SB_WIDTH_RXVT 10 |
211 | # define SB_WIDTH_RXVT 10 |
210 | #endif |
212 | #endif |
211 | |
213 | |
212 | /* |
214 | /* |
… | |
… | |
948 | #endif |
950 | #endif |
949 | #ifdef XTERM_SCROLLBAR |
951 | #ifdef XTERM_SCROLLBAR |
950 | GC xscrollbarGC, |
952 | GC xscrollbarGC, |
951 | ShadowGC; |
953 | ShadowGC; |
952 | #endif |
954 | #endif |
|
|
955 | #ifdef PLAIN_SCROLLBAR |
|
|
956 | GC pscrollbarGC; |
|
|
957 | #endif |
953 | #ifdef NEXT_SCROLLBAR |
958 | #ifdef NEXT_SCROLLBAR |
954 | GC blackGC, |
959 | GC blackGC, |
955 | whiteGC, |
960 | whiteGC, |
956 | grayGC, |
961 | grayGC, |
957 | darkGC, |
962 | darkGC, |
… | |
… | |
1305 | #if defined(XTERM_SCROLLBAR) |
1310 | #if defined(XTERM_SCROLLBAR) |
1306 | // scrollbar-xterm.C |
1311 | // scrollbar-xterm.C |
1307 | int scrollbar_show_xterm (int update, int last_top, int last_bot, int scrollbar_len); |
1312 | int scrollbar_show_xterm (int update, int last_top, int last_bot, int scrollbar_len); |
1308 | #endif |
1313 | #endif |
1309 | |
1314 | |
|
|
1315 | #if defined(PLAIN_SCROLLBAR) |
|
|
1316 | // scrollbar-plain.C |
|
|
1317 | int scrollbar_show_plain (int update, int last_top, int last_bot, int scrollbar_len); |
|
|
1318 | #endif |
|
|
1319 | |
1310 | // scrollbar.C |
1320 | // scrollbar.C |
1311 | int scrollbar_mapping (int map); |
1321 | int scrollbar_mapping (int map); |
1312 | int scrollbar_show (int update); |
1322 | int scrollbar_show (int update); |
1313 | void setup_scrollbar (const char *scrollalign, const char *scrollstyle, const char *thickness); |
1323 | void setup_scrollbar (const char *scrollalign, const char *scrollstyle, const char *thickness); |
1314 | |
1324 | |