summaryrefslogtreecommitdiff
path: root/FL/Fl_Printer.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-04-22 15:59:22 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-04-22 16:01:33 +0200
commit2878fa95ab4e30046472a8c1f7576aa6a39f8ba5 (patch)
treeb37fec88aee27a8e1095b649f10017d44ef69d60 /FL/Fl_Printer.H
parentb38317b8a5c5aa6b37d4eb559b094da4e31d9a44 (diff)
Add optional argument to Fl_Printer::begin_job() to inform caller when an error occurs.
This solves an issue raised in fltk.general : Fl_Printer errors - how can I interpret them? https://www.fltk.org/newsgroups.php?s38419+gfltk.general+v38427
Diffstat (limited to 'FL/Fl_Printer.H')
-rw-r--r--FL/Fl_Printer.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H
index 977f75762..43b05c1be 100644
--- a/FL/Fl_Printer.H
+++ b/FL/Fl_Printer.H
@@ -93,7 +93,7 @@ private:
public:
/** The constructor */
Fl_Printer(void);
- int begin_job(int pagecount = 0, int *frompage = NULL, int *topage = NULL);
+ int begin_job(int pagecount = 0, int *frompage = NULL, int *topage = NULL, char **perr_message = NULL);
int begin_page(void);
int printable_rect(int *w, int *h);
void margins(int *left, int *top, int *right, int *bottom);