XSetFillStyle() XSetFillStyle()
Name
XSetFillStyle - 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 Fil-
lOpaqueStippled.
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 back-
ground. 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
XDefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGContextFromGC(), XSetArcMode(), XSetBackground(), XSetClipMask(), XSetCli-
pOrigin(), XSetClipRectangles(), XSetDashes(), XSetFillRule(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(), XSetLineAt-
tributes(), XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindowMode(), XSetTSOrigin().
Xlib - Graphics Context XSetFillStyle()