XSetRegion() XSetRegion()
Name
XSetRegion - set clip_mask of the graphics context to the specified region.
Synopsis
XSetRegion(display, gc, r)
Display *display;
GC gc;
Region r;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
gc Specifies the graphics context.
r Specifies the region.
Description
XSetRegion() sets the clip_mask component of a GC to the specified region. Thereafter, all drawing made with gc will be confined to the
area of intersection of the region and the drawable. Once it is set in the GC, the region can be destroyed.
XSetRegion sets the clip origin of the GC to an implementation-dependent value.
For more information on regions, see Volume One, Chapter 5, The Graphics Context, and 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(), XPointInRegion(),
XPolygonRegion(), XRectInRegion(), XShrinkRegion(), XSubtractRegion(), XUnionRectWithRegion(), XUnionRegion(), XXorRegion().
Xlib - Regions XSetRegion()