- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
- return NULL;
- }
- }
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxFontList_RemoveFont(_arg0,_arg1);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-static void *SwigwxColourTowxObject(void *ptr) {
- wxColour *src;
- wxObject *dest;
- src = (wxColour *) ptr;
- dest = (wxObject *) src;
- return (void *) dest;
-}
-
-#define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
-static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxColour * _result;
- unsigned char _arg0 = (unsigned char ) 0;
- unsigned char _arg1 = (unsigned char ) 0;
- unsigned char _arg2 = (unsigned char ) 0;
- char *_kwnames[] = { "red","green","blue", NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
- return _resultobj;
-}
-
-#define delete_wxColour(_swigobj) (delete _swigobj)
-static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxColour * _arg0;
- wxColour temp;
- PyObject * _obj0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
- return NULL;
-{
- _arg0 = &temp;
- if (! wxColour_helper(_obj0, &_arg0))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxColour(_arg0);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-#define wxColour_Red(_swigobj) (_swigobj->Red())
-static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- unsigned char _result;
- wxColour * _arg0;
- wxColour temp;
- PyObject * _obj0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
- return NULL;
-{
- _arg0 = &temp;
- if (! wxColour_helper(_obj0, &_arg0))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (unsigned char )wxColour_Red(_arg0);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} _resultobj = Py_BuildValue("b",_result);
- return _resultobj;
-}
-
-#define wxColour_Green(_swigobj) (_swigobj->Green())
-static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- unsigned char _result;
- wxColour * _arg0;
- wxColour temp;
- PyObject * _obj0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
- return NULL;
-{
- _arg0 = &temp;
- if (! wxColour_helper(_obj0, &_arg0))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (unsigned char )wxColour_Green(_arg0);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} _resultobj = Py_BuildValue("b",_result);
- return _resultobj;
-}
-
-#define wxColour_Blue(_swigobj) (_swigobj->Blue())
-static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- unsigned char _result;
- wxColour * _arg0;
- wxColour temp;
- PyObject * _obj0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
- return NULL;
-{
- _arg0 = &temp;
- if (! wxColour_helper(_obj0, &_arg0))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (unsigned char )wxColour_Blue(_arg0);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} _resultobj = Py_BuildValue("b",_result);
- return _resultobj;
-}
-
-#define wxColour_Ok(_swigobj) (_swigobj->Ok())
-static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxColour * _arg0;
- wxColour temp;
- PyObject * _obj0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
- return NULL;
-{
- _arg0 = &temp;
- if (! wxColour_helper(_obj0, &_arg0))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxColour_Ok(_arg0);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
-static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxColour * _arg0;
- unsigned char _arg1;
- unsigned char _arg2;
- unsigned char _arg3;
- wxColour temp;
- PyObject * _obj0 = 0;
- char *_kwnames[] = { "self","red","green","blue", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
- return NULL;
-{
- _arg0 = &temp;
- if (! wxColour_helper(_obj0, &_arg0))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxColour_Set(_arg0,_arg1,_arg2,_arg3);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-static PyObject * wxColour_Get(wxColour *self) {
- PyObject* rv = PyTuple_New(3);
- PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
- PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
- PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
- return rv;
- }
-static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- PyObject * _result;
- wxColour * _arg0;
- wxColour temp;
- PyObject * _obj0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
- return NULL;
-{
- _arg0 = &temp;
- if (! wxColour_helper(_obj0, &_arg0))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (PyObject *)wxColour_Get(_arg0);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-}{
- _resultobj = _result;
-}
- return _resultobj;
-}
-
-static void *SwigwxColourDatabaseTowxObject(void *ptr) {
- wxColourDatabase *src;
- wxObject *dest;
- src = (wxColourDatabase *) ptr;
- dest = (wxObject *) src;
- return (void *) dest;
-}
-
-#define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
-static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxColour * _result;
- wxColourDatabase * _arg0;
- wxString * _arg1;
- PyObject * _argo0 = 0;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","colour", NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
- return NULL;
- }
- }
-{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
-{
- if (_obj1)
- delete _arg1;
-}
- return _resultobj;
-}
-
-#define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
-static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxString * _result;
- wxColourDatabase * _arg0;
- wxColour * _arg1;
- PyObject * _argo0 = 0;
- wxColour temp;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","colour", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
- return NULL;
- }
- }
-{
- _arg1 = &temp;
- if (! wxColour_helper(_obj1, &_arg1))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-}{
- _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
-}
-{
- delete _result;
-}
- return _resultobj;
-}
-
-static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
- self->Append(name.c_str(), new wxColour(red, green, blue));
- }
-static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxColourDatabase * _arg0;
- wxString * _arg1;
- int _arg2;
- int _arg3;
- int _arg4;
- PyObject * _argo0 = 0;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","name","red","green","blue", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
- return NULL;
- }
- }
-{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);