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.151 by root, Thu Jan 19 13:04:12 2012 UTC vs.
Revision 1.157 by root, Sun Jun 3 15:54:15 2012 UTC

27#undef line_t 27#undef line_t
28#undef bool // perl defines it's own bool type, except with g++... what a trap 28#undef bool // perl defines it's own bool type, except with g++... what a trap
29 29
30#include "../config.h" 30#include "../config.h"
31 31
32#include <cstddef> 32#include <stddef.h>
33#include <cstdarg> 33#include <stdarg.h>
34 34
35#include "unistd.h" 35#include "unistd.h"
36 36
37#include "ev_cpp.h" 37#include "ev_cpp.h"
38#include "rxvt.h" 38#include "rxvt.h"
46 46
47#undef LINENO 47#undef LINENO
48#define LINENO(n) MOD (THIS->term_start + int(n), THIS->total_rows) 48#define LINENO(n) MOD (THIS->term_start + int(n), THIS->total_rows)
49#undef ROW 49#undef ROW
50#define ROW(n) THIS->row_buf [LINENO (n)] 50#define ROW(n) THIS->row_buf [LINENO (n)]
51
52/////////////////////////////////////////////////////////////////////////////
53
54typedef char * octet_string;
55typedef char * utf8_string;
56
57typedef GdkPixbuf * urxvt__pixbuf;
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}
51 68
52///////////////////////////////////////////////////////////////////////////// 69/////////////////////////////////////////////////////////////////////////////
53 70
54static wchar_t * 71static wchar_t *
55sv2wcs (SV *sv) 72sv2wcs (SV *sv)
1554 THIS->scr_remap_chars (); 1571 THIS->scr_remap_chars ();
1555 THIS->scr_touch (true); 1572 THIS->scr_touch (true);
1556 THIS->want_refresh = 1; 1573 THIS->want_refresh = 1;
1557 THIS->refresh_check (); 1574 THIS->refresh_check ();
1558 break; 1575 break;
1576#ifdef CURSOR_BLINK
1577 case Opt_cursorBlink:
1578 THIS->cursor_blink_reset ();
1579 break;
1580#endif
1559 1581
1560 case Opt_cursorUnderline: 1582 case Opt_cursorUnderline:
1561 THIS->want_refresh = 1; 1583 THIS->want_refresh = 1;
1562 THIS->refresh_check (); 1584 THIS->refresh_check ();
1563 break; 1585 break;
1915void 1937void
1916overlay::DESTROY () 1938overlay::DESTROY ()
1917 1939
1918INCLUDE: $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 |
1919 1941
1942MODULE = urxvt PACKAGE = urxvt::pixbuf PREFIX = gdk_pixbuf_
1943
1944#if HAVE_PIXBUF
1945
1946urxvt::pixbuf gdk_pixbuf_new_from_file (SV *klass, octet_string filename)
1947 C_ARGS: filename, 0
1948
1949void
1950DESTROY (urxvt::pixbuf self)
1951 CODE:
1952 gdk_pixbuf_unref (self);
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