21#ifndef Fl_PostScript_H
22#define Fl_PostScript_H
36class Fl_PostScript_Graphics_Driver;
110 return begin_job(pagecount, format, layout);
128 return begin_job(ps_output, pagecount, format, layout);
146 static const
char *file_chooser_title;
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:1044
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition Enumerations.H:1101
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1073
declaration of class Fl_Paged_Device.
int(* Fl_PostScript_Close_Command)(FILE *)
Signature of functions FLTK may use to close FILE variables after PostScript/EPS output.
Definition Fl_PostScript.H:33
Encapsulated PostScript drawing surface.
Definition Fl_PostScript.H:172
void translate(int x, int y) FL_OVERRIDE
Translates the current graphics origin accounting for the current rotation.
void untranslate() FL_OVERRIDE
Undoes the effect of a previous translate() call.
Fl_PostScript_Graphics_Driver * driver()
Returns the PostScript driver of this drawing surface.
Definition Fl_PostScript.H:175
Fl_EPS_File_Surface(int width, int height, FILE *eps_output, Fl_Color background=FL_WHITE, Fl_PostScript_Close_Command closef=NULL)
Constructor.
FILE * file()
Returns the underlying FILE pointer.
void origin(int x, int y) FL_OVERRIDE
Sets the position of the origin of graphics in the drawable part of the drawing surface.
~Fl_EPS_File_Surface()
Destructor.
void origin(int *px, int *py) FL_OVERRIDE
Computes the coordinates of the current origin of graphics functions.
int printable_rect(int *w, int *h) FL_OVERRIDE
Computes the width and height of the drawable area of the drawing surface.
Represents page-structured drawing surfaces.
Definition Fl_Paged_Device.H:36
virtual int begin_job(int pagecount=0, int *frompage=NULL, int *topage=NULL, char **perr_message=NULL)
Begins a print job.
Definition Fl_Paged_Device.cxx:36
Page_Layout
Possible page layouts.
Definition Fl_Paged_Device.H:81
@ PORTRAIT
Portrait orientation.
Definition Fl_Paged_Device.H:82
Page_Format
Possible page formats.
Definition Fl_Paged_Device.H:45
@ A4
A4 format.
Definition Fl_Paged_Device.H:50
To send graphical output to a PostScript file.
Definition Fl_PostScript.H:78
Fl_PostScript_File_Device()
The constructor.
int start_job(FILE *ps_output, int pagecount=0, enum Fl_Paged_Device::Page_Format format=Fl_Paged_Device::A4, enum Fl_Paged_Device::Page_Layout layout=Fl_Paged_Device::PORTRAIT)
Synonym of begin_job().
Definition Fl_PostScript.H:126
~Fl_PostScript_File_Device()
The destructor.
void origin(int x, int y) FL_OVERRIDE
Sets the position of the origin of graphics in the drawable part of the drawing surface.
int begin_job(int pagecount=0, enum Fl_Paged_Device::Page_Format format=Fl_Paged_Device::A4, enum Fl_Paged_Device::Page_Layout layout=Fl_Paged_Device::PORTRAIT)
Begins the session where all graphics requests will go to a local PostScript file.
void margins(int *left, int *top, int *right, int *bottom) FL_OVERRIDE
Computes the dimensions of margins that lie between the printable page area and the full page.
int begin_job(int pagecount, int *from, int *to, char **perr_message) FL_OVERRIDE
Don't use with this class.
Fl_PostScript_Graphics_Driver * driver()
Returns the PostScript driver of this drawing surface.
Definition Fl_PostScript.H:87
void scale(float scale_x, float scale_y=0.) FL_OVERRIDE
Changes the scaling of page coordinates.
int begin_page(void) FL_OVERRIDE
Begins a new printed page.
int start_job(int pagecount=0, enum Fl_Paged_Device::Page_Format format=Fl_Paged_Device::A4, enum Fl_Paged_Device::Page_Layout layout=Fl_Paged_Device::PORTRAIT)
Synonym of begin_job().
Definition Fl_PostScript.H:108
int begin_job(FILE *ps_output, int pagecount=0, enum Fl_Paged_Device::Page_Format format=Fl_Paged_Device::A4, enum Fl_Paged_Device::Page_Layout layout=Fl_Paged_Device::PORTRAIT)
Begins the session where all graphics requests will go to FILE pointer.
void origin(int *x, int *y) FL_OVERRIDE
Computes the coordinates of the current origin of graphics functions.
int printable_rect(int *w, int *h) FL_OVERRIDE
Computes the width and height of the drawable area of the drawing surface.
Fl_Graphics_Driver * driver()
Returns the graphics driver of this drawing surface.
Definition Fl_Device.H:85
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
utility header to pull drawing functions together