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: }
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 864
Valid CSS Valid XHTML 1.0 Strict