1 |
schorsch |
1.2 |
/* RCSid: $Id: span.h,v 1.1 2003/02/22 02:07:26 greg Exp $ */ |
2 |
greg |
1.1 |
/* |
3 |
|
|
* Structures for line segment output to dot matrix printers |
4 |
|
|
*/ |
5 |
schorsch |
1.2 |
#ifndef _RAD_SPAN_H_ |
6 |
|
|
#define _RAD_SPAN_H_ |
7 |
|
|
|
8 |
|
|
#ifdef __cplusplus |
9 |
|
|
extern "C" { |
10 |
|
|
#endif |
11 |
greg |
1.1 |
|
12 |
|
|
|
13 |
|
|
#define MAXSPAN 5120 /* maximum span size in bytes */ |
14 |
|
|
|
15 |
|
|
struct span { /* line of printer output */ |
16 |
|
|
int xleft, xright, ybot, ytop; |
17 |
|
|
char cols[MAXSPAN]; |
18 |
|
|
char tcols[MAXSPAN]; |
19 |
|
|
}; |
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
extern int linwidt, linhite, /* line size */ |
25 |
|
|
nrows; /* # of rows */ |
26 |
|
|
|
27 |
|
|
extern int minwidth; /* minimum line width */ |
28 |
|
|
|
29 |
|
|
extern struct span outspan; /* output span */ |
30 |
|
|
|
31 |
|
|
extern int spanmin, spanmax; /* current span dimensions */ |
32 |
schorsch |
1.2 |
|
33 |
|
|
#ifdef __cplusplus |
34 |
|
|
} |
35 |
|
|
#endif |
36 |
|
|
#endif /* _RAD_SPAN_H_ */ |
37 |
|
|
|