32 #ifndef Fl_PostScript_H
33 #define Fl_PostScript_H
70 enum SHAPE{NONE=0, LINE, LOOP, POLYGON, POINTS};
90 unsigned char cr_,cg_,cb_;
101 int (*close_cmd_)(FILE *);
115 uchar bg_r, bg_g, bg_b;
119 void transformed_draw(
const char* s,
int n,
double x,
double y);
120 void transformed_draw(
const char* s,
double x,
double y);
121 int alpha_mask(
const uchar * data,
int w,
int h,
int D,
int LD=0);
126 void page_policy(
int p);
127 int page_policy(){
return page_policy_;};
128 void close_command(
int (*cmd)(FILE *)){close_cmd_=cmd;};
129 FILE * file() {
return output;};
133 void interpolate(
int i){interpolate_=i;};
134 int interpolate(){
return interpolate_;}
136 void page(
double pw,
double ph,
int media = 0);
137 void page(
int format);
144 void push_clip(
int x,
int y,
int w,
int h);
145 int clip_box(
int x,
int y,
int w,
int h,
int &X,
int &Y,
int &W,
int &H);
150 void line_style(
int style,
int width=0,
char* dashes=0);
152 void rect(
int x,
int y,
int w,
int h);
153 void rectf(
int x,
int y,
int w,
int h);
155 void xyline(
int x,
int y,
int x1);
156 void xyline(
int x,
int y,
int x1,
int y2);
157 void xyline(
int x,
int y,
int x1,
int y2,
int x3);
159 void yxline(
int x,
int y,
int y1);
160 void yxline(
int x,
int y,
int y1,
int x2);
161 void yxline(
int x,
int y,
int y1,
int x2,
int y3);
163 void line(
int x1,
int y1,
int x2,
int y2);
164 void line(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
166 void loop(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2);
167 void loop(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
168 void polygon(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2);
169 void polygon(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
170 void point(
int x,
int y);
176 void vertex(
double x,
double y);
177 void curve(
double x,
double y,
double x1,
double y1,
double x2,
double y2,
double x3,
double y3);
178 void circle(
double x,
double y,
double r);
179 void arc(
double x,
double y,
double r,
double start,
double a);
180 void arc(
int x,
int y,
int w,
int h,
double a1,
double a2);
181 void pie(
int x,
int y,
int w,
int h,
double a1,
double a2);
191 void draw_image(
const uchar* d,
int x,
int y,
int w,
int h,
int delta=3,
int ldelta=0);
196 void draw(
const char* s,
int n,
int x,
int y) {transformed_draw(s,n,x,y); };
198 void draw(
const char* s,
int n,
float x,
float y) {transformed_draw(s,n,x,y); };
200 void draw(
int angle,
const char *str,
int n,
int x,
int y);
201 void rtl_draw(
const char* s,
int n,
int x,
int y);
202 void font(
int face,
int size);
203 double width(
const char *,
int);
204 void text_extents(
const char *c,
int n,
int &dx,
int &dy,
int &w,
int &h);
207 void draw(
Fl_Pixmap * pxm,
int XP,
int YP,
int WP,
int HP,
int cx,
int cy);
208 void draw(
Fl_Bitmap * bitmap,
int XP,
int YP,
int WP,
int HP,
int cx,
int cy);
209 void draw(
Fl_RGB_Image * rgb,
int XP,
int YP,
int WP,
int HP,
int cx,
int cy);
233 void margins(
int *left,
int *top,
int *right,
int *bottom);
234 void origin(
int *x,
int *y);
235 void origin(
int x,
int y);
236 void scale (
float scale_x,
float scale_y = 0.);
249 #endif // Fl_PostScript_H