Domingo:
To perform display operations within an Fl_Printer::start_job()/
end_job() pair, you should, denoting Fl_Printer *myprinter your
printer object :

- save the printer's fl_gc value
- Fl_Display *mydisplay = myprinter->current_display();
mydisplay->set_current();
- perform the on-display operations
- myprinter->set_current();
fl_gc = saved value
- resume on-printer operations

This is what is done in Fl_Printer::print_window_rect() that captures
a rectangle on the display and prints it. So I'm confident it should
work.

I'll try to devise an API to simplify that, since it's a desirable
capability.



_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to