changes for wxDash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -322,12 +322,6 @@ public:
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
typedef unsigned long wxDash;
|
|
||||||
#else
|
|
||||||
typedef char wxDash;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
class wxPen {
|
class wxPen {
|
||||||
public:
|
public:
|
||||||
|
@@ -45,6 +45,17 @@
|
|||||||
delete [] $source;
|
delete [] $source;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// wxDash is a signed char
|
||||||
|
%typemap(python,in) wxDash* choices {
|
||||||
|
$target = (wxDash*)byte_LIST_helper($source);
|
||||||
|
if ($target == NULL) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%typemap(python,freearg) wxDash* choices {
|
||||||
|
delete [] $source;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
%typemap(python,in) int* choices {
|
%typemap(python,in) int* choices {
|
||||||
$target = int_LIST_helper($source);
|
$target = int_LIST_helper($source);
|
||||||
@@ -79,15 +90,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
%typemap(python,in) wxDash* choices = unsigned long* choices;
|
|
||||||
%typemap(python,freearg) wxDash* choices = unsigned long* choices;
|
|
||||||
#else
|
|
||||||
%typemap(python,in) wxDash* choices = byte* choices;
|
|
||||||
%typemap(python,freearg) wxDash* choices = byte* choices;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
%typemap(python,in) char** choices {
|
%typemap(python,in) char** choices {
|
||||||
$target = string_LIST_helper($source);
|
$target = string_LIST_helper($source);
|
||||||
if ($target == NULL) {
|
if ($target == NULL) {
|
||||||
|
Reference in New Issue
Block a user