Added wxSizer::GetItemCount()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2009-01-01 22:05:29 +00:00
parent 63d798fdb6
commit 6b527e158d
2 changed files with 7 additions and 0 deletions

View 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 );

View 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.