X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3bf7524f394af039efe196a186f7969cbabcc19..caa251e0739fb50063849598fee09372c9dbafd6:/include/wx/toplevel.h diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index 02dc3ea81d..612b1353bd 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -150,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;