XSetClipOrigin() XSetClipOrigin()
Name
XSetClipOrigin - set the clip origin in a graphics context.
Synopsis
XSetClipOrigin(display, gc, clip_x_origin, clip_y_origin)
Display *display;
GC gc;
int clip_x_origin, clip_y_origin;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
gc Specifies the graphics context.
clip_x_origiSpecify the coordinates of the clip origin (interpreted later relative to the window drawn into with this GC).
clip_y_origin
Description
XSetClipOrigin() sets the clip_x_origin and clip_y_origin components of a GC. The clip origin controls the position of the clip_mask in
the GC, which filters which pixels are drawn in the destination of a drawing request using this GC.
For more information, see Volume One, Chapter 5, The Graphics Context.
Errors
BadAlloc
BadGC
See Also
XDefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGContextFromGC(), XSetArcMode(), XSetBackground(), XSetClipMask(), XSet-
ClipRectangles(), XSetDashes(), XSetFillRule(), XSetFillStyle(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(), XSetLineAt-
tributes(), XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindowMode(), XSetTSOrigin().
Xlib - Graphics Context XSetClipOrigin()