XOffsetRegion()XOffsetRegion()NameXOffsetRegion – change offset of a region.
Synopsis
XOffsetRegion(r, dx, dy)
Region r;
int dx, dy;
Arguments
r Specifies the region.
dx Specify the amount to move the specified region relative to the
dy origin of all regions.
DescriptionXOffsetRegion() changes the offset of the region the specified amounts
in the x and y directions.
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 inter‐
pret the location of the region relative to a drawable. If the region
is to be used as a clip_mask by calling XSetRegion(), the upper-left
corner of the region relative to the drawable used in the graphics
request will be at (xoffset + clip_x_origin, yoffset + clip_y_origin),
where xoffset and yoffset are the offset of the region and clip_x_ori‐
gin and clip_y_origin are components of the GC used in the graphics
request.
Structures
Region is a pointer to an opaque structure type.
See AlsoXClipBox(), XCreateRegion(), XDestroyRegion(), XEmptyRegion(), XEqual‐
Region(), XIntersectRegion(), XPointInRegion(), XPolygonRegion(),
XRectInRegion(), XSetRegion(), XShrinkRegion(), XSubtractRegion(),
XUnionRectWithRegion(), XUnionRegion(), XXorRegion().
Xlib - Regions XOffsetRegion()