---
name: "XPolygonRegion"
section: "3x"
platform: "linux"
package: "libx11-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/XPolygonRegion/3x"
---

# XPolygonRegion(3x)

generate regions

## NAME

XPolygonRegion, XClipBox - generate regions

## SYNTAX

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

int XClipBox(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*.

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

## SEE ALSO

XCreateGC(3X11), XDrawPoint(3X11), XDrawRectangle(3X11)\
 *Xlib - C Language X Interface*
