1 | #ifndef IMG_H |
1 | #ifndef IMG_H), |
2 | #define IMG_H |
2 | #define IMG_H |
3 | |
3 | |
4 | #if HAVE_BG_PIXMAP |
4 | #if HAVE_BG_PIXMAP |
5 | #define HAVE_IMG 1 |
5 | #define HAVE_IMG 1 |
6 | #endif |
6 | #endif |
… | |
… | |
57 | } |
57 | } |
58 | |
58 | |
59 | // inplace |
59 | // inplace |
60 | void move (int dx, int dy) |
60 | void move (int dx, int dy) |
61 | { |
61 | { |
62 | x -= dx; |
62 | x += dx; |
63 | y -= dy; |
63 | y += dy; |
64 | } |
64 | } |
65 | |
65 | |
66 | void repeat_mode (int repeat) |
66 | void repeat_mode (int repeat) |
67 | { |
67 | { |
68 | this->repeat = repeat; |
68 | this->repeat = repeat; |
… | |
… | |
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.); |
96 | void draw (rxvt_img *img, int op = PictOpOver, nv mask = 1.); |
97 | |
97 | |
98 | // copy |
98 | // copy |
99 | rxvt_img *reify (); // make x, y 0, make real width/height |
99 | rxvt_img *reify (); // make x, y 0, make real width/height |
100 | rxvt_img *blur (int rh, int rv); |
100 | rxvt_img *blur (int rh, int rv); |
101 | rxvt_img *clone (); |
101 | rxvt_img *clone (); |