… | |
… | |
35 | Pixmap pm; |
35 | Pixmap pm; |
36 | pixref *ref; // shared refcnt |
36 | pixref *ref; // shared refcnt |
37 | int x, y, w, h, repeat; |
37 | int x, y, w, h, repeat; |
38 | XRenderPictFormat *format; |
38 | XRenderPictFormat *format; |
39 | |
39 | |
40 | rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int x, int y, int width, int height); |
40 | rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int x, int y, int width, int height, int repeat = RepeatNormal); |
41 | rxvt_img (const rxvt_img &img); |
41 | rxvt_img (const rxvt_img &img); |
42 | |
42 | |
43 | //rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap); |
43 | //rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap); |
44 | static rxvt_img *new_from_root (rxvt_screen *s); // get root pixmap |
44 | static rxvt_img *new_from_root (rxvt_screen *s); // get root pixmap |
45 | static rxvt_img *new_from_file (rxvt_screen *s, const char *filename); // from pixbuf |
45 | static rxvt_img *new_from_file (rxvt_screen *s, const char *filename); // from pixbuf |
… | |
… | |
93 | rxvt_img *clone (); |
93 | rxvt_img *clone (); |
94 | rxvt_img *sub_rect (int x, int y, int width, int height); |
94 | rxvt_img *sub_rect (int x, int y, int width, int height); |
95 | rxvt_img *transform (int new_width, int new_height, double matrix[9]); |
95 | rxvt_img *transform (int new_width, int new_height, double matrix[9]); |
96 | rxvt_img *scale (int new_width, int new_height); |
96 | rxvt_img *scale (int new_width, int new_height); |
97 | rxvt_img *rotate (int new_width, int new_height, int x, int y, double phi); |
97 | rxvt_img *rotate (int new_width, int new_height, int x, int y, double phi); |
98 | rxvt_img *convert_to (XRenderPictFormat *format, const rxvt_color &bg); |
98 | rxvt_img *convert_format (XRenderPictFormat *format, const rxvt_color &bg); |
99 | rxvt_img *blend (rxvt_img *img, double factor); |
99 | rxvt_img *blend (rxvt_img *img, double factor); |
100 | }; |
100 | }; |
101 | |
101 | |
102 | #endif |
102 | #endif |
103 | |
103 | |