summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-07-09 12:59:54 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-07-09 12:59:54 +0200
commit4d2d3cf76d630cffbf2dc674308692a9c0b6e6cf (patch)
tree5e67b34293fa9864cf6516796ea115c5f318b11c /FL
parent3a777eed58abd1ddd8f0b9cd5692f0084b46538c (diff)
Documentation: explain how to refresh GUI while printing
Diffstat (limited to 'FL')
-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: