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