]> git.saurik.com Git - wxWidgets.git/commitdiff
Reorganize and improve wxSizer::SetItemMinSize() documentation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Aug 2009 11:18:45 +0000 (11:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Aug 2009 11:18:45 +0000 (11:18 +0000)
Closes #11093.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/sizer.h

index f2e1d57a5e28e55b751c7cd320281a2616626b2f..31e66cb38d7a4d8050a43ab082d5adb8a23303d3 100644 (file)
@@ -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.