1XSetState(3)                    XLIB FUNCTIONS                    XSetState(3)
2
3
4

NAME

6       XSetState,  XSetFunction, XSetPlaneMask, XSetForeground, XSetBackground
7       - GC convenience routines
8

SYNTAX

10       int XSetState(Display *display, GC gc, unsigned  long  foreground,  un‐
11              signed long background, int function, unsigned long plane_mask);
12
13       int XSetFunction(Display *display, GC gc, int function);
14
15       int XSetPlaneMask(Display *display, GC gc, unsigned long plane_mask);
16
17       int XSetForeground(Display *display, GC gc, unsigned long foreground);
18
19       int XSetBackground(Display *display, GC gc, unsigned long background);
20

ARGUMENTS

22       background
23                 Specifies  the  background  you want to set for the specified
24                 GC.
25
26       display   Specifies the connection to the X server.
27
28       foreground
29                 Specifies the foreground you want to set  for  the  specified
30                 GC.
31
32       function  Specifies the function you want to set for the specified GC.
33
34       gc        Specifies the GC.
35
36       plane_mask
37                 Specifies the plane mask.
38

DESCRIPTION

40       The XSetState function sets the foreground, background, plane mask, and
41       function components for the specified GC.
42
43       XSetState can generate BadAlloc, BadGC, and BadValue errors.
44
45       XSetFunction sets a specified value in the specified GC.
46
47       XSetFunction can generate BadAlloc, BadGC, and BadValue errors.
48
49       The XSetPlaneMask function sets the plane mask in the specified GC.
50
51       XSetPlaneMask can generate BadAlloc and BadGC errors.
52
53       The XSetForeground function sets the foreground in the specified GC.
54
55       XSetForeground can generate BadAlloc and BadGC errors.
56
57       The XSetBackground function sets the background in the specified GC.
58
59       XSetBackground can generate BadAlloc and BadGC errors.
60

DIAGNOSTICS

62       BadAlloc  The server failed  to  allocate  the  requested  resource  or
63                 server memory.
64
65       BadGC     A value for a GContext argument does not name a defined GCon‐
66                 text.
67
68       BadValue  Some numeric value falls outside the range of values accepted
69                 by  the request.  Unless a specific range is specified for an
70                 argument, the full range defined by the  argument's  type  is
71                 accepted.   Any argument defined as a set of alternatives can
72                 generate this error.
73

SEE ALSO

75       XCreateGC(3),  XQueryBestSize(3),  XSetArcMode(3),   XSetClipOrigin(3),
76       XSetFillStyle(3), XSetFont(3), XSetLineAttributes(3), XSetTile(3)
77       Xlib - C Language X Interface
78
79
80
81X Version 11                     libX11 1.8.7                     XSetState(3)
Impressum