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.195 by root, Thu Jun 14 17:16:05 2012 UTC vs.
Revision 1.196 by root, Thu Jun 14 18:13:19 2012 UTC

2096 PUSHs (sv_2mortal (newSViv (border ? THIS->vt_height : THIS->szHint.height))); 2096 PUSHs (sv_2mortal (newSViv (border ? THIS->vt_height : THIS->szHint.height)));
2097 2097
2098#if HAVE_IMG 2098#if HAVE_IMG
2099 2099
2100rxvt_img * 2100rxvt_img *
2101rxvt_term::new_img (SV *format, int width = 1, int height = 1) 2101rxvt_term::new_img (SV *format, int x = 0, int y = 0, int width = 1, int height = 1)
2102 CODE: 2102 CODE:
2103 XRenderPictFormat *f = SvOK (format) 2103 XRenderPictFormat *f = SvOK (format)
2104 ? XRenderFindStandardFormat (THIS->dpy, SvIV (format)) 2104 ? XRenderFindStandardFormat (THIS->dpy, SvIV (format))
2105 : XRenderFindVisualFormat (THIS->dpy, THIS->visual); 2105 : XRenderFindVisualFormat (THIS->dpy, THIS->visual);
2106 RETVAL = new rxvt_img (THIS, f, 0, 0, width, height); 2106 RETVAL = new rxvt_img (THIS, f, x, y, width, height);
2107 RETVAL->alloc (); 2107 RETVAL->alloc ();
2108 OUTPUT: 2108 OUTPUT:
2109 RETVAL 2109 RETVAL
2110 2110
2111#if ENABLE_TRANSPARENCY 2111#if ENABLE_TRANSPARENCY
2211 2211
2212#if HAVE_IMG 2212#if HAVE_IMG
2213 2213
2214# rxvt_img *new (rxvt_screen *screen, XRenderPictFormat *format, int width, int height) 2214# rxvt_img *new (rxvt_screen *screen, XRenderPictFormat *format, int width, int height)
2215# rxvt_img *rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap); 2215# rxvt_img *rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap);
2216
2217void
2218rxvt_img::geometry ()
2219 PPCODE:
2220 EXTEND (SP, 4);
2221 PUSHs (sv_2mortal (newSViv (THIS->x)));
2222 PUSHs (sv_2mortal (newSViv (THIS->y)));
2223 PUSHs (sv_2mortal (newSViv (THIS->w)));
2224 PUSHs (sv_2mortal (newSViv (THIS->h)));
2225
2226int
2227rxvt_img::x ()
2228 CODE:
2229 RETVAL = THIS->x;
2230 OUTPUT:
2231 RETVAL
2232
2233int
2234rxvt_img::y ()
2235 CODE:
2236 RETVAL = THIS->y;
2237 OUTPUT:
2238 RETVAL
2216 2239
2217int 2240int
2218rxvt_img::w () 2241rxvt_img::w ()
2219 CODE: 2242 CODE:
2220 RETVAL = THIS->w; 2243 RETVAL = THIS->w;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines