diff options
| author | Manolo Gouy <Manolo> | 2018-06-15 07:42:17 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-06-15 07:42:17 +0000 |
| commit | 32b35e62d23b3e435ceb20a178179f957863170b (patch) | |
| tree | 48d5c2ac6f3b4c683ba02b70ec93984c15b6acb2 | |
| parent | 34990a9d30fa9201b6832de0b44b3015d0e139ea (diff) | |
Turn static function Fl_Graphics_Driver * Fl_Graphics_Driver::newMainGraphicsDriver() private.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | FL/Fl_Graphics_Driver.H | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 79bbfcefc..96aed31b5 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -79,6 +79,7 @@ struct Fl_Fontdesc; */ class FL_EXPORT Fl_Graphics_Driver { friend class Fl_Surface_Device; + friend class Fl_Display_Device; friend class Fl_Screen_Driver; friend class Fl_Window_Driver; friend class Fl_Pixmap; @@ -146,17 +147,11 @@ private: // some platforms may need to reimplement this virtual void set_current_(); float scale_; // scale between FLTK and drawing coordinates: drawing = FLTK * scale_ -protected: - /** Sets the current value of the scaling factor */ - virtual void scale(float f) { scale_ = f; } -public: - // The following functions create the various graphics drivers that are required - // for core operations. They must be implemented as members of Fl_Graphics_Driver, - // but located in the device driver module that is linked to the core library - /** Instantiate the graphics driver adequate to draw to the platform's display driver. - Each platform implements this method its own way. - */ + // The following function creates the graphics driver that is required + // for core operations. It must be implemented as a member of Fl_Graphics_Driver, + // but located in the device driver module that is linked to the core library. static Fl_Graphics_Driver *newMainGraphicsDriver(); +public: /** A 2D coordinate transformation matrix */ struct matrix {double a, b, c, d, x, y;}; /** Features that a derived class may possess. */ @@ -166,6 +161,8 @@ public: } driver_feature; protected: + /** Sets the current value of the scaling factor */ + virtual void scale(float f) { scale_ = f; } int fl_clip_state_number; ///< For internal use by FLTK static const matrix m0; ///< For internal use by FLTK Fl_Font font_; ///< current font |
