]> git.saurik.com Git - wxWidgets.git/commitdiff
Typemaps for wxRect2D
authorRobin Dunn <robin@alldunn.com>
Sat, 28 Oct 2006 02:59:22 +0000 (02:59 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 28 Oct 2006 02:59:22 +0000 (02:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/my_typemaps.i

index 22e6a019a7bfaf8cc8f3d1eae6400abea619bd6d..ea5588022d22c6061226268f8cde2bae1cbe16fa 100644 (file)
@@ -179,6 +179,15 @@ MAKE_INT_ARRAY_TYPEMAPS(styles, styles_field)
 }
 
 
+%typemap(in) wxRect2D& (wxRect2D temp) {
+    $1 = &temp;
+    if ( ! wxRect2D_helper($input, &$1)) SWIG_fail;
+}
+%typemap(typecheck, precedence=SWIG_TYPECHECK_POINTER) wxRect2D& {
+    $1 = wxPySimple_typecheck($input, wxT("wxRect2D"), 4);
+}
+
+
 //---------------------------------------------------------------------------
 // Typemap to convert strings to wxColour.  Two string formats are accepted,
 // either a colour name, or a hex colour spec like "#RRGGBB"