From fdc59c9870896a017f0067ee5dc320efb6f762e9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 12 Oct 2010 09:25:37 +0000 Subject: Improved Doxygen doc of classes Fl_Graphics_Driver, Fl_PostScript_Printer, Fl_System_Printer, Fl_PostScript_Graphics_Driver. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7719 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Device.H | 12 ++---------- FL/Fl_PostScript.H | 9 ++++----- 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. -
The preferred FLTK API for drawing operations is the function collection of the - \ref fl_drawings and \ref fl_attributes modules. -
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 -
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. +
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; In both cases, begin by start_job(), start_page(), printable_rect() and origin() calls @@ -179,7 +181,7 @@ typedef Fl_PostScript_Printer Fl_Printer;