X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b527e158d66719088621e11cfd1862d9d1e9c12..232b2162776e08c0b16d5280b90f5c075f38c667:/interface/wx/sizer.h?ds=sidebyside diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index 34d41a5861..86269f643f 100644 --- a/interface/wx/sizer.h +++ b/interface/wx/sizer.h @@ -1093,9 +1093,12 @@ public: /** 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(); - + size_t GetItemCount() const; + /** Finds wxSizerItem which holds the given @a window. Use parameter @a recursive to search in subsizers too. @@ -1246,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.