fltk/FL/Fl_Gl_Printer.H
Albrecht Schlosser 998cc6df52 Merge of branch-1.3-Fl_Printer, with the following main changes:
(1) adding Fl_Device class (and more) for device abstraction
 (2) adding Fl_Pinter class (and more) for printing support.

Todo: Code cleanup, update dependencies, remove/replace test print window.
I'm looking into converting the test window popup in a global shortcut
that would pop up the print dialog now...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-14 18:07:24 +00:00

34 lines
881 B
C++

/*
* Fl_Gl_Printer.H
*
*/
#include <FL/Fl_Printer.H>
#include <FL/Fl_Gl_Window.H>
/**
* @brief To print Fl_Gl_Window's.
*
Because Fl_Printer::print_widget() prints only the background of Fl_Gl_Window's,
this class is to be used to print them.
*/
class Fl_Gl_Printer : public Fl_Printer {
public:
/**
@brief The constructor.
*/
Fl_Gl_Printer(void) : Fl_Printer() {}
/**
@brief Prints an Fl_Gl_Window.
*
Under MSWindows, take care to move the print dialog window(s) out of the target OpenGL window(s)
before closing them.
@param[in] glw an Fl_Gl_Window to be printed.
@param[in] delta_x Optional horizontal offset for positioning the window relatively
to the current origin of graphics functions.
@param[in] delta_y Same as above, vertically.
*/
void print_gl_window(Fl_Gl_Window *glw, int delta_x = 0, int delta_y = 0);
};