#ifndef __WXMSW__
#include <wx/dcps.h>
#endif
+#include <wx/fontmap.h>
+#include <wx/fontenc.h>
+#include <wx/fontmap.h>
+#include <wx/fontutil.h>
-static PyObject* l_output_helper(PyObject* target, PyObject* o) {
- PyObject* o2;
- if (!target) {
- target = o;
- } else if (target == Py_None) {
- Py_DECREF(Py_None);
- target = o;
- } else {
- if (!PyList_Check(target)) {
- o2 = target;
- target = PyList_New(0);
- PyList_Append(target, o2);
- Py_XDECREF(o2);
- }
- PyList_Append(target,o);
- Py_XDECREF(o);
- }
- return target;
-}
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
return cArray;
}
+
wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
char** cArray = NULL;
wxBitmap* bmp;
}
+ wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
+ return new wxBitmap(bits, width, height, depth);
+ }
-#ifdef __WXMSW__
- wxBitmap* wxBitmapFromData(PyObject* data, long type,
- int width, int height, int depth = 1) {
- if (! PyString_Check(data)) {
- PyErr_SetString(PyExc_TypeError, "Expected string object");
- return NULL;
- }
- return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
- }
-#endif
+// #ifdef __WXMSW__
+// wxBitmap* wxBitmapFromData(PyObject* data, long type,
+// int width, int height, int depth = 1) {
+// if (! PyString_Check(data)) {
+// PyErr_SetString(PyExc_TypeError, "Expected string object");
+// return NULL;
+// }
+// return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
+// }
+// #endif
wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
return new wxMask(bitmap, colour);
wxCursor* wxPyStockCursor(int id) {
return new wxCursor(id);
}
-
- wxFontEncoding wxFont_GetDefaultEncoding() {
- return wxFont::GetDefaultEncoding();
- }
-
- void wxFont_SetDefaultEncoding(wxFontEncoding encoding) {
- wxFont::SetDefaultEncoding(encoding);
- }
// Alternate 'constructor'
wxColour* wxNamedColour(const wxString& colorName) {
return new wxColour(colorName);
_result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
-static PyObject *_wrap_wxBitmapFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
+static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxBitmap * _result;
- PyObject * _arg0;
- long _arg1;
+ char * _arg0;
+ int _arg1;
int _arg2;
- int _arg3;
- int _arg4 = (int ) 1;
- PyObject * _obj0 = 0;
- char *_kwnames[] = { "data","type","width","height","depth", NULL };
+ int _arg3 = (int ) 1;
+ char *_kwnames[] = { "bits","width","height","depth", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii|i:wxBitmapFromData",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
return NULL;
-{
- _arg0 = _obj0;
-}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxBitmap *)wxBitmapFromData(_arg0,_arg1,_arg2,_arg3,_arg4);
+ _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxIcon *)wxEmptyIcon();
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxIcon *)wxIconFromXPMData(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxCursor *)wxPyStockCursor(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
-static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxFontEncoding _result;
- char *_kwnames[] = { NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxFontEncoding )wxFont_GetDefaultEncoding();
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxFontEncoding _arg0;
- char *_kwnames[] = { "encoding", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxFont_SetDefaultEncoding(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxColour * _result;
_result = (wxColour *)wxNamedColour(*_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxGDIObject *)new_wxGDIObject();
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxGDIObject(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (bool )wxGDIObject_GetVisible(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxGDIObject_SetVisible(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (bool )wxGDIObject_IsNull(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxBitmap(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxPalette *)wxBitmap_GetPalette(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxMask *)wxBitmap_GetMask(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
_result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
wxBitmap_SetMask(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxBitmap_SetPalette(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (long )wxBitmap_GetHandle(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
wxBitmap_SetHandle(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (bool )wxBitmap_Ok(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxBitmap_GetWidth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxBitmap_GetHeight(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxBitmap_GetDepth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxBitmap_SetWidth(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxBitmap_SetHeight(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxBitmap_SetDepth(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxBitmap_SetSize(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
_result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxBitmap_GetQuality(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxBitmap_SetQuality(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxMask *)new_wxMask(*_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
_resultobj = Py_BuildValue("s",_ptemp);
wxMask_Destroy(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxIcon(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
_result = (long )wxIcon_GetHandle(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
wxIcon_SetHandle(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (bool )wxIcon_Ok(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxIcon_GetWidth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxIcon_GetHeight(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxIcon_GetDepth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxIcon_SetWidth(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxIcon_SetHeight(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxIcon_SetDepth(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxIcon_SetSize(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxIcon_CopyFromBitmap(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxCursor(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (long )wxCursor_GetHandle(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
wxCursor_SetHandle(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (bool )wxCursor_Ok(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxCursor_GetWidth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxCursor_GetHeight(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxCursor_GetDepth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxCursor_SetWidth(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxCursor_SetHeight(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxCursor_SetDepth(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxCursor_SetSize(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
-static void *SwigwxFontTowxGDIObject(void *ptr) {
- wxFont *src;
- wxGDIObject *dest;
- src = (wxFont *) ptr;
- dest = (wxGDIObject *) src;
- return (void *) dest;
-}
-
-static void *SwigwxFontTowxObject(void *ptr) {
- wxFont *src;
- wxObject *dest;
- src = (wxFont *) ptr;
- dest = (wxObject *) src;
- return (void *) dest;
-}
-
-#define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
-static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxFont * _result;
- int _arg0;
- int _arg1;
- int _arg2;
- int _arg3;
- int _arg4 = (int ) FALSE;
- char * _arg5 = (char *) "";
- wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
- char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
-
- wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
- return _resultobj;
-}
-
-#define delete_wxFont(_swigobj) (delete _swigobj)
-static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
+static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxFont * _arg0;
+ bool _result;
+ wxNativeFontInfo * _arg0;
+ wxString * _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","s", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_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;
- delete_wxFont(_arg0);
+ _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj1)
+ delete _arg1;
+}
return _resultobj;
}
-#define wxFont_Ok(_swigobj) (_swigobj->Ok())
-static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
+static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- bool _result;
- wxFont * _arg0;
+ wxString * _result;
+ wxNativeFontInfo * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxFont_Ok(_arg0);
+ _result = new wxString (wxNativeFontInfo_ToString(_arg0));
wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+}
+{
+ delete _result;
+}
return _resultobj;
}
-#define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
-static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
+static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
+ return self->ToString();
+ }
+static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxString * _result;
- wxFont * _arg0;
+ wxNativeFontInfo * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxFont_GetFaceName(_arg0));
+ _result = new wxString (wxNativeFontInfo___str__(_arg0));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
}
return _resultobj;
}
-#define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
-static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define new_wxFontMapper() (new wxFontMapper())
+static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- int _result;
- wxFont * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ wxFontMapper * _result;
+ char *_kwnames[] = { NULL };
+ char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
return NULL;
- }
- }
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxFont_GetFamily(_arg0);
+ _result = (wxFontMapper *)new_wxFontMapper();
wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
return _resultobj;
}
-#define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId())
-static PyObject *_wrap_wxFont_GetFontId(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define delete_wxFontMapper(_swigobj) (delete _swigobj)
+static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- int _result;
- wxFont * _arg0;
+ wxFontMapper * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFontId",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxFont_GetFontId(_arg0);
+ delete_wxFontMapper(_arg0);
wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
return _resultobj;
}
-#define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
-static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
+static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
+ wxFontEncoding alt_enc;
+ if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
+ return PyInt_FromLong(alt_enc);
+ else {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ }
+static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- int _result;
- wxFont * _arg0;
+ PyObject * _result;
+ wxFontMapper * _arg0;
+ wxFontEncoding _arg1;
+ wxString * _arg2 = (wxString *) &wxEmptyString;
+ bool _arg3 = (bool ) TRUE;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ PyObject * _obj2 = 0;
+ int tempbool3 = (int) TRUE;
+ char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
return NULL;
}
}
+ if (_obj2)
+{
+#if PYTHON_API_VERSION >= 1009
+ char* tmpPtr; int tmpSize;
+ if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
+ return NULL;
+ _arg2 = new wxString(tmpPtr, tmpSize);
+#else
+ if (!PyString_Check(_obj2)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
+#endif
+}
+ _arg3 = (bool ) tempbool3;
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxFont_GetPointSize(_arg0);
+ _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = _result;
+}
+{
+ if (_obj2)
+ delete _arg2;
+}
return _resultobj;
}
-#define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
-static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- int _result;
- wxFont * _arg0;
+ bool _result;
+ wxFontMapper * _arg0;
+ wxFontEncoding _arg1;
+ wxString * _arg2 = (wxString *) &wxEmptyString;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","encoding","facename", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
return NULL;
}
}
+ if (_obj2)
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxFont_GetStyle(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
+#if PYTHON_API_VERSION >= 1009
+ char* tmpPtr; int tmpSize;
+ if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
+ return NULL;
+ _arg2 = new wxString(tmpPtr, tmpSize);
+#else
+ if (!PyString_Check(_obj2)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
+#endif
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj2)
+ delete _arg2;
+}
+ return _resultobj;
+}
+
+#define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFontEncoding _result;
+ wxFontMapper * _arg0;
+ wxString * _arg1;
+ bool _arg2 = (bool ) TRUE;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ int tempbool2 = (int) TRUE;
+ char *_kwnames[] = { "self","charset","interactive", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_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
+}
+ _arg2 = (bool ) tempbool2;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxFontEncoding _arg0;
+ char *_kwnames[] = { "encoding", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxFontEncoding _arg0;
+ char *_kwnames[] = { "encoding", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+#define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
+static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFontMapper * _arg0;
+ wxWindow * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","parent", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxFontMapper_SetDialogParent(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
+static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFontMapper * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","title", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_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;
+ wxFontMapper_SetDialogTitle(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
+static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFontMapper * _arg0;
+ wxConfigBase * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","config", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxFontMapper_SetConfig(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
+static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFontMapper * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","prefix", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_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;
+ wxFontMapper_SetConfigPath(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxChar * _result;
+ char *_kwnames[] = { NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("s", _result);
+ return _resultobj;
+}
+
+static void *SwigwxFontTowxGDIObject(void *ptr) {
+ wxFont *src;
+ wxGDIObject *dest;
+ src = (wxFont *) ptr;
+ dest = (wxGDIObject *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxFontTowxObject(void *ptr) {
+ wxFont *src;
+ wxObject *dest;
+ src = (wxFont *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
+static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFont * _result;
+ int _arg0;
+ int _arg1;
+ int _arg2;
+ int _arg3;
+ int _arg4 = (int ) FALSE;
+ char * _arg5 = (char *) "";
+ wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
+ char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
+static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFont * _result;
+ wxNativeFontInfo * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "info", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define delete_wxFont(_swigobj) (delete _swigobj)
+static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFont * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ delete_wxFont(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxFont_Ok(_swigobj) (_swigobj->Ok())
+static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxFont * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxFont_Ok(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
+static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxFont * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxFont_GetPointSize(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
+static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxFont * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxFont_GetFamily(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
+static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxFont * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxFont_GetStyle(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
+static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxFont * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxFont_GetWeight(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
#define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
_result = (bool )wxFont_GetUnderlined(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
-#define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
-static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
+static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- int _result;
+ wxString * _result;
+ wxFont * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxFont_GetFaceName(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+#define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
+static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFontEncoding _result;
+ wxFont * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
+static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxNativeFontInfo * _result;
wxFont * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
+ char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxFont_GetWeight(_arg0);
+ _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
return _resultobj;
}
-#define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
-static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
+static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxFontEncoding _result;
wxFont * _arg0;
+ int _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ char *_kwnames[] = { "self","pointSize", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
+ wxFont_SetPointSize(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
return _resultobj;
}
-#define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
-static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
+static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxFont * _arg0;
- wxString * _arg1;
+ int _arg1;
PyObject * _argo0 = 0;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","faceName", NULL };
+ char *_kwnames[] = { "self","family", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_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;
- wxFont_SetFaceName(_arg0,*_arg1);
+ wxFont_SetFamily(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
-{
- if (_obj1)
- delete _arg1;
-}
return _resultobj;
}
-#define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
-static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
+static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxFont * _arg0;
int _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","family", NULL };
+ char *_kwnames[] = { "self","style", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxFont_SetFamily(_arg0,_arg1);
+ wxFont_SetStyle(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
-#define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
-static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
+static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxFont * _arg0;
int _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","pointSize", NULL };
+ char *_kwnames[] = { "self","weight", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxFont_SetPointSize(_arg0,_arg1);
+ wxFont_SetWeight(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
-#define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
-static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
+static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxFont * _arg0;
- int _arg1;
+ wxString * _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","style", NULL };
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","faceName", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_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;
- wxFont_SetStyle(_arg0,_arg1);
+ wxFont_SetFaceName(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
return _resultobj;
}
wxFont_SetUnderlined(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
-#define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
-static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
+static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxFont * _arg0;
- int _arg1;
+ wxFontEncoding _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","weight", NULL };
+ char *_kwnames[] = { "self","encoding", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxFont_SetWeight(_arg0,_arg1);
+ wxFont_SetEncoding(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
-#define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
-static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
+static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxFont * _arg0;
- wxFontEncoding _arg1;
+ wxNativeFontInfo * _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","encoding", NULL };
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","info", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxFont_SetEncoding(_arg0,_arg1);
+ wxFont_SetNativeFontInfo(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = new wxString (wxFont_GetFamilyString(_arg0));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
}
_result = new wxString (wxFont_GetStyleString(_arg0));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
}
_result = new wxString (wxFont_GetWeightString(_arg0));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
}
return _resultobj;
}
+static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFontEncoding _result;
+ char *_kwnames[] = { NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFontEncoding _arg0;
+ char *_kwnames[] = { "encoding", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxFont::SetDefaultEncoding(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
static void *SwigwxFontListTowxObject(void *ptr) {
wxFontList *src;
wxObject *dest;
wxFontList_AddFont(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
_resultobj = Py_BuildValue("s",_ptemp);
wxFontList_RemoveFont(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_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);
delete_wxColour(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (unsigned char )wxColour_Red(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("b",_result);
return _resultobj;
}
_result = (unsigned char )wxColour_Green(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("b",_result);
return _resultobj;
}
_result = (unsigned char )wxColour_Blue(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("b",_result);
return _resultobj;
}
_result = (bool )wxColour_Ok(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxColour_Set(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (PyObject *)wxColour_Get(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = _result;
}
_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);
_result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
}{
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
}
wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
_result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxPen(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (int )wxPen_GetCap(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxPen_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxPen_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
_result = (int )wxPen_GetJoin(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxPen_GetStyle(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxPen_GetWidth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxPen_Ok(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxPen_SetCap(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxPen_SetColour(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxPen_SetJoin(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxPen_SetStyle(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxPen_SetWidth(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (int )wxPen_GetDashes(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxPen_SetDashes(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
_result = (wxBitmap *)wxPen_GetStipple(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
_resultobj = Py_BuildValue("s",_ptemp);
wxPen_SetStipple(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxPenList_AddPen(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
_resultobj = Py_BuildValue("s",_ptemp);
wxPenList_RemovePen(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxBrush(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxBrush_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxBrush_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
_result = (wxBitmap *)wxBrush_GetStipple(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (int )wxBrush_GetStyle(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxBrush_Ok(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxBrush_SetColour(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxBrush_SetStipple(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxBrush_SetStyle(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxBrushList_AddBrush(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
_resultobj = Py_BuildValue("s",_ptemp);
wxBrushList_RemoveBrush(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
delete_wxDC(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_BeginDrawing(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxDC_Clear(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_CrossHair(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DestroyClippingRegion(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
wxDC_DrawPoint(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawSpline(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
wxDC_EndDoc(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_EndDrawing(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_EndPage(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxBrush *) &_result_ref;
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxBrush *) &_result_ref;
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (long )wxDC_GetCharHeight(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_GetCharWidth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
_result = (wxFont *) &_result_ref;
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (int )wxDC_GetLogicalFunction(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
_result = (int )wxDC_GetMapMode(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxDC_GetOptimization(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (wxPen *) &_result_ref;
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxColour *)wxDC_GetPixel(_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);
wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
_result = new wxSize (wxDC_GetSize(_arg0));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
_result = new wxSize (wxDC_GetSizeMM(_arg0));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxDC_GetTextBackground(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxDC_GetTextBackground(_arg0));
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxDC_GetTextForeground(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxDC_GetTextForeground(_arg0));
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
wxDC_GetUserScale(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
_result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_MaxX(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_MaxY(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_MinX(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxDC_MinY(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (bool )wxDC_Ok(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetBackground(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetBackgroundMode(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetPalette(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetBrush(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetFont(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetLogicalFunction(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetMapMode(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetOptimization(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetPen(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetTextBackground(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetTextForeground(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_SetUserScale(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (bool )wxDC_StartDoc(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
wxDC_StartPage(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (bool )wxDC_CanDrawBitmap(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxDC_CanGetTextExtent(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxDC_GetDepth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = new wxSize (wxDC_GetPPI(_arg0));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxDC_ResetBoundingBox(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
+#define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
+static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ long _result;
+ wxDC * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (long )wxDC_GetHDC(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("l",_result);
+ return _resultobj;
+}
+
static void *SwigwxMemoryDCTowxDC(void *ptr) {
wxMemoryDC *src;
wxDC *dest;
_result = (wxMemoryDC *)new_wxMemoryDC();
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
_resultobj = Py_BuildValue("s",_ptemp);
wxMemoryDC_SelectObject(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxScreenDC *)new_wxScreenDC();
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (wxClientDC *)new_wxClientDC(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxPaintDC *)new_wxPaintDC(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxWindowDC *)new_wxWindowDC(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
_resultobj = Py_BuildValue("s",_ptemp);
_result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxPalette(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxPalette_Ok(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxImageList(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxImageList_AddIcon(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (int )wxImageList_GetImageCount(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxImageList_Remove(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxImageList_RemoveAll(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{
_result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxRegion(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxRegion_Clear(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = new wxRect (wxRegion_GetBox(_arg0));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
_result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_IsEmpty(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_XorRect(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
_resultobj = Py_BuildValue("s",_ptemp);
delete_wxRegionIterator(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
_result = (long )wxRegionIterator_GetX(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxRegionIterator_GetY(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxRegionIterator_GetW(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxRegionIterator_GetWidth(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxRegionIterator_GetH(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = (long )wxRegionIterator_GetHeight(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
_result = new wxRect (wxRegionIterator_GetRect(_arg0));
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
_result = (bool )wxRegionIterator_HaveRects(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
wxRegionIterator_Reset(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
wxRegionIterator_Next(_arg0);
wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
{ "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
{ "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
{ "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
+ { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
{ "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
{ "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
{ "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
{ "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
{ "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
{ "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
- { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
- { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
- { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
- { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
- { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
- { "wxFont_GetFontId", (PyCFunction) _wrap_wxFont_GetFontId, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
- { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
+ { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
{ "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
{ "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
+ { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
+ { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
+ { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
+ { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
+ { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
{ "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
{ "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
{ "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
{ "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
{ "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
{ "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
- { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
- { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
{ "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
{ "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
{ "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
{ "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
- { "wxBitmapFromData", (PyCFunction) _wrap_wxBitmapFromData, METH_VARARGS | METH_KEYWORDS },
+ { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
{ "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
{ "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
{ "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
* This table is used by the pointer type-checker
*/
static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
- { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
{ "_signed_long","_long",0},
{ "_wxPrintQuality","_wxCoord",0},
{ "_wxPrintQuality","_int",0},
{ "_wxPrintQuality","_EBool",0},
{ "_wxPrintQuality","_size_t",0},
{ "_wxPrintQuality","_time_t",0},
- { "_class_wxRegionIterator","_wxRegionIterator",0},
- { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
- { "_wxCursor","_class_wxCursor",0},
- { "_wxMask","_class_wxMask",0},
- { "_wxPen","_class_wxPen",0},
{ "_byte","_unsigned_char",0},
- { "_wxColourDatabase","_class_wxColourDatabase",0},
{ "_long","_unsigned_long",0},
{ "_long","_signed_long",0},
- { "_wxImageList","_class_wxImageList",0},
- { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
- { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject},
{ "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
- { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject},
{ "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
- { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
{ "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
- { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
{ "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
- { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
{ "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
- { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject},
{ "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
- { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject},
{ "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
- { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject},
{ "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
- { "_wxGDIObject","_class_wxGDIObject",0},
- { "_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
{ "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
- { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
{ "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
- { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
{ "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
- { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
{ "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
- { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
{ "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
- { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
{ "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
- { "_wxDC","_class_wxDC",0},
- { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject},
- { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
- { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject},
- { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject},
- { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject},
- { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject},
- { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject},
- { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject},
- { "_class_wxObject","_class_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
- { "_class_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
- { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject},
- { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
- { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject},
- { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
- { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject},
- { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
- { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject},
- { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
- { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject},
- { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
- { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject},
- { "_class_wxObject","_wxDC",SwigwxDCTowxObject},
- { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
- { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject},
- { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
- { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject},
- { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject},
- { "_class_wxObject","_wxPen",SwigwxPenTowxObject},
- { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
- { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
- { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject},
- { "_class_wxObject","_wxColour",SwigwxColourTowxObject},
- { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject},
- { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject},
- { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject},
- { "_class_wxObject","_wxFont",SwigwxFontTowxObject},
- { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject},
- { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject},
- { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject},
- { "_class_wxObject","_wxIcon",SwigwxIconTowxObject},
- { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject},
- { "_class_wxObject","_wxMask",SwigwxMaskTowxObject},
- { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject},
- { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
- { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject},
- { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
- { "_class_wxObject","_wxObject",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_size_t","_time_t",0},
{ "_size_t","_int",0},
{ "_size_t","_wxWindowID",0},
{ "_size_t","_uint",0},
- { "_class_wxRealPoint","_wxRealPoint",0},
- { "_class_wxMask","_wxMask",0},
- { "_wxColour","_class_wxColour",0},
- { "_wxBrush","_class_wxBrush",0},
{ "_uint","_wxCoord",0},
{ "_uint","_wxPrintQuality",0},
{ "_uint","_time_t",0},
{ "_uint","_int",0},
{ "_uint","_wxWindowID",0},
{ "_wxChar","_char",0},
- { "_wxRect","_class_wxRect",0},
- { "_wxPoint","_class_wxPoint",0},
{ "_char","_wxChar",0},
- { "_wxBitmap","_class_wxBitmap",0},
- { "_wxPenList","_class_wxPenList",0},
- { "_wxWindowDC","_class_wxWindowDC",0},
- { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
- { "_class_wxColourDatabase","_wxColourDatabase",0},
+ { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
{ "_EBool","_wxCoord",0},
{ "_EBool","_wxPrintQuality",0},
{ "_EBool","_signed_int",0},
{ "_EBool","_int",0},
{ "_EBool","_wxWindowID",0},
- { "_class_wxRegion","_wxRegion",0},
- { "_wxFont","_class_wxFont",0},
{ "_unsigned_long","_long",0},
- { "_class_wxRect","_wxRect",0},
- { "_class_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
- { "_class_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
- { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
- { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
- { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
- { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
- { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
- { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
- { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
- { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
- { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
- { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
- { "_class_wxDC","_wxDC",0},
- { "_class_wxBrushList","_wxBrushList",0},
- { "_class_wxPenList","_wxPenList",0},
- { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
+ { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
{ "_signed_int","_wxCoord",0},
{ "_signed_int","_wxPrintQuality",0},
{ "_signed_int","_EBool",0},
{ "_signed_int","_wxWindowID",0},
{ "_signed_int","_int",0},
- { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
- { "_wxMetaFileDC","_class_wxMetaFileDC",0},
- { "_wxScreenDC","_class_wxScreenDC",0},
{ "_WXTYPE","_short",0},
{ "_WXTYPE","_signed_short",0},
{ "_WXTYPE","_unsigned_short",0},
- { "_class_wxBrush","_wxBrush",0},
{ "_unsigned_short","_WXTYPE",0},
{ "_unsigned_short","_short",0},
- { "_class_wxFont","_wxFont",0},
- { "_wxBusyInfo","_class_wxBusyInfo",0},
- { "_wxFontList","_class_wxFontList",0},
- { "_wxClientDC","_class_wxClientDC",0},
- { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject},
{ "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
- { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject},
{ "_wxObject","_wxRegion",SwigwxRegionTowxObject},
- { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject},
{ "_wxObject","_wxImageList",SwigwxImageListTowxObject},
- { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject},
{ "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
- { "_wxObject","_class_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
{ "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
- { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject},
{ "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
- { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject},
{ "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
- { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject},
{ "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
- { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject},
{ "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
- { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject},
{ "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
- { "_wxObject","_class_wxDC",SwigwxDCTowxObject},
{ "_wxObject","_wxDC",SwigwxDCTowxObject},
- { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
{ "_wxObject","_wxBrush",SwigwxBrushTowxObject},
- { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
{ "_wxObject","_wxPenList",SwigwxPenListTowxObject},
- { "_wxObject","_class_wxPen",SwigwxPenTowxObject},
{ "_wxObject","_wxPen",SwigwxPenTowxObject},
- { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
{ "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
- { "_wxObject","_class_wxColour",SwigwxColourTowxObject},
{ "_wxObject","_wxColour",SwigwxColourTowxObject},
- { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject},
{ "_wxObject","_wxFontList",SwigwxFontListTowxObject},
- { "_wxObject","_class_wxFont",SwigwxFontTowxObject},
{ "_wxObject","_wxFont",SwigwxFontTowxObject},
- { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject},
{ "_wxObject","_wxCursor",SwigwxCursorTowxObject},
- { "_wxObject","_class_wxIcon",SwigwxIconTowxObject},
{ "_wxObject","_wxIcon",SwigwxIconTowxObject},
- { "_wxObject","_class_wxMask",SwigwxMaskTowxObject},
{ "_wxObject","_wxMask",SwigwxMaskTowxObject},
- { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject},
{ "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
- { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject},
{ "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
- { "_wxObject","_class_wxObject",0},
- { "_class_wxPoint","_wxPoint",0},
- { "_wxRealPoint","_class_wxRealPoint",0},
{ "_signed_short","_WXTYPE",0},
{ "_signed_short","_short",0},
- { "_wxMemoryDC","_class_wxMemoryDC",0},
- { "_wxPaintDC","_class_wxPaintDC",0},
- { "_class_wxWindowDC","_wxWindowDC",0},
- { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
- { "_class_wxCursor","_wxCursor",0},
{ "_unsigned_char","_byte",0},
- { "_class_wxMetaFileDC","_wxMetaFileDC",0},
{ "_unsigned_int","_wxCoord",0},
{ "_unsigned_int","_wxPrintQuality",0},
{ "_unsigned_int","_time_t",0},
{ "_unsigned_int","_uint",0},
{ "_unsigned_int","_wxWindowID",0},
{ "_unsigned_int","_int",0},
- { "_wxIcon","_class_wxIcon",0},
- { "_class_wxPen","_wxPen",0},
{ "_short","_WXTYPE",0},
{ "_short","_unsigned_short",0},
{ "_short","_signed_short",0},
- { "_class_wxImageList","_wxImageList",0},
{ "_wxWindowID","_wxCoord",0},
{ "_wxWindowID","_wxPrintQuality",0},
{ "_wxWindowID","_time_t",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
- { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject},
- { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
- { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject},
- { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
- { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
- { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
- { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
- { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
- { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
- { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
- { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject},
- { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
- { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject},
- { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
- { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject},
- { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
- { "_class_wxGDIObject","_wxGDIObject",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
{ "_int","_time_t",0},
{ "_time_t","_wxWindowID",0},
{ "_time_t","_uint",0},
{ "_time_t","_size_t",0},
- { "_wxSize","_class_wxSize",0},
- { "_wxRegionIterator","_class_wxRegionIterator",0},
- { "_class_wxPaintDC","_wxPaintDC",0},
- { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
- { "_class_wxIcon","_wxIcon",0},
- { "_class_wxColour","_wxColour",0},
- { "_class_wxScreenDC","_wxScreenDC",0},
- { "_wxPalette","_class_wxPalette",0},
{ "_wxCoord","_int",0},
{ "_wxCoord","_signed_int",0},
{ "_wxCoord","_unsigned_int",0},
{ "_wxCoord","_size_t",0},
{ "_wxCoord","_time_t",0},
{ "_wxCoord","_wxPrintQuality",0},
- { "_wxRegion","_class_wxRegion",0},
- { "_class_wxBusyInfo","_wxBusyInfo",0},
- { "_class_wxFontList","_wxFontList",0},
- { "_class_wxClientDC","_wxClientDC",0},
- { "_wxBrushList","_class_wxBrushList",0},
- { "_class_wxSize","_wxSize",0},
- { "_class_wxBitmap","_wxBitmap",0},
- { "_class_wxMemoryDC","_wxMemoryDC",0},
- { "_class_wxPalette","_wxPalette",0},
{0,0,0}};
static PyObject *SWIG_globals;
SWIG_globals = SWIG_newvarlink();
m = Py_InitModule("gdic", gdicMethods);
d = PyModule_GetDict(m);
+ PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
+ PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
+ PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
+ PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
+ PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
+ PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
+ PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
+ PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
+ PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
+ PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
+ PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
+ PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
+ PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
+ PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
+ PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
+ PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
+ PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
+ PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
+ PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
+ PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
+ PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
+ PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
+ PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
+ PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
+ PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
+ PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
+ PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
PyDict_SetItemString(d,"cvar", SWIG_globals);
SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);