XSetFillStyle()XSetFillStyle()NameXSetFillStyle – set the fill style in a graphics context.
Synopsis
XSetFillStyle(display, gc, fill_style)
Display *display;
GC gc;
int fill_style;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
gc Specifies the graphics context.
fill_style
Specifies the fill style for the specified graphics context.
Possible values are FillSolid, FillTiled, FillStippled, or
FillOpaqueStippled.
DescriptionXSetFillStyle() 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. FillOpaqueStip‐
pled 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 AlsoXDefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGCon‐
textFromGC(), XSetArcMode(), XSetBackground(), XSetClipMask(), XSetCli‐
pOrigin(), XSetClipRectangles(), XSetDashes(), XSetFillRule(), XSet‐
Foreground(), XSetFunction(), XSetGraphicsExposures(), XSetLineAt‐
tributes(), XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindow‐
Mode(), XSetTSOrigin().
Xlib - Graphics Context XSetFillStyle()