From d13d8a046838ce3d0e2643bb5b49f2ff77d679ca Mon Sep 17 00:00:00 2001 From: Marc Horowitz Date: Wed, 1 Nov 1989 20:02:01 +0000 Subject: Initial revision --- zwgc/xshow.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 zwgc/xshow.h (limited to 'zwgc/xshow.h') diff --git a/zwgc/xshow.h b/zwgc/xshow.h new file mode 100644 index 0000000..5b21282 --- /dev/null +++ b/zwgc/xshow.h @@ -0,0 +1,54 @@ +#ifndef _ZWGC_XSHOW_H_ +#define _ZWGC_XSHOW_H_ + +#include + +typedef struct _xblock { + unsigned long fgcolor; + Font fid; + int x,y; + int x1,y1,x2,y2; /* bounds of block. used for cut and paste. */ + int strindex; + int strlen; +} xblock; + +typedef struct _xwin { + unsigned long bgcolor; + int xpos,ypos,xsize,ysize; + int numblocks; + xblock *blocks; + char *text; +} xwin; + +typedef struct _xauxblock { + int align; + XFontStruct *font; + char *str; + int len; + int width; +} xauxblock; + +typedef struct _xmode { + int bold; + int italic; + int size; + int align; + char *substyle; +} xmode; + +typedef struct _xlinedesc { + int startblock; + int numblock; + int lsize; + int csize; + int rsize; + int ascent; + int descent; +} xlinedesc; + +/* alignment values: */ +#define LEFTALIGN 0 +#define CENTERALIGN 1 +#define RIGHTALIGN 2 + +#endif /* _ZWGC_XSHOW_H_ */ -- cgit v1.2.3