X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93b87dd910cadc9d20b4a5b2a17e1bee5e60e2bc..43c42c18d36c703a88b1b7b697bac27fe5608eca:/include/wx/sizer.h?ds=inline diff --git a/include/wx/sizer.h b/include/wx/sizer.h index ff462469b2..29facff1e2 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; @@ -711,6 +715,10 @@ public: void Show(bool show) { ShowItems(show); } + // This is the ShowItems() counterpart and returns true if any of the sizer + // items are shown. + virtual bool AreAnyItemsShown() const; + protected: wxSize m_size; wxSize m_minSize; @@ -1029,6 +1037,7 @@ public: // override to hide/show the static box as well virtual void ShowItems (bool show); + virtual bool AreAnyItemsShown() const; virtual bool Detach( wxWindow *window ); virtual bool Detach( wxSizer *sizer ) { return wxBoxSizer::Detach(sizer); }