Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XSeState(3X) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XCreateGC(3X)

XQueryBestSize(3X)

XSetArcMode(3X)

XSetClipOrigin(3X)

XSetFillStyle(3X)

XSetFont(3X)

XSetLineAttributes(3X)

XSetTile(3X)

XSetState(3X)  —  X Version 11

NAME

XSetState, XSetFunction, XSetPlanemask, XSetForeground, XSetBackground − GC convience routines

SYNTAX

XSetState(display, gc, foreground, background, function, plane_mask)
      Display ∗display;
      GC gc;
      unsigned long foreground, background;
      int function;
      unsigned long plane_mask;

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

XSetPlaneMask(display, gc, plane_mask)
      Display ∗display;
      GC gc;
      unsigned long plane_mask;

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

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

ARGUMENTS

backgroundSpecifies the background you want to set for the specified graphics context. 

displaySpecifies the connection to the X server. 

foregroundSpecifies the foreground you want to set for the specified graphics context. 

functionSpecifies the function you want to set for the specified graphics context. 

gcSpecifies the graphics context. 

plane_maskSpecifies the plane mask. 

DESCRIPTION

The XSetState function sets the foreground, background, plane mask, and function components for the specified graphics context. .PN XSetState can generate BadGC and BadValue errors.

XSetFunction sets a specified value in the specified graphics context. .PN XSetFunction can generate BadGC and BadValue errors.

The XSetPlaneMask function sets the plane mask in the specified graphics context. .PN XSetPlaneMask can generate a BadGC error.

The XSetForeground function sets the foreground in the specified graphics context. .PN XSetForeground can generate a BadGC error.

The XSetBackground function sets the background in the specified graphics context. .PN XSetBackground can generate a BadGC error.

DIAGNOSTICS

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 generate this error. 

SEE ALSO

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

1 March 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026