Make Fl_Gl_Window::gl_driver() private (#184)

The driver stuff should be private. The only usage I found was in
class _Fl_Gl_Overlay which is now a 'friend class'.
This commit is contained in:
Albrecht Schlosser
2021-01-29 14:11:19 +01:00
parent a2a026ed74
commit 246291fe51
+4 -2
View File
@@ -50,8 +50,12 @@ class Fl_Gl_Window_Driver;
*/
class FL_EXPORT Fl_Gl_Window : public Fl_Window {
friend class Fl_Gl_Window_Driver;
friend class _Fl_Gl_Overlay;
Fl_Gl_Window_Driver *pGlWindowDriver;
/** Returns a pointer to the window's Fl_Gl_Window_Driver object */
Fl_Gl_Window_Driver *gl_driver() {return pGlWindowDriver;}
int mode_;
const int *alist;
Fl_Gl_Choice *g;
@@ -77,8 +81,6 @@ public:
void hide();
void resize(int,int,int,int);
int handle(int);
/** Returns a pointer to the window's Fl_Gl_Window_Driver object */
Fl_Gl_Window_Driver *gl_driver() {return pGlWindowDriver;}
/**
Is turned off when FLTK creates a new context for this window or