… | |
… | |
336 | * | |
336 | * | |
337 | * +---< SB_WIDTH_NEXT |
337 | * +---< SB_WIDTH_NEXT |
338 | */ |
338 | */ |
339 | |
339 | |
340 | enum { |
340 | enum { |
341 | NO_REFRESH = 0 , /* Window not visible at all! */ |
341 | NO_REFRESH = 0, /* Window not visible at all! */ |
342 | FAST_REFRESH = 1<<0, /* Fully exposed window */ |
342 | FAST_REFRESH = 1, /* Fully exposed window */ |
343 | SLOW_REFRESH = 1<<1, /* Partially exposed window */ |
343 | SLOW_REFRESH = 2, /* Partially exposed window */ |
344 | SMOOTH_REFRESH = 1<<2, /* Do sync'ing to make it smooth */ |
|
|
345 | }; |
344 | }; |
346 | |
345 | |
347 | #ifdef NO_SECONDARY_SCREEN |
346 | #ifdef NO_SECONDARY_SCREEN |
348 | # define NSCREENS 0 |
347 | # define NSCREENS 0 |
349 | #else |
348 | #else |
… | |
… | |
700 | /* |
699 | /* |
701 | ***************************************************************************** |
700 | ***************************************************************************** |
702 | * MACRO DEFINES |
701 | * MACRO DEFINES |
703 | ***************************************************************************** |
702 | ***************************************************************************** |
704 | */ |
703 | */ |
|
|
704 | #define dLocal(type,name) type const name = this->name |
705 | #define dDisp Display *disp = display->display |
705 | #define dDisp Display *disp = this->display->display |
706 | |
706 | |
707 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
707 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
708 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
708 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
709 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
709 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
710 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth) |
710 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth) |
… | |
… | |
1421 | 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; |
1422 | int scr_scroll_text (int row1, int row2, int count); |
1422 | int scr_scroll_text (int row1, int row2, int count); |
1423 | void scr_reset (); |
1423 | void scr_reset (); |
1424 | void scr_release (); |
1424 | void scr_release (); |
1425 | void scr_clear (bool really = false); |
1425 | void scr_clear (bool really = false); |
1426 | void scr_refresh (unsigned char refresh_type); |
1426 | void scr_refresh (); |
1427 | bool scr_refresh_rend (rend_t mask, rend_t value); |
1427 | bool scr_refresh_rend (rend_t mask, rend_t value); |
1428 | void scr_erase_screen (int mode); |
1428 | void scr_erase_screen (int mode); |
1429 | #if ENABLE_FRILLS |
1429 | #if ENABLE_FRILLS |
1430 | void scr_erase_savelines (); |
1430 | void scr_erase_savelines (); |
1431 | void scr_backindex (); |
1431 | void scr_backindex (); |
… | |
… | |
1495 | 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); |
1496 | #endif |
1496 | #endif |
1497 | |
1497 | |
1498 | #if defined(RXVT_SCROLLBAR) |
1498 | #if defined(RXVT_SCROLLBAR) |
1499 | // scrollbar-rxvt.C |
1499 | // scrollbar-rxvt.C |
1500 | void Draw_button (int x, int y, int state, int dirn); |
|
|
1501 | 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); |
1502 | #endif |
1501 | #endif |
1503 | |
1502 | |
1504 | #if defined(XTERM_SCROLLBAR) |
1503 | #if defined(XTERM_SCROLLBAR) |
1505 | // scrollbar-xterm.C |
1504 | // scrollbar-xterm.C |