diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-01-29 14:11:19 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-01-29 14:11:19 +0100 |
| commit | 246291fe51734f9be73f457a7c4da00f2413a3dd (patch) | |
| tree | 7e2a5b2901ac491242617c2a8d2747805ba00c8f | |
| parent | a2a026ed7489bf71d591f629b756cc50de2df72d (diff) | |
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'.
| -rw-r--r-- | FL/Fl_Gl_Window.H | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H index 218cf676e..da8a35b84 100644 --- a/FL/Fl_Gl_Window.H +++ b/FL/Fl_Gl_Window.H @@ -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 |
