--- rxvt-unicode/src/rxvtperl.xs 2012/01/19 13:04:12 1.151 +++ rxvt-unicode/src/rxvtperl.xs 2012/06/03 18:04:44 1.158 @@ -29,8 +29,8 @@ #include "../config.h" -#include -#include +#include +#include #include "unistd.h" @@ -51,6 +51,23 @@ ///////////////////////////////////////////////////////////////////////////// +typedef char * octet_string; +typedef char * utf8_string; + +typedef GdkPixbuf * urxvt__pixbuf; +typedef rxvt_img * urxvt__img; + +///////////////////////////////////////////////////////////////////////////// + +static void +parse_color (rxvt_screen *s, rxvt_color &c, SV *sv) +{ + //TODO: support component stuff + c.set (s, SvPVbyte_nolen (sv)); +} + +///////////////////////////////////////////////////////////////////////////// + static wchar_t * sv2wcs (SV *sv) { @@ -785,6 +802,13 @@ const_iv (XIMVisibleToForward), const_iv (XIMVisibleToBackword), const_iv (XIMVisibleToCenter), +#if HAVE_XRENDER + const_iv (PictStandardARGB32), + const_iv (PictStandardRGB24), + const_iv (PictStandardA8), + const_iv (PictStandardA4), + const_iv (PictStandardA1), +#endif # if 0 const_iv (XIMForwardChar), const_iv (XIMBackwardChar), @@ -1556,6 +1580,11 @@ THIS->want_refresh = 1; THIS->refresh_check (); break; +#ifdef CURSOR_BLINK + case Opt_cursorBlink: + THIS->cursor_blink_reset (); + break; +#endif case Opt_cursorUnderline: THIS->want_refresh = 1; @@ -1898,6 +1927,24 @@ } ############################################################################# +# fancy bg bloatstuff (TODO: should be moved up somewhere) + +#ifdef ENABLE_TRANSPARENCY + +# rxvt_img * +# rxvt_term::new_root_img () +# CODE: +# RETVAL = rxvt_img::new_from_root (THIS); +# OUTPUT: +# RETVAL + +#endif + +#if HAVE_PIXBUF + +#endif + +############################################################################# # urxvt::overlay ############################################################################# @@ -1917,3 +1964,51 @@ INCLUDE: $PERL s, rc, c); + C_ARGS: rc + +void +rxvt_img::blur (int rh, int rv) + +void +rxvt_img::brightness (double r, double g, double b, double a = 1.) + +void +rxvt_img::contrast (double r, double g, double b, double a = 1.) + +rxvt_img * +rxvt_img::copy () + +rxvt_img * +rxvt_img::scale (int new_width, int new_height) + +# rxvt_img * +# rxvt_img::transform (int new_width, int new_height, double matrix[16]); + +#endif +