]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/ogl/oglcanvas.cpp
In GetPath(), don't append separator if there's already one at the end
[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 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragLeft);
89 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragRight);
90 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragLeft);
91 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragRight);
92 IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragLeft);
93 IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragRight);
94 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnLeftClick);
95 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnRightClick);
96 #ifdef __cplusplus
97 extern "C" {
98 #endif
99 static void *SwigwxDiagramTowxObject(void *ptr) {
100 wxDiagram *src;
101 wxObject *dest;
102 src = (wxDiagram *) ptr;
103 dest = (wxObject *) src;
104 return (void *) dest;
105 }
106
107 #define new_wxDiagram() (new wxDiagram())
108 static PyObject *_wrap_new_wxDiagram(PyObject *self, PyObject *args, PyObject *kwargs) {
109 PyObject * _resultobj;
110 wxDiagram * _result;
111 char *_kwnames[] = { NULL };
112 char _ptemp[128];
113
114 self = self;
115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDiagram",_kwnames))
116 return NULL;
117 {
118 PyThreadState* __tstate = wxPyBeginAllowThreads();
119 _result = (wxDiagram *)new_wxDiagram();
120
121 wxPyEndAllowThreads(__tstate);
122 if (PyErr_Occurred()) return NULL;
123 } if (_result) {
124 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDiagram_p");
125 _resultobj = Py_BuildValue("s",_ptemp);
126 } else {
127 Py_INCREF(Py_None);
128 _resultobj = Py_None;
129 }
130 return _resultobj;
131 }
132
133 #define wxDiagram_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
134 static PyObject *_wrap_wxDiagram_AddShape(PyObject *self, PyObject *args, PyObject *kwargs) {
135 PyObject * _resultobj;
136 wxDiagram * _arg0;
137 wxPyShape * _arg1;
138 wxPyShape * _arg2 = (wxPyShape *) NULL;
139 PyObject * _argo0 = 0;
140 PyObject * _argo1 = 0;
141 PyObject * _argo2 = 0;
142 char *_kwnames[] = { "self","shape","addAfter", NULL };
143
144 self = self;
145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDiagram_AddShape",_kwnames,&_argo0,&_argo1,&_argo2))
146 return NULL;
147 if (_argo0) {
148 if (_argo0 == Py_None) { _arg0 = NULL; }
149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_AddShape. Expected _wxDiagram_p.");
151 return NULL;
152 }
153 }
154 if (_argo1) {
155 if (_argo1 == Py_None) { _arg1 = NULL; }
156 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
157 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_AddShape. Expected _wxPyShape_p.");
158 return NULL;
159 }
160 }
161 if (_argo2) {
162 if (_argo2 == Py_None) { _arg2 = NULL; }
163 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyShape_p")) {
164 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDiagram_AddShape. Expected _wxPyShape_p.");
165 return NULL;
166 }
167 }
168 {
169 PyThreadState* __tstate = wxPyBeginAllowThreads();
170 wxDiagram_AddShape(_arg0,_arg1,_arg2);
171
172 wxPyEndAllowThreads(__tstate);
173 if (PyErr_Occurred()) return NULL;
174 } Py_INCREF(Py_None);
175 _resultobj = Py_None;
176 return _resultobj;
177 }
178
179 #define wxDiagram_Clear(_swigobj,_swigarg0) (_swigobj->Clear(_swigarg0))
180 static PyObject *_wrap_wxDiagram_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
181 PyObject * _resultobj;
182 wxDiagram * _arg0;
183 wxDC * _arg1;
184 PyObject * _argo0 = 0;
185 PyObject * _argo1 = 0;
186 char *_kwnames[] = { "self","dc", NULL };
187
188 self = self;
189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_Clear",_kwnames,&_argo0,&_argo1))
190 return NULL;
191 if (_argo0) {
192 if (_argo0 == Py_None) { _arg0 = NULL; }
193 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
194 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_Clear. Expected _wxDiagram_p.");
195 return NULL;
196 }
197 }
198 if (_argo1) {
199 if (_argo1 == Py_None) { _arg1 = NULL; }
200 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
201 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_Clear. Expected _wxDC_p.");
202 return NULL;
203 }
204 }
205 {
206 PyThreadState* __tstate = wxPyBeginAllowThreads();
207 wxDiagram_Clear(_arg0,*_arg1);
208
209 wxPyEndAllowThreads(__tstate);
210 if (PyErr_Occurred()) return NULL;
211 } Py_INCREF(Py_None);
212 _resultobj = Py_None;
213 return _resultobj;
214 }
215
216 #define wxDiagram_DeleteAllShapes(_swigobj) (_swigobj->DeleteAllShapes())
217 static PyObject *_wrap_wxDiagram_DeleteAllShapes(PyObject *self, PyObject *args, PyObject *kwargs) {
218 PyObject * _resultobj;
219 wxDiagram * _arg0;
220 PyObject * _argo0 = 0;
221 char *_kwnames[] = { "self", NULL };
222
223 self = self;
224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_DeleteAllShapes",_kwnames,&_argo0))
225 return NULL;
226 if (_argo0) {
227 if (_argo0 == Py_None) { _arg0 = NULL; }
228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_DeleteAllShapes. Expected _wxDiagram_p.");
230 return NULL;
231 }
232 }
233 {
234 PyThreadState* __tstate = wxPyBeginAllowThreads();
235 wxDiagram_DeleteAllShapes(_arg0);
236
237 wxPyEndAllowThreads(__tstate);
238 if (PyErr_Occurred()) return NULL;
239 } Py_INCREF(Py_None);
240 _resultobj = Py_None;
241 return _resultobj;
242 }
243
244 #define wxDiagram_DrawOutline(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawOutline(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
245 static PyObject *_wrap_wxDiagram_DrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) {
246 PyObject * _resultobj;
247 wxDiagram * _arg0;
248 wxDC * _arg1;
249 double _arg2;
250 double _arg3;
251 double _arg4;
252 double _arg5;
253 PyObject * _argo0 = 0;
254 PyObject * _argo1 = 0;
255 char *_kwnames[] = { "self","dc","x1","y1","x2","y2", NULL };
256
257 self = self;
258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdddd:wxDiagram_DrawOutline",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5))
259 return NULL;
260 if (_argo0) {
261 if (_argo0 == Py_None) { _arg0 = NULL; }
262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_DrawOutline. Expected _wxDiagram_p.");
264 return NULL;
265 }
266 }
267 if (_argo1) {
268 if (_argo1 == Py_None) { _arg1 = NULL; }
269 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
270 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_DrawOutline. Expected _wxDC_p.");
271 return NULL;
272 }
273 }
274 {
275 PyThreadState* __tstate = wxPyBeginAllowThreads();
276 wxDiagram_DrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
277
278 wxPyEndAllowThreads(__tstate);
279 if (PyErr_Occurred()) return NULL;
280 } Py_INCREF(Py_None);
281 _resultobj = Py_None;
282 return _resultobj;
283 }
284
285 #define wxDiagram_FindShape(_swigobj,_swigarg0) (_swigobj->FindShape(_swigarg0))
286 static PyObject *_wrap_wxDiagram_FindShape(PyObject *self, PyObject *args, PyObject *kwargs) {
287 PyObject * _resultobj;
288 wxPyShape * _result;
289 wxDiagram * _arg0;
290 long _arg1;
291 PyObject * _argo0 = 0;
292 char *_kwnames[] = { "self","id", NULL };
293
294 self = self;
295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDiagram_FindShape",_kwnames,&_argo0,&_arg1))
296 return NULL;
297 if (_argo0) {
298 if (_argo0 == Py_None) { _arg0 = NULL; }
299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_FindShape. Expected _wxDiagram_p.");
301 return NULL;
302 }
303 }
304 {
305 PyThreadState* __tstate = wxPyBeginAllowThreads();
306 _result = (wxPyShape *)wxDiagram_FindShape(_arg0,_arg1);
307
308 wxPyEndAllowThreads(__tstate);
309 if (PyErr_Occurred()) return NULL;
310 }{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
311 return _resultobj;
312 }
313
314 #define wxDiagram_GetCanvas(_swigobj) (_swigobj->GetCanvas())
315 static PyObject *_wrap_wxDiagram_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
316 PyObject * _resultobj;
317 wxPyShapeCanvas * _result;
318 wxDiagram * _arg0;
319 PyObject * _argo0 = 0;
320 char *_kwnames[] = { "self", NULL };
321
322 self = self;
323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetCanvas",_kwnames,&_argo0))
324 return NULL;
325 if (_argo0) {
326 if (_argo0 == Py_None) { _arg0 = NULL; }
327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetCanvas. Expected _wxDiagram_p.");
329 return NULL;
330 }
331 }
332 {
333 PyThreadState* __tstate = wxPyBeginAllowThreads();
334 _result = (wxPyShapeCanvas *)wxDiagram_GetCanvas(_arg0);
335
336 wxPyEndAllowThreads(__tstate);
337 if (PyErr_Occurred()) return NULL;
338 }{ _resultobj = wxPyMake_wxObject(_result); }
339 return _resultobj;
340 }
341
342 #define wxDiagram_GetCount(_swigobj) (_swigobj->GetCount())
343 static PyObject *_wrap_wxDiagram_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
344 PyObject * _resultobj;
345 int _result;
346 wxDiagram * _arg0;
347 PyObject * _argo0 = 0;
348 char *_kwnames[] = { "self", NULL };
349
350 self = self;
351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetCount",_kwnames,&_argo0))
352 return NULL;
353 if (_argo0) {
354 if (_argo0 == Py_None) { _arg0 = NULL; }
355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetCount. Expected _wxDiagram_p.");
357 return NULL;
358 }
359 }
360 {
361 PyThreadState* __tstate = wxPyBeginAllowThreads();
362 _result = (int )wxDiagram_GetCount(_arg0);
363
364 wxPyEndAllowThreads(__tstate);
365 if (PyErr_Occurred()) return NULL;
366 } _resultobj = Py_BuildValue("i",_result);
367 return _resultobj;
368 }
369
370 #define wxDiagram_GetGridSpacing(_swigobj) (_swigobj->GetGridSpacing())
371 static PyObject *_wrap_wxDiagram_GetGridSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
372 PyObject * _resultobj;
373 double _result;
374 wxDiagram * _arg0;
375 PyObject * _argo0 = 0;
376 char *_kwnames[] = { "self", NULL };
377
378 self = self;
379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetGridSpacing",_kwnames,&_argo0))
380 return NULL;
381 if (_argo0) {
382 if (_argo0 == Py_None) { _arg0 = NULL; }
383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetGridSpacing. Expected _wxDiagram_p.");
385 return NULL;
386 }
387 }
388 {
389 PyThreadState* __tstate = wxPyBeginAllowThreads();
390 _result = (double )wxDiagram_GetGridSpacing(_arg0);
391
392 wxPyEndAllowThreads(__tstate);
393 if (PyErr_Occurred()) return NULL;
394 } _resultobj = Py_BuildValue("d",_result);
395 return _resultobj;
396 }
397
398 #define wxDiagram_GetMouseTolerance(_swigobj) (_swigobj->GetMouseTolerance())
399 static PyObject *_wrap_wxDiagram_GetMouseTolerance(PyObject *self, PyObject *args, PyObject *kwargs) {
400 PyObject * _resultobj;
401 int _result;
402 wxDiagram * _arg0;
403 PyObject * _argo0 = 0;
404 char *_kwnames[] = { "self", NULL };
405
406 self = self;
407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetMouseTolerance",_kwnames,&_argo0))
408 return NULL;
409 if (_argo0) {
410 if (_argo0 == Py_None) { _arg0 = NULL; }
411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetMouseTolerance. Expected _wxDiagram_p.");
413 return NULL;
414 }
415 }
416 {
417 PyThreadState* __tstate = wxPyBeginAllowThreads();
418 _result = (int )wxDiagram_GetMouseTolerance(_arg0);
419
420 wxPyEndAllowThreads(__tstate);
421 if (PyErr_Occurred()) return NULL;
422 } _resultobj = Py_BuildValue("i",_result);
423 return _resultobj;
424 }
425
426 static PyObject * wxDiagram_GetShapeList(wxDiagram *self) {
427 wxList* list = self->GetShapeList();
428 return wxPy_ConvertShapeList(list, "wxPyShape");
429 }
430 static PyObject *_wrap_wxDiagram_GetShapeList(PyObject *self, PyObject *args, PyObject *kwargs) {
431 PyObject * _resultobj;
432 PyObject * _result;
433 wxDiagram * _arg0;
434 PyObject * _argo0 = 0;
435 char *_kwnames[] = { "self", NULL };
436
437 self = self;
438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetShapeList",_kwnames,&_argo0))
439 return NULL;
440 if (_argo0) {
441 if (_argo0 == Py_None) { _arg0 = NULL; }
442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetShapeList. Expected _wxDiagram_p.");
444 return NULL;
445 }
446 }
447 {
448 PyThreadState* __tstate = wxPyBeginAllowThreads();
449 _result = (PyObject *)wxDiagram_GetShapeList(_arg0);
450
451 wxPyEndAllowThreads(__tstate);
452 if (PyErr_Occurred()) return NULL;
453 }{
454 _resultobj = _result;
455 }
456 return _resultobj;
457 }
458
459 #define wxDiagram_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
460 static PyObject *_wrap_wxDiagram_GetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
461 PyObject * _resultobj;
462 bool _result;
463 wxDiagram * _arg0;
464 PyObject * _argo0 = 0;
465 char *_kwnames[] = { "self", NULL };
466
467 self = self;
468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetQuickEditMode",_kwnames,&_argo0))
469 return NULL;
470 if (_argo0) {
471 if (_argo0 == Py_None) { _arg0 = NULL; }
472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetQuickEditMode. Expected _wxDiagram_p.");
474 return NULL;
475 }
476 }
477 {
478 PyThreadState* __tstate = wxPyBeginAllowThreads();
479 _result = (bool )wxDiagram_GetQuickEditMode(_arg0);
480
481 wxPyEndAllowThreads(__tstate);
482 if (PyErr_Occurred()) return NULL;
483 } _resultobj = Py_BuildValue("i",_result);
484 return _resultobj;
485 }
486
487 #define wxDiagram_GetSnapToGrid(_swigobj) (_swigobj->GetSnapToGrid())
488 static PyObject *_wrap_wxDiagram_GetSnapToGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
489 PyObject * _resultobj;
490 bool _result;
491 wxDiagram * _arg0;
492 PyObject * _argo0 = 0;
493 char *_kwnames[] = { "self", NULL };
494
495 self = self;
496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetSnapToGrid",_kwnames,&_argo0))
497 return NULL;
498 if (_argo0) {
499 if (_argo0 == Py_None) { _arg0 = NULL; }
500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetSnapToGrid. Expected _wxDiagram_p.");
502 return NULL;
503 }
504 }
505 {
506 PyThreadState* __tstate = wxPyBeginAllowThreads();
507 _result = (bool )wxDiagram_GetSnapToGrid(_arg0);
508
509 wxPyEndAllowThreads(__tstate);
510 if (PyErr_Occurred()) return NULL;
511 } _resultobj = Py_BuildValue("i",_result);
512 return _resultobj;
513 }
514
515 #define wxDiagram_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
516 static PyObject *_wrap_wxDiagram_InsertShape(PyObject *self, PyObject *args, PyObject *kwargs) {
517 PyObject * _resultobj;
518 wxDiagram * _arg0;
519 wxPyShape * _arg1;
520 PyObject * _argo0 = 0;
521 PyObject * _argo1 = 0;
522 char *_kwnames[] = { "self","shape", NULL };
523
524 self = self;
525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_InsertShape",_kwnames,&_argo0,&_argo1))
526 return NULL;
527 if (_argo0) {
528 if (_argo0 == Py_None) { _arg0 = NULL; }
529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_InsertShape. Expected _wxDiagram_p.");
531 return NULL;
532 }
533 }
534 if (_argo1) {
535 if (_argo1 == Py_None) { _arg1 = NULL; }
536 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
537 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_InsertShape. Expected _wxPyShape_p.");
538 return NULL;
539 }
540 }
541 {
542 PyThreadState* __tstate = wxPyBeginAllowThreads();
543 wxDiagram_InsertShape(_arg0,_arg1);
544
545 wxPyEndAllowThreads(__tstate);
546 if (PyErr_Occurred()) return NULL;
547 } Py_INCREF(Py_None);
548 _resultobj = Py_None;
549 return _resultobj;
550 }
551
552 #define wxDiagram_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
553 static PyObject *_wrap_wxDiagram_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
554 PyObject * _resultobj;
555 bool _result;
556 wxDiagram * _arg0;
557 wxString * _arg1;
558 PyObject * _argo0 = 0;
559 PyObject * _obj1 = 0;
560 char *_kwnames[] = { "self","filename", NULL };
561
562 self = self;
563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_LoadFile",_kwnames,&_argo0,&_obj1))
564 return NULL;
565 if (_argo0) {
566 if (_argo0 == Py_None) { _arg0 = NULL; }
567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_LoadFile. Expected _wxDiagram_p.");
569 return NULL;
570 }
571 }
572 {
573 _arg1 = wxString_in_helper(_obj1);
574 if (_arg1 == NULL)
575 return NULL;
576 }
577 {
578 PyThreadState* __tstate = wxPyBeginAllowThreads();
579 _result = (bool )wxDiagram_LoadFile(_arg0,*_arg1);
580
581 wxPyEndAllowThreads(__tstate);
582 if (PyErr_Occurred()) return NULL;
583 } _resultobj = Py_BuildValue("i",_result);
584 {
585 if (_obj1)
586 delete _arg1;
587 }
588 return _resultobj;
589 }
590
591 #define wxDiagram_ReadContainerGeometry(_swigobj,_swigarg0) (_swigobj->ReadContainerGeometry(_swigarg0))
592 static PyObject *_wrap_wxDiagram_ReadContainerGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
593 PyObject * _resultobj;
594 wxDiagram * _arg0;
595 wxExprDatabase * _arg1;
596 PyObject * _argo0 = 0;
597 PyObject * _argo1 = 0;
598 char *_kwnames[] = { "self","database", NULL };
599
600 self = self;
601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadContainerGeometry",_kwnames,&_argo0,&_argo1))
602 return NULL;
603 if (_argo0) {
604 if (_argo0 == Py_None) { _arg0 = NULL; }
605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ReadContainerGeometry. Expected _wxDiagram_p.");
607 return NULL;
608 }
609 }
610 if (_argo1) {
611 if (_argo1 == Py_None) { _arg1 = NULL; }
612 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExprDatabase_p")) {
613 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_ReadContainerGeometry. Expected _wxExprDatabase_p.");
614 return NULL;
615 }
616 }
617 {
618 PyThreadState* __tstate = wxPyBeginAllowThreads();
619 wxDiagram_ReadContainerGeometry(_arg0,*_arg1);
620
621 wxPyEndAllowThreads(__tstate);
622 if (PyErr_Occurred()) return NULL;
623 } Py_INCREF(Py_None);
624 _resultobj = Py_None;
625 return _resultobj;
626 }
627
628 #define wxDiagram_ReadLines(_swigobj,_swigarg0) (_swigobj->ReadLines(_swigarg0))
629 static PyObject *_wrap_wxDiagram_ReadLines(PyObject *self, PyObject *args, PyObject *kwargs) {
630 PyObject * _resultobj;
631 wxDiagram * _arg0;
632 wxExprDatabase * _arg1;
633 PyObject * _argo0 = 0;
634 PyObject * _argo1 = 0;
635 char *_kwnames[] = { "self","database", NULL };
636
637 self = self;
638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadLines",_kwnames,&_argo0,&_argo1))
639 return NULL;
640 if (_argo0) {
641 if (_argo0 == Py_None) { _arg0 = NULL; }
642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ReadLines. Expected _wxDiagram_p.");
644 return NULL;
645 }
646 }
647 if (_argo1) {
648 if (_argo1 == Py_None) { _arg1 = NULL; }
649 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExprDatabase_p")) {
650 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_ReadLines. Expected _wxExprDatabase_p.");
651 return NULL;
652 }
653 }
654 {
655 PyThreadState* __tstate = wxPyBeginAllowThreads();
656 wxDiagram_ReadLines(_arg0,*_arg1);
657
658 wxPyEndAllowThreads(__tstate);
659 if (PyErr_Occurred()) return NULL;
660 } Py_INCREF(Py_None);
661 _resultobj = Py_None;
662 return _resultobj;
663 }
664
665 #define wxDiagram_ReadNodes(_swigobj,_swigarg0) (_swigobj->ReadNodes(_swigarg0))
666 static PyObject *_wrap_wxDiagram_ReadNodes(PyObject *self, PyObject *args, PyObject *kwargs) {
667 PyObject * _resultobj;
668 wxDiagram * _arg0;
669 wxExprDatabase * _arg1;
670 PyObject * _argo0 = 0;
671 PyObject * _argo1 = 0;
672 char *_kwnames[] = { "self","database", NULL };
673
674 self = self;
675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadNodes",_kwnames,&_argo0,&_argo1))
676 return NULL;
677 if (_argo0) {
678 if (_argo0 == Py_None) { _arg0 = NULL; }
679 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
680 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ReadNodes. Expected _wxDiagram_p.");
681 return NULL;
682 }
683 }
684 if (_argo1) {
685 if (_argo1 == Py_None) { _arg1 = NULL; }
686 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExprDatabase_p")) {
687 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_ReadNodes. Expected _wxExprDatabase_p.");
688 return NULL;
689 }
690 }
691 {
692 PyThreadState* __tstate = wxPyBeginAllowThreads();
693 wxDiagram_ReadNodes(_arg0,*_arg1);
694
695 wxPyEndAllowThreads(__tstate);
696 if (PyErr_Occurred()) return NULL;
697 } Py_INCREF(Py_None);
698 _resultobj = Py_None;
699 return _resultobj;
700 }
701
702 #define wxDiagram_RecentreAll(_swigobj,_swigarg0) (_swigobj->RecentreAll(_swigarg0))
703 static PyObject *_wrap_wxDiagram_RecentreAll(PyObject *self, PyObject *args, PyObject *kwargs) {
704 PyObject * _resultobj;
705 wxDiagram * _arg0;
706 wxDC * _arg1;
707 PyObject * _argo0 = 0;
708 PyObject * _argo1 = 0;
709 char *_kwnames[] = { "self","dc", NULL };
710
711 self = self;
712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_RecentreAll",_kwnames,&_argo0,&_argo1))
713 return NULL;
714 if (_argo0) {
715 if (_argo0 == Py_None) { _arg0 = NULL; }
716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_RecentreAll. Expected _wxDiagram_p.");
718 return NULL;
719 }
720 }
721 if (_argo1) {
722 if (_argo1 == Py_None) { _arg1 = NULL; }
723 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
724 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_RecentreAll. Expected _wxDC_p.");
725 return NULL;
726 }
727 }
728 {
729 PyThreadState* __tstate = wxPyBeginAllowThreads();
730 wxDiagram_RecentreAll(_arg0,*_arg1);
731
732 wxPyEndAllowThreads(__tstate);
733 if (PyErr_Occurred()) return NULL;
734 } Py_INCREF(Py_None);
735 _resultobj = Py_None;
736 return _resultobj;
737 }
738
739 #define wxDiagram_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
740 static PyObject *_wrap_wxDiagram_Redraw(PyObject *self, PyObject *args, PyObject *kwargs) {
741 PyObject * _resultobj;
742 wxDiagram * _arg0;
743 wxDC * _arg1;
744 PyObject * _argo0 = 0;
745 PyObject * _argo1 = 0;
746 char *_kwnames[] = { "self","dc", NULL };
747
748 self = self;
749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_Redraw",_kwnames,&_argo0,&_argo1))
750 return NULL;
751 if (_argo0) {
752 if (_argo0 == Py_None) { _arg0 = NULL; }
753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_Redraw. Expected _wxDiagram_p.");
755 return NULL;
756 }
757 }
758 if (_argo1) {
759 if (_argo1 == Py_None) { _arg1 = NULL; }
760 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
761 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_Redraw. Expected _wxDC_p.");
762 return NULL;
763 }
764 }
765 {
766 PyThreadState* __tstate = wxPyBeginAllowThreads();
767 wxDiagram_Redraw(_arg0,*_arg1);
768
769 wxPyEndAllowThreads(__tstate);
770 if (PyErr_Occurred()) return NULL;
771 } Py_INCREF(Py_None);
772 _resultobj = Py_None;
773 return _resultobj;
774 }
775
776 #define wxDiagram_RemoveAllShapes(_swigobj) (_swigobj->RemoveAllShapes())
777 static PyObject *_wrap_wxDiagram_RemoveAllShapes(PyObject *self, PyObject *args, PyObject *kwargs) {
778 PyObject * _resultobj;
779 wxDiagram * _arg0;
780 PyObject * _argo0 = 0;
781 char *_kwnames[] = { "self", NULL };
782
783 self = self;
784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_RemoveAllShapes",_kwnames,&_argo0))
785 return NULL;
786 if (_argo0) {
787 if (_argo0 == Py_None) { _arg0 = NULL; }
788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_RemoveAllShapes. Expected _wxDiagram_p.");
790 return NULL;
791 }
792 }
793 {
794 PyThreadState* __tstate = wxPyBeginAllowThreads();
795 wxDiagram_RemoveAllShapes(_arg0);
796
797 wxPyEndAllowThreads(__tstate);
798 if (PyErr_Occurred()) return NULL;
799 } Py_INCREF(Py_None);
800 _resultobj = Py_None;
801 return _resultobj;
802 }
803
804 #define wxDiagram_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
805 static PyObject *_wrap_wxDiagram_RemoveShape(PyObject *self, PyObject *args, PyObject *kwargs) {
806 PyObject * _resultobj;
807 wxDiagram * _arg0;
808 wxPyShape * _arg1;
809 PyObject * _argo0 = 0;
810 PyObject * _argo1 = 0;
811 char *_kwnames[] = { "self","shape", NULL };
812
813 self = self;
814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_RemoveShape",_kwnames,&_argo0,&_argo1))
815 return NULL;
816 if (_argo0) {
817 if (_argo0 == Py_None) { _arg0 = NULL; }
818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_RemoveShape. Expected _wxDiagram_p.");
820 return NULL;
821 }
822 }
823 if (_argo1) {
824 if (_argo1 == Py_None) { _arg1 = NULL; }
825 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
826 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_RemoveShape. Expected _wxPyShape_p.");
827 return NULL;
828 }
829 }
830 {
831 PyThreadState* __tstate = wxPyBeginAllowThreads();
832 wxDiagram_RemoveShape(_arg0,_arg1);
833
834 wxPyEndAllowThreads(__tstate);
835 if (PyErr_Occurred()) return NULL;
836 } Py_INCREF(Py_None);
837 _resultobj = Py_None;
838 return _resultobj;
839 }
840
841 #define wxDiagram_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
842 static PyObject *_wrap_wxDiagram_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
843 PyObject * _resultobj;
844 bool _result;
845 wxDiagram * _arg0;
846 wxString * _arg1;
847 PyObject * _argo0 = 0;
848 PyObject * _obj1 = 0;
849 char *_kwnames[] = { "self","filename", NULL };
850
851 self = self;
852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_SaveFile",_kwnames,&_argo0,&_obj1))
853 return NULL;
854 if (_argo0) {
855 if (_argo0 == Py_None) { _arg0 = NULL; }
856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SaveFile. Expected _wxDiagram_p.");
858 return NULL;
859 }
860 }
861 {
862 _arg1 = wxString_in_helper(_obj1);
863 if (_arg1 == NULL)
864 return NULL;
865 }
866 {
867 PyThreadState* __tstate = wxPyBeginAllowThreads();
868 _result = (bool )wxDiagram_SaveFile(_arg0,*_arg1);
869
870 wxPyEndAllowThreads(__tstate);
871 if (PyErr_Occurred()) return NULL;
872 } _resultobj = Py_BuildValue("i",_result);
873 {
874 if (_obj1)
875 delete _arg1;
876 }
877 return _resultobj;
878 }
879
880 #define wxDiagram_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
881 static PyObject *_wrap_wxDiagram_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
882 PyObject * _resultobj;
883 wxDiagram * _arg0;
884 wxPyShapeCanvas * _arg1;
885 PyObject * _argo0 = 0;
886 PyObject * _argo1 = 0;
887 char *_kwnames[] = { "self","canvas", NULL };
888
889 self = self;
890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_SetCanvas",_kwnames,&_argo0,&_argo1))
891 return NULL;
892 if (_argo0) {
893 if (_argo0 == Py_None) { _arg0 = NULL; }
894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetCanvas. Expected _wxDiagram_p.");
896 return NULL;
897 }
898 }
899 if (_argo1) {
900 if (_argo1 == Py_None) { _arg1 = NULL; }
901 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShapeCanvas_p")) {
902 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_SetCanvas. Expected _wxPyShapeCanvas_p.");
903 return NULL;
904 }
905 }
906 {
907 PyThreadState* __tstate = wxPyBeginAllowThreads();
908 wxDiagram_SetCanvas(_arg0,_arg1);
909
910 wxPyEndAllowThreads(__tstate);
911 if (PyErr_Occurred()) return NULL;
912 } Py_INCREF(Py_None);
913 _resultobj = Py_None;
914 return _resultobj;
915 }
916
917 #define wxDiagram_SetGridSpacing(_swigobj,_swigarg0) (_swigobj->SetGridSpacing(_swigarg0))
918 static PyObject *_wrap_wxDiagram_SetGridSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
919 PyObject * _resultobj;
920 wxDiagram * _arg0;
921 double _arg1;
922 PyObject * _argo0 = 0;
923 char *_kwnames[] = { "self","spacing", NULL };
924
925 self = self;
926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxDiagram_SetGridSpacing",_kwnames,&_argo0,&_arg1))
927 return NULL;
928 if (_argo0) {
929 if (_argo0 == Py_None) { _arg0 = NULL; }
930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetGridSpacing. Expected _wxDiagram_p.");
932 return NULL;
933 }
934 }
935 {
936 PyThreadState* __tstate = wxPyBeginAllowThreads();
937 wxDiagram_SetGridSpacing(_arg0,_arg1);
938
939 wxPyEndAllowThreads(__tstate);
940 if (PyErr_Occurred()) return NULL;
941 } Py_INCREF(Py_None);
942 _resultobj = Py_None;
943 return _resultobj;
944 }
945
946 #define wxDiagram_SetMouseTolerance(_swigobj,_swigarg0) (_swigobj->SetMouseTolerance(_swigarg0))
947 static PyObject *_wrap_wxDiagram_SetMouseTolerance(PyObject *self, PyObject *args, PyObject *kwargs) {
948 PyObject * _resultobj;
949 wxDiagram * _arg0;
950 int _arg1;
951 PyObject * _argo0 = 0;
952 char *_kwnames[] = { "self","tolerance", NULL };
953
954 self = self;
955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_SetMouseTolerance",_kwnames,&_argo0,&_arg1))
956 return NULL;
957 if (_argo0) {
958 if (_argo0 == Py_None) { _arg0 = NULL; }
959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetMouseTolerance. Expected _wxDiagram_p.");
961 return NULL;
962 }
963 }
964 {
965 PyThreadState* __tstate = wxPyBeginAllowThreads();
966 wxDiagram_SetMouseTolerance(_arg0,_arg1);
967
968 wxPyEndAllowThreads(__tstate);
969 if (PyErr_Occurred()) return NULL;
970 } Py_INCREF(Py_None);
971 _resultobj = Py_None;
972 return _resultobj;
973 }
974
975 #define wxDiagram_SetQuickEditMode(_swigobj,_swigarg0) (_swigobj->SetQuickEditMode(_swigarg0))
976 static PyObject *_wrap_wxDiagram_SetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
977 PyObject * _resultobj;
978 wxDiagram * _arg0;
979 bool _arg1;
980 PyObject * _argo0 = 0;
981 int tempbool1;
982 char *_kwnames[] = { "self","mode", NULL };
983
984 self = self;
985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_SetQuickEditMode",_kwnames,&_argo0,&tempbool1))
986 return NULL;
987 if (_argo0) {
988 if (_argo0 == Py_None) { _arg0 = NULL; }
989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetQuickEditMode. Expected _wxDiagram_p.");
991 return NULL;
992 }
993 }
994 _arg1 = (bool ) tempbool1;
995 {
996 PyThreadState* __tstate = wxPyBeginAllowThreads();
997 wxDiagram_SetQuickEditMode(_arg0,_arg1);
998
999 wxPyEndAllowThreads(__tstate);
1000 if (PyErr_Occurred()) return NULL;
1001 } Py_INCREF(Py_None);
1002 _resultobj = Py_None;
1003 return _resultobj;
1004 }
1005
1006 #define wxDiagram_SetSnapToGrid(_swigobj,_swigarg0) (_swigobj->SetSnapToGrid(_swigarg0))
1007 static PyObject *_wrap_wxDiagram_SetSnapToGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
1008 PyObject * _resultobj;
1009 wxDiagram * _arg0;
1010 bool _arg1;
1011 PyObject * _argo0 = 0;
1012 int tempbool1;
1013 char *_kwnames[] = { "self","snap", NULL };
1014
1015 self = self;
1016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_SetSnapToGrid",_kwnames,&_argo0,&tempbool1))
1017 return NULL;
1018 if (_argo0) {
1019 if (_argo0 == Py_None) { _arg0 = NULL; }
1020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
1021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetSnapToGrid. Expected _wxDiagram_p.");
1022 return NULL;
1023 }
1024 }
1025 _arg1 = (bool ) tempbool1;
1026 {
1027 PyThreadState* __tstate = wxPyBeginAllowThreads();
1028 wxDiagram_SetSnapToGrid(_arg0,_arg1);
1029
1030 wxPyEndAllowThreads(__tstate);
1031 if (PyErr_Occurred()) return NULL;
1032 } Py_INCREF(Py_None);
1033 _resultobj = Py_None;
1034 return _resultobj;
1035 }
1036
1037 #define wxDiagram_ShowAll(_swigobj,_swigarg0) (_swigobj->ShowAll(_swigarg0))
1038 static PyObject *_wrap_wxDiagram_ShowAll(PyObject *self, PyObject *args, PyObject *kwargs) {
1039 PyObject * _resultobj;
1040 wxDiagram * _arg0;
1041 bool _arg1;
1042 PyObject * _argo0 = 0;
1043 int tempbool1;
1044 char *_kwnames[] = { "self","show", NULL };
1045
1046 self = self;
1047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_ShowAll",_kwnames,&_argo0,&tempbool1))
1048 return NULL;
1049 if (_argo0) {
1050 if (_argo0 == Py_None) { _arg0 = NULL; }
1051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
1052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ShowAll. Expected _wxDiagram_p.");
1053 return NULL;
1054 }
1055 }
1056 _arg1 = (bool ) tempbool1;
1057 {
1058 PyThreadState* __tstate = wxPyBeginAllowThreads();
1059 wxDiagram_ShowAll(_arg0,_arg1);
1060
1061 wxPyEndAllowThreads(__tstate);
1062 if (PyErr_Occurred()) return NULL;
1063 } Py_INCREF(Py_None);
1064 _resultobj = Py_None;
1065 return _resultobj;
1066 }
1067
1068 #define wxDiagram_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
1069 static PyObject *_wrap_wxDiagram_Snap(PyObject *self, PyObject *args, PyObject *kwargs) {
1070 PyObject * _resultobj;
1071 wxDiagram * _arg0;
1072 double * _arg1;
1073 double * _arg2;
1074 PyObject * _argo0 = 0;
1075 double temp;
1076 PyObject * _obj1 = 0;
1077 double temp0;
1078 PyObject * _obj2 = 0;
1079 char *_kwnames[] = { "self","INOUT","INOUT", NULL };
1080
1081 self = self;
1082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDiagram_Snap",_kwnames,&_argo0,&_obj1,&_obj2))
1083 return NULL;
1084 if (_argo0) {
1085 if (_argo0 == Py_None) { _arg0 = NULL; }
1086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
1087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_Snap. Expected _wxDiagram_p.");
1088 return NULL;
1089 }
1090 }
1091 {
1092 temp = PyFloat_AsDouble(_obj1);
1093 _arg1 = &temp;
1094 }
1095 {
1096 temp0 = PyFloat_AsDouble(_obj2);
1097 _arg2 = &temp0;
1098 }
1099 {
1100 PyThreadState* __tstate = wxPyBeginAllowThreads();
1101 wxDiagram_Snap(_arg0,_arg1,_arg2);
1102
1103 wxPyEndAllowThreads(__tstate);
1104 if (PyErr_Occurred()) return NULL;
1105 } Py_INCREF(Py_None);
1106 _resultobj = Py_None;
1107 {
1108 PyObject *o;
1109 o = PyFloat_FromDouble((double) (*_arg1));
1110 _resultobj = t_output_helper(_resultobj, o);
1111 }
1112 {
1113 PyObject *o;
1114 o = PyFloat_FromDouble((double) (*_arg2));
1115 _resultobj = t_output_helper(_resultobj, o);
1116 }
1117 return _resultobj;
1118 }
1119
1120 static void *SwigwxPyShapeCanvasTowxScrolledWindow(void *ptr) {
1121 wxPyShapeCanvas *src;
1122 wxScrolledWindow *dest;
1123 src = (wxPyShapeCanvas *) ptr;
1124 dest = (wxScrolledWindow *) src;
1125 return (void *) dest;
1126 }
1127
1128 static void *SwigwxPyShapeCanvasTowxPanel(void *ptr) {
1129 wxPyShapeCanvas *src;
1130 wxPanel *dest;
1131 src = (wxPyShapeCanvas *) ptr;
1132 dest = (wxPanel *) src;
1133 return (void *) dest;
1134 }
1135
1136 static void *SwigwxPyShapeCanvasTowxWindow(void *ptr) {
1137 wxPyShapeCanvas *src;
1138 wxWindow *dest;
1139 src = (wxPyShapeCanvas *) ptr;
1140 dest = (wxWindow *) src;
1141 return (void *) dest;
1142 }
1143
1144 static void *SwigwxPyShapeCanvasTowxEvtHandler(void *ptr) {
1145 wxPyShapeCanvas *src;
1146 wxEvtHandler *dest;
1147 src = (wxPyShapeCanvas *) ptr;
1148 dest = (wxEvtHandler *) src;
1149 return (void *) dest;
1150 }
1151
1152 static void *SwigwxPyShapeCanvasTowxObject(void *ptr) {
1153 wxPyShapeCanvas *src;
1154 wxObject *dest;
1155 src = (wxPyShapeCanvas *) ptr;
1156 dest = (wxObject *) src;
1157 return (void *) dest;
1158 }
1159
1160 #define new_wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1161 static PyObject *_wrap_new_wxPyShapeCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
1162 PyObject * _resultobj;
1163 wxPyShapeCanvas * _result;
1164 wxWindow * _arg0 = (wxWindow *) NULL;
1165 wxWindowID _arg1 = (wxWindowID ) -1;
1166 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1167 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1168 long _arg4 = (long ) wxBORDER;
1169 PyObject * _argo0 = 0;
1170 wxPoint temp;
1171 PyObject * _obj2 = 0;
1172 wxSize temp0;
1173 PyObject * _obj3 = 0;
1174 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
1175 char _ptemp[128];
1176
1177 self = self;
1178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOl:new_wxPyShapeCanvas",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
1179 return NULL;
1180 if (_argo0) {
1181 if (_argo0 == Py_None) { _arg0 = NULL; }
1182 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1183 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyShapeCanvas. Expected _wxWindow_p.");
1184 return NULL;
1185 }
1186 }
1187 if (_obj2)
1188 {
1189 _arg2 = &temp;
1190 if (! wxPoint_helper(_obj2, &_arg2))
1191 return NULL;
1192 }
1193 if (_obj3)
1194 {
1195 _arg3 = &temp0;
1196 if (! wxSize_helper(_obj3, &_arg3))
1197 return NULL;
1198 }
1199 {
1200 PyThreadState* __tstate = wxPyBeginAllowThreads();
1201 _result = (wxPyShapeCanvas *)new_wxPyShapeCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4);
1202
1203 wxPyEndAllowThreads(__tstate);
1204 if (PyErr_Occurred()) return NULL;
1205 } if (_result) {
1206 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShapeCanvas_p");
1207 _resultobj = Py_BuildValue("s",_ptemp);
1208 } else {
1209 Py_INCREF(Py_None);
1210 _resultobj = Py_None;
1211 }
1212 return _resultobj;
1213 }
1214
1215 #define wxPyShapeCanvas__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1216 static PyObject *_wrap_wxPyShapeCanvas__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1217 PyObject * _resultobj;
1218 wxPyShapeCanvas * _arg0;
1219 PyObject * _arg1;
1220 PyObject * _arg2;
1221 PyObject * _argo0 = 0;
1222 PyObject * _obj1 = 0;
1223 PyObject * _obj2 = 0;
1224 char *_kwnames[] = { "self","self","_class", NULL };
1225
1226 self = self;
1227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyShapeCanvas__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1228 return NULL;
1229 if (_argo0) {
1230 if (_argo0 == Py_None) { _arg0 = NULL; }
1231 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1232 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas__setCallbackInfo. Expected _wxPyShapeCanvas_p.");
1233 return NULL;
1234 }
1235 }
1236 {
1237 _arg1 = _obj1;
1238 }
1239 {
1240 _arg2 = _obj2;
1241 }
1242 {
1243 PyThreadState* __tstate = wxPyBeginAllowThreads();
1244 wxPyShapeCanvas__setCallbackInfo(_arg0,_arg1,_arg2);
1245
1246 wxPyEndAllowThreads(__tstate);
1247 if (PyErr_Occurred()) return NULL;
1248 } Py_INCREF(Py_None);
1249 _resultobj = Py_None;
1250 return _resultobj;
1251 }
1252
1253 #define wxPyShapeCanvas_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
1254 static PyObject *_wrap_wxPyShapeCanvas_AddShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1255 PyObject * _resultobj;
1256 wxPyShapeCanvas * _arg0;
1257 wxPyShape * _arg1;
1258 wxPyShape * _arg2 = (wxPyShape *) NULL;
1259 PyObject * _argo0 = 0;
1260 PyObject * _argo1 = 0;
1261 PyObject * _argo2 = 0;
1262 char *_kwnames[] = { "self","shape","addAfter", NULL };
1263
1264 self = self;
1265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxPyShapeCanvas_AddShape",_kwnames,&_argo0,&_argo1,&_argo2))
1266 return NULL;
1267 if (_argo0) {
1268 if (_argo0 == Py_None) { _arg0 = NULL; }
1269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_AddShape. Expected _wxPyShapeCanvas_p.");
1271 return NULL;
1272 }
1273 }
1274 if (_argo1) {
1275 if (_argo1 == Py_None) { _arg1 = NULL; }
1276 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
1277 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1278 return NULL;
1279 }
1280 }
1281 if (_argo2) {
1282 if (_argo2 == Py_None) { _arg2 = NULL; }
1283 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyShape_p")) {
1284 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1285 return NULL;
1286 }
1287 }
1288 {
1289 PyThreadState* __tstate = wxPyBeginAllowThreads();
1290 wxPyShapeCanvas_AddShape(_arg0,_arg1,_arg2);
1291
1292 wxPyEndAllowThreads(__tstate);
1293 if (PyErr_Occurred()) return NULL;
1294 } Py_INCREF(Py_None);
1295 _resultobj = Py_None;
1296 return _resultobj;
1297 }
1298
1299 #define wxPyShapeCanvas_FindShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->FindShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1300 static PyObject *_wrap_wxPyShapeCanvas_FindShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1301 PyObject * _resultobj;
1302 wxPyShape * _result;
1303 wxPyShapeCanvas * _arg0;
1304 double _arg1;
1305 double _arg2;
1306 int * _arg3;
1307 int temp;
1308 wxClassInfo * _arg4 = (wxClassInfo *) NULL;
1309 wxPyShape * _arg5 = (wxPyShape *) NULL;
1310 PyObject * _argo0 = 0;
1311 PyObject * _argo4 = 0;
1312 PyObject * _argo5 = 0;
1313 char *_kwnames[] = { "self","x1","y","info","notImage", NULL };
1314
1315 self = self;
1316 {
1317 _arg3 = &temp;
1318 }
1319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|OO:wxPyShapeCanvas_FindShape",_kwnames,&_argo0,&_arg1,&_arg2,&_argo4,&_argo5))
1320 return NULL;
1321 if (_argo0) {
1322 if (_argo0 == Py_None) { _arg0 = NULL; }
1323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_FindShape. Expected _wxPyShapeCanvas_p.");
1325 return NULL;
1326 }
1327 }
1328 if (_argo4) {
1329 if (_argo4 == Py_None) { _arg4 = NULL; }
1330 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxClassInfo_p")) {
1331 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPyShapeCanvas_FindShape. Expected _wxClassInfo_p.");
1332 return NULL;
1333 }
1334 }
1335 if (_argo5) {
1336 if (_argo5 == Py_None) { _arg5 = NULL; }
1337 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyShape_p")) {
1338 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxPyShapeCanvas_FindShape. Expected _wxPyShape_p.");
1339 return NULL;
1340 }
1341 }
1342 {
1343 PyThreadState* __tstate = wxPyBeginAllowThreads();
1344 _result = (wxPyShape *)wxPyShapeCanvas_FindShape(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
1345
1346 wxPyEndAllowThreads(__tstate);
1347 if (PyErr_Occurred()) return NULL;
1348 }{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
1349 {
1350 PyObject *o;
1351 o = PyInt_FromLong((long) (*_arg3));
1352 _resultobj = t_output_helper(_resultobj, o);
1353 }
1354 return _resultobj;
1355 }
1356
1357 #define wxPyShapeCanvas_FindFirstSensitiveShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FindFirstSensitiveShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1358 static PyObject *_wrap_wxPyShapeCanvas_FindFirstSensitiveShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1359 PyObject * _resultobj;
1360 wxPyShape * _result;
1361 wxPyShapeCanvas * _arg0;
1362 double _arg1;
1363 double _arg2;
1364 int * _arg3;
1365 int temp;
1366 int _arg4;
1367 PyObject * _argo0 = 0;
1368 char *_kwnames[] = { "self","x1","y","op", NULL };
1369
1370 self = self;
1371 {
1372 _arg3 = &temp;
1373 }
1374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oddi:wxPyShapeCanvas_FindFirstSensitiveShape",_kwnames,&_argo0,&_arg1,&_arg2,&_arg4))
1375 return NULL;
1376 if (_argo0) {
1377 if (_argo0 == Py_None) { _arg0 = NULL; }
1378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_FindFirstSensitiveShape. Expected _wxPyShapeCanvas_p.");
1380 return NULL;
1381 }
1382 }
1383 {
1384 PyThreadState* __tstate = wxPyBeginAllowThreads();
1385 _result = (wxPyShape *)wxPyShapeCanvas_FindFirstSensitiveShape(_arg0,_arg1,_arg2,_arg3,_arg4);
1386
1387 wxPyEndAllowThreads(__tstate);
1388 if (PyErr_Occurred()) return NULL;
1389 }{ _resultobj = wxPyMake_wxShapeEvtHandler(_result); }
1390 {
1391 PyObject *o;
1392 o = PyInt_FromLong((long) (*_arg3));
1393 _resultobj = t_output_helper(_resultobj, o);
1394 }
1395 return _resultobj;
1396 }
1397
1398 #define wxPyShapeCanvas_GetDiagram(_swigobj) (_swigobj->GetDiagram())
1399 static PyObject *_wrap_wxPyShapeCanvas_GetDiagram(PyObject *self, PyObject *args, PyObject *kwargs) {
1400 PyObject * _resultobj;
1401 wxDiagram * _result;
1402 wxPyShapeCanvas * _arg0;
1403 PyObject * _argo0 = 0;
1404 char *_kwnames[] = { "self", NULL };
1405
1406 self = self;
1407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeCanvas_GetDiagram",_kwnames,&_argo0))
1408 return NULL;
1409 if (_argo0) {
1410 if (_argo0 == Py_None) { _arg0 = NULL; }
1411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_GetDiagram. Expected _wxPyShapeCanvas_p.");
1413 return NULL;
1414 }
1415 }
1416 {
1417 PyThreadState* __tstate = wxPyBeginAllowThreads();
1418 _result = (wxDiagram *)wxPyShapeCanvas_GetDiagram(_arg0);
1419
1420 wxPyEndAllowThreads(__tstate);
1421 if (PyErr_Occurred()) return NULL;
1422 }{ _resultobj = wxPyMake_wxObject(_result); }
1423 return _resultobj;
1424 }
1425
1426 #define wxPyShapeCanvas_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
1427 static PyObject *_wrap_wxPyShapeCanvas_GetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1428 PyObject * _resultobj;
1429 bool _result;
1430 wxPyShapeCanvas * _arg0;
1431 PyObject * _argo0 = 0;
1432 char *_kwnames[] = { "self", NULL };
1433
1434 self = self;
1435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeCanvas_GetQuickEditMode",_kwnames,&_argo0))
1436 return NULL;
1437 if (_argo0) {
1438 if (_argo0 == Py_None) { _arg0 = NULL; }
1439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_GetQuickEditMode. Expected _wxPyShapeCanvas_p.");
1441 return NULL;
1442 }
1443 }
1444 {
1445 PyThreadState* __tstate = wxPyBeginAllowThreads();
1446 _result = (bool )wxPyShapeCanvas_GetQuickEditMode(_arg0);
1447
1448 wxPyEndAllowThreads(__tstate);
1449 if (PyErr_Occurred()) return NULL;
1450 } _resultobj = Py_BuildValue("i",_result);
1451 return _resultobj;
1452 }
1453
1454 #define wxPyShapeCanvas_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
1455 static PyObject *_wrap_wxPyShapeCanvas_InsertShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1456 PyObject * _resultobj;
1457 wxPyShapeCanvas * _arg0;
1458 wxPyShape * _arg1;
1459 PyObject * _argo0 = 0;
1460 PyObject * _argo1 = 0;
1461 char *_kwnames[] = { "self","shape", NULL };
1462
1463 self = self;
1464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_InsertShape",_kwnames,&_argo0,&_argo1))
1465 return NULL;
1466 if (_argo0) {
1467 if (_argo0 == Py_None) { _arg0 = NULL; }
1468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_InsertShape. Expected _wxPyShapeCanvas_p.");
1470 return NULL;
1471 }
1472 }
1473 if (_argo1) {
1474 if (_argo1 == Py_None) { _arg1 = NULL; }
1475 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
1476 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_InsertShape. Expected _wxPyShape_p.");
1477 return NULL;
1478 }
1479 }
1480 {
1481 PyThreadState* __tstate = wxPyBeginAllowThreads();
1482 wxPyShapeCanvas_InsertShape(_arg0,_arg1);
1483
1484 wxPyEndAllowThreads(__tstate);
1485 if (PyErr_Occurred()) return NULL;
1486 } Py_INCREF(Py_None);
1487 _resultobj = Py_None;
1488 return _resultobj;
1489 }
1490
1491 #define wxPyShapeCanvas_base_OnBeginDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragLeft(_swigarg0,_swigarg1,_swigarg2))
1492 static PyObject *_wrap_wxPyShapeCanvas_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
1493 PyObject * _resultobj;
1494 wxPyShapeCanvas * _arg0;
1495 double _arg1;
1496 double _arg2;
1497 int _arg3 = (int ) 0;
1498 PyObject * _argo0 = 0;
1499 char *_kwnames[] = { "self","x","y","keys", NULL };
1500
1501 self = self;
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnBeginDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1503 return NULL;
1504 if (_argo0) {
1505 if (_argo0 == Py_None) { _arg0 = NULL; }
1506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragLeft. Expected _wxPyShapeCanvas_p.");
1508 return NULL;
1509 }
1510 }
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 wxPyShapeCanvas_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3);
1514
1515 wxPyEndAllowThreads(__tstate);
1516 if (PyErr_Occurred()) return NULL;
1517 } Py_INCREF(Py_None);
1518 _resultobj = Py_None;
1519 return _resultobj;
1520 }
1521
1522 #define wxPyShapeCanvas_base_OnBeginDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragRight(_swigarg0,_swigarg1,_swigarg2))
1523 static PyObject *_wrap_wxPyShapeCanvas_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) {
1524 PyObject * _resultobj;
1525 wxPyShapeCanvas * _arg0;
1526 double _arg1;
1527 double _arg2;
1528 int _arg3 = (int ) 0;
1529 PyObject * _argo0 = 0;
1530 char *_kwnames[] = { "self","x","y","keys", NULL };
1531
1532 self = self;
1533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnBeginDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1534 return NULL;
1535 if (_argo0) {
1536 if (_argo0 == Py_None) { _arg0 = NULL; }
1537 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1538 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragRight. Expected _wxPyShapeCanvas_p.");
1539 return NULL;
1540 }
1541 }
1542 {
1543 PyThreadState* __tstate = wxPyBeginAllowThreads();
1544 wxPyShapeCanvas_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3);
1545
1546 wxPyEndAllowThreads(__tstate);
1547 if (PyErr_Occurred()) return NULL;
1548 } Py_INCREF(Py_None);
1549 _resultobj = Py_None;
1550 return _resultobj;
1551 }
1552
1553 #define wxPyShapeCanvas_base_OnEndDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragLeft(_swigarg0,_swigarg1,_swigarg2))
1554 static PyObject *_wrap_wxPyShapeCanvas_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
1555 PyObject * _resultobj;
1556 wxPyShapeCanvas * _arg0;
1557 double _arg1;
1558 double _arg2;
1559 int _arg3 = (int ) 0;
1560 PyObject * _argo0 = 0;
1561 char *_kwnames[] = { "self","x","y","keys", NULL };
1562
1563 self = self;
1564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnEndDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1565 return NULL;
1566 if (_argo0) {
1567 if (_argo0 == Py_None) { _arg0 = NULL; }
1568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragLeft. Expected _wxPyShapeCanvas_p.");
1570 return NULL;
1571 }
1572 }
1573 {
1574 PyThreadState* __tstate = wxPyBeginAllowThreads();
1575 wxPyShapeCanvas_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3);
1576
1577 wxPyEndAllowThreads(__tstate);
1578 if (PyErr_Occurred()) return NULL;
1579 } Py_INCREF(Py_None);
1580 _resultobj = Py_None;
1581 return _resultobj;
1582 }
1583
1584 #define wxPyShapeCanvas_base_OnEndDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragRight(_swigarg0,_swigarg1,_swigarg2))
1585 static PyObject *_wrap_wxPyShapeCanvas_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) {
1586 PyObject * _resultobj;
1587 wxPyShapeCanvas * _arg0;
1588 double _arg1;
1589 double _arg2;
1590 int _arg3 = (int ) 0;
1591 PyObject * _argo0 = 0;
1592 char *_kwnames[] = { "self","x","y","keys", NULL };
1593
1594 self = self;
1595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnEndDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1596 return NULL;
1597 if (_argo0) {
1598 if (_argo0 == Py_None) { _arg0 = NULL; }
1599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragRight. Expected _wxPyShapeCanvas_p.");
1601 return NULL;
1602 }
1603 }
1604 {
1605 PyThreadState* __tstate = wxPyBeginAllowThreads();
1606 wxPyShapeCanvas_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3);
1607
1608 wxPyEndAllowThreads(__tstate);
1609 if (PyErr_Occurred()) return NULL;
1610 } Py_INCREF(Py_None);
1611 _resultobj = Py_None;
1612 return _resultobj;
1613 }
1614
1615 #define wxPyShapeCanvas_base_OnDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1616 static PyObject *_wrap_wxPyShapeCanvas_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
1617 PyObject * _resultobj;
1618 wxPyShapeCanvas * _arg0;
1619 bool _arg1;
1620 double _arg2;
1621 double _arg3;
1622 int _arg4 = (int ) 0;
1623 PyObject * _argo0 = 0;
1624 int tempbool1;
1625 char *_kwnames[] = { "self","draw","x","y","keys", NULL };
1626
1627 self = self;
1628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|i:wxPyShapeCanvas_base_OnDragLeft",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4))
1629 return NULL;
1630 if (_argo0) {
1631 if (_argo0 == Py_None) { _arg0 = NULL; }
1632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragLeft. Expected _wxPyShapeCanvas_p.");
1634 return NULL;
1635 }
1636 }
1637 _arg1 = (bool ) tempbool1;
1638 {
1639 PyThreadState* __tstate = wxPyBeginAllowThreads();
1640 wxPyShapeCanvas_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
1641
1642 wxPyEndAllowThreads(__tstate);
1643 if (PyErr_Occurred()) return NULL;
1644 } Py_INCREF(Py_None);
1645 _resultobj = Py_None;
1646 return _resultobj;
1647 }
1648
1649 #define wxPyShapeCanvas_base_OnDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1650 static PyObject *_wrap_wxPyShapeCanvas_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) {
1651 PyObject * _resultobj;
1652 wxPyShapeCanvas * _arg0;
1653 bool _arg1;
1654 double _arg2;
1655 double _arg3;
1656 int _arg4 = (int ) 0;
1657 PyObject * _argo0 = 0;
1658 int tempbool1;
1659 char *_kwnames[] = { "self","draw","x","y","keys", NULL };
1660
1661 self = self;
1662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|i:wxPyShapeCanvas_base_OnDragRight",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4))
1663 return NULL;
1664 if (_argo0) {
1665 if (_argo0 == Py_None) { _arg0 = NULL; }
1666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragRight. Expected _wxPyShapeCanvas_p.");
1668 return NULL;
1669 }
1670 }
1671 _arg1 = (bool ) tempbool1;
1672 {
1673 PyThreadState* __tstate = wxPyBeginAllowThreads();
1674 wxPyShapeCanvas_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
1675
1676 wxPyEndAllowThreads(__tstate);
1677 if (PyErr_Occurred()) return NULL;
1678 } Py_INCREF(Py_None);
1679 _resultobj = Py_None;
1680 return _resultobj;
1681 }
1682
1683 #define wxPyShapeCanvas_base_OnLeftClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnLeftClick(_swigarg0,_swigarg1,_swigarg2))
1684 static PyObject *_wrap_wxPyShapeCanvas_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) {
1685 PyObject * _resultobj;
1686 wxPyShapeCanvas * _arg0;
1687 double _arg1;
1688 double _arg2;
1689 int _arg3 = (int ) 0;
1690 PyObject * _argo0 = 0;
1691 char *_kwnames[] = { "self","x","y","keys", NULL };
1692
1693 self = self;
1694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnLeftClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
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_OnLeftClick. Expected _wxPyShapeCanvas_p.");
1700 return NULL;
1701 }
1702 }
1703 {
1704 PyThreadState* __tstate = wxPyBeginAllowThreads();
1705 wxPyShapeCanvas_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3);
1706
1707 wxPyEndAllowThreads(__tstate);
1708 if (PyErr_Occurred()) return NULL;
1709 } Py_INCREF(Py_None);
1710 _resultobj = Py_None;
1711 return _resultobj;
1712 }
1713
1714 #define wxPyShapeCanvas_base_OnRightClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnRightClick(_swigarg0,_swigarg1,_swigarg2))
1715 static PyObject *_wrap_wxPyShapeCanvas_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) {
1716 PyObject * _resultobj;
1717 wxPyShapeCanvas * _arg0;
1718 double _arg1;
1719 double _arg2;
1720 int _arg3 = (int ) 0;
1721 PyObject * _argo0 = 0;
1722 char *_kwnames[] = { "self","x","y","keys", NULL };
1723
1724 self = self;
1725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnRightClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1726 return NULL;
1727 if (_argo0) {
1728 if (_argo0 == Py_None) { _arg0 = NULL; }
1729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnRightClick. Expected _wxPyShapeCanvas_p.");
1731 return NULL;
1732 }
1733 }
1734 {
1735 PyThreadState* __tstate = wxPyBeginAllowThreads();
1736 wxPyShapeCanvas_base_OnRightClick(_arg0,_arg1,_arg2,_arg3);
1737
1738 wxPyEndAllowThreads(__tstate);
1739 if (PyErr_Occurred()) return NULL;
1740 } Py_INCREF(Py_None);
1741 _resultobj = Py_None;
1742 return _resultobj;
1743 }
1744
1745 #define wxPyShapeCanvas_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
1746 static PyObject *_wrap_wxPyShapeCanvas_Redraw(PyObject *self, PyObject *args, PyObject *kwargs) {
1747 PyObject * _resultobj;
1748 wxPyShapeCanvas * _arg0;
1749 wxDC * _arg1;
1750 PyObject * _argo0 = 0;
1751 PyObject * _argo1 = 0;
1752 char *_kwnames[] = { "self","dc", NULL };
1753
1754 self = self;
1755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_Redraw",_kwnames,&_argo0,&_argo1))
1756 return NULL;
1757 if (_argo0) {
1758 if (_argo0 == Py_None) { _arg0 = NULL; }
1759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_Redraw. Expected _wxPyShapeCanvas_p.");
1761 return NULL;
1762 }
1763 }
1764 if (_argo1) {
1765 if (_argo1 == Py_None) { _arg1 = NULL; }
1766 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
1767 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_Redraw. Expected _wxDC_p.");
1768 return NULL;
1769 }
1770 }
1771 {
1772 PyThreadState* __tstate = wxPyBeginAllowThreads();
1773 wxPyShapeCanvas_Redraw(_arg0,*_arg1);
1774
1775 wxPyEndAllowThreads(__tstate);
1776 if (PyErr_Occurred()) return NULL;
1777 } Py_INCREF(Py_None);
1778 _resultobj = Py_None;
1779 return _resultobj;
1780 }
1781
1782 #define wxPyShapeCanvas_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
1783 static PyObject *_wrap_wxPyShapeCanvas_RemoveShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1784 PyObject * _resultobj;
1785 wxPyShapeCanvas * _arg0;
1786 wxPyShape * _arg1;
1787 PyObject * _argo0 = 0;
1788 PyObject * _argo1 = 0;
1789 char *_kwnames[] = { "self","shape", NULL };
1790
1791 self = self;
1792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_RemoveShape",_kwnames,&_argo0,&_argo1))
1793 return NULL;
1794 if (_argo0) {
1795 if (_argo0 == Py_None) { _arg0 = NULL; }
1796 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1797 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShapeCanvas_p.");
1798 return NULL;
1799 }
1800 }
1801 if (_argo1) {
1802 if (_argo1 == Py_None) { _arg1 = NULL; }
1803 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
1804 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShape_p.");
1805 return NULL;
1806 }
1807 }
1808 {
1809 PyThreadState* __tstate = wxPyBeginAllowThreads();
1810 wxPyShapeCanvas_RemoveShape(_arg0,_arg1);
1811
1812 wxPyEndAllowThreads(__tstate);
1813 if (PyErr_Occurred()) return NULL;
1814 } Py_INCREF(Py_None);
1815 _resultobj = Py_None;
1816 return _resultobj;
1817 }
1818
1819 #define wxPyShapeCanvas_SetDiagram(_swigobj,_swigarg0) (_swigobj->SetDiagram(_swigarg0))
1820 static PyObject *_wrap_wxPyShapeCanvas_SetDiagram(PyObject *self, PyObject *args, PyObject *kwargs) {
1821 PyObject * _resultobj;
1822 wxPyShapeCanvas * _arg0;
1823 wxDiagram * _arg1;
1824 PyObject * _argo0 = 0;
1825 PyObject * _argo1 = 0;
1826 char *_kwnames[] = { "self","diagram", NULL };
1827
1828 self = self;
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_SetDiagram",_kwnames,&_argo0,&_argo1))
1830 return NULL;
1831 if (_argo0) {
1832 if (_argo0 == Py_None) { _arg0 = NULL; }
1833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_SetDiagram. Expected _wxPyShapeCanvas_p.");
1835 return NULL;
1836 }
1837 }
1838 if (_argo1) {
1839 if (_argo1 == Py_None) { _arg1 = NULL; }
1840 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDiagram_p")) {
1841 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_SetDiagram. Expected _wxDiagram_p.");
1842 return NULL;
1843 }
1844 }
1845 {
1846 PyThreadState* __tstate = wxPyBeginAllowThreads();
1847 wxPyShapeCanvas_SetDiagram(_arg0,_arg1);
1848
1849 wxPyEndAllowThreads(__tstate);
1850 if (PyErr_Occurred()) return NULL;
1851 } Py_INCREF(Py_None);
1852 _resultobj = Py_None;
1853 return _resultobj;
1854 }
1855
1856 #define wxPyShapeCanvas_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
1857 static PyObject *_wrap_wxPyShapeCanvas_Snap(PyObject *self, PyObject *args, PyObject *kwargs) {
1858 PyObject * _resultobj;
1859 wxPyShapeCanvas * _arg0;
1860 double * _arg1;
1861 double * _arg2;
1862 PyObject * _argo0 = 0;
1863 double temp;
1864 PyObject * _obj1 = 0;
1865 double temp0;
1866 PyObject * _obj2 = 0;
1867 char *_kwnames[] = { "self","INOUT","INOUT", NULL };
1868
1869 self = self;
1870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyShapeCanvas_Snap",_kwnames,&_argo0,&_obj1,&_obj2))
1871 return NULL;
1872 if (_argo0) {
1873 if (_argo0 == Py_None) { _arg0 = NULL; }
1874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_Snap. Expected _wxPyShapeCanvas_p.");
1876 return NULL;
1877 }
1878 }
1879 {
1880 temp = PyFloat_AsDouble(_obj1);
1881 _arg1 = &temp;
1882 }
1883 {
1884 temp0 = PyFloat_AsDouble(_obj2);
1885 _arg2 = &temp0;
1886 }
1887 {
1888 PyThreadState* __tstate = wxPyBeginAllowThreads();
1889 wxPyShapeCanvas_Snap(_arg0,_arg1,_arg2);
1890
1891 wxPyEndAllowThreads(__tstate);
1892 if (PyErr_Occurred()) return NULL;
1893 } Py_INCREF(Py_None);
1894 _resultobj = Py_None;
1895 {
1896 PyObject *o;
1897 o = PyFloat_FromDouble((double) (*_arg1));
1898 _resultobj = t_output_helper(_resultobj, o);
1899 }
1900 {
1901 PyObject *o;
1902 o = PyFloat_FromDouble((double) (*_arg2));
1903 _resultobj = t_output_helper(_resultobj, o);
1904 }
1905 return _resultobj;
1906 }
1907
1908 static PyMethodDef oglcanvascMethods[] = {
1909 { "wxPyShapeCanvas_Snap", (PyCFunction) _wrap_wxPyShapeCanvas_Snap, METH_VARARGS | METH_KEYWORDS },
1910 { "wxPyShapeCanvas_SetDiagram", (PyCFunction) _wrap_wxPyShapeCanvas_SetDiagram, METH_VARARGS | METH_KEYWORDS },
1911 { "wxPyShapeCanvas_RemoveShape", (PyCFunction) _wrap_wxPyShapeCanvas_RemoveShape, METH_VARARGS | METH_KEYWORDS },
1912 { "wxPyShapeCanvas_Redraw", (PyCFunction) _wrap_wxPyShapeCanvas_Redraw, METH_VARARGS | METH_KEYWORDS },
1913 { "wxPyShapeCanvas_base_OnRightClick", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnRightClick, METH_VARARGS | METH_KEYWORDS },
1914 { "wxPyShapeCanvas_base_OnLeftClick", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS },
1915 { "wxPyShapeCanvas_base_OnDragRight", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnDragRight, METH_VARARGS | METH_KEYWORDS },
1916 { "wxPyShapeCanvas_base_OnDragLeft", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS },
1917 { "wxPyShapeCanvas_base_OnEndDragRight", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS },
1918 { "wxPyShapeCanvas_base_OnEndDragLeft", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS },
1919 { "wxPyShapeCanvas_base_OnBeginDragRight", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS },
1920 { "wxPyShapeCanvas_base_OnBeginDragLeft", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS },
1921 { "wxPyShapeCanvas_InsertShape", (PyCFunction) _wrap_wxPyShapeCanvas_InsertShape, METH_VARARGS | METH_KEYWORDS },
1922 { "wxPyShapeCanvas_GetQuickEditMode", (PyCFunction) _wrap_wxPyShapeCanvas_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS },
1923 { "wxPyShapeCanvas_GetDiagram", (PyCFunction) _wrap_wxPyShapeCanvas_GetDiagram, METH_VARARGS | METH_KEYWORDS },
1924 { "wxPyShapeCanvas_FindFirstSensitiveShape", (PyCFunction) _wrap_wxPyShapeCanvas_FindFirstSensitiveShape, METH_VARARGS | METH_KEYWORDS },
1925 { "wxPyShapeCanvas_FindShape", (PyCFunction) _wrap_wxPyShapeCanvas_FindShape, METH_VARARGS | METH_KEYWORDS },
1926 { "wxPyShapeCanvas_AddShape", (PyCFunction) _wrap_wxPyShapeCanvas_AddShape, METH_VARARGS | METH_KEYWORDS },
1927 { "wxPyShapeCanvas__setCallbackInfo", (PyCFunction) _wrap_wxPyShapeCanvas__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
1928 { "new_wxPyShapeCanvas", (PyCFunction) _wrap_new_wxPyShapeCanvas, METH_VARARGS | METH_KEYWORDS },
1929 { "wxDiagram_Snap", (PyCFunction) _wrap_wxDiagram_Snap, METH_VARARGS | METH_KEYWORDS },
1930 { "wxDiagram_ShowAll", (PyCFunction) _wrap_wxDiagram_ShowAll, METH_VARARGS | METH_KEYWORDS },
1931 { "wxDiagram_SetSnapToGrid", (PyCFunction) _wrap_wxDiagram_SetSnapToGrid, METH_VARARGS | METH_KEYWORDS },
1932 { "wxDiagram_SetQuickEditMode", (PyCFunction) _wrap_wxDiagram_SetQuickEditMode, METH_VARARGS | METH_KEYWORDS },
1933 { "wxDiagram_SetMouseTolerance", (PyCFunction) _wrap_wxDiagram_SetMouseTolerance, METH_VARARGS | METH_KEYWORDS },
1934 { "wxDiagram_SetGridSpacing", (PyCFunction) _wrap_wxDiagram_SetGridSpacing, METH_VARARGS | METH_KEYWORDS },
1935 { "wxDiagram_SetCanvas", (PyCFunction) _wrap_wxDiagram_SetCanvas, METH_VARARGS | METH_KEYWORDS },
1936 { "wxDiagram_SaveFile", (PyCFunction) _wrap_wxDiagram_SaveFile, METH_VARARGS | METH_KEYWORDS },
1937 { "wxDiagram_RemoveShape", (PyCFunction) _wrap_wxDiagram_RemoveShape, METH_VARARGS | METH_KEYWORDS },
1938 { "wxDiagram_RemoveAllShapes", (PyCFunction) _wrap_wxDiagram_RemoveAllShapes, METH_VARARGS | METH_KEYWORDS },
1939 { "wxDiagram_Redraw", (PyCFunction) _wrap_wxDiagram_Redraw, METH_VARARGS | METH_KEYWORDS },
1940 { "wxDiagram_RecentreAll", (PyCFunction) _wrap_wxDiagram_RecentreAll, METH_VARARGS | METH_KEYWORDS },
1941 { "wxDiagram_ReadNodes", (PyCFunction) _wrap_wxDiagram_ReadNodes, METH_VARARGS | METH_KEYWORDS },
1942 { "wxDiagram_ReadLines", (PyCFunction) _wrap_wxDiagram_ReadLines, METH_VARARGS | METH_KEYWORDS },
1943 { "wxDiagram_ReadContainerGeometry", (PyCFunction) _wrap_wxDiagram_ReadContainerGeometry, METH_VARARGS | METH_KEYWORDS },
1944 { "wxDiagram_LoadFile", (PyCFunction) _wrap_wxDiagram_LoadFile, METH_VARARGS | METH_KEYWORDS },
1945 { "wxDiagram_InsertShape", (PyCFunction) _wrap_wxDiagram_InsertShape, METH_VARARGS | METH_KEYWORDS },
1946 { "wxDiagram_GetSnapToGrid", (PyCFunction) _wrap_wxDiagram_GetSnapToGrid, METH_VARARGS | METH_KEYWORDS },
1947 { "wxDiagram_GetQuickEditMode", (PyCFunction) _wrap_wxDiagram_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS },
1948 { "wxDiagram_GetShapeList", (PyCFunction) _wrap_wxDiagram_GetShapeList, METH_VARARGS | METH_KEYWORDS },
1949 { "wxDiagram_GetMouseTolerance", (PyCFunction) _wrap_wxDiagram_GetMouseTolerance, METH_VARARGS | METH_KEYWORDS },
1950 { "wxDiagram_GetGridSpacing", (PyCFunction) _wrap_wxDiagram_GetGridSpacing, METH_VARARGS | METH_KEYWORDS },
1951 { "wxDiagram_GetCount", (PyCFunction) _wrap_wxDiagram_GetCount, METH_VARARGS | METH_KEYWORDS },
1952 { "wxDiagram_GetCanvas", (PyCFunction) _wrap_wxDiagram_GetCanvas, METH_VARARGS | METH_KEYWORDS },
1953 { "wxDiagram_FindShape", (PyCFunction) _wrap_wxDiagram_FindShape, METH_VARARGS | METH_KEYWORDS },
1954 { "wxDiagram_DrawOutline", (PyCFunction) _wrap_wxDiagram_DrawOutline, METH_VARARGS | METH_KEYWORDS },
1955 { "wxDiagram_DeleteAllShapes", (PyCFunction) _wrap_wxDiagram_DeleteAllShapes, METH_VARARGS | METH_KEYWORDS },
1956 { "wxDiagram_Clear", (PyCFunction) _wrap_wxDiagram_Clear, METH_VARARGS | METH_KEYWORDS },
1957 { "wxDiagram_AddShape", (PyCFunction) _wrap_wxDiagram_AddShape, METH_VARARGS | METH_KEYWORDS },
1958 { "new_wxDiagram", (PyCFunction) _wrap_new_wxDiagram, METH_VARARGS | METH_KEYWORDS },
1959 { NULL, NULL }
1960 };
1961 #ifdef __cplusplus
1962 }
1963 #endif
1964 /*
1965 * This table is used by the pointer type-checker
1966 */
1967 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1968 { "_signed_long","_long",0},
1969 { "_wxPrintQuality","_wxCoord",0},
1970 { "_wxPrintQuality","_int",0},
1971 { "_wxPrintQuality","_signed_int",0},
1972 { "_wxPrintQuality","_unsigned_int",0},
1973 { "_wxPrintQuality","_wxWindowID",0},
1974 { "_wxPrintQuality","_uint",0},
1975 { "_wxPrintQuality","_EBool",0},
1976 { "_wxPrintQuality","_size_t",0},
1977 { "_wxPrintQuality","_time_t",0},
1978 { "_byte","_unsigned_char",0},
1979 { "_long","_unsigned_long",0},
1980 { "_long","_signed_long",0},
1981 { "_size_t","_wxCoord",0},
1982 { "_size_t","_wxPrintQuality",0},
1983 { "_size_t","_time_t",0},
1984 { "_size_t","_unsigned_int",0},
1985 { "_size_t","_int",0},
1986 { "_size_t","_wxWindowID",0},
1987 { "_size_t","_uint",0},
1988 { "_wxPanel","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxPanel},
1989 { "_uint","_wxCoord",0},
1990 { "_uint","_wxPrintQuality",0},
1991 { "_uint","_time_t",0},
1992 { "_uint","_size_t",0},
1993 { "_uint","_unsigned_int",0},
1994 { "_uint","_int",0},
1995 { "_uint","_wxWindowID",0},
1996 { "_wxChar","_char",0},
1997 { "_char","_wxChar",0},
1998 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1999 { "_EBool","_wxCoord",0},
2000 { "_EBool","_wxPrintQuality",0},
2001 { "_EBool","_signed_int",0},
2002 { "_EBool","_int",0},
2003 { "_EBool","_wxWindowID",0},
2004 { "_unsigned_long","_long",0},
2005 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
2006 { "_signed_int","_wxCoord",0},
2007 { "_signed_int","_wxPrintQuality",0},
2008 { "_signed_int","_EBool",0},
2009 { "_signed_int","_wxWindowID",0},
2010 { "_signed_int","_int",0},
2011 { "_WXTYPE","_wxDateTime_t",0},
2012 { "_WXTYPE","_short",0},
2013 { "_WXTYPE","_signed_short",0},
2014 { "_WXTYPE","_unsigned_short",0},
2015 { "_unsigned_short","_wxDateTime_t",0},
2016 { "_unsigned_short","_WXTYPE",0},
2017 { "_unsigned_short","_short",0},
2018 { "_wxObject","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxObject},
2019 { "_wxObject","_wxDiagram",SwigwxDiagramTowxObject},
2020 { "_signed_short","_WXTYPE",0},
2021 { "_signed_short","_short",0},
2022 { "_wxScrolledWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxScrolledWindow},
2023 { "_unsigned_char","_byte",0},
2024 { "_unsigned_int","_wxCoord",0},
2025 { "_unsigned_int","_wxPrintQuality",0},
2026 { "_unsigned_int","_time_t",0},
2027 { "_unsigned_int","_size_t",0},
2028 { "_unsigned_int","_uint",0},
2029 { "_unsigned_int","_wxWindowID",0},
2030 { "_unsigned_int","_int",0},
2031 { "_short","_wxDateTime_t",0},
2032 { "_short","_WXTYPE",0},
2033 { "_short","_unsigned_short",0},
2034 { "_short","_signed_short",0},
2035 { "_wxWindowID","_wxCoord",0},
2036 { "_wxWindowID","_wxPrintQuality",0},
2037 { "_wxWindowID","_time_t",0},
2038 { "_wxWindowID","_size_t",0},
2039 { "_wxWindowID","_EBool",0},
2040 { "_wxWindowID","_uint",0},
2041 { "_wxWindowID","_int",0},
2042 { "_wxWindowID","_signed_int",0},
2043 { "_wxWindowID","_unsigned_int",0},
2044 { "_int","_wxCoord",0},
2045 { "_int","_wxPrintQuality",0},
2046 { "_int","_time_t",0},
2047 { "_int","_size_t",0},
2048 { "_int","_EBool",0},
2049 { "_int","_uint",0},
2050 { "_int","_wxWindowID",0},
2051 { "_int","_unsigned_int",0},
2052 { "_int","_signed_int",0},
2053 { "_wxDateTime_t","_unsigned_short",0},
2054 { "_wxDateTime_t","_short",0},
2055 { "_wxDateTime_t","_WXTYPE",0},
2056 { "_time_t","_wxCoord",0},
2057 { "_time_t","_wxPrintQuality",0},
2058 { "_time_t","_unsigned_int",0},
2059 { "_time_t","_int",0},
2060 { "_time_t","_wxWindowID",0},
2061 { "_time_t","_uint",0},
2062 { "_time_t","_size_t",0},
2063 { "_wxCoord","_int",0},
2064 { "_wxCoord","_signed_int",0},
2065 { "_wxCoord","_unsigned_int",0},
2066 { "_wxCoord","_wxWindowID",0},
2067 { "_wxCoord","_uint",0},
2068 { "_wxCoord","_EBool",0},
2069 { "_wxCoord","_size_t",0},
2070 { "_wxCoord","_time_t",0},
2071 { "_wxCoord","_wxPrintQuality",0},
2072 { "_wxEvtHandler","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxEvtHandler},
2073 { "_wxWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxWindow},
2074 {0,0,0}};
2075
2076 static PyObject *SWIG_globals;
2077 #ifdef __cplusplus
2078 extern "C"
2079 #endif
2080 SWIGEXPORT(void) initoglcanvasc() {
2081 PyObject *m, *d;
2082 SWIG_globals = SWIG_newvarlink();
2083 m = Py_InitModule("oglcanvasc", oglcanvascMethods);
2084 d = PyModule_GetDict(m);
2085 {
2086 int i;
2087 for (i = 0; _swig_mapping[i].n1; i++)
2088 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2089 }
2090 }