|
|
1.1 root 1: #include <X/mit-copyright.h>
2:
3: /* $Header: XCreateWindow.c,v 10.4 86/02/01 15:31:38 tony Rel $ */
4: /* Copyright Massachusetts Institute of Technology 1985 */
5:
6: #include "XlibInternal.h"
7: Window XCreateWindow (parent, x, y, width, height, bdr_width, border, bgnd)
8: int x, y, width, height, bdr_width;
9: Window parent;
10: Pixmap border, bgnd;
11: {
12: register Display *dpy;
13: register XReq *req;
14: XRep rep;
15:
16: GetReq(X_CreateWindow, parent);
17: req->param.s[0] = height;
18: req->param.s[1] = width;
19: req->param.s[2] = x;
20: req->param.s[3] = y;
21: req->param.l[2] = border;
22: req->param.l[3] = bgnd;
23: req->func = bdr_width;
24: if (!_XReply(dpy, &rep))
25: return(NULL);
26: return (rep.param.l[0]);
27: }
28:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.