1 /* ---------------------------------------------------------------------- * 2 * picedit.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 #define VERSION "0.11" 7 8 #define TRUE 1 9 #define FALSE 0 10 #define WINWIDTH 640 /* default window width */ 11 #define WINHEIGHT 480 /* default window height */ 12 #define BORDERX 30 13 #define BORDERY 30 14 #define BORDER 50 /* wasp won't go closer than this to the edges */ 15 #define ALIVE_MASK (SubstructureNotifyMask | KeyPressMask | PointerMotionMask) 16 17 /* Error Codes */ 18 #define FATAL -1 19 #define WARNING -2 20 21 22 /* Type Definitions */ 23 typedef struct _disp 24 { 25 Window win; 26 Display *dpy; 27 int screen; 28 Window root; 29 char *dname; 30 31 long bg; /* colors */ 32 33 XColor bg_xcolor; 34 35 GC pixcolour_gc[256]; 36 Atom kill_atom, protocol_atom; 37 Colormap cmap; 38 } 39 disp; 40