xgetshape

diff src/image.h @ 0:2f02f100b20f

getting the window shape of another window
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 03 Nov 2015 00:42:08 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/image.h	Tue Nov 03 00:42:08 2015 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +#ifndef IMAGE_H_
     1.5 +#define IMAGE_H_
     1.6 +
     1.7 +struct image {
     1.8 +	int width, height;
     1.9 +	unsigned char *pixels;
    1.10 +};
    1.11 +
    1.12 +int image_create(struct image *img, int w, int h);
    1.13 +void image_destroy(struct image *img);
    1.14 +
    1.15 +int image_save(struct image *img, const char *rgbname, const char *aname);
    1.16 +
    1.17 +int image_clear(struct image *img, int r, int g, int b, int a);
    1.18 +int image_fillrect(struct image *img, int x, int y, int w, int h, int r, int g, int b, int a);
    1.19 +int image_chess(struct image *img, int sz, int r0, int g0, int b0, int r1, int g1, int b1);
    1.20 +
    1.21 +#endif	/* IMAGE_H_ */