X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12028905135250524409f1e7b9bfa9c55e5ce16b..4c68a10264347cc04b1a6634000595f160792231:/include/wx/toplevel.h diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index db7ce01967..612b1353bd 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,13 @@ 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 (and not larger than screen). + static wxSize GetDefaultSize(); + static int WidthDefault(int w) { return w == -1 ? GetDefaultSize().x : w; } + static int HeightDefault(int h) { return h == -1 ? GetDefaultSize().y : h; } + // the frame icon wxIconBundle m_icons;