XSetClipOrigin

Syntax

XSetClipOrigin(display, gc, clip_x_origin, clip_y_origin)
      Display *display;
      GC gc;
      int clip_x_origin, clip_y_origin;

Arguments

display Specifies the connection to the X server.
gc Specifies the GC.
clip_x_origin
clip_y_origin
Specify the x and y coordinates of the clip-mask origin.

Description

The clip-mask origin is interpreted relative to the origin of whatever destination drawable is specified in the graphics request.

XSetClipOrigin() can generate BadAlloc and BadGC errors.

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(), XDrawRectangle(), XQueryBestSize(), XSetArcMode(), XSetClipMask(), XSetClipRectangles(), XSetFillStyle(), XSetFont(), XSetLineAttributes(), XSetState(), XSetTile(), "Setting the Clip Region".
Christophe Tronche, [email protected]