FLTK 1.3.2
|
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. | |
Static Public Attributes | |
static const char * | class_id = Fl_Printer::class_id |
A string that identifies each subclass of Fl_Device. | |
Protected Member Functions | |
Fl_PostScript_Printer (void) | |
The constructor. | |
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.
const char* Fl_PostScript_Printer::class_name | ( | ) | [inline, virtual] |
Returns the name of the class of this object.
Use of the class_name() function is discouraged because it will be removed from future FLTK versions.
The class of an instance of an Fl_Device subclass can be checked with code such as:
if ( instance->class_name() == Fl_Printer::class_id ) { ... }
Reimplemented from Fl_PostScript_File_Device.
int Fl_PostScript_Printer::start_job | ( | int | pagecount, |
int * | frompage = NULL , |
||
int * | topage = NULL |
||
) | [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.
const char * Fl_PostScript_Printer::class_id = Fl_Printer::class_id [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.