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 >
Wrap
C/C++ Source or Header
|
1994-02-20
|
1KB
|
37 lines
/* $Id: getwatt.c 1.1 1994/02/20 17:48:48 ulrich Exp $ */
/*
* X library function XGetWindowAttributes.
*/
#include "Xlibemu.h"
Status
XGetWindowAttributes (register Display *dpy,
Window w,
XWindowAttributes *attr)
{
attr->x = w->x;
attr->y = w->y;
attr->width = w->width;
attr->height = w->height;
attr->border_width = w->border_width;
attr->depth = w->depth;
attr->visual = w->visual;
attr->root = DefaultRootWindow (dpy);
attr->class = w->class;
attr->bit_gravity = w->bit_gravity;
attr->win_gravity = w->win_gravity;
attr->backing_store = NotUseful /* w->backing_store */;
attr->backing_planes = 0 /* w->backing_planes */;
attr->backing_pixel = 0 /* w->backing_pixel */;
attr->save_under = w->save_under;
attr->colormap = w->colormap;
attr->map_installed = True;
attr->map_state = (w->mapped) ? IsViewable : IsUnmapped;
attr->all_event_masks = w->event_mask;
attr->your_event_mask = w->event_masks[ConnectionNumber(dpy)];
attr->do_not_propagate_mask = w->do_not_propagate_mask;
attr->override_redirect = w->override_redirect;
attr->screen = &dpy->screens[0];
return 1;
}