ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.xs
(Generate patch)

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.233 by root, Sat Dec 27 19:23:42 2014 UTC vs.
Revision 1.238 by sf-exg, Thu Jul 14 05:33:26 2016 UTC

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
1391int 1391int
1392rxvt_term::width () 1392rxvt_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
1415unsigned int 1417unsigned int
1416rxvt_term::ModLevel3Mask () 1418rxvt_term::ModLevel3Mask ()
1572void 1574void
1573rxvt_term::want_refresh () 1575rxvt_term::want_refresh ()
1574 CODE: 1576 CODE:
1575 THIS->want_refresh = 1; 1577 THIS->want_refresh = 1;
1576 THIS->refresh_check (); 1578 THIS->refresh_check ();
1579
1580void
1581rxvt_term::refresh_check ()
1577 1582
1578void 1583void
1579rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0, int start_ofs = 0, int max_len = MAX_COLS) 1584rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0, int start_ofs = 0, int max_len = MAX_COLS)
1580 PPCODE: 1585 PPCODE:
1581{ 1586{
1859 } 1864 }
1860} 1865}
1861 OUTPUT: 1866 OUTPUT:
1862 RETVAL 1867 RETVAL
1863 1868
1869SV *
1870rxvt_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
1864bool 1879bool
1865rxvt_term::bind_action (octet_string keysym, octet_string action) 1880rxvt_term::bind_action (octet_string keysym, octet_string action)
1866 ALIAS: 1881 ALIAS:
1867 parse_keysym = 1 1882 parse_keysym = 1
1868 CODE: 1883 CODE:
2286 2301
2287 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])
2288 ->replace (img); 2303 ->replace (img);
2289 2304
2290 THIS->bg_img = img; 2305 THIS->bg_img = img;
2291 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER; 2306 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH;
2292 2307
2293 if (!border) 2308 if (!border)
2294 THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT; 2309 THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT;
2295 } 2310 }
2296 2311

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines