XSetTSOrigin

Syntax

XSetTSOrigin(display, gc, ts_x_origin, ts_y_origin)
      Display *display;
      GC gc;
      int ts_x_origin, ts_y_origin;

Arguments

display Specifies the connection to the X server.
gc Specifies the GC.
ts_x_origin
ts_y_origin
Specify the x and y coordinates of the tile and stipple origin.

Description

When graphics requests call for tiling or stippling, the parent's origin will be interpreted relative to whatever destination drawable is specified in the graphics request.

XSetTSOrigin() can generate BadAlloc and BadGC error.

Diagnostics

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.

See also

XCreateGC(), XQueryBestSize(), XSetArcMode(), XSetClipOrigin(), XSetFillStyle(), XSetFont(), XSetLineAttributes(), XSetState(), XSetStipple(), XSetTile(), "Setting the Fill Tile and Stipple".
Christophe Tronche, ch@tronche.com