Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

NAME

XSetTSOrigin − set the tile/stipple origin in a graphics context. 

Synopsis

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

Arguments

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

gcSpecifies the graphics context. 

ts_x_origin

ts_y_originSpecify the x and y coordinates of the tile/stipple origin. 

Description

XSetTSOrigin() sets the ts_x_origin and ts_y_origin components in a GC, which are measured relative to the origin of the drawable specified in the drawing request that uses the GC.  This controls the placement of the tile or the stipple pattern that patterns an area.  To tile or stipple a child so that the pattern matches the parent, you need to subtract the current position of the child window from ts_x_origin and ts_y_origin.  For more information, see Volume One, Chapter 5, The Graphics Context. 

Errors

BadAlloc
BadGC

See Also

DefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGContextFromGC(), XSetArcMode(), XSetBackground(), XSetClipMask(), XSetClipOrigin(), XSetClipRectangles(), XSetDashes(), XSetFillRule(), XSetFillStyle(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(), XSetLineAttributes(), XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindowMode(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026