// file name: window.h // written by Ting-jen Yen // See the beginning of the file window.C for description of the usage // of this program. // #include #include #include #include void W_init(int,int); Window CreateButton(int, int, Window, char *); Window CreateCanvas(int, int, int, int, Window, long); // These are used as arguments to nearly every Xlib routine, so it saves // routine arguments to let them global. #ifdef X_MAIN #define EXTERN #else #define EXTERN extern #endif EXTERN Display *display; EXTERN Visual *visual; EXTERN Window window; EXTERN Colormap colormap; EXTERN XFontStruct *font_info1; EXTERN int screen; EXTERN GC gcx, gc_inv; EXTERN Cursor hand_cursor; EXTERN unsigned long W,B; #undef EXTERN