X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12028905135250524409f1e7b9bfa9c55e5ce16b..524b59ff2e7ff9e6f4e3eb4ce856d9497ce650b8:/include/wx/toplevel.h diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index db7ce01967..e4ea49abb1 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -113,11 +113,6 @@ public: // operation is successful.) virtual bool SetShape(const wxRegion& WXUNUSED(region)) { return FALSE; } - // old functions, use the new ones instead! -#if WXWIN_COMPATIBILITY_2 - bool Iconized() const { return IsIconized(); } -#endif // WXWIN_COMPATIBILITY_2 - // implementation only from now on // ------------------------------- @@ -155,6 +150,12 @@ protected: // send the iconize event, return TRUE if processed bool SendIconizeEvent(bool iconized = TRUE); + // Get the default size for the new window if no explicit size given. If + // there are better default sizes then these can be changed, just as long + // as they are not too small for TLWs. + static int WidthDefault(int w) { return w == -1 ? 400 : w; } + static int HeightDefault(int h) { return h == -1 ? 250 : h; } + // the frame icon wxIconBundle m_icons;