Documentation: explain how to refresh GUI while printing

This commit is contained in:
ManoloFLTK 2023-07-09 12:59:54 +02:00
parent 3a777eed58
commit 4d2d3cf76d

View File

@ -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: