1: #include <X/mit-copyright.h>
2:
3: /* $Header: XGetHardColor.c,v 10.4 86/02/01 15:34:57 tony Rel $ */
4: /* Copyright Massachusetts Institute of Technology 1985 */
5:
6: #include "XlibInternal.h"
7: Status XGetHardwareColor (color)
8: register Color *color;
9: {
10: register Display *dpy;
11: register XReq *req;
12: XRep rep;
13: Status status;
14:
15: GetReq (X_GetColor, 0);
16: req->param.u[0] = color->red;
17: req->param.u[1] = color->green;
18: req->param.u[2] = color->blue;
19: status = _XReply (dpy, &rep);
20: if (status)
21: color->pixel = rep.param.u[0];
22: return (status);
23: }
Defined functions
XGetHardwareColor
defined in line
7; used 68 times
- in /usr/src/new/X/XMenu/XMenuCreate.c line
202,
215,
247,
260,
289,
302
- in /usr/src/new/X/Xlib/XCreate.c line
109-125(5)
- in /usr/src/new/X/Xlib/XCreateTerm.c line
121-137(5)
- in /usr/src/new/X/Xlib/Xlib.h line
362
- in /usr/src/new/X/bitmap/bitmap.c line
256-259(2)
- in /usr/src/new/X/comsat/comsat.c line
452-461(4)
- in /usr/src/new/X/hacks/maze/maze.c line
127-133(3)
- in /usr/src/new/X/libnest/nest.c line
66
- in /usr/src/new/X/pikapix/pikapix.c line
272,
328
- in /usr/src/new/X/uwm/Menu.c line
474-476(2),
489-491(2),
505-507(2)
- in /usr/src/new/X/xclock/xclock.c line
257,
273,
289,
305
- in /usr/src/new/X/xdvi/dv.c line
249-263(5)
- in /usr/src/new/X/xfd/xfd.c line
118,
129,
141
- in /usr/src/new/X/xgedit/gx.c line
327-333(3)
- in /usr/src/new/X/ximpv/impv.c line
355-366(4)
- in /usr/src/new/X/xload/xload.c line
304,
315,
327,
339
- in /usr/src/new/X/xsetroot/xsetroot.c line
221,
230,
239,
248
- in /usr/src/new/X/xshell/xshell.c line
310
- in /usr/src/new/X/xterm/main.c line
752,
758-763(2),
785,
794