X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed72fbf723697143940bc927b1a6d6fee35beb3f..10ef30eb534117ae854c9d099101c862fe96bcb0:/include/wx/toplevel.h?ds=sidebyside diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index a2cc6c0ef8..ae36a9fa42 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -113,6 +113,7 @@ public: // override some base class virtuals virtual bool Destroy(); virtual bool IsTopLevel() const { return TRUE; } + virtual wxSize GetMaxSize() const; // event handlers void OnCloseWindow(wxCloseEvent& event); @@ -122,14 +123,6 @@ public: // so should be there for all platforms void OnActivate(wxActivateEvent &WXUNUSED(event)) { } - // Override in derived, platfrom specific, class if your OS coordinate - // system uses anything other than the top left as 0,0. The second - // method updates any internal sizing parameters such as OS/2's SWP struct - inline virtual void AlterChildPos(void) { } - inline virtual void UpdateInternalSize( wxWindow* WXUNUSED(pChild) - ,int WXUNUSED(nHeight) - ) { } - protected: // the frame client to screen translation should take account of the // toolbar which may shift the origin of the client area @@ -157,6 +150,9 @@ protected: #elif defined(__WXGTK__) #include "wx/gtk/toplevel.h" #define wxTopLevelWindowNative wxTopLevelWindowGTK +#elif defined(__WXX11__) + #include "wx/x11/toplevel.h" + #define wxTopLevelWindowNative wxTopLevelWindowX11 #elif defined(__WXMGL__) #include "wx/mgl/toplevel.h" #define wxTopLevelWindowNative wxTopLevelWindowMGL @@ -196,3 +192,5 @@ protected: #endif // _WX_TOPLEVEL_BASE_H_ + +// vi:sts=4:sw=4:et