X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/465de0be705e52c7f97e9bb6169af9d20a7f72a8..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 73229cc8a1..7e01ff8ad9 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -125,6 +125,10 @@ public: wxSizerFlags& Border(int direction, int borderInPixels) { + wxCHECK_MSG( !(direction & ~wxALL), *this, + wxS("direction must be a combination of wxDirection ") + wxS("enum values.") ); + m_flags &= ~wxALL; m_flags |= direction; @@ -311,6 +315,10 @@ public: { return m_minSize; } wxSize GetMinSizeWithBorder() const; + wxSize GetMaxSize() const + { return IsWindow() ? m_window->GetMaxSize() : wxDefaultSize; } + wxSize GetMaxSizeWithBorder() const; + void SetMinSize(const wxSize& size) { if ( IsWindow() )