| 1 | /* |
| 2 | |
| 3 | Copyright 1993 by Davor Matic |
| 4 | |
| 5 | Permission to use, copy, modify, distribute, and sell this software |
| 6 | and its documentation for any purpose is hereby granted without fee, |
| 7 | provided that the above copyright notice appear in all copies and that |
| 8 | both that copyright notice and this permission notice appear in |
| 9 | supporting documentation. Davor Matic makes no representations about |
| 10 | the suitability of this software for any purpose. It is provided "as |
| 11 | is" without express or implied warranty. |
| 12 | |
| 13 | */ |
| 14 | |
| 15 | #ifndef XNESTCOMMON_H |
| 16 | #define XNESTCOMMON_H |
| 17 | |
| 18 | #define UNDEFINED -1 |
| 19 | |
| 20 | #define MAXDEPTH 32 |
| 21 | #define MAXVISUALSPERDEPTH 256 |
| 22 | |
| 23 | extern Display *xnestDisplay; |
| 24 | extern XVisualInfo *xnestVisuals; |
| 25 | extern int xnestNumVisuals; |
| 26 | extern int xnestDefaultVisualIndex; |
| 27 | extern Colormap *xnestDefaultColormaps; |
| 28 | extern int xnestNumDefaultClormaps; |
| 29 | extern int *xnestDepths; |
| 30 | extern int xnestNumDepths; |
| 31 | extern XPixmapFormatValues *xnestPixmapFormats; |
| 32 | extern int xnestNumPixmapFormats; |
| 33 | extern Pixel xnestBlackPixel; |
| 34 | extern Pixel xnestWhitePixel; |
| 35 | extern Drawable xnestDefaultDrawables[MAXDEPTH + 1]; |
| 36 | extern Pixmap xnestIconBitmap; |
| 37 | extern Pixmap xnestScreenSaverPixmap; |
| 38 | extern XlibGC xnestBitmapGC; |
| 39 | extern unsigned long xnestEventMask; |
| 40 | |
| 41 | void xnestOpenDisplay(int argc, char *argv[]); |
| 42 | void xnestCloseDisplay(void); |
| 43 | |
| 44 | #endif /* XNESTCOMMON_H */ |