Typemaps for wxRect2D

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-28 02:59:22 +00:00
parent 9f4a1fed45
commit 7da662ce7c

View 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"