/* xcheckers.h X setup, image load, font, main routine */ /* * xcheckers: a point and click checkerboard * (C): 1999, 2000 Peter Chiocchetti */ #define board_width (width * cells) #define board_height (height * cells) Display *dpy; /* X Server to connect */ int screen; /* Monitor on X Server */ Window win; /* The applications main window */ GC gc; /* Graphics context data structure */ XFontStruct *font; /* Font for numbering and status line */ Pixmap scene; /* The board picture */ int width, height; /* Width and height of the nodes */ int cells; /* Number of nodes per row and line */ int status_height; /* height of the status line */ Atom wm_protocols; Atom wm_delete_window;