XSetTile(display, gc, tile)
      Display *display;
      GC gc;
      Pixmap tile;


display Specifies the connection to the X server.
gc Specifies the GC.
tile Specifies the fill tile you want to set for the specified GC.


The tile and GC must have the same depth, or a BadMatch error results.

XSetTile() can generate BadAlloc, BadGC, BadMatch, and BadPixmap errors.


BadAlloc The server failed to allocate the requested source or server memory.
BadGC A value for a GContext argument does not name a defined GContext.
BadMatch An InputOnly window is used as a Drawable.
BadMatch Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request.
BadPixmap A value for a Pixmap argument does not name a defined Pixmap.

See also

XCreateGC(), XQueryBestSize(), XSetArcMode(), XSetClipOrigin(), XSetFillStyle(), XSetFont(), XSetLineAttributes(), XSetState(), XSetStipple(), XSetTSOrigin(), "Setting the Fill Tile and Stipple".
Christophe Tronche, [email protected]