1 /* ---------------------------------------------------------------------- * 2 * xpicedit.h 3 * This file is part of lincity. 4 * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2001. 5 * ---------------------------------------------------------------------- */ 6 7 /* Constants */ 8 9 /* #define VERSION "0.10" */ 10 11 #define TRUE 1 12 #define FALSE 0 13 #define WINWIDTH 640 /* default window width */ 14 #define WINHEIGHT 480 /* default window height */ 15 #define BORDERX 30 16 #define BORDERY 30 17 #define BORDER 50 /* wasp won't go closer than this to the edges */ 18 #define ALIVE_MASK (SubstructureNotifyMask | KeyPressMask | PointerMotionMask) 19 20 /* Error Codes */ 21 #define FATAL -1 22 #define WARNING -2 23 24 25 /* Type Definitions */ 26 typedef struct _disp 27 { 28 Window win; 29 Display *dpy; 30 int screen; 31 Window root; 32 char *dname; 33 34 long bg; /* colors */ 35 36 XColor bg_xcolor; 37 38 GC pixcolour_gc[256]; 39 Atom kill_atom, protocol_atom; 40 Colormap cmap; 41 } 42 disp; 43