2 * FILE : contrib/ogl/oglcanvas.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initoglcanvasc
56 #define SWIG_name "oglcanvasc"
59 #include "oglhelpers.h"
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
88 #if PYTHON_API_VERSION >= 1009
89 static char* wxStringErrorMsg
= "String or Unicode type required";
91 static char* wxStringErrorMsg
= "String type required";
94 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnBeginDragLeft
);
95 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnBeginDragRight
);
96 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnEndDragLeft
);
97 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnEndDragRight
);
98 IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnDragLeft
);
99 IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnDragRight
);
100 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnLeftClick
);
101 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnRightClick
);
105 static void *SwigwxDiagramTowxObject(void *ptr
) {
108 src
= (wxDiagram
*) ptr
;
109 dest
= (wxObject
*) src
;
110 return (void *) dest
;
113 #define new_wxDiagram() (new wxDiagram())
114 static PyObject
*_wrap_new_wxDiagram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
115 PyObject
* _resultobj
;
117 char *_kwnames
[] = { NULL
};
121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDiagram",_kwnames
))
124 wxPy_BEGIN_ALLOW_THREADS
;
125 _result
= (wxDiagram
*)new_wxDiagram();
127 wxPy_END_ALLOW_THREADS
;
129 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDiagram_p");
130 _resultobj
= Py_BuildValue("s",_ptemp
);
133 _resultobj
= Py_None
;
138 #define wxDiagram_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
139 static PyObject
*_wrap_wxDiagram_AddShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
140 PyObject
* _resultobj
;
143 wxPyShape
* _arg2
= (wxPyShape
*) NULL
;
144 PyObject
* _argo0
= 0;
145 PyObject
* _argo1
= 0;
146 PyObject
* _argo2
= 0;
147 char *_kwnames
[] = { "self","shape","addAfter", NULL
};
150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDiagram_AddShape",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_AddShape. Expected _wxDiagram_p.");
160 if (_argo1
== Py_None
) { _arg1
= NULL
; }
161 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_AddShape. Expected _wxPyShape_p.");
167 if (_argo2
== Py_None
) { _arg2
= NULL
; }
168 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPyShape_p")) {
169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDiagram_AddShape. Expected _wxPyShape_p.");
174 wxPy_BEGIN_ALLOW_THREADS
;
175 wxDiagram_AddShape(_arg0
,_arg1
,_arg2
);
177 wxPy_END_ALLOW_THREADS
;
178 } Py_INCREF(Py_None
);
179 _resultobj
= Py_None
;
183 #define wxDiagram_Clear(_swigobj,_swigarg0) (_swigobj->Clear(_swigarg0))
184 static PyObject
*_wrap_wxDiagram_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
185 PyObject
* _resultobj
;
188 PyObject
* _argo0
= 0;
189 PyObject
* _argo1
= 0;
190 char *_kwnames
[] = { "self","dc", NULL
};
193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_Clear",_kwnames
,&_argo0
,&_argo1
))
196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_Clear. Expected _wxDiagram_p.");
203 if (_argo1
== Py_None
) { _arg1
= NULL
; }
204 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_Clear. Expected _wxDC_p.");
210 wxPy_BEGIN_ALLOW_THREADS
;
211 wxDiagram_Clear(_arg0
,*_arg1
);
213 wxPy_END_ALLOW_THREADS
;
214 } Py_INCREF(Py_None
);
215 _resultobj
= Py_None
;
219 #define wxDiagram_DeleteAllShapes(_swigobj) (_swigobj->DeleteAllShapes())
220 static PyObject
*_wrap_wxDiagram_DeleteAllShapes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
221 PyObject
* _resultobj
;
223 PyObject
* _argo0
= 0;
224 char *_kwnames
[] = { "self", NULL
};
227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_DeleteAllShapes",_kwnames
,&_argo0
))
230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_DeleteAllShapes. Expected _wxDiagram_p.");
237 wxPy_BEGIN_ALLOW_THREADS
;
238 wxDiagram_DeleteAllShapes(_arg0
);
240 wxPy_END_ALLOW_THREADS
;
241 } Py_INCREF(Py_None
);
242 _resultobj
= Py_None
;
246 #define wxDiagram_DrawOutline(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawOutline(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
247 static PyObject
*_wrap_wxDiagram_DrawOutline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
248 PyObject
* _resultobj
;
255 PyObject
* _argo0
= 0;
256 PyObject
* _argo1
= 0;
257 char *_kwnames
[] = { "self","dc","x1","y1","x2","y2", NULL
};
260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOdddd:wxDiagram_DrawOutline",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_DrawOutline. Expected _wxDiagram_p.");
270 if (_argo1
== Py_None
) { _arg1
= NULL
; }
271 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_DrawOutline. Expected _wxDC_p.");
277 wxPy_BEGIN_ALLOW_THREADS
;
278 wxDiagram_DrawOutline(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
280 wxPy_END_ALLOW_THREADS
;
281 } Py_INCREF(Py_None
);
282 _resultobj
= Py_None
;
286 #define wxDiagram_FindShape(_swigobj,_swigarg0) (_swigobj->FindShape(_swigarg0))
287 static PyObject
*_wrap_wxDiagram_FindShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
288 PyObject
* _resultobj
;
292 PyObject
* _argo0
= 0;
293 char *_kwnames
[] = { "self","id", NULL
};
296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDiagram_FindShape",_kwnames
,&_argo0
,&_arg1
))
299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_FindShape. Expected _wxDiagram_p.");
306 wxPy_BEGIN_ALLOW_THREADS
;
307 _result
= (wxPyShape
*)wxDiagram_FindShape(_arg0
,_arg1
);
309 wxPy_END_ALLOW_THREADS
;
310 }{ _resultobj
= wxPyMake_wxObject(_result
); }
314 #define wxDiagram_GetCanvas(_swigobj) (_swigobj->GetCanvas())
315 static PyObject
*_wrap_wxDiagram_GetCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
316 PyObject
* _resultobj
;
317 wxPyShapeCanvas
* _result
;
319 PyObject
* _argo0
= 0;
320 char *_kwnames
[] = { "self", NULL
};
323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetCanvas",_kwnames
,&_argo0
))
326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetCanvas. Expected _wxDiagram_p.");
333 wxPy_BEGIN_ALLOW_THREADS
;
334 _result
= (wxPyShapeCanvas
*)wxDiagram_GetCanvas(_arg0
);
336 wxPy_END_ALLOW_THREADS
;
337 }{ _resultobj
= wxPyMake_wxObject(_result
); }
341 #define wxDiagram_GetCount(_swigobj) (_swigobj->GetCount())
342 static PyObject
*_wrap_wxDiagram_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
343 PyObject
* _resultobj
;
346 PyObject
* _argo0
= 0;
347 char *_kwnames
[] = { "self", NULL
};
350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetCount",_kwnames
,&_argo0
))
353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetCount. Expected _wxDiagram_p.");
360 wxPy_BEGIN_ALLOW_THREADS
;
361 _result
= (int )wxDiagram_GetCount(_arg0
);
363 wxPy_END_ALLOW_THREADS
;
364 } _resultobj
= Py_BuildValue("i",_result
);
368 #define wxDiagram_GetGridSpacing(_swigobj) (_swigobj->GetGridSpacing())
369 static PyObject
*_wrap_wxDiagram_GetGridSpacing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
370 PyObject
* _resultobj
;
373 PyObject
* _argo0
= 0;
374 char *_kwnames
[] = { "self", NULL
};
377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetGridSpacing",_kwnames
,&_argo0
))
380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetGridSpacing. Expected _wxDiagram_p.");
387 wxPy_BEGIN_ALLOW_THREADS
;
388 _result
= (double )wxDiagram_GetGridSpacing(_arg0
);
390 wxPy_END_ALLOW_THREADS
;
391 } _resultobj
= Py_BuildValue("d",_result
);
395 #define wxDiagram_GetMouseTolerance(_swigobj) (_swigobj->GetMouseTolerance())
396 static PyObject
*_wrap_wxDiagram_GetMouseTolerance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
397 PyObject
* _resultobj
;
400 PyObject
* _argo0
= 0;
401 char *_kwnames
[] = { "self", NULL
};
404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetMouseTolerance",_kwnames
,&_argo0
))
407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetMouseTolerance. Expected _wxDiagram_p.");
414 wxPy_BEGIN_ALLOW_THREADS
;
415 _result
= (int )wxDiagram_GetMouseTolerance(_arg0
);
417 wxPy_END_ALLOW_THREADS
;
418 } _resultobj
= Py_BuildValue("i",_result
);
422 static PyObject
* wxDiagram_GetShapeList(wxDiagram
*self
) {
423 wxList
* list
= self
->GetShapeList();
424 return wxPy_ConvertList(list
, "wxPyShape");
426 static PyObject
*_wrap_wxDiagram_GetShapeList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
427 PyObject
* _resultobj
;
430 PyObject
* _argo0
= 0;
431 char *_kwnames
[] = { "self", NULL
};
434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetShapeList",_kwnames
,&_argo0
))
437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetShapeList. Expected _wxDiagram_p.");
444 wxPy_BEGIN_ALLOW_THREADS
;
445 _result
= (PyObject
*)wxDiagram_GetShapeList(_arg0
);
447 wxPy_END_ALLOW_THREADS
;
449 _resultobj
= _result
;
454 #define wxDiagram_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
455 static PyObject
*_wrap_wxDiagram_GetQuickEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
456 PyObject
* _resultobj
;
459 PyObject
* _argo0
= 0;
460 char *_kwnames
[] = { "self", NULL
};
463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetQuickEditMode",_kwnames
,&_argo0
))
466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetQuickEditMode. Expected _wxDiagram_p.");
473 wxPy_BEGIN_ALLOW_THREADS
;
474 _result
= (bool )wxDiagram_GetQuickEditMode(_arg0
);
476 wxPy_END_ALLOW_THREADS
;
477 } _resultobj
= Py_BuildValue("i",_result
);
481 #define wxDiagram_GetSnapToGrid(_swigobj) (_swigobj->GetSnapToGrid())
482 static PyObject
*_wrap_wxDiagram_GetSnapToGrid(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
483 PyObject
* _resultobj
;
486 PyObject
* _argo0
= 0;
487 char *_kwnames
[] = { "self", NULL
};
490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetSnapToGrid",_kwnames
,&_argo0
))
493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetSnapToGrid. Expected _wxDiagram_p.");
500 wxPy_BEGIN_ALLOW_THREADS
;
501 _result
= (bool )wxDiagram_GetSnapToGrid(_arg0
);
503 wxPy_END_ALLOW_THREADS
;
504 } _resultobj
= Py_BuildValue("i",_result
);
508 #define wxDiagram_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
509 static PyObject
*_wrap_wxDiagram_InsertShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
510 PyObject
* _resultobj
;
513 PyObject
* _argo0
= 0;
514 PyObject
* _argo1
= 0;
515 char *_kwnames
[] = { "self","shape", NULL
};
518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_InsertShape",_kwnames
,&_argo0
,&_argo1
))
521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_InsertShape. Expected _wxDiagram_p.");
528 if (_argo1
== Py_None
) { _arg1
= NULL
; }
529 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_InsertShape. Expected _wxPyShape_p.");
535 wxPy_BEGIN_ALLOW_THREADS
;
536 wxDiagram_InsertShape(_arg0
,_arg1
);
538 wxPy_END_ALLOW_THREADS
;
539 } Py_INCREF(Py_None
);
540 _resultobj
= Py_None
;
544 #define wxDiagram_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
545 static PyObject
*_wrap_wxDiagram_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
546 PyObject
* _resultobj
;
550 PyObject
* _argo0
= 0;
551 PyObject
* _obj1
= 0;
552 char *_kwnames
[] = { "self","filename", NULL
};
555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_LoadFile",_kwnames
,&_argo0
,&_obj1
))
558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_LoadFile. Expected _wxDiagram_p.");
565 #if PYTHON_API_VERSION >= 1009
566 char* tmpPtr
; int tmpSize
;
567 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
568 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
571 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
573 _arg1
= new wxString(tmpPtr
, tmpSize
);
575 if (!PyString_Check(_obj1
)) {
576 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
579 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
583 wxPy_BEGIN_ALLOW_THREADS
;
584 _result
= (bool )wxDiagram_LoadFile(_arg0
,*_arg1
);
586 wxPy_END_ALLOW_THREADS
;
587 } _resultobj
= Py_BuildValue("i",_result
);
595 #define wxDiagram_ReadContainerGeometry(_swigobj,_swigarg0) (_swigobj->ReadContainerGeometry(_swigarg0))
596 static PyObject
*_wrap_wxDiagram_ReadContainerGeometry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
597 PyObject
* _resultobj
;
599 wxExprDatabase
* _arg1
;
600 PyObject
* _argo0
= 0;
601 PyObject
* _argo1
= 0;
602 char *_kwnames
[] = { "self","database", NULL
};
605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_ReadContainerGeometry",_kwnames
,&_argo0
,&_argo1
))
608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_ReadContainerGeometry. Expected _wxDiagram_p.");
615 if (_argo1
== Py_None
) { _arg1
= NULL
; }
616 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxExprDatabase_p")) {
617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_ReadContainerGeometry. Expected _wxExprDatabase_p.");
622 wxPy_BEGIN_ALLOW_THREADS
;
623 wxDiagram_ReadContainerGeometry(_arg0
,*_arg1
);
625 wxPy_END_ALLOW_THREADS
;
626 } Py_INCREF(Py_None
);
627 _resultobj
= Py_None
;
631 #define wxDiagram_ReadLines(_swigobj,_swigarg0) (_swigobj->ReadLines(_swigarg0))
632 static PyObject
*_wrap_wxDiagram_ReadLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
633 PyObject
* _resultobj
;
635 wxExprDatabase
* _arg1
;
636 PyObject
* _argo0
= 0;
637 PyObject
* _argo1
= 0;
638 char *_kwnames
[] = { "self","database", NULL
};
641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_ReadLines",_kwnames
,&_argo0
,&_argo1
))
644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_ReadLines. Expected _wxDiagram_p.");
651 if (_argo1
== Py_None
) { _arg1
= NULL
; }
652 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxExprDatabase_p")) {
653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_ReadLines. Expected _wxExprDatabase_p.");
658 wxPy_BEGIN_ALLOW_THREADS
;
659 wxDiagram_ReadLines(_arg0
,*_arg1
);
661 wxPy_END_ALLOW_THREADS
;
662 } Py_INCREF(Py_None
);
663 _resultobj
= Py_None
;
667 #define wxDiagram_ReadNodes(_swigobj,_swigarg0) (_swigobj->ReadNodes(_swigarg0))
668 static PyObject
*_wrap_wxDiagram_ReadNodes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
669 PyObject
* _resultobj
;
671 wxExprDatabase
* _arg1
;
672 PyObject
* _argo0
= 0;
673 PyObject
* _argo1
= 0;
674 char *_kwnames
[] = { "self","database", NULL
};
677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_ReadNodes",_kwnames
,&_argo0
,&_argo1
))
680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_ReadNodes. Expected _wxDiagram_p.");
687 if (_argo1
== Py_None
) { _arg1
= NULL
; }
688 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxExprDatabase_p")) {
689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_ReadNodes. Expected _wxExprDatabase_p.");
694 wxPy_BEGIN_ALLOW_THREADS
;
695 wxDiagram_ReadNodes(_arg0
,*_arg1
);
697 wxPy_END_ALLOW_THREADS
;
698 } Py_INCREF(Py_None
);
699 _resultobj
= Py_None
;
703 #define wxDiagram_RecentreAll(_swigobj,_swigarg0) (_swigobj->RecentreAll(_swigarg0))
704 static PyObject
*_wrap_wxDiagram_RecentreAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
705 PyObject
* _resultobj
;
708 PyObject
* _argo0
= 0;
709 PyObject
* _argo1
= 0;
710 char *_kwnames
[] = { "self","dc", NULL
};
713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_RecentreAll",_kwnames
,&_argo0
,&_argo1
))
716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_RecentreAll. Expected _wxDiagram_p.");
723 if (_argo1
== Py_None
) { _arg1
= NULL
; }
724 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_RecentreAll. Expected _wxDC_p.");
730 wxPy_BEGIN_ALLOW_THREADS
;
731 wxDiagram_RecentreAll(_arg0
,*_arg1
);
733 wxPy_END_ALLOW_THREADS
;
734 } Py_INCREF(Py_None
);
735 _resultobj
= Py_None
;
739 #define wxDiagram_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
740 static PyObject
*_wrap_wxDiagram_Redraw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
741 PyObject
* _resultobj
;
744 PyObject
* _argo0
= 0;
745 PyObject
* _argo1
= 0;
746 char *_kwnames
[] = { "self","dc", NULL
};
749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_Redraw",_kwnames
,&_argo0
,&_argo1
))
752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_Redraw. Expected _wxDiagram_p.");
759 if (_argo1
== Py_None
) { _arg1
= NULL
; }
760 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_Redraw. Expected _wxDC_p.");
766 wxPy_BEGIN_ALLOW_THREADS
;
767 wxDiagram_Redraw(_arg0
,*_arg1
);
769 wxPy_END_ALLOW_THREADS
;
770 } Py_INCREF(Py_None
);
771 _resultobj
= Py_None
;
775 #define wxDiagram_RemoveAllShapes(_swigobj) (_swigobj->RemoveAllShapes())
776 static PyObject
*_wrap_wxDiagram_RemoveAllShapes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
777 PyObject
* _resultobj
;
779 PyObject
* _argo0
= 0;
780 char *_kwnames
[] = { "self", NULL
};
783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_RemoveAllShapes",_kwnames
,&_argo0
))
786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_RemoveAllShapes. Expected _wxDiagram_p.");
793 wxPy_BEGIN_ALLOW_THREADS
;
794 wxDiagram_RemoveAllShapes(_arg0
);
796 wxPy_END_ALLOW_THREADS
;
797 } Py_INCREF(Py_None
);
798 _resultobj
= Py_None
;
802 #define wxDiagram_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
803 static PyObject
*_wrap_wxDiagram_RemoveShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
804 PyObject
* _resultobj
;
807 PyObject
* _argo0
= 0;
808 PyObject
* _argo1
= 0;
809 char *_kwnames
[] = { "self","shape", NULL
};
812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_RemoveShape",_kwnames
,&_argo0
,&_argo1
))
815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_RemoveShape. Expected _wxDiagram_p.");
822 if (_argo1
== Py_None
) { _arg1
= NULL
; }
823 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_RemoveShape. Expected _wxPyShape_p.");
829 wxPy_BEGIN_ALLOW_THREADS
;
830 wxDiagram_RemoveShape(_arg0
,_arg1
);
832 wxPy_END_ALLOW_THREADS
;
833 } Py_INCREF(Py_None
);
834 _resultobj
= Py_None
;
838 #define wxDiagram_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
839 static PyObject
*_wrap_wxDiagram_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
840 PyObject
* _resultobj
;
844 PyObject
* _argo0
= 0;
845 PyObject
* _obj1
= 0;
846 char *_kwnames
[] = { "self","filename", NULL
};
849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_SaveFile",_kwnames
,&_argo0
,&_obj1
))
852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SaveFile. Expected _wxDiagram_p.");
859 #if PYTHON_API_VERSION >= 1009
860 char* tmpPtr
; int tmpSize
;
861 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
862 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
865 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
867 _arg1
= new wxString(tmpPtr
, tmpSize
);
869 if (!PyString_Check(_obj1
)) {
870 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
873 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
877 wxPy_BEGIN_ALLOW_THREADS
;
878 _result
= (bool )wxDiagram_SaveFile(_arg0
,*_arg1
);
880 wxPy_END_ALLOW_THREADS
;
881 } _resultobj
= Py_BuildValue("i",_result
);
889 #define wxDiagram_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
890 static PyObject
*_wrap_wxDiagram_SetCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
891 PyObject
* _resultobj
;
893 wxPyShapeCanvas
* _arg1
;
894 PyObject
* _argo0
= 0;
895 PyObject
* _argo1
= 0;
896 char *_kwnames
[] = { "self","canvas", NULL
};
899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_SetCanvas",_kwnames
,&_argo0
,&_argo1
))
902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetCanvas. Expected _wxDiagram_p.");
909 if (_argo1
== Py_None
) { _arg1
= NULL
; }
910 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShapeCanvas_p")) {
911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_SetCanvas. Expected _wxPyShapeCanvas_p.");
916 wxPy_BEGIN_ALLOW_THREADS
;
917 wxDiagram_SetCanvas(_arg0
,_arg1
);
919 wxPy_END_ALLOW_THREADS
;
920 } Py_INCREF(Py_None
);
921 _resultobj
= Py_None
;
925 #define wxDiagram_SetGridSpacing(_swigobj,_swigarg0) (_swigobj->SetGridSpacing(_swigarg0))
926 static PyObject
*_wrap_wxDiagram_SetGridSpacing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
927 PyObject
* _resultobj
;
930 PyObject
* _argo0
= 0;
931 char *_kwnames
[] = { "self","spacing", NULL
};
934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Od:wxDiagram_SetGridSpacing",_kwnames
,&_argo0
,&_arg1
))
937 if (_argo0
== Py_None
) { _arg0
= NULL
; }
938 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetGridSpacing. Expected _wxDiagram_p.");
944 wxPy_BEGIN_ALLOW_THREADS
;
945 wxDiagram_SetGridSpacing(_arg0
,_arg1
);
947 wxPy_END_ALLOW_THREADS
;
948 } Py_INCREF(Py_None
);
949 _resultobj
= Py_None
;
953 #define wxDiagram_SetMouseTolerance(_swigobj,_swigarg0) (_swigobj->SetMouseTolerance(_swigarg0))
954 static PyObject
*_wrap_wxDiagram_SetMouseTolerance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
955 PyObject
* _resultobj
;
958 PyObject
* _argo0
= 0;
959 char *_kwnames
[] = { "self","tolerance", NULL
};
962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_SetMouseTolerance",_kwnames
,&_argo0
,&_arg1
))
965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetMouseTolerance. Expected _wxDiagram_p.");
972 wxPy_BEGIN_ALLOW_THREADS
;
973 wxDiagram_SetMouseTolerance(_arg0
,_arg1
);
975 wxPy_END_ALLOW_THREADS
;
976 } Py_INCREF(Py_None
);
977 _resultobj
= Py_None
;
981 #define wxDiagram_SetQuickEditMode(_swigobj,_swigarg0) (_swigobj->SetQuickEditMode(_swigarg0))
982 static PyObject
*_wrap_wxDiagram_SetQuickEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
983 PyObject
* _resultobj
;
986 PyObject
* _argo0
= 0;
988 char *_kwnames
[] = { "self","mode", NULL
};
991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_SetQuickEditMode",_kwnames
,&_argo0
,&tempbool1
))
994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetQuickEditMode. Expected _wxDiagram_p.");
1000 _arg1
= (bool ) tempbool1
;
1002 wxPy_BEGIN_ALLOW_THREADS
;
1003 wxDiagram_SetQuickEditMode(_arg0
,_arg1
);
1005 wxPy_END_ALLOW_THREADS
;
1006 } Py_INCREF(Py_None
);
1007 _resultobj
= Py_None
;
1011 #define wxDiagram_SetSnapToGrid(_swigobj,_swigarg0) (_swigobj->SetSnapToGrid(_swigarg0))
1012 static PyObject
*_wrap_wxDiagram_SetSnapToGrid(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1013 PyObject
* _resultobj
;
1016 PyObject
* _argo0
= 0;
1018 char *_kwnames
[] = { "self","snap", NULL
};
1021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_SetSnapToGrid",_kwnames
,&_argo0
,&tempbool1
))
1024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
1026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetSnapToGrid. Expected _wxDiagram_p.");
1030 _arg1
= (bool ) tempbool1
;
1032 wxPy_BEGIN_ALLOW_THREADS
;
1033 wxDiagram_SetSnapToGrid(_arg0
,_arg1
);
1035 wxPy_END_ALLOW_THREADS
;
1036 } Py_INCREF(Py_None
);
1037 _resultobj
= Py_None
;
1041 #define wxDiagram_ShowAll(_swigobj,_swigarg0) (_swigobj->ShowAll(_swigarg0))
1042 static PyObject
*_wrap_wxDiagram_ShowAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1043 PyObject
* _resultobj
;
1046 PyObject
* _argo0
= 0;
1048 char *_kwnames
[] = { "self","show", NULL
};
1051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_ShowAll",_kwnames
,&_argo0
,&tempbool1
))
1054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
1056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_ShowAll. Expected _wxDiagram_p.");
1060 _arg1
= (bool ) tempbool1
;
1062 wxPy_BEGIN_ALLOW_THREADS
;
1063 wxDiagram_ShowAll(_arg0
,_arg1
);
1065 wxPy_END_ALLOW_THREADS
;
1066 } Py_INCREF(Py_None
);
1067 _resultobj
= Py_None
;
1071 #define wxDiagram_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
1072 static PyObject
*_wrap_wxDiagram_Snap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1073 PyObject
* _resultobj
;
1077 PyObject
* _argo0
= 0;
1079 PyObject
* _obj1
= 0;
1081 PyObject
* _obj2
= 0;
1082 char *_kwnames
[] = { "self","INOUT","INOUT", NULL
};
1085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDiagram_Snap",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1088 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1089 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
1090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_Snap. Expected _wxDiagram_p.");
1095 temp
= PyFloat_AsDouble(_obj1
);
1099 temp0
= PyFloat_AsDouble(_obj2
);
1103 wxPy_BEGIN_ALLOW_THREADS
;
1104 wxDiagram_Snap(_arg0
,_arg1
,_arg2
);
1106 wxPy_END_ALLOW_THREADS
;
1107 } Py_INCREF(Py_None
);
1108 _resultobj
= Py_None
;
1111 o
= PyFloat_FromDouble((double) (*_arg1
));
1112 _resultobj
= t_output_helper(_resultobj
, o
);
1116 o
= PyFloat_FromDouble((double) (*_arg2
));
1117 _resultobj
= t_output_helper(_resultobj
, o
);
1122 static void *SwigwxPyShapeCanvasTowxScrolledWindow(void *ptr
) {
1123 wxPyShapeCanvas
*src
;
1124 wxScrolledWindow
*dest
;
1125 src
= (wxPyShapeCanvas
*) ptr
;
1126 dest
= (wxScrolledWindow
*) src
;
1127 return (void *) dest
;
1130 static void *SwigwxPyShapeCanvasTowxPanel(void *ptr
) {
1131 wxPyShapeCanvas
*src
;
1133 src
= (wxPyShapeCanvas
*) ptr
;
1134 dest
= (wxPanel
*) src
;
1135 return (void *) dest
;
1138 static void *SwigwxPyShapeCanvasTowxWindow(void *ptr
) {
1139 wxPyShapeCanvas
*src
;
1141 src
= (wxPyShapeCanvas
*) ptr
;
1142 dest
= (wxWindow
*) src
;
1143 return (void *) dest
;
1146 static void *SwigwxPyShapeCanvasTowxEvtHandler(void *ptr
) {
1147 wxPyShapeCanvas
*src
;
1149 src
= (wxPyShapeCanvas
*) ptr
;
1150 dest
= (wxEvtHandler
*) src
;
1151 return (void *) dest
;
1154 static void *SwigwxPyShapeCanvasTowxObject(void *ptr
) {
1155 wxPyShapeCanvas
*src
;
1157 src
= (wxPyShapeCanvas
*) ptr
;
1158 dest
= (wxObject
*) src
;
1159 return (void *) dest
;
1162 #define new_wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1163 static PyObject
*_wrap_new_wxPyShapeCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1164 PyObject
* _resultobj
;
1165 wxPyShapeCanvas
* _result
;
1166 wxWindow
* _arg0
= (wxWindow
*) NULL
;
1167 wxWindowID _arg1
= (wxWindowID
) -1;
1168 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
1169 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
1170 long _arg4
= (long ) wxBORDER
;
1171 PyObject
* _argo0
= 0;
1173 PyObject
* _obj2
= 0;
1175 PyObject
* _obj3
= 0;
1176 char *_kwnames
[] = { "parent","id","pos","size","style", NULL
};
1180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOl:new_wxPyShapeCanvas",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
1183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyShapeCanvas. Expected _wxWindow_p.");
1192 if (! wxPoint_helper(_obj2
, &_arg2
))
1198 if (! wxSize_helper(_obj3
, &_arg3
))
1202 wxPy_BEGIN_ALLOW_THREADS
;
1203 _result
= (wxPyShapeCanvas
*)new_wxPyShapeCanvas(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
1205 wxPy_END_ALLOW_THREADS
;
1207 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyShapeCanvas_p");
1208 _resultobj
= Py_BuildValue("s",_ptemp
);
1211 _resultobj
= Py_None
;
1216 #define wxPyShapeCanvas__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1217 static PyObject
*_wrap_wxPyShapeCanvas__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1218 PyObject
* _resultobj
;
1219 wxPyShapeCanvas
* _arg0
;
1222 PyObject
* _argo0
= 0;
1223 PyObject
* _obj1
= 0;
1224 PyObject
* _obj2
= 0;
1225 char *_kwnames
[] = { "self","self","_class", NULL
};
1228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyShapeCanvas__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas__setCallbackInfo. Expected _wxPyShapeCanvas_p.");
1244 wxPy_BEGIN_ALLOW_THREADS
;
1245 wxPyShapeCanvas__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1247 wxPy_END_ALLOW_THREADS
;
1248 } Py_INCREF(Py_None
);
1249 _resultobj
= Py_None
;
1253 #define wxPyShapeCanvas_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
1254 static PyObject
*_wrap_wxPyShapeCanvas_AddShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1255 PyObject
* _resultobj
;
1256 wxPyShapeCanvas
* _arg0
;
1258 wxPyShape
* _arg2
= (wxPyShape
*) NULL
;
1259 PyObject
* _argo0
= 0;
1260 PyObject
* _argo1
= 0;
1261 PyObject
* _argo2
= 0;
1262 char *_kwnames
[] = { "self","shape","addAfter", NULL
};
1265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxPyShapeCanvas_AddShape",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
1268 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1269 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_AddShape. Expected _wxPyShapeCanvas_p.");
1275 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1276 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
1277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1282 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1283 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPyShape_p")) {
1284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1289 wxPy_BEGIN_ALLOW_THREADS
;
1290 wxPyShapeCanvas_AddShape(_arg0
,_arg1
,_arg2
);
1292 wxPy_END_ALLOW_THREADS
;
1293 } Py_INCREF(Py_None
);
1294 _resultobj
= Py_None
;
1298 #define wxPyShapeCanvas_FindShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->FindShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1299 static PyObject
*_wrap_wxPyShapeCanvas_FindShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1300 PyObject
* _resultobj
;
1301 wxPyShape
* _result
;
1302 wxPyShapeCanvas
* _arg0
;
1307 wxClassInfo
* _arg4
= (wxClassInfo
*) NULL
;
1308 wxPyShape
* _arg5
= (wxPyShape
*) NULL
;
1309 PyObject
* _argo0
= 0;
1310 PyObject
* _argo4
= 0;
1311 PyObject
* _argo5
= 0;
1312 char *_kwnames
[] = { "self","x1","y","info","notImage", NULL
};
1318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|OO:wxPyShapeCanvas_FindShape",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo4
,&_argo5
))
1321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_FindShape. Expected _wxPyShapeCanvas_p.");
1328 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1329 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxClassInfo_p")) {
1330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPyShapeCanvas_FindShape. Expected _wxClassInfo_p.");
1335 if (_argo5
== Py_None
) { _arg5
= NULL
; }
1336 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxPyShape_p")) {
1337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxPyShapeCanvas_FindShape. Expected _wxPyShape_p.");
1342 wxPy_BEGIN_ALLOW_THREADS
;
1343 _result
= (wxPyShape
*)wxPyShapeCanvas_FindShape(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1345 wxPy_END_ALLOW_THREADS
;
1346 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1349 o
= PyInt_FromLong((long) (*_arg3
));
1350 _resultobj
= t_output_helper(_resultobj
, o
);
1355 #define wxPyShapeCanvas_FindFirstSensitiveShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FindFirstSensitiveShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1356 static PyObject
*_wrap_wxPyShapeCanvas_FindFirstSensitiveShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1357 PyObject
* _resultobj
;
1358 wxPyShape
* _result
;
1359 wxPyShapeCanvas
* _arg0
;
1365 PyObject
* _argo0
= 0;
1366 char *_kwnames
[] = { "self","x1","y","op", NULL
};
1372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oddi:wxPyShapeCanvas_FindFirstSensitiveShape",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg4
))
1375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_FindFirstSensitiveShape. Expected _wxPyShapeCanvas_p.");
1382 wxPy_BEGIN_ALLOW_THREADS
;
1383 _result
= (wxPyShape
*)wxPyShapeCanvas_FindFirstSensitiveShape(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1385 wxPy_END_ALLOW_THREADS
;
1386 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1389 o
= PyInt_FromLong((long) (*_arg3
));
1390 _resultobj
= t_output_helper(_resultobj
, o
);
1395 #define wxPyShapeCanvas_GetDiagram(_swigobj) (_swigobj->GetDiagram())
1396 static PyObject
*_wrap_wxPyShapeCanvas_GetDiagram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1397 PyObject
* _resultobj
;
1398 wxDiagram
* _result
;
1399 wxPyShapeCanvas
* _arg0
;
1400 PyObject
* _argo0
= 0;
1401 char *_kwnames
[] = { "self", NULL
};
1404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyShapeCanvas_GetDiagram",_kwnames
,&_argo0
))
1407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_GetDiagram. Expected _wxPyShapeCanvas_p.");
1414 wxPy_BEGIN_ALLOW_THREADS
;
1415 _result
= (wxDiagram
*)wxPyShapeCanvas_GetDiagram(_arg0
);
1417 wxPy_END_ALLOW_THREADS
;
1418 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1422 #define wxPyShapeCanvas_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
1423 static PyObject
*_wrap_wxPyShapeCanvas_GetQuickEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1424 PyObject
* _resultobj
;
1426 wxPyShapeCanvas
* _arg0
;
1427 PyObject
* _argo0
= 0;
1428 char *_kwnames
[] = { "self", NULL
};
1431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyShapeCanvas_GetQuickEditMode",_kwnames
,&_argo0
))
1434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_GetQuickEditMode. Expected _wxPyShapeCanvas_p.");
1441 wxPy_BEGIN_ALLOW_THREADS
;
1442 _result
= (bool )wxPyShapeCanvas_GetQuickEditMode(_arg0
);
1444 wxPy_END_ALLOW_THREADS
;
1445 } _resultobj
= Py_BuildValue("i",_result
);
1449 #define wxPyShapeCanvas_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
1450 static PyObject
*_wrap_wxPyShapeCanvas_InsertShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1451 PyObject
* _resultobj
;
1452 wxPyShapeCanvas
* _arg0
;
1454 PyObject
* _argo0
= 0;
1455 PyObject
* _argo1
= 0;
1456 char *_kwnames
[] = { "self","shape", NULL
};
1459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_InsertShape",_kwnames
,&_argo0
,&_argo1
))
1462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_InsertShape. Expected _wxPyShapeCanvas_p.");
1469 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1470 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
1471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_InsertShape. Expected _wxPyShape_p.");
1476 wxPy_BEGIN_ALLOW_THREADS
;
1477 wxPyShapeCanvas_InsertShape(_arg0
,_arg1
);
1479 wxPy_END_ALLOW_THREADS
;
1480 } Py_INCREF(Py_None
);
1481 _resultobj
= Py_None
;
1485 #define wxPyShapeCanvas_base_OnBeginDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragLeft(_swigarg0,_swigarg1,_swigarg2))
1486 static PyObject
*_wrap_wxPyShapeCanvas_base_OnBeginDragLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1487 PyObject
* _resultobj
;
1488 wxPyShapeCanvas
* _arg0
;
1491 int _arg3
= (int ) 0;
1492 PyObject
* _argo0
= 0;
1493 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnBeginDragLeft",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragLeft. Expected _wxPyShapeCanvas_p.");
1506 wxPy_BEGIN_ALLOW_THREADS
;
1507 wxPyShapeCanvas_base_OnBeginDragLeft(_arg0
,_arg1
,_arg2
,_arg3
);
1509 wxPy_END_ALLOW_THREADS
;
1510 } Py_INCREF(Py_None
);
1511 _resultobj
= Py_None
;
1515 #define wxPyShapeCanvas_base_OnBeginDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragRight(_swigarg0,_swigarg1,_swigarg2))
1516 static PyObject
*_wrap_wxPyShapeCanvas_base_OnBeginDragRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1517 PyObject
* _resultobj
;
1518 wxPyShapeCanvas
* _arg0
;
1521 int _arg3
= (int ) 0;
1522 PyObject
* _argo0
= 0;
1523 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnBeginDragRight",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragRight. Expected _wxPyShapeCanvas_p.");
1536 wxPy_BEGIN_ALLOW_THREADS
;
1537 wxPyShapeCanvas_base_OnBeginDragRight(_arg0
,_arg1
,_arg2
,_arg3
);
1539 wxPy_END_ALLOW_THREADS
;
1540 } Py_INCREF(Py_None
);
1541 _resultobj
= Py_None
;
1545 #define wxPyShapeCanvas_base_OnEndDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragLeft(_swigarg0,_swigarg1,_swigarg2))
1546 static PyObject
*_wrap_wxPyShapeCanvas_base_OnEndDragLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1547 PyObject
* _resultobj
;
1548 wxPyShapeCanvas
* _arg0
;
1551 int _arg3
= (int ) 0;
1552 PyObject
* _argo0
= 0;
1553 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnEndDragLeft",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragLeft. Expected _wxPyShapeCanvas_p.");
1566 wxPy_BEGIN_ALLOW_THREADS
;
1567 wxPyShapeCanvas_base_OnEndDragLeft(_arg0
,_arg1
,_arg2
,_arg3
);
1569 wxPy_END_ALLOW_THREADS
;
1570 } Py_INCREF(Py_None
);
1571 _resultobj
= Py_None
;
1575 #define wxPyShapeCanvas_base_OnEndDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragRight(_swigarg0,_swigarg1,_swigarg2))
1576 static PyObject
*_wrap_wxPyShapeCanvas_base_OnEndDragRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1577 PyObject
* _resultobj
;
1578 wxPyShapeCanvas
* _arg0
;
1581 int _arg3
= (int ) 0;
1582 PyObject
* _argo0
= 0;
1583 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnEndDragRight",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragRight. Expected _wxPyShapeCanvas_p.");
1596 wxPy_BEGIN_ALLOW_THREADS
;
1597 wxPyShapeCanvas_base_OnEndDragRight(_arg0
,_arg1
,_arg2
,_arg3
);
1599 wxPy_END_ALLOW_THREADS
;
1600 } Py_INCREF(Py_None
);
1601 _resultobj
= Py_None
;
1605 #define wxPyShapeCanvas_base_OnDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1606 static PyObject
*_wrap_wxPyShapeCanvas_base_OnDragLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1607 PyObject
* _resultobj
;
1608 wxPyShapeCanvas
* _arg0
;
1612 int _arg4
= (int ) 0;
1613 PyObject
* _argo0
= 0;
1615 char *_kwnames
[] = { "self","draw","x","y","keys", NULL
};
1618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oidd|i:wxPyShapeCanvas_base_OnDragLeft",_kwnames
,&_argo0
,&tempbool1
,&_arg2
,&_arg3
,&_arg4
))
1621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragLeft. Expected _wxPyShapeCanvas_p.");
1627 _arg1
= (bool ) tempbool1
;
1629 wxPy_BEGIN_ALLOW_THREADS
;
1630 wxPyShapeCanvas_base_OnDragLeft(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1632 wxPy_END_ALLOW_THREADS
;
1633 } Py_INCREF(Py_None
);
1634 _resultobj
= Py_None
;
1638 #define wxPyShapeCanvas_base_OnDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1639 static PyObject
*_wrap_wxPyShapeCanvas_base_OnDragRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1640 PyObject
* _resultobj
;
1641 wxPyShapeCanvas
* _arg0
;
1645 int _arg4
= (int ) 0;
1646 PyObject
* _argo0
= 0;
1648 char *_kwnames
[] = { "self","draw","x","y","keys", NULL
};
1651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oidd|i:wxPyShapeCanvas_base_OnDragRight",_kwnames
,&_argo0
,&tempbool1
,&_arg2
,&_arg3
,&_arg4
))
1654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragRight. Expected _wxPyShapeCanvas_p.");
1660 _arg1
= (bool ) tempbool1
;
1662 wxPy_BEGIN_ALLOW_THREADS
;
1663 wxPyShapeCanvas_base_OnDragRight(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1665 wxPy_END_ALLOW_THREADS
;
1666 } Py_INCREF(Py_None
);
1667 _resultobj
= Py_None
;
1671 #define wxPyShapeCanvas_base_OnLeftClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnLeftClick(_swigarg0,_swigarg1,_swigarg2))
1672 static PyObject
*_wrap_wxPyShapeCanvas_base_OnLeftClick(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1673 PyObject
* _resultobj
;
1674 wxPyShapeCanvas
* _arg0
;
1677 int _arg3
= (int ) 0;
1678 PyObject
* _argo0
= 0;
1679 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnLeftClick",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnLeftClick. Expected _wxPyShapeCanvas_p.");
1692 wxPy_BEGIN_ALLOW_THREADS
;
1693 wxPyShapeCanvas_base_OnLeftClick(_arg0
,_arg1
,_arg2
,_arg3
);
1695 wxPy_END_ALLOW_THREADS
;
1696 } Py_INCREF(Py_None
);
1697 _resultobj
= Py_None
;
1701 #define wxPyShapeCanvas_base_OnRightClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnRightClick(_swigarg0,_swigarg1,_swigarg2))
1702 static PyObject
*_wrap_wxPyShapeCanvas_base_OnRightClick(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1703 PyObject
* _resultobj
;
1704 wxPyShapeCanvas
* _arg0
;
1707 int _arg3
= (int ) 0;
1708 PyObject
* _argo0
= 0;
1709 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnRightClick",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnRightClick. Expected _wxPyShapeCanvas_p.");
1722 wxPy_BEGIN_ALLOW_THREADS
;
1723 wxPyShapeCanvas_base_OnRightClick(_arg0
,_arg1
,_arg2
,_arg3
);
1725 wxPy_END_ALLOW_THREADS
;
1726 } Py_INCREF(Py_None
);
1727 _resultobj
= Py_None
;
1731 #define wxPyShapeCanvas_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
1732 static PyObject
*_wrap_wxPyShapeCanvas_Redraw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1733 PyObject
* _resultobj
;
1734 wxPyShapeCanvas
* _arg0
;
1736 PyObject
* _argo0
= 0;
1737 PyObject
* _argo1
= 0;
1738 char *_kwnames
[] = { "self","dc", NULL
};
1741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_Redraw",_kwnames
,&_argo0
,&_argo1
))
1744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_Redraw. Expected _wxPyShapeCanvas_p.");
1751 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1752 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
1753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_Redraw. Expected _wxDC_p.");
1758 wxPy_BEGIN_ALLOW_THREADS
;
1759 wxPyShapeCanvas_Redraw(_arg0
,*_arg1
);
1761 wxPy_END_ALLOW_THREADS
;
1762 } Py_INCREF(Py_None
);
1763 _resultobj
= Py_None
;
1767 #define wxPyShapeCanvas_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
1768 static PyObject
*_wrap_wxPyShapeCanvas_RemoveShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1769 PyObject
* _resultobj
;
1770 wxPyShapeCanvas
* _arg0
;
1772 PyObject
* _argo0
= 0;
1773 PyObject
* _argo1
= 0;
1774 char *_kwnames
[] = { "self","shape", NULL
};
1777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_RemoveShape",_kwnames
,&_argo0
,&_argo1
))
1780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShapeCanvas_p.");
1787 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1788 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
1789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShape_p.");
1794 wxPy_BEGIN_ALLOW_THREADS
;
1795 wxPyShapeCanvas_RemoveShape(_arg0
,_arg1
);
1797 wxPy_END_ALLOW_THREADS
;
1798 } Py_INCREF(Py_None
);
1799 _resultobj
= Py_None
;
1803 #define wxPyShapeCanvas_SetDiagram(_swigobj,_swigarg0) (_swigobj->SetDiagram(_swigarg0))
1804 static PyObject
*_wrap_wxPyShapeCanvas_SetDiagram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1805 PyObject
* _resultobj
;
1806 wxPyShapeCanvas
* _arg0
;
1808 PyObject
* _argo0
= 0;
1809 PyObject
* _argo1
= 0;
1810 char *_kwnames
[] = { "self","diagram", NULL
};
1813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_SetDiagram",_kwnames
,&_argo0
,&_argo1
))
1816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_SetDiagram. Expected _wxPyShapeCanvas_p.");
1823 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1824 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDiagram_p")) {
1825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_SetDiagram. Expected _wxDiagram_p.");
1830 wxPy_BEGIN_ALLOW_THREADS
;
1831 wxPyShapeCanvas_SetDiagram(_arg0
,_arg1
);
1833 wxPy_END_ALLOW_THREADS
;
1834 } Py_INCREF(Py_None
);
1835 _resultobj
= Py_None
;
1839 #define wxPyShapeCanvas_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
1840 static PyObject
*_wrap_wxPyShapeCanvas_Snap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1841 PyObject
* _resultobj
;
1842 wxPyShapeCanvas
* _arg0
;
1845 PyObject
* _argo0
= 0;
1847 PyObject
* _obj1
= 0;
1849 PyObject
* _obj2
= 0;
1850 char *_kwnames
[] = { "self","INOUT","INOUT", NULL
};
1853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyShapeCanvas_Snap",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_Snap. Expected _wxPyShapeCanvas_p.");
1863 temp
= PyFloat_AsDouble(_obj1
);
1867 temp0
= PyFloat_AsDouble(_obj2
);
1871 wxPy_BEGIN_ALLOW_THREADS
;
1872 wxPyShapeCanvas_Snap(_arg0
,_arg1
,_arg2
);
1874 wxPy_END_ALLOW_THREADS
;
1875 } Py_INCREF(Py_None
);
1876 _resultobj
= Py_None
;
1879 o
= PyFloat_FromDouble((double) (*_arg1
));
1880 _resultobj
= t_output_helper(_resultobj
, o
);
1884 o
= PyFloat_FromDouble((double) (*_arg2
));
1885 _resultobj
= t_output_helper(_resultobj
, o
);
1890 static PyMethodDef oglcanvascMethods
[] = {
1891 { "wxPyShapeCanvas_Snap", (PyCFunction
) _wrap_wxPyShapeCanvas_Snap
, METH_VARARGS
| METH_KEYWORDS
},
1892 { "wxPyShapeCanvas_SetDiagram", (PyCFunction
) _wrap_wxPyShapeCanvas_SetDiagram
, METH_VARARGS
| METH_KEYWORDS
},
1893 { "wxPyShapeCanvas_RemoveShape", (PyCFunction
) _wrap_wxPyShapeCanvas_RemoveShape
, METH_VARARGS
| METH_KEYWORDS
},
1894 { "wxPyShapeCanvas_Redraw", (PyCFunction
) _wrap_wxPyShapeCanvas_Redraw
, METH_VARARGS
| METH_KEYWORDS
},
1895 { "wxPyShapeCanvas_base_OnRightClick", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnRightClick
, METH_VARARGS
| METH_KEYWORDS
},
1896 { "wxPyShapeCanvas_base_OnLeftClick", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnLeftClick
, METH_VARARGS
| METH_KEYWORDS
},
1897 { "wxPyShapeCanvas_base_OnDragRight", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnDragRight
, METH_VARARGS
| METH_KEYWORDS
},
1898 { "wxPyShapeCanvas_base_OnDragLeft", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnDragLeft
, METH_VARARGS
| METH_KEYWORDS
},
1899 { "wxPyShapeCanvas_base_OnEndDragRight", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnEndDragRight
, METH_VARARGS
| METH_KEYWORDS
},
1900 { "wxPyShapeCanvas_base_OnEndDragLeft", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnEndDragLeft
, METH_VARARGS
| METH_KEYWORDS
},
1901 { "wxPyShapeCanvas_base_OnBeginDragRight", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnBeginDragRight
, METH_VARARGS
| METH_KEYWORDS
},
1902 { "wxPyShapeCanvas_base_OnBeginDragLeft", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnBeginDragLeft
, METH_VARARGS
| METH_KEYWORDS
},
1903 { "wxPyShapeCanvas_InsertShape", (PyCFunction
) _wrap_wxPyShapeCanvas_InsertShape
, METH_VARARGS
| METH_KEYWORDS
},
1904 { "wxPyShapeCanvas_GetQuickEditMode", (PyCFunction
) _wrap_wxPyShapeCanvas_GetQuickEditMode
, METH_VARARGS
| METH_KEYWORDS
},
1905 { "wxPyShapeCanvas_GetDiagram", (PyCFunction
) _wrap_wxPyShapeCanvas_GetDiagram
, METH_VARARGS
| METH_KEYWORDS
},
1906 { "wxPyShapeCanvas_FindFirstSensitiveShape", (PyCFunction
) _wrap_wxPyShapeCanvas_FindFirstSensitiveShape
, METH_VARARGS
| METH_KEYWORDS
},
1907 { "wxPyShapeCanvas_FindShape", (PyCFunction
) _wrap_wxPyShapeCanvas_FindShape
, METH_VARARGS
| METH_KEYWORDS
},
1908 { "wxPyShapeCanvas_AddShape", (PyCFunction
) _wrap_wxPyShapeCanvas_AddShape
, METH_VARARGS
| METH_KEYWORDS
},
1909 { "wxPyShapeCanvas__setCallbackInfo", (PyCFunction
) _wrap_wxPyShapeCanvas__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
1910 { "new_wxPyShapeCanvas", (PyCFunction
) _wrap_new_wxPyShapeCanvas
, METH_VARARGS
| METH_KEYWORDS
},
1911 { "wxDiagram_Snap", (PyCFunction
) _wrap_wxDiagram_Snap
, METH_VARARGS
| METH_KEYWORDS
},
1912 { "wxDiagram_ShowAll", (PyCFunction
) _wrap_wxDiagram_ShowAll
, METH_VARARGS
| METH_KEYWORDS
},
1913 { "wxDiagram_SetSnapToGrid", (PyCFunction
) _wrap_wxDiagram_SetSnapToGrid
, METH_VARARGS
| METH_KEYWORDS
},
1914 { "wxDiagram_SetQuickEditMode", (PyCFunction
) _wrap_wxDiagram_SetQuickEditMode
, METH_VARARGS
| METH_KEYWORDS
},
1915 { "wxDiagram_SetMouseTolerance", (PyCFunction
) _wrap_wxDiagram_SetMouseTolerance
, METH_VARARGS
| METH_KEYWORDS
},
1916 { "wxDiagram_SetGridSpacing", (PyCFunction
) _wrap_wxDiagram_SetGridSpacing
, METH_VARARGS
| METH_KEYWORDS
},
1917 { "wxDiagram_SetCanvas", (PyCFunction
) _wrap_wxDiagram_SetCanvas
, METH_VARARGS
| METH_KEYWORDS
},
1918 { "wxDiagram_SaveFile", (PyCFunction
) _wrap_wxDiagram_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
1919 { "wxDiagram_RemoveShape", (PyCFunction
) _wrap_wxDiagram_RemoveShape
, METH_VARARGS
| METH_KEYWORDS
},
1920 { "wxDiagram_RemoveAllShapes", (PyCFunction
) _wrap_wxDiagram_RemoveAllShapes
, METH_VARARGS
| METH_KEYWORDS
},
1921 { "wxDiagram_Redraw", (PyCFunction
) _wrap_wxDiagram_Redraw
, METH_VARARGS
| METH_KEYWORDS
},
1922 { "wxDiagram_RecentreAll", (PyCFunction
) _wrap_wxDiagram_RecentreAll
, METH_VARARGS
| METH_KEYWORDS
},
1923 { "wxDiagram_ReadNodes", (PyCFunction
) _wrap_wxDiagram_ReadNodes
, METH_VARARGS
| METH_KEYWORDS
},
1924 { "wxDiagram_ReadLines", (PyCFunction
) _wrap_wxDiagram_ReadLines
, METH_VARARGS
| METH_KEYWORDS
},
1925 { "wxDiagram_ReadContainerGeometry", (PyCFunction
) _wrap_wxDiagram_ReadContainerGeometry
, METH_VARARGS
| METH_KEYWORDS
},
1926 { "wxDiagram_LoadFile", (PyCFunction
) _wrap_wxDiagram_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
1927 { "wxDiagram_InsertShape", (PyCFunction
) _wrap_wxDiagram_InsertShape
, METH_VARARGS
| METH_KEYWORDS
},
1928 { "wxDiagram_GetSnapToGrid", (PyCFunction
) _wrap_wxDiagram_GetSnapToGrid
, METH_VARARGS
| METH_KEYWORDS
},
1929 { "wxDiagram_GetQuickEditMode", (PyCFunction
) _wrap_wxDiagram_GetQuickEditMode
, METH_VARARGS
| METH_KEYWORDS
},
1930 { "wxDiagram_GetShapeList", (PyCFunction
) _wrap_wxDiagram_GetShapeList
, METH_VARARGS
| METH_KEYWORDS
},
1931 { "wxDiagram_GetMouseTolerance", (PyCFunction
) _wrap_wxDiagram_GetMouseTolerance
, METH_VARARGS
| METH_KEYWORDS
},
1932 { "wxDiagram_GetGridSpacing", (PyCFunction
) _wrap_wxDiagram_GetGridSpacing
, METH_VARARGS
| METH_KEYWORDS
},
1933 { "wxDiagram_GetCount", (PyCFunction
) _wrap_wxDiagram_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
1934 { "wxDiagram_GetCanvas", (PyCFunction
) _wrap_wxDiagram_GetCanvas
, METH_VARARGS
| METH_KEYWORDS
},
1935 { "wxDiagram_FindShape", (PyCFunction
) _wrap_wxDiagram_FindShape
, METH_VARARGS
| METH_KEYWORDS
},
1936 { "wxDiagram_DrawOutline", (PyCFunction
) _wrap_wxDiagram_DrawOutline
, METH_VARARGS
| METH_KEYWORDS
},
1937 { "wxDiagram_DeleteAllShapes", (PyCFunction
) _wrap_wxDiagram_DeleteAllShapes
, METH_VARARGS
| METH_KEYWORDS
},
1938 { "wxDiagram_Clear", (PyCFunction
) _wrap_wxDiagram_Clear
, METH_VARARGS
| METH_KEYWORDS
},
1939 { "wxDiagram_AddShape", (PyCFunction
) _wrap_wxDiagram_AddShape
, METH_VARARGS
| METH_KEYWORDS
},
1940 { "new_wxDiagram", (PyCFunction
) _wrap_new_wxDiagram
, METH_VARARGS
| METH_KEYWORDS
},
1947 * This table is used by the pointer type-checker
1949 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1950 { "_signed_long","_long",0},
1951 { "_wxPrintQuality","_wxCoord",0},
1952 { "_wxPrintQuality","_int",0},
1953 { "_wxPrintQuality","_signed_int",0},
1954 { "_wxPrintQuality","_unsigned_int",0},
1955 { "_wxPrintQuality","_wxWindowID",0},
1956 { "_wxPrintQuality","_uint",0},
1957 { "_wxPrintQuality","_EBool",0},
1958 { "_wxPrintQuality","_size_t",0},
1959 { "_wxPrintQuality","_time_t",0},
1960 { "_byte","_unsigned_char",0},
1961 { "_long","_unsigned_long",0},
1962 { "_long","_signed_long",0},
1963 { "_size_t","_wxCoord",0},
1964 { "_size_t","_wxPrintQuality",0},
1965 { "_size_t","_time_t",0},
1966 { "_size_t","_unsigned_int",0},
1967 { "_size_t","_int",0},
1968 { "_size_t","_wxWindowID",0},
1969 { "_size_t","_uint",0},
1970 { "_wxPanel","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxPanel
},
1971 { "_uint","_wxCoord",0},
1972 { "_uint","_wxPrintQuality",0},
1973 { "_uint","_time_t",0},
1974 { "_uint","_size_t",0},
1975 { "_uint","_unsigned_int",0},
1976 { "_uint","_int",0},
1977 { "_uint","_wxWindowID",0},
1978 { "_wxChar","_char",0},
1979 { "_char","_wxChar",0},
1980 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1981 { "_EBool","_wxCoord",0},
1982 { "_EBool","_wxPrintQuality",0},
1983 { "_EBool","_signed_int",0},
1984 { "_EBool","_int",0},
1985 { "_EBool","_wxWindowID",0},
1986 { "_unsigned_long","_long",0},
1987 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1988 { "_signed_int","_wxCoord",0},
1989 { "_signed_int","_wxPrintQuality",0},
1990 { "_signed_int","_EBool",0},
1991 { "_signed_int","_wxWindowID",0},
1992 { "_signed_int","_int",0},
1993 { "_WXTYPE","_wxDateTime_t",0},
1994 { "_WXTYPE","_short",0},
1995 { "_WXTYPE","_signed_short",0},
1996 { "_WXTYPE","_unsigned_short",0},
1997 { "_unsigned_short","_wxDateTime_t",0},
1998 { "_unsigned_short","_WXTYPE",0},
1999 { "_unsigned_short","_short",0},
2000 { "_wxObject","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxObject
},
2001 { "_wxObject","_wxDiagram",SwigwxDiagramTowxObject
},
2002 { "_signed_short","_WXTYPE",0},
2003 { "_signed_short","_short",0},
2004 { "_wxScrolledWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxScrolledWindow
},
2005 { "_unsigned_char","_byte",0},
2006 { "_unsigned_int","_wxCoord",0},
2007 { "_unsigned_int","_wxPrintQuality",0},
2008 { "_unsigned_int","_time_t",0},
2009 { "_unsigned_int","_size_t",0},
2010 { "_unsigned_int","_uint",0},
2011 { "_unsigned_int","_wxWindowID",0},
2012 { "_unsigned_int","_int",0},
2013 { "_short","_wxDateTime_t",0},
2014 { "_short","_WXTYPE",0},
2015 { "_short","_unsigned_short",0},
2016 { "_short","_signed_short",0},
2017 { "_wxWindowID","_wxCoord",0},
2018 { "_wxWindowID","_wxPrintQuality",0},
2019 { "_wxWindowID","_time_t",0},
2020 { "_wxWindowID","_size_t",0},
2021 { "_wxWindowID","_EBool",0},
2022 { "_wxWindowID","_uint",0},
2023 { "_wxWindowID","_int",0},
2024 { "_wxWindowID","_signed_int",0},
2025 { "_wxWindowID","_unsigned_int",0},
2026 { "_int","_wxCoord",0},
2027 { "_int","_wxPrintQuality",0},
2028 { "_int","_time_t",0},
2029 { "_int","_size_t",0},
2030 { "_int","_EBool",0},
2031 { "_int","_uint",0},
2032 { "_int","_wxWindowID",0},
2033 { "_int","_unsigned_int",0},
2034 { "_int","_signed_int",0},
2035 { "_wxDateTime_t","_unsigned_short",0},
2036 { "_wxDateTime_t","_short",0},
2037 { "_wxDateTime_t","_WXTYPE",0},
2038 { "_time_t","_wxCoord",0},
2039 { "_time_t","_wxPrintQuality",0},
2040 { "_time_t","_unsigned_int",0},
2041 { "_time_t","_int",0},
2042 { "_time_t","_wxWindowID",0},
2043 { "_time_t","_uint",0},
2044 { "_time_t","_size_t",0},
2045 { "_wxCoord","_int",0},
2046 { "_wxCoord","_signed_int",0},
2047 { "_wxCoord","_unsigned_int",0},
2048 { "_wxCoord","_wxWindowID",0},
2049 { "_wxCoord","_uint",0},
2050 { "_wxCoord","_EBool",0},
2051 { "_wxCoord","_size_t",0},
2052 { "_wxCoord","_time_t",0},
2053 { "_wxCoord","_wxPrintQuality",0},
2054 { "_wxEvtHandler","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxEvtHandler
},
2055 { "_wxWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxWindow
},
2058 static PyObject
*SWIG_globals
;
2062 SWIGEXPORT(void) initoglcanvasc() {
2064 SWIG_globals
= SWIG_newvarlink();
2065 m
= Py_InitModule("oglcanvasc", oglcanvascMethods
);
2066 d
= PyModule_GetDict(m
);
2069 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
2070 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);