XSetRegion()XSetRegion()NameXSetRegion – 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.
DescriptionXSetRegion() 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-depen‐
dent value.
For more information on regions, see Volume One, Chapter 5, The Graph‐
ics Context, and Chapter 6, Drawing Graphics and Text.
Structures
Region is a pointer to an opaque structure type.
See AlsoXClipBox(), XCreateRegion(), XDestroyRegion(), XEmptyRegion(), XEqual‐
Region(), XIntersectRegion(), XOffsetRegion(), XPointInRegion(), XPoly‐
gonRegion(), XRectInRegion(), XShrinkRegion(), XSubtractRegion(),
XUnionRectWithRegion(), XUnionRegion(), XXorRegion().
Xlib - Regions XSetRegion()