Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

NAME

XSetFillStyle − set the fill style in a graphics context. 

Synopsis

XSetFillStyle(display, gc, fill_style)
Display *display;
GC gc;
int fill_style;

Arguments

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

gcSpecifies the graphics context. 

fill_style
Specifies the fill style for the specified graphics context. Possible values are FillSolid, FillTiled, FillStippled, or FillOpaqueStippled. 

Description

XSetFillStyle() sets the fill_style component of a GC.  The fill_style defines the contents of the source for line, text, and fill requests.  FillSolid indicates that the pixels represented by set bits in the source are drawn in the foreground pixel value, and unset bits in the source are not drawn.  FillTiled uses the tile specified in the GC to determine the pixel values for set bits in the source.  FillOpaqueStippled specifies that bits set in the stipple are drawn in the foreground pixel value and unset bits are drawn in the background.  FillStippled draws bits set in the source and set in the stipple in the foreground color, and leaves unset bits alone.  For more information, see Volume One, Chapter 5, The Graphics Context. 

Errors

BadAlloc
BadGC
BadValue

See Also

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

Copyright O’Reilly & Assoc.  —  

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