undeprecated wxSizerItem::IsShown() undoing last change to wx/sizer.h: turns out we do need this logic in a few places

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-02-09 15:25:22 +00:00
parent cabb99da6d
commit c86fd3a793
3 changed files with 14 additions and 6 deletions

View File

@@ -252,6 +252,10 @@ public:
{ return m_kind == Item_Sizer ? m_sizer : NULL; }
wxSize GetSpacer() const;
// this function behaves obviously for the windows and spacers but for the
// sizers it returns true if any sizer element is shown and only returns
// false if all of them are hidden
bool IsShown() const;
void Show(bool show);
void SetUserData(wxObject* userData)
@@ -268,11 +272,6 @@ public:
void SetSpacer(const wxSize& size);
void SetSpacer(int width, int height) { SetSpacer(wxSize(width, height)); }
// this function is deprecated because if this item is a sizer, then it
// doesn't really make sense: sizer is neither shown nor hidden, because
// some of its elements may be hidden while others are shown
wxDEPRECATED( bool IsShown() const );
protected:
// common part of several ctors
void Init() { m_userData = NULL; }