… | |
… | |
1934 | } |
1934 | } |
1935 | |
1935 | |
1936 | ############################################################################# |
1936 | ############################################################################# |
1937 | # fancy bg bloatstuff (TODO: should be moved up somewhere) |
1937 | # fancy bg bloatstuff (TODO: should be moved up somewhere) |
1938 | |
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 | |
1939 | #if ENABLE_TRANSPARENCY |
1951 | #if ENABLE_TRANSPARENCY |
1940 | |
1952 | |
1941 | #if 0 |
1953 | #if 0 |
1942 | |
1954 | |
1943 | rxvt_img * |
1955 | rxvt_img * |
… | |
… | |
1986 | THIS->bg_valid_since = ev::now (); // TODO: extra bloat |
1998 | THIS->bg_valid_since = ev::now (); // TODO: extra bloat |
1987 | } |
1999 | } |
1988 | |
2000 | |
1989 | #endif |
2001 | #endif |
1990 | |
2002 | |
|
|
2003 | #endif |
|
|
2004 | |
1991 | ############################################################################# |
2005 | ############################################################################# |
1992 | # urxvt::overlay |
2006 | # urxvt::overlay |
1993 | ############################################################################# |
2007 | ############################################################################# |
1994 | |
2008 | |
1995 | MODULE = urxvt PACKAGE = urxvt::overlay |
2009 | MODULE = urxvt PACKAGE = urxvt::overlay |
… | |
… | |
2026 | |
2040 | |
2027 | #if HAVE_IMG |
2041 | #if HAVE_IMG |
2028 | |
2042 | |
2029 | # 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) |
2030 | # 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 |
2031 | |
2073 | |
2032 | void |
2074 | void |
2033 | rxvt_img::fill (SV *c) |
2075 | rxvt_img::fill (SV *c) |
2034 | INIT: |
2076 | INIT: |
2035 | rxvt_color rc; |
2077 | rxvt_color rc; |