X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00976fe56baabfe05676ace71a9fea803fb5bb2e..05159a2750ed2cc5945a85bc5fc6849ad1a30e75:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index c3741cfedc..412f6a2f54 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -50,6 +50,10 @@ public: virtual void DeleteWindows(); + // Enable deleting the SizerItem without destroying the contained sizer. + void DetachSizer() + { m_sizer = 0; } + virtual wxSize GetSize(); virtual wxSize CalcMin(); virtual void SetDimension( wxPoint pos, wxSize size ); @@ -82,8 +86,6 @@ public: { m_border = border; } void Show ( bool show ) { m_show = show; } - void SetDeleteItem( bool deleteItem = TRUE ) - { m_deleteItem = deleteItem; } wxWindow *GetWindow() const { return m_window; } @@ -124,11 +126,6 @@ protected: // is shrinked. it is safer to preserve initial value. float m_ratio; - // If TRUE, and the item is a sizer, delete it when the - // sizeritem is destroyed. Not used for any other type - // of item right now. - bool m_deleteItem; - wxObject *m_userData; private: