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,
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

ARGUMENTS

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

DESCRIPTION

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

DIAGNOSTICS

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

SEE ALSO

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