- wxGetWorkingDirectory() deprecated in favour of wxGetCwd()
- wxDC::BeginDrawing() and wxDC::EndDrawing() deprecated, just don't use them
-- wxSizerItem::IsShown(): no replacement as it doesn't have clear semantics
2.7.0
Is this item a sizer?
+\membersection{wxSizerItem::IsShown}\label{wxsizeritemisshown}
+
+\constfunc{bool}{IsShown}{\void}
+
+Returns \true if this item is a window or a spacer and it is shown or if this
+item is a sizer and not all its elements are hidden. In other words, for sizer
+items, all of the child elements must be hidden for the sizer itself to be
+considered hidden.
+
+
\membersection{wxSizerItem::IsSpacer}\label{wxsizeritemisspacer}
\constfunc{bool}{IsSpacer}{\void}
{ 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)
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; }