summaryrefslogtreecommitdiff
path: root/FL/Fl_Printer.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/Fl_Printer.H')
-rw-r--r--FL/Fl_Printer.H10
1 files changed, 10 insertions, 0 deletions
diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H
index b65fa3085..cfbab43c8 100644
--- a/FL/Fl_Printer.H
+++ b/FL/Fl_Printer.H
@@ -57,6 +57,16 @@
}
delete printer;
\endcode
+ <p>Recommend method to refresh GUI while printing :
+ \code
+ printer->begin_job(0);
+ ……
+ Fl_Surface_Device::push_current(Fl_Display_Device::display_device());
+ Fl::check(); // or any operation that draws to display
+ Fl_Surface_Device::pop_current();
+ ……
+ printer->end_job();
+ \endcode
<b>Platform specifics</b>
<ul>
<li>X11 and Wayland platforms: