/* * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. * ALL RIGHTS RESERVED */ /* * Motif Release 1.2 */ /* $RCSfile: xgif.h,v $ $Revision: 1.3 $ $Date: 92/03/13 15:39:53 $ */ /* * xgif.h - header file for xgif, but you probably already knew as much */ #define REVDATE "Rev: 2/13/89" #define MAXEXPAND 16 /* include files */ #include #include #include #include #include #include #include #ifdef VMS #ifndef MAIN #define WHERE globalref #else #define WHERE globaldef #endif #else #ifndef MAIN #define WHERE extern #else #define WHERE #endif #endif typedef unsigned char byte; #define CENTERX(f,x,str) ((x)-XTextWidth(f,str,strlen(str))/2) #define CENTERY(f,y) ((y)-((f->ascent+f->descent)/2)+f->ascent) /* X stuff */ WHERE Display *theDisp; WHERE int theScreen, dispcells; WHERE Colormap theCmap; WHERE Window rootW, mainW; WHERE GC theGC; WHERE unsigned long fcol,bcol; WHERE Font mfont; WHERE XFontStruct *mfinfo; WHERE Visual *theVisual; WHERE XImage *theImage, *expImage; /* global vars */ WHERE int iWIDE,iHIGH,eWIDE,eHIGH,expand,numcols,strip,nostrip; #ifdef VMS WHERE unsigned long ccols[256]; #else WHERE unsigned long cols[256]; #endif WHERE XColor defs[256]; WHERE char *cmd;