From: Vadim Zeitlin Date: Mon, 10 Aug 2009 11:18:45 +0000 (+0000) Subject: Reorganize and improve wxSizer::SetItemMinSize() documentation. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/58c69c44d03a02f3c07ca48fc788255ec7bf0c13 Reorganize and improve wxSizer::SetItemMinSize() documentation. Closes #11093. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index f2e1d57a5e..31e66cb38d 100644 --- a/interface/wx/sizer.h +++ b/interface/wx/sizer.h @@ -783,35 +783,28 @@ public: /** Set an item's minimum size by window, sizer, or position. - The item will be found recursively in the sizer's descendants. This function enables an application to set the size of an item after initial creation. + The @a window or @a sizer will be found recursively in the sizer's + descendants. + @see wxSizerItem::SetMinSize() + + @return + @true if the minimal size was successfully set or @false if the + item was not found. */ + //@{ bool SetItemMinSize(wxWindow* window, int width, int height); + bool SetItemMinSize(wxWindow* window, const wxSize& size); - /** - Set an item's minimum size by window, sizer, or position. - - The item will be found recursively in the sizer's descendants. - This function enables an application to set the size of an item after - initial creation. - - @see wxSizerItem::SetMinSize() - */ bool SetItemMinSize(wxSizer* sizer, int width, int height); + bool SetItemMinSize(wxSizer* sizer, const wxSize& size); - /** - Set an item's minimum size by window, sizer, or position. - - The item will be found recursively in the sizer's descendants. - This function enables an application to set the size of an item after - initial creation. - - @see wxSizerItem::SetMinSize() - */ bool SetItemMinSize(size_t index, int width, int height); + bool SetItemMinSize(size_t index, const wxSize& size); + //@} /** Call this to give the sizer a minimal size.