Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XSetClipOri(3x) — HP-UX ANSI C A.10.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

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

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

gcSpecifies the graphics context. 

clip_x_origin

clip_y_origin
Specify the coordinates of the clip origin (interpreted later relative to the window drawn into with this GC).

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

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

Copyright O’Reilly & Assoc.  —  

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