XShrinkRegion() XShrinkRegion()
Name
XShrinkRegion - reduce or expand the size of a region.
Synopsis
XShrinkRegion(r, dx, dy)
Region r;
int dx, dy;
Arguments
r Specifies the region.
dx Specify the amounts by which you want to shrink or expand the specified region. Positive values shrink the region while negative
dy values expand the region.
Description
XShrinkRegion() changes the width and/or height of the specified region. Positive values shrink the region; negative values expand the
region. It is legal to expand the region in one dimension at the same time as shrinking it in the other dimension. The offset of the
region is changed to keep the center of the resized region near its original position.
The exact amount of shrinkage for a given value for dx or dy is not specified by Xlib.
Structures
Region is a pointer to an opaque structure type.
See Also
XClipBox(), XCreateRegion(), XDestroyRegion(), XEmptyRegion(), XEqualRegion(), XIntersectRegion(), XOffsetRegion(), XPointInRegion(),
XPolygonRegion(), XRectInRegion(), XSetRegion(), XSubtractRegion(), XUnionRectWithRegion(), XUnionRegion(), XXorRegion().
Xlib - Regions XShrinkRegion()