Make member function Fl_Surface_Device::driver(Fl_Graphics_Driver*) protected.

This commit is contained in:
ManoloFLTK 2019-04-10 15:20:00 +02:00
parent d5943f85b9
commit cb7dbc34d7

View File

@ -75,11 +75,11 @@ class FL_EXPORT Fl_Surface_Device {
protected: protected:
/** Constructor that sets the graphics driver to use for the created surface. */ /** Constructor that sets the graphics driver to use for the created surface. */
Fl_Surface_Device(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver; } Fl_Surface_Device(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver; }
/** Sets the graphics driver of this drawing surface. */
inline void driver(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver;};
public: public:
virtual void set_current(void); virtual void set_current(void);
virtual bool is_current(); virtual bool is_current();
/** \brief Sets the graphics driver of this drawing surface. */
inline void driver(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver;};
/** \brief Returns the graphics driver of this drawing surface. */ /** \brief Returns the graphics driver of this drawing surface. */
inline Fl_Graphics_Driver *driver() {return pGraphicsDriver; }; inline Fl_Graphics_Driver *driver() {return pGraphicsDriver; };
/** The current drawing surface. /** The current drawing surface.