]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxSizerItem::SetUserData
authorRobin Dunn <robin@alldunn.com>
Fri, 6 Jan 2006 04:46:38 +0000 (04:46 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 6 Jan 2006 04:46:38 +0000 (04:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/sizer.h

index 2d3d87496c5952a22108a00adbc916fee8415eeb..ebb3cc240421cb87e9b5eef2a0609b6747aa9ea8 100644 (file)
@@ -255,6 +255,8 @@ public:
     void Show(bool show);
     bool IsShown() const;
 
     void Show(bool show);
     bool IsShown() const;
 
+    void SetUserData(wxObject* userData)
+        { delete userData; m_userData = userData; }
     wxObject* GetUserData() const
         { return m_userData; }
     wxPoint GetPosition() const
     wxObject* GetUserData() const
         { return m_userData; }
     wxPoint GetPosition() const