00001 #ifndef x_gram_TYPE
00002 #define x_gram_TYPE
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "mit-copyright.h"
00013
00014 #include <X11/Xlib.h>
00015 #include <sys/time.h>
00016
00017 typedef struct _xblock {
00018 unsigned long fgcolor;
00019 Font fid;
00020 int x,y;
00021 int x1,y1,x2,y2;
00022 int strindex;
00023 int strlen;
00024 } xblock;
00025
00026 typedef struct _x_gram {
00027 unsigned long bgcolor;
00028 int numblocks;
00029 xblock *blocks;
00030 char *text;
00031 struct _x_gram *below,*above;
00032 Window w;
00033 struct timeval can_die;
00034 } x_gram;
00035
00036 typedef struct _xauxblock {
00037 int align;
00038 XFontStruct *font;
00039 char *str;
00040 int len;
00041 int width;
00042 } xauxblock;
00043
00044 typedef struct _xmode {
00045 int bold;
00046 int italic;
00047 int size;
00048 int align;
00049 int expcolor;
00050 unsigned long color;
00051 char *substyle;
00052 char *font;
00053 } xmode;
00054
00055 typedef struct _xlinedesc {
00056 int startblock;
00057 int numblock;
00058 int lsize;
00059 int csize;
00060 int rsize;
00061 int ascent;
00062 int descent;
00063 } xlinedesc;
00064
00065
00066 #define LEFTALIGN 0
00067 #define CENTERALIGN 1
00068 #define RIGHTALIGN 2
00069
00070 extern void x_gram_init();
00071 extern void x_gram_create();
00072 extern void x_gram_expose();
00073 extern void xshow();
00074 extern void xcut();
00075
00076 #endif