Documentation: explain how to refresh GUI while printing
This commit is contained in:
parent
3a777eed58
commit
4d2d3cf76d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user