]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/zwgc/xmark.h
r4264@bucket (orig r254): kcr | 2008-01-20 22:11:44 -0500
[1ts-debian.git] / zephyr / zwgc / xmark.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$
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 _XMARK_H_
18 #define _XMARK_H_
19
20 #define XMARK_START_BOUND 0
21 #define XMARK_END_BOUND 1
22 #define XMARK_TEMP_BOUND 2
23
24 #define XMARK_REDRAW_CURRENT 1
25 #define XMARK_REDRAW_OLD 2
26 #define XMARK_REDRAW_START 3
27 #define XMARK_REDRAW_END 4
28
29 #define xmarkStart(gram,x,y) xmarkSetBound(gram,x,y,XMARK_START_BOUND)
30 #define xmarkEnd(gram,x,y) xmarkSetBound(gram,x,y,XMARK_END_BOUND)
31
32 extern int markblock[];
33 extern int markchar[];
34 extern int markpixel[];
35 extern x_gram *markgram;
36
37 #define STARTBLOCK (markblock[XMARK_START_BOUND])
38 #define ENDBLOCK   (markblock[XMARK_END_BOUND])
39 #define STARTCHAR  (markchar[XMARK_START_BOUND])
40 #define ENDCHAR    (markchar[XMARK_END_BOUND])
41 #define STARTPIXEL (markpixel[XMARK_START_BOUND])
42 #define ENDPIXEL   (markpixel[XMARK_END_BOUND])
43
44 extern void xmarkSetBound(x_gram *, int, int, int);
45 extern int xmarkSecond(void);
46 extern void xmarkRedraw(Display *, Window, x_gram *, int);
47 extern void xmarkClear(void);
48 extern int xmarkExtendFromFirst(x_gram *, int, int);
49 extern int xmarkExtendFromNearest(x_gram *, int, int);
50 extern char *xmarkGetText(void);
51
52 #endif