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