Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XSetBackgro(3x) — HP-UX 9.10

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XSetBackground − set the background pixel value in a graphics context. 

Synopsis

XSetBackground(display, gc, background)
Display *display;
GC gc;
unsigned long background;

Arguments

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

gcSpecifies the graphics context. 

background
Specifies the background component of the GC. 

Description

XSetBackground() sets the background pixel value component of a GC.  Note that this is different from the background of a window, which can be set with either XSetWindowBackground() or XSetWindowBackgroundPixmap().  The specified pixel value must be returned by BlackPixel(), WhitePixel(), or one of the routines that allocate colors. 

Errors

BadAlloc
BadGC

See Also

DefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGContextFromGC(), XSetArcMode(), XSetClipMask(), XSetClipOrigin(), 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