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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
125 _result
= (wxDiagram
*)new_wxDiagram();
127 wxPyEndAllowThreads(__tstate
);
128 if (PyErr_Occurred()) return NULL
;
130 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDiagram_p");
131 _resultobj
= Py_BuildValue("s",_ptemp
);
134 _resultobj
= Py_None
;
139 #define wxDiagram_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
140 static PyObject
*_wrap_wxDiagram_AddShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
141 PyObject
* _resultobj
;
144 wxPyShape
* _arg2
= (wxPyShape
*) NULL
;
145 PyObject
* _argo0
= 0;
146 PyObject
* _argo1
= 0;
147 PyObject
* _argo2
= 0;
148 char *_kwnames
[] = { "self","shape","addAfter", NULL
};
151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDiagram_AddShape",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_AddShape. Expected _wxDiagram_p.");
161 if (_argo1
== Py_None
) { _arg1
= NULL
; }
162 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_AddShape. Expected _wxPyShape_p.");
168 if (_argo2
== Py_None
) { _arg2
= NULL
; }
169 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPyShape_p")) {
170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDiagram_AddShape. Expected _wxPyShape_p.");
175 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
176 wxDiagram_AddShape(_arg0
,_arg1
,_arg2
);
178 wxPyEndAllowThreads(__tstate
);
179 if (PyErr_Occurred()) return NULL
;
180 } Py_INCREF(Py_None
);
181 _resultobj
= Py_None
;
185 #define wxDiagram_Clear(_swigobj,_swigarg0) (_swigobj->Clear(_swigarg0))
186 static PyObject
*_wrap_wxDiagram_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
187 PyObject
* _resultobj
;
190 PyObject
* _argo0
= 0;
191 PyObject
* _argo1
= 0;
192 char *_kwnames
[] = { "self","dc", NULL
};
195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_Clear",_kwnames
,&_argo0
,&_argo1
))
198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_Clear. Expected _wxDiagram_p.");
205 if (_argo1
== Py_None
) { _arg1
= NULL
; }
206 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_Clear. Expected _wxDC_p.");
212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
213 wxDiagram_Clear(_arg0
,*_arg1
);
215 wxPyEndAllowThreads(__tstate
);
216 if (PyErr_Occurred()) return NULL
;
217 } Py_INCREF(Py_None
);
218 _resultobj
= Py_None
;
222 #define wxDiagram_DeleteAllShapes(_swigobj) (_swigobj->DeleteAllShapes())
223 static PyObject
*_wrap_wxDiagram_DeleteAllShapes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
224 PyObject
* _resultobj
;
226 PyObject
* _argo0
= 0;
227 char *_kwnames
[] = { "self", NULL
};
230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_DeleteAllShapes",_kwnames
,&_argo0
))
233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_DeleteAllShapes. Expected _wxDiagram_p.");
240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
241 wxDiagram_DeleteAllShapes(_arg0
);
243 wxPyEndAllowThreads(__tstate
);
244 if (PyErr_Occurred()) return NULL
;
245 } Py_INCREF(Py_None
);
246 _resultobj
= Py_None
;
250 #define wxDiagram_DrawOutline(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawOutline(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
251 static PyObject
*_wrap_wxDiagram_DrawOutline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
252 PyObject
* _resultobj
;
259 PyObject
* _argo0
= 0;
260 PyObject
* _argo1
= 0;
261 char *_kwnames
[] = { "self","dc","x1","y1","x2","y2", NULL
};
264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOdddd:wxDiagram_DrawOutline",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_DrawOutline. Expected _wxDiagram_p.");
274 if (_argo1
== Py_None
) { _arg1
= NULL
; }
275 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_DrawOutline. Expected _wxDC_p.");
281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
282 wxDiagram_DrawOutline(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
284 wxPyEndAllowThreads(__tstate
);
285 if (PyErr_Occurred()) return NULL
;
286 } Py_INCREF(Py_None
);
287 _resultobj
= Py_None
;
291 #define wxDiagram_FindShape(_swigobj,_swigarg0) (_swigobj->FindShape(_swigarg0))
292 static PyObject
*_wrap_wxDiagram_FindShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
293 PyObject
* _resultobj
;
297 PyObject
* _argo0
= 0;
298 char *_kwnames
[] = { "self","id", NULL
};
301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDiagram_FindShape",_kwnames
,&_argo0
,&_arg1
))
304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_FindShape. Expected _wxDiagram_p.");
311 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
312 _result
= (wxPyShape
*)wxDiagram_FindShape(_arg0
,_arg1
);
314 wxPyEndAllowThreads(__tstate
);
315 if (PyErr_Occurred()) return NULL
;
316 }{ _resultobj
= wxPyMake_wxShapeEvtHandler(_result
); }
320 #define wxDiagram_GetCanvas(_swigobj) (_swigobj->GetCanvas())
321 static PyObject
*_wrap_wxDiagram_GetCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
322 PyObject
* _resultobj
;
323 wxPyShapeCanvas
* _result
;
325 PyObject
* _argo0
= 0;
326 char *_kwnames
[] = { "self", NULL
};
329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetCanvas",_kwnames
,&_argo0
))
332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetCanvas. Expected _wxDiagram_p.");
339 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
340 _result
= (wxPyShapeCanvas
*)wxDiagram_GetCanvas(_arg0
);
342 wxPyEndAllowThreads(__tstate
);
343 if (PyErr_Occurred()) return NULL
;
344 }{ _resultobj
= wxPyMake_wxObject(_result
); }
348 #define wxDiagram_GetCount(_swigobj) (_swigobj->GetCount())
349 static PyObject
*_wrap_wxDiagram_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
350 PyObject
* _resultobj
;
353 PyObject
* _argo0
= 0;
354 char *_kwnames
[] = { "self", NULL
};
357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetCount",_kwnames
,&_argo0
))
360 if (_argo0
== Py_None
) { _arg0
= NULL
; }
361 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetCount. Expected _wxDiagram_p.");
367 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
368 _result
= (int )wxDiagram_GetCount(_arg0
);
370 wxPyEndAllowThreads(__tstate
);
371 if (PyErr_Occurred()) return NULL
;
372 } _resultobj
= Py_BuildValue("i",_result
);
376 #define wxDiagram_GetGridSpacing(_swigobj) (_swigobj->GetGridSpacing())
377 static PyObject
*_wrap_wxDiagram_GetGridSpacing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
378 PyObject
* _resultobj
;
381 PyObject
* _argo0
= 0;
382 char *_kwnames
[] = { "self", NULL
};
385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetGridSpacing",_kwnames
,&_argo0
))
388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetGridSpacing. Expected _wxDiagram_p.");
395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
396 _result
= (double )wxDiagram_GetGridSpacing(_arg0
);
398 wxPyEndAllowThreads(__tstate
);
399 if (PyErr_Occurred()) return NULL
;
400 } _resultobj
= Py_BuildValue("d",_result
);
404 #define wxDiagram_GetMouseTolerance(_swigobj) (_swigobj->GetMouseTolerance())
405 static PyObject
*_wrap_wxDiagram_GetMouseTolerance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
406 PyObject
* _resultobj
;
409 PyObject
* _argo0
= 0;
410 char *_kwnames
[] = { "self", NULL
};
413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetMouseTolerance",_kwnames
,&_argo0
))
416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetMouseTolerance. Expected _wxDiagram_p.");
423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
424 _result
= (int )wxDiagram_GetMouseTolerance(_arg0
);
426 wxPyEndAllowThreads(__tstate
);
427 if (PyErr_Occurred()) return NULL
;
428 } _resultobj
= Py_BuildValue("i",_result
);
432 static PyObject
* wxDiagram_GetShapeList(wxDiagram
*self
) {
433 wxList
* list
= self
->GetShapeList();
434 return wxPy_ConvertList(list
, "wxPyShape");
436 static PyObject
*_wrap_wxDiagram_GetShapeList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
437 PyObject
* _resultobj
;
440 PyObject
* _argo0
= 0;
441 char *_kwnames
[] = { "self", NULL
};
444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetShapeList",_kwnames
,&_argo0
))
447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetShapeList. Expected _wxDiagram_p.");
454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
455 _result
= (PyObject
*)wxDiagram_GetShapeList(_arg0
);
457 wxPyEndAllowThreads(__tstate
);
458 if (PyErr_Occurred()) return NULL
;
460 _resultobj
= _result
;
465 #define wxDiagram_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
466 static PyObject
*_wrap_wxDiagram_GetQuickEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
467 PyObject
* _resultobj
;
470 PyObject
* _argo0
= 0;
471 char *_kwnames
[] = { "self", NULL
};
474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetQuickEditMode",_kwnames
,&_argo0
))
477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetQuickEditMode. Expected _wxDiagram_p.");
484 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
485 _result
= (bool )wxDiagram_GetQuickEditMode(_arg0
);
487 wxPyEndAllowThreads(__tstate
);
488 if (PyErr_Occurred()) return NULL
;
489 } _resultobj
= Py_BuildValue("i",_result
);
493 #define wxDiagram_GetSnapToGrid(_swigobj) (_swigobj->GetSnapToGrid())
494 static PyObject
*_wrap_wxDiagram_GetSnapToGrid(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
495 PyObject
* _resultobj
;
498 PyObject
* _argo0
= 0;
499 char *_kwnames
[] = { "self", NULL
};
502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetSnapToGrid",_kwnames
,&_argo0
))
505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetSnapToGrid. Expected _wxDiagram_p.");
512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
513 _result
= (bool )wxDiagram_GetSnapToGrid(_arg0
);
515 wxPyEndAllowThreads(__tstate
);
516 if (PyErr_Occurred()) return NULL
;
517 } _resultobj
= Py_BuildValue("i",_result
);
521 #define wxDiagram_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
522 static PyObject
*_wrap_wxDiagram_InsertShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
523 PyObject
* _resultobj
;
526 PyObject
* _argo0
= 0;
527 PyObject
* _argo1
= 0;
528 char *_kwnames
[] = { "self","shape", NULL
};
531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_InsertShape",_kwnames
,&_argo0
,&_argo1
))
534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_InsertShape. Expected _wxDiagram_p.");
541 if (_argo1
== Py_None
) { _arg1
= NULL
; }
542 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_InsertShape. Expected _wxPyShape_p.");
548 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
549 wxDiagram_InsertShape(_arg0
,_arg1
);
551 wxPyEndAllowThreads(__tstate
);
552 if (PyErr_Occurred()) return NULL
;
553 } Py_INCREF(Py_None
);
554 _resultobj
= Py_None
;
558 #define wxDiagram_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
559 static PyObject
*_wrap_wxDiagram_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
560 PyObject
* _resultobj
;
564 PyObject
* _argo0
= 0;
565 PyObject
* _obj1
= 0;
566 char *_kwnames
[] = { "self","filename", NULL
};
569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_LoadFile",_kwnames
,&_argo0
,&_obj1
))
572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_LoadFile. Expected _wxDiagram_p.");
579 #if PYTHON_API_VERSION >= 1009
580 char* tmpPtr
; int tmpSize
;
581 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
582 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
585 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
587 _arg1
= new wxString(tmpPtr
, tmpSize
);
589 if (!PyString_Check(_obj1
)) {
590 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
593 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
598 _result
= (bool )wxDiagram_LoadFile(_arg0
,*_arg1
);
600 wxPyEndAllowThreads(__tstate
);
601 if (PyErr_Occurred()) return NULL
;
602 } _resultobj
= Py_BuildValue("i",_result
);
610 #define wxDiagram_ReadContainerGeometry(_swigobj,_swigarg0) (_swigobj->ReadContainerGeometry(_swigarg0))
611 static PyObject
*_wrap_wxDiagram_ReadContainerGeometry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
612 PyObject
* _resultobj
;
614 wxExprDatabase
* _arg1
;
615 PyObject
* _argo0
= 0;
616 PyObject
* _argo1
= 0;
617 char *_kwnames
[] = { "self","database", NULL
};
620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_ReadContainerGeometry",_kwnames
,&_argo0
,&_argo1
))
623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_ReadContainerGeometry. Expected _wxDiagram_p.");
630 if (_argo1
== Py_None
) { _arg1
= NULL
; }
631 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxExprDatabase_p")) {
632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_ReadContainerGeometry. Expected _wxExprDatabase_p.");
637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
638 wxDiagram_ReadContainerGeometry(_arg0
,*_arg1
);
640 wxPyEndAllowThreads(__tstate
);
641 if (PyErr_Occurred()) return NULL
;
642 } Py_INCREF(Py_None
);
643 _resultobj
= Py_None
;
647 #define wxDiagram_ReadLines(_swigobj,_swigarg0) (_swigobj->ReadLines(_swigarg0))
648 static PyObject
*_wrap_wxDiagram_ReadLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
649 PyObject
* _resultobj
;
651 wxExprDatabase
* _arg1
;
652 PyObject
* _argo0
= 0;
653 PyObject
* _argo1
= 0;
654 char *_kwnames
[] = { "self","database", NULL
};
657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_ReadLines",_kwnames
,&_argo0
,&_argo1
))
660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_ReadLines. Expected _wxDiagram_p.");
667 if (_argo1
== Py_None
) { _arg1
= NULL
; }
668 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxExprDatabase_p")) {
669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_ReadLines. Expected _wxExprDatabase_p.");
674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
675 wxDiagram_ReadLines(_arg0
,*_arg1
);
677 wxPyEndAllowThreads(__tstate
);
678 if (PyErr_Occurred()) return NULL
;
679 } Py_INCREF(Py_None
);
680 _resultobj
= Py_None
;
684 #define wxDiagram_ReadNodes(_swigobj,_swigarg0) (_swigobj->ReadNodes(_swigarg0))
685 static PyObject
*_wrap_wxDiagram_ReadNodes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
686 PyObject
* _resultobj
;
688 wxExprDatabase
* _arg1
;
689 PyObject
* _argo0
= 0;
690 PyObject
* _argo1
= 0;
691 char *_kwnames
[] = { "self","database", NULL
};
694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_ReadNodes",_kwnames
,&_argo0
,&_argo1
))
697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_ReadNodes. Expected _wxDiagram_p.");
704 if (_argo1
== Py_None
) { _arg1
= NULL
; }
705 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxExprDatabase_p")) {
706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_ReadNodes. Expected _wxExprDatabase_p.");
711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
712 wxDiagram_ReadNodes(_arg0
,*_arg1
);
714 wxPyEndAllowThreads(__tstate
);
715 if (PyErr_Occurred()) return NULL
;
716 } Py_INCREF(Py_None
);
717 _resultobj
= Py_None
;
721 #define wxDiagram_RecentreAll(_swigobj,_swigarg0) (_swigobj->RecentreAll(_swigarg0))
722 static PyObject
*_wrap_wxDiagram_RecentreAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
723 PyObject
* _resultobj
;
726 PyObject
* _argo0
= 0;
727 PyObject
* _argo1
= 0;
728 char *_kwnames
[] = { "self","dc", NULL
};
731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_RecentreAll",_kwnames
,&_argo0
,&_argo1
))
734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_RecentreAll. Expected _wxDiagram_p.");
741 if (_argo1
== Py_None
) { _arg1
= NULL
; }
742 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_RecentreAll. Expected _wxDC_p.");
748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
749 wxDiagram_RecentreAll(_arg0
,*_arg1
);
751 wxPyEndAllowThreads(__tstate
);
752 if (PyErr_Occurred()) return NULL
;
753 } Py_INCREF(Py_None
);
754 _resultobj
= Py_None
;
758 #define wxDiagram_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
759 static PyObject
*_wrap_wxDiagram_Redraw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
760 PyObject
* _resultobj
;
763 PyObject
* _argo0
= 0;
764 PyObject
* _argo1
= 0;
765 char *_kwnames
[] = { "self","dc", NULL
};
768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_Redraw",_kwnames
,&_argo0
,&_argo1
))
771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_Redraw. Expected _wxDiagram_p.");
778 if (_argo1
== Py_None
) { _arg1
= NULL
; }
779 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_Redraw. Expected _wxDC_p.");
785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
786 wxDiagram_Redraw(_arg0
,*_arg1
);
788 wxPyEndAllowThreads(__tstate
);
789 if (PyErr_Occurred()) return NULL
;
790 } Py_INCREF(Py_None
);
791 _resultobj
= Py_None
;
795 #define wxDiagram_RemoveAllShapes(_swigobj) (_swigobj->RemoveAllShapes())
796 static PyObject
*_wrap_wxDiagram_RemoveAllShapes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
797 PyObject
* _resultobj
;
799 PyObject
* _argo0
= 0;
800 char *_kwnames
[] = { "self", NULL
};
803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_RemoveAllShapes",_kwnames
,&_argo0
))
806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_RemoveAllShapes. Expected _wxDiagram_p.");
813 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
814 wxDiagram_RemoveAllShapes(_arg0
);
816 wxPyEndAllowThreads(__tstate
);
817 if (PyErr_Occurred()) return NULL
;
818 } Py_INCREF(Py_None
);
819 _resultobj
= Py_None
;
823 #define wxDiagram_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
824 static PyObject
*_wrap_wxDiagram_RemoveShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
825 PyObject
* _resultobj
;
828 PyObject
* _argo0
= 0;
829 PyObject
* _argo1
= 0;
830 char *_kwnames
[] = { "self","shape", NULL
};
833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_RemoveShape",_kwnames
,&_argo0
,&_argo1
))
836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_RemoveShape. Expected _wxDiagram_p.");
843 if (_argo1
== Py_None
) { _arg1
= NULL
; }
844 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_RemoveShape. Expected _wxPyShape_p.");
850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
851 wxDiagram_RemoveShape(_arg0
,_arg1
);
853 wxPyEndAllowThreads(__tstate
);
854 if (PyErr_Occurred()) return NULL
;
855 } Py_INCREF(Py_None
);
856 _resultobj
= Py_None
;
860 #define wxDiagram_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
861 static PyObject
*_wrap_wxDiagram_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
862 PyObject
* _resultobj
;
866 PyObject
* _argo0
= 0;
867 PyObject
* _obj1
= 0;
868 char *_kwnames
[] = { "self","filename", NULL
};
871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_SaveFile",_kwnames
,&_argo0
,&_obj1
))
874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SaveFile. Expected _wxDiagram_p.");
881 #if PYTHON_API_VERSION >= 1009
882 char* tmpPtr
; int tmpSize
;
883 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
884 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
887 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
889 _arg1
= new wxString(tmpPtr
, tmpSize
);
891 if (!PyString_Check(_obj1
)) {
892 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
895 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
900 _result
= (bool )wxDiagram_SaveFile(_arg0
,*_arg1
);
902 wxPyEndAllowThreads(__tstate
);
903 if (PyErr_Occurred()) return NULL
;
904 } _resultobj
= Py_BuildValue("i",_result
);
912 #define wxDiagram_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
913 static PyObject
*_wrap_wxDiagram_SetCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
914 PyObject
* _resultobj
;
916 wxPyShapeCanvas
* _arg1
;
917 PyObject
* _argo0
= 0;
918 PyObject
* _argo1
= 0;
919 char *_kwnames
[] = { "self","canvas", NULL
};
922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_SetCanvas",_kwnames
,&_argo0
,&_argo1
))
925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetCanvas. Expected _wxDiagram_p.");
932 if (_argo1
== Py_None
) { _arg1
= NULL
; }
933 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShapeCanvas_p")) {
934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_SetCanvas. Expected _wxPyShapeCanvas_p.");
939 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
940 wxDiagram_SetCanvas(_arg0
,_arg1
);
942 wxPyEndAllowThreads(__tstate
);
943 if (PyErr_Occurred()) return NULL
;
944 } Py_INCREF(Py_None
);
945 _resultobj
= Py_None
;
949 #define wxDiagram_SetGridSpacing(_swigobj,_swigarg0) (_swigobj->SetGridSpacing(_swigarg0))
950 static PyObject
*_wrap_wxDiagram_SetGridSpacing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
951 PyObject
* _resultobj
;
954 PyObject
* _argo0
= 0;
955 char *_kwnames
[] = { "self","spacing", NULL
};
958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Od:wxDiagram_SetGridSpacing",_kwnames
,&_argo0
,&_arg1
))
961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetGridSpacing. Expected _wxDiagram_p.");
968 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
969 wxDiagram_SetGridSpacing(_arg0
,_arg1
);
971 wxPyEndAllowThreads(__tstate
);
972 if (PyErr_Occurred()) return NULL
;
973 } Py_INCREF(Py_None
);
974 _resultobj
= Py_None
;
978 #define wxDiagram_SetMouseTolerance(_swigobj,_swigarg0) (_swigobj->SetMouseTolerance(_swigarg0))
979 static PyObject
*_wrap_wxDiagram_SetMouseTolerance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
980 PyObject
* _resultobj
;
983 PyObject
* _argo0
= 0;
984 char *_kwnames
[] = { "self","tolerance", NULL
};
987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_SetMouseTolerance",_kwnames
,&_argo0
,&_arg1
))
990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetMouseTolerance. Expected _wxDiagram_p.");
997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
998 wxDiagram_SetMouseTolerance(_arg0
,_arg1
);
1000 wxPyEndAllowThreads(__tstate
);
1001 if (PyErr_Occurred()) return NULL
;
1002 } Py_INCREF(Py_None
);
1003 _resultobj
= Py_None
;
1007 #define wxDiagram_SetQuickEditMode(_swigobj,_swigarg0) (_swigobj->SetQuickEditMode(_swigarg0))
1008 static PyObject
*_wrap_wxDiagram_SetQuickEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1009 PyObject
* _resultobj
;
1012 PyObject
* _argo0
= 0;
1014 char *_kwnames
[] = { "self","mode", NULL
};
1017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_SetQuickEditMode",_kwnames
,&_argo0
,&tempbool1
))
1020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
1022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetQuickEditMode. Expected _wxDiagram_p.");
1026 _arg1
= (bool ) tempbool1
;
1028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1029 wxDiagram_SetQuickEditMode(_arg0
,_arg1
);
1031 wxPyEndAllowThreads(__tstate
);
1032 if (PyErr_Occurred()) return NULL
;
1033 } Py_INCREF(Py_None
);
1034 _resultobj
= Py_None
;
1038 #define wxDiagram_SetSnapToGrid(_swigobj,_swigarg0) (_swigobj->SetSnapToGrid(_swigarg0))
1039 static PyObject
*_wrap_wxDiagram_SetSnapToGrid(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1040 PyObject
* _resultobj
;
1043 PyObject
* _argo0
= 0;
1045 char *_kwnames
[] = { "self","snap", NULL
};
1048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_SetSnapToGrid",_kwnames
,&_argo0
,&tempbool1
))
1051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
1053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetSnapToGrid. Expected _wxDiagram_p.");
1057 _arg1
= (bool ) tempbool1
;
1059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1060 wxDiagram_SetSnapToGrid(_arg0
,_arg1
);
1062 wxPyEndAllowThreads(__tstate
);
1063 if (PyErr_Occurred()) return NULL
;
1064 } Py_INCREF(Py_None
);
1065 _resultobj
= Py_None
;
1069 #define wxDiagram_ShowAll(_swigobj,_swigarg0) (_swigobj->ShowAll(_swigarg0))
1070 static PyObject
*_wrap_wxDiagram_ShowAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1071 PyObject
* _resultobj
;
1074 PyObject
* _argo0
= 0;
1076 char *_kwnames
[] = { "self","show", NULL
};
1079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_ShowAll",_kwnames
,&_argo0
,&tempbool1
))
1082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
1084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_ShowAll. Expected _wxDiagram_p.");
1088 _arg1
= (bool ) tempbool1
;
1090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1091 wxDiagram_ShowAll(_arg0
,_arg1
);
1093 wxPyEndAllowThreads(__tstate
);
1094 if (PyErr_Occurred()) return NULL
;
1095 } Py_INCREF(Py_None
);
1096 _resultobj
= Py_None
;
1100 #define wxDiagram_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
1101 static PyObject
*_wrap_wxDiagram_Snap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1102 PyObject
* _resultobj
;
1106 PyObject
* _argo0
= 0;
1108 PyObject
* _obj1
= 0;
1110 PyObject
* _obj2
= 0;
1111 char *_kwnames
[] = { "self","INOUT","INOUT", NULL
};
1114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDiagram_Snap",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
1119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_Snap. Expected _wxDiagram_p.");
1124 temp
= PyFloat_AsDouble(_obj1
);
1128 temp0
= PyFloat_AsDouble(_obj2
);
1132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1133 wxDiagram_Snap(_arg0
,_arg1
,_arg2
);
1135 wxPyEndAllowThreads(__tstate
);
1136 if (PyErr_Occurred()) return NULL
;
1137 } Py_INCREF(Py_None
);
1138 _resultobj
= Py_None
;
1141 o
= PyFloat_FromDouble((double) (*_arg1
));
1142 _resultobj
= t_output_helper(_resultobj
, o
);
1146 o
= PyFloat_FromDouble((double) (*_arg2
));
1147 _resultobj
= t_output_helper(_resultobj
, o
);
1152 static void *SwigwxPyShapeCanvasTowxScrolledWindow(void *ptr
) {
1153 wxPyShapeCanvas
*src
;
1154 wxScrolledWindow
*dest
;
1155 src
= (wxPyShapeCanvas
*) ptr
;
1156 dest
= (wxScrolledWindow
*) src
;
1157 return (void *) dest
;
1160 static void *SwigwxPyShapeCanvasTowxPanel(void *ptr
) {
1161 wxPyShapeCanvas
*src
;
1163 src
= (wxPyShapeCanvas
*) ptr
;
1164 dest
= (wxPanel
*) src
;
1165 return (void *) dest
;
1168 static void *SwigwxPyShapeCanvasTowxWindow(void *ptr
) {
1169 wxPyShapeCanvas
*src
;
1171 src
= (wxPyShapeCanvas
*) ptr
;
1172 dest
= (wxWindow
*) src
;
1173 return (void *) dest
;
1176 static void *SwigwxPyShapeCanvasTowxEvtHandler(void *ptr
) {
1177 wxPyShapeCanvas
*src
;
1179 src
= (wxPyShapeCanvas
*) ptr
;
1180 dest
= (wxEvtHandler
*) src
;
1181 return (void *) dest
;
1184 static void *SwigwxPyShapeCanvasTowxObject(void *ptr
) {
1185 wxPyShapeCanvas
*src
;
1187 src
= (wxPyShapeCanvas
*) ptr
;
1188 dest
= (wxObject
*) src
;
1189 return (void *) dest
;
1192 #define new_wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1193 static PyObject
*_wrap_new_wxPyShapeCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1194 PyObject
* _resultobj
;
1195 wxPyShapeCanvas
* _result
;
1196 wxWindow
* _arg0
= (wxWindow
*) NULL
;
1197 wxWindowID _arg1
= (wxWindowID
) -1;
1198 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
1199 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
1200 long _arg4
= (long ) wxBORDER
;
1201 PyObject
* _argo0
= 0;
1203 PyObject
* _obj2
= 0;
1205 PyObject
* _obj3
= 0;
1206 char *_kwnames
[] = { "parent","id","pos","size","style", NULL
};
1210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOl:new_wxPyShapeCanvas",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
1213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyShapeCanvas. Expected _wxWindow_p.");
1222 if (! wxPoint_helper(_obj2
, &_arg2
))
1228 if (! wxSize_helper(_obj3
, &_arg3
))
1232 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1233 _result
= (wxPyShapeCanvas
*)new_wxPyShapeCanvas(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
1235 wxPyEndAllowThreads(__tstate
);
1236 if (PyErr_Occurred()) return NULL
;
1238 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyShapeCanvas_p");
1239 _resultobj
= Py_BuildValue("s",_ptemp
);
1242 _resultobj
= Py_None
;
1247 #define wxPyShapeCanvas__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1248 static PyObject
*_wrap_wxPyShapeCanvas__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1249 PyObject
* _resultobj
;
1250 wxPyShapeCanvas
* _arg0
;
1253 PyObject
* _argo0
= 0;
1254 PyObject
* _obj1
= 0;
1255 PyObject
* _obj2
= 0;
1256 char *_kwnames
[] = { "self","self","_class", NULL
};
1259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyShapeCanvas__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas__setCallbackInfo. Expected _wxPyShapeCanvas_p.");
1275 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1276 wxPyShapeCanvas__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1278 wxPyEndAllowThreads(__tstate
);
1279 if (PyErr_Occurred()) return NULL
;
1280 } Py_INCREF(Py_None
);
1281 _resultobj
= Py_None
;
1285 #define wxPyShapeCanvas_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
1286 static PyObject
*_wrap_wxPyShapeCanvas_AddShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1287 PyObject
* _resultobj
;
1288 wxPyShapeCanvas
* _arg0
;
1290 wxPyShape
* _arg2
= (wxPyShape
*) NULL
;
1291 PyObject
* _argo0
= 0;
1292 PyObject
* _argo1
= 0;
1293 PyObject
* _argo2
= 0;
1294 char *_kwnames
[] = { "self","shape","addAfter", NULL
};
1297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxPyShapeCanvas_AddShape",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
1300 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1301 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_AddShape. Expected _wxPyShapeCanvas_p.");
1307 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1308 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
1309 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1314 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1315 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPyShape_p")) {
1316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1322 wxPyShapeCanvas_AddShape(_arg0
,_arg1
,_arg2
);
1324 wxPyEndAllowThreads(__tstate
);
1325 if (PyErr_Occurred()) return NULL
;
1326 } Py_INCREF(Py_None
);
1327 _resultobj
= Py_None
;
1331 #define wxPyShapeCanvas_FindShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->FindShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1332 static PyObject
*_wrap_wxPyShapeCanvas_FindShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1333 PyObject
* _resultobj
;
1334 wxPyShape
* _result
;
1335 wxPyShapeCanvas
* _arg0
;
1340 wxClassInfo
* _arg4
= (wxClassInfo
*) NULL
;
1341 wxPyShape
* _arg5
= (wxPyShape
*) NULL
;
1342 PyObject
* _argo0
= 0;
1343 PyObject
* _argo4
= 0;
1344 PyObject
* _argo5
= 0;
1345 char *_kwnames
[] = { "self","x1","y","info","notImage", NULL
};
1351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|OO:wxPyShapeCanvas_FindShape",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo4
,&_argo5
))
1354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_FindShape. Expected _wxPyShapeCanvas_p.");
1361 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1362 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxClassInfo_p")) {
1363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPyShapeCanvas_FindShape. Expected _wxClassInfo_p.");
1368 if (_argo5
== Py_None
) { _arg5
= NULL
; }
1369 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxPyShape_p")) {
1370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxPyShapeCanvas_FindShape. Expected _wxPyShape_p.");
1375 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1376 _result
= (wxPyShape
*)wxPyShapeCanvas_FindShape(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1378 wxPyEndAllowThreads(__tstate
);
1379 if (PyErr_Occurred()) return NULL
;
1380 }{ _resultobj
= wxPyMake_wxShapeEvtHandler(_result
); }
1383 o
= PyInt_FromLong((long) (*_arg3
));
1384 _resultobj
= t_output_helper(_resultobj
, o
);
1389 #define wxPyShapeCanvas_FindFirstSensitiveShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FindFirstSensitiveShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1390 static PyObject
*_wrap_wxPyShapeCanvas_FindFirstSensitiveShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1391 PyObject
* _resultobj
;
1392 wxPyShape
* _result
;
1393 wxPyShapeCanvas
* _arg0
;
1399 PyObject
* _argo0
= 0;
1400 char *_kwnames
[] = { "self","x1","y","op", NULL
};
1406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oddi:wxPyShapeCanvas_FindFirstSensitiveShape",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg4
))
1409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_FindFirstSensitiveShape. Expected _wxPyShapeCanvas_p.");
1416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1417 _result
= (wxPyShape
*)wxPyShapeCanvas_FindFirstSensitiveShape(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1419 wxPyEndAllowThreads(__tstate
);
1420 if (PyErr_Occurred()) return NULL
;
1421 }{ _resultobj
= wxPyMake_wxShapeEvtHandler(_result
); }
1424 o
= PyInt_FromLong((long) (*_arg3
));
1425 _resultobj
= t_output_helper(_resultobj
, o
);
1430 #define wxPyShapeCanvas_GetDiagram(_swigobj) (_swigobj->GetDiagram())
1431 static PyObject
*_wrap_wxPyShapeCanvas_GetDiagram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1432 PyObject
* _resultobj
;
1433 wxDiagram
* _result
;
1434 wxPyShapeCanvas
* _arg0
;
1435 PyObject
* _argo0
= 0;
1436 char *_kwnames
[] = { "self", NULL
};
1439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyShapeCanvas_GetDiagram",_kwnames
,&_argo0
))
1442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_GetDiagram. Expected _wxPyShapeCanvas_p.");
1449 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1450 _result
= (wxDiagram
*)wxPyShapeCanvas_GetDiagram(_arg0
);
1452 wxPyEndAllowThreads(__tstate
);
1453 if (PyErr_Occurred()) return NULL
;
1454 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1458 #define wxPyShapeCanvas_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
1459 static PyObject
*_wrap_wxPyShapeCanvas_GetQuickEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1460 PyObject
* _resultobj
;
1462 wxPyShapeCanvas
* _arg0
;
1463 PyObject
* _argo0
= 0;
1464 char *_kwnames
[] = { "self", NULL
};
1467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyShapeCanvas_GetQuickEditMode",_kwnames
,&_argo0
))
1470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_GetQuickEditMode. Expected _wxPyShapeCanvas_p.");
1477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1478 _result
= (bool )wxPyShapeCanvas_GetQuickEditMode(_arg0
);
1480 wxPyEndAllowThreads(__tstate
);
1481 if (PyErr_Occurred()) return NULL
;
1482 } _resultobj
= Py_BuildValue("i",_result
);
1486 #define wxPyShapeCanvas_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
1487 static PyObject
*_wrap_wxPyShapeCanvas_InsertShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1488 PyObject
* _resultobj
;
1489 wxPyShapeCanvas
* _arg0
;
1491 PyObject
* _argo0
= 0;
1492 PyObject
* _argo1
= 0;
1493 char *_kwnames
[] = { "self","shape", NULL
};
1496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_InsertShape",_kwnames
,&_argo0
,&_argo1
))
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_InsertShape. Expected _wxPyShapeCanvas_p.");
1506 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1507 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
1508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_InsertShape. Expected _wxPyShape_p.");
1513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1514 wxPyShapeCanvas_InsertShape(_arg0
,_arg1
);
1516 wxPyEndAllowThreads(__tstate
);
1517 if (PyErr_Occurred()) return NULL
;
1518 } Py_INCREF(Py_None
);
1519 _resultobj
= Py_None
;
1523 #define wxPyShapeCanvas_base_OnBeginDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragLeft(_swigarg0,_swigarg1,_swigarg2))
1524 static PyObject
*_wrap_wxPyShapeCanvas_base_OnBeginDragLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1525 PyObject
* _resultobj
;
1526 wxPyShapeCanvas
* _arg0
;
1529 int _arg3
= (int ) 0;
1530 PyObject
* _argo0
= 0;
1531 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnBeginDragLeft",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragLeft. Expected _wxPyShapeCanvas_p.");
1544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1545 wxPyShapeCanvas_base_OnBeginDragLeft(_arg0
,_arg1
,_arg2
,_arg3
);
1547 wxPyEndAllowThreads(__tstate
);
1548 if (PyErr_Occurred()) return NULL
;
1549 } Py_INCREF(Py_None
);
1550 _resultobj
= Py_None
;
1554 #define wxPyShapeCanvas_base_OnBeginDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragRight(_swigarg0,_swigarg1,_swigarg2))
1555 static PyObject
*_wrap_wxPyShapeCanvas_base_OnBeginDragRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1556 PyObject
* _resultobj
;
1557 wxPyShapeCanvas
* _arg0
;
1560 int _arg3
= (int ) 0;
1561 PyObject
* _argo0
= 0;
1562 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnBeginDragRight",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragRight. Expected _wxPyShapeCanvas_p.");
1575 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1576 wxPyShapeCanvas_base_OnBeginDragRight(_arg0
,_arg1
,_arg2
,_arg3
);
1578 wxPyEndAllowThreads(__tstate
);
1579 if (PyErr_Occurred()) return NULL
;
1580 } Py_INCREF(Py_None
);
1581 _resultobj
= Py_None
;
1585 #define wxPyShapeCanvas_base_OnEndDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragLeft(_swigarg0,_swigarg1,_swigarg2))
1586 static PyObject
*_wrap_wxPyShapeCanvas_base_OnEndDragLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1587 PyObject
* _resultobj
;
1588 wxPyShapeCanvas
* _arg0
;
1591 int _arg3
= (int ) 0;
1592 PyObject
* _argo0
= 0;
1593 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnEndDragLeft",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragLeft. Expected _wxPyShapeCanvas_p.");
1606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1607 wxPyShapeCanvas_base_OnEndDragLeft(_arg0
,_arg1
,_arg2
,_arg3
);
1609 wxPyEndAllowThreads(__tstate
);
1610 if (PyErr_Occurred()) return NULL
;
1611 } Py_INCREF(Py_None
);
1612 _resultobj
= Py_None
;
1616 #define wxPyShapeCanvas_base_OnEndDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragRight(_swigarg0,_swigarg1,_swigarg2))
1617 static PyObject
*_wrap_wxPyShapeCanvas_base_OnEndDragRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1618 PyObject
* _resultobj
;
1619 wxPyShapeCanvas
* _arg0
;
1622 int _arg3
= (int ) 0;
1623 PyObject
* _argo0
= 0;
1624 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnEndDragRight",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragRight. Expected _wxPyShapeCanvas_p.");
1637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1638 wxPyShapeCanvas_base_OnEndDragRight(_arg0
,_arg1
,_arg2
,_arg3
);
1640 wxPyEndAllowThreads(__tstate
);
1641 if (PyErr_Occurred()) return NULL
;
1642 } Py_INCREF(Py_None
);
1643 _resultobj
= Py_None
;
1647 #define wxPyShapeCanvas_base_OnDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1648 static PyObject
*_wrap_wxPyShapeCanvas_base_OnDragLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1649 PyObject
* _resultobj
;
1650 wxPyShapeCanvas
* _arg0
;
1654 int _arg4
= (int ) 0;
1655 PyObject
* _argo0
= 0;
1657 char *_kwnames
[] = { "self","draw","x","y","keys", NULL
};
1660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oidd|i:wxPyShapeCanvas_base_OnDragLeft",_kwnames
,&_argo0
,&tempbool1
,&_arg2
,&_arg3
,&_arg4
))
1663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragLeft. Expected _wxPyShapeCanvas_p.");
1669 _arg1
= (bool ) tempbool1
;
1671 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1672 wxPyShapeCanvas_base_OnDragLeft(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1674 wxPyEndAllowThreads(__tstate
);
1675 if (PyErr_Occurred()) return NULL
;
1676 } Py_INCREF(Py_None
);
1677 _resultobj
= Py_None
;
1681 #define wxPyShapeCanvas_base_OnDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1682 static PyObject
*_wrap_wxPyShapeCanvas_base_OnDragRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1683 PyObject
* _resultobj
;
1684 wxPyShapeCanvas
* _arg0
;
1688 int _arg4
= (int ) 0;
1689 PyObject
* _argo0
= 0;
1691 char *_kwnames
[] = { "self","draw","x","y","keys", NULL
};
1694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oidd|i:wxPyShapeCanvas_base_OnDragRight",_kwnames
,&_argo0
,&tempbool1
,&_arg2
,&_arg3
,&_arg4
))
1697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragRight. Expected _wxPyShapeCanvas_p.");
1703 _arg1
= (bool ) tempbool1
;
1705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1706 wxPyShapeCanvas_base_OnDragRight(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1708 wxPyEndAllowThreads(__tstate
);
1709 if (PyErr_Occurred()) return NULL
;
1710 } Py_INCREF(Py_None
);
1711 _resultobj
= Py_None
;
1715 #define wxPyShapeCanvas_base_OnLeftClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnLeftClick(_swigarg0,_swigarg1,_swigarg2))
1716 static PyObject
*_wrap_wxPyShapeCanvas_base_OnLeftClick(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1717 PyObject
* _resultobj
;
1718 wxPyShapeCanvas
* _arg0
;
1721 int _arg3
= (int ) 0;
1722 PyObject
* _argo0
= 0;
1723 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnLeftClick",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnLeftClick. Expected _wxPyShapeCanvas_p.");
1736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1737 wxPyShapeCanvas_base_OnLeftClick(_arg0
,_arg1
,_arg2
,_arg3
);
1739 wxPyEndAllowThreads(__tstate
);
1740 if (PyErr_Occurred()) return NULL
;
1741 } Py_INCREF(Py_None
);
1742 _resultobj
= Py_None
;
1746 #define wxPyShapeCanvas_base_OnRightClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnRightClick(_swigarg0,_swigarg1,_swigarg2))
1747 static PyObject
*_wrap_wxPyShapeCanvas_base_OnRightClick(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1748 PyObject
* _resultobj
;
1749 wxPyShapeCanvas
* _arg0
;
1752 int _arg3
= (int ) 0;
1753 PyObject
* _argo0
= 0;
1754 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnRightClick",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnRightClick. Expected _wxPyShapeCanvas_p.");
1767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1768 wxPyShapeCanvas_base_OnRightClick(_arg0
,_arg1
,_arg2
,_arg3
);
1770 wxPyEndAllowThreads(__tstate
);
1771 if (PyErr_Occurred()) return NULL
;
1772 } Py_INCREF(Py_None
);
1773 _resultobj
= Py_None
;
1777 #define wxPyShapeCanvas_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
1778 static PyObject
*_wrap_wxPyShapeCanvas_Redraw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1779 PyObject
* _resultobj
;
1780 wxPyShapeCanvas
* _arg0
;
1782 PyObject
* _argo0
= 0;
1783 PyObject
* _argo1
= 0;
1784 char *_kwnames
[] = { "self","dc", NULL
};
1787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_Redraw",_kwnames
,&_argo0
,&_argo1
))
1790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_Redraw. Expected _wxPyShapeCanvas_p.");
1797 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1798 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
1799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_Redraw. Expected _wxDC_p.");
1804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1805 wxPyShapeCanvas_Redraw(_arg0
,*_arg1
);
1807 wxPyEndAllowThreads(__tstate
);
1808 if (PyErr_Occurred()) return NULL
;
1809 } Py_INCREF(Py_None
);
1810 _resultobj
= Py_None
;
1814 #define wxPyShapeCanvas_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
1815 static PyObject
*_wrap_wxPyShapeCanvas_RemoveShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1816 PyObject
* _resultobj
;
1817 wxPyShapeCanvas
* _arg0
;
1819 PyObject
* _argo0
= 0;
1820 PyObject
* _argo1
= 0;
1821 char *_kwnames
[] = { "self","shape", NULL
};
1824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_RemoveShape",_kwnames
,&_argo0
,&_argo1
))
1827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShapeCanvas_p.");
1834 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1835 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
1836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShape_p.");
1841 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1842 wxPyShapeCanvas_RemoveShape(_arg0
,_arg1
);
1844 wxPyEndAllowThreads(__tstate
);
1845 if (PyErr_Occurred()) return NULL
;
1846 } Py_INCREF(Py_None
);
1847 _resultobj
= Py_None
;
1851 #define wxPyShapeCanvas_SetDiagram(_swigobj,_swigarg0) (_swigobj->SetDiagram(_swigarg0))
1852 static PyObject
*_wrap_wxPyShapeCanvas_SetDiagram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1853 PyObject
* _resultobj
;
1854 wxPyShapeCanvas
* _arg0
;
1856 PyObject
* _argo0
= 0;
1857 PyObject
* _argo1
= 0;
1858 char *_kwnames
[] = { "self","diagram", NULL
};
1861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_SetDiagram",_kwnames
,&_argo0
,&_argo1
))
1864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_SetDiagram. Expected _wxPyShapeCanvas_p.");
1871 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1872 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDiagram_p")) {
1873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_SetDiagram. Expected _wxDiagram_p.");
1878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1879 wxPyShapeCanvas_SetDiagram(_arg0
,_arg1
);
1881 wxPyEndAllowThreads(__tstate
);
1882 if (PyErr_Occurred()) return NULL
;
1883 } Py_INCREF(Py_None
);
1884 _resultobj
= Py_None
;
1888 #define wxPyShapeCanvas_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
1889 static PyObject
*_wrap_wxPyShapeCanvas_Snap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1890 PyObject
* _resultobj
;
1891 wxPyShapeCanvas
* _arg0
;
1894 PyObject
* _argo0
= 0;
1896 PyObject
* _obj1
= 0;
1898 PyObject
* _obj2
= 0;
1899 char *_kwnames
[] = { "self","INOUT","INOUT", NULL
};
1902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyShapeCanvas_Snap",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_Snap. Expected _wxPyShapeCanvas_p.");
1912 temp
= PyFloat_AsDouble(_obj1
);
1916 temp0
= PyFloat_AsDouble(_obj2
);
1920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1921 wxPyShapeCanvas_Snap(_arg0
,_arg1
,_arg2
);
1923 wxPyEndAllowThreads(__tstate
);
1924 if (PyErr_Occurred()) return NULL
;
1925 } Py_INCREF(Py_None
);
1926 _resultobj
= Py_None
;
1929 o
= PyFloat_FromDouble((double) (*_arg1
));
1930 _resultobj
= t_output_helper(_resultobj
, o
);
1934 o
= PyFloat_FromDouble((double) (*_arg2
));
1935 _resultobj
= t_output_helper(_resultobj
, o
);
1940 static PyMethodDef oglcanvascMethods
[] = {
1941 { "wxPyShapeCanvas_Snap", (PyCFunction
) _wrap_wxPyShapeCanvas_Snap
, METH_VARARGS
| METH_KEYWORDS
},
1942 { "wxPyShapeCanvas_SetDiagram", (PyCFunction
) _wrap_wxPyShapeCanvas_SetDiagram
, METH_VARARGS
| METH_KEYWORDS
},
1943 { "wxPyShapeCanvas_RemoveShape", (PyCFunction
) _wrap_wxPyShapeCanvas_RemoveShape
, METH_VARARGS
| METH_KEYWORDS
},
1944 { "wxPyShapeCanvas_Redraw", (PyCFunction
) _wrap_wxPyShapeCanvas_Redraw
, METH_VARARGS
| METH_KEYWORDS
},
1945 { "wxPyShapeCanvas_base_OnRightClick", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnRightClick
, METH_VARARGS
| METH_KEYWORDS
},
1946 { "wxPyShapeCanvas_base_OnLeftClick", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnLeftClick
, METH_VARARGS
| METH_KEYWORDS
},
1947 { "wxPyShapeCanvas_base_OnDragRight", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnDragRight
, METH_VARARGS
| METH_KEYWORDS
},
1948 { "wxPyShapeCanvas_base_OnDragLeft", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnDragLeft
, METH_VARARGS
| METH_KEYWORDS
},
1949 { "wxPyShapeCanvas_base_OnEndDragRight", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnEndDragRight
, METH_VARARGS
| METH_KEYWORDS
},
1950 { "wxPyShapeCanvas_base_OnEndDragLeft", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnEndDragLeft
, METH_VARARGS
| METH_KEYWORDS
},
1951 { "wxPyShapeCanvas_base_OnBeginDragRight", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnBeginDragRight
, METH_VARARGS
| METH_KEYWORDS
},
1952 { "wxPyShapeCanvas_base_OnBeginDragLeft", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnBeginDragLeft
, METH_VARARGS
| METH_KEYWORDS
},
1953 { "wxPyShapeCanvas_InsertShape", (PyCFunction
) _wrap_wxPyShapeCanvas_InsertShape
, METH_VARARGS
| METH_KEYWORDS
},
1954 { "wxPyShapeCanvas_GetQuickEditMode", (PyCFunction
) _wrap_wxPyShapeCanvas_GetQuickEditMode
, METH_VARARGS
| METH_KEYWORDS
},
1955 { "wxPyShapeCanvas_GetDiagram", (PyCFunction
) _wrap_wxPyShapeCanvas_GetDiagram
, METH_VARARGS
| METH_KEYWORDS
},
1956 { "wxPyShapeCanvas_FindFirstSensitiveShape", (PyCFunction
) _wrap_wxPyShapeCanvas_FindFirstSensitiveShape
, METH_VARARGS
| METH_KEYWORDS
},
1957 { "wxPyShapeCanvas_FindShape", (PyCFunction
) _wrap_wxPyShapeCanvas_FindShape
, METH_VARARGS
| METH_KEYWORDS
},
1958 { "wxPyShapeCanvas_AddShape", (PyCFunction
) _wrap_wxPyShapeCanvas_AddShape
, METH_VARARGS
| METH_KEYWORDS
},
1959 { "wxPyShapeCanvas__setCallbackInfo", (PyCFunction
) _wrap_wxPyShapeCanvas__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
1960 { "new_wxPyShapeCanvas", (PyCFunction
) _wrap_new_wxPyShapeCanvas
, METH_VARARGS
| METH_KEYWORDS
},
1961 { "wxDiagram_Snap", (PyCFunction
) _wrap_wxDiagram_Snap
, METH_VARARGS
| METH_KEYWORDS
},
1962 { "wxDiagram_ShowAll", (PyCFunction
) _wrap_wxDiagram_ShowAll
, METH_VARARGS
| METH_KEYWORDS
},
1963 { "wxDiagram_SetSnapToGrid", (PyCFunction
) _wrap_wxDiagram_SetSnapToGrid
, METH_VARARGS
| METH_KEYWORDS
},
1964 { "wxDiagram_SetQuickEditMode", (PyCFunction
) _wrap_wxDiagram_SetQuickEditMode
, METH_VARARGS
| METH_KEYWORDS
},
1965 { "wxDiagram_SetMouseTolerance", (PyCFunction
) _wrap_wxDiagram_SetMouseTolerance
, METH_VARARGS
| METH_KEYWORDS
},
1966 { "wxDiagram_SetGridSpacing", (PyCFunction
) _wrap_wxDiagram_SetGridSpacing
, METH_VARARGS
| METH_KEYWORDS
},
1967 { "wxDiagram_SetCanvas", (PyCFunction
) _wrap_wxDiagram_SetCanvas
, METH_VARARGS
| METH_KEYWORDS
},
1968 { "wxDiagram_SaveFile", (PyCFunction
) _wrap_wxDiagram_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
1969 { "wxDiagram_RemoveShape", (PyCFunction
) _wrap_wxDiagram_RemoveShape
, METH_VARARGS
| METH_KEYWORDS
},
1970 { "wxDiagram_RemoveAllShapes", (PyCFunction
) _wrap_wxDiagram_RemoveAllShapes
, METH_VARARGS
| METH_KEYWORDS
},
1971 { "wxDiagram_Redraw", (PyCFunction
) _wrap_wxDiagram_Redraw
, METH_VARARGS
| METH_KEYWORDS
},
1972 { "wxDiagram_RecentreAll", (PyCFunction
) _wrap_wxDiagram_RecentreAll
, METH_VARARGS
| METH_KEYWORDS
},
1973 { "wxDiagram_ReadNodes", (PyCFunction
) _wrap_wxDiagram_ReadNodes
, METH_VARARGS
| METH_KEYWORDS
},
1974 { "wxDiagram_ReadLines", (PyCFunction
) _wrap_wxDiagram_ReadLines
, METH_VARARGS
| METH_KEYWORDS
},
1975 { "wxDiagram_ReadContainerGeometry", (PyCFunction
) _wrap_wxDiagram_ReadContainerGeometry
, METH_VARARGS
| METH_KEYWORDS
},
1976 { "wxDiagram_LoadFile", (PyCFunction
) _wrap_wxDiagram_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
1977 { "wxDiagram_InsertShape", (PyCFunction
) _wrap_wxDiagram_InsertShape
, METH_VARARGS
| METH_KEYWORDS
},
1978 { "wxDiagram_GetSnapToGrid", (PyCFunction
) _wrap_wxDiagram_GetSnapToGrid
, METH_VARARGS
| METH_KEYWORDS
},
1979 { "wxDiagram_GetQuickEditMode", (PyCFunction
) _wrap_wxDiagram_GetQuickEditMode
, METH_VARARGS
| METH_KEYWORDS
},
1980 { "wxDiagram_GetShapeList", (PyCFunction
) _wrap_wxDiagram_GetShapeList
, METH_VARARGS
| METH_KEYWORDS
},
1981 { "wxDiagram_GetMouseTolerance", (PyCFunction
) _wrap_wxDiagram_GetMouseTolerance
, METH_VARARGS
| METH_KEYWORDS
},
1982 { "wxDiagram_GetGridSpacing", (PyCFunction
) _wrap_wxDiagram_GetGridSpacing
, METH_VARARGS
| METH_KEYWORDS
},
1983 { "wxDiagram_GetCount", (PyCFunction
) _wrap_wxDiagram_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
1984 { "wxDiagram_GetCanvas", (PyCFunction
) _wrap_wxDiagram_GetCanvas
, METH_VARARGS
| METH_KEYWORDS
},
1985 { "wxDiagram_FindShape", (PyCFunction
) _wrap_wxDiagram_FindShape
, METH_VARARGS
| METH_KEYWORDS
},
1986 { "wxDiagram_DrawOutline", (PyCFunction
) _wrap_wxDiagram_DrawOutline
, METH_VARARGS
| METH_KEYWORDS
},
1987 { "wxDiagram_DeleteAllShapes", (PyCFunction
) _wrap_wxDiagram_DeleteAllShapes
, METH_VARARGS
| METH_KEYWORDS
},
1988 { "wxDiagram_Clear", (PyCFunction
) _wrap_wxDiagram_Clear
, METH_VARARGS
| METH_KEYWORDS
},
1989 { "wxDiagram_AddShape", (PyCFunction
) _wrap_wxDiagram_AddShape
, METH_VARARGS
| METH_KEYWORDS
},
1990 { "new_wxDiagram", (PyCFunction
) _wrap_new_wxDiagram
, METH_VARARGS
| METH_KEYWORDS
},
1997 * This table is used by the pointer type-checker
1999 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
2000 { "_signed_long","_long",0},
2001 { "_wxPrintQuality","_wxCoord",0},
2002 { "_wxPrintQuality","_int",0},
2003 { "_wxPrintQuality","_signed_int",0},
2004 { "_wxPrintQuality","_unsigned_int",0},
2005 { "_wxPrintQuality","_wxWindowID",0},
2006 { "_wxPrintQuality","_uint",0},
2007 { "_wxPrintQuality","_EBool",0},
2008 { "_wxPrintQuality","_size_t",0},
2009 { "_wxPrintQuality","_time_t",0},
2010 { "_byte","_unsigned_char",0},
2011 { "_long","_unsigned_long",0},
2012 { "_long","_signed_long",0},
2013 { "_size_t","_wxCoord",0},
2014 { "_size_t","_wxPrintQuality",0},
2015 { "_size_t","_time_t",0},
2016 { "_size_t","_unsigned_int",0},
2017 { "_size_t","_int",0},
2018 { "_size_t","_wxWindowID",0},
2019 { "_size_t","_uint",0},
2020 { "_wxPanel","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxPanel
},
2021 { "_uint","_wxCoord",0},
2022 { "_uint","_wxPrintQuality",0},
2023 { "_uint","_time_t",0},
2024 { "_uint","_size_t",0},
2025 { "_uint","_unsigned_int",0},
2026 { "_uint","_int",0},
2027 { "_uint","_wxWindowID",0},
2028 { "_wxChar","_char",0},
2029 { "_char","_wxChar",0},
2030 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
2031 { "_EBool","_wxCoord",0},
2032 { "_EBool","_wxPrintQuality",0},
2033 { "_EBool","_signed_int",0},
2034 { "_EBool","_int",0},
2035 { "_EBool","_wxWindowID",0},
2036 { "_unsigned_long","_long",0},
2037 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
2038 { "_signed_int","_wxCoord",0},
2039 { "_signed_int","_wxPrintQuality",0},
2040 { "_signed_int","_EBool",0},
2041 { "_signed_int","_wxWindowID",0},
2042 { "_signed_int","_int",0},
2043 { "_WXTYPE","_wxDateTime_t",0},
2044 { "_WXTYPE","_short",0},
2045 { "_WXTYPE","_signed_short",0},
2046 { "_WXTYPE","_unsigned_short",0},
2047 { "_unsigned_short","_wxDateTime_t",0},
2048 { "_unsigned_short","_WXTYPE",0},
2049 { "_unsigned_short","_short",0},
2050 { "_wxObject","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxObject
},
2051 { "_wxObject","_wxDiagram",SwigwxDiagramTowxObject
},
2052 { "_signed_short","_WXTYPE",0},
2053 { "_signed_short","_short",0},
2054 { "_wxScrolledWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxScrolledWindow
},
2055 { "_unsigned_char","_byte",0},
2056 { "_unsigned_int","_wxCoord",0},
2057 { "_unsigned_int","_wxPrintQuality",0},
2058 { "_unsigned_int","_time_t",0},
2059 { "_unsigned_int","_size_t",0},
2060 { "_unsigned_int","_uint",0},
2061 { "_unsigned_int","_wxWindowID",0},
2062 { "_unsigned_int","_int",0},
2063 { "_short","_wxDateTime_t",0},
2064 { "_short","_WXTYPE",0},
2065 { "_short","_unsigned_short",0},
2066 { "_short","_signed_short",0},
2067 { "_wxWindowID","_wxCoord",0},
2068 { "_wxWindowID","_wxPrintQuality",0},
2069 { "_wxWindowID","_time_t",0},
2070 { "_wxWindowID","_size_t",0},
2071 { "_wxWindowID","_EBool",0},
2072 { "_wxWindowID","_uint",0},
2073 { "_wxWindowID","_int",0},
2074 { "_wxWindowID","_signed_int",0},
2075 { "_wxWindowID","_unsigned_int",0},
2076 { "_int","_wxCoord",0},
2077 { "_int","_wxPrintQuality",0},
2078 { "_int","_time_t",0},
2079 { "_int","_size_t",0},
2080 { "_int","_EBool",0},
2081 { "_int","_uint",0},
2082 { "_int","_wxWindowID",0},
2083 { "_int","_unsigned_int",0},
2084 { "_int","_signed_int",0},
2085 { "_wxDateTime_t","_unsigned_short",0},
2086 { "_wxDateTime_t","_short",0},
2087 { "_wxDateTime_t","_WXTYPE",0},
2088 { "_time_t","_wxCoord",0},
2089 { "_time_t","_wxPrintQuality",0},
2090 { "_time_t","_unsigned_int",0},
2091 { "_time_t","_int",0},
2092 { "_time_t","_wxWindowID",0},
2093 { "_time_t","_uint",0},
2094 { "_time_t","_size_t",0},
2095 { "_wxCoord","_int",0},
2096 { "_wxCoord","_signed_int",0},
2097 { "_wxCoord","_unsigned_int",0},
2098 { "_wxCoord","_wxWindowID",0},
2099 { "_wxCoord","_uint",0},
2100 { "_wxCoord","_EBool",0},
2101 { "_wxCoord","_size_t",0},
2102 { "_wxCoord","_time_t",0},
2103 { "_wxCoord","_wxPrintQuality",0},
2104 { "_wxEvtHandler","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxEvtHandler
},
2105 { "_wxWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxWindow
},
2108 static PyObject
*SWIG_globals
;
2112 SWIGEXPORT(void) initoglcanvasc() {
2114 SWIG_globals
= SWIG_newvarlink();
2115 m
= Py_InitModule("oglcanvasc", oglcanvascMethods
);
2116 d
= PyModule_GetDict(m
);
2119 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
2120 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);