1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#ifndef ASSHAPE_HEADER_FILE_INCLUDED
#define ASSHAPE_HEADER_FILE_INCLUDED
#ifdef SHAPE
#include <X11/extensions/shape.h>
#endif /* SHAPE */
#ifdef __cplusplus
extern "C" {
#endif
struct ASVector;
struct ASImage;
ASVector *create_shape();
void destroy_shape( struct ASVector **shape );
Bool add_shape_rectangles( struct ASVector *shape, XRectangle *rects, unsigned int count, int x_origin, int y_origin, unsigned int max_width, unsigned int max_height );
Bool print_shape( struct ASVector *shape );
Bool add_shape_mask( struct ASVector *shape, struct ASImage *mask_im );
Bool subtract_shape_rectangle( struct ASVector *shape, XRectangle *rect, unsigned int count, int x_origin, int y_origin, unsigned int clip_width, unsigned int clip_height );
Bool apply_shape_to_window( struct ASVector *shape, Window w );
Bool query_shape_from_window( struct ASVector *shape, Window w );
/* This version differs from above, in that its tryes to compile a list
* of as many rectangles as possible : */
void subtract_rectangle_from_list( ASVector *list, int left, int top, int right, int bottom );
void print_rectangles_list( ASVector *list );
#ifdef __cplusplus
}
#endif
#endif /* #ifndef ASHAPE_HEADER_FILE_INCLUDED */
|