Author: manolo
Date: 2011-02-04 08:46:41 -0800 (Fri, 04 Feb 2011)
New Revision: 8367
Log:
Removed the requirement of declaring class Fl_PostScript_Graphics_Driver friend 
of
class Fl_Graphics_Driver. This is undesirable because it obliges a user (e.g., 
Mingodad
and his PDF driver) who develops a new graphics driver to change the FLTK 
source code.
Just declaring font() public instead of private is enough.

Modified:
   branches/branch-1.3/FL/Fl_Device.H

Modified: branches/branch-1.3/FL/Fl_Device.H
===================================================================
--- branches/branch-1.3/FL/Fl_Device.H  2011-02-04 09:17:45 UTC (rev 8366)
+++ branches/branch-1.3/FL/Fl_Device.H  2011-02-04 16:46:41 UTC (rev 8367)
@@ -98,7 +98,6 @@
   friend class Fl_Pixmap;
   friend class Fl_Bitmap;
   friend class Fl_RGB_Image;
-  friend class Fl_PostScript_Graphics_Driver;
   friend void fl_rect(int x, int y, int w, int h);
   friend void fl_rectf(int x, int y, int w, int h);
   friend void fl_line_style(int style, int width, char* dashes);
@@ -179,8 +178,6 @@
   virtual void draw(int angle, const char *str, int n, int x, int y) = 0;
   /** \brief see fl_rtl_draw(const char *str, int n, int x, int y). */
   virtual void rtl_draw(const char *str, int n, int x, int y) = 0;
-  /** \brief see fl_font(Fl_Font face, Fl_Fontsize size). */
-  virtual void font(Fl_Font face, Fl_Fontsize size) = 0;
   /** \brief see fl_color(Fl_Color c). */
   virtual void color(Fl_Color c) = 0;
   /** \brief see fl_color(uchar r, uchar g, uchar b). */
@@ -272,6 +269,8 @@
     
 public:
   static const char *class_id;
+  /** \brief see fl_font(Fl_Font face, Fl_Fontsize size). */
+  virtual void font(Fl_Font face, Fl_Fontsize size) = 0;
   /** \brief The destructor */
   virtual ~Fl_Graphics_Driver() {};
 };

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

Reply via email to