MirOS Manual: XSetBackground(3), XSetForeground(3), XSetFunction(3), XSetPlaneMask(3), XSetState(3)

XSetState(3X11)          XLIB FUNCTIONS           XSetState(3X11)


     XSetState, XSetFunction, XSetPlaneMask, XSetForeground,
     XSetBackground - GC convenience routines


     int XSetState(Display *display, GC gc, unsigned long fore-
          ground, unsigned int background, int function, unsigned
          long plane_mask);

     int XSetFunction(Display *display, GC gc, int function);

     int XSetPlaneMask(Display *display, GC gc, unsigned long

     int XSetForeground(Display *display, GC gc, unsigned long

     int XSetBackground(Display *display, GC gc, unsigned long


               Specifies the background you want to set for the
               specified GC.

     display   Specifies the connection to the X server.

               Specifies the foreground you want to set for the
               specified GC.

     function  Specifies the function you want to set for the
               specified GC.

     gc        Specifies the GC.

               Specifies the plane mask.


     The XSetState function sets the foreground, background,
     plane mask, and function components for the specified GC.

     XSetState can generate BadAlloc, BadGC, and BadValue errors.

     XSetFunction sets a specified value in the specified GC.

     XSetFunction can generate BadAlloc, BadGC, and BadValue

     The XSetPlaneMask function sets the plane mask in the speci-
     fied GC.

XFree86                   Version 4.5.0                         1

XSetState(3X11)          XLIB FUNCTIONS           XSetState(3X11)

     XSetPlaneMask can generate BadAlloc and BadGC errors.

     The XSetForeground function sets the foreground in the
     specified GC.

     XSetForeground can generate BadAlloc and BadGC errors.

     The XSetBackground function sets the background in the
     specified GC.

     XSetBackground can generate BadAlloc and BadGC errors.


     BadAlloc  The server failed to allocate the requested
               resource or server memory.

     BadGC     A value for a GContext argument does not name a
               defined GContext.

     BadValue  Some numeric value falls outside the range of
               values accepted by the request. Unless a specific
               range is specified for an argument, the full range
               defined by the argument's type is accepted.  Any
               argument defined as a set of alternatives can gen-
               erate this error.


     XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11),
     XSetClipOrigin(3X11), XSetFillStyle(3X11), XSetFont(3X11),
     XSetLineAttributes(3X11), XSetTile(3X11)
     Xlib - C Language X Interface

XFree86                   Version 4.5.0                         2

Generated on 2017-04-03 16:26:17 by $MirOS: src/scripts/roff2htm,v 1.88 2017/01/29 00:51:06 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002–2017 The MirOS Project, Germany.
This product includes material provided by mirabilos.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.