backported wxRESERVE_SPACE_EVEN_IF_HIDDEN to 2.8

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-03-04 17:46:43 +00:00
parent 98b9d9c98b
commit f891eca8c0
7 changed files with 86 additions and 7 deletions

View File

@@ -24,6 +24,8 @@ class WXDLLIMPEXP_FWD_CORE wxButton;
class WXDLLIMPEXP_FWD_CORE wxBoxSizer;
class WXDLLIMPEXP_FWD_CORE wxSizerItem;
class WXDLLIMPEXP_FWD_CORE wxSizer;
class WXDLLIMPEXP_FWD_CORE wxFlexGridSizer;
class WXDLLIMPEXP_FWD_CORE wxGridBagSizer;
#ifndef wxUSE_BORDER_BY_DEFAULT
#ifdef __SMARTPHONE__
@@ -175,6 +177,11 @@ public:
}
#endif // wx 2.8.2+
#if wxABI_VERSION >= 20808
// makes the item ignore window's visibility status
wxSizerFlags& ReserveSpaceEvenIfHidden();
#endif
// accessors for wxSizer only
int GetProportion() const { return m_proportion; }
int GetFlags() const { return m_flags; }
@@ -393,8 +400,15 @@ protected:
wxObject *m_userData;
private:
// 2.8-only implementation detail for wxRESERVE_SPACE_EVEN_IF_HIDDEN
bool ShouldAccountFor() const;
DECLARE_CLASS(wxSizerItem)
DECLARE_NO_COPY_CLASS(wxSizerItem)
friend class wxBoxSizer;
friend class wxFlexGridSizer;
friend class wxGridBagSizer;
};
WX_DECLARE_EXPORTED_LIST( wxSizerItem, wxSizerItemList );