1. NAME

XPolygonRegion, XClipBox - generate regions

2. SYNTAX

Region XPolygonRegion(XPoint points[], int n, int fill_rule); int XClipBox(Region r, XRectangle *rect_return);

3. ARGUMENTS

fill_rule 1i Specifies the fill-rule you want to set for the specified GC. You can pass .ZN EvenOddRule or .ZN WindingRule .

n 1i Specifies the number of points in the polygon.

points 1i Specifies an array of points.

r 1i Specifies the region.

rect_return 1i Returns the smallest enclosing rectangle.

4. DESCRIPTION

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

The .ZN XClipBox function returns the smallest rectangle enclosing the specified region.

5. SEE ALSO