diff options
| author | Manolo Gouy <Manolo> | 2018-05-09 14:16:35 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-05-09 14:16:35 +0000 |
| commit | 2b7aac129b05638ffd21be5c037192e797d6d074 (patch) | |
| tree | dd00e6cb7d95bbc0d5c78cb05cd0ec13fc819bce /FL/Fl_Printer.H | |
| parent | 80818999345212384326ec833d090988c633eb49 (diff) | |
Rename Fl_Paged_Device::start_job() to begin_job() and Fl_Paged_Device::start_page() to begin_page().
The new function names begin_job() and begin_page() better match end_job() and end_page() with which
they must be used by pair.
The old names start_job() and start_page() are maintained for API compatibility with FLTK 1.3.x
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Printer.H')
| -rw-r--r-- | FL/Fl_Printer.H | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H index 97ff1d19f..ca35750e9 100644 --- a/FL/Fl_Printer.H +++ b/FL/Fl_Printer.H @@ -36,7 +36,7 @@ <li>Use a series of FLTK graphics commands (e.g., font, text, lines, colors, clip, image) to compose a page appropriately shaped for printing. </ul> - In both cases, begin by start_job(), start_page(), printable_rect() and origin() calls + In both cases, begin by begin_job(), begin_page(), printable_rect() and origin() calls and finish by end_page() and end_job() calls. <p>Example of use: print a widget centered in a page \code @@ -45,8 +45,8 @@ int width, height; Fl_Widget *widget = ... // a widget we want printed Fl_Printer *printer = new Fl_Printer(); - if (printer->start_job(1) == 0) { - printer->start_page(); + if (printer->begin_job(1) == 0) { + printer->begin_page(); printer->printable_rect(&width, &height); fl_color(FL_BLACK); fl_line_style(FL_SOLID, 2); @@ -65,7 +65,7 @@ <li>Unix/Linux platforms: Unless it has been previously changed, the default paper size is A4. To change that, press the "Properties" button of the "Print" dialog window - opened by an Fl_Printer::start_job() call. This opens a "Printer Properties" window where it's + opened by an Fl_Printer::begin_job() call. This opens a "Printer Properties" window where it's possible to select the adequate paper size. Finally press the "Save" button therein to assign the chosen paper size to the chosen printer for this and all further print operations. <br>Class Fl_RGB_Image prints but loses its transparency if it has one. @@ -90,8 +90,8 @@ private: public: /** The constructor */ Fl_Printer(void); - int start_job(int pagecount, int *frompage = NULL, int *topage = NULL); - int start_page(void); + int begin_job(int pagecount, int *frompage = NULL, int *topage = NULL); + int begin_page(void); int printable_rect(int *w, int *h); void margins(int *left, int *top, int *right, int *bottom); void origin(int *x, int *y); |
