*/
wxWindow* GetContainingWindow() const;
+ /**
+ Returns the number of items in the sizer.
+
+ If you just need to test whether the sizer is empty or not you can also
+ use IsEmpty() function.
+ */
+ size_t GetItemCount() const;
+
/**
Finds wxSizerItem which holds the given @a window.
Use parameter @a recursive to search in subsizers too.
*/
wxSizerItem* InsertStretchSpacer(size_t index, int prop = 1);
+ /**
+ Return @true if the sizer has no elements.
+
+ @see GetItemCount()
+ */
+ bool IsEmpty() const;
+
/**
Returns @true if the @a window is shown.