mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
89 lines
1.9 KiB
C++
89 lines
1.9 KiB
C++
/*
|
|
* Interface wrapper code.
|
|
*
|
|
* Generated by SIP 4.12-snapshot-eac351f5cca7 on Wed Nov 10 15:32:07 2010
|
|
*
|
|
* Copyright: (c) 2010 by Total Control Software
|
|
* Licence: wxWindows license
|
|
*/
|
|
|
|
#include "sipAPI_core.h"
|
|
|
|
|
|
|
|
|
|
extern "C" {static void assign_wxString(void *, SIP_SSIZE_T, const void *);}
|
|
static void assign_wxString(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
|
|
{
|
|
reinterpret_cast<wxString *>(sipDst)[sipDstIdx] = *reinterpret_cast<const wxString *>(sipSrc);
|
|
}
|
|
|
|
|
|
extern "C" {static void *array_wxString(SIP_SSIZE_T);}
|
|
static void *array_wxString(SIP_SSIZE_T sipNrElem)
|
|
{
|
|
return new wxString[sipNrElem];
|
|
}
|
|
|
|
|
|
extern "C" {static void *copy_wxString(const void *, SIP_SSIZE_T);}
|
|
static void *copy_wxString(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
|
|
{
|
|
return new wxString(reinterpret_cast<const wxString *>(sipSrc)[sipSrcIdx]);
|
|
}
|
|
|
|
|
|
/* Call the mapped type's destructor. */
|
|
extern "C" {static void release_wxString(void *, int);}
|
|
static void release_wxString(void *ptr, int)
|
|
{
|
|
delete reinterpret_cast<wxString *>(ptr);
|
|
}
|
|
|
|
|
|
|
|
extern "C" {static int convertTo_wxString(PyObject *, void **, int *, PyObject *);}
|
|
static int convertTo_wxString(PyObject *,void **,int *,PyObject *)
|
|
{
|
|
#line 23 "src/string.sip"
|
|
// TODO
|
|
#line 51 "sip_corewxString.cpp"
|
|
}
|
|
|
|
|
|
extern "C" {static PyObject *convertFrom_wxString(void *, PyObject *);}
|
|
static PyObject *convertFrom_wxString(void *sipCppV,PyObject *)
|
|
{
|
|
wxString *sipCpp = reinterpret_cast<wxString *>(sipCppV);
|
|
|
|
#line 28 "src/string.sip"
|
|
// TODO
|
|
#line 62 "sip_corewxString.cpp"
|
|
}
|
|
|
|
|
|
sipMappedTypeDef sipTypeDef__core_wxString = {
|
|
{
|
|
-1,
|
|
0,
|
|
0,
|
|
SIP_TYPE_MAPPED,
|
|
sipNameNr_wxString,
|
|
{0}
|
|
},
|
|
{
|
|
-1,
|
|
{0, 0, 1},
|
|
0, 0,
|
|
0, 0,
|
|
0, 0,
|
|
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
|
|
},
|
|
assign_wxString,
|
|
array_wxString,
|
|
copy_wxString,
|
|
release_wxString,
|
|
convertTo_wxString,
|
|
convertFrom_wxString
|
|
};
|