| 1 |
/* RCSid: $Id: span.h,v 1.2 2003/07/14 22:24:00 schorsch Exp $ */
|
| 2 |
/*
|
| 3 |
* Structures for line segment output to dot matrix printers
|
| 4 |
*/
|
| 5 |
#ifndef _RAD_SPAN_H_
|
| 6 |
#define _RAD_SPAN_H_
|
| 7 |
|
| 8 |
#ifdef __cplusplus
|
| 9 |
extern "C" {
|
| 10 |
#endif
|
| 11 |
|
| 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 |
|
| 33 |
#ifdef __cplusplus
|
| 34 |
}
|
| 35 |
#endif
|
| 36 |
#endif /* _RAD_SPAN_H_ */
|
| 37 |
|