XShrinkRegion()XShrinkRegion()NameXShrinkRegion – 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
dy specified region. Positive values shrink the region while
negative values expand the region.
DescriptionXShrinkRegion() 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 AlsoXClipBox(), XCreateRegion(), XDestroyRegion(), XEmptyRegion(), XEqual‐
Region(), XIntersectRegion(), XOffsetRegion(), XPointInRegion(), XPoly‐
gonRegion(), XRectInRegion(), XSetRegion(), XSubtractRegion(), XUnion‐
RectWithRegion(), XUnionRegion(), XXorRegion().
Xlib - Regions XShrinkRegion()