XSetBackground

Syntax

XSetBackground(display, gc, background)
      Display *display;
      GC gc;
      unsigned long background;

Arguments

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

Description

XSetBackground() 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, ch@tronche.com