XRectInRegion

Syntax

int XRectInRegion(r, x, y, width, height)
      Region r;
      int x, y; 
      unsigned int width, height;

Arguments

r Specifies the region.
x
y
Specify the x and y coordinates, which define the coordinates of the upper-left corner of the rectangle.
width
height
Specify the width and height, which define the rectangle .

Description

The XRectInRegion() function returns RectangleIn if the rectangle is entirely in the specified region, RectangleOut if the rectangle is entirely out of the specified region, and RectanglePart if the rectangle is partially in the specified region.

See also

XCreateRegion(), XEqualRegion(), XEmptyRegion(), XIntersectRegion(), XPointInRegion(), "Locating a Point or a Rectangle in a Region".
Christophe Tronche, ch@tronche.com