21 |
#define output_h 1 |
#define output_h 1 |
22 |
|
|
23 |
#include "str.h" |
#include "str.h" |
24 |
|
#include "config.h" |
25 |
|
|
26 |
|
#include "chart.h" |
27 |
|
|
28 |
/* A rectangle. */ |
/* A rectangle. */ |
29 |
struct rect |
struct rect |
112 |
int w, l; /* Width, length. */ |
int w, l; /* Width, length. */ |
113 |
}; |
}; |
114 |
|
|
115 |
struct som_table; |
struct som_entity; |
116 |
struct outp_driver; |
struct outp_driver; |
117 |
|
|
118 |
/* Defines a class of output driver. */ |
/* Defines a class of output driver. */ |
138 |
int (*open_page) (struct outp_driver *); |
int (*open_page) (struct outp_driver *); |
139 |
int (*close_page) (struct outp_driver *); |
int (*close_page) (struct outp_driver *); |
140 |
|
|
141 |
/* special != 0: Used to submit tables for output. */ |
/* special != 0: Used to submit entities for output. */ |
142 |
void (*submit) (struct outp_driver *, struct som_table *); |
void (*submit) (struct outp_driver *, struct som_entity *); |
143 |
|
|
144 |
/* special != 0: Methods below need not be defined. */ |
/* special != 0: Methods below need not be defined. */ |
145 |
|
|
169 |
int (*text_get_size) (struct outp_driver *, int *em_width); |
int (*text_get_size) (struct outp_driver *, int *em_width); |
170 |
void (*text_metrics) (struct outp_driver *, struct outp_text *); |
void (*text_metrics) (struct outp_driver *, struct outp_text *); |
171 |
void (*text_draw) (struct outp_driver *, struct outp_text *); |
void (*text_draw) (struct outp_driver *, struct outp_text *); |
172 |
|
|
173 |
|
void (*initialise_chart)(struct outp_class *, struct chart *); |
174 |
|
void (*finialise_chart)(struct outp_class *, struct chart *); |
175 |
|
|
176 |
}; |
}; |
177 |
|
|
178 |
/* Device types. */ |
/* Device types. */ |