… | |
… | |
12 | #include <X11/extensions/Xrender.h> |
12 | #include <X11/extensions/Xrender.h> |
13 | |
13 | |
14 | class rxvt_img |
14 | class rxvt_img |
15 | { |
15 | { |
16 | void destroy (); |
16 | void destroy (); |
17 | Picture src_picture (); |
17 | Picture picture (); |
18 | |
18 | |
19 | public: |
19 | public: |
20 | typedef double nv; |
20 | typedef double nv; |
21 | |
21 | |
22 | // *could* also hold the Pixmap itself |
22 | // *could* also hold the Pixmap itself |
… | |
… | |
91 | float_to_component (g), |
91 | float_to_component (g), |
92 | float_to_component (b), |
92 | float_to_component (b), |
93 | float_to_component (a)); |
93 | float_to_component (a)); |
94 | } |
94 | } |
95 | |
95 | |
|
|
96 | void draw (rxvt_img *img, int op = PictOpSrc, nv mask = 1.); |
|
|
97 | |
96 | // copy |
98 | // copy |
97 | rxvt_img *reify (); // make x, y 0, make real width/height |
99 | rxvt_img *reify (); // make x, y 0, make real width/height |
98 | rxvt_img *blur (int rh, int rv); |
100 | rxvt_img *blur (int rh, int rv); |
99 | rxvt_img *clone (); |
101 | rxvt_img *clone (); |
100 | rxvt_img *sub_rect (int x, int y, int width, int height); |
102 | rxvt_img *sub_rect (int x, int y, int width, int height); |