diff options
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Device.H | 12 | ||||
| -rw-r--r-- | FL/Fl_PostScript.H | 9 | ||||
| -rw-r--r-- | FL/Fl_Printer.H | 6 |
3 files changed, 10 insertions, 17 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 8accddeeb..39a0d4895 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -94,16 +94,8 @@ public: * The protected virtual methods of this class are those that a graphics driver should implement to support all of FLTK drawing functions. - <br> The preferred FLTK API for drawing operations is the function collection of the - \ref fl_drawings and \ref fl_attributes modules. - <br> Alternatively, methods of the Fl_Graphics_Driver class can be called - using the global variable Fl_Graphics_Driver * \ref fl_graphics_driver that points at all time to - the single driver (an instance of an Fl_Graphics_Driver subclass) that's currently receiving graphics - requests. For example: - \code fl_graphics_driver->rect(x, y, w, h); \endcode - <br>Each protected method of the Fl_Graphics_Driver class has the same effect as the - function of the \ref fl_drawings and \ref fl_attributes modules which bears the same name - prefixed with fl_ and has the same parameter list. + <br> The public API for drawing operations is functionally presented in \ref drawing and as function lists + in the \ref fl_drawings and \ref fl_attributes modules. */ class Fl_Graphics_Driver : public Fl_Device { protected: diff --git a/FL/Fl_PostScript.H b/FL/Fl_PostScript.H index 7811aae05..7a1907731 100644 --- a/FL/Fl_PostScript.H +++ b/FL/Fl_PostScript.H @@ -243,11 +243,7 @@ class Clip { void draw_image_mono(const uchar* d, int x,int y,int w,int h, int delta=1, int ld=0){draw_scaled_image_mono(d,x,y,w,h,w,h,delta,ld);}; void draw_image(Fl_Draw_Image_Cb call, void* data, int x,int y, int w, int h, int delta=3){draw_scaled_image(call,data, x, y, w, h, w, h, delta);}; void draw_image_mono(Fl_Draw_Image_Cb call, void* data, int x,int y, int w, int h, int delta=1){draw_scaled_image_mono(call, data, x, y, w, h, w, h, delta);}; - - void draw(Fl_Pixmap * pxm,int XP, int YP, int WP, int HP, int cx, int cy); - void draw(Fl_RGB_Image * rgb,int XP, int YP, int WP, int HP, int cx, int cy); - void draw(Fl_Bitmap * bitmap,int XP, int YP, int WP, int HP, int cx, int cy); - + public: void page_policy(int p); int page_policy(){return page_policy_;}; @@ -265,6 +261,9 @@ public: void place(double x, double y, double tx, double ty, double scale = 1); #endif // FL_DOXYGEN Fl_PostScript_Graphics_Driver(); + void draw(Fl_Pixmap * pxm,int XP, int YP, int WP, int HP, int cx, int cy); + void draw(Fl_Bitmap * bitmap,int XP, int YP, int WP, int HP, int cx, int cy); + void draw(Fl_RGB_Image * rgb,int XP, int YP, int WP, int HP, int cx, int cy); ~Fl_PostScript_Graphics_Driver(); }; diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H index dfccf1fa1..9075f3aac 100644 --- a/FL/Fl_Printer.H +++ b/FL/Fl_Printer.H @@ -45,6 +45,7 @@ /** \brief Print support under MSWindows and Mac OS X. * + Class Fl_System_Printer is implemented only on the MSWindows and Mac OS X platforms. Use Fl_Printer instead that is cross-platform and has the same API. Fl_Printer is typedef'ed to Fl_System_Printer under MSWindows and Mac OS X. */ @@ -123,6 +124,7 @@ typedef Fl_System_Printer Fl_Printer; /** \brief Print support under Unix/Linux. * + Class Fl_PostScript_Printer is implemented only on the Unix/Linux platform. Use Fl_Printer instead that is cross-platform and has the same API. Fl_Printer is typedef'ed to Fl_PostScript_Printer under Unix/Linux. */ @@ -168,7 +170,7 @@ typedef Fl_PostScript_Printer Fl_Printer; <ul><li>Print any widget (standard, custom, Fl_Window, Fl_Gl_Window) as it appears on screen, with optional translation, scaling and rotation. This is done by calling print_widget() or print_window_part(). - <li>Use a series of FLTK graphics commands (e.g., font, text, lines, colors, clip) to + <li>Use a series of FLTK graphics commands (e.g., font, text, lines, colors, clip, image) to compose a page appropriately shaped for printing. </ul> In both cases, begin by start_job(), start_page(), printable_rect() and origin() calls @@ -179,7 +181,7 @@ typedef Fl_PostScript_Printer Fl_Printer; <ul> <li>Unix/Linux platforms: Class Fl_RGB_Image prints but loses its transparency if it has one. - PostScript text output is presently restricted to the Latin alphabet. + See class Fl_PostScript_Graphics_Driver for a description of how UTF-8 strings appear in print. Use the static public attributes of this class to set the print dialog to other languages than English. For example, the "Printer:" dialog item Fl_Printer::dialog_printer can be set to French with: \code |
