]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_defs.i
Use Python's buffer interface API for all image data and alpha Set/Get
[wxWidgets.git] / wxPython / src / _defs.i
index 5c1f8b0824851af3f546288b2af09a7ec1251eda..c372c37d7554a08373555f5e23bbf2a5f9288339 100644 (file)
@@ -259,6 +259,20 @@ typedef unsigned long   wxUIntPtr;
     %enddef
 #endif
 
+#ifdef _DO_FULL_DOCS
+    %define RenameDocCtorStr(newname, docstr, details, decl)
+        %feature("docstring") decl docstr details;
+        %rename(newname) decl;
+        decl
+    %enddef
+#else
+    %define RenameDocCtorStr(newname, docstr, details, decl)
+        %feature("docstring") decl docstr;
+        %rename(newname) decl;
+        decl
+    %enddef
+#endif
+        
 
         
 // Set the autodoc string for a constructor decl and then define the decl too.
@@ -333,6 +347,19 @@ typedef unsigned long   wxUIntPtr;
     decl
 %enddef
 
+#ifdef _DO_FULL_DOCS
+    %define %RenameDocCtor(newname, docstr, details, decl)
+        %feature("docstring") decl docstr details;
+        %rename(newname) decl;
+        decl
+    %enddef
+#else
+    %define %RenameDocCtor(newname, docstr, details, decl)
+        %feature("docstring") decl docstr;
+        %rename(newname) decl;
+        decl
+    %enddef
+#endif
 
 //---------------------------------------------------------------------------
 // Forward declarations and %renames for some classes, so the autodoc strings