summaryrefslogtreecommitdiff
path: root/FL/Fl_Gl_Printer.H
blob: 66929c570317c59957a2d26160494768ad145f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 *  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);
};