]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_sizers.i
reSWIGged
[wxWidgets.git] / wxPython / src / _sizers.i
index 5476b405c2dc596f766b75fbd11e1eb59e1253f9..4f74fdb6e11eab72450237393a446ba5a7b8876d 100644 (file)
@@ -127,6 +127,11 @@ account.", "");
         wxSize , GetMinSize(),
         "Get the minimum size needed for the item.", "");
     
+    DocDeclStr(
+        wxSize , GetMinSizeWithBorder() const,
+        "Get the minimum size needed for the item with space for the borders
+added, if needed.", "");
+
     DocDeclStr(
         void , SetInitSize( int x, int y ),
         "", "");
@@ -367,7 +372,8 @@ public:
 
     %extend {
         void _setOORInfo(PyObject* _self) {
-            self->SetClientObject(new wxPyOORClientData(_self));
+            if (!self->GetClientObject())
+                self->SetClientObject(new wxPyOORClientData(_self));
         }
 
         DocAStr(Add,
@@ -491,6 +497,8 @@ public:
                           proportion, flag, border, data);
         }
 
+//    virtual void AddSpacer(int size);
+//    virtual void AddStretchSpacer(int prop = 1);
 
         DocAStr(Insert,
                 "Insert(self, int before, item, int proportion=0, int flag=0, int border=0,
@@ -519,6 +527,8 @@ the item at index *before*.  See `Add` for a description of the parameters.", ""
         }
 
 
+//    virtual void InsertSpacer(size_t index, int size);
+//    virtual void InsertStretchSpacer(size_t index, int prop = 1);
         
         DocAStr(Prepend,
                 "Prepend(self, item, int proportion=0, int flag=0, int border=0,
@@ -546,6 +556,8 @@ this sizer.  See `Add` for a description of the parameters.", "");
                               proportion, flag, border, data);
         }
 
+//    virtual void PrependSpacer(int size);
+//    virtual void PrependStretchSpacer(int prop = 1);
 
         DocAStr(Remove,
                 "Remove(self, item) -> bool",