home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_10 / 9n10104b < prev    next >
Text File  |  1991-07-24  |  490b  |  22 lines

  1.  
  2.     #define    MAX_RECTS    100    /* some arbitrary size */
  3.  
  4.     XRectangle    rectangles[ MAX_RECTS + 1 ];
  5.     Display        *display;
  6.     Window        window;
  7.     int            number_rectangles;
  8.     int            which_kind_of_shape = ShapeBounding;
  9.     int            xoffset, yoffset;
  10.     int            operation = ShapeSet;
  11.     int            ordering = Unsorted;
  12.  
  13.     XShapeCombineRectangles( display, 
  14.         window,
  15.         which_kind_of_shape,
  16.         xoffset, yoffset,
  17.         rectangles,
  18.         number_rectangles,
  19.         operation,
  20.         ordering );  /* we haven't sorted the rects */
  21.  
  22.