]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix documentation of wxGridBagSizer::Add() spacer overload.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 1 Dec 2012 00:13:40 +0000 (00:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 1 Dec 2012 00:13:40 +0000 (00:13 +0000)
Describe the width and height parameters.

See #14866.

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

interface/wx/gbsizer.h

index f1604bbc9ef8fa7f504e7503a5253ed7c0a0b3d5..39a7d6ac940db147b823c4ecf9ee4dfdc6f36f33 100644 (file)
@@ -93,12 +93,20 @@ public:
     wxSizerItem* Add(wxSizer* sizer, const wxGBPosition& pos,
                      const wxGBSpan& span = wxDefaultSpan,
                      int flag = 0, int border = 0, wxObject* userData = NULL);
     wxSizerItem* Add(wxSizer* sizer, const wxGBPosition& pos,
                      const wxGBSpan& span = wxDefaultSpan,
                      int flag = 0, int border = 0, wxObject* userData = NULL);
+    wxSizerItem* Add(wxGBSizerItem* item);
+
+    /**
+        Adds a spacer to the given position.
+        @a width and @a height specify the dimension of the spacer to be added.
+
+        @return A valid pointer if the spacer was successfully placed at the
+                 given position, or @NULL if something was already there.
+    */
     wxSizerItem* Add(int width, int height, const wxGBPosition& pos,
                      const wxGBSpan& span = wxDefaultSpan,
                      int flag = 0, int border = 0, wxObject* userData = NULL);
     wxSizerItem* Add(int width, int height, const wxGBPosition& pos,
                      const wxGBSpan& span = wxDefaultSpan,
                      int flag = 0, int border = 0, wxObject* userData = NULL);
-    wxSizerItem* Add(wxGBSizerItem* item);
-    //@}
 
 
+    //@}
     /**
         Called when the managed size of the sizer is needed or when layout
         needs done.
     /**
         Called when the managed size of the sizer is needed or when layout
         needs done.