X Version 11 (Release 6.1)

XPolygonRegion(X3xlib)


XPolygonRegion -- generate regions

Synopsis

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

XClipBox(r, rect_return) Region r; XRectangle *rect_return;

Arguments


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

n
Specifies the number of points in the polygon.

points
Specifies an array of points.

r
Specifies the region.

rect_return
Returns the smallest enclosing rectangle.

Description

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

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

References

XCreateGC(X3xlib), XDrawPoint(X3xlib), XDrawRectangle(X3xlib)
Xlib - C Language X Interface


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004