Out typemap for wxString&
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -345,7 +345,7 @@ class wxFindDialogEvent : public wxCommandEvent
|
|||||||
public:
|
public:
|
||||||
wxFindDialogEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
|
wxFindDialogEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
|
||||||
int GetFlags();
|
int GetFlags();
|
||||||
wxString GetFindString();
|
const wxString& GetFindString();
|
||||||
const wxString& GetReplaceString();
|
const wxString& GetReplaceString();
|
||||||
wxFindReplaceDialog *GetDialog();
|
wxFindReplaceDialog *GetDialog();
|
||||||
void SetFlags(int flags);
|
void SetFlags(int flags);
|
||||||
|
@@ -61,6 +61,7 @@
|
|||||||
%#endif
|
%#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
%typemap(out) wxString* {
|
%typemap(out) wxString* {
|
||||||
%#if wxUSE_UNICODE
|
%#if wxUSE_UNICODE
|
||||||
$result = PyUnicode_FromWideChar($1->c_str(), $1->Len());
|
$result = PyUnicode_FromWideChar($1->c_str(), $1->Len());
|
||||||
@@ -69,6 +70,16 @@
|
|||||||
%#endif
|
%#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
%typemap(out) wxString& {
|
||||||
|
%#if wxUSE_UNICODE
|
||||||
|
$result = PyUnicode_FromWideChar($1->c_str(), $1->Len());
|
||||||
|
%#else
|
||||||
|
$result = PyString_FromStringAndSize($1->c_str(), $1->Len());
|
||||||
|
%#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
%typemap(varout) wxString {
|
%typemap(varout) wxString {
|
||||||
%#if wxUSE_UNICODE
|
%#if wxUSE_UNICODE
|
||||||
$result = PyUnicode_FromWideChar($1.c_str(), $1.Len());
|
$result = PyUnicode_FromWideChar($1.c_str(), $1.Len());
|
||||||
|
Reference in New Issue
Block a user