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.160 by root, Mon Jun 4 15:18:52 2012 UTC vs.
Revision 1.164 by root, Mon Jun 4 18:17:25 2012 UTC

800 const_iv (XIMSecondary), 800 const_iv (XIMSecondary),
801 const_iv (XIMTertiary), 801 const_iv (XIMTertiary),
802 const_iv (XIMVisibleToForward), 802 const_iv (XIMVisibleToForward),
803 const_iv (XIMVisibleToBackword), 803 const_iv (XIMVisibleToBackword),
804 const_iv (XIMVisibleToCenter), 804 const_iv (XIMVisibleToCenter),
805#if HAVE_XRENDER 805#if XRENDER
806 const_iv (PictStandardARGB32), 806 const_iv (PictStandardARGB32),
807 const_iv (PictStandardRGB24), 807 const_iv (PictStandardRGB24),
808 const_iv (PictStandardA8), 808 const_iv (PictStandardA8),
809 const_iv (PictStandardA4), 809 const_iv (PictStandardA4),
810 const_iv (PictStandardA1), 810 const_iv (PictStandardA1),
1734 1734
1735void 1735void
1736rxvt_term::scr_bell () 1736rxvt_term::scr_bell ()
1737 1737
1738void 1738void
1739rxvt_term::scr_recolour (bool refresh = true);
1740
1741void
1739rxvt_term::scr_change_screen (int screen) 1742rxvt_term::scr_change_screen (int screen)
1740 1743
1741void 1744void
1742rxvt_term::scr_add_lines (SV *string) 1745rxvt_term::scr_add_lines (SV *string)
1743 CODE: 1746 CODE:
1931} 1934}
1932 1935
1933############################################################################# 1936#############################################################################
1934# fancy bg bloatstuff (TODO: should be moved up somewhere) 1937# fancy bg bloatstuff (TODO: should be moved up somewhere)
1935 1938
1939#if HAVE_IMG
1940
1941rxvt_img *
1942rxvt_term::new_img (SV *format, int width, int height)
1943 CODE:
1944 XRenderPictFormat *f = SvOK (format)
1945 ? XRenderFindVisualFormat (THIS->dpy, THIS->visual)
1946 : XRenderFindStandardFormat (THIS->dpy, SvIV (format));
1947 RETVAL = new rxvt_img (THIS, f, width, height);
1948 OUTPUT:
1949 RETVAL
1950
1936#if ENABLE_TRANSPARENCY 1951#if ENABLE_TRANSPARENCY
1937 1952
1938#if 0 1953#if 0
1939 1954
1940rxvt_img * 1955rxvt_img *
1961 { 1976 {
1962 croak ("new_img_from_file failed"); 1977 croak ("new_img_from_file failed");
1963 } 1978 }
1964 OUTPUT: 1979 OUTPUT:
1965 RETVAL 1980 RETVAL
1981
1982#endif
1983
1984#if HAVE_BG_PIXMAP
1985
1986void
1987rxvt_term::set_background (rxvt_img *img)
1988 CODE:
1989 THIS->bg_destroy ();
1990 THIS->bg_pixmap = None;
1991 THIS->bg_flags &= ~rxvt_term::BG_NEEDS_REFRESH;
1992
1993 if (img) // TODO: cannot be false
1994 {
1995 img->unshare ();
1996 THIS->bg_pixmap = img->steal ();
1997 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH;
1998 THIS->bg_valid_since = ev::now (); // TODO: extra bloat
1999 }
2000
2001#endif
1966 2002
1967#endif 2003#endif
1968 2004
1969############################################################################# 2005#############################################################################
1970# urxvt::overlay 2006# urxvt::overlay
2004 2040
2005#if HAVE_IMG 2041#if HAVE_IMG
2006 2042
2007# rxvt_img *new (rxvt_screen *screen, XRenderPictFormat *format, int width, int height) 2043# rxvt_img *new (rxvt_screen *screen, XRenderPictFormat *format, int width, int height)
2008# rxvt_img *rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap); 2044# rxvt_img *rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap);
2045
2046int
2047rxvt_img::w ()
2048 CODE:
2049 RETVAL = THIS->w;
2050 OUTPUT:
2051 RETVAL
2052
2053int
2054rxvt_img::h ()
2055 CODE:
2056 RETVAL = THIS->h;
2057 OUTPUT:
2058 RETVAL
2059
2060bool
2061rxvt_img::shared ()
2062 CODE:
2063 RETVAL = THIS->shared;
2064 OUTPUT:
2065 RETVAL
2066
2067Pixmap
2068rxvt_img::pm ()
2069 CODE:
2070 RETVAL = THIS->pm;
2071 OUTPUT:
2072 RETVAL
2009 2073
2010void 2074void
2011rxvt_img::fill (SV *c) 2075rxvt_img::fill (SV *c)
2012 INIT: 2076 INIT:
2013 rxvt_color rc; 2077 rxvt_color rc;
2033 2097
2034rxvt_img * 2098rxvt_img *
2035rxvt_img::clone () 2099rxvt_img::clone ()
2036 2100
2037rxvt_img * 2101rxvt_img *
2038rxvt_img::scale (int new_width, int new_height) 2102rxvt_img::transform (int new_width, int new_height, int repeat, NV p11, NV p12, NV p13, NV p21, NV p22, NV p23, NV p31, NV p32, NV p33)
2039
2040rxvt_img *
2041rxvt_img::transform (int new_width, int new_height, int repeat,
2042 NV p11, NV p12, NV p13,
2043 NV p21, NV p22, NV p23,
2044 NV p31, NV p32, NV p23)
2045 INIT: 2103 INIT:
2046 double matrix[9] = { 2104 double matrix[9] = {
2047 p11, p12, p13, 2105 p11, p12, p13,
2048 p21, p22, p23, 2106 p21, p22, p23,
2049 p31, p32, p33 2107 p31, p32, p33
2050 }; 2108 };
2051 C_ARGS: new_width, new_height, repeat, matrix 2109 C_ARGS: new_width, new_height, repeat, matrix
2052 2110
2111rxvt_img *
2112rxvt_img::scale (int new_width, int new_height)
2113
2114rxvt_img *
2115rxvt_img::rotate (int new_width, int new_height, int repeat, int x, int y, NV phi)
2053 2116
2054#endif 2117#endif
2055 2118

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines