… | |
… | |
1734 | |
1734 | |
1735 | void |
1735 | void |
1736 | rxvt_term::scr_bell () |
1736 | rxvt_term::scr_bell () |
1737 | |
1737 | |
1738 | void |
1738 | void |
|
|
1739 | rxvt_term::scr_recolour (bool refresh = true); |
|
|
1740 | |
|
|
1741 | void |
1739 | rxvt_term::scr_change_screen (int screen) |
1742 | rxvt_term::scr_change_screen (int screen) |
1740 | |
1743 | |
1741 | void |
1744 | void |
1742 | rxvt_term::scr_add_lines (SV *string) |
1745 | rxvt_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 | |
|
|
1941 | rxvt_img * |
|
|
1942 | rxvt_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 | |
1940 | rxvt_img * |
1955 | rxvt_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 | |
|
|
1986 | void |
|
|
1987 | rxvt_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 | |
|
|
2046 | int |
|
|
2047 | rxvt_img::w () |
|
|
2048 | CODE: |
|
|
2049 | RETVAL = THIS->w; |
|
|
2050 | OUTPUT: |
|
|
2051 | RETVAL |
|
|
2052 | |
|
|
2053 | int |
|
|
2054 | rxvt_img::h () |
|
|
2055 | CODE: |
|
|
2056 | RETVAL = THIS->h; |
|
|
2057 | OUTPUT: |
|
|
2058 | RETVAL |
|
|
2059 | |
|
|
2060 | bool |
|
|
2061 | rxvt_img::shared () |
|
|
2062 | CODE: |
|
|
2063 | RETVAL = THIS->shared; |
|
|
2064 | OUTPUT: |
|
|
2065 | RETVAL |
|
|
2066 | |
|
|
2067 | Pixmap |
|
|
2068 | rxvt_img::pm () |
|
|
2069 | CODE: |
|
|
2070 | RETVAL = THIS->pm; |
|
|
2071 | OUTPUT: |
|
|
2072 | RETVAL |
2009 | |
2073 | |
2010 | void |
2074 | void |
2011 | rxvt_img::fill (SV *c) |
2075 | rxvt_img::fill (SV *c) |
2012 | INIT: |
2076 | INIT: |
2013 | rxvt_color rc; |
2077 | rxvt_color rc; |
… | |
… | |
2036 | |
2100 | |
2037 | rxvt_img * |
2101 | rxvt_img * |
2038 | rxvt_img::scale (int new_width, int new_height) |
2102 | rxvt_img::scale (int new_width, int new_height) |
2039 | |
2103 | |
2040 | rxvt_img * |
2104 | rxvt_img * |
2041 | rxvt_img::transform (int new_width, int new_height, int repeat, |
2105 | rxvt_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) |
2042 | NV p11, NV p12, NV p13, |
|
|
2043 | NV p21, NV p22, NV p23, |
|
|
2044 | NV p31, NV p32, NV p23) |
|
|
2045 | INIT: |
2106 | INIT: |
2046 | double matrix[9] = { |
2107 | double matrix[9] = { |
2047 | p11, p12, p13, |
2108 | p11, p12, p13, |
2048 | p21, p22, p23, |
2109 | p21, p22, p23, |
2049 | p31, p32, p33 |
2110 | p31, p32, p33 |
2050 | }; |
2111 | }; |
2051 | C_ARGS: new_width, new_height, repeat, matrix |
2112 | C_ARGS: new_width, new_height, repeat, matrix |
2052 | |
|
|
2053 | |
2113 | |
2054 | #endif |
2114 | #endif |
2055 | |
2115 | |