home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1999 March / PCShareware-3-99.iso / IMPLE / DJGPP.RAR / DJGPP2 / XLIB-SR0.ZIP / SRC / XLIBEMU / GETWATT.C < prev    next >
C/C++ Source or Header  |  1994-02-20  |  1KB  |  37 lines

  1. /* $Id: getwatt.c 1.1 1994/02/20 17:48:48 ulrich Exp $ */
  2. /*
  3.  * X library function XGetWindowAttributes.
  4.  */
  5. #include "Xlibemu.h"
  6.  
  7. Status
  8. XGetWindowAttributes (register Display *dpy,
  9.               Window w,
  10.               XWindowAttributes *attr)
  11. {
  12.   attr->x = w->x;
  13.   attr->y = w->y;
  14.   attr->width = w->width;
  15.   attr->height = w->height;
  16.   attr->border_width = w->border_width;
  17.   attr->depth = w->depth;
  18.   attr->visual = w->visual;
  19.   attr->root = DefaultRootWindow (dpy);
  20.   attr->class = w->class;
  21.   attr->bit_gravity = w->bit_gravity;
  22.   attr->win_gravity = w->win_gravity;
  23.   attr->backing_store = NotUseful /* w->backing_store */;
  24.   attr->backing_planes = 0 /* w->backing_planes */;
  25.   attr->backing_pixel = 0 /* w->backing_pixel */;
  26.   attr->save_under = w->save_under;
  27.   attr->colormap = w->colormap;
  28.   attr->map_installed = True;
  29.   attr->map_state = (w->mapped) ? IsViewable : IsUnmapped;
  30.   attr->all_event_masks = w->event_mask;
  31.   attr->your_event_mask = w->event_masks[ConnectionNumber(dpy)];
  32.   attr->do_not_propagate_mask = w->do_not_propagate_mask;
  33.   attr->override_redirect = w->override_redirect;
  34.   attr->screen = &dpy->screens[0];
  35.   return 1;
  36. }
  37.