]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxSizer::GetItemCount()
authorRobert Roebling <robert@roebling.de>
Thu, 1 Jan 2009 22:05:29 +0000 (22:05 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 1 Jan 2009 22:05:29 +0000 (22:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/sizer.h
interface/wx/sizer.h

index 771fcf5f1ab47538aa5d01d1ccc293464f33dae2..80b16bbd0cf5d38a0135a3a9b37cb07c6c3dfd61 100644 (file)
@@ -665,6 +665,8 @@ public:
     void SetDimension(int x, int y, int width, int height)
         { SetDimension(wxPoint(x, y), wxSize(width, height)); }
 
+    size_t GetItemCount() { return m_children.GetCount(); }
+
     wxSizerItem* GetItem( wxWindow *window, bool recursive = false );
     wxSizerItem* GetItem( wxSizer *sizer, bool recursive = false );
     wxSizerItem* GetItem( size_t index );
index 406def0a943bf63520bf4aa522219d03643b2bd6..34d41a586141675f2f7122502079fbf764887d4e 100644 (file)
@@ -1091,6 +1091,11 @@ public:
     */
     wxWindow* GetContainingWindow() const;
 
+    /**
+       Returns the number of items in the sizer.
+    */
+    size_t GetItemCount();
+    
     /**
         Finds wxSizerItem which holds the given @a window.
         Use parameter @a recursive to search in subsizers too.