… | |
… | |
1204 | } |
1204 | } |
1205 | OUTPUT: |
1205 | OUTPUT: |
1206 | RETVAL |
1206 | RETVAL |
1207 | |
1207 | |
1208 | void |
1208 | void |
|
|
1209 | rxvt_term::focus_in () |
|
|
1210 | |
|
|
1211 | void |
|
|
1212 | rxvt_term::focus_out () |
|
|
1213 | |
|
|
1214 | void |
1209 | rxvt_term::want_refresh () |
1215 | rxvt_term::want_refresh () |
1210 | CODE: |
1216 | CODE: |
1211 | THIS->want_refresh = 1; |
1217 | THIS->want_refresh = 1; |
1212 | |
1218 | |
1213 | void |
1219 | void |
… | |
… | |
1235 | { |
1241 | { |
1236 | wchar_t *wstr = sv2wcs (new_text); |
1242 | wchar_t *wstr = sv2wcs (new_text); |
1237 | |
1243 | |
1238 | int len = min (wcslen (wstr) - start_ofs, max_len); |
1244 | int len = min (wcslen (wstr) - start_ofs, max_len); |
1239 | |
1245 | |
1240 | if (!IN_RANGE_INC (start_col, 0, THIS->ncol - len)) |
1246 | if (start_col < 0 || start_col + len > THIS->ncol) |
1241 | { |
1247 | { |
1242 | free (wstr); |
1248 | free (wstr); |
1243 | croak ("new_text extends beyond horizontal margins"); |
1249 | croak ("new_text extends beyond horizontal margins"); |
1244 | } |
1250 | } |
1245 | |
1251 | |
… | |
… | |
1279 | croak ("new_rend must be arrayref"); |
1285 | croak ("new_rend must be arrayref"); |
1280 | |
1286 | |
1281 | AV *av = (AV *)SvRV (new_rend); |
1287 | AV *av = (AV *)SvRV (new_rend); |
1282 | int len = min (AvFILL (av) + 1 - start_ofs, max_len); |
1288 | int len = min (AvFILL (av) + 1 - start_ofs, max_len); |
1283 | |
1289 | |
1284 | if (!IN_RANGE_INC (start_col, 0, THIS->ncol - len)) |
1290 | if (start_col < 0 || start_col + len > THIS->ncol) |
1285 | croak ("new_rend array extends beyond horizontal margins"); |
1291 | croak ("new_rend array extends beyond horizontal margins"); |
1286 | |
1292 | |
1287 | for (int col = start_col; col < start_col + len; col++) |
1293 | for (int col = start_col; col < start_col + len; col++) |
1288 | { |
1294 | { |
1289 | rend_t r = SvIV (*av_fetch (av, start_ofs + col - start_col, 1)) & ~RS_fontMask; |
1295 | rend_t r = SvIV (*av_fetch (av, start_ofs + col - start_col, 1)) & ~RS_fontMask; |
… | |
… | |
1734 | |
1740 | |
1735 | void |
1741 | void |
1736 | XMoveResizeWindow (rxvt_term *term, Window window, int x, int y, unsigned int width, unsigned int height) |
1742 | XMoveResizeWindow (rxvt_term *term, Window window, int x, int y, unsigned int width, unsigned int height) |
1737 | C_ARGS: term->display->display, (Window)window, x, y, width, height |
1743 | C_ARGS: term->display->display, (Window)window, x, y, width, height |
1738 | |
1744 | |
|
|
1745 | void |
|
|
1746 | rxvt_term::XTranslateCoordinates (Window src, Window dst, int x, int y) |
|
|
1747 | PPCODE: |
|
|
1748 | { |
|
|
1749 | int dx, dy; |
|
|
1750 | Window child; |
|
|
1751 | |
|
|
1752 | if (XTranslateCoordinates (THIS->display->display, src, dst, x, y, &dx, &dy, &child)) |
|
|
1753 | { |
|
|
1754 | EXTEND (SP, 3); |
|
|
1755 | PUSHs (newSViv (dx)); |
|
|
1756 | PUSHs (newSViv (dy)); |
|
|
1757 | PUSHs (newSVuv (child)); |
|
|
1758 | } |
|
|
1759 | } |
|
|
1760 | |
1739 | ############################################################################# |
1761 | ############################################################################# |
1740 | # urxvt::overlay |
1762 | # urxvt::overlay |
1741 | ############################################################################# |
1763 | ############################################################################# |
1742 | |
1764 | |
1743 | MODULE = urxvt PACKAGE = urxvt::overlay |
1765 | MODULE = urxvt PACKAGE = urxvt::overlay |