]> git.saurik.com Git - wxWidgets.git/commitdiff
Add typemaps for wxColour*
authorRobin Dunn <robin@alldunn.com>
Wed, 9 Aug 2006 18:50:33 +0000 (18:50 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 9 Aug 2006 18:50:33 +0000 (18:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/my_typemaps.i

index f8b436a38b3797ac5c0885c3919e08d55b974fd2..788da5f7b76d1a9903f3fd3ff9224d90fbd970c3 100644 (file)
@@ -191,6 +191,13 @@ MAKE_INT_ARRAY_TYPEMAPS(styles, styles_field)
     $1 = wxColour_typecheck($input);
 }
 
     $1 = wxColour_typecheck($input);
 }
 
+%typemap(in) wxColour* (wxColour temp) {
+    $1 = &temp;
+    if ( ! wxColour_helper($input, &$1)) SWIG_fail;
+}
+%typemap(typecheck, precedence=SWIG_TYPECHECK_POINTER) wxColour* {
+    $1 = wxColour_typecheck($input);
+}
 
 
 //---------------------------------------------------------------------------
 
 
 //---------------------------------------------------------------------------