12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTXSetStipple can generate BadAlloc, BadGC, BadMatch, and BadPixmap errors.To set the tile or stipple origin of a given GC, use XSetTSOrigin.XSetTSOrigin (display, gc, ts_x_origin, ts_y_origin)Display *display;GC gc;int ts_x_origin, ts_y_origin;displaygcts_x_origints_y_originSpecifies the connection to the X server.Specifies the GC.Specify the x and y coordinates of the tile and stipple origin.When graphics requests call for tiling or stippling, the parent’s origin will be interpreted relativeto whatever destination drawable is specified in the graphics request.XSetTSOrigin can generate BadAlloc and BadGC errors.7.2.5. Setting the Current FontTo set the current font of a given GC, use XSetFont.XSetFont (display, gc, font)Display *display;GC gc;Font font;displaygcfontSpecifies the connection to the X server.Specifies the GC.Specifies the font.XSetFont can generate BadAlloc, BadFont, and BadGC errors.7.2.6. Setting the Clip Region<strong>Xlib</strong> provides functions that you can use to set the clip-origin and the clip-mask or set the clipmaskto a list of rectangles.To set the clip-origin of a given GC, use XSetClipOrigin.143

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!