1XSetState(3X11) XLIB FUNCTIONS XSetState(3X11)
2
3
4
6 XSetState, XSetFunction, XSetPlaneMask, XSetForeground, XSetBackground
7 - GC convenience routines
8
10 int XSetState(Display *display, GC gc, unsigned long foreground,
11 unsigned int background, int function, unsigned long
12 plane_mask);
13
14 int XSetFunction(Display *display, GC gc, int function);
15
16 int XSetPlaneMask(Display *display, GC gc, unsigned long plane_mask);
17
18 int XSetForeground(Display *display, GC gc, unsigned long foreground);
19
20 int XSetBackground(Display *display, GC gc, unsigned long background);
21
23 background
24 Specifies the background you want to set for the specified
25 GC.
26
27 display Specifies the connection to the X server.
28
29 foreground
30 Specifies the foreground you want to set for the specified
31 GC.
32
33 function Specifies the function you want to set for the specified GC.
34
35 gc Specifies the GC.
36
37 plane_mask
38 Specifies the plane mask.
39
41 The XSetState function sets the foreground, background, plane mask, and
42 function components for the specified GC.
43
44 XSetState can generate BadAlloc, BadGC, and BadValue errors.
45
46 XSetFunction sets a specified value in the specified GC.
47
48 XSetFunction can generate BadAlloc, BadGC, and BadValue errors.
49
50 The XSetPlaneMask function sets the plane mask in the specified GC.
51
52 XSetPlaneMask can generate BadAlloc and BadGC errors.
53
54 The XSetForeground function sets the foreground in the specified GC.
55
56 XSetForeground can generate BadAlloc and BadGC errors.
57
58 The XSetBackground function sets the background in the specified GC.
59
60 XSetBackground can generate BadAlloc and BadGC errors.
61
63 BadAlloc The server failed to allocate the requested resource or
64 server memory.
65
66 BadGC A value for a GContext argument does not name a defined GCon‐
67 text.
68
69 BadValue Some numeric value falls outside the range of values accepted
70 by the request. Unless a specific range is specified for an
71 argument, the full range defined by the argument's type is
72 accepted. Any argument defined as a set of alternatives can
73 generate this error.
74
76 XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11), XSetClipOri‐
77 gin(3X11), XSetFillStyle(3X11), XSetFont(3X11), XSetLineAt‐
78 tributes(3X11), XSetTile(3X11)
79 Xlib - C Language X Interface
80
81
82
83X Version 11 libX11 1.0.3 XSetState(3X11)