X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c107c21e731a4fc4a7f0258827b29128bbf49c39..c55fd2c60dbc8b2b787d402692e1d8803afdc329:/include/wx/mac/glcanvas.h?ds=sidebyside

diff --git a/include/wx/mac/glcanvas.h b/include/wx/mac/glcanvas.h
index 5e2a3f606e..5231ed7196 100644
--- a/include/wx/mac/glcanvas.h
+++ b/include/wx/mac/glcanvas.h
@@ -22,6 +22,7 @@
 
 #include "wx/palette.h"
 #include "wx/scrolwin.h"
+#include "wx/app.h"
 
 #ifdef __DARWIN__
 #  include <OpenGL/gl.h>
@@ -81,7 +82,7 @@ public:
    wxWindow*        m_window;
 };
 
-class WXDLLEXPORT wxGLCanvas: public wxScrolledWindow
+class WXDLLEXPORT wxGLCanvas: public wxWindow
 {
    DECLARE_CLASS(wxGLCanvas)
  public:
@@ -113,6 +114,10 @@ class WXDLLEXPORT wxGLCanvas: public wxScrolledWindow
    // It sets the viewport correctly and update the context.
    // You shouldn't call glViewport yourself either (use SetViewport if you must reset it.)
    void OnSize(wxSizeEvent& event);
+   
+	 virtual void MacSuperChangedPosition() ;
+	 virtual void MacTopLevelWindowChangedPosition() ;
+	 void MacUpdateView() ;
 
    inline wxGLContext* GetContext() const { return m_glContext; }