X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45b8a2566d46bf77f13553937df258e44c88a789..5edef14ec87e7fe2e1c48ed5f1a466ba60ece81a:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 96385dd616..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 @@ -489,6 +492,9 @@ public: // set this child as temporary default virtual void SetTmpDefaultItem(wxWindow * WXUNUSED(win)) { } + // Navigates in the specified direction by sending a wxNavigationKeyEvent + virtual bool Navigate(int flags = wxNavigationKeyEvent::IsForward); + // parent/children relations // -------------------------