--- rxvt-unicode/src/rxvtimg.h 2012/06/14 19:31:17 1.38 +++ rxvt-unicode/src/rxvtimg.h 2012/06/15 19:50:56 1.40 @@ -11,12 +11,8 @@ #include -class rxvt_img +struct rxvt_img { - void destroy (); - Picture picture (); - -public: typedef double nv; // *could* also hold the Pixmap itself @@ -94,13 +90,17 @@ } void draw (rxvt_img *img, int op = PictOpOver, nv mask = 1.); +#if 0 + void draw (rxvt_img *img, int op = PictOpOver, nv mask = 1., + nv px, nv py, nv qx, nv qy, nv rx, nv ry, nv sx, nv sy); +#endif // copy rxvt_img *reify (); // make x, y 0, make real width/height rxvt_img *blur (int rh, int rv); rxvt_img *clone (); rxvt_img *sub_rect (int x, int y, int width, int height); - rxvt_img *transform (nv matrix[3][3]); + rxvt_img *transform (const nv matrix[3][3]); rxvt_img *scale (int new_width, int new_height); rxvt_img *rotate (int cx, int cy, nv phi); rxvt_img *convert_format (XRenderPictFormat *format, const rgba &bg); @@ -113,6 +113,12 @@ p = this; return this; } + +private: + + void destroy (); + Picture picture (); + rxvt_img *transform (const nv *matrix); }; #endif