home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Shareware 1999 March
/
PCShareware-3-99.iso
/
IMPLE
/
DJGPP.RAR
/
DJGPP2
/
XLIB-SR0.ZIP
/
SRC
/
XLIBEMU
/
CRWINDO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-20
|
761b
|
35 lines
/* $Id: crwindo.c 1.1 1994/02/20 17:51:59 ulrich Exp $ */
/*
* X library function XCreateSimpleWindow.
*/
#include "Xlibemu.h"
Window
XCreateSimpleWindow (Display* dpy,
Window parent,
int x,
int y,
unsigned int width,
unsigned int height,
unsigned int border_width,
unsigned long border,
unsigned long background)
{
int screen;
XSetWindowAttributes xswa;
if (dpy == None) {
return None;
}
screen = DefaultScreen (dpy);
xswa.border_pixel = border;
xswa.background_pixel = background;
return XCreateWindow (dpy, parent, x, y, width, height, border_width,
DisplayPlanes (dpy, screen),
InputOutput,
DefaultVisual (dpy, screen),
CWBorderPixel | CWBackPixel, &xswa);
}