From 7da662ce7ccf92964feef2a31a054b9b6c4acb70 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 28 Oct 2006 02:59:22 +0000 Subject: [PATCH] Typemaps for wxRect2D git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/my_typemaps.i | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 22e6a019a7..ea5588022d 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -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" -- 2.45.2