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 /src/drivers/Cocoa | |
| 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 'src/drivers/Cocoa')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm index 25d209e5d..d9a43b1f2 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm +++ b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm @@ -16,7 +16,7 @@ // http://www.fltk.org/str.php // -#include <FL/Fl_Printer.H> +#include <FL/Fl_Paged_Device.H> #include <FL/Fl_Window_Driver.H> #include <FL/Fl_Screen_Driver.H> #include "../Quartz/Fl_Quartz_Graphics_Driver.H" @@ -56,8 +56,8 @@ private: PMPageFormat pageFormat; PMPrintSettings printSettings; Fl_Cocoa_Printer_Driver(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); @@ -91,7 +91,7 @@ Fl_Cocoa_Printer_Driver::~Fl_Cocoa_Printer_Driver(void) { } -int Fl_Cocoa_Printer_Driver::start_job (int pagecount, int *frompage, int *topage) +int Fl_Cocoa_Printer_Driver::begin_job (int pagecount, int *frompage, int *topage) //printing using a Quartz graphics context //returns 0 iff OK { @@ -277,7 +277,7 @@ void Fl_Cocoa_Printer_Driver::untranslate(void) CGContextRestoreGState(gc); } -int Fl_Cocoa_Printer_Driver::start_page (void) +int Fl_Cocoa_Printer_Driver::begin_page (void) { OSStatus status = PMSessionBeginPageNoDialog(printSession, pageFormat, NULL); CGContextRef gc; |
