XPolygonRegion(3) XLIB FUNCTIONS XPolygonRegion(3)

# [NAME](#NAME)

XPolygonRegion, XClipBox - generate regions

# [SYNTAX](#SYNTAX)

Region XPolygonRegion(XPoint *points*\[], int *n*, int *fill\_rule*);

int XClipBox(Region *r*, XRectangle \**rect\_return*);

# [ARGUMENTS](#ARGUMENTS)

[*fill\_rule*](#fill_rule)

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

[*n*](#n)

Specifies the number of points in the polygon.

[*points*](#points)

Specifies an array of points.

[*r*](#r)

Specifies the region.

[*rect\_return*](#rect_return)

Returns the smallest enclosing rectangle.

# [DESCRIPTION](#DESCRIPTION)

The **XPolygonRegion** function returns a region for the polygon defined by the points array. For an explanation of fill\_rule, see **XCreateGC**.

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

# [SEE ALSO](#SEE_ALSO)

[**XCreateGC**(3)](/man/os/libx11/XCreateGC.3), [**XDrawPoint**(3)](/man/os/libx11/XDrawPoint.3), [**XDrawRectangle**(3)](/man/os/libx11/XDrawRectangle.3)  
*Xlib - C Language X Interface*

libX11 1.8.14 X Version 11

---

Document: XClipBox(3) from libx11 1.8.14-r1 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libx11.git
