--- rxvt-unicode/src/rxvtimg.h 2012/06/08 20:35:43 1.25 +++ rxvt-unicode/src/rxvtimg.h 2012/06/09 10:21:19 1.27 @@ -66,6 +66,9 @@ void unshare (); // prepare for write void fill (const rxvt_color &c); + //void linear_gradient (const XLinearGradient *gradient, const XFixed *stops, const XRenderColor *colors, int nstops); + //void radial_gradient (const XRadialGradient *gradient, const XFixed *stops, const XRenderColor *colors, int nstops); + //void conical_gradient (const XConicalGradient *gradient, const XFixed *stops, const XRenderColor *colors, int nstops); void brightness (uint16_t r, uint16_t g, uint16_t b, uint16_t a); void contrast (uint16_t r, uint16_t g, uint16_t b, uint16_t a); @@ -95,6 +98,14 @@ rxvt_img *rotate (int new_width, int new_height, int x, int y, double phi); rxvt_img *convert_format (XRenderPictFormat *format, const rxvt_color &bg); rxvt_img *blend (rxvt_img *img, double factor); + + // egregiuous helper category + rxvt_img *replace (rxvt_img *&p) + { + delete p; + p = this; + return this; + } }; #endif