X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c107c21e731a4fc4a7f0258827b29128bbf49c39..e640f8231fbf0417f9ab5d378e7f218587cb6ac2:/include/wx/mac/glcanvas.h?ds=inline 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 @@ -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; }