Region XPolygonRegion(points, n, fill_rule)
      XPoint points[];
      int n;
      int fill_rule;	


points Specifies an array of points.
n Specifies the number of points in the polygon.
fill_rule Specifies the fill-rule you want to set for the specified GC. You can pass EvenOddRule or WindingRule .


The XPolygonRegion() function returns a region for the polygon defined by the points array. For an explanation of fill_rule, see XCreateGC().

See also

XCreateRegion(), XDestroyRegion(), XEmptyRegion(), XIntersectRegion(), XSetRegion(), "Creating, Copying, or Destroying Regions".
Christophe Tronche, ch@tronche.com