1 | /*----------------------------------------------------------------------* |
1 | /*----------------------------------------------------------------------* |
2 | * File: rxvtperl.xs |
2 | * File: rxvtperl.xs |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * |
4 | * |
5 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
6 | * Copyright (c) 2005-2014,2011 Marc Lehmann <schmorp@schmorp.de> |
6 | * Copyright (c) 2005-2014 Marc Lehmann <schmorp@schmorp.de> |
7 | * |
7 | * |
8 | * This program is free software; you can redistribute it and/or modify |
8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
10 | * the Free Software Foundation; either version 3 of the License, or |
10 | * the Free Software Foundation; either version 3 of the License, or |
11 | * (at your option) any later version. |
11 | * (at your option) any later version. |
… | |
… | |
1387 | #define TERM_OFFSET_saveLines TERM_OFFSET(saveLines) |
1387 | #define TERM_OFFSET_saveLines TERM_OFFSET(saveLines) |
1388 | #define TERM_OFFSET_total_rows TERM_OFFSET(total_rows) |
1388 | #define TERM_OFFSET_total_rows TERM_OFFSET(total_rows) |
1389 | #define TERM_OFFSET_top_row TERM_OFFSET(top_row) |
1389 | #define TERM_OFFSET_top_row TERM_OFFSET(top_row) |
1390 | |
1390 | |
1391 | int |
1391 | int |
1392 | rxvt_term::width () |
1392 | rxvt_term::width (int new_value = NO_INIT) |
1393 | ALIAS: |
1393 | ALIAS: |
1394 | width = TERM_OFFSET_width |
1394 | width = TERM_OFFSET_width |
1395 | height = TERM_OFFSET_height |
1395 | height = TERM_OFFSET_height |
1396 | fwidth = TERM_OFFSET_fwidth |
1396 | fwidth = TERM_OFFSET_fwidth |
1397 | fheight = TERM_OFFSET_fheight |
1397 | fheight = TERM_OFFSET_fheight |
… | |
… | |
1407 | saveLines = TERM_OFFSET_saveLines |
1407 | saveLines = TERM_OFFSET_saveLines |
1408 | total_rows = TERM_OFFSET_total_rows |
1408 | total_rows = TERM_OFFSET_total_rows |
1409 | top_row = TERM_OFFSET_top_row |
1409 | top_row = TERM_OFFSET_top_row |
1410 | CODE: |
1410 | CODE: |
1411 | RETVAL = *(int *)((char *)THIS + ix); |
1411 | RETVAL = *(int *)((char *)THIS + ix); |
|
|
1412 | if (items > 1) |
|
|
1413 | *(int *)((char *)THIS + ix) = new_value; |
1412 | OUTPUT: |
1414 | OUTPUT: |
1413 | RETVAL |
1415 | RETVAL |
1414 | |
1416 | |
1415 | unsigned int |
1417 | unsigned int |
1416 | rxvt_term::ModLevel3Mask () |
1418 | rxvt_term::ModLevel3Mask () |
… | |
… | |
1862 | } |
1864 | } |
1863 | } |
1865 | } |
1864 | OUTPUT: |
1866 | OUTPUT: |
1865 | RETVAL |
1867 | RETVAL |
1866 | |
1868 | |
|
|
1869 | SV * |
|
|
1870 | rxvt_term::lookup_keysym (int keysym, unsigned int state) |
|
|
1871 | CODE: |
|
|
1872 | { |
|
|
1873 | keysym_t *key = THIS->keyboard->lookup_keysym (THIS, keysym, state); |
|
|
1874 | RETVAL = key ? sv_2mortal (newSVpv (key->str, 0)) : &PL_sv_undef; |
|
|
1875 | } |
|
|
1876 | OUTPUT: |
|
|
1877 | RETVAL |
|
|
1878 | |
1867 | bool |
1879 | bool |
1868 | rxvt_term::bind_action (octet_string keysym, octet_string action) |
1880 | rxvt_term::bind_action (octet_string keysym, octet_string action) |
1869 | ALIAS: |
1881 | ALIAS: |
1870 | parse_keysym = 1 |
1882 | parse_keysym = 1 |
1871 | CODE: |
1883 | CODE: |
… | |
… | |
2289 | |
2301 | |
2290 | img->convert_format (XRenderFindVisualFormat (THIS->dpy, THIS->visual), THIS->pix_colors [Color_bg]) |
2302 | img->convert_format (XRenderFindVisualFormat (THIS->dpy, THIS->visual), THIS->pix_colors [Color_bg]) |
2291 | ->replace (img); |
2303 | ->replace (img); |
2292 | |
2304 | |
2293 | THIS->bg_img = img; |
2305 | THIS->bg_img = img; |
2294 | THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER; |
2306 | THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH; |
2295 | |
2307 | |
2296 | if (!border) |
2308 | if (!border) |
2297 | THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT; |
2309 | THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT; |
2298 | } |
2310 | } |
2299 | |
2311 | |