… | |
… | |
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 |
… | |
… | |
53 | } |
53 | } |
54 | |
54 | |
55 | // inplace |
55 | // inplace |
56 | void move (int dx, int dy) |
56 | void move (int dx, int dy) |
57 | { |
57 | { |
58 | x += dx; |
58 | x -= dx; |
59 | y += dy; |
59 | y -= dy; |
60 | } |
60 | } |
61 | |
61 | |
62 | void repeat_mode (int repeat) |
62 | void repeat_mode (int repeat) |
63 | { |
63 | { |
64 | this->repeat = repeat; |
64 | this->repeat = repeat; |