23 #ifndef Fl_PostScript_H 24 #define Fl_PostScript_H 64 static const char *class_id;
68 enum SHAPE{NONE=0, LINE, LOOP, POLYGON, POINTS};
88 unsigned char cr_,cg_,cb_;
113 uchar bg_r, bg_g, bg_b;
117 void transformed_draw(
const char* s,
int n,
double x,
double y);
118 void transformed_draw(
const char* s,
double x,
double y);
119 int alpha_mask(
const uchar * data,
int w,
int h,
int D,
int LD=0);
124 void page_policy(
int p);
125 int page_policy(){
return page_policy_;};
127 FILE * file() {
return output;};
131 void interpolate(
int i){interpolate_=i;};
132 int interpolate(){
return interpolate_;}
134 void page(
double pw,
double ph,
int media = 0);
135 void page(
int format);
142 void push_clip(
int x,
int y,
int w,
int h);
143 int clip_box(
int x,
int y,
int w,
int h,
int &X,
int &Y,
int &W,
int &H);
144 int not_clipped(
int x,
int y,
int w,
int h);
148 void line_style(
int style,
int width=0,
char* dashes=0);
150 void rect(
int x,
int y,
int w,
int h);
151 void rectf(
int x,
int y,
int w,
int h);
153 void xyline(
int x,
int y,
int x1);
154 void xyline(
int x,
int y,
int x1,
int y2);
155 void xyline(
int x,
int y,
int x1,
int y2,
int x3);
157 void yxline(
int x,
int y,
int y1);
158 void yxline(
int x,
int y,
int y1,
int x2);
159 void yxline(
int x,
int y,
int y1,
int x2,
int y3);
161 void line(
int x1,
int y1,
int x2,
int y2);
162 void line(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
164 void loop(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2);
165 void loop(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
166 void polygon(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2);
167 void polygon(
int x0,
int y0,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
168 void point(
int x,
int y);
173 void begin_polygon();
174 void vertex(
double x,
double y);
175 void curve(
double x,
double y,
double x1,
double y1,
double x2,
double y2,
double x3,
double y3);
176 void circle(
double x,
double y,
double r);
177 void arc(
double x,
double y,
double r,
double start,
double a);
178 void arc(
int x,
int y,
int w,
int h,
double a1,
double a2);
179 void pie(
int x,
int y,
int w,
int h,
double a1,
double a2);
187 void transformed_vertex(
double x,
double y);
189 void draw_image(
const uchar* d,
int x,
int y,
int w,
int h,
int delta=3,
int ldelta=0);
190 void draw_image_mono(
const uchar* d,
int x,
int y,
int w,
int h,
int delta=1,
int ld=0);
191 void draw_image(
Fl_Draw_Image_Cb call,
void* data,
int x,
int y,
int w,
int h,
int delta=3);
192 void draw_image_mono(
Fl_Draw_Image_Cb call,
void* data,
int x,
int y,
int w,
int h,
int delta=1);
194 void draw(
const char* s,
int nBytes,
int x,
int y) {transformed_draw(s,nBytes,x,y); };
196 void draw(
const char* s,
int nBytes,
float x,
float y) {transformed_draw(s,nBytes,x,y); };
198 void draw(
int angle,
const char *str,
int n,
int x,
int y);
199 void rtl_draw(
const char* s,
int n,
int x,
int y);
200 void font(
int face,
int size);
201 double width(
const char *,
int);
202 double width(
unsigned int u);
203 void text_extents(
const char *c,
int n,
int &dx,
int &dy,
int &w,
int &h);
206 void draw(
Fl_Pixmap * pxm,
int XP,
int YP,
int WP,
int HP,
int cx,
int cy);
207 void draw(
Fl_Bitmap * bitmap,
int XP,
int YP,
int WP,
int HP,
int cx,
int cy);
208 void draw(
Fl_RGB_Image * rgb,
int XP,
int YP,
int WP,
int HP,
int cx,
int cy);
209 int clocale_printf(
const char *format, ...);
223 static const char *class_id;
227 int start_job(
int pagecount,
int* from,
int* to);
232 int start_page (
void);
233 int printable_rect(
int *w,
int *h);
234 void margins(
int *left,
int *top,
int *right,
int *bottom);
235 void origin(
int *x,
int *y);
236 void origin(
int x,
int y);
237 void scale (
float scale_x,
float scale_y = 0.);
238 void rotate(
float angle);
239 void translate(
int x,
int y);
240 void untranslate(
void);
250 #endif // Fl_PostScript_H const char * class_name()
Returns the name of the class of this object.
Definition: Fl_PostScript.H:224
Represents page-structured drawing surfaces.
Definition: Fl_Paged_Device.H:38
The Fl_Pixmap class supports caching and drawing of colormap (pixmap) images, including transparency...
Definition: Fl_Pixmap.H:41
int( Fl_PostScript_Close_Command)(FILE *)
PostScript graphical backend.
Definition: Fl_PostScript.H:59
void draw(const char *s, int nBytes, int x, int y)
see fl_draw(const char *str, int n, int x, int y).
Definition: Fl_PostScript.H:194
virtual void set_current(void)
Use this drawing surface for future graphics requests.
Definition: Fl_Device.cxx:40
Page_Layout
Possible page layouts.
Definition: Fl_Paged_Device.H:81
The Fl_RGB_Image class supports caching and drawing of full-color images with 1 to 4 channels of colo...
Definition: Fl_Image.H:183
static const char * file_chooser_title
Label of the PostScript file chooser window.
Definition: Fl_PostScript.H:247
const char * class_name()
Returns the name of the class of this object.
Definition: Fl_PostScript.H:65
void gap()
see fl_gap().
Definition: Fl_PostScript.H:185
Definition: Fl_PostScript.H:62
declaration of class Fl_Paged_Device.
void begin_complex_polygon()
see fl_begin_complex_polygon().
Definition: Fl_PostScript.H:184
Page_Format
Possible page formats.
Definition: Fl_Paged_Device.H:45
utility header to pull drawing functions together
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition: Enumerations.H:796
void(* Fl_Draw_Image_Cb)(void *data, int x, int y, int w, uchar *buf)
signature of image generation callback function.
Definition: Fl_Device.H:49
A virtual class subclassed for each graphics driver FLTK uses.
Definition: Fl_Device.H:103
The Fl_Bitmap class supports caching and drawing of mono-color (bitmap) images.
Definition: Fl_Bitmap.H:33
A4 format.
Definition: Fl_Paged_Device.H:50
void end_complex_polygon()
see fl_end_complex_polygon().
Definition: Fl_PostScript.H:186
To send graphical output to a PostScript file.
Definition: Fl_PostScript.H:216
Portrait orientation.
Definition: Fl_Paged_Device.H:82
unsigned char uchar
unsigned char
Definition: fl_types.h:30