]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/ogl/oglcanvas.cpp
added carbrsrc.r to carbon resource target
[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 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initoglcanvasc
53
54 #define SWIG_name "oglcanvasc"
55
56 #include "export.h"
57 #include "oglhelpers.h"
58
59 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
60 PyObject* o2;
61 if (!target) {
62 target = o;
63 } else if (target == Py_None) {
64 Py_DECREF(Py_None);
65 target = o;
66 } else {
67 if (!PyList_Check(target)) {
68 o2 = target;
69 target = PyList_New(0);
70 PyList_Append(target, o2);
71 Py_XDECREF(o2);
72 }
73 PyList_Append(target,o);
74 Py_XDECREF(o);
75 }
76 return target;
77 }
78
79 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
80 PyObject* o2;
81 PyObject* o3;
82
83 if (!target) {
84 target = o;
85 } else if (target == Py_None) {
86 Py_DECREF(Py_None);
87 target = o;
88 } else {
89 if (!PyTuple_Check(target)) {
90 o2 = target;
91 target = PyTuple_New(1);
92 PyTuple_SetItem(target, 0, o2);
93 }
94 o3 = PyTuple_New(1);
95 PyTuple_SetItem(o3, 0, o);
96
97 o2 = target;
98 target = PySequence_Concat(o2, o3);
99 Py_DECREF(o2);
100 Py_DECREF(o3);
101 }
102 return target;
103 }
104
105 static char* wxStringErrorMsg = "string type is required for parameter";
106
107 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragLeft);
108 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragRight);
109 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragLeft);
110 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragRight);
111 IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragLeft);
112 IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragRight);
113 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnLeftClick);
114 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnRightClick);
115 #ifdef __cplusplus
116 extern "C" {
117 #endif
118 #define new_wxDiagram() (new wxDiagram())
119 static PyObject *_wrap_new_wxDiagram(PyObject *self, PyObject *args, PyObject *kwargs) {
120 PyObject * _resultobj;
121 wxDiagram * _result;
122 char *_kwnames[] = { NULL };
123 char _ptemp[128];
124
125 self = self;
126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDiagram",_kwnames))
127 return NULL;
128 {
129 wxPy_BEGIN_ALLOW_THREADS;
130 _result = (wxDiagram *)new_wxDiagram();
131
132 wxPy_END_ALLOW_THREADS;
133 } if (_result) {
134 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDiagram_p");
135 _resultobj = Py_BuildValue("s",_ptemp);
136 } else {
137 Py_INCREF(Py_None);
138 _resultobj = Py_None;
139 }
140 return _resultobj;
141 }
142
143 #define delete_wxDiagram(_swigobj) (delete _swigobj)
144 static PyObject *_wrap_delete_wxDiagram(PyObject *self, PyObject *args, PyObject *kwargs) {
145 PyObject * _resultobj;
146 wxDiagram * _arg0;
147 PyObject * _argo0 = 0;
148 char *_kwnames[] = { "self", NULL };
149
150 self = self;
151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDiagram",_kwnames,&_argo0))
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 delete_wxDiagram. Expected _wxDiagram_p.");
157 return NULL;
158 }
159 }
160 {
161 wxPy_BEGIN_ALLOW_THREADS;
162 delete_wxDiagram(_arg0);
163
164 wxPy_END_ALLOW_THREADS;
165 } Py_INCREF(Py_None);
166 _resultobj = Py_None;
167 return _resultobj;
168 }
169
170 #define wxDiagram_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
171 static PyObject *_wrap_wxDiagram_AddShape(PyObject *self, PyObject *args, PyObject *kwargs) {
172 PyObject * _resultobj;
173 wxDiagram * _arg0;
174 wxPyShape * _arg1;
175 wxPyShape * _arg2 = (wxPyShape *) NULL;
176 PyObject * _argo0 = 0;
177 PyObject * _argo1 = 0;
178 PyObject * _argo2 = 0;
179 char *_kwnames[] = { "self","shape","addAfter", NULL };
180
181 self = self;
182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDiagram_AddShape",_kwnames,&_argo0,&_argo1,&_argo2))
183 return NULL;
184 if (_argo0) {
185 if (_argo0 == Py_None) { _arg0 = NULL; }
186 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
187 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_AddShape. Expected _wxDiagram_p.");
188 return NULL;
189 }
190 }
191 if (_argo1) {
192 if (_argo1 == Py_None) { _arg1 = NULL; }
193 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
194 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_AddShape. Expected _wxPyShape_p.");
195 return NULL;
196 }
197 }
198 if (_argo2) {
199 if (_argo2 == Py_None) { _arg2 = NULL; }
200 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyShape_p")) {
201 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDiagram_AddShape. Expected _wxPyShape_p.");
202 return NULL;
203 }
204 }
205 {
206 wxPy_BEGIN_ALLOW_THREADS;
207 wxDiagram_AddShape(_arg0,_arg1,_arg2);
208
209 wxPy_END_ALLOW_THREADS;
210 } Py_INCREF(Py_None);
211 _resultobj = Py_None;
212 return _resultobj;
213 }
214
215 #define wxDiagram_Clear(_swigobj,_swigarg0) (_swigobj->Clear(_swigarg0))
216 static PyObject *_wrap_wxDiagram_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
217 PyObject * _resultobj;
218 wxDiagram * _arg0;
219 wxDC * _arg1;
220 PyObject * _argo0 = 0;
221 PyObject * _argo1 = 0;
222 char *_kwnames[] = { "self","dc", NULL };
223
224 self = self;
225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_Clear",_kwnames,&_argo0,&_argo1))
226 return NULL;
227 if (_argo0) {
228 if (_argo0 == Py_None) { _arg0 = NULL; }
229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_Clear. Expected _wxDiagram_p.");
231 return NULL;
232 }
233 }
234 if (_argo1) {
235 if (_argo1 == Py_None) { _arg1 = NULL; }
236 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
237 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_Clear. Expected _wxDC_p.");
238 return NULL;
239 }
240 }
241 {
242 wxPy_BEGIN_ALLOW_THREADS;
243 wxDiagram_Clear(_arg0,*_arg1);
244
245 wxPy_END_ALLOW_THREADS;
246 } Py_INCREF(Py_None);
247 _resultobj = Py_None;
248 return _resultobj;
249 }
250
251 #define wxDiagram_DeleteAllShapes(_swigobj) (_swigobj->DeleteAllShapes())
252 static PyObject *_wrap_wxDiagram_DeleteAllShapes(PyObject *self, PyObject *args, PyObject *kwargs) {
253 PyObject * _resultobj;
254 wxDiagram * _arg0;
255 PyObject * _argo0 = 0;
256 char *_kwnames[] = { "self", NULL };
257
258 self = self;
259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_DeleteAllShapes",_kwnames,&_argo0))
260 return NULL;
261 if (_argo0) {
262 if (_argo0 == Py_None) { _arg0 = NULL; }
263 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
264 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_DeleteAllShapes. Expected _wxDiagram_p.");
265 return NULL;
266 }
267 }
268 {
269 wxPy_BEGIN_ALLOW_THREADS;
270 wxDiagram_DeleteAllShapes(_arg0);
271
272 wxPy_END_ALLOW_THREADS;
273 } Py_INCREF(Py_None);
274 _resultobj = Py_None;
275 return _resultobj;
276 }
277
278 #define wxDiagram_DrawOutline(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawOutline(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
279 static PyObject *_wrap_wxDiagram_DrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) {
280 PyObject * _resultobj;
281 wxDiagram * _arg0;
282 wxDC * _arg1;
283 double _arg2;
284 double _arg3;
285 double _arg4;
286 double _arg5;
287 PyObject * _argo0 = 0;
288 PyObject * _argo1 = 0;
289 char *_kwnames[] = { "self","dc","x1","y1","x2","y2", NULL };
290
291 self = self;
292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdddd:wxDiagram_DrawOutline",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5))
293 return NULL;
294 if (_argo0) {
295 if (_argo0 == Py_None) { _arg0 = NULL; }
296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_DrawOutline. Expected _wxDiagram_p.");
298 return NULL;
299 }
300 }
301 if (_argo1) {
302 if (_argo1 == Py_None) { _arg1 = NULL; }
303 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
304 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_DrawOutline. Expected _wxDC_p.");
305 return NULL;
306 }
307 }
308 {
309 wxPy_BEGIN_ALLOW_THREADS;
310 wxDiagram_DrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
311
312 wxPy_END_ALLOW_THREADS;
313 } Py_INCREF(Py_None);
314 _resultobj = Py_None;
315 return _resultobj;
316 }
317
318 #define wxDiagram_FindShape(_swigobj,_swigarg0) (_swigobj->FindShape(_swigarg0))
319 static PyObject *_wrap_wxDiagram_FindShape(PyObject *self, PyObject *args, PyObject *kwargs) {
320 PyObject * _resultobj;
321 wxPyShape * _result;
322 wxDiagram * _arg0;
323 long _arg1;
324 PyObject * _argo0 = 0;
325 char *_kwnames[] = { "self","id", NULL };
326 char _ptemp[128];
327
328 self = self;
329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDiagram_FindShape",_kwnames,&_argo0,&_arg1))
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_FindShape. Expected _wxDiagram_p.");
335 return NULL;
336 }
337 }
338 {
339 wxPy_BEGIN_ALLOW_THREADS;
340 _result = (wxPyShape *)wxDiagram_FindShape(_arg0,_arg1);
341
342 wxPy_END_ALLOW_THREADS;
343 } if (_result) {
344 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShape_p");
345 _resultobj = Py_BuildValue("s",_ptemp);
346 } else {
347 Py_INCREF(Py_None);
348 _resultobj = Py_None;
349 }
350 return _resultobj;
351 }
352
353 #define wxDiagram_GetCanvas(_swigobj) (_swigobj->GetCanvas())
354 static PyObject *_wrap_wxDiagram_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
355 PyObject * _resultobj;
356 wxPyShapeCanvas * _result;
357 wxDiagram * _arg0;
358 PyObject * _argo0 = 0;
359 char *_kwnames[] = { "self", NULL };
360 char _ptemp[128];
361
362 self = self;
363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetCanvas",_kwnames,&_argo0))
364 return NULL;
365 if (_argo0) {
366 if (_argo0 == Py_None) { _arg0 = NULL; }
367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetCanvas. Expected _wxDiagram_p.");
369 return NULL;
370 }
371 }
372 {
373 wxPy_BEGIN_ALLOW_THREADS;
374 _result = (wxPyShapeCanvas *)wxDiagram_GetCanvas(_arg0);
375
376 wxPy_END_ALLOW_THREADS;
377 } if (_result) {
378 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShapeCanvas_p");
379 _resultobj = Py_BuildValue("s",_ptemp);
380 } else {
381 Py_INCREF(Py_None);
382 _resultobj = Py_None;
383 }
384 return _resultobj;
385 }
386
387 #define wxDiagram_GetCount(_swigobj) (_swigobj->GetCount())
388 static PyObject *_wrap_wxDiagram_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
389 PyObject * _resultobj;
390 int _result;
391 wxDiagram * _arg0;
392 PyObject * _argo0 = 0;
393 char *_kwnames[] = { "self", NULL };
394
395 self = self;
396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetCount",_kwnames,&_argo0))
397 return NULL;
398 if (_argo0) {
399 if (_argo0 == Py_None) { _arg0 = NULL; }
400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetCount. Expected _wxDiagram_p.");
402 return NULL;
403 }
404 }
405 {
406 wxPy_BEGIN_ALLOW_THREADS;
407 _result = (int )wxDiagram_GetCount(_arg0);
408
409 wxPy_END_ALLOW_THREADS;
410 } _resultobj = Py_BuildValue("i",_result);
411 return _resultobj;
412 }
413
414 #define wxDiagram_GetGridSpacing(_swigobj) (_swigobj->GetGridSpacing())
415 static PyObject *_wrap_wxDiagram_GetGridSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
416 PyObject * _resultobj;
417 double _result;
418 wxDiagram * _arg0;
419 PyObject * _argo0 = 0;
420 char *_kwnames[] = { "self", NULL };
421
422 self = self;
423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetGridSpacing",_kwnames,&_argo0))
424 return NULL;
425 if (_argo0) {
426 if (_argo0 == Py_None) { _arg0 = NULL; }
427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetGridSpacing. Expected _wxDiagram_p.");
429 return NULL;
430 }
431 }
432 {
433 wxPy_BEGIN_ALLOW_THREADS;
434 _result = (double )wxDiagram_GetGridSpacing(_arg0);
435
436 wxPy_END_ALLOW_THREADS;
437 } _resultobj = Py_BuildValue("d",_result);
438 return _resultobj;
439 }
440
441 #define wxDiagram_GetMouseTolerance(_swigobj) (_swigobj->GetMouseTolerance())
442 static PyObject *_wrap_wxDiagram_GetMouseTolerance(PyObject *self, PyObject *args, PyObject *kwargs) {
443 PyObject * _resultobj;
444 int _result;
445 wxDiagram * _arg0;
446 PyObject * _argo0 = 0;
447 char *_kwnames[] = { "self", NULL };
448
449 self = self;
450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetMouseTolerance",_kwnames,&_argo0))
451 return NULL;
452 if (_argo0) {
453 if (_argo0 == Py_None) { _arg0 = NULL; }
454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetMouseTolerance. Expected _wxDiagram_p.");
456 return NULL;
457 }
458 }
459 {
460 wxPy_BEGIN_ALLOW_THREADS;
461 _result = (int )wxDiagram_GetMouseTolerance(_arg0);
462
463 wxPy_END_ALLOW_THREADS;
464 } _resultobj = Py_BuildValue("i",_result);
465 return _resultobj;
466 }
467
468 static PyObject * wxDiagram_GetShapeList(wxDiagram *self) {
469 wxList* list = self->GetShapeList();
470 return wxPy_ConvertList(list, "wxPyShape");
471 }
472 static PyObject *_wrap_wxDiagram_GetShapeList(PyObject *self, PyObject *args, PyObject *kwargs) {
473 PyObject * _resultobj;
474 PyObject * _result;
475 wxDiagram * _arg0;
476 PyObject * _argo0 = 0;
477 char *_kwnames[] = { "self", NULL };
478
479 self = self;
480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetShapeList",_kwnames,&_argo0))
481 return NULL;
482 if (_argo0) {
483 if (_argo0 == Py_None) { _arg0 = NULL; }
484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetShapeList. Expected _wxDiagram_p.");
486 return NULL;
487 }
488 }
489 {
490 wxPy_BEGIN_ALLOW_THREADS;
491 _result = (PyObject *)wxDiagram_GetShapeList(_arg0);
492
493 wxPy_END_ALLOW_THREADS;
494 }{
495 _resultobj = _result;
496 }
497 return _resultobj;
498 }
499
500 #define wxDiagram_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
501 static PyObject *_wrap_wxDiagram_GetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
502 PyObject * _resultobj;
503 bool _result;
504 wxDiagram * _arg0;
505 PyObject * _argo0 = 0;
506 char *_kwnames[] = { "self", NULL };
507
508 self = self;
509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetQuickEditMode",_kwnames,&_argo0))
510 return NULL;
511 if (_argo0) {
512 if (_argo0 == Py_None) { _arg0 = NULL; }
513 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
514 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetQuickEditMode. Expected _wxDiagram_p.");
515 return NULL;
516 }
517 }
518 {
519 wxPy_BEGIN_ALLOW_THREADS;
520 _result = (bool )wxDiagram_GetQuickEditMode(_arg0);
521
522 wxPy_END_ALLOW_THREADS;
523 } _resultobj = Py_BuildValue("i",_result);
524 return _resultobj;
525 }
526
527 #define wxDiagram_GetSnapToGrid(_swigobj) (_swigobj->GetSnapToGrid())
528 static PyObject *_wrap_wxDiagram_GetSnapToGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
529 PyObject * _resultobj;
530 bool _result;
531 wxDiagram * _arg0;
532 PyObject * _argo0 = 0;
533 char *_kwnames[] = { "self", NULL };
534
535 self = self;
536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_GetSnapToGrid",_kwnames,&_argo0))
537 return NULL;
538 if (_argo0) {
539 if (_argo0 == Py_None) { _arg0 = NULL; }
540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_GetSnapToGrid. Expected _wxDiagram_p.");
542 return NULL;
543 }
544 }
545 {
546 wxPy_BEGIN_ALLOW_THREADS;
547 _result = (bool )wxDiagram_GetSnapToGrid(_arg0);
548
549 wxPy_END_ALLOW_THREADS;
550 } _resultobj = Py_BuildValue("i",_result);
551 return _resultobj;
552 }
553
554 #define wxDiagram_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
555 static PyObject *_wrap_wxDiagram_InsertShape(PyObject *self, PyObject *args, PyObject *kwargs) {
556 PyObject * _resultobj;
557 wxDiagram * _arg0;
558 wxPyShape * _arg1;
559 PyObject * _argo0 = 0;
560 PyObject * _argo1 = 0;
561 char *_kwnames[] = { "self","shape", NULL };
562
563 self = self;
564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_InsertShape",_kwnames,&_argo0,&_argo1))
565 return NULL;
566 if (_argo0) {
567 if (_argo0 == Py_None) { _arg0 = NULL; }
568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_InsertShape. Expected _wxDiagram_p.");
570 return NULL;
571 }
572 }
573 if (_argo1) {
574 if (_argo1 == Py_None) { _arg1 = NULL; }
575 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
576 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_InsertShape. Expected _wxPyShape_p.");
577 return NULL;
578 }
579 }
580 {
581 wxPy_BEGIN_ALLOW_THREADS;
582 wxDiagram_InsertShape(_arg0,_arg1);
583
584 wxPy_END_ALLOW_THREADS;
585 } Py_INCREF(Py_None);
586 _resultobj = Py_None;
587 return _resultobj;
588 }
589
590 #define wxDiagram_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
591 static PyObject *_wrap_wxDiagram_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
592 PyObject * _resultobj;
593 bool _result;
594 wxDiagram * _arg0;
595 wxString * _arg1;
596 PyObject * _argo0 = 0;
597 PyObject * _obj1 = 0;
598 char *_kwnames[] = { "self","filename", NULL };
599
600 self = self;
601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_LoadFile",_kwnames,&_argo0,&_obj1))
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_LoadFile. Expected _wxDiagram_p.");
607 return NULL;
608 }
609 }
610 {
611 #if PYTHON_API_VERSION >= 1009
612 char* tmpPtr; int tmpSize;
613 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
614 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
615 return NULL;
616 }
617 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
618 return NULL;
619 _arg1 = new wxString(tmpPtr, tmpSize);
620 #else
621 if (!PyString_Check(_obj1)) {
622 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
623 return NULL;
624 }
625 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
626 #endif
627 }
628 {
629 wxPy_BEGIN_ALLOW_THREADS;
630 _result = (bool )wxDiagram_LoadFile(_arg0,*_arg1);
631
632 wxPy_END_ALLOW_THREADS;
633 } _resultobj = Py_BuildValue("i",_result);
634 {
635 if (_obj1)
636 delete _arg1;
637 }
638 return _resultobj;
639 }
640
641 #define wxDiagram_ReadContainerGeometry(_swigobj,_swigarg0) (_swigobj->ReadContainerGeometry(_swigarg0))
642 static PyObject *_wrap_wxDiagram_ReadContainerGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
643 PyObject * _resultobj;
644 wxDiagram * _arg0;
645 wxExprDatabase * _arg1;
646 PyObject * _argo0 = 0;
647 PyObject * _argo1 = 0;
648 char *_kwnames[] = { "self","database", NULL };
649
650 self = self;
651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadContainerGeometry",_kwnames,&_argo0,&_argo1))
652 return NULL;
653 if (_argo0) {
654 if (_argo0 == Py_None) { _arg0 = NULL; }
655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ReadContainerGeometry. Expected _wxDiagram_p.");
657 return NULL;
658 }
659 }
660 if (_argo1) {
661 if (_argo1 == Py_None) { _arg1 = NULL; }
662 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExprDatabase_p")) {
663 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_ReadContainerGeometry. Expected _wxExprDatabase_p.");
664 return NULL;
665 }
666 }
667 {
668 wxPy_BEGIN_ALLOW_THREADS;
669 wxDiagram_ReadContainerGeometry(_arg0,*_arg1);
670
671 wxPy_END_ALLOW_THREADS;
672 } Py_INCREF(Py_None);
673 _resultobj = Py_None;
674 return _resultobj;
675 }
676
677 #define wxDiagram_ReadLines(_swigobj,_swigarg0) (_swigobj->ReadLines(_swigarg0))
678 static PyObject *_wrap_wxDiagram_ReadLines(PyObject *self, PyObject *args, PyObject *kwargs) {
679 PyObject * _resultobj;
680 wxDiagram * _arg0;
681 wxExprDatabase * _arg1;
682 PyObject * _argo0 = 0;
683 PyObject * _argo1 = 0;
684 char *_kwnames[] = { "self","database", NULL };
685
686 self = self;
687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadLines",_kwnames,&_argo0,&_argo1))
688 return NULL;
689 if (_argo0) {
690 if (_argo0 == Py_None) { _arg0 = NULL; }
691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ReadLines. Expected _wxDiagram_p.");
693 return NULL;
694 }
695 }
696 if (_argo1) {
697 if (_argo1 == Py_None) { _arg1 = NULL; }
698 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExprDatabase_p")) {
699 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_ReadLines. Expected _wxExprDatabase_p.");
700 return NULL;
701 }
702 }
703 {
704 wxPy_BEGIN_ALLOW_THREADS;
705 wxDiagram_ReadLines(_arg0,*_arg1);
706
707 wxPy_END_ALLOW_THREADS;
708 } Py_INCREF(Py_None);
709 _resultobj = Py_None;
710 return _resultobj;
711 }
712
713 #define wxDiagram_ReadNodes(_swigobj,_swigarg0) (_swigobj->ReadNodes(_swigarg0))
714 static PyObject *_wrap_wxDiagram_ReadNodes(PyObject *self, PyObject *args, PyObject *kwargs) {
715 PyObject * _resultobj;
716 wxDiagram * _arg0;
717 wxExprDatabase * _arg1;
718 PyObject * _argo0 = 0;
719 PyObject * _argo1 = 0;
720 char *_kwnames[] = { "self","database", NULL };
721
722 self = self;
723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadNodes",_kwnames,&_argo0,&_argo1))
724 return NULL;
725 if (_argo0) {
726 if (_argo0 == Py_None) { _arg0 = NULL; }
727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ReadNodes. Expected _wxDiagram_p.");
729 return NULL;
730 }
731 }
732 if (_argo1) {
733 if (_argo1 == Py_None) { _arg1 = NULL; }
734 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExprDatabase_p")) {
735 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_ReadNodes. Expected _wxExprDatabase_p.");
736 return NULL;
737 }
738 }
739 {
740 wxPy_BEGIN_ALLOW_THREADS;
741 wxDiagram_ReadNodes(_arg0,*_arg1);
742
743 wxPy_END_ALLOW_THREADS;
744 } Py_INCREF(Py_None);
745 _resultobj = Py_None;
746 return _resultobj;
747 }
748
749 #define wxDiagram_RecentreAll(_swigobj,_swigarg0) (_swigobj->RecentreAll(_swigarg0))
750 static PyObject *_wrap_wxDiagram_RecentreAll(PyObject *self, PyObject *args, PyObject *kwargs) {
751 PyObject * _resultobj;
752 wxDiagram * _arg0;
753 wxDC * _arg1;
754 PyObject * _argo0 = 0;
755 PyObject * _argo1 = 0;
756 char *_kwnames[] = { "self","dc", NULL };
757
758 self = self;
759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_RecentreAll",_kwnames,&_argo0,&_argo1))
760 return NULL;
761 if (_argo0) {
762 if (_argo0 == Py_None) { _arg0 = NULL; }
763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_RecentreAll. Expected _wxDiagram_p.");
765 return NULL;
766 }
767 }
768 if (_argo1) {
769 if (_argo1 == Py_None) { _arg1 = NULL; }
770 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
771 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_RecentreAll. Expected _wxDC_p.");
772 return NULL;
773 }
774 }
775 {
776 wxPy_BEGIN_ALLOW_THREADS;
777 wxDiagram_RecentreAll(_arg0,*_arg1);
778
779 wxPy_END_ALLOW_THREADS;
780 } Py_INCREF(Py_None);
781 _resultobj = Py_None;
782 return _resultobj;
783 }
784
785 #define wxDiagram_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
786 static PyObject *_wrap_wxDiagram_Redraw(PyObject *self, PyObject *args, PyObject *kwargs) {
787 PyObject * _resultobj;
788 wxDiagram * _arg0;
789 wxDC * _arg1;
790 PyObject * _argo0 = 0;
791 PyObject * _argo1 = 0;
792 char *_kwnames[] = { "self","dc", NULL };
793
794 self = self;
795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_Redraw",_kwnames,&_argo0,&_argo1))
796 return NULL;
797 if (_argo0) {
798 if (_argo0 == Py_None) { _arg0 = NULL; }
799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_Redraw. Expected _wxDiagram_p.");
801 return NULL;
802 }
803 }
804 if (_argo1) {
805 if (_argo1 == Py_None) { _arg1 = NULL; }
806 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
807 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_Redraw. Expected _wxDC_p.");
808 return NULL;
809 }
810 }
811 {
812 wxPy_BEGIN_ALLOW_THREADS;
813 wxDiagram_Redraw(_arg0,*_arg1);
814
815 wxPy_END_ALLOW_THREADS;
816 } Py_INCREF(Py_None);
817 _resultobj = Py_None;
818 return _resultobj;
819 }
820
821 #define wxDiagram_RemoveAllShapes(_swigobj) (_swigobj->RemoveAllShapes())
822 static PyObject *_wrap_wxDiagram_RemoveAllShapes(PyObject *self, PyObject *args, PyObject *kwargs) {
823 PyObject * _resultobj;
824 wxDiagram * _arg0;
825 PyObject * _argo0 = 0;
826 char *_kwnames[] = { "self", NULL };
827
828 self = self;
829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_RemoveAllShapes",_kwnames,&_argo0))
830 return NULL;
831 if (_argo0) {
832 if (_argo0 == Py_None) { _arg0 = NULL; }
833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_RemoveAllShapes. Expected _wxDiagram_p.");
835 return NULL;
836 }
837 }
838 {
839 wxPy_BEGIN_ALLOW_THREADS;
840 wxDiagram_RemoveAllShapes(_arg0);
841
842 wxPy_END_ALLOW_THREADS;
843 } Py_INCREF(Py_None);
844 _resultobj = Py_None;
845 return _resultobj;
846 }
847
848 #define wxDiagram_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
849 static PyObject *_wrap_wxDiagram_RemoveShape(PyObject *self, PyObject *args, PyObject *kwargs) {
850 PyObject * _resultobj;
851 wxDiagram * _arg0;
852 wxPyShape * _arg1;
853 PyObject * _argo0 = 0;
854 PyObject * _argo1 = 0;
855 char *_kwnames[] = { "self","shape", NULL };
856
857 self = self;
858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_RemoveShape",_kwnames,&_argo0,&_argo1))
859 return NULL;
860 if (_argo0) {
861 if (_argo0 == Py_None) { _arg0 = NULL; }
862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_RemoveShape. Expected _wxDiagram_p.");
864 return NULL;
865 }
866 }
867 if (_argo1) {
868 if (_argo1 == Py_None) { _arg1 = NULL; }
869 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
870 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_RemoveShape. Expected _wxPyShape_p.");
871 return NULL;
872 }
873 }
874 {
875 wxPy_BEGIN_ALLOW_THREADS;
876 wxDiagram_RemoveShape(_arg0,_arg1);
877
878 wxPy_END_ALLOW_THREADS;
879 } Py_INCREF(Py_None);
880 _resultobj = Py_None;
881 return _resultobj;
882 }
883
884 #define wxDiagram_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
885 static PyObject *_wrap_wxDiagram_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
886 PyObject * _resultobj;
887 bool _result;
888 wxDiagram * _arg0;
889 wxString * _arg1;
890 PyObject * _argo0 = 0;
891 PyObject * _obj1 = 0;
892 char *_kwnames[] = { "self","filename", NULL };
893
894 self = self;
895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_SaveFile",_kwnames,&_argo0,&_obj1))
896 return NULL;
897 if (_argo0) {
898 if (_argo0 == Py_None) { _arg0 = NULL; }
899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SaveFile. Expected _wxDiagram_p.");
901 return NULL;
902 }
903 }
904 {
905 #if PYTHON_API_VERSION >= 1009
906 char* tmpPtr; int tmpSize;
907 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
908 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
909 return NULL;
910 }
911 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
912 return NULL;
913 _arg1 = new wxString(tmpPtr, tmpSize);
914 #else
915 if (!PyString_Check(_obj1)) {
916 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
917 return NULL;
918 }
919 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
920 #endif
921 }
922 {
923 wxPy_BEGIN_ALLOW_THREADS;
924 _result = (bool )wxDiagram_SaveFile(_arg0,*_arg1);
925
926 wxPy_END_ALLOW_THREADS;
927 } _resultobj = Py_BuildValue("i",_result);
928 {
929 if (_obj1)
930 delete _arg1;
931 }
932 return _resultobj;
933 }
934
935 #define wxDiagram_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
936 static PyObject *_wrap_wxDiagram_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
937 PyObject * _resultobj;
938 wxDiagram * _arg0;
939 wxPyShapeCanvas * _arg1;
940 PyObject * _argo0 = 0;
941 PyObject * _argo1 = 0;
942 char *_kwnames[] = { "self","canvas", NULL };
943
944 self = self;
945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_SetCanvas",_kwnames,&_argo0,&_argo1))
946 return NULL;
947 if (_argo0) {
948 if (_argo0 == Py_None) { _arg0 = NULL; }
949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetCanvas. Expected _wxDiagram_p.");
951 return NULL;
952 }
953 }
954 if (_argo1) {
955 if (_argo1 == Py_None) { _arg1 = NULL; }
956 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShapeCanvas_p")) {
957 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_SetCanvas. Expected _wxPyShapeCanvas_p.");
958 return NULL;
959 }
960 }
961 {
962 wxPy_BEGIN_ALLOW_THREADS;
963 wxDiagram_SetCanvas(_arg0,_arg1);
964
965 wxPy_END_ALLOW_THREADS;
966 } Py_INCREF(Py_None);
967 _resultobj = Py_None;
968 return _resultobj;
969 }
970
971 #define wxDiagram_SetGridSpacing(_swigobj,_swigarg0) (_swigobj->SetGridSpacing(_swigarg0))
972 static PyObject *_wrap_wxDiagram_SetGridSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
973 PyObject * _resultobj;
974 wxDiagram * _arg0;
975 double _arg1;
976 PyObject * _argo0 = 0;
977 char *_kwnames[] = { "self","spacing", NULL };
978
979 self = self;
980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxDiagram_SetGridSpacing",_kwnames,&_argo0,&_arg1))
981 return NULL;
982 if (_argo0) {
983 if (_argo0 == Py_None) { _arg0 = NULL; }
984 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetGridSpacing. Expected _wxDiagram_p.");
986 return NULL;
987 }
988 }
989 {
990 wxPy_BEGIN_ALLOW_THREADS;
991 wxDiagram_SetGridSpacing(_arg0,_arg1);
992
993 wxPy_END_ALLOW_THREADS;
994 } Py_INCREF(Py_None);
995 _resultobj = Py_None;
996 return _resultobj;
997 }
998
999 #define wxDiagram_SetMouseTolerance(_swigobj,_swigarg0) (_swigobj->SetMouseTolerance(_swigarg0))
1000 static PyObject *_wrap_wxDiagram_SetMouseTolerance(PyObject *self, PyObject *args, PyObject *kwargs) {
1001 PyObject * _resultobj;
1002 wxDiagram * _arg0;
1003 int _arg1;
1004 PyObject * _argo0 = 0;
1005 char *_kwnames[] = { "self","tolerance", NULL };
1006
1007 self = self;
1008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_SetMouseTolerance",_kwnames,&_argo0,&_arg1))
1009 return NULL;
1010 if (_argo0) {
1011 if (_argo0 == Py_None) { _arg0 = NULL; }
1012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
1013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetMouseTolerance. Expected _wxDiagram_p.");
1014 return NULL;
1015 }
1016 }
1017 {
1018 wxPy_BEGIN_ALLOW_THREADS;
1019 wxDiagram_SetMouseTolerance(_arg0,_arg1);
1020
1021 wxPy_END_ALLOW_THREADS;
1022 } Py_INCREF(Py_None);
1023 _resultobj = Py_None;
1024 return _resultobj;
1025 }
1026
1027 #define wxDiagram_SetQuickEditMode(_swigobj,_swigarg0) (_swigobj->SetQuickEditMode(_swigarg0))
1028 static PyObject *_wrap_wxDiagram_SetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1029 PyObject * _resultobj;
1030 wxDiagram * _arg0;
1031 bool _arg1;
1032 PyObject * _argo0 = 0;
1033 int tempbool1;
1034 char *_kwnames[] = { "self","mode", NULL };
1035
1036 self = self;
1037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_SetQuickEditMode",_kwnames,&_argo0,&tempbool1))
1038 return NULL;
1039 if (_argo0) {
1040 if (_argo0 == Py_None) { _arg0 = NULL; }
1041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
1042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetQuickEditMode. Expected _wxDiagram_p.");
1043 return NULL;
1044 }
1045 }
1046 _arg1 = (bool ) tempbool1;
1047 {
1048 wxPy_BEGIN_ALLOW_THREADS;
1049 wxDiagram_SetQuickEditMode(_arg0,_arg1);
1050
1051 wxPy_END_ALLOW_THREADS;
1052 } Py_INCREF(Py_None);
1053 _resultobj = Py_None;
1054 return _resultobj;
1055 }
1056
1057 #define wxDiagram_SetSnapToGrid(_swigobj,_swigarg0) (_swigobj->SetSnapToGrid(_swigarg0))
1058 static PyObject *_wrap_wxDiagram_SetSnapToGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
1059 PyObject * _resultobj;
1060 wxDiagram * _arg0;
1061 bool _arg1;
1062 PyObject * _argo0 = 0;
1063 int tempbool1;
1064 char *_kwnames[] = { "self","snap", NULL };
1065
1066 self = self;
1067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_SetSnapToGrid",_kwnames,&_argo0,&tempbool1))
1068 return NULL;
1069 if (_argo0) {
1070 if (_argo0 == Py_None) { _arg0 = NULL; }
1071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
1072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SetSnapToGrid. Expected _wxDiagram_p.");
1073 return NULL;
1074 }
1075 }
1076 _arg1 = (bool ) tempbool1;
1077 {
1078 wxPy_BEGIN_ALLOW_THREADS;
1079 wxDiagram_SetSnapToGrid(_arg0,_arg1);
1080
1081 wxPy_END_ALLOW_THREADS;
1082 } Py_INCREF(Py_None);
1083 _resultobj = Py_None;
1084 return _resultobj;
1085 }
1086
1087 #define wxDiagram_ShowAll(_swigobj,_swigarg0) (_swigobj->ShowAll(_swigarg0))
1088 static PyObject *_wrap_wxDiagram_ShowAll(PyObject *self, PyObject *args, PyObject *kwargs) {
1089 PyObject * _resultobj;
1090 wxDiagram * _arg0;
1091 bool _arg1;
1092 PyObject * _argo0 = 0;
1093 int tempbool1;
1094 char *_kwnames[] = { "self","show", NULL };
1095
1096 self = self;
1097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDiagram_ShowAll",_kwnames,&_argo0,&tempbool1))
1098 return NULL;
1099 if (_argo0) {
1100 if (_argo0 == Py_None) { _arg0 = NULL; }
1101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
1102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ShowAll. Expected _wxDiagram_p.");
1103 return NULL;
1104 }
1105 }
1106 _arg1 = (bool ) tempbool1;
1107 {
1108 wxPy_BEGIN_ALLOW_THREADS;
1109 wxDiagram_ShowAll(_arg0,_arg1);
1110
1111 wxPy_END_ALLOW_THREADS;
1112 } Py_INCREF(Py_None);
1113 _resultobj = Py_None;
1114 return _resultobj;
1115 }
1116
1117 #define wxDiagram_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
1118 static PyObject *_wrap_wxDiagram_Snap(PyObject *self, PyObject *args, PyObject *kwargs) {
1119 PyObject * _resultobj;
1120 wxDiagram * _arg0;
1121 double * _arg1;
1122 double temp;
1123 double * _arg2;
1124 double temp0;
1125 PyObject * _argo0 = 0;
1126 char *_kwnames[] = { "self", NULL };
1127
1128 self = self;
1129 {
1130 _arg1 = &temp;
1131 }
1132 {
1133 _arg2 = &temp0;
1134 }
1135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDiagram_Snap",_kwnames,&_argo0))
1136 return NULL;
1137 if (_argo0) {
1138 if (_argo0 == Py_None) { _arg0 = NULL; }
1139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
1140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_Snap. Expected _wxDiagram_p.");
1141 return NULL;
1142 }
1143 }
1144 {
1145 wxPy_BEGIN_ALLOW_THREADS;
1146 wxDiagram_Snap(_arg0,_arg1,_arg2);
1147
1148 wxPy_END_ALLOW_THREADS;
1149 } Py_INCREF(Py_None);
1150 _resultobj = Py_None;
1151 {
1152 PyObject *o;
1153 o = PyFloat_FromDouble((double) (*_arg1));
1154 _resultobj = t_output_helper(_resultobj, o);
1155 }
1156 {
1157 PyObject *o;
1158 o = PyFloat_FromDouble((double) (*_arg2));
1159 _resultobj = t_output_helper(_resultobj, o);
1160 }
1161 return _resultobj;
1162 }
1163
1164 static void *SwigwxPyShapeCanvasTowxScrolledWindow(void *ptr) {
1165 wxPyShapeCanvas *src;
1166 wxScrolledWindow *dest;
1167 src = (wxPyShapeCanvas *) ptr;
1168 dest = (wxScrolledWindow *) src;
1169 return (void *) dest;
1170 }
1171
1172 static void *SwigwxPyShapeCanvasTowxPanel(void *ptr) {
1173 wxPyShapeCanvas *src;
1174 wxPanel *dest;
1175 src = (wxPyShapeCanvas *) ptr;
1176 dest = (wxPanel *) src;
1177 return (void *) dest;
1178 }
1179
1180 static void *SwigwxPyShapeCanvasTowxWindow(void *ptr) {
1181 wxPyShapeCanvas *src;
1182 wxWindow *dest;
1183 src = (wxPyShapeCanvas *) ptr;
1184 dest = (wxWindow *) src;
1185 return (void *) dest;
1186 }
1187
1188 static void *SwigwxPyShapeCanvasTowxEvtHandler(void *ptr) {
1189 wxPyShapeCanvas *src;
1190 wxEvtHandler *dest;
1191 src = (wxPyShapeCanvas *) ptr;
1192 dest = (wxEvtHandler *) src;
1193 return (void *) dest;
1194 }
1195
1196 #define new_wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1197 static PyObject *_wrap_new_wxPyShapeCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
1198 PyObject * _resultobj;
1199 wxPyShapeCanvas * _result;
1200 wxWindow * _arg0 = (wxWindow *) NULL;
1201 wxWindowID _arg1 = (wxWindowID ) -1;
1202 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1203 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1204 long _arg4 = (long ) wxBORDER;
1205 PyObject * _argo0 = 0;
1206 wxPoint temp;
1207 PyObject * _obj2 = 0;
1208 wxSize temp0;
1209 PyObject * _obj3 = 0;
1210 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
1211 char _ptemp[128];
1212
1213 self = self;
1214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOl:new_wxPyShapeCanvas",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
1215 return NULL;
1216 if (_argo0) {
1217 if (_argo0 == Py_None) { _arg0 = NULL; }
1218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyShapeCanvas. Expected _wxWindow_p.");
1220 return NULL;
1221 }
1222 }
1223 if (_obj2)
1224 {
1225 _arg2 = &temp;
1226 if (! wxPoint_helper(_obj2, &_arg2))
1227 return NULL;
1228 }
1229 if (_obj3)
1230 {
1231 _arg3 = &temp0;
1232 if (! wxSize_helper(_obj3, &_arg3))
1233 return NULL;
1234 }
1235 {
1236 wxPy_BEGIN_ALLOW_THREADS;
1237 _result = (wxPyShapeCanvas *)new_wxPyShapeCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4);
1238
1239 wxPy_END_ALLOW_THREADS;
1240 } if (_result) {
1241 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShapeCanvas_p");
1242 _resultobj = Py_BuildValue("s",_ptemp);
1243 } else {
1244 Py_INCREF(Py_None);
1245 _resultobj = Py_None;
1246 }
1247 return _resultobj;
1248 }
1249
1250 #define wxPyShapeCanvas__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1))
1251 static PyObject *_wrap_wxPyShapeCanvas__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
1252 PyObject * _resultobj;
1253 wxPyShapeCanvas * _arg0;
1254 PyObject * _arg1;
1255 PyObject * _arg2;
1256 PyObject * _argo0 = 0;
1257 PyObject * _obj1 = 0;
1258 PyObject * _obj2 = 0;
1259 char *_kwnames[] = { "self","self","_class", NULL };
1260
1261 self = self;
1262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyShapeCanvas__setSelf",_kwnames,&_argo0,&_obj1,&_obj2))
1263 return NULL;
1264 if (_argo0) {
1265 if (_argo0 == Py_None) { _arg0 = NULL; }
1266 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1267 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas__setSelf. Expected _wxPyShapeCanvas_p.");
1268 return NULL;
1269 }
1270 }
1271 {
1272 _arg1 = _obj1;
1273 }
1274 {
1275 _arg2 = _obj2;
1276 }
1277 {
1278 wxPy_BEGIN_ALLOW_THREADS;
1279 wxPyShapeCanvas__setSelf(_arg0,_arg1,_arg2);
1280
1281 wxPy_END_ALLOW_THREADS;
1282 } Py_INCREF(Py_None);
1283 _resultobj = Py_None;
1284 return _resultobj;
1285 }
1286
1287 #define wxPyShapeCanvas_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
1288 static PyObject *_wrap_wxPyShapeCanvas_AddShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1289 PyObject * _resultobj;
1290 wxPyShapeCanvas * _arg0;
1291 wxPyShape * _arg1;
1292 wxPyShape * _arg2 = (wxPyShape *) NULL;
1293 PyObject * _argo0 = 0;
1294 PyObject * _argo1 = 0;
1295 PyObject * _argo2 = 0;
1296 char *_kwnames[] = { "self","shape","addAfter", NULL };
1297
1298 self = self;
1299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxPyShapeCanvas_AddShape",_kwnames,&_argo0,&_argo1,&_argo2))
1300 return NULL;
1301 if (_argo0) {
1302 if (_argo0 == Py_None) { _arg0 = NULL; }
1303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_AddShape. Expected _wxPyShapeCanvas_p.");
1305 return NULL;
1306 }
1307 }
1308 if (_argo1) {
1309 if (_argo1 == Py_None) { _arg1 = NULL; }
1310 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
1311 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1312 return NULL;
1313 }
1314 }
1315 if (_argo2) {
1316 if (_argo2 == Py_None) { _arg2 = NULL; }
1317 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyShape_p")) {
1318 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1319 return NULL;
1320 }
1321 }
1322 {
1323 wxPy_BEGIN_ALLOW_THREADS;
1324 wxPyShapeCanvas_AddShape(_arg0,_arg1,_arg2);
1325
1326 wxPy_END_ALLOW_THREADS;
1327 } Py_INCREF(Py_None);
1328 _resultobj = Py_None;
1329 return _resultobj;
1330 }
1331
1332 #define wxPyShapeCanvas_FindShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->FindShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1333 static PyObject *_wrap_wxPyShapeCanvas_FindShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1334 PyObject * _resultobj;
1335 wxPyShape * _result;
1336 wxPyShapeCanvas * _arg0;
1337 double _arg1;
1338 double _arg2;
1339 int * _arg3;
1340 int temp;
1341 wxClassInfo * _arg4 = (wxClassInfo *) NULL;
1342 wxPyShape * _arg5 = (wxPyShape *) NULL;
1343 PyObject * _argo0 = 0;
1344 PyObject * _argo4 = 0;
1345 PyObject * _argo5 = 0;
1346 char *_kwnames[] = { "self","x1","y","info","notImage", NULL };
1347 char _ptemp[128];
1348
1349 self = self;
1350 {
1351 _arg3 = &temp;
1352 }
1353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|OO:wxPyShapeCanvas_FindShape",_kwnames,&_argo0,&_arg1,&_arg2,&_argo4,&_argo5))
1354 return NULL;
1355 if (_argo0) {
1356 if (_argo0 == Py_None) { _arg0 = NULL; }
1357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_FindShape. Expected _wxPyShapeCanvas_p.");
1359 return NULL;
1360 }
1361 }
1362 if (_argo4) {
1363 if (_argo4 == Py_None) { _arg4 = NULL; }
1364 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxClassInfo_p")) {
1365 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPyShapeCanvas_FindShape. Expected _wxClassInfo_p.");
1366 return NULL;
1367 }
1368 }
1369 if (_argo5) {
1370 if (_argo5 == Py_None) { _arg5 = NULL; }
1371 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyShape_p")) {
1372 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxPyShapeCanvas_FindShape. Expected _wxPyShape_p.");
1373 return NULL;
1374 }
1375 }
1376 {
1377 wxPy_BEGIN_ALLOW_THREADS;
1378 _result = (wxPyShape *)wxPyShapeCanvas_FindShape(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
1379
1380 wxPy_END_ALLOW_THREADS;
1381 } if (_result) {
1382 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShape_p");
1383 _resultobj = Py_BuildValue("s",_ptemp);
1384 } else {
1385 Py_INCREF(Py_None);
1386 _resultobj = Py_None;
1387 }
1388 {
1389 PyObject *o;
1390 o = PyInt_FromLong((long) (*_arg3));
1391 _resultobj = t_output_helper(_resultobj, o);
1392 }
1393 return _resultobj;
1394 }
1395
1396 #define wxPyShapeCanvas_FindFirstSensitiveShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FindFirstSensitiveShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1397 static PyObject *_wrap_wxPyShapeCanvas_FindFirstSensitiveShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1398 PyObject * _resultobj;
1399 wxPyShape * _result;
1400 wxPyShapeCanvas * _arg0;
1401 double _arg1;
1402 double _arg2;
1403 int * _arg3;
1404 int temp;
1405 int _arg4;
1406 PyObject * _argo0 = 0;
1407 char *_kwnames[] = { "self","x1","y","op", NULL };
1408 char _ptemp[128];
1409
1410 self = self;
1411 {
1412 _arg3 = &temp;
1413 }
1414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oddi:wxPyShapeCanvas_FindFirstSensitiveShape",_kwnames,&_argo0,&_arg1,&_arg2,&_arg4))
1415 return NULL;
1416 if (_argo0) {
1417 if (_argo0 == Py_None) { _arg0 = NULL; }
1418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_FindFirstSensitiveShape. Expected _wxPyShapeCanvas_p.");
1420 return NULL;
1421 }
1422 }
1423 {
1424 wxPy_BEGIN_ALLOW_THREADS;
1425 _result = (wxPyShape *)wxPyShapeCanvas_FindFirstSensitiveShape(_arg0,_arg1,_arg2,_arg3,_arg4);
1426
1427 wxPy_END_ALLOW_THREADS;
1428 } if (_result) {
1429 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShape_p");
1430 _resultobj = Py_BuildValue("s",_ptemp);
1431 } else {
1432 Py_INCREF(Py_None);
1433 _resultobj = Py_None;
1434 }
1435 {
1436 PyObject *o;
1437 o = PyInt_FromLong((long) (*_arg3));
1438 _resultobj = t_output_helper(_resultobj, o);
1439 }
1440 return _resultobj;
1441 }
1442
1443 #define wxPyShapeCanvas_GetDiagram(_swigobj) (_swigobj->GetDiagram())
1444 static PyObject *_wrap_wxPyShapeCanvas_GetDiagram(PyObject *self, PyObject *args, PyObject *kwargs) {
1445 PyObject * _resultobj;
1446 wxDiagram * _result;
1447 wxPyShapeCanvas * _arg0;
1448 PyObject * _argo0 = 0;
1449 char *_kwnames[] = { "self", NULL };
1450 char _ptemp[128];
1451
1452 self = self;
1453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeCanvas_GetDiagram",_kwnames,&_argo0))
1454 return NULL;
1455 if (_argo0) {
1456 if (_argo0 == Py_None) { _arg0 = NULL; }
1457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_GetDiagram. Expected _wxPyShapeCanvas_p.");
1459 return NULL;
1460 }
1461 }
1462 {
1463 wxPy_BEGIN_ALLOW_THREADS;
1464 _result = (wxDiagram *)wxPyShapeCanvas_GetDiagram(_arg0);
1465
1466 wxPy_END_ALLOW_THREADS;
1467 } if (_result) {
1468 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDiagram_p");
1469 _resultobj = Py_BuildValue("s",_ptemp);
1470 } else {
1471 Py_INCREF(Py_None);
1472 _resultobj = Py_None;
1473 }
1474 return _resultobj;
1475 }
1476
1477 #define wxPyShapeCanvas_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
1478 static PyObject *_wrap_wxPyShapeCanvas_GetQuickEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1479 PyObject * _resultobj;
1480 bool _result;
1481 wxPyShapeCanvas * _arg0;
1482 PyObject * _argo0 = 0;
1483 char *_kwnames[] = { "self", NULL };
1484
1485 self = self;
1486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeCanvas_GetQuickEditMode",_kwnames,&_argo0))
1487 return NULL;
1488 if (_argo0) {
1489 if (_argo0 == Py_None) { _arg0 = NULL; }
1490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_GetQuickEditMode. Expected _wxPyShapeCanvas_p.");
1492 return NULL;
1493 }
1494 }
1495 {
1496 wxPy_BEGIN_ALLOW_THREADS;
1497 _result = (bool )wxPyShapeCanvas_GetQuickEditMode(_arg0);
1498
1499 wxPy_END_ALLOW_THREADS;
1500 } _resultobj = Py_BuildValue("i",_result);
1501 return _resultobj;
1502 }
1503
1504 #define wxPyShapeCanvas_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
1505 static PyObject *_wrap_wxPyShapeCanvas_InsertShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1506 PyObject * _resultobj;
1507 wxPyShapeCanvas * _arg0;
1508 wxPyShape * _arg1;
1509 PyObject * _argo0 = 0;
1510 PyObject * _argo1 = 0;
1511 char *_kwnames[] = { "self","shape", NULL };
1512
1513 self = self;
1514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_InsertShape",_kwnames,&_argo0,&_argo1))
1515 return NULL;
1516 if (_argo0) {
1517 if (_argo0 == Py_None) { _arg0 = NULL; }
1518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_InsertShape. Expected _wxPyShapeCanvas_p.");
1520 return NULL;
1521 }
1522 }
1523 if (_argo1) {
1524 if (_argo1 == Py_None) { _arg1 = NULL; }
1525 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
1526 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_InsertShape. Expected _wxPyShape_p.");
1527 return NULL;
1528 }
1529 }
1530 {
1531 wxPy_BEGIN_ALLOW_THREADS;
1532 wxPyShapeCanvas_InsertShape(_arg0,_arg1);
1533
1534 wxPy_END_ALLOW_THREADS;
1535 } Py_INCREF(Py_None);
1536 _resultobj = Py_None;
1537 return _resultobj;
1538 }
1539
1540 #define wxPyShapeCanvas_base_OnBeginDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragLeft(_swigarg0,_swigarg1,_swigarg2))
1541 static PyObject *_wrap_wxPyShapeCanvas_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
1542 PyObject * _resultobj;
1543 wxPyShapeCanvas * _arg0;
1544 double _arg1;
1545 double _arg2;
1546 int _arg3 = (int ) 0;
1547 PyObject * _argo0 = 0;
1548 char *_kwnames[] = { "self","x","y","keys", NULL };
1549
1550 self = self;
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnBeginDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1552 return NULL;
1553 if (_argo0) {
1554 if (_argo0 == Py_None) { _arg0 = NULL; }
1555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragLeft. Expected _wxPyShapeCanvas_p.");
1557 return NULL;
1558 }
1559 }
1560 {
1561 wxPy_BEGIN_ALLOW_THREADS;
1562 wxPyShapeCanvas_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3);
1563
1564 wxPy_END_ALLOW_THREADS;
1565 } Py_INCREF(Py_None);
1566 _resultobj = Py_None;
1567 return _resultobj;
1568 }
1569
1570 #define wxPyShapeCanvas_base_OnBeginDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragRight(_swigarg0,_swigarg1,_swigarg2))
1571 static PyObject *_wrap_wxPyShapeCanvas_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) {
1572 PyObject * _resultobj;
1573 wxPyShapeCanvas * _arg0;
1574 double _arg1;
1575 double _arg2;
1576 int _arg3 = (int ) 0;
1577 PyObject * _argo0 = 0;
1578 char *_kwnames[] = { "self","x","y","keys", NULL };
1579
1580 self = self;
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnBeginDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1582 return NULL;
1583 if (_argo0) {
1584 if (_argo0 == Py_None) { _arg0 = NULL; }
1585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragRight. Expected _wxPyShapeCanvas_p.");
1587 return NULL;
1588 }
1589 }
1590 {
1591 wxPy_BEGIN_ALLOW_THREADS;
1592 wxPyShapeCanvas_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3);
1593
1594 wxPy_END_ALLOW_THREADS;
1595 } Py_INCREF(Py_None);
1596 _resultobj = Py_None;
1597 return _resultobj;
1598 }
1599
1600 #define wxPyShapeCanvas_base_OnEndDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragLeft(_swigarg0,_swigarg1,_swigarg2))
1601 static PyObject *_wrap_wxPyShapeCanvas_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
1602 PyObject * _resultobj;
1603 wxPyShapeCanvas * _arg0;
1604 double _arg1;
1605 double _arg2;
1606 int _arg3 = (int ) 0;
1607 PyObject * _argo0 = 0;
1608 char *_kwnames[] = { "self","x","y","keys", NULL };
1609
1610 self = self;
1611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnEndDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1612 return NULL;
1613 if (_argo0) {
1614 if (_argo0 == Py_None) { _arg0 = NULL; }
1615 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1616 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragLeft. Expected _wxPyShapeCanvas_p.");
1617 return NULL;
1618 }
1619 }
1620 {
1621 wxPy_BEGIN_ALLOW_THREADS;
1622 wxPyShapeCanvas_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3);
1623
1624 wxPy_END_ALLOW_THREADS;
1625 } Py_INCREF(Py_None);
1626 _resultobj = Py_None;
1627 return _resultobj;
1628 }
1629
1630 #define wxPyShapeCanvas_base_OnEndDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragRight(_swigarg0,_swigarg1,_swigarg2))
1631 static PyObject *_wrap_wxPyShapeCanvas_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) {
1632 PyObject * _resultobj;
1633 wxPyShapeCanvas * _arg0;
1634 double _arg1;
1635 double _arg2;
1636 int _arg3 = (int ) 0;
1637 PyObject * _argo0 = 0;
1638 char *_kwnames[] = { "self","x","y","keys", NULL };
1639
1640 self = self;
1641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnEndDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1642 return NULL;
1643 if (_argo0) {
1644 if (_argo0 == Py_None) { _arg0 = NULL; }
1645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragRight. Expected _wxPyShapeCanvas_p.");
1647 return NULL;
1648 }
1649 }
1650 {
1651 wxPy_BEGIN_ALLOW_THREADS;
1652 wxPyShapeCanvas_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3);
1653
1654 wxPy_END_ALLOW_THREADS;
1655 } Py_INCREF(Py_None);
1656 _resultobj = Py_None;
1657 return _resultobj;
1658 }
1659
1660 #define wxPyShapeCanvas_base_OnDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1661 static PyObject *_wrap_wxPyShapeCanvas_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
1662 PyObject * _resultobj;
1663 wxPyShapeCanvas * _arg0;
1664 bool _arg1;
1665 double _arg2;
1666 double _arg3;
1667 int _arg4 = (int ) 0;
1668 PyObject * _argo0 = 0;
1669 int tempbool1;
1670 char *_kwnames[] = { "self","draw","x","y","keys", NULL };
1671
1672 self = self;
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|i:wxPyShapeCanvas_base_OnDragLeft",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4))
1674 return NULL;
1675 if (_argo0) {
1676 if (_argo0 == Py_None) { _arg0 = NULL; }
1677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragLeft. Expected _wxPyShapeCanvas_p.");
1679 return NULL;
1680 }
1681 }
1682 _arg1 = (bool ) tempbool1;
1683 {
1684 wxPy_BEGIN_ALLOW_THREADS;
1685 wxPyShapeCanvas_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4);
1686
1687 wxPy_END_ALLOW_THREADS;
1688 } Py_INCREF(Py_None);
1689 _resultobj = Py_None;
1690 return _resultobj;
1691 }
1692
1693 #define wxPyShapeCanvas_base_OnDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1694 static PyObject *_wrap_wxPyShapeCanvas_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) {
1695 PyObject * _resultobj;
1696 wxPyShapeCanvas * _arg0;
1697 bool _arg1;
1698 double _arg2;
1699 double _arg3;
1700 int _arg4 = (int ) 0;
1701 PyObject * _argo0 = 0;
1702 int tempbool1;
1703 char *_kwnames[] = { "self","draw","x","y","keys", NULL };
1704
1705 self = self;
1706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|i:wxPyShapeCanvas_base_OnDragRight",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4))
1707 return NULL;
1708 if (_argo0) {
1709 if (_argo0 == Py_None) { _arg0 = NULL; }
1710 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1711 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragRight. Expected _wxPyShapeCanvas_p.");
1712 return NULL;
1713 }
1714 }
1715 _arg1 = (bool ) tempbool1;
1716 {
1717 wxPy_BEGIN_ALLOW_THREADS;
1718 wxPyShapeCanvas_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4);
1719
1720 wxPy_END_ALLOW_THREADS;
1721 } Py_INCREF(Py_None);
1722 _resultobj = Py_None;
1723 return _resultobj;
1724 }
1725
1726 #define wxPyShapeCanvas_base_OnLeftClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnLeftClick(_swigarg0,_swigarg1,_swigarg2))
1727 static PyObject *_wrap_wxPyShapeCanvas_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) {
1728 PyObject * _resultobj;
1729 wxPyShapeCanvas * _arg0;
1730 double _arg1;
1731 double _arg2;
1732 int _arg3 = (int ) 0;
1733 PyObject * _argo0 = 0;
1734 char *_kwnames[] = { "self","x","y","keys", NULL };
1735
1736 self = self;
1737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnLeftClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1738 return NULL;
1739 if (_argo0) {
1740 if (_argo0 == Py_None) { _arg0 = NULL; }
1741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnLeftClick. Expected _wxPyShapeCanvas_p.");
1743 return NULL;
1744 }
1745 }
1746 {
1747 wxPy_BEGIN_ALLOW_THREADS;
1748 wxPyShapeCanvas_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3);
1749
1750 wxPy_END_ALLOW_THREADS;
1751 } Py_INCREF(Py_None);
1752 _resultobj = Py_None;
1753 return _resultobj;
1754 }
1755
1756 #define wxPyShapeCanvas_base_OnRightClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnRightClick(_swigarg0,_swigarg1,_swigarg2))
1757 static PyObject *_wrap_wxPyShapeCanvas_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) {
1758 PyObject * _resultobj;
1759 wxPyShapeCanvas * _arg0;
1760 double _arg1;
1761 double _arg2;
1762 int _arg3 = (int ) 0;
1763 PyObject * _argo0 = 0;
1764 char *_kwnames[] = { "self","x","y","keys", NULL };
1765
1766 self = self;
1767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShapeCanvas_base_OnRightClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1768 return NULL;
1769 if (_argo0) {
1770 if (_argo0 == Py_None) { _arg0 = NULL; }
1771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_base_OnRightClick. Expected _wxPyShapeCanvas_p.");
1773 return NULL;
1774 }
1775 }
1776 {
1777 wxPy_BEGIN_ALLOW_THREADS;
1778 wxPyShapeCanvas_base_OnRightClick(_arg0,_arg1,_arg2,_arg3);
1779
1780 wxPy_END_ALLOW_THREADS;
1781 } Py_INCREF(Py_None);
1782 _resultobj = Py_None;
1783 return _resultobj;
1784 }
1785
1786 #define wxPyShapeCanvas_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
1787 static PyObject *_wrap_wxPyShapeCanvas_Redraw(PyObject *self, PyObject *args, PyObject *kwargs) {
1788 PyObject * _resultobj;
1789 wxPyShapeCanvas * _arg0;
1790 wxDC * _arg1;
1791 PyObject * _argo0 = 0;
1792 PyObject * _argo1 = 0;
1793 char *_kwnames[] = { "self","dc", NULL };
1794
1795 self = self;
1796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_Redraw",_kwnames,&_argo0,&_argo1))
1797 return NULL;
1798 if (_argo0) {
1799 if (_argo0 == Py_None) { _arg0 = NULL; }
1800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_Redraw. Expected _wxPyShapeCanvas_p.");
1802 return NULL;
1803 }
1804 }
1805 if (_argo1) {
1806 if (_argo1 == Py_None) { _arg1 = NULL; }
1807 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
1808 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_Redraw. Expected _wxDC_p.");
1809 return NULL;
1810 }
1811 }
1812 {
1813 wxPy_BEGIN_ALLOW_THREADS;
1814 wxPyShapeCanvas_Redraw(_arg0,*_arg1);
1815
1816 wxPy_END_ALLOW_THREADS;
1817 } Py_INCREF(Py_None);
1818 _resultobj = Py_None;
1819 return _resultobj;
1820 }
1821
1822 #define wxPyShapeCanvas_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
1823 static PyObject *_wrap_wxPyShapeCanvas_RemoveShape(PyObject *self, PyObject *args, PyObject *kwargs) {
1824 PyObject * _resultobj;
1825 wxPyShapeCanvas * _arg0;
1826 wxPyShape * _arg1;
1827 PyObject * _argo0 = 0;
1828 PyObject * _argo1 = 0;
1829 char *_kwnames[] = { "self","shape", NULL };
1830
1831 self = self;
1832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_RemoveShape",_kwnames,&_argo0,&_argo1))
1833 return NULL;
1834 if (_argo0) {
1835 if (_argo0 == Py_None) { _arg0 = NULL; }
1836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShapeCanvas_p.");
1838 return NULL;
1839 }
1840 }
1841 if (_argo1) {
1842 if (_argo1 == Py_None) { _arg1 = NULL; }
1843 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) {
1844 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShape_p.");
1845 return NULL;
1846 }
1847 }
1848 {
1849 wxPy_BEGIN_ALLOW_THREADS;
1850 wxPyShapeCanvas_RemoveShape(_arg0,_arg1);
1851
1852 wxPy_END_ALLOW_THREADS;
1853 } Py_INCREF(Py_None);
1854 _resultobj = Py_None;
1855 return _resultobj;
1856 }
1857
1858 #define wxPyShapeCanvas_SetDiagram(_swigobj,_swigarg0) (_swigobj->SetDiagram(_swigarg0))
1859 static PyObject *_wrap_wxPyShapeCanvas_SetDiagram(PyObject *self, PyObject *args, PyObject *kwargs) {
1860 PyObject * _resultobj;
1861 wxPyShapeCanvas * _arg0;
1862 wxDiagram * _arg1;
1863 PyObject * _argo0 = 0;
1864 PyObject * _argo1 = 0;
1865 char *_kwnames[] = { "self","diagram", NULL };
1866
1867 self = self;
1868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeCanvas_SetDiagram",_kwnames,&_argo0,&_argo1))
1869 return NULL;
1870 if (_argo0) {
1871 if (_argo0 == Py_None) { _arg0 = NULL; }
1872 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1873 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_SetDiagram. Expected _wxPyShapeCanvas_p.");
1874 return NULL;
1875 }
1876 }
1877 if (_argo1) {
1878 if (_argo1 == Py_None) { _arg1 = NULL; }
1879 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDiagram_p")) {
1880 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeCanvas_SetDiagram. Expected _wxDiagram_p.");
1881 return NULL;
1882 }
1883 }
1884 {
1885 wxPy_BEGIN_ALLOW_THREADS;
1886 wxPyShapeCanvas_SetDiagram(_arg0,_arg1);
1887
1888 wxPy_END_ALLOW_THREADS;
1889 } Py_INCREF(Py_None);
1890 _resultobj = Py_None;
1891 return _resultobj;
1892 }
1893
1894 #define wxPyShapeCanvas_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
1895 static PyObject *_wrap_wxPyShapeCanvas_Snap(PyObject *self, PyObject *args, PyObject *kwargs) {
1896 PyObject * _resultobj;
1897 wxPyShapeCanvas * _arg0;
1898 double * _arg1;
1899 double temp;
1900 double * _arg2;
1901 double temp0;
1902 PyObject * _argo0 = 0;
1903 char *_kwnames[] = { "self", NULL };
1904
1905 self = self;
1906 {
1907 _arg1 = &temp;
1908 }
1909 {
1910 _arg2 = &temp0;
1911 }
1912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeCanvas_Snap",_kwnames,&_argo0))
1913 return NULL;
1914 if (_argo0) {
1915 if (_argo0 == Py_None) { _arg0 = NULL; }
1916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeCanvas_p")) {
1917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeCanvas_Snap. Expected _wxPyShapeCanvas_p.");
1918 return NULL;
1919 }
1920 }
1921 {
1922 wxPy_BEGIN_ALLOW_THREADS;
1923 wxPyShapeCanvas_Snap(_arg0,_arg1,_arg2);
1924
1925 wxPy_END_ALLOW_THREADS;
1926 } Py_INCREF(Py_None);
1927 _resultobj = Py_None;
1928 {
1929 PyObject *o;
1930 o = PyFloat_FromDouble((double) (*_arg1));
1931 _resultobj = t_output_helper(_resultobj, o);
1932 }
1933 {
1934 PyObject *o;
1935 o = PyFloat_FromDouble((double) (*_arg2));
1936 _resultobj = t_output_helper(_resultobj, o);
1937 }
1938 return _resultobj;
1939 }
1940
1941 static PyMethodDef oglcanvascMethods[] = {
1942 { "wxPyShapeCanvas_Snap", (PyCFunction) _wrap_wxPyShapeCanvas_Snap, METH_VARARGS | METH_KEYWORDS },
1943 { "wxPyShapeCanvas_SetDiagram", (PyCFunction) _wrap_wxPyShapeCanvas_SetDiagram, METH_VARARGS | METH_KEYWORDS },
1944 { "wxPyShapeCanvas_RemoveShape", (PyCFunction) _wrap_wxPyShapeCanvas_RemoveShape, METH_VARARGS | METH_KEYWORDS },
1945 { "wxPyShapeCanvas_Redraw", (PyCFunction) _wrap_wxPyShapeCanvas_Redraw, METH_VARARGS | METH_KEYWORDS },
1946 { "wxPyShapeCanvas_base_OnRightClick", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnRightClick, METH_VARARGS | METH_KEYWORDS },
1947 { "wxPyShapeCanvas_base_OnLeftClick", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS },
1948 { "wxPyShapeCanvas_base_OnDragRight", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnDragRight, METH_VARARGS | METH_KEYWORDS },
1949 { "wxPyShapeCanvas_base_OnDragLeft", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS },
1950 { "wxPyShapeCanvas_base_OnEndDragRight", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS },
1951 { "wxPyShapeCanvas_base_OnEndDragLeft", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS },
1952 { "wxPyShapeCanvas_base_OnBeginDragRight", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS },
1953 { "wxPyShapeCanvas_base_OnBeginDragLeft", (PyCFunction) _wrap_wxPyShapeCanvas_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS },
1954 { "wxPyShapeCanvas_InsertShape", (PyCFunction) _wrap_wxPyShapeCanvas_InsertShape, METH_VARARGS | METH_KEYWORDS },
1955 { "wxPyShapeCanvas_GetQuickEditMode", (PyCFunction) _wrap_wxPyShapeCanvas_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS },
1956 { "wxPyShapeCanvas_GetDiagram", (PyCFunction) _wrap_wxPyShapeCanvas_GetDiagram, METH_VARARGS | METH_KEYWORDS },
1957 { "wxPyShapeCanvas_FindFirstSensitiveShape", (PyCFunction) _wrap_wxPyShapeCanvas_FindFirstSensitiveShape, METH_VARARGS | METH_KEYWORDS },
1958 { "wxPyShapeCanvas_FindShape", (PyCFunction) _wrap_wxPyShapeCanvas_FindShape, METH_VARARGS | METH_KEYWORDS },
1959 { "wxPyShapeCanvas_AddShape", (PyCFunction) _wrap_wxPyShapeCanvas_AddShape, METH_VARARGS | METH_KEYWORDS },
1960 { "wxPyShapeCanvas__setSelf", (PyCFunction) _wrap_wxPyShapeCanvas__setSelf, METH_VARARGS | METH_KEYWORDS },
1961 { "new_wxPyShapeCanvas", (PyCFunction) _wrap_new_wxPyShapeCanvas, METH_VARARGS | METH_KEYWORDS },
1962 { "wxDiagram_Snap", (PyCFunction) _wrap_wxDiagram_Snap, METH_VARARGS | METH_KEYWORDS },
1963 { "wxDiagram_ShowAll", (PyCFunction) _wrap_wxDiagram_ShowAll, METH_VARARGS | METH_KEYWORDS },
1964 { "wxDiagram_SetSnapToGrid", (PyCFunction) _wrap_wxDiagram_SetSnapToGrid, METH_VARARGS | METH_KEYWORDS },
1965 { "wxDiagram_SetQuickEditMode", (PyCFunction) _wrap_wxDiagram_SetQuickEditMode, METH_VARARGS | METH_KEYWORDS },
1966 { "wxDiagram_SetMouseTolerance", (PyCFunction) _wrap_wxDiagram_SetMouseTolerance, METH_VARARGS | METH_KEYWORDS },
1967 { "wxDiagram_SetGridSpacing", (PyCFunction) _wrap_wxDiagram_SetGridSpacing, METH_VARARGS | METH_KEYWORDS },
1968 { "wxDiagram_SetCanvas", (PyCFunction) _wrap_wxDiagram_SetCanvas, METH_VARARGS | METH_KEYWORDS },
1969 { "wxDiagram_SaveFile", (PyCFunction) _wrap_wxDiagram_SaveFile, METH_VARARGS | METH_KEYWORDS },
1970 { "wxDiagram_RemoveShape", (PyCFunction) _wrap_wxDiagram_RemoveShape, METH_VARARGS | METH_KEYWORDS },
1971 { "wxDiagram_RemoveAllShapes", (PyCFunction) _wrap_wxDiagram_RemoveAllShapes, METH_VARARGS | METH_KEYWORDS },
1972 { "wxDiagram_Redraw", (PyCFunction) _wrap_wxDiagram_Redraw, METH_VARARGS | METH_KEYWORDS },
1973 { "wxDiagram_RecentreAll", (PyCFunction) _wrap_wxDiagram_RecentreAll, METH_VARARGS | METH_KEYWORDS },
1974 { "wxDiagram_ReadNodes", (PyCFunction) _wrap_wxDiagram_ReadNodes, METH_VARARGS | METH_KEYWORDS },
1975 { "wxDiagram_ReadLines", (PyCFunction) _wrap_wxDiagram_ReadLines, METH_VARARGS | METH_KEYWORDS },
1976 { "wxDiagram_ReadContainerGeometry", (PyCFunction) _wrap_wxDiagram_ReadContainerGeometry, METH_VARARGS | METH_KEYWORDS },
1977 { "wxDiagram_LoadFile", (PyCFunction) _wrap_wxDiagram_LoadFile, METH_VARARGS | METH_KEYWORDS },
1978 { "wxDiagram_InsertShape", (PyCFunction) _wrap_wxDiagram_InsertShape, METH_VARARGS | METH_KEYWORDS },
1979 { "wxDiagram_GetSnapToGrid", (PyCFunction) _wrap_wxDiagram_GetSnapToGrid, METH_VARARGS | METH_KEYWORDS },
1980 { "wxDiagram_GetQuickEditMode", (PyCFunction) _wrap_wxDiagram_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS },
1981 { "wxDiagram_GetShapeList", (PyCFunction) _wrap_wxDiagram_GetShapeList, METH_VARARGS | METH_KEYWORDS },
1982 { "wxDiagram_GetMouseTolerance", (PyCFunction) _wrap_wxDiagram_GetMouseTolerance, METH_VARARGS | METH_KEYWORDS },
1983 { "wxDiagram_GetGridSpacing", (PyCFunction) _wrap_wxDiagram_GetGridSpacing, METH_VARARGS | METH_KEYWORDS },
1984 { "wxDiagram_GetCount", (PyCFunction) _wrap_wxDiagram_GetCount, METH_VARARGS | METH_KEYWORDS },
1985 { "wxDiagram_GetCanvas", (PyCFunction) _wrap_wxDiagram_GetCanvas, METH_VARARGS | METH_KEYWORDS },
1986 { "wxDiagram_FindShape", (PyCFunction) _wrap_wxDiagram_FindShape, METH_VARARGS | METH_KEYWORDS },
1987 { "wxDiagram_DrawOutline", (PyCFunction) _wrap_wxDiagram_DrawOutline, METH_VARARGS | METH_KEYWORDS },
1988 { "wxDiagram_DeleteAllShapes", (PyCFunction) _wrap_wxDiagram_DeleteAllShapes, METH_VARARGS | METH_KEYWORDS },
1989 { "wxDiagram_Clear", (PyCFunction) _wrap_wxDiagram_Clear, METH_VARARGS | METH_KEYWORDS },
1990 { "wxDiagram_AddShape", (PyCFunction) _wrap_wxDiagram_AddShape, METH_VARARGS | METH_KEYWORDS },
1991 { "delete_wxDiagram", (PyCFunction) _wrap_delete_wxDiagram, METH_VARARGS | METH_KEYWORDS },
1992 { "new_wxDiagram", (PyCFunction) _wrap_new_wxDiagram, METH_VARARGS | METH_KEYWORDS },
1993 { NULL, NULL }
1994 };
1995 #ifdef __cplusplus
1996 }
1997 #endif
1998 /*
1999 * This table is used by the pointer type-checker
2000 */
2001 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2002 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
2003 { "_wxEvent","_class_wxEvent",0},
2004 { "_class_wxActivateEvent","_wxActivateEvent",0},
2005 { "_signed_long","_long",0},
2006 { "_wxMenuEvent","_class_wxMenuEvent",0},
2007 { "_class_wxProcessEvent","_wxProcessEvent",0},
2008 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
2009 { "_class_wxFSFile","_wxFSFile",0},
2010 { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0},
2011 { "_wxBitmapDataObject","_class_wxBitmapDataObject",0},
2012 { "_class_wxPyCommandEvent","_wxPyCommandEvent",0},
2013 { "_wxBMPHandler","_class_wxBMPHandler",0},
2014 { "_wxImage","_class_wxImage",0},
2015 { "_wxFlexGridSizer","_class_wxFlexGridSizer",0},
2016 { "_wxWindowDisabler","_class_wxWindowDisabler",0},
2017 { "_class_wxDateTime","_wxDateTime",0},
2018 { "_wxPrintQuality","_wxCoord",0},
2019 { "_wxPrintQuality","_int",0},
2020 { "_wxPrintQuality","_signed_int",0},
2021 { "_wxPrintQuality","_unsigned_int",0},
2022 { "_wxPrintQuality","_wxWindowID",0},
2023 { "_wxPrintQuality","_uint",0},
2024 { "_wxPrintQuality","_EBool",0},
2025 { "_wxPrintQuality","_size_t",0},
2026 { "_wxPrintQuality","_time_t",0},
2027 { "_class_wxCustomDataObject","_wxCustomDataObject",0},
2028 { "_wxSpinCtrl","_class_wxSpinCtrl",0},
2029 { "_wxFontData","_class_wxFontData",0},
2030 { "_class_wxRegionIterator","_wxRegionIterator",0},
2031 { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
2032 { "_class_wxMenuBar","_wxMenuBar",0},
2033 { "_class_wxPyTreeItemData","_wxPyTreeItemData",0},
2034 { "_class_wxStaticBoxSizer","_wxStaticBoxSizer",0},
2035 { "_class_wxEvtHandler","_class_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxEvtHandler},
2036 { "_class_wxEvtHandler","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxEvtHandler},
2037 { "_class_wxEvtHandler","_wxEvtHandler",0},
2038 { "_wxPaintEvent","_class_wxPaintEvent",0},
2039 { "_wxGIFHandler","_class_wxGIFHandler",0},
2040 { "_wxPySizer","_class_wxPySizer",0},
2041 { "_wxInternetFSHandler","_class_wxInternetFSHandler",0},
2042 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
2043 { "_wxCursor","_class_wxCursor",0},
2044 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
2045 { "_wxPyProcess","_class_wxPyProcess",0},
2046 { "_wxPyTreeCtrl","_class_wxPyTreeCtrl",0},
2047 { "_wxImageHandler","_class_wxImageHandler",0},
2048 { "_wxLog","_class_wxLog",0},
2049 { "_class_wxToolBarBase","_wxToolBarBase",0},
2050 { "_wxMask","_class_wxMask",0},
2051 { "_wxToolTip","_class_wxToolTip",0},
2052 { "_wxPNGHandler","_class_wxPNGHandler",0},
2053 { "_class_wxColourData","_wxColourData",0},
2054 { "_class_wxPageSetupDialogData","_wxPageSetupDialogData",0},
2055 { "_wxPrinter","_class_wxPrinter",0},
2056 { "_wxPen","_class_wxPen",0},
2057 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
2058 { "_class_wxNotebookSizer","_wxNotebookSizer",0},
2059 { "_byte","_unsigned_char",0},
2060 { "_wxDataObject","_class_wxDataObject",0},
2061 { "_class_wxPyFontEnumerator","_wxPyFontEnumerator",0},
2062 { "_wxStaticBox","_class_wxStaticBox",0},
2063 { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
2064 { "_wxPyDropSource","_class_wxPyDropSource",0},
2065 { "_wxChoice","_class_wxChoice",0},
2066 { "_wxSlider","_class_wxSlider",0},
2067 { "_wxNotebookEvent","_class_wxNotebookEvent",0},
2068 { "_wxPyPrintout","_class_wxPyPrintout",0},
2069 { "_wxShapeRegion","_class_wxShapeRegion",0},
2070 { "_long","_unsigned_long",0},
2071 { "_long","_signed_long",0},
2072 { "_wxImageList","_class_wxImageList",0},
2073 { "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
2074 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
2075 { "_wxBitmapButton","_class_wxBitmapButton",0},
2076 { "_wxSashWindow","_class_wxSashWindow",0},
2077 { "_class_wxSizer","_wxSizer",0},
2078 { "_class_wxTIFFHandler","_wxTIFFHandler",0},
2079 { "_class_wxPrintDialogData","_wxPrintDialogData",0},
2080 { "_wxGridSizer","_class_wxGridSizer",0},
2081 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
2082 { "_class_wxClipboard","_wxClipboard",0},
2083 { "_class_wxGauge","_wxGauge",0},
2084 { "_class_wxSashEvent","_wxSashEvent",0},
2085 { "_wxDC","_class_wxDC",0},
2086 { "_wxSizerItem","_class_wxSizerItem",0},
2087 { "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
2088 { "_wxListEvent","_class_wxListEvent",0},
2089 { "_class_wxSingleChoiceDialog","_wxSingleChoiceDialog",0},
2090 { "_wxProgressDialog","_class_wxProgressDialog",0},
2091 { "_class_wxBMPHandler","_wxBMPHandler",0},
2092 { "_wxPrintPreview","_class_wxPrintPreview",0},
2093 { "_class_wxFlexGridSizer","_wxFlexGridSizer",0},
2094 { "_wxSpinEvent","_class_wxSpinEvent",0},
2095 { "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0},
2096 { "_size_t","_wxCoord",0},
2097 { "_size_t","_wxPrintQuality",0},
2098 { "_size_t","_time_t",0},
2099 { "_size_t","_unsigned_int",0},
2100 { "_size_t","_int",0},
2101 { "_size_t","_wxWindowID",0},
2102 { "_size_t","_uint",0},
2103 { "_class_wxRealPoint","_wxRealPoint",0},
2104 { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0},
2105 { "_wxPNMHandler","_class_wxPNMHandler",0},
2106 { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0},
2107 { "_wxLogGui","_class_wxLogGui",0},
2108 { "_class_wxPyShapeEvtHandler","_wxPyShapeEvtHandler",0},
2109 { "_class_wxMenuItem","_wxMenuItem",0},
2110 { "_class_wxPaintEvent","_wxPaintEvent",0},
2111 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
2112 { "_class_wxStatusBar","_wxStatusBar",0},
2113 { "_class_wxGIFHandler","_wxGIFHandler",0},
2114 { "_class_wxPySizer","_wxPySizer",0},
2115 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
2116 { "_wxPanel","_class_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxPanel},
2117 { "_wxPanel","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxPanel},
2118 { "_wxPanel","_class_wxPanel",0},
2119 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
2120 { "_wxCheckBox","_class_wxCheckBox",0},
2121 { "_class_wxPyTreeCtrl","_wxPyTreeCtrl",0},
2122 { "_wxPyEvent","_class_wxPyEvent",0},
2123 { "_wxTextCtrl","_class_wxTextCtrl",0},
2124 { "_class_wxMask","_wxMask",0},
2125 { "_wxTextDataObject","_class_wxTextDataObject",0},
2126 { "_class_wxKeyEvent","_wxKeyEvent",0},
2127 { "_class_wxToolTip","_wxToolTip",0},
2128 { "_class_wxPNGHandler","_wxPNGHandler",0},
2129 { "_wxFileConfig","_class_wxFileConfig",0},
2130 { "_wxColour","_class_wxColour",0},
2131 { "_class_wxDialog","_wxDialog",0},
2132 { "_wxBusyCursor","_class_wxBusyCursor",0},
2133 { "_wxPageSetupDialog","_class_wxPageSetupDialog",0},
2134 { "_class_wxPrinter","_wxPrinter",0},
2135 { "_class_wxFileDataObject","_wxFileDataObject",0},
2136 { "_wxIdleEvent","_class_wxIdleEvent",0},
2137 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
2138 { "_wxToolBar","_class_wxToolBar",0},
2139 { "_class_wxDataObject","_wxDataObject",0},
2140 { "_wxCaret","_class_wxCaret",0},
2141 { "_wxStaticLine","_class_wxStaticLine",0},
2142 { "_class_wxLayoutAlgorithm","_wxLayoutAlgorithm",0},
2143 { "_wxBrush","_class_wxBrush",0},
2144 { "_wxMiniFrame","_class_wxMiniFrame",0},
2145 { "_class_wxNotebookEvent","_wxNotebookEvent",0},
2146 { "_class_wxPyPrintout","_wxPyPrintout",0},
2147 { "_wxDataFormat","_class_wxDataFormat",0},
2148 { "_class_wxDataObjectSimple","_wxDataObjectSimple",0},
2149 { "_class_wxSashWindow","_wxSashWindow",0},
2150 { "_wxShowEvent","_class_wxShowEvent",0},
2151 { "_uint","_wxCoord",0},
2152 { "_uint","_wxPrintQuality",0},
2153 { "_uint","_time_t",0},
2154 { "_uint","_size_t",0},
2155 { "_uint","_unsigned_int",0},
2156 { "_uint","_int",0},
2157 { "_uint","_wxWindowID",0},
2158 { "_wxChar","_char",0},
2159 { "_wxPyValidator","_class_wxPyValidator",0},
2160 { "_class_wxEvent","_wxEvent",0},
2161 { "_wxCheckListBox","_class_wxCheckListBox",0},
2162 { "_wxSplitterEvent","_class_wxSplitterEvent",0},
2163 { "_wxRect","_class_wxRect",0},
2164 { "_wxCommandEvent","_class_wxCommandEvent",0},
2165 { "_wxPyShapeCanvas","_class_wxPyShapeCanvas",0},
2166 { "_wxSizeEvent","_class_wxSizeEvent",0},
2167 { "_class_wxLogWindow","_wxLogWindow",0},
2168 { "_class_wxImage","_wxImage",0},
2169 { "_wxPoint","_class_wxPoint",0},
2170 { "_class_wxWindowDisabler","_wxWindowDisabler",0},
2171 { "_class_wxSashLayoutWindow","_wxSashLayoutWindow",0},
2172 { "_class_wxButton","_wxButton",0},
2173 { "_wxRadioBox","_class_wxRadioBox",0},
2174 { "_class_wxSpinCtrl","_wxSpinCtrl",0},
2175 { "_class_wxFontData","_wxFontData",0},
2176 { "_class_wxPNMHandler","_wxPNMHandler",0},
2177 { "_wxBoxSizer","_class_wxBoxSizer",0},
2178 { "_class_wxZipFSHandler","_wxZipFSHandler",0},
2179 { "_char","_wxChar",0},
2180 { "_wxBitmap","_class_wxBitmap",0},
2181 { "_wxPrintDialog","_class_wxPrintDialog",0},
2182 { "_wxWindowDC","_class_wxWindowDC",0},
2183 { "_wxTimerEvent","_class_wxTimerEvent",0},
2184 { "_wxPyTimer","_class_wxPyTimer",0},
2185 { "_wxScrollBar","_class_wxScrollBar",0},
2186 { "_wxSpinButton","_class_wxSpinButton",0},
2187 { "_wxColourDialog","_class_wxColourDialog",0},
2188 { "_wxPrintData","_class_wxPrintData",0},
2189 { "_class_wxInternetFSHandler","_wxInternetFSHandler",0},
2190 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
2191 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
2192 { "_wxMessageDialog","_class_wxMessageDialog",0},
2193 { "_class_wxValidator","_wxValidator",0},
2194 { "_class_wxPyEvent","_wxPyEvent",0},
2195 { "_wxTextEntryDialog","_class_wxTextEntryDialog",0},
2196 { "_wxConfig","_class_wxConfig",0},
2197 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
2198 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
2199 { "_class_wxFileConfig","_wxFileConfig",0},
2200 { "_class_wxBusyCursor","_wxBusyCursor",0},
2201 { "_wxToolBarSimple","_class_wxToolBarSimple",0},
2202 { "_wxMDIChildFrame","_class_wxMDIChildFrame",0},
2203 { "_wxListItem","_class_wxListItem",0},
2204 { "_class_wxToolBar","_wxToolBar",0},
2205 { "_wxDropTarget","_class_wxDropTarget",0},
2206 { "_class_wxStaticLine","_wxStaticLine",0},
2207 { "_wxScrollEvent","_class_wxScrollEvent",0},
2208 { "_wxToolBarToolBase","_class_wxToolBarToolBase",0},
2209 { "_wxCalculateLayoutEvent","_class_wxCalculateLayoutEvent",0},
2210 { "_class_wxMemoryFSHandler","_wxMemoryFSHandler",0},
2211 { "_class_wxShapeRegion","_wxShapeRegion",0},
2212 { "_EBool","_wxCoord",0},
2213 { "_EBool","_wxPrintQuality",0},
2214 { "_EBool","_signed_int",0},
2215 { "_EBool","_int",0},
2216 { "_EBool","_wxWindowID",0},
2217 { "_class_wxRegion","_wxRegion",0},
2218 { "_class_wxDataFormat","_wxDataFormat",0},
2219 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
2220 { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0},
2221 { "_class_wxPreviewFrame","_wxPreviewFrame",0},
2222 { "_wxStaticText","_class_wxStaticText",0},
2223 { "_wxFont","_class_wxFont",0},
2224 { "_class_wxPyDropTarget","_wxPyDropTarget",0},
2225 { "_wxCloseEvent","_class_wxCloseEvent",0},
2226 { "_class_wxSplitterEvent","_wxSplitterEvent",0},
2227 { "_wxProcessEvent","_class_wxProcessEvent",0},
2228 { "_wxNotebook","_class_wxNotebook",0},
2229 { "_wxFSFile","_class_wxFSFile",0},
2230 { "_unsigned_long","_long",0},
2231 { "_class_wxRect","_wxRect",0},
2232 { "_class_wxDC","_wxDC",0},
2233 { "_wxScrollWinEvent","_class_wxScrollWinEvent",0},
2234 { "_class_wxPyShapeCanvas","_wxPyShapeCanvas",0},
2235 { "_wxGenericDragImage","_class_wxGenericDragImage",0},
2236 { "_class_wxProgressDialog","_wxProgressDialog",0},
2237 { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0},
2238 { "_wxPyInputStream","_class_wxPyInputStream",0},
2239 { "_wxPyApp","_class_wxPyApp",0},
2240 { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0},
2241 { "_class_wxOutputStream","_wxOutputStream",0},
2242 { "_wxLogTextCtrl","_class_wxLogTextCtrl",0},
2243 { "_wxMDIParentFrame","_class_wxMDIParentFrame",0},
2244 { "_class_wxTreeEvent","_wxTreeEvent",0},
2245 { "_class_wxDirDialog","_wxDirDialog",0},
2246 { "_wxTimeSpan","_class_wxTimeSpan",0},
2247 { "_wxFocusEvent","_class_wxFocusEvent",0},
2248 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
2249 { "_class_wxTimerEvent","_wxTimerEvent",0},
2250 { "_class_wxPyTimer","_wxPyTimer",0},
2251 { "_class_wxSpinButton","_wxSpinButton",0},
2252 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
2253 { "_class_wxPanel","_class_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxPanel},
2254 { "_class_wxPanel","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxPanel},
2255 { "_class_wxPanel","_wxPanel",0},
2256 { "_class_wxCheckBox","_wxCheckBox",0},
2257 { "_wxComboBox","_class_wxComboBox",0},
2258 { "_wxRadioButton","_class_wxRadioButton",0},
2259 { "_class_wxMessageDialog","_wxMessageDialog",0},
2260 { "_signed_int","_wxCoord",0},
2261 { "_signed_int","_wxPrintQuality",0},
2262 { "_signed_int","_EBool",0},
2263 { "_signed_int","_wxWindowID",0},
2264 { "_signed_int","_int",0},
2265 { "_class_wxTextCtrl","_wxTextCtrl",0},
2266 { "_class_wxListItemAttr","_wxListItemAttr",0},
2267 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
2268 { "_class_wxTextDataObject","_wxTextDataObject",0},
2269 { "_wxMenu","_class_wxMenu",0},
2270 { "_class_wxMoveEvent","_wxMoveEvent",0},
2271 { "_wxListBox","_class_wxListBox",0},
2272 { "_wxScreenDC","_class_wxScreenDC",0},
2273 { "_class_wxToolBarSimple","_wxToolBarSimple",0},
2274 { "_class_wxMDIChildFrame","_wxMDIChildFrame",0},
2275 { "_WXTYPE","_wxDateTime_t",0},
2276 { "_WXTYPE","_short",0},
2277 { "_WXTYPE","_signed_short",0},
2278 { "_WXTYPE","_unsigned_short",0},
2279 { "_wxFileDialog","_class_wxFileDialog",0},
2280 { "_class_wxDropTarget","_wxDropTarget",0},
2281 { "_class_wxCaret","_wxCaret",0},
2282 { "_class_wxMDIClientWindow","_wxMDIClientWindow",0},
2283 { "_class_wxBrush","_wxBrush",0},
2284 { "_wxTipProvider","_class_wxTipProvider",0},
2285 { "_unsigned_short","_wxDateTime_t",0},
2286 { "_unsigned_short","_WXTYPE",0},
2287 { "_unsigned_short","_short",0},
2288 { "_class_wxWindow","_class_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxWindow},
2289 { "_class_wxWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxWindow},
2290 { "_class_wxWindow","_wxWindow",0},
2291 { "_class_wxLogStderr","_wxLogStderr",0},
2292 { "_wxSplitterWindow","_class_wxSplitterWindow",0},
2293 { "_wxDateSpan","_class_wxDateSpan",0},
2294 { "_class_wxStaticText","_wxStaticText",0},
2295 { "_wxPrintDialogData","_class_wxPrintDialogData",0},
2296 { "_class_wxFont","_wxFont",0},
2297 { "_wxClipboard","_class_wxClipboard",0},
2298 { "_class_wxPyValidator","_wxPyValidator",0},
2299 { "_class_wxCloseEvent","_wxCloseEvent",0},
2300 { "_wxSashEvent","_class_wxSashEvent",0},
2301 { "_wxBusyInfo","_class_wxBusyInfo",0},
2302 { "_class_wxMenuEvent","_wxMenuEvent",0},
2303 { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0},
2304 { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
2305 { "_wxClientDC","_class_wxClientDC",0},
2306 { "_wxMouseEvent","_class_wxMouseEvent",0},
2307 { "_class_wxGenericDragImage","_wxGenericDragImage",0},
2308 { "_wxListCtrl","_class_wxListCtrl",0},
2309 { "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
2310 { "_class_wxPoint","_wxPoint",0},
2311 { "_class_wxPyInputStream","_wxPyInputStream",0},
2312 { "_wxRealPoint","_class_wxRealPoint",0},
2313 { "_class_wxRadioBox","_wxRadioBox",0},
2314 { "_class_wxBoxSizer","_wxBoxSizer",0},
2315 { "_signed_short","_WXTYPE",0},
2316 { "_signed_short","_short",0},
2317 { "_wxMemoryDC","_class_wxMemoryDC",0},
2318 { "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
2319 { "_class_wxPrintDialog","_wxPrintDialog",0},
2320 { "_wxPyFileSystemHandler","_class_wxPyFileSystemHandler",0},
2321 { "_wxPaintDC","_class_wxPaintDC",0},
2322 { "_class_wxWindowDC","_wxWindowDC",0},
2323 { "_class_wxFocusEvent","_wxFocusEvent",0},
2324 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
2325 { "_wxStatusBar","_class_wxStatusBar",0},
2326 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
2327 { "_class_wxCursor","_wxCursor",0},
2328 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
2329 { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
2330 { "_class_wxPyProcess","_wxPyProcess",0},
2331 { "_class_wxImageHandler","_wxImageHandler",0},
2332 { "_wxPyShape","_class_wxPyShape",0},
2333 { "_wxScrolledWindow","_class_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxScrolledWindow},
2334 { "_wxScrolledWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxScrolledWindow},
2335 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
2336 { "_class_wxLog","_wxLog",0},
2337 { "_wxTreeItemId","_class_wxTreeItemId",0},
2338 { "_unsigned_char","_byte",0},
2339 { "_class_wxMenu","_wxMenu",0},
2340 { "_wxControl","_class_wxControl",0},
2341 { "_class_wxListBox","_wxListBox",0},
2342 { "_unsigned_int","_wxCoord",0},
2343 { "_unsigned_int","_wxPrintQuality",0},
2344 { "_unsigned_int","_time_t",0},
2345 { "_unsigned_int","_size_t",0},
2346 { "_unsigned_int","_uint",0},
2347 { "_unsigned_int","_wxWindowID",0},
2348 { "_unsigned_int","_int",0},
2349 { "_wxIcon","_class_wxIcon",0},
2350 { "_wxDialog","_class_wxDialog",0},
2351 { "_class_wxListItem","_wxListItem",0},
2352 { "_class_wxPen","_wxPen",0},
2353 { "_class_wxFileDialog","_wxFileDialog",0},
2354 { "_wxQueryLayoutInfoEvent","_class_wxQueryLayoutInfoEvent",0},
2355 { "_wxConfigBase","_class_wxConfigBase",0},
2356 { "_short","_wxDateTime_t",0},
2357 { "_short","_WXTYPE",0},
2358 { "_short","_unsigned_short",0},
2359 { "_short","_signed_short",0},
2360 { "_class_wxStaticBox","_wxStaticBox",0},
2361 { "_wxLayoutAlgorithm","_class_wxLayoutAlgorithm",0},
2362 { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0},
2363 { "_class_wxPyDropSource","_wxPyDropSource",0},
2364 { "_class_wxScrollEvent","_wxScrollEvent",0},
2365 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
2366 { "_class_wxChoice","_wxChoice",0},
2367 { "_class_wxSlider","_wxSlider",0},
2368 { "_class_wxCalculateLayoutEvent","_wxCalculateLayoutEvent",0},
2369 { "_class_wxImageList","_wxImageList",0},
2370 { "_class_wxBitmapButton","_wxBitmapButton",0},
2371 { "_wxFileSystemHandler","_class_wxFileSystemHandler",0},
2372 { "_wxPyTipProvider","_class_wxPyTipProvider",0},
2373 { "_wxFrame","_class_wxFrame",0},
2374 { "_wxPCXHandler","_class_wxPCXHandler",0},
2375 { "_class_wxGridSizer","_wxGridSizer",0},
2376 { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0},
2377 { "_class_wxNotebook","_wxNotebook",0},
2378 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
2379 { "_wxWindowID","_wxCoord",0},
2380 { "_wxWindowID","_wxPrintQuality",0},
2381 { "_wxWindowID","_time_t",0},
2382 { "_wxWindowID","_size_t",0},
2383 { "_wxWindowID","_EBool",0},
2384 { "_wxWindowID","_uint",0},
2385 { "_wxWindowID","_int",0},
2386 { "_wxWindowID","_signed_int",0},
2387 { "_wxWindowID","_unsigned_int",0},
2388 { "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
2389 { "_class_wxSizerItem","_wxSizerItem",0},
2390 { "_int","_wxCoord",0},
2391 { "_int","_wxPrintQuality",0},
2392 { "_int","_time_t",0},
2393 { "_int","_size_t",0},
2394 { "_int","_EBool",0},
2395 { "_int","_uint",0},
2396 { "_int","_wxWindowID",0},
2397 { "_int","_unsigned_int",0},
2398 { "_int","_signed_int",0},
2399 { "_class_wxMouseEvent","_wxMouseEvent",0},
2400 { "_wxPyCommandEvent","_class_wxPyCommandEvent",0},
2401 { "_wxLogWindow","_class_wxLogWindow",0},
2402 { "_class_wxListEvent","_wxListEvent",0},
2403 { "_class_wxPrintPreview","_wxPrintPreview",0},
2404 { "_wxDateTime_t","_unsigned_short",0},
2405 { "_wxDateTime_t","_short",0},
2406 { "_wxDateTime_t","_WXTYPE",0},
2407 { "_class_wxSpinEvent","_wxSpinEvent",0},
2408 { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0},
2409 { "_wxDateTime","_class_wxDateTime",0},
2410 { "_time_t","_wxCoord",0},
2411 { "_time_t","_wxPrintQuality",0},
2412 { "_time_t","_unsigned_int",0},
2413 { "_time_t","_int",0},
2414 { "_time_t","_wxWindowID",0},
2415 { "_time_t","_uint",0},
2416 { "_time_t","_size_t",0},
2417 { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0},
2418 { "_wxLogNull","_class_wxLogNull",0},
2419 { "_wxButton","_class_wxButton",0},
2420 { "_wxZipFSHandler","_class_wxZipFSHandler",0},
2421 { "_class_wxPyApp","_wxPyApp",0},
2422 { "_wxSize","_class_wxSize",0},
2423 { "_wxRegionIterator","_class_wxRegionIterator",0},
2424 { "_class_wxPyTextDataObject","_wxPyTextDataObject",0},
2425 { "_class_wxLogTextCtrl","_wxLogTextCtrl",0},
2426 { "_class_wxLogGui","_wxLogGui",0},
2427 { "_class_wxMDIParentFrame","_wxMDIParentFrame",0},
2428 { "_wxPyTreeItemData","_class_wxPyTreeItemData",0},
2429 { "_wxStaticBoxSizer","_class_wxStaticBoxSizer",0},
2430 { "_class_wxTimeSpan","_wxTimeSpan",0},
2431 { "_class_wxPyFileSystemHandler","_wxPyFileSystemHandler",0},
2432 { "_class_wxPaintDC","_wxPaintDC",0},
2433 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
2434 { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0},
2435 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
2436 { "_class_wxComboBox","_wxComboBox",0},
2437 { "_class_wxRadioButton","_wxRadioButton",0},
2438 { "_class_wxPyShape","_wxPyShape",0},
2439 { "_wxValidator","_class_wxValidator",0},
2440 { "_wxToolBarBase","_class_wxToolBarBase",0},
2441 { "_class_wxTreeItemId","_wxTreeItemId",0},
2442 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
2443 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
2444 { "_class_wxControl","_wxControl",0},
2445 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
2446 { "_class_wxIcon","_wxIcon",0},
2447 { "_class_wxColour","_wxColour",0},
2448 { "_class_wxScreenDC","_wxScreenDC",0},
2449 { "_class_wxPageSetupDialog","_wxPageSetupDialog",0},
2450 { "_wxPalette","_class_wxPalette",0},
2451 { "_class_wxIdleEvent","_wxIdleEvent",0},
2452 { "_class_wxConfigBase","_wxConfigBase",0},
2453 { "_wxCoord","_int",0},
2454 { "_wxCoord","_signed_int",0},
2455 { "_wxCoord","_unsigned_int",0},
2456 { "_wxCoord","_wxWindowID",0},
2457 { "_wxCoord","_uint",0},
2458 { "_wxCoord","_EBool",0},
2459 { "_wxCoord","_size_t",0},
2460 { "_wxCoord","_time_t",0},
2461 { "_wxCoord","_wxPrintQuality",0},
2462 { "_wxEraseEvent","_class_wxEraseEvent",0},
2463 { "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
2464 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
2465 { "_class_wxTipProvider","_wxTipProvider",0},
2466 { "_class_wxMiniFrame","_wxMiniFrame",0},
2467 { "_wxFontDialog","_class_wxFontDialog",0},
2468 { "_wxMemoryFSHandler","_class_wxMemoryFSHandler",0},
2469 { "_wxRegion","_class_wxRegion",0},
2470 { "_class_wxSplitterWindow","_wxSplitterWindow",0},
2471 { "_wxPreviewFrame","_class_wxPreviewFrame",0},
2472 { "_wxSizer","_class_wxSizer",0},
2473 { "_class_wxDateSpan","_wxDateSpan",0},
2474 { "_wxFileSystem","_class_wxFileSystem",0},
2475 { "_class_wxShowEvent","_wxShowEvent",0},
2476 { "_class_wxPyTipProvider","_wxPyTipProvider",0},
2477 { "_class_wxPCXHandler","_wxPCXHandler",0},
2478 { "_wxTIFFHandler","_class_wxTIFFHandler",0},
2479 { "_wxDiagram","_class_wxDiagram",0},
2480 { "_wxPyDropTarget","_class_wxPyDropTarget",0},
2481 { "_wxActivateEvent","_class_wxActivateEvent",0},
2482 { "_wxGauge","_class_wxGauge",0},
2483 { "_class_wxCheckListBox","_wxCheckListBox",0},
2484 { "_class_wxBusyInfo","_wxBusyInfo",0},
2485 { "_class_wxCommandEvent","_wxCommandEvent",0},
2486 { "_class_wxClientDC","_wxClientDC",0},
2487 { "_class_wxSizeEvent","_wxSizeEvent",0},
2488 { "_class_wxListCtrl","_wxListCtrl",0},
2489 { "_wxCustomDataObject","_class_wxCustomDataObject",0},
2490 { "_class_wxLogNull","_wxLogNull",0},
2491 { "_class_wxSize","_wxSize",0},
2492 { "_class_wxBitmap","_wxBitmap",0},
2493 { "_class_wxMemoryDC","_wxMemoryDC",0},
2494 { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
2495 { "_wxMenuBar","_class_wxMenuBar",0},
2496 { "_wxOutputStream","_class_wxOutputStream",0},
2497 { "_wxTreeEvent","_class_wxTreeEvent",0},
2498 { "_wxDirDialog","_class_wxDirDialog",0},
2499 { "_wxPyShapeEvtHandler","_class_wxPyShapeEvtHandler",0},
2500 { "_wxEvtHandler","_class_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxEvtHandler},
2501 { "_wxEvtHandler","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxEvtHandler},
2502 { "_wxEvtHandler","_class_wxEvtHandler",0},
2503 { "_wxMenuItem","_class_wxMenuItem",0},
2504 { "_class_wxScrollBar","_wxScrollBar",0},
2505 { "_class_wxColourDialog","_wxColourDialog",0},
2506 { "_class_wxPrintData","_wxPrintData",0},
2507 { "_class_wxScrolledWindow","_class_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxScrolledWindow},
2508 { "_class_wxScrolledWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxScrolledWindow},
2509 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
2510 { "_wxListItemAttr","_class_wxListItemAttr",0},
2511 { "_class_wxTextEntryDialog","_wxTextEntryDialog",0},
2512 { "_class_wxConfig","_wxConfig",0},
2513 { "_wxKeyEvent","_class_wxKeyEvent",0},
2514 { "_wxMoveEvent","_class_wxMoveEvent",0},
2515 { "_wxColourData","_class_wxColourData",0},
2516 { "_wxPageSetupDialogData","_class_wxPageSetupDialogData",0},
2517 { "_class_wxPalette","_wxPalette",0},
2518 { "_wxFileDataObject","_class_wxFileDataObject",0},
2519 { "_class_wxQueryLayoutInfoEvent","_wxQueryLayoutInfoEvent",0},
2520 { "_wxNotebookSizer","_class_wxNotebookSizer",0},
2521 { "_class_wxEraseEvent","_wxEraseEvent",0},
2522 { "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0},
2523 { "_wxMDIClientWindow","_class_wxMDIClientWindow",0},
2524 { "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
2525 { "_class_wxToolBarToolBase","_wxToolBarToolBase",0},
2526 { "_class_wxFontDialog","_wxFontDialog",0},
2527 { "_wxWindow","_class_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxWindow},
2528 { "_wxWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxWindow},
2529 { "_wxWindow","_class_wxWindow",0},
2530 { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0},
2531 { "_wxLogStderr","_class_wxLogStderr",0},
2532 { "_class_wxFileSystemHandler","_wxFileSystemHandler",0},
2533 { "_class_wxFileSystem","_wxFileSystem",0},
2534 { "_class_wxFrame","_wxFrame",0},
2535 { "_class_wxDiagram","_wxDiagram",0},
2536 {0,0,0}};
2537
2538 static PyObject *SWIG_globals;
2539 #ifdef __cplusplus
2540 extern "C"
2541 #endif
2542 SWIGEXPORT(void) initoglcanvasc() {
2543 PyObject *m, *d;
2544 SWIG_globals = SWIG_newvarlink();
2545 m = Py_InitModule("oglcanvasc", oglcanvascMethods);
2546 d = PyModule_GetDict(m);
2547 {
2548 int i;
2549 for (i = 0; _swig_mapping[i].n1; i++)
2550 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2551 }
2552 }