|
FLTK 1.3.0
|
Print support under Unix/Linux. More...
#include <Fl_Printer.H>
Public Member Functions | |
| const char * | class_name () |
| Returns the name of the class of this object. | |
| int | start_job (int pages, int *firstpage=NULL, int *lastpage=NULL) |
| Starts a print job. | |
Public Member Functions inherited from Fl_PostScript_File_Device | |
| void | end_job (void) |
| To be called at the end of a print job. | |
| int | end_page (void) |
| To be called at the end of each page. | |
| Fl_PostScript_File_Device () | |
| The constructor. | |
| void | margins (int *left, int *top, int *right, int *bottom) |
| Computes the dimensions of margins that lie between the printable page area and the full page. | |
| void | origin (int *x, int *y) |
| Computes the page coordinates of the current origin of graphics functions. | |
| void | origin (int x, int y) |
| Sets the position in page coordinates of the origin of graphics functions. | |
| int | printable_rect (int *w, int *h) |
| Computes the width and height of the printable area of the page. | |
| void | rotate (float angle) |
| Rotates the graphics operations relatively to paper. | |
| void | scale (float scale_x, float scale_y=0.) |
| Changes the scaling of page coordinates. | |
| int | start_job (int pagecount, 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. | |
| int | start_job (FILE *ps_output, int pagecount, 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. | |
| int | start_page (void) |
| Starts a new printed page. | |
| void | translate (int x, int y) |
| Translates the current graphics origin accounting for the current rotation. | |
| void | untranslate (void) |
| Undoes the effect of a previous translate() call. | |
| ~Fl_PostScript_File_Device () | |
| The destructor. | |
Public Member Functions inherited from Fl_Paged_Device | |
| virtual void | print_widget (Fl_Widget *widget, int delta_x=0, int delta_y=0) |
| Draws the widget on the printed page. | |
| void | print_window (Fl_Window *win, int x_offset=0, int y_offset=0) |
| Prints a window with its title bar and frame if any. | |
| virtual void | print_window_part (Fl_Window *win, int x, int y, int w, int h, int delta_x=0, int delta_y=0) |
| Prints a rectangular part of an on-screen window. | |
Public Member Functions inherited from Fl_Surface_Device | |
| void | driver (Fl_Graphics_Driver *graphics_driver) |
| Sets the graphics driver of this drawing surface. | |
| virtual void | set_current (void) |
| Use this drawing surface for future graphics requests. | |
| virtual | ~Fl_Surface_Device () |
| The destructor. | |
Public Member Functions inherited from Fl_Device | |
| virtual | ~Fl_Device () |
| Virtual destructor. | |
Static Public Attributes | |
| static const char * | class_id = Fl_Printer::class_id |
| A string that identifies each subclass of Fl_Device. | |
Static Public Attributes inherited from Fl_PostScript_File_Device | |
| static const char * | file_chooser_title = "Select a .ps file" |
| Label of the PostScript file chooser window. | |
Static Public Attributes inherited from Fl_Paged_Device | |
| static const page_format | page_formats [NO_PAGE_FORMATS] |
| width, height and name of all elements of the enum Page_Format. | |
Static Public Attributes inherited from Fl_Surface_Device | |
Static Public Attributes inherited from Fl_Device | |
Protected Member Functions | |
| Fl_PostScript_Printer (void) | |
| The constructor. | |
Protected Member Functions inherited from Fl_PostScript_File_Device | |
| Fl_PostScript_Graphics_Driver * | driver () |
| Returns the PostScript driver of this drawing surface. | |
Protected Member Functions inherited from Fl_Paged_Device | |
| Fl_Paged_Device () | |
| The constructor. | |
| virtual | ~Fl_Paged_Device () |
| The destructor. | |
Protected Member Functions inherited from Fl_Surface_Device | |
| Fl_Surface_Device (Fl_Graphics_Driver *graphics_driver) | |
| Constructor that sets the graphics driver to use for the created surface. | |
Friends | |
| class | Fl_Printer |
Print support under Unix/Linux.
Class Fl_PostScript_Printer is implemented only on the Unix/Linux platform. It has no public constructor. Use Fl_Printer instead that is cross-platform and has the same API.
|
inlinevirtual |
Returns the name of the class of this object.
The class of an instance of an Fl_Device subclass can be checked with code such as:
Reimplemented from Fl_PostScript_File_Device.
|
virtual |
Starts a print job.
| [in] | pagecount | the total number of pages of the job |
| [out] | frompage | if non-null, *frompage is set to the first page the user wants printed |
| [out] | topage | if non-null, *topage is set to the last page the user wants printed |
Reimplemented from Fl_Paged_Device.
|
static |
A string that identifies each subclass of Fl_Device.
Function class_name() applied to a device of this class returns this string.
Reimplemented from Fl_PostScript_File_Device.