Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

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

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XSetForeground − set the foreground pixel value in a graphics context. 

Synopsis

XSetForeground(display, gc, foreground)
Display *display;
GC gc;
unsigned long foreground;

Arguments

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

gcSpecifies the graphics context. 

foreground
Specifies the foreground pixel value you want for the specified graphics context.

Description

XSetForeground() sets the foreground component in a GC.  This pixel value is used for set bits in the source according to the fill_style.  This pixel value must be returned by BlackPixel, WhitePixel(), or a routine that allocates colors.  See Volume One, Chapter 5, The Graphics Context, for more information on the GC. 

Errors

BadAlloc
BadGC

See Also

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

Copyright O’Reilly & Assoc.  —  

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