X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/893039c03fdd312ba7f213c155de231721c5f653..9d33840bab4e10d701dd36f9b8660f6a13f05afe:/interface/wx/sizer.h?ds=sidebyside diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index 406def0a94..86269f643f 100644 --- a/interface/wx/sizer.h +++ b/interface/wx/sizer.h @@ -1091,6 +1091,14 @@ public: */ 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. @@ -1241,6 +1249,13 @@ public: */ 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.