-static void *SwigwxPrinterDCTowxDC(void *ptr) {
- wxPrinterDC *src;
- wxDC *dest;
- src = (wxPrinterDC *) ptr;
- dest = (wxDC *) src;
- return (void *) dest;
-}
-
-#define new_wxPrinterDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPrinterDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
-static PyObject *_wrap_new_wxPrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxPrinterDC * _result;
- wxString * _arg0;
- wxString * _arg1;
- wxString * _arg2;
- bool _arg3 = (bool ) TRUE;
- int _arg4 = (int ) wxPORTRAIT;
- PyObject * _obj0 = 0;
- PyObject * _obj1 = 0;
- PyObject * _obj2 = 0;
- int tempbool3 = (int) TRUE;
- char *_kwnames[] = { "driver","device","output","interactive","orientation", NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:new_wxPrinterDC",_kwnames,&_obj0,&_obj1,&_obj2,&tempbool3,&_arg4))
- return NULL;
-{
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
-}
-{
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
-}
-{
- if (!PyString_Check(_obj2)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
-}
- _arg3 = (bool ) tempbool3;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrinterDC *)new_wxPrinterDC(*_arg0,*_arg1,*_arg2,_arg3,_arg4);
-
- wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrinterDC_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
-{
- if (_obj0)
- delete _arg0;
-}
-{
- if (_obj1)
- delete _arg1;
-}
-{
- if (_obj2)
- delete _arg2;
-}
- return _resultobj;
-}
-