XPolygonRegion(X3xlib) X Version 11 (Release 6.1)
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
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.