summaryrefslogtreecommitdiff
path: root/zwgc/X_gram.h
diff options
context:
space:
mode:
authorGravatar Marc Horowitz <marc@mit.edu>1989-11-01 20:02:01 +0000
committerGravatar Marc Horowitz <marc@mit.edu>1989-11-01 20:02:01 +0000
commitd13d8a046838ce3d0e2643bb5b49f2ff77d679ca (patch)
tree05737bc11e3461836ce817939b9129ed58545ac7 /zwgc/X_gram.h
parentfd994e4099ad66fb3bf26cd636ca5d5cae72da68 (diff)
Initial revision
Diffstat (limited to 'zwgc/X_gram.h')
-rw-r--r--zwgc/X_gram.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/zwgc/X_gram.h b/zwgc/X_gram.h
new file mode 100644
index 0000000..cb8d073
--- /dev/null
+++ b/zwgc/X_gram.h
@@ -0,0 +1,63 @@
+#ifndef x_gram_TYPE
+#define x_gram_TYPE
+
+#include <X11/Xlib.h>
+
+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 _x_gram {
+ unsigned long bgcolor;
+#ifdef REVSTACK
+ struct _x_gram *below,*above;
+ Window w;
+#endif
+ int numblocks;
+ xblock *blocks;
+ char *text;
+} x_gram;
+
+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
+
+extern void x_gram_init();
+extern void x_gram_create();
+extern void x_gram_expose();
+extern void xshow();
+extern void xcut();
+
+#endif