XSetForeground

Syntax

XSetForeground(display, gc, foreground)
      Display *display;
      GC gc;
      unsigned long foreground;

Arguments

display Specifies the connection to the X server.
gc Specifies the GC.
foreground Specifies the foreground you want to set for the specified GC.

Description

XSetForeground() can generate BadAlloc and BadGC errors.

Diagnostics

BadAlloc The server failed to allocate the requested source or server memory.
BadGC A value for a GContext argument does not name a defined GContext.

See also

XCreateGC(), XQueryBestSize(), XSetArcMode(), XSetBackground(), XSetClipOrigin(), XSetFillStyle(), XSetFont(), XSetForeground(), XSetFunction(), XSetLineAttributes(), XSetPlaneMask(), XSetState(), XSetTile(), "Setting the Foreground, Background, Function, or Plane Mask".
Christophe Tronche, [email protected]