… | |
… | |
21 | Pixmap pm; |
21 | Pixmap pm; |
22 | int *refcnt; // shared refcnt |
22 | int *refcnt; // shared refcnt |
23 | int x, y, w, h, repeat; |
23 | int x, y, w, h, repeat; |
24 | XRenderPictFormat *format; |
24 | XRenderPictFormat *format; |
25 | |
25 | |
26 | rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height); |
26 | rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int x, int y, int width, int height); |
27 | rxvt_img (const rxvt_img &img); |
27 | rxvt_img (const rxvt_img &img); |
28 | |
28 | |
29 | //rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap); |
29 | //rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap); |
30 | static rxvt_img *new_from_root (rxvt_screen *s); // get root pixmap |
30 | static rxvt_img *new_from_root (rxvt_screen *s); // get root pixmap |
31 | static rxvt_img *new_from_file (rxvt_screen *s, const char *filename); // from pixbuf |
31 | static rxvt_img *new_from_file (rxvt_screen *s, const char *filename); // from pixbuf |
… | |
… | |
74 | } |
74 | } |
75 | |
75 | |
76 | bool render_pixbuf (GdkPixbuf *pixbuf, int src_x, int src_y, int width, int height, int dst_x, int dst_y); |
76 | bool render_pixbuf (GdkPixbuf *pixbuf, int src_x, int src_y, int width, int height, int dst_x, int dst_y); |
77 | |
77 | |
78 | // copy |
78 | // copy |
|
|
79 | rxvt_img *reify (); // make x, y 0, make real width/height |
79 | rxvt_img *blur (int rh, int rv); |
80 | rxvt_img *blur (int rh, int rv); |
80 | rxvt_img *clone (); |
81 | rxvt_img *clone (); |
81 | rxvt_img *sub_rect (int x, int y, int width, int height); |
82 | rxvt_img *sub_rect (int x, int y, int width, int height); |
82 | rxvt_img *transform (int new_width, int new_height, double matrix[9]); |
83 | rxvt_img *transform (int new_width, int new_height, double matrix[9]); |
83 | rxvt_img *scale (int new_width, int new_height); |
84 | rxvt_img *scale (int new_width, int new_height); |