7.2.6 Setting the Clip Region

Xlib provides functions that you can use to set the clip-origin and the clip-mask or set the clip-mask to a list of rectangles.

To set the clip-origin of a given GC, use XSetClipOrigin().

To set the clip-mask of a given GC to the specified pixmap, use XSetClipMask().

To set the clip-mask of a given GC to the specified list of rectangles, use XSetClipRectangles().

Xlib provides a set of basic functions for performing region arithmetic. For information about these functions, see "Manipulating Regions".

Next: Setting the Arc Mode, Subwindow Mode, and Graphics Exposure

Christophe Tronche, ch@tronche.com