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