Listing 2

#define MAX_RECTS      100    /* some arbitrary size */

XRectangle      rectangles[ MAX_RECTS + 1 ];
Display         *display;
Window          window;
int             number_rectangles;
int             which_kind_of_shape = ShapeBounding;
int             xoffset, yoffset;
int             operation = ShapeSet;
int             ordering = Unsorted;

XShapeCombineRectangles( display,
       window,
       which_kind_of_shape,
       xoffset, yoffset,
       rectangles,
       number_rectangles,
       operation,
       ordering );  /* we haven't sorted the rects */

/* End of File */