Add typemaps for wxColour*

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-08-09 18:50:33 +00:00
parent 8e1222c7cd
commit 424752bc36

View File

@@ -191,6 +191,13 @@ MAKE_INT_ARRAY_TYPEMAPS(styles, styles_field)
$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);
}
//---------------------------------------------------------------------------