NAME
XPointInRegion − determine if a point is inside a region.
Synopsis
Bool XPointInRegion(r, x, y)
Region r;
int x, y;
Arguments
rSpecifies the region.
x
ySpecify the x and y coordinates of the point relative to the region’s origin.
Description
XPointInRegion() returns True if the point x, y is contained in the region r. A point exactly on the boundary of the region is considered inside the region. Regions are located using an offset from a point (the region origin) which is common to all regions. It is up to the application to interpret the location of the region relative to a drawable. For more information on regions, see Volume One, Chapter 6, Drawing Graphics and Text.
Structures
Region is a pointer to an opaque structure type.
See Also
XClipBox(), XCreateRegion(), XDestroyRegion(), XEmptyRegion(), XEqualRegion(), XIntersectRegion(), XOffsetRegion(), XPolygonRegion(), XRectInRegion(), XSetRegion(), XShrinkRegion(), XSubtractRegion(), XUnionRectWithRegion(), XUnionRegion(),
Copyright O’Reilly & Assoc. —