]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/ogl/oglcanvas.cpp
cleaned a bit of mess in wxX11
[wxWidgets.git] / wxPython / contrib / ogl / oglcanvas.cpp
1 /*
2 * FILE : contrib/ogl/oglcanvas.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
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.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
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);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initoglcanvasc
55
56 #define SWIG_name "oglcanvasc"
57
58 #include "export.h"
59 #include "oglhelpers.h"
60
61
62 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86 }
87
88 #if PYTHON_API_VERSION >= 1009
89 static char* wxStringErrorMsg = "String or Unicode type required";
90 #else
91 static char* wxStringErrorMsg = "String type required";
92 #endif
93
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);
102 #ifdef __cplusplus
103 extern "C" {
104 #endif
105 static void *SwigwxDiagramTowxObject(void *ptr) {
106 wxDiagram *src;
107 wxObject *dest;
108 src = (wxDiagram *) ptr;
109 dest = (wxObject *) src;
110 return (void *) dest;
111 }
112
113 #define new_wxDiagram() (new wxDiagram())
114 static PyObject *_wrap_new_wxDiagram(PyObject *self, PyObject *args, PyObject *kwargs) {
115 PyObject * _resultobj;
116 wxDiagram * _result;
117 char *_kwnames[] = { NULL };
118 char _ptemp[128];
119
120 self = self;
121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDiagram",_kwnames))
122 return NULL;
123 {
124 PyThreadState* __tstate = wxPyBeginAllowThreads();
125 _result = (wxDiagram *)new_wxDiagram();
126
127 wxPyEndAllowThreads(__tstate);
128 if (PyErr_Occurred()) return NULL;
129 } if (_result) {
130 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDiagram_p");
131 _resultobj = Py_BuildValue("s",_ptemp);
132 } else {
133 Py_INCREF(Py_None);
134 _resultobj = Py_None;
135 }
136 return _resultobj;
137 }
138
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;
142 wxDiagram * _arg0;
143 wxPyShape * _arg1;
144 wxPyShape * _arg2 = (wxPyShape *) NULL;
145 PyObject * _argo0 = 0;
146 PyObject * _argo1 = 0;
147 PyObject * _argo2 = 0;
148 char *_kwnames[] = { "self","shape","addAfter", NULL };
149
150 self = self;
151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDiagram_AddShape",_kwnames,&_argo0,&_argo1,&_argo2))
152 return NULL;
153 if (_argo0) {
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.");
157 return NULL;
158 }
159 }
160 if (_argo1) {
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.");
164 return NULL;
165 }
166 }
167 if (_argo2) {
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.");
171 return NULL;
172 }
173 }
174 {
175 PyThreadState* __tstate = wxPyBeginAllowThreads();
176 wxDiagram_AddShape(_arg0,_arg1,_arg2);
177
178 wxPyEndAllowThreads(__tstate);
179 if (PyErr_Occurred()) return NULL;
180 } Py_INCREF(Py_None);
181 _resultobj = Py_None;
182 return _resultobj;
183 }
184
185 #define wxDiagram_Clear(_swigobj,_swigarg0) (_swigobj->Clear(_swigarg0))
186 static PyObject *_wrap_wxDiagram_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
187 PyObject * _resultobj;
188 wxDiagram * _arg0;
189 wxDC * _arg1;
190 PyObject * _argo0 = 0;
191 PyObject * _argo1 = 0;
192 char *_kwnames[] = { "self","dc", NULL };
193
194 self = self;
195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_Clear",_kwnames,&_argo0,&_argo1))
196 return NULL;
197 if (_argo0) {
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.");
201 return NULL;
202 }
203 }
204 if (_argo1) {
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.");
208 return NULL;
209 }
210 }
211 {
212 PyThreadState* __tstate = wxPyBeginAllowThreads();
213 wxDiagram_Clear(_arg0,*_arg1);
214
215 wxPyEndAllowThreads(__tstate);
216 if (PyErr_Occurred()) return NULL;
217 } Py_INCREF(Py_None);
218 _resultobj = Py_None;
219 return _resultobj;
220 }
221
222 #define wxDiagram_DeleteAllShapes(_swigobj) (_swigobj->DeleteAllShapes())
223 static PyObject *_wrap_wxDiagram_DeleteAllShapes(PyObject *self, PyObject *args, PyObject *kwargs) {
224 PyObject * _resultobj;
225 wxDiagram * _arg0;
226 PyObject * _argo0 = 0;
227 char *_kwnames[] = { "self", NULL };
228
229 self = self;
230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_DeleteAllShapes",_kwnames,&_argo0))
231 return NULL;
232 if (_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.");
236 return NULL;
237 }
238 }
239 {
240 PyThreadState* __tstate = wxPyBeginAllowThreads();
241 wxDiagram_DeleteAllShapes(_arg0);
242
243 wxPyEndAllowThreads(__tstate);
244 if (PyErr_Occurred()) return NULL;
245 } Py_INCREF(Py_None);
246 _resultobj = Py_None;
247 return _resultobj;
248 }
249
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;
253 wxDiagram * _arg0;
254 wxDC * _arg1;
255 double _arg2;
256 double _arg3;
257 double _arg4;
258 double _arg5;
259 PyObject * _argo0 = 0;
260 PyObject * _argo1 = 0;
261 char *_kwnames[] = { "self","dc","x1","y1","x2","y2", NULL };
262
263 self = self;
264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdddd:wxDiagram_DrawOutline",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5))
265 return NULL;
266 if (_argo0) {
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.");
270 return NULL;
271 }
272 }
273 if (_argo1) {
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.");
277 return NULL;
278 }
279 }
280 {
281 PyThreadState* __tstate = wxPyBeginAllowThreads();
282 wxDiagram_DrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
283
284 wxPyEndAllowThreads(__tstate);
285 if (PyErr_Occurred()) return NULL;
286 } Py_INCREF(Py_None);
287 _resultobj = Py_None;
288 return _resultobj;
289 }
290
291 #define wxDiagram_FindShape(_swigobj,_swigarg0) (_swigobj->FindShape(_swigarg0))
292 static PyObject *_wrap_wxDiagram_FindShape(PyObject *self, PyObject *args, PyObject *kwargs) {
293 PyObject * _resultobj;
294 wxPyShape * _result;
295 wxDiagram * _arg0;
296 long _arg1;
297 PyObject * _argo0 = 0;
298 char *_kwnames[] = { "self","id", NULL };
299
300 self = self;
301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDiagram_FindShape",_kwnames,&_argo0,&_arg1))
302 return NULL;
303 if (_argo0) {
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.");
307 return NULL;
308 }
309 }
310 {
311 PyThreadState* __tstate = wxPyBeginAllowThreads();
312 _result = (wxPyShape *)wxDiagram_FindShape(_arg0,_arg1);
313
314 wxPyEndAllowThreads(__tstate);
315 if (PyErr_Occurred()) return NULL;
316 }{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
317 return _resultobj;
318 }
319
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;
324 wxDiagram * _arg0;
325 PyObject * _argo0 = 0;
326 char *_kwnames[] = { "self", NULL };
327
328 self = self;
329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetCanvas",_kwnames,&_argo0))
330 return NULL;
331 if (_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.");
335 return NULL;
336 }
337 }
338 {
339 PyThreadState* __tstate = wxPyBeginAllowThreads();
340 _result = (wxPyShapeCanvas *)wxDiagram_GetCanvas(_arg0);
341
342 wxPyEndAllowThreads(__tstate);
343 if (PyErr_Occurred()) return NULL;
344 }{ _resultobj = wxPyMake_wxObject(_result); }
345 return _resultobj;
346 }
347
348 #define wxDiagram_GetCount(_swigobj) (_swigobj->GetCount())
349 static PyObject *_wrap_wxDiagram_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
350 PyObject * _resultobj;
351 int _result;
352 wxDiagram * _arg0;
353 PyObject * _argo0 = 0;
354 char *_kwnames[] = { "self", NULL };
355
356 self = self;
357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetCount",_kwnames,&_argo0))
358 return NULL;
359 if (_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.");
363 return NULL;
364 }
365 }
366 {
367 PyThreadState* __tstate = wxPyBeginAllowThreads();
368 _result = (int )wxDiagram_GetCount(_arg0);
369
370 wxPyEndAllowThreads(__tstate);
371 if (PyErr_Occurred()) return NULL;
372 } _resultobj = Py_BuildValue("i",_result);
373 return _resultobj;
374 }
375
376 #define wxDiagram_GetGridSpacing(_swigobj) (_swigobj->GetGridSpacing())
377 static PyObject *_wrap_wxDiagram_GetGridSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
378 PyObject * _resultobj;
379 double _result;
380 wxDiagram * _arg0;
381 PyObject * _argo0 = 0;
382 char *_kwnames[] = { "self", NULL };
383
384 self = self;
385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetGridSpacing",_kwnames,&_argo0))
386 return NULL;
387 if (_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.");
391 return NULL;
392 }
393 }
394 {
395 PyThreadState* __tstate = wxPyBeginAllowThreads();
396 _result = (double )wxDiagram_GetGridSpacing(_arg0);
397
398 wxPyEndAllowThreads(__tstate);
399 if (PyErr_Occurred()) return NULL;
400 } _resultobj = Py_BuildValue("d",_result);
401 return _resultobj;
402 }
403
404 #define wxDiagram_GetMouseTolerance(_swigobj) (_swigobj->GetMouseTolerance())
405 static PyObject *_wrap_wxDiagram_GetMouseTolerance(PyObject *self, PyObject *args, PyObject *kwargs) {
406 PyObject * _resultobj;
407 int _result;
408 wxDiagram * _arg0;
409 PyObject * _argo0 = 0;
410 char *_kwnames[] = { "self", NULL };
411
412 self = self;
413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetMouseTolerance",_kwnames,&_argo0))
414 return NULL;
415 if (_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.");
419 return NULL;
420 }
421 }
422 {
423 PyThreadState* __tstate = wxPyBeginAllowThreads();
424 _result = (int )wxDiagram_GetMouseTolerance(_arg0);
425
426 wxPyEndAllowThreads(__tstate);
427 if (PyErr_Occurred()) return NULL;
428 } _resultobj = Py_BuildValue("i",_result);
429 return _resultobj;
430 }
431
432 static PyObject * wxDiagram_GetShapeList(wxDiagram *self) {
433 wxList* list = self->GetShapeList();
434 return wxPy_ConvertList(list, "wxPyShape");
435 }
436 static PyObject *_wrap_wxDiagram_GetShapeList(PyObject *self, PyObject *args, PyObject *kwargs) {
437 PyObject * _resultobj;
438 PyObject * _result;
439 wxDiagram * _arg0;
440 PyObject * _argo0 = 0;
441 char *_kwnames[] = { "self", NULL };
442
443 self = self;
444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetShapeList",_kwnames,&_argo0))
445 return NULL;
446 if (_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.");
450 return NULL;
451 }
452 }
453 {
454 PyThreadState* __tstate = wxPyBeginAllowThreads();
455 _result = (PyObject *)wxDiagram_GetShapeList(_arg0);
456
457 wxPyEndAllowThreads(__tstate);
458 if (PyErr_Occurred()) return NULL;
459 }{
460 _resultobj = _result;
461 }
462 return _resultobj;
463 }
464
465 #define wxDiagram_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
466 static PyObject *_wrap_wxDiagram_GetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
467 PyObject * _resultobj;
468 bool _result;
469 wxDiagram * _arg0;
470 PyObject * _argo0 = 0;
471 char *_kwnames[] = { "self", NULL };
472
473 self = self;
474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetQuickEditMode",_kwnames,&_argo0))
475 return NULL;
476 if (_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.");
480 return NULL;
481 }
482 }
483 {
484 PyThreadState* __tstate = wxPyBeginAllowThreads();
485 _result = (bool )wxDiagram_GetQuickEditMode(_arg0);
486
487 wxPyEndAllowThreads(__tstate);
488 if (PyErr_Occurred()) return NULL;
489 } _resultobj = Py_BuildValue("i",_result);
490 return _resultobj;
491 }
492
493 #define wxDiagram_GetSnapToGrid(_swigobj) (_swigobj->GetSnapToGrid())
494 static PyObject *_wrap_wxDiagram_GetSnapToGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
495 PyObject * _resultobj;
496 bool _result;
497 wxDiagram * _arg0;
498 PyObject * _argo0 = 0;
499 char *_kwnames[] = { "self", NULL };
500
501 self = self;
502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetSnapToGrid",_kwnames,&_argo0))
503 return NULL;
504 if (_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.");
508 return NULL;
509 }
510 }
511 {
512 PyThreadState* __tstate = wxPyBeginAllowThreads();
513 _result = (bool )wxDiagram_GetSnapToGrid(_arg0);
514
515 wxPyEndAllowThreads(__tstate);
516 if (PyErr_Occurred()) return NULL;
517 } _resultobj = Py_BuildValue("i",_result);
518 return _resultobj;
519 }
520
521 #define wxDiagram_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
522 static PyObject *_wrap_wxDiagram_InsertShape(PyObject *self, PyObject *args, PyObject *kwargs) {
523 PyObject * _resultobj;
524 wxDiagram * _arg0;
525 wxPyShape * _arg1;
526 PyObject * _argo0 = 0;
527 PyObject * _argo1 = 0;
528 char *_kwnames[] = { "self","shape", NULL };
529
530 self = self;
531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_InsertShape",_kwnames,&_argo0,&_argo1))
532 return NULL;
533 if (_argo0) {
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.");
537 return NULL;
538 }
539 }
540 if (_argo1) {
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.");
544 return NULL;
545 }
546 }
547 {
548 PyThreadState* __tstate = wxPyBeginAllowThreads();
549 wxDiagram_InsertShape(_arg0,_arg1);
550
551 wxPyEndAllowThreads(__tstate);
552 if (PyErr_Occurred()) return NULL;
553 } Py_INCREF(Py_None);
554 _resultobj = Py_None;
555 return _resultobj;
556 }
557
558 #define wxDiagram_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
559 static PyObject *_wrap_wxDiagram_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
560 PyObject * _resultobj;
561 bool _result;
562 wxDiagram * _arg0;
563 wxString * _arg1;
564 PyObject * _argo0 = 0;
565 PyObject * _obj1 = 0;
566 char *_kwnames[] = { "self","filename", NULL };
567
568 self = self;
569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_LoadFile",_kwnames,&_argo0,&_obj1))
570 return NULL;
571 if (_argo0) {
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.");
575 return NULL;
576 }
577 }
578 {
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);
583 return NULL;
584 }
585 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
586 return NULL;
587 _arg1 = new wxString(tmpPtr, tmpSize);
588 #else
589 if (!PyString_Check(_obj1)) {
590 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
591 return NULL;
592 }
593 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
594 #endif
595 }
596 {
597 PyThreadState* __tstate = wxPyBeginAllowThreads();
598 _result = (bool )wxDiagram_LoadFile(_arg0,*_arg1);
599
600 wxPyEndAllowThreads(__tstate);
601 if (PyErr_Occurred()) return NULL;
602 } _resultobj = Py_BuildValue("i",_result);
603 {
604 if (_obj1)
605 delete _arg1;
606 }
607 return _resultobj;
608 }
609
610 #define wxDiagram_ReadContainerGeometry(_swigobj,_swigarg0) (_swigobj->ReadContainerGeometry(_swigarg0))
611 static PyObject *_wrap_wxDiagram_ReadContainerGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
612 PyObject * _resultobj;
613 wxDiagram * _arg0;
614 wxExprDatabase * _arg1;
615 PyObject * _argo0 = 0;
616 PyObject * _argo1 = 0;
617 char *_kwnames[] = { "self","database", NULL };
618
619 self = self;
620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadContainerGeometry",_kwnames,&_argo0,&_argo1))
621 return NULL;
622 if (_argo0) {
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.");
626 return NULL;
627 }
628 }
629 if (_argo1) {
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.");
633 return NULL;
634 }
635 }
636 {
637 PyThreadState* __tstate = wxPyBeginAllowThreads();
638 wxDiagram_ReadContainerGeometry(_arg0,*_arg1);
639
640 wxPyEndAllowThreads(__tstate);
641 if (PyErr_Occurred()) return NULL;
642 } Py_INCREF(Py_None);
643 _resultobj = Py_None;
644 return _resultobj;
645 }
646
647 #define wxDiagram_ReadLines(_swigobj,_swigarg0) (_swigobj->ReadLines(_swigarg0))
648 static PyObject *_wrap_wxDiagram_ReadLines(PyObject *self, PyObject *args, PyObject *kwargs) {
649 PyObject * _resultobj;
650 wxDiagram * _arg0;
651 wxExprDatabase * _arg1;
652 PyObject * _argo0 = 0;
653 PyObject * _argo1 = 0;
654 char *_kwnames[] = { "self","database", NULL };
655
656 self = self;
657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadLines",_kwnames,&_argo0,&_argo1))
658 return NULL;
659 if (_argo0) {
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.");
663 return NULL;
664 }
665 }
666 if (_argo1) {
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.");
670 return NULL;
671 }
672 }
673 {
674 PyThreadState* __tstate = wxPyBeginAllowThreads();
675 wxDiagram_ReadLines(_arg0,*_arg1);
676
677 wxPyEndAllowThreads(__tstate);
678 if (PyErr_Occurred()) return NULL;
679 } Py_INCREF(Py_None);
680 _resultobj = Py_None;
681 return _resultobj;
682 }
683
684 #define wxDiagram_ReadNodes(_swigobj,_swigarg0) (_swigobj->ReadNodes(_swigarg0))
685 static PyObject *_wrap_wxDiagram_ReadNodes(PyObject *self, PyObject *args, PyObject *kwargs) {
686 PyObject * _resultobj;
687 wxDiagram * _arg0;
688 wxExprDatabase * _arg1;
689 PyObject * _argo0 = 0;
690 PyObject * _argo1 = 0;
691 char *_kwnames[] = { "self","database", NULL };
692
693 self = self;
694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadNodes",_kwnames,&_argo0,&_argo1))
695 return NULL;
696 if (_argo0) {
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.");
700 return NULL;
701 }
702 }
703 if (_argo1) {
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.");
707 return NULL;
708 }
709 }
710 {
711 PyThreadState* __tstate = wxPyBeginAllowThreads();
712 wxDiagram_ReadNodes(_arg0,*_arg1);
713
714 wxPyEndAllowThreads(__tstate);
715 if (PyErr_Occurred()) return NULL;
716 } Py_INCREF(Py_None);
717 _resultobj = Py_None;
718 return _resultobj;
719 }
720
721 #define wxDiagram_RecentreAll(_swigobj,_swigarg0) (_swigobj->RecentreAll(_swigarg0))
722 static PyObject *_wrap_wxDiagram_RecentreAll(PyObject *self, PyObject *args, PyObject *kwargs) {
723 PyObject * _resultobj;
724 wxDiagram * _arg0;
725 wxDC * _arg1;
726 PyObject * _argo0 = 0;
727 PyObject * _argo1 = 0;
728 char *_kwnames[] = { "self","dc", NULL };
729
730 self = self;
731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_RecentreAll",_kwnames,&_argo0,&_argo1))
732 return NULL;
733 if (_argo0) {
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.");
737 return NULL;
738 }
739 }
740 if (_argo1) {
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.");
744 return NULL;
745 }
746 }
747 {
748 PyThreadState* __tstate = wxPyBeginAllowThreads();
749 wxDiagram_RecentreAll(_arg0,*_arg1);
750
751 wxPyEndAllowThreads(__tstate);
752 if (PyErr_Occurred()) return NULL;
753 } Py_INCREF(Py_None);
754 _resultobj = Py_None;
755 return _resultobj;
756 }
757
758 #define wxDiagram_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
759 static PyObject *_wrap_wxDiagram_Redraw(PyObject *self, PyObject *args, PyObject *kwargs) {
760 PyObject * _resultobj;
761 wxDiagram * _arg0;
762 wxDC * _arg1;
763 PyObject * _argo0 = 0;
764 PyObject * _argo1 = 0;
765 char *_kwnames[] = { "self","dc", NULL };
766
767 self = self;
768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_Redraw",_kwnames,&_argo0,&_argo1))
769 return NULL;
770 if (_argo0) {
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.");
774 return NULL;
775 }
776 }
777 if (_argo1) {
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.");
781 return NULL;
782 }
783 }
784 {
785 PyThreadState* __tstate = wxPyBeginAllowThreads();
786 wxDiagram_Redraw(_arg0,*_arg1);
787
788 wxPyEndAllowThreads(__tstate);
789 if (PyErr_Occurred()) return NULL;
790 } Py_INCREF(Py_None);
791 _resultobj = Py_None;
792 return _resultobj;
793 }
794
795 #define wxDiagram_RemoveAllShapes(_swigobj) (_swigobj->RemoveAllShapes())
796 static PyObject *_wrap_wxDiagram_RemoveAllShapes(PyObject *self, PyObject *args, PyObject *kwargs) {
797 PyObject * _resultobj;
798 wxDiagram * _arg0;
799 PyObject * _argo0 = 0;
800 char *_kwnames[] = { "self", NULL };
801
802 self = self;
803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_RemoveAllShapes",_kwnames,&_argo0))
804 return NULL;
805 if (_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.");
809 return NULL;
810 }
811 }
812 {
813 PyThreadState* __tstate = wxPyBeginAllowThreads();
814 wxDiagram_RemoveAllShapes(_arg0);
815
816 wxPyEndAllowThreads(__tstate);
817 if (PyErr_Occurred()) return NULL;
818 } Py_INCREF(Py_None);
819 _resultobj = Py_None;
820 return _resultobj;
821 }
822
823 #define wxDiagram_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
824 static PyObject *_wrap_wxDiagram_RemoveShape(PyObject *self, PyObject *args, PyObject *kwargs) {
825 PyObject * _resultobj;
826 wxDiagram * _arg0;
827 wxPyShape * _arg1;
828 PyObject * _argo0 = 0;
829 PyObject * _argo1 = 0;
830 char *_kwnames[] = { "self","shape", NULL };
831
832 self = self;
833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_RemoveShape",_kwnames,&_argo0,&_argo1))
834 return NULL;
835 if (_argo0) {
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.");
839 return NULL;
840 }
841 }
842 if (_argo1) {
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.");
846 return NULL;
847 }
848 }
849 {
850 PyThreadState* __tstate = wxPyBeginAllowThreads();
851 wxDiagram_RemoveShape(_arg0,_arg1);
852
853 wxPyEndAllowThreads(__tstate);
854 if (PyErr_Occurred()) return NULL;
855 } Py_INCREF(Py_None);
856 _resultobj = Py_None;
857 return _resultobj;
858 }
859
860 #define wxDiagram_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
861 static PyObject *_wrap_wxDiagram_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
862 PyObject * _resultobj;
863 bool _result;
864 wxDiagram * _arg0;
865 wxString * _arg1;
866 PyObject * _argo0 = 0;
867 PyObject * _obj1 = 0;
868 char *_kwnames[] = { "self","filename", NULL };
869
870 self = self;
871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_SaveFile",_kwnames,&_argo0,&_obj1))
872 return NULL;
873 if (_argo0) {
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.");
877 return NULL;
878 }
879 }
880 {
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);
885 return NULL;
886 }
887 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
888 return NULL;
889 _arg1 = new wxString(tmpPtr, tmpSize);
890 #else
891 if (!PyString_Check(_obj1)) {
892 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
893 return NULL;
894 }
895 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
896 #endif
897 }
898 {
899 PyThreadState* __tstate = wxPyBeginAllowThreads();
900 _result = (bool )wxDiagram_SaveFile(_arg0,*_arg1);
901
902 wxPyEndAllowThreads(__tstate);
903 if (PyErr_Occurred()) return NULL;
904 } _resultobj = Py_BuildValue("i",_result);
905 {
906 if (_obj1)
907 delete _arg1;
908 }
909 return _resultobj;
910 }
911
912 #define wxDiagram_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
913 static PyObject *_wrap_wxDiagram_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
914 PyObject * _resultobj;
915 wxDiagram * _arg0;
916 wxPyShapeCanvas * _arg1;
917 PyObject * _argo0 = 0;
918 PyObject * _argo1 = 0;
919 char *_kwnames[] = { "self","canvas", NULL };
920
921 self = self;
922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_SetCanvas",_kwnames,&_argo0,&_argo1))
923 return NULL;
924 if (_argo0) {
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.");
928 return NULL;
929 }
930 }
931 if (_argo1) {
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.");
935 return NULL;
936 }
937 }
938 {
939 PyThreadState* __tstate = wxPyBeginAllowThreads();
940 wxDiagram_SetCanvas(_arg0,_arg1);
941
942 wxPyEndAllowThreads(__tstate);
943 if (PyErr_Occurred()) return NULL;
944 } Py_INCREF(Py_None);
945 _resultobj = Py_None;
946 return _resultobj;
947 }
948
949 #define wxDiagram_SetGridSpacing(_swigobj,_swigarg0) (_swigobj->SetGridSpacing(_swigarg0))
950 static PyObject *_wrap_wxDiagram_SetGridSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
951 PyObject * _resultobj;
952 wxDiagram * _arg0;
953 double _arg1;
954 PyObject * _argo0 = 0;
955 char *_kwnames[] = { "self","spacing", NULL };
956
957 self = self;
958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxDiagram_SetGridSpacing",_kwnames,&_argo0,&_arg1))
959 return NULL;
960 if (_argo0) {
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.");
964 return NULL;
965 }
966 }
967 {
968 PyThreadState* __tstate = wxPyBeginAllowThreads();
969 wxDiagram_SetGridSpacing(_arg0,_arg1);
970
971 wxPyEndAllowThreads(__tstate);
972 if (PyErr_Occurred()) return NULL;
973 } Py_INCREF(Py_None);
974 _resultobj = Py_None;
975 return _resultobj;
976 }
977
978 #define wxDiagram_SetMouseTolerance(_swigobj,_swigarg0) (_swigobj->SetMouseTolerance(_swigarg0))
979 static PyObject *_wrap_wxDiagram_SetMouseTolerance(PyObject *self, PyObject *args, PyObject *kwargs) {
980 PyObject * _resultobj;
981 wxDiagram * _arg0;
982 int _arg1;
983 PyObject * _argo0 = 0;
984 char *_kwnames[] = { "self","tolerance", NULL };
985
986 self = self;
987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_SetMouseTolerance",_kwnames,&_argo0,&_arg1))
988 return NULL;
989 if (_argo0) {
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.");
993 return NULL;
994 }
995 }
996 {
997 PyThreadState* __tstate = wxPyBeginAllowThreads();
998 wxDiagram_SetMouseTolerance(_arg0,_arg1);
999
1000 wxPyEndAllowThreads(__tstate);
1001 if (PyErr_Occurred()) return NULL;
1002 } Py_INCREF(Py_None);
1003 _resultobj = Py_None;
1004 return _resultobj;
1005 }
1006
1007 #define wxDiagram_SetQuickEditMode(_swigobj,_swigarg0) (_swigobj->SetQuickEditMode(_swigarg0))
1008 static PyObject *_wrap_wxDiagram_SetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1009 PyObject * _resultobj;
1010 wxDiagram * _arg0;
1011 bool _arg1;
1012 PyObject * _argo0 = 0;
1013 int tempbool1;
1014 char *_kwnames[] = { "self","mode", NULL };
1015
1016 self = self;
1017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_SetQuickEditMode",_kwnames,&_argo0,&tempbool1))
1018 return NULL;
1019 if (_argo0) {
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.");
1023 return NULL;
1024 }
1025 }
1026 _arg1 = (bool ) tempbool1;
1027 {
1028 PyThreadState* __tstate = wxPyBeginAllowThreads();
1029 wxDiagram_SetQuickEditMode(_arg0,_arg1);
1030
1031 wxPyEndAllowThreads(__tstate);
1032 if (PyErr_Occurred()) return NULL;
1033 } Py_INCREF(Py_None);
1034 _resultobj = Py_None;
1035 return _resultobj;
1036 }
1037
1038 #define wxDiagram_SetSnapToGrid(_swigobj,_swigarg0) (_swigobj->SetSnapToGrid(_swigarg0))
1039 static PyObject *_wrap_wxDiagram_SetSnapToGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
1040 PyObject * _resultobj;
1041 wxDiagram * _arg0;
1042 bool _arg1;
1043 PyObject * _argo0 = 0;
1044 int tempbool1;
1045 char *_kwnames[] = { "self","snap", NULL };
1046
1047 self = self;
1048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_SetSnapToGrid",_kwnames,&_argo0,&tempbool1))
1049 return NULL;
1050 if (_argo0) {
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.");
1054 return NULL;
1055 }
1056 }
1057 _arg1 = (bool ) tempbool1;
1058 {
1059 PyThreadState* __tstate = wxPyBeginAllowThreads();
1060 wxDiagram_SetSnapToGrid(_arg0,_arg1);
1061
1062 wxPyEndAllowThreads(__tstate);
1063 if (PyErr_Occurred()) return NULL;
1064 } Py_INCREF(Py_None);
1065 _resultobj = Py_None;
1066 return _resultobj;
1067 }
1068
1069 #define wxDiagram_ShowAll(_swigobj,_swigarg0) (_swigobj->ShowAll(_swigarg0))
1070 static PyObject *_wrap_wxDiagram_ShowAll(PyObject *self, PyObject *args, PyObject *kwargs) {
1071 PyObject * _resultobj;
1072 wxDiagram * _arg0;
1073 bool _arg1;
1074 PyObject * _argo0 = 0;
1075 int tempbool1;
1076 char *_kwnames[] = { "self","show", NULL };
1077
1078 self = self;
1079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_ShowAll",_kwnames,&_argo0,&tempbool1))
1080 return NULL;
1081 if (_argo0) {
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.");
1085 return NULL;
1086 }
1087 }
1088 _arg1 = (bool ) tempbool1;
1089 {
1090 PyThreadState* __tstate = wxPyBeginAllowThreads();
1091 wxDiagram_ShowAll(_arg0,_arg1);
1092
1093 wxPyEndAllowThreads(__tstate);
1094 if (PyErr_Occurred()) return NULL;
1095 } Py_INCREF(Py_None);
1096 _resultobj = Py_None;
1097 return _resultobj;
1098 }
1099
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;
1103 wxDiagram * _arg0;
1104 double * _arg1;
1105 double * _arg2;
1106 PyObject * _argo0 = 0;
1107 double temp;
1108 PyObject * _obj1 = 0;
1109 double temp0;
1110 PyObject * _obj2 = 0;
1111 char *_kwnames[] = { "self","INOUT","INOUT", NULL };
1112
1113 self = self;
1114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDiagram_Snap",_kwnames,&_argo0,&_obj1,&_obj2))
1115 return NULL;
1116 if (_argo0) {
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.");
1120 return NULL;
1121 }
1122 }
1123 {
1124 temp = PyFloat_AsDouble(_obj1);
1125 _arg1 = &temp;
1126 }
1127 {
1128 temp0 = PyFloat_AsDouble(_obj2);
1129 _arg2 = &temp0;
1130 }
1131 {
1132 PyThreadState* __tstate = wxPyBeginAllowThreads();
1133 wxDiagram_Snap(_arg0,_arg1,_arg2);
1134
1135 wxPyEndAllowThreads(__tstate);
1136 if (PyErr_Occurred()) return NULL;
1137 } Py_INCREF(Py_None);
1138 _resultobj = Py_None;
1139 {
1140 PyObject *o;
1141 o = PyFloat_FromDouble((double) (*_arg1));
1142 _resultobj = t_output_helper(_resultobj, o);
1143 }
1144 {
1145 PyObject *o;
1146 o = PyFloat_FromDouble((double) (*_arg2));
1147 _resultobj = t_output_helper(_resultobj, o);
1148 }
1149 return _resultobj;
1150 }
1151
1152 static void *SwigwxPyShapeCanvasTowxScrolledWindow(void *ptr) {
1153 wxPyShapeCanvas *src;
1154 wxScrolledWindow *dest;
1155 src = (wxPyShapeCanvas *) ptr;
1156 dest = (wxScrolledWindow *) src;
1157 return (void *) dest;
1158 }
1159
1160 static void *SwigwxPyShapeCanvasTowxPanel(void *ptr) {
1161 wxPyShapeCanvas *src;
1162 wxPanel *dest;
1163 src = (wxPyShapeCanvas *) ptr;
1164 dest = (wxPanel *) src;
1165 return (void *) dest;
1166 }
1167
1168 static void *SwigwxPyShapeCanvasTowxWindow(void *ptr) {
1169 wxPyShapeCanvas *src;
1170 wxWindow *dest;
1171 src = (wxPyShapeCanvas *) ptr;
1172 dest = (wxWindow *) src;
1173 return (void *) dest;
1174 }
1175
1176 static void *SwigwxPyShapeCanvasTowxEvtHandler(void *ptr) {
1177 wxPyShapeCanvas *src;
1178 wxEvtHandler *dest;
1179 src = (wxPyShapeCanvas *) ptr;
1180 dest = (wxEvtHandler *) src;
1181 return (void *) dest;
1182 }
1183
1184 static void *SwigwxPyShapeCanvasTowxObject(void *ptr) {
1185 wxPyShapeCanvas *src;
1186 wxObject *dest;
1187 src = (wxPyShapeCanvas *) ptr;
1188 dest = (wxObject *) src;
1189 return (void *) dest;
1190 }
1191
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;
1202 wxPoint temp;
1203 PyObject * _obj2 = 0;
1204 wxSize temp0;
1205 PyObject * _obj3 = 0;
1206 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
1207 char _ptemp[128];
1208
1209 self = self;
1210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOl:new_wxPyShapeCanvas",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
1211 return NULL;
1212 if (_argo0) {
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.");
1216 return NULL;
1217 }
1218 }
1219 if (_obj2)
1220 {
1221 _arg2 = &temp;
1222 if (! wxPoint_helper(_obj2, &_arg2))
1223 return NULL;
1224 }
1225 if (_obj3)
1226 {
1227 _arg3 = &temp0;
1228 if (! wxSize_helper(_obj3, &_arg3))
1229 return NULL;
1230 }
1231 {
1232 PyThreadState* __tstate = wxPyBeginAllowThreads();
1233 _result = (wxPyShapeCanvas *)new_wxPyShapeCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4);
1234
1235 wxPyEndAllowThreads(__tstate);
1236 if (PyErr_Occurred()) return NULL;
1237 } if (_result) {
1238 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShapeCanvas_p");
1239 _resultobj = Py_BuildValue("s",_ptemp);
1240 } else {
1241 Py_INCREF(Py_None);
1242 _resultobj = Py_None;
1243 }
1244 return _resultobj;
1245 }
1246
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;
1251 PyObject * _arg1;
1252 PyObject * _arg2;
1253 PyObject * _argo0 = 0;
1254 PyObject * _obj1 = 0;
1255 PyObject * _obj2 = 0;
1256 char *_kwnames[] = { "self","self","_class", NULL };
1257
1258 self = self;
1259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyShapeCanvas__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1260 return NULL;
1261 if (_argo0) {
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.");
1265 return NULL;
1266 }
1267 }
1268 {
1269 _arg1 = _obj1;
1270 }
1271 {
1272 _arg2 = _obj2;
1273 }
1274 {
1275 PyThreadState* __tstate = wxPyBeginAllowThreads();
1276 wxPyShapeCanvas__setCallbackInfo(_arg0,_arg1,_arg2);
1277
1278 wxPyEndAllowThreads(__tstate);
1279 if (PyErr_Occurred()) return NULL;
1280 } Py_INCREF(Py_None);
1281 _resultobj = Py_None;
1282 return _resultobj;
1283 }
1284
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;
1289 wxPyShape * _arg1;
1290 wxPyShape * _arg2 = (wxPyShape *) NULL;
1291 PyObject * _argo0 = 0;
1292 PyObject * _argo1 = 0;
1293 PyObject * _argo2 = 0;
1294 char *_kwnames[] = { "self","shape","addAfter", NULL };
1295
1296 self = self;
1297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxPyShapeCanvas_AddShape",_kwnames,&_argo0,&_argo1,&_argo2))
1298 return NULL;
1299 if (_argo0) {
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.");
1303 return NULL;
1304 }
1305 }
1306 if (_argo1) {
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.");
1310 return NULL;
1311 }
1312 }
1313 if (_argo2) {
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.");
1317 return NULL;
1318 }
1319 }
1320 {
1321 PyThreadState* __tstate = wxPyBeginAllowThreads();
1322 wxPyShapeCanvas_AddShape(_arg0,_arg1,_arg2);
1323
1324 wxPyEndAllowThreads(__tstate);
1325 if (PyErr_Occurred()) return NULL;
1326 } Py_INCREF(Py_None);
1327 _resultobj = Py_None;
1328 return _resultobj;
1329 }
1330
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;
1336 double _arg1;
1337 double _arg2;
1338 int * _arg3;
1339 int temp;
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 };
1346
1347 self = self;
1348 {
1349 _arg3 = &temp;
1350 }
1351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|OO:wxPyShapeCanvas_FindShape",_kwnames,&_argo0,&_arg1,&_arg2,&_argo4,&_argo5))
1352 return NULL;
1353 if (_argo0) {
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.");
1357 return NULL;
1358 }
1359 }
1360 if (_argo4) {
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.");
1364 return NULL;
1365 }
1366 }
1367 if (_argo5) {
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.");
1371 return NULL;
1372 }
1373 }
1374 {
1375 PyThreadState* __tstate = wxPyBeginAllowThreads();
1376 _result = (wxPyShape *)wxPyShapeCanvas_FindShape(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
1377
1378 wxPyEndAllowThreads(__tstate);
1379 if (PyErr_Occurred()) return NULL;
1380 }{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
1381 {
1382 PyObject *o;
1383 o = PyInt_FromLong((long) (*_arg3));
1384 _resultobj = t_output_helper(_resultobj, o);
1385 }
1386 return _resultobj;
1387 }
1388
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;
1394 double _arg1;
1395 double _arg2;
1396 int * _arg3;
1397 int temp;
1398 int _arg4;
1399 PyObject * _argo0 = 0;
1400 char *_kwnames[] = { "self","x1","y","op", NULL };
1401
1402 self = self;
1403 {
1404 _arg3 = &temp;
1405 }
1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oddi:wxPyShapeCanvas_FindFirstSensitiveShape",_kwnames,&_argo0,&_arg1,&_arg2,&_arg4))
1407 return NULL;
1408 if (_argo0) {
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.");
1412 return NULL;
1413 }
1414 }
1415 {
1416 PyThreadState* __tstate = wxPyBeginAllowThreads();
1417 _result = (wxPyShape *)wxPyShapeCanvas_FindFirstSensitiveShape(_arg0,_arg1,_arg2,_arg3,_arg4);
1418
1419 wxPyEndAllowThreads(__tstate);
1420 if (PyErr_Occurred()) return NULL;
1421 }{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
1422 {
1423 PyObject *o;
1424 o = PyInt_FromLong((long) (*_arg3));
1425 _resultobj = t_output_helper(_resultobj, o);
1426 }
1427 return _resultobj;
1428 }
1429
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 };
1437
1438 self = self;
1439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeCanvas_GetDiagram",_kwnames,&_argo0))
1440 return NULL;
1441 if (_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.");
1445 return NULL;
1446 }
1447 }
1448 {
1449 PyThreadState* __tstate = wxPyBeginAllowThreads();
1450 _result = (wxDiagram *)wxPyShapeCanvas_GetDiagram(_arg0);
1451
1452 wxPyEndAllowThreads(__tstate);
1453 if (PyErr_Occurred()) return NULL;
1454 }{ _resultobj = wxPyMake_wxObject(_result); }
1455 return _resultobj;
1456 }
1457
1458 #define wxPyShapeCanvas_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
1459 static PyObject *_wrap_wxPyShapeCanvas_GetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1460 PyObject * _resultobj;
1461 bool _result;
1462 wxPyShapeCanvas * _arg0;
1463 PyObject * _argo0 = 0;
1464 char *_kwnames[] = { "self", NULL };
1465
1466 self = self;
1467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeCanvas_GetQuickEditMode",_kwnames,&_argo0))
1468 return NULL;
1469 if (_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.");
1473 return NULL;
1474 }
1475 }
1476 {
1477 PyThreadState* __tstate = wxPyBeginAllowThreads();
1478 _result = (bool )wxPyShapeCanvas_GetQuickEditMode(_arg0);
1479
1480 wxPyEndAllowThreads(__tstate);
1481 if (PyErr_Occurred()) return NULL;
1482 } _resultobj = Py_BuildValue("i",_result);
1483 return _resultobj;
1484 }
1485
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;
1490 wxPyShape * _arg1;
1491 PyObject * _argo0 = 0;
1492 PyObject * _argo1 = 0;
1493 char *_kwnames[] = { "self","shape", NULL };
1494
1495 self = self;
1496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_InsertShape",_kwnames,&_argo0,&_argo1))
1497 return NULL;
1498 if (_argo0) {
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.");
1502 return NULL;
1503 }
1504 }
1505 if (_argo1) {
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.");
1509 return NULL;
1510 }
1511 }
1512 {
1513 PyThreadState* __tstate = wxPyBeginAllowThreads();
1514 wxPyShapeCanvas_InsertShape(_arg0,_arg1);
1515
1516 wxPyEndAllowThreads(__tstate);
1517 if (PyErr_Occurred()) return NULL;
1518 } Py_INCREF(Py_None);
1519 _resultobj = Py_None;
1520 return _resultobj;
1521 }
1522
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;
1527 double _arg1;
1528 double _arg2;
1529 int _arg3 = (int ) 0;
1530 PyObject * _argo0 = 0;
1531 char *_kwnames[] = { "self","x","y","keys", NULL };
1532
1533 self = self;
1534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnBeginDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1535 return NULL;
1536 if (_argo0) {
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.");
1540 return NULL;
1541 }
1542 }
1543 {
1544 PyThreadState* __tstate = wxPyBeginAllowThreads();
1545 wxPyShapeCanvas_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3);
1546
1547 wxPyEndAllowThreads(__tstate);
1548 if (PyErr_Occurred()) return NULL;
1549 } Py_INCREF(Py_None);
1550 _resultobj = Py_None;
1551 return _resultobj;
1552 }
1553
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;
1558 double _arg1;
1559 double _arg2;
1560 int _arg3 = (int ) 0;
1561 PyObject * _argo0 = 0;
1562 char *_kwnames[] = { "self","x","y","keys", NULL };
1563
1564 self = self;
1565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnBeginDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1566 return NULL;
1567 if (_argo0) {
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.");
1571 return NULL;
1572 }
1573 }
1574 {
1575 PyThreadState* __tstate = wxPyBeginAllowThreads();
1576 wxPyShapeCanvas_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3);
1577
1578 wxPyEndAllowThreads(__tstate);
1579 if (PyErr_Occurred()) return NULL;
1580 } Py_INCREF(Py_None);
1581 _resultobj = Py_None;
1582 return _resultobj;
1583 }
1584
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;
1589 double _arg1;
1590 double _arg2;
1591 int _arg3 = (int ) 0;
1592 PyObject * _argo0 = 0;
1593 char *_kwnames[] = { "self","x","y","keys", NULL };
1594
1595 self = self;
1596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnEndDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1597 return NULL;
1598 if (_argo0) {
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.");
1602 return NULL;
1603 }
1604 }
1605 {
1606 PyThreadState* __tstate = wxPyBeginAllowThreads();
1607 wxPyShapeCanvas_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3);
1608
1609 wxPyEndAllowThreads(__tstate);
1610 if (PyErr_Occurred()) return NULL;
1611 } Py_INCREF(Py_None);
1612 _resultobj = Py_None;
1613 return _resultobj;
1614 }
1615
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;
1620 double _arg1;
1621 double _arg2;
1622 int _arg3 = (int ) 0;
1623 PyObject * _argo0 = 0;
1624 char *_kwnames[] = { "self","x","y","keys", NULL };
1625
1626 self = self;
1627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnEndDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1628 return NULL;
1629 if (_argo0) {
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.");
1633 return NULL;
1634 }
1635 }
1636 {
1637 PyThreadState* __tstate = wxPyBeginAllowThreads();
1638 wxPyShapeCanvas_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3);
1639
1640 wxPyEndAllowThreads(__tstate);
1641 if (PyErr_Occurred()) return NULL;
1642 } Py_INCREF(Py_None);
1643 _resultobj = Py_None;
1644 return _resultobj;
1645 }
1646
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;
1651 bool _arg1;
1652 double _arg2;
1653 double _arg3;
1654 int _arg4 = (int ) 0;
1655 PyObject * _argo0 = 0;
1656 int tempbool1;
1657 char *_kwnames[] = { "self","draw","x","y","keys", NULL };
1658
1659 self = self;
1660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|i:wxPyShapeCanvas_base_OnDragLeft",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4))
1661 return NULL;
1662 if (_argo0) {
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.");
1666 return NULL;
1667 }
1668 }
1669 _arg1 = (bool ) tempbool1;
1670 {
1671 PyThreadState* __tstate = wxPyBeginAllowThreads();
1672 wxPyShapeCanvas_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
1673
1674 wxPyEndAllowThreads(__tstate);
1675 if (PyErr_Occurred()) return NULL;
1676 } Py_INCREF(Py_None);
1677 _resultobj = Py_None;
1678 return _resultobj;
1679 }
1680
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;
1685 bool _arg1;
1686 double _arg2;
1687 double _arg3;
1688 int _arg4 = (int ) 0;
1689 PyObject * _argo0 = 0;
1690 int tempbool1;
1691 char *_kwnames[] = { "self","draw","x","y","keys", NULL };
1692
1693 self = self;
1694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|i:wxPyShapeCanvas_base_OnDragRight",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4))
1695 return NULL;
1696 if (_argo0) {
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.");
1700 return NULL;
1701 }
1702 }
1703 _arg1 = (bool ) tempbool1;
1704 {
1705 PyThreadState* __tstate = wxPyBeginAllowThreads();
1706 wxPyShapeCanvas_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
1707
1708 wxPyEndAllowThreads(__tstate);
1709 if (PyErr_Occurred()) return NULL;
1710 } Py_INCREF(Py_None);
1711 _resultobj = Py_None;
1712 return _resultobj;
1713 }
1714
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;
1719 double _arg1;
1720 double _arg2;
1721 int _arg3 = (int ) 0;
1722 PyObject * _argo0 = 0;
1723 char *_kwnames[] = { "self","x","y","keys", NULL };
1724
1725 self = self;
1726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnLeftClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1727 return NULL;
1728 if (_argo0) {
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.");
1732 return NULL;
1733 }
1734 }
1735 {
1736 PyThreadState* __tstate = wxPyBeginAllowThreads();
1737 wxPyShapeCanvas_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3);
1738
1739 wxPyEndAllowThreads(__tstate);
1740 if (PyErr_Occurred()) return NULL;
1741 } Py_INCREF(Py_None);
1742 _resultobj = Py_None;
1743 return _resultobj;
1744 }
1745
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;
1750 double _arg1;
1751 double _arg2;
1752 int _arg3 = (int ) 0;
1753 PyObject * _argo0 = 0;
1754 char *_kwnames[] = { "self","x","y","keys", NULL };
1755
1756 self = self;
1757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnRightClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1758 return NULL;
1759 if (_argo0) {
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.");
1763 return NULL;
1764 }
1765 }
1766 {
1767 PyThreadState* __tstate = wxPyBeginAllowThreads();
1768 wxPyShapeCanvas_base_OnRightClick(_arg0,_arg1,_arg2,_arg3);
1769
1770 wxPyEndAllowThreads(__tstate);
1771 if (PyErr_Occurred()) return NULL;
1772 } Py_INCREF(Py_None);
1773 _resultobj = Py_None;
1774 return _resultobj;
1775 }
1776
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;
1781 wxDC * _arg1;
1782 PyObject * _argo0 = 0;
1783 PyObject * _argo1 = 0;
1784 char *_kwnames[] = { "self","dc", NULL };
1785
1786 self = self;
1787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_Redraw",_kwnames,&_argo0,&_argo1))
1788 return NULL;
1789 if (_argo0) {
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.");
1793 return NULL;
1794 }
1795 }
1796 if (_argo1) {
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.");
1800 return NULL;
1801 }
1802 }
1803 {
1804 PyThreadState* __tstate = wxPyBeginAllowThreads();
1805 wxPyShapeCanvas_Redraw(_arg0,*_arg1);
1806
1807 wxPyEndAllowThreads(__tstate);
1808 if (PyErr_Occurred()) return NULL;
1809 } Py_INCREF(Py_None);
1810 _resultobj = Py_None;
1811 return _resultobj;
1812 }
1813
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;
1818 wxPyShape * _arg1;
1819 PyObject * _argo0 = 0;
1820 PyObject * _argo1 = 0;
1821 char *_kwnames[] = { "self","shape", NULL };
1822
1823 self = self;
1824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_RemoveShape",_kwnames,&_argo0,&_argo1))
1825 return NULL;
1826 if (_argo0) {
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.");
1830 return NULL;
1831 }
1832 }
1833 if (_argo1) {
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.");
1837 return NULL;
1838 }
1839 }
1840 {
1841 PyThreadState* __tstate = wxPyBeginAllowThreads();
1842 wxPyShapeCanvas_RemoveShape(_arg0,_arg1);
1843
1844 wxPyEndAllowThreads(__tstate);
1845 if (PyErr_Occurred()) return NULL;
1846 } Py_INCREF(Py_None);
1847 _resultobj = Py_None;
1848 return _resultobj;
1849 }
1850
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;
1855 wxDiagram * _arg1;
1856 PyObject * _argo0 = 0;
1857 PyObject * _argo1 = 0;
1858 char *_kwnames[] = { "self","diagram", NULL };
1859
1860 self = self;
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_SetDiagram",_kwnames,&_argo0,&_argo1))
1862 return NULL;
1863 if (_argo0) {
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.");
1867 return NULL;
1868 }
1869 }
1870 if (_argo1) {
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.");
1874 return NULL;
1875 }
1876 }
1877 {
1878 PyThreadState* __tstate = wxPyBeginAllowThreads();
1879 wxPyShapeCanvas_SetDiagram(_arg0,_arg1);
1880
1881 wxPyEndAllowThreads(__tstate);
1882 if (PyErr_Occurred()) return NULL;
1883 } Py_INCREF(Py_None);
1884 _resultobj = Py_None;
1885 return _resultobj;
1886 }
1887
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;
1892 double * _arg1;
1893 double * _arg2;
1894 PyObject * _argo0 = 0;
1895 double temp;
1896 PyObject * _obj1 = 0;
1897 double temp0;
1898 PyObject * _obj2 = 0;
1899 char *_kwnames[] = { "self","INOUT","INOUT", NULL };
1900
1901 self = self;
1902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyShapeCanvas_Snap",_kwnames,&_argo0,&_obj1,&_obj2))
1903 return NULL;
1904 if (_argo0) {
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.");
1908 return NULL;
1909 }
1910 }
1911 {
1912 temp = PyFloat_AsDouble(_obj1);
1913 _arg1 = &temp;
1914 }
1915 {
1916 temp0 = PyFloat_AsDouble(_obj2);
1917 _arg2 = &temp0;
1918 }
1919 {
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 wxPyShapeCanvas_Snap(_arg0,_arg1,_arg2);
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) return NULL;
1925 } Py_INCREF(Py_None);
1926 _resultobj = Py_None;
1927 {
1928 PyObject *o;
1929 o = PyFloat_FromDouble((double) (*_arg1));
1930 _resultobj = t_output_helper(_resultobj, o);
1931 }
1932 {
1933 PyObject *o;
1934 o = PyFloat_FromDouble((double) (*_arg2));
1935 _resultobj = t_output_helper(_resultobj, o);
1936 }
1937 return _resultobj;
1938 }
1939
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 },
1991 { NULL, NULL }
1992 };
1993 #ifdef __cplusplus
1994 }
1995 #endif
1996 /*
1997 * This table is used by the pointer type-checker
1998 */
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},
2106 {0,0,0}};
2107
2108 static PyObject *SWIG_globals;
2109 #ifdef __cplusplus
2110 extern "C"
2111 #endif
2112 SWIGEXPORT(void) initoglcanvasc() {
2113 PyObject *m, *d;
2114 SWIG_globals = SWIG_newvarlink();
2115 m = Py_InitModule("oglcanvasc", oglcanvascMethods);
2116 d = PyModule_GetDict(m);
2117 {
2118 int i;
2119 for (i = 0; _swig_mapping[i].n1; i++)
2120 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2121 }
2122 }