Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

NAME

XSetState − set the foreground, background, logical function, and plane mask in a graphics context. 

Synopsis

XSetState(display, gc, foreground, background, function,

plane_mask)
Display *display;
GC gc;
unsigned long foreground, background;
int function;
unsigned long plane_mask;

Arguments

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

gcSpecifies the graphics context. 

foregroundSpecifies the foreground for the specified graphics context. 

backgroundSpecifies the background for the specified graphics context. 

functionSpecifies the logical function for the specified graphics context. 

plane_maskSpecifies the plane mask for the specified graphics context. 

Description

XSetState() sets the foreground and background pixel values, the logical function, and the plane_mask in a GC.  See XSetForeground(), XSetBackground(), XSetFunction(), and XSetPlaneMask() for what these members do and appropriate values.  See Volume One, Chapter 5, The Graphics Context, for more information. 

Errors

BadAlloc
BadGC
BadValue

See Also

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

Copyright O’Reilly & Assoc.  —  

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