37#include <FL/Fl_Pixmap.H>
38#include <FL/Fl_RGB_Image.H>
39#include <FL/Fl_Bitmap.H>
41#if !(defined(__APPLE__) || defined(WIN32))
47#if defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN)
56 friend class Fl_Printer;
60 void set_current(
void);
65 Fl_PMPrintSession printSession;
66 Fl_PMPageFormat pageFormat;
67 Fl_PMPrintSettings printSettings;
75 void absolute_printable_rect(
int *x,
int *y,
int *w,
int *h);
81 static const char *class_id;
83 int start_job(
int pagecount,
int *frompage = NULL,
int *topage = NULL);
86 void margins(
int *left,
int *top,
int *right,
int *bottom);
89 void scale (
float scale_x,
float scale_y = 0.);
101#if !(defined(__APPLE__) || defined(WIN32) )
110 friend class Fl_Printer;
115 static const char *class_id;
117 int start_job(
int pages,
int *firstpage = NULL,
int *lastpage = NULL);
156 static const char *class_id;
160 int start_job(
int pagecount,
int *frompage = NULL,
int *topage = NULL);
163 void margins(
int *left,
int *top,
int *right,
int *bottom);
164 void origin(
int *x,
int *y);
165 void origin(
int x,
int y);
166 void scale(
float scale_x,
float scale_y = 0.);
203#if defined(WIN32) || defined(__APPLE__)
declaration of class Fl_Paged_Device.
declaration of classes Fl_PostScript_Graphics_Driver, Fl_PostScript_File_Device.
A virtual class subclassed for each graphics driver FLTK uses.
Definition Fl_Device.H:110
virtual int start_page(void)
Starts a new printed page.
Definition Fl_Paged_Device.cxx:168
virtual void print_widget(Fl_Widget *widget, int delta_x=0, int delta_y=0)
Draws the widget on the printed page.
Definition Fl_Paged_Device.cxx:49
virtual int start_job(int pagecount, int *frompage=NULL, int *topage=NULL)
Starts a print job.
Definition Fl_Paged_Device.cxx:159
virtual void scale(float scale_x, float scale_y=0.)
Changes the scaling of page coordinates.
Definition Fl_Paged_Device.cxx:217
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.
Definition Fl_Paged_Device.cxx:130
virtual 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.
Definition Fl_Paged_Device.cxx:191
virtual int printable_rect(int *w, int *h)
Computes the width and height of the printable area of the page.
Definition Fl_Paged_Device.cxx:178
virtual int end_page(void)
To be called at the end of each page.
Definition Fl_Paged_Device.cxx:233
Fl_Paged_Device()
The constructor.
Definition Fl_Paged_Device.H:118
virtual void origin(int x, int y)
Sets the position in page coordinates of the origin of graphics functions.
Definition Fl_Paged_Device.cxx:204
virtual void untranslate(void)
Undoes the effect of a previous translate() call.
Definition Fl_Paged_Device.cxx:252
virtual void translate(int x, int y)
Translates the current graphics origin accounting for the current rotation.
Definition Fl_Paged_Device.cxx:247
virtual void end_job(void)
To be called at the end of a print job.
Definition Fl_Paged_Device.cxx:238
virtual void rotate(float angle)
Rotates the graphics operations relatively to paper.
Definition Fl_Paged_Device.cxx:226
Fl_PostScript_File_Device()
The constructor.
Definition Fl_PostScript.cxx:70
Print support under Unix/Linux.
Definition Fl_Printer.H:109
const char * class_name()
Returns the name of the class of this object.
Definition Fl_Printer.H:116
int start_job(int pages, int *firstpage=NULL, int *lastpage=NULL)
Starts a print job.
Fl_PostScript_Printer(void)
The constructor.
Definition Fl_Printer.H:113
OS-independent print support.
Definition Fl_Printer.H:154
static const char * property_title
[this text may be customized at run-time]
Definition Fl_Printer.H:195
static const char * dialog_to
[this text may be customized at run-time]
Definition Fl_Printer.H:189
static const char * dialog_copyNo
[this text may be customized at run-time]
Definition Fl_Printer.H:191
static const char * dialog_all
[this text may be customized at run-time]
Definition Fl_Printer.H:186
static const char * dialog_range
[this text may be customized at run-time]
Definition Fl_Printer.H:184
static const char * dialog_print_to_file
[this text may be customized at run-time]
Definition Fl_Printer.H:194
static const char * dialog_cancel_button
[this text may be customized at run-time]
Definition Fl_Printer.H:193
static const char * property_mode
[this text may be customized at run-time]
Definition Fl_Printer.H:197
static const char * dialog_from
[this text may be customized at run-time]
Definition Fl_Printer.H:188
static const char * dialog_properties
[this text may be customized at run-time]
Definition Fl_Printer.H:190
static const char * property_save
[this text may be customized at run-time]
Definition Fl_Printer.H:199
Fl_Printer(void)
The constructor.
Definition Fl_Printer.cxx:107
static const char * property_pagesize
[this text may be customized at run-time]
Definition Fl_Printer.H:196
static const char * dialog_title
[this text may be customized at run-time]
Definition Fl_Printer.H:182
static const char * dialog_pages
[this text may be customized at run-time]
Definition Fl_Printer.H:187
static const char * dialog_printer
[this text may be customized at run-time]
Definition Fl_Printer.H:183
static const char * dialog_copies
[this text may be customized at run-time]
Definition Fl_Printer.H:185
static const char * dialog_print_button
[this text may be customized at run-time]
Definition Fl_Printer.H:192
static const char * property_cancel
[this text may be customized at run-time]
Definition Fl_Printer.H:200
static const char * property_use
[this text may be customized at run-time]
Definition Fl_Printer.H:198
const char * class_name()
Returns the name of the class of this object.
Definition Fl_Printer.H:157
virtual void set_current(void)
Use this drawing surface for future graphics requests.
Definition Fl_Device.cxx:69
Fl_Graphics_Driver * driver()
Returns the graphics driver of this drawing surface.
Definition Fl_Device.H:607
Print support under MSWindows and Mac OS.
Definition Fl_Printer.H:55
const char * class_name()
Returns the name of the class of this object.
Definition Fl_Printer.H:82
~Fl_System_Printer(void)
The destructor.
void rotate(float angle)
Rotates the graphics operations relatively to paper.
int start_job(int pagecount, int *frompage=NULL, int *topage=NULL)
Starts a print job.
void untranslate(void)
Undoes the effect of a previous translate() call.
void translate(int x, int y)
Translates the current graphics origin accounting for the current rotation.
int printable_rect(int *w, int *h)
Computes the width and height of the printable area of the page.
Fl_System_Printer(void)
The constructor.
int start_page(void)
Starts a new printed page.
void scale(float scale_x, float scale_y=0.)
Changes the scaling of page coordinates.
void end_job(void)
To be called at the end of a print job.
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.
int end_page(void)
To be called at the end of each 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.
This widget produces an actual window.
Definition Fl_Window.H:58
utility header to pull drawing functions together