]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/zwgc/xshow.h
new upstream version
[1ts-debian.git] / zephyr / zwgc / xshow.h
1 /* This file is part of the Project Athena Zephyr Notification System.
2  * It is one of the source files comprising zwgc, the Zephyr WindowGram
3  * client.
4  *
5  *      Created by:     Marc Horowitz <marc@athena.mit.edu>
6  *
7  *      $Id: xshow.h 2091 2007-12-20 01:17:23Z kcr $
8  *
9  *      Copyright (c) 1989 by the Massachusetts Institute of Technology.
10  *      For copying and distribution information, see the file
11  *      "mit-copyright.h".
12  */
13
14
15 #include <zephyr/mit-copyright.h>
16
17 #ifndef _ZWGC_XSHOW_H_
18 #define _ZWGC_XSHOW_H_
19
20 #include <X11/Xlib.h>
21
22 typedef struct _xblock {
23    unsigned long fgcolor;
24    Font fid;
25    int x,y;
26    int x1,y1,x2,y2; /* bounds of block.  used for cut and paste. */
27    int strindex;
28    int strlen;
29 } xblock;
30
31 typedef struct _xwin {
32    unsigned long bgcolor;
33    int xpos,ypos,xsize,ysize;
34    int numblocks;
35    xblock *blocks;
36    char *text;
37 } xwin;
38
39 typedef struct _xauxblock {
40    int align;
41    XFontStruct *font;
42    char *str;
43    int len;
44    int width;
45 } xauxblock;
46
47 typedef struct _xmode {
48    int bold;
49    int italic;
50    int size;
51    int align;
52    char *substyle;
53 } xmode;
54
55 typedef struct _xlinedesc {
56    int startblock;
57    int numblock;
58    int lsize;
59    int csize;
60    int rsize;
61    int ascent;
62    int descent;
63 } xlinedesc;
64
65 /* alignment values: */
66 #define LEFTALIGN   0
67 #define CENTERALIGN 1
68 #define RIGHTALIGN  2
69
70 #endif /* _ZWGC_XSHOW_H_ */