… | |
… | |
129 | char * rxvt_Str_trim (char *str); |
129 | char * rxvt_Str_trim (char *str); |
130 | int rxvt_Str_escaped (char *str); |
130 | int rxvt_Str_escaped (char *str); |
131 | char ** rxvt_splitcommastring (const char *cs); |
131 | char ** rxvt_splitcommastring (const char *cs); |
132 | void rxvt_freecommastring (char **cs); |
132 | void rxvt_freecommastring (char **cs); |
133 | char * rxvt_File_find (const char *file, const char *ext, const char *path); |
133 | char * rxvt_File_find (const char *file, const char *ext, const char *path); |
134 | void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); |
|
|
135 | void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); |
|
|
136 | void rxvt_usleep (int usecs); |
134 | void rxvt_usleep (int usecs); |
137 | |
135 | |
138 | ///////////////////////////////////////////////////////////////////////////// |
136 | ///////////////////////////////////////////////////////////////////////////// |
139 | |
137 | |
140 | // temporarily replace the process environment |
138 | // temporarily replace the process environment |
… | |
… | |
158 | * STRUCTURES AND TYPEDEFS |
156 | * STRUCTURES AND TYPEDEFS |
159 | ***************************************************************************** |
157 | ***************************************************************************** |
160 | */ |
158 | */ |
161 | struct grwin_t; |
159 | struct grwin_t; |
162 | |
160 | |
163 | /* If we're using either the rxvt scrollbar or menu bars, keep the |
161 | /* If we're using either the rxvt scrollbar, keep the |
164 | * scrollColor resource. |
162 | * scrollColor resource. |
165 | */ |
163 | */ |
166 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(PLAIN_SCROLLBAR) |
164 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(PLAIN_SCROLLBAR) |
167 | # define KEEP_SCROLLCOLOR 1 |
165 | # define KEEP_SCROLLCOLOR 1 |
168 | #else |
166 | #else |
… | |
… | |
256 | |
254 | |
257 | #define scrollBar_esc 30 |
255 | #define scrollBar_esc 30 |
258 | |
256 | |
259 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) |
257 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) |
260 | # define HAVE_SCROLLBARS 1 |
258 | # define HAVE_SCROLLBARS 1 |
261 | #endif |
|
|
262 | |
|
|
263 | /* width of scrollBar shadow, must be 1 or 2 */ |
|
|
264 | #ifdef HALFSHADOW |
|
|
265 | # define MENU_SHADOW 1 |
|
|
266 | #else |
|
|
267 | # define MENU_SHADOW 2 |
|
|
268 | #endif |
259 | #endif |
269 | |
260 | |
270 | #define R_SB_ALIGN_CENTRE 0 |
261 | #define R_SB_ALIGN_CENTRE 0 |
271 | #define R_SB_ALIGN_TOP 1 |
262 | #define R_SB_ALIGN_TOP 1 |
272 | #define R_SB_ALIGN_BOTTOM 2 |
263 | #define R_SB_ALIGN_BOTTOM 2 |
… | |
… | |
345 | * | |
336 | * | |
346 | * +---< SB_WIDTH_NEXT |
337 | * +---< SB_WIDTH_NEXT |
347 | */ |
338 | */ |
348 | |
339 | |
349 | enum { |
340 | enum { |
350 | NO_REFRESH = 0 , /* Window not visible at all! */ |
341 | NO_REFRESH = 0, /* Window not visible at all! */ |
351 | FAST_REFRESH = 1<<0, /* Fully exposed window */ |
342 | FAST_REFRESH = 1, /* Fully exposed window */ |
352 | SLOW_REFRESH = 1<<1, /* Partially exposed window */ |
343 | SLOW_REFRESH = 2, /* Partially exposed window */ |
353 | SMOOTH_REFRESH = 1<<2, /* Do sync'ing to make it smooth */ |
|
|
354 | }; |
344 | }; |
355 | |
345 | |
356 | #ifdef NO_SECONDARY_SCREEN |
346 | #ifdef NO_SECONDARY_SCREEN |
357 | # define NSCREENS 0 |
347 | # define NSCREENS 0 |
358 | #else |
348 | #else |
… | |
… | |
481 | Rxvt_restoreFG = 39, // change default fg color |
471 | Rxvt_restoreFG = 39, // change default fg color |
482 | Rxvt_restoreBG = 49, // change default bg color |
472 | Rxvt_restoreBG = 49, // change default bg color |
483 | Rxvt_dumpscreen = 55, // dump scrollback and all of screen |
473 | Rxvt_dumpscreen = 55, // dump scrollback and all of screen |
484 | |
474 | |
485 | URxvt_locale = 701, // change locale |
475 | URxvt_locale = 701, // change locale |
486 | URxvt_Menu = 703, // set menu item |
476 | |
487 | URxvt_Color_IT = 704, // change actual 'Italic' colour |
477 | URxvt_Color_IT = 704, // change actual 'Italic' colour |
488 | URxvt_Color_tint = 705, // change actual tint colour |
478 | URxvt_Color_tint = 705, // change actual tint colour |
489 | URxvt_Color_BD = 706, |
479 | URxvt_Color_BD = 706, |
490 | URxvt_Color_UL = 707, |
480 | URxvt_Color_UL = 707, |
491 | |
481 | |
… | |
… | |
709 | /* |
699 | /* |
710 | ***************************************************************************** |
700 | ***************************************************************************** |
711 | * MACRO DEFINES |
701 | * MACRO DEFINES |
712 | ***************************************************************************** |
702 | ***************************************************************************** |
713 | */ |
703 | */ |
|
|
704 | #define dLocal(type,name) type const name = this->name |
714 | #define dDisp Display *disp = display->display |
705 | #define dDisp Display *disp = this->display->display |
715 | |
706 | |
716 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
707 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
717 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
708 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
718 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
709 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
719 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth) |
710 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth) |
… | |
… | |
1430 | void scr_blank_screen_mem (line_t &l, rend_t efs) const; |
1421 | void scr_blank_screen_mem (line_t &l, rend_t efs) const; |
1431 | int scr_scroll_text (int row1, int row2, int count); |
1422 | int scr_scroll_text (int row1, int row2, int count); |
1432 | void scr_reset (); |
1423 | void scr_reset (); |
1433 | void scr_release (); |
1424 | void scr_release (); |
1434 | void scr_clear (bool really = false); |
1425 | void scr_clear (bool really = false); |
1435 | void scr_refresh (unsigned char refresh_type); |
1426 | void scr_refresh (); |
1436 | bool scr_refresh_rend (rend_t mask, rend_t value); |
1427 | bool scr_refresh_rend (rend_t mask, rend_t value); |
1437 | void scr_erase_screen (int mode); |
1428 | void scr_erase_screen (int mode); |
1438 | #if ENABLE_FRILLS |
1429 | #if ENABLE_FRILLS |
1439 | void scr_erase_savelines (); |
1430 | void scr_erase_savelines (); |
1440 | void scr_backindex (); |
1431 | void scr_backindex (); |
… | |
… | |
1504 | int scrollbar_show_next (int update, int last_top, int last_bot, int scrollbar_len); |
1495 | int scrollbar_show_next (int update, int last_top, int last_bot, int scrollbar_len); |
1505 | #endif |
1496 | #endif |
1506 | |
1497 | |
1507 | #if defined(RXVT_SCROLLBAR) |
1498 | #if defined(RXVT_SCROLLBAR) |
1508 | // scrollbar-rxvt.C |
1499 | // scrollbar-rxvt.C |
1509 | void Draw_button (int x, int y, int state, int dirn); |
|
|
1510 | int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len); |
1500 | int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len); |
1511 | #endif |
1501 | #endif |
1512 | |
1502 | |
1513 | #if defined(XTERM_SCROLLBAR) |
1503 | #if defined(XTERM_SCROLLBAR) |
1514 | // scrollbar-xterm.C |
1504 | // scrollbar-xterm.C |