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