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