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
5 * Created by: Marc Horowitz <marc@athena.mit.edu>
9 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
10 * For copying and distribution information, see the file
15 #include <zephyr/mit-copyright.h>
20 #define XMARK_START_BOUND 0
21 #define XMARK_END_BOUND 1
22 #define XMARK_TEMP_BOUND 2
24 #define XMARK_REDRAW_CURRENT 1
25 #define XMARK_REDRAW_OLD 2
26 #define XMARK_REDRAW_START 3
27 #define XMARK_REDRAW_END 4
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)
32 extern int markblock[];
33 extern int markchar[];
34 extern int markpixel[];
35 extern x_gram *markgram;
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])
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);