home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume3 / xgif / part01 / xgif.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-02-21  |  1.0 KB  |  48 lines

  1. /*
  2.  *  xgif.h  -  header file for xgif, but you probably already knew as much
  3.  */
  4.  
  5.  
  6. #define REVDATE   "Rev: 2/13/89"
  7. #define MAXEXPAND 16
  8.  
  9. /* include files */
  10. #include <stdio.h>
  11. #include <math.h>
  12. #include <ctype.h>
  13.  
  14. #include <X11/Xos.h>
  15. #include <X11/Xlib.h>
  16. #include <X11/Xutil.h>
  17.  
  18.  
  19. #ifndef MAIN
  20. #define WHERE extern
  21. #else
  22. #define WHERE
  23. #endif
  24.  
  25. typedef unsigned char byte;
  26.  
  27. #define CENTERX(f,x,str) ((x)-XTextWidth(f,str,strlen(str))/2)
  28. #define CENTERY(f,y) ((y)-((f->ascent+f->descent)/2)+f->ascent)
  29.  
  30.  
  31. /* X stuff */
  32. WHERE Display       *theDisp;
  33. WHERE int           theScreen, dispcells;
  34. WHERE Colormap      theCmap;
  35. WHERE Window        rootW, mainW;
  36. WHERE GC            theGC;
  37. WHERE unsigned long fcol,bcol;
  38. WHERE Font          mfont;
  39. WHERE XFontStruct   *mfinfo;
  40. WHERE Visual        *theVisual;
  41. WHERE XImage        *theImage, *expImage;
  42.  
  43. /* global vars */
  44. WHERE int            iWIDE,iHIGH,eWIDE,eHIGH,expand,numcols,strip,nostrip;
  45. WHERE unsigned long  cols[256];
  46. WHERE XColor         defs[256];
  47. WHERE char          *cmd;
  48.