reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -279,8 +279,8 @@ static swig_type_info *swig_types[56];
|
||||
#include "wx/wxPython/wxPython.h"
|
||||
#include "wx/wxPython/pyclasses.h"
|
||||
|
||||
DECLARE_DEF_STRING(EmptyString);
|
||||
|
||||
static const wxString wxPyEmptyString(wxEmptyString);
|
||||
PyObject *wxColour_Get(wxColour *self){
|
||||
PyObject* rv = PyTuple_New(3);
|
||||
int red = -1;
|
||||
@@ -6154,7 +6154,7 @@ static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
|
||||
static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
|
||||
wxString arg2 ;
|
||||
wxString *arg2 = (wxString *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
@@ -6163,13 +6163,8 @@ static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
{
|
||||
wxString* sptr = wxString_in_helper(obj1);
|
||||
if (sptr == NULL) SWIG_fail;
|
||||
arg2 = *sptr;
|
||||
delete sptr;
|
||||
}
|
||||
if (arg1) (arg1)->facename = arg2;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if (arg1) (arg1)->facename = *arg2;
|
||||
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
@@ -6181,7 +6176,7 @@ static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject
|
||||
static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
|
||||
wxString result;
|
||||
wxString *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
@@ -6189,13 +6184,13 @@ static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
result = ((arg1)->facename);
|
||||
result = (wxString *)& ((arg1)->facename);
|
||||
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
||||
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
||||
#else
|
||||
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
||||
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
||||
#endif
|
||||
}
|
||||
return resultobj;
|
||||
@@ -8256,7 +8251,7 @@ static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args,
|
||||
static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
|
||||
wxString arg2 ;
|
||||
wxString *arg2 = (wxString *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
@@ -8265,13 +8260,8 @@ static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
{
|
||||
wxString* sptr = wxString_in_helper(obj1);
|
||||
if (sptr == NULL) SWIG_fail;
|
||||
arg2 = *sptr;
|
||||
delete sptr;
|
||||
}
|
||||
if (arg1) (arg1)->CanonicalName = arg2;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if (arg1) (arg1)->CanonicalName = *arg2;
|
||||
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
@@ -8283,7 +8273,7 @@ static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *
|
||||
static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
|
||||
wxString result;
|
||||
wxString *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
@@ -8291,13 +8281,13 @@ static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
result = ((arg1)->CanonicalName);
|
||||
result = (wxString *)& ((arg1)->CanonicalName);
|
||||
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
||||
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
||||
#else
|
||||
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
||||
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
||||
#endif
|
||||
}
|
||||
return resultobj;
|
||||
@@ -8309,7 +8299,7 @@ static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *
|
||||
static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
|
||||
wxString arg2 ;
|
||||
wxString *arg2 = (wxString *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
@@ -8318,13 +8308,8 @@ static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *ar
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
{
|
||||
wxString* sptr = wxString_in_helper(obj1);
|
||||
if (sptr == NULL) SWIG_fail;
|
||||
arg2 = *sptr;
|
||||
delete sptr;
|
||||
}
|
||||
if (arg1) (arg1)->Description = arg2;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if (arg1) (arg1)->Description = *arg2;
|
||||
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
@@ -8336,7 +8321,7 @@ static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *ar
|
||||
static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
|
||||
wxString result;
|
||||
wxString *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
@@ -8344,13 +8329,13 @@ static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *ar
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
result = ((arg1)->Description);
|
||||
result = (wxString *)& ((arg1)->Description);
|
||||
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
||||
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
||||
#else
|
||||
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
||||
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
||||
#endif
|
||||
}
|
||||
return resultobj;
|
||||
|
Reference in New Issue
Block a user