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.155 by root, Sun Jun 3 10:38:22 2012 UTC vs.
Revision 1.157 by root, Sun Jun 3 15:54:15 2012 UTC

54typedef char * octet_string; 54typedef char * octet_string;
55typedef char * utf8_string; 55typedef char * utf8_string;
56 56
57typedef GdkPixbuf * urxvt__pixbuf; 57typedef GdkPixbuf * urxvt__pixbuf;
58typedef rxvt_img * urxvt__img; 58typedef rxvt_img * urxvt__img;
59
60/////////////////////////////////////////////////////////////////////////////
61
62static void
63parse_color (rxvt_screen *s, rxvt_color &c, SV *sv)
64{
65 //TODO: support component stuff
66 c.set (s, SvPVbyte_nolen (sv));
67}
59 68
60///////////////////////////////////////////////////////////////////////////// 69/////////////////////////////////////////////////////////////////////////////
61 70
62static wchar_t * 71static wchar_t *
63sv2wcs (SV *sv) 72sv2wcs (SV *sv)
1930 1939
1931INCLUDE: $PERL <iom_perl.xs -pe s/IOM_MODULE/urxvt/g,s/IOM_CLASS/urxvt/g | 1940INCLUDE: $PERL <iom_perl.xs -pe s/IOM_MODULE/urxvt/g,s/IOM_CLASS/urxvt/g |
1932 1941
1933MODULE = urxvt PACKAGE = urxvt::pixbuf PREFIX = gdk_pixbuf_ 1942MODULE = urxvt PACKAGE = urxvt::pixbuf PREFIX = gdk_pixbuf_
1934 1943
1944#if HAVE_PIXBUF
1945
1935urxvt::pixbuf gdk_pixbuf_new_from_file (octet_string filename, GError **error = 0) 1946urxvt::pixbuf gdk_pixbuf_new_from_file (SV *klass, octet_string filename)
1947 C_ARGS: filename, 0
1936 1948
1937void 1949void
1938DESTROY (urxvt::pixbuf self) 1950DESTROY (urxvt::pixbuf self)
1939 CODE: 1951 CODE:
1940 gdk_pixbuf_unref (self); 1952 gdk_pixbuf_unref (self);
1941 1953
1954#endif
1955
1956MODULE = urxvt PACKAGE = urxvt::img
1957
1958#if HAVE_IMG
1959
1960# rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height);
1961# rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap);
1962
1963void fill (urxvt::img self, SV *c)
1964 CODE:
1965 rxvt_color rc;
1966 parse_color (self->s, rc, c);
1967 self->fill (rc);
1968
1969void blur (urxvt::img self, int rh, int rv)
1970 CODE:
1971 self->blur (rh, rv);
1972
1973void brightness (urxvt::img self, double r, double g, double b, double a = 1.)
1974 CODE:
1975 self->brightness (r, g, b, a);
1976
1977void contrast (urxvt::img self, double r, double g, double b, double a = 1.)
1978 CODE:
1979 self->contrast (r, g, b, a);
1980
1981urxvt::img copy (urxvt::img self)
1982 CODE:
1983 RETVAL = self->copy ();
1984 OUTPUT:
1985 RETVAL
1986
1987urxvt::img scale (urxvt::img self, int new_width, int new_height)
1988 CODE:
1989 RETVAL = self->scale (new_width, new_height);
1990 OUTPUT:
1991 RETVAL
1992
1993# rxvt_img *transform (urxvt::img self, int new_width, int new_height, double matrix[16]);
1994
1995#endif
1996

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines