X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f6cfda79ff6d1ddc0b1b88c0ba9a69c4dd1f3f3..5edef14ec87e7fe2e1c48ed5f1a466ba60ece81a:/include/wx/window.h?ds=inline diff --git a/include/wx/window.h b/include/wx/window.h index 3370fa75b2..87dc4cc691 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -366,6 +366,9 @@ public: virtual wxSize GetMaxSize() const { return wxSize( m_maxWidth, m_maxHeight ); } virtual wxSize GetMinSize() const { return wxSize( m_minWidth, m_minHeight ); } + void SetMinSize(const wxSize& minSize) { SetSizeHints(minSize); } + void SetMaxSize(const wxSize& maxSize) { SetSizeHints(GetMinSize(), maxSize); } + // Methods for accessing the virtual size of a window. For most // windows this is just the client area of the window, but for // some like scrolled windows it is more or less independent of @@ -490,7 +493,7 @@ public: virtual void SetTmpDefaultItem(wxWindow * WXUNUSED(win)) { } // Navigates in the specified direction by sending a wxNavigationKeyEvent - virtual bool Navigate(bool direction = true, bool windowChange = false); + virtual bool Navigate(int flags = wxNavigationKeyEvent::IsForward); // parent/children relations // -------------------------