]>
Commit | Line | Data |
---|---|---|
e91a9dfc | 1 | /* |
c368d904 | 2 | * FILE : contrib/ogl/oglbasic.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 |
42 | extern "C" { | |
43 | #endif | |
9ae9011b | 44 | |
e91a9dfc RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initoglbasicc | |
55 | ||
56 | #define SWIG_name "oglbasicc" | |
57 | ||
1e7ecb7b | 58 | #include "export.h" |
e91a9dfc RD |
59 | #include "oglhelpers.h" |
60 | ||
e91a9dfc RD |
61 | |
62 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
64 | PyObject* o3; | |
65 | ||
d74525f7 | 66 | if (!target) { |
e91a9dfc | 67 | target = o; |
d74525f7 | 68 | } else if (target == Py_None) { |
e91a9dfc RD |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
d74525f7 | 71 | } else { |
e91a9dfc RD |
72 | if (!PyTuple_Check(target)) { |
73 | o2 = target; | |
74 | target = PyTuple_New(1); | |
75 | PyTuple_SetItem(target, 0, o2); | |
76 | } | |
d74525f7 RD |
77 | o3 = PyTuple_New(1); |
78 | PyTuple_SetItem(o3, 0, o); | |
e91a9dfc RD |
79 | |
80 | o2 = target; | |
d74525f7 RD |
81 | target = PySequence_Concat(o2, o3); |
82 | Py_DECREF(o2); | |
e91a9dfc RD |
83 | Py_DECREF(o3); |
84 | } | |
85 | return target; | |
86 | } | |
87 | ||
7a446686 RD |
88 | #if PYTHON_API_VERSION >= 1009 |
89 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
90 | #else | |
91 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
92 | #endif | |
e91a9dfc RD |
93 | |
94 | WXSHAPE_IMP_CALLBACKS(wxPyShapeEvtHandler,wxShapeEvtHandler); | |
95 | ||
96 | WXSHAPE_IMP_CALLBACKS(wxPyShape, wxShape); | |
97 | #ifdef __cplusplus | |
98 | extern "C" { | |
99 | #endif | |
9416aa89 RD |
100 | static void *SwigwxShapeRegionTowxObject(void *ptr) { |
101 | wxShapeRegion *src; | |
102 | wxObject *dest; | |
103 | src = (wxShapeRegion *) ptr; | |
104 | dest = (wxObject *) src; | |
105 | return (void *) dest; | |
106 | } | |
107 | ||
e91a9dfc RD |
108 | #define new_wxShapeRegion() (new wxShapeRegion()) |
109 | static PyObject *_wrap_new_wxShapeRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
110 | PyObject * _resultobj; | |
111 | wxShapeRegion * _result; | |
112 | char *_kwnames[] = { NULL }; | |
113 | char _ptemp[128]; | |
114 | ||
115 | self = self; | |
116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxShapeRegion",_kwnames)) | |
117 | return NULL; | |
118 | { | |
119 | wxPy_BEGIN_ALLOW_THREADS; | |
120 | _result = (wxShapeRegion *)new_wxShapeRegion(); | |
121 | ||
122 | wxPy_END_ALLOW_THREADS; | |
123 | } if (_result) { | |
124 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxShapeRegion_p"); | |
125 | _resultobj = Py_BuildValue("s",_ptemp); | |
126 | } else { | |
127 | Py_INCREF(Py_None); | |
128 | _resultobj = Py_None; | |
129 | } | |
130 | return _resultobj; | |
131 | } | |
132 | ||
133 | #define wxShapeRegion_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
134 | static PyObject *_wrap_wxShapeRegion_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
135 | PyObject * _resultobj; | |
136 | wxShapeRegion * _arg0; | |
137 | wxString * _arg1; | |
138 | PyObject * _argo0 = 0; | |
139 | PyObject * _obj1 = 0; | |
140 | char *_kwnames[] = { "self","s", NULL }; | |
141 | ||
142 | self = self; | |
143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxShapeRegion_SetText",_kwnames,&_argo0,&_obj1)) | |
144 | return NULL; | |
145 | if (_argo0) { | |
146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetText. Expected _wxShapeRegion_p."); | |
149 | return NULL; | |
150 | } | |
151 | } | |
152 | { | |
185d7c3e RD |
153 | #if PYTHON_API_VERSION >= 1009 |
154 | char* tmpPtr; int tmpSize; | |
155 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 156 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
157 | return NULL; |
158 | } | |
159 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
160 | return NULL; | |
161 | _arg1 = new wxString(tmpPtr, tmpSize); | |
162 | #else | |
e91a9dfc RD |
163 | if (!PyString_Check(_obj1)) { |
164 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
165 | return NULL; | |
166 | } | |
185d7c3e RD |
167 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
168 | #endif | |
e91a9dfc RD |
169 | } |
170 | { | |
171 | wxPy_BEGIN_ALLOW_THREADS; | |
172 | wxShapeRegion_SetText(_arg0,*_arg1); | |
173 | ||
174 | wxPy_END_ALLOW_THREADS; | |
175 | } Py_INCREF(Py_None); | |
176 | _resultobj = Py_None; | |
177 | { | |
178 | if (_obj1) | |
179 | delete _arg1; | |
180 | } | |
181 | return _resultobj; | |
182 | } | |
183 | ||
184 | #define wxShapeRegion_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
185 | static PyObject *_wrap_wxShapeRegion_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
186 | PyObject * _resultobj; | |
187 | wxShapeRegion * _arg0; | |
188 | wxFont * _arg1; | |
189 | PyObject * _argo0 = 0; | |
d74525f7 | 190 | PyObject * _obj1 = 0; |
e91a9dfc RD |
191 | char *_kwnames[] = { "self","f", NULL }; |
192 | ||
193 | self = self; | |
d74525f7 | 194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxShapeRegion_SetFont",_kwnames,&_argo0,&_obj1)) |
e91a9dfc RD |
195 | return NULL; |
196 | if (_argo0) { | |
197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetFont. Expected _wxShapeRegion_p."); | |
200 | return NULL; | |
201 | } | |
202 | } | |
d74525f7 RD |
203 | { |
204 | wxFont* temp; | |
205 | if (_obj1) { | |
206 | if (_obj1 == Py_None) { temp = NULL; } | |
207 | else if (SWIG_GetPtrObj(_obj1, (void **) &temp,"_wxFont_p")) { | |
208 | PyErr_SetString(PyExc_TypeError,"Type error, expected _wxFont_p."); | |
e91a9dfc RD |
209 | return NULL; |
210 | } | |
211 | } | |
d74525f7 RD |
212 | if (temp) |
213 | _arg1 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
214 | temp->GetFamily(), | |
215 | temp->GetStyle(), | |
216 | temp->GetWeight(), | |
217 | temp->GetUnderlined(), | |
218 | temp->GetFaceName(), | |
219 | temp->GetEncoding()); | |
220 | else | |
221 | _arg1 = NULL; | |
222 | } | |
e91a9dfc RD |
223 | { |
224 | wxPy_BEGIN_ALLOW_THREADS; | |
225 | wxShapeRegion_SetFont(_arg0,_arg1); | |
226 | ||
227 | wxPy_END_ALLOW_THREADS; | |
228 | } Py_INCREF(Py_None); | |
229 | _resultobj = Py_None; | |
230 | return _resultobj; | |
231 | } | |
232 | ||
233 | #define wxShapeRegion_SetMinSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMinSize(_swigarg0,_swigarg1)) | |
234 | static PyObject *_wrap_wxShapeRegion_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
235 | PyObject * _resultobj; | |
236 | wxShapeRegion * _arg0; | |
237 | double _arg1; | |
238 | double _arg2; | |
239 | PyObject * _argo0 = 0; | |
240 | char *_kwnames[] = { "self","w","h", NULL }; | |
241 | ||
242 | self = self; | |
243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxShapeRegion_SetMinSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
244 | return NULL; | |
245 | if (_argo0) { | |
246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetMinSize. Expected _wxShapeRegion_p."); | |
249 | return NULL; | |
250 | } | |
251 | } | |
252 | { | |
253 | wxPy_BEGIN_ALLOW_THREADS; | |
254 | wxShapeRegion_SetMinSize(_arg0,_arg1,_arg2); | |
255 | ||
256 | wxPy_END_ALLOW_THREADS; | |
257 | } Py_INCREF(Py_None); | |
258 | _resultobj = Py_None; | |
259 | return _resultobj; | |
260 | } | |
261 | ||
262 | #define wxShapeRegion_SetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
263 | static PyObject *_wrap_wxShapeRegion_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
264 | PyObject * _resultobj; | |
265 | wxShapeRegion * _arg0; | |
266 | double _arg1; | |
267 | double _arg2; | |
268 | PyObject * _argo0 = 0; | |
269 | char *_kwnames[] = { "self","w","h", NULL }; | |
270 | ||
271 | self = self; | |
272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxShapeRegion_SetSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
273 | return NULL; | |
274 | if (_argo0) { | |
275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetSize. Expected _wxShapeRegion_p."); | |
278 | return NULL; | |
279 | } | |
280 | } | |
281 | { | |
282 | wxPy_BEGIN_ALLOW_THREADS; | |
283 | wxShapeRegion_SetSize(_arg0,_arg1,_arg2); | |
284 | ||
285 | wxPy_END_ALLOW_THREADS; | |
286 | } Py_INCREF(Py_None); | |
287 | _resultobj = Py_None; | |
288 | return _resultobj; | |
289 | } | |
290 | ||
291 | #define wxShapeRegion_SetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPosition(_swigarg0,_swigarg1)) | |
292 | static PyObject *_wrap_wxShapeRegion_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
293 | PyObject * _resultobj; | |
294 | wxShapeRegion * _arg0; | |
295 | double _arg1; | |
296 | double _arg2; | |
297 | PyObject * _argo0 = 0; | |
298 | char *_kwnames[] = { "self","x","y", NULL }; | |
299 | ||
300 | self = self; | |
301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxShapeRegion_SetPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
302 | return NULL; | |
303 | if (_argo0) { | |
304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetPosition. Expected _wxShapeRegion_p."); | |
307 | return NULL; | |
308 | } | |
309 | } | |
310 | { | |
311 | wxPy_BEGIN_ALLOW_THREADS; | |
312 | wxShapeRegion_SetPosition(_arg0,_arg1,_arg2); | |
313 | ||
314 | wxPy_END_ALLOW_THREADS; | |
315 | } Py_INCREF(Py_None); | |
316 | _resultobj = Py_None; | |
317 | return _resultobj; | |
318 | } | |
319 | ||
320 | #define wxShapeRegion_SetProportions(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetProportions(_swigarg0,_swigarg1)) | |
321 | static PyObject *_wrap_wxShapeRegion_SetProportions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
322 | PyObject * _resultobj; | |
323 | wxShapeRegion * _arg0; | |
324 | double _arg1; | |
325 | double _arg2; | |
326 | PyObject * _argo0 = 0; | |
327 | char *_kwnames[] = { "self","x","y", NULL }; | |
328 | ||
329 | self = self; | |
330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxShapeRegion_SetProportions",_kwnames,&_argo0,&_arg1,&_arg2)) | |
331 | return NULL; | |
332 | if (_argo0) { | |
333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetProportions. Expected _wxShapeRegion_p."); | |
336 | return NULL; | |
337 | } | |
338 | } | |
339 | { | |
340 | wxPy_BEGIN_ALLOW_THREADS; | |
341 | wxShapeRegion_SetProportions(_arg0,_arg1,_arg2); | |
342 | ||
343 | wxPy_END_ALLOW_THREADS; | |
344 | } Py_INCREF(Py_None); | |
345 | _resultobj = Py_None; | |
346 | return _resultobj; | |
347 | } | |
348 | ||
349 | #define wxShapeRegion_SetFormatMode(_swigobj,_swigarg0) (_swigobj->SetFormatMode(_swigarg0)) | |
350 | static PyObject *_wrap_wxShapeRegion_SetFormatMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
351 | PyObject * _resultobj; | |
352 | wxShapeRegion * _arg0; | |
353 | int _arg1; | |
354 | PyObject * _argo0 = 0; | |
355 | char *_kwnames[] = { "self","mode", NULL }; | |
356 | ||
357 | self = self; | |
358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxShapeRegion_SetFormatMode",_kwnames,&_argo0,&_arg1)) | |
359 | return NULL; | |
360 | if (_argo0) { | |
361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetFormatMode. Expected _wxShapeRegion_p."); | |
364 | return NULL; | |
365 | } | |
366 | } | |
367 | { | |
368 | wxPy_BEGIN_ALLOW_THREADS; | |
369 | wxShapeRegion_SetFormatMode(_arg0,_arg1); | |
370 | ||
371 | wxPy_END_ALLOW_THREADS; | |
372 | } Py_INCREF(Py_None); | |
373 | _resultobj = Py_None; | |
374 | return _resultobj; | |
375 | } | |
376 | ||
377 | #define wxShapeRegion_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
378 | static PyObject *_wrap_wxShapeRegion_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
379 | PyObject * _resultobj; | |
380 | wxShapeRegion * _arg0; | |
381 | wxString * _arg1; | |
382 | PyObject * _argo0 = 0; | |
383 | PyObject * _obj1 = 0; | |
384 | char *_kwnames[] = { "self","s", NULL }; | |
385 | ||
386 | self = self; | |
387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxShapeRegion_SetName",_kwnames,&_argo0,&_obj1)) | |
388 | return NULL; | |
389 | if (_argo0) { | |
390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetName. Expected _wxShapeRegion_p."); | |
393 | return NULL; | |
394 | } | |
395 | } | |
396 | { | |
185d7c3e RD |
397 | #if PYTHON_API_VERSION >= 1009 |
398 | char* tmpPtr; int tmpSize; | |
399 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 400 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
401 | return NULL; |
402 | } | |
403 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
404 | return NULL; | |
405 | _arg1 = new wxString(tmpPtr, tmpSize); | |
406 | #else | |
e91a9dfc RD |
407 | if (!PyString_Check(_obj1)) { |
408 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
409 | return NULL; | |
410 | } | |
185d7c3e RD |
411 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
412 | #endif | |
e91a9dfc RD |
413 | } |
414 | { | |
415 | wxPy_BEGIN_ALLOW_THREADS; | |
416 | wxShapeRegion_SetName(_arg0,*_arg1); | |
417 | ||
418 | wxPy_END_ALLOW_THREADS; | |
419 | } Py_INCREF(Py_None); | |
420 | _resultobj = Py_None; | |
421 | { | |
422 | if (_obj1) | |
423 | delete _arg1; | |
424 | } | |
425 | return _resultobj; | |
426 | } | |
427 | ||
428 | #define wxShapeRegion_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
429 | static PyObject *_wrap_wxShapeRegion_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
430 | PyObject * _resultobj; | |
431 | wxShapeRegion * _arg0; | |
432 | wxString * _arg1; | |
433 | PyObject * _argo0 = 0; | |
434 | PyObject * _obj1 = 0; | |
435 | char *_kwnames[] = { "self","col", NULL }; | |
436 | ||
437 | self = self; | |
438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxShapeRegion_SetColour",_kwnames,&_argo0,&_obj1)) | |
439 | return NULL; | |
440 | if (_argo0) { | |
441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetColour. Expected _wxShapeRegion_p."); | |
444 | return NULL; | |
445 | } | |
446 | } | |
447 | { | |
185d7c3e RD |
448 | #if PYTHON_API_VERSION >= 1009 |
449 | char* tmpPtr; int tmpSize; | |
450 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 451 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
452 | return NULL; |
453 | } | |
454 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
455 | return NULL; | |
456 | _arg1 = new wxString(tmpPtr, tmpSize); | |
457 | #else | |
e91a9dfc RD |
458 | if (!PyString_Check(_obj1)) { |
459 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
460 | return NULL; | |
461 | } | |
185d7c3e RD |
462 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
463 | #endif | |
e91a9dfc RD |
464 | } |
465 | { | |
466 | wxPy_BEGIN_ALLOW_THREADS; | |
467 | wxShapeRegion_SetColour(_arg0,*_arg1); | |
468 | ||
469 | wxPy_END_ALLOW_THREADS; | |
470 | } Py_INCREF(Py_None); | |
471 | _resultobj = Py_None; | |
472 | { | |
473 | if (_obj1) | |
474 | delete _arg1; | |
475 | } | |
476 | return _resultobj; | |
477 | } | |
478 | ||
479 | #define wxShapeRegion_GetText(_swigobj) (_swigobj->GetText()) | |
480 | static PyObject *_wrap_wxShapeRegion_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
481 | PyObject * _resultobj; | |
482 | wxString * _result; | |
483 | wxShapeRegion * _arg0; | |
484 | PyObject * _argo0 = 0; | |
485 | char *_kwnames[] = { "self", NULL }; | |
486 | ||
487 | self = self; | |
488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetText",_kwnames,&_argo0)) | |
489 | return NULL; | |
490 | if (_argo0) { | |
491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetText. Expected _wxShapeRegion_p."); | |
494 | return NULL; | |
495 | } | |
496 | } | |
497 | { | |
498 | wxPy_BEGIN_ALLOW_THREADS; | |
499 | _result = new wxString (wxShapeRegion_GetText(_arg0)); | |
500 | ||
501 | wxPy_END_ALLOW_THREADS; | |
502 | }{ | |
714d23b4 | 503 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
e91a9dfc RD |
504 | } |
505 | { | |
506 | delete _result; | |
507 | } | |
508 | return _resultobj; | |
509 | } | |
510 | ||
511 | #define wxShapeRegion_GetFont(_swigobj) (_swigobj->GetFont()) | |
512 | static PyObject *_wrap_wxShapeRegion_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
513 | PyObject * _resultobj; | |
514 | wxFont * _result; | |
515 | wxShapeRegion * _arg0; | |
516 | PyObject * _argo0 = 0; | |
517 | char *_kwnames[] = { "self", NULL }; | |
518 | char _ptemp[128]; | |
519 | ||
520 | self = self; | |
521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetFont",_kwnames,&_argo0)) | |
522 | return NULL; | |
523 | if (_argo0) { | |
524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetFont. Expected _wxShapeRegion_p."); | |
527 | return NULL; | |
528 | } | |
529 | } | |
530 | { | |
531 | wxPy_BEGIN_ALLOW_THREADS; | |
532 | _result = (wxFont *)wxShapeRegion_GetFont(_arg0); | |
533 | ||
534 | wxPy_END_ALLOW_THREADS; | |
535 | } if (_result) { | |
536 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
537 | _resultobj = Py_BuildValue("s",_ptemp); | |
538 | } else { | |
539 | Py_INCREF(Py_None); | |
540 | _resultobj = Py_None; | |
541 | } | |
542 | return _resultobj; | |
543 | } | |
544 | ||
545 | #define wxShapeRegion_GetMinSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetMinSize(_swigarg0,_swigarg1)) | |
546 | static PyObject *_wrap_wxShapeRegion_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
547 | PyObject * _resultobj; | |
548 | wxShapeRegion * _arg0; | |
549 | double * _arg1; | |
f6bcfd97 | 550 | double temp; |
e91a9dfc | 551 | double * _arg2; |
f6bcfd97 | 552 | double temp0; |
e91a9dfc | 553 | PyObject * _argo0 = 0; |
f6bcfd97 | 554 | char *_kwnames[] = { "self", NULL }; |
e91a9dfc RD |
555 | |
556 | self = self; | |
f6bcfd97 BP |
557 | { |
558 | _arg1 = &temp; | |
559 | } | |
560 | { | |
561 | _arg2 = &temp0; | |
562 | } | |
563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetMinSize",_kwnames,&_argo0)) | |
e91a9dfc RD |
564 | return NULL; |
565 | if (_argo0) { | |
566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetMinSize. Expected _wxShapeRegion_p."); | |
569 | return NULL; | |
570 | } | |
571 | } | |
e91a9dfc RD |
572 | { |
573 | wxPy_BEGIN_ALLOW_THREADS; | |
574 | wxShapeRegion_GetMinSize(_arg0,_arg1,_arg2); | |
575 | ||
576 | wxPy_END_ALLOW_THREADS; | |
577 | } Py_INCREF(Py_None); | |
578 | _resultobj = Py_None; | |
f6bcfd97 BP |
579 | { |
580 | PyObject *o; | |
581 | o = PyFloat_FromDouble((double) (*_arg1)); | |
582 | _resultobj = t_output_helper(_resultobj, o); | |
583 | } | |
584 | { | |
585 | PyObject *o; | |
586 | o = PyFloat_FromDouble((double) (*_arg2)); | |
587 | _resultobj = t_output_helper(_resultobj, o); | |
588 | } | |
e91a9dfc RD |
589 | return _resultobj; |
590 | } | |
591 | ||
592 | #define wxShapeRegion_GetProportion(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetProportion(_swigarg0,_swigarg1)) | |
593 | static PyObject *_wrap_wxShapeRegion_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
594 | PyObject * _resultobj; | |
595 | wxShapeRegion * _arg0; | |
596 | double * _arg1; | |
f6bcfd97 | 597 | double temp; |
e91a9dfc | 598 | double * _arg2; |
f6bcfd97 | 599 | double temp0; |
e91a9dfc | 600 | PyObject * _argo0 = 0; |
f6bcfd97 | 601 | char *_kwnames[] = { "self", NULL }; |
e91a9dfc RD |
602 | |
603 | self = self; | |
f6bcfd97 BP |
604 | { |
605 | _arg1 = &temp; | |
606 | } | |
607 | { | |
608 | _arg2 = &temp0; | |
609 | } | |
610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetProportion",_kwnames,&_argo0)) | |
e91a9dfc RD |
611 | return NULL; |
612 | if (_argo0) { | |
613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetProportion. Expected _wxShapeRegion_p."); | |
616 | return NULL; | |
617 | } | |
618 | } | |
e91a9dfc RD |
619 | { |
620 | wxPy_BEGIN_ALLOW_THREADS; | |
621 | wxShapeRegion_GetProportion(_arg0,_arg1,_arg2); | |
622 | ||
623 | wxPy_END_ALLOW_THREADS; | |
624 | } Py_INCREF(Py_None); | |
625 | _resultobj = Py_None; | |
f6bcfd97 BP |
626 | { |
627 | PyObject *o; | |
628 | o = PyFloat_FromDouble((double) (*_arg1)); | |
629 | _resultobj = t_output_helper(_resultobj, o); | |
630 | } | |
631 | { | |
632 | PyObject *o; | |
633 | o = PyFloat_FromDouble((double) (*_arg2)); | |
634 | _resultobj = t_output_helper(_resultobj, o); | |
635 | } | |
e91a9dfc RD |
636 | return _resultobj; |
637 | } | |
638 | ||
639 | #define wxShapeRegion_GetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
640 | static PyObject *_wrap_wxShapeRegion_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
641 | PyObject * _resultobj; | |
642 | wxShapeRegion * _arg0; | |
643 | double * _arg1; | |
f6bcfd97 | 644 | double temp; |
e91a9dfc | 645 | double * _arg2; |
f6bcfd97 | 646 | double temp0; |
e91a9dfc | 647 | PyObject * _argo0 = 0; |
f6bcfd97 | 648 | char *_kwnames[] = { "self", NULL }; |
e91a9dfc RD |
649 | |
650 | self = self; | |
f6bcfd97 BP |
651 | { |
652 | _arg1 = &temp; | |
653 | } | |
654 | { | |
655 | _arg2 = &temp0; | |
656 | } | |
657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetSize",_kwnames,&_argo0)) | |
e91a9dfc RD |
658 | return NULL; |
659 | if (_argo0) { | |
660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetSize. Expected _wxShapeRegion_p."); | |
663 | return NULL; | |
664 | } | |
665 | } | |
e91a9dfc RD |
666 | { |
667 | wxPy_BEGIN_ALLOW_THREADS; | |
668 | wxShapeRegion_GetSize(_arg0,_arg1,_arg2); | |
669 | ||
670 | wxPy_END_ALLOW_THREADS; | |
671 | } Py_INCREF(Py_None); | |
672 | _resultobj = Py_None; | |
f6bcfd97 BP |
673 | { |
674 | PyObject *o; | |
675 | o = PyFloat_FromDouble((double) (*_arg1)); | |
676 | _resultobj = t_output_helper(_resultobj, o); | |
677 | } | |
678 | { | |
679 | PyObject *o; | |
680 | o = PyFloat_FromDouble((double) (*_arg2)); | |
681 | _resultobj = t_output_helper(_resultobj, o); | |
682 | } | |
e91a9dfc RD |
683 | return _resultobj; |
684 | } | |
685 | ||
686 | #define wxShapeRegion_GetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
687 | static PyObject *_wrap_wxShapeRegion_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
688 | PyObject * _resultobj; | |
689 | wxShapeRegion * _arg0; | |
690 | double * _arg1; | |
f6bcfd97 | 691 | double temp; |
e91a9dfc | 692 | double * _arg2; |
f6bcfd97 | 693 | double temp0; |
e91a9dfc | 694 | PyObject * _argo0 = 0; |
f6bcfd97 | 695 | char *_kwnames[] = { "self", NULL }; |
e91a9dfc RD |
696 | |
697 | self = self; | |
f6bcfd97 BP |
698 | { |
699 | _arg1 = &temp; | |
700 | } | |
701 | { | |
702 | _arg2 = &temp0; | |
703 | } | |
704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetPosition",_kwnames,&_argo0)) | |
e91a9dfc RD |
705 | return NULL; |
706 | if (_argo0) { | |
707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetPosition. Expected _wxShapeRegion_p."); | |
710 | return NULL; | |
711 | } | |
712 | } | |
e91a9dfc RD |
713 | { |
714 | wxPy_BEGIN_ALLOW_THREADS; | |
715 | wxShapeRegion_GetPosition(_arg0,_arg1,_arg2); | |
716 | ||
717 | wxPy_END_ALLOW_THREADS; | |
718 | } Py_INCREF(Py_None); | |
719 | _resultobj = Py_None; | |
f6bcfd97 BP |
720 | { |
721 | PyObject *o; | |
722 | o = PyFloat_FromDouble((double) (*_arg1)); | |
723 | _resultobj = t_output_helper(_resultobj, o); | |
724 | } | |
725 | { | |
726 | PyObject *o; | |
727 | o = PyFloat_FromDouble((double) (*_arg2)); | |
728 | _resultobj = t_output_helper(_resultobj, o); | |
729 | } | |
e91a9dfc RD |
730 | return _resultobj; |
731 | } | |
732 | ||
733 | #define wxShapeRegion_GetFormatMode(_swigobj) (_swigobj->GetFormatMode()) | |
734 | static PyObject *_wrap_wxShapeRegion_GetFormatMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
735 | PyObject * _resultobj; | |
736 | int _result; | |
737 | wxShapeRegion * _arg0; | |
738 | PyObject * _argo0 = 0; | |
739 | char *_kwnames[] = { "self", NULL }; | |
740 | ||
741 | self = self; | |
742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetFormatMode",_kwnames,&_argo0)) | |
743 | return NULL; | |
744 | if (_argo0) { | |
745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetFormatMode. Expected _wxShapeRegion_p."); | |
748 | return NULL; | |
749 | } | |
750 | } | |
751 | { | |
752 | wxPy_BEGIN_ALLOW_THREADS; | |
753 | _result = (int )wxShapeRegion_GetFormatMode(_arg0); | |
754 | ||
755 | wxPy_END_ALLOW_THREADS; | |
756 | } _resultobj = Py_BuildValue("i",_result); | |
757 | return _resultobj; | |
758 | } | |
759 | ||
760 | #define wxShapeRegion_GetName(_swigobj) (_swigobj->GetName()) | |
761 | static PyObject *_wrap_wxShapeRegion_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
762 | PyObject * _resultobj; | |
763 | wxString * _result; | |
764 | wxShapeRegion * _arg0; | |
765 | PyObject * _argo0 = 0; | |
766 | char *_kwnames[] = { "self", NULL }; | |
767 | ||
768 | self = self; | |
769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetName",_kwnames,&_argo0)) | |
770 | return NULL; | |
771 | if (_argo0) { | |
772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetName. Expected _wxShapeRegion_p."); | |
775 | return NULL; | |
776 | } | |
777 | } | |
778 | { | |
779 | wxPy_BEGIN_ALLOW_THREADS; | |
780 | _result = new wxString (wxShapeRegion_GetName(_arg0)); | |
781 | ||
782 | wxPy_END_ALLOW_THREADS; | |
783 | }{ | |
714d23b4 | 784 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
e91a9dfc RD |
785 | } |
786 | { | |
787 | delete _result; | |
788 | } | |
789 | return _resultobj; | |
790 | } | |
791 | ||
792 | #define wxShapeRegion_GetColour(_swigobj) (_swigobj->GetColour()) | |
793 | static PyObject *_wrap_wxShapeRegion_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
794 | PyObject * _resultobj; | |
795 | wxString * _result; | |
796 | wxShapeRegion * _arg0; | |
797 | PyObject * _argo0 = 0; | |
798 | char *_kwnames[] = { "self", NULL }; | |
799 | ||
800 | self = self; | |
801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetColour",_kwnames,&_argo0)) | |
802 | return NULL; | |
803 | if (_argo0) { | |
804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetColour. Expected _wxShapeRegion_p."); | |
807 | return NULL; | |
808 | } | |
809 | } | |
810 | { | |
811 | wxPy_BEGIN_ALLOW_THREADS; | |
812 | _result = new wxString (wxShapeRegion_GetColour(_arg0)); | |
813 | ||
814 | wxPy_END_ALLOW_THREADS; | |
815 | }{ | |
714d23b4 | 816 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
e91a9dfc RD |
817 | } |
818 | { | |
819 | delete _result; | |
820 | } | |
821 | return _resultobj; | |
822 | } | |
823 | ||
824 | #define wxShapeRegion_GetActualColourObject(_swigobj) (_swigobj->GetActualColourObject()) | |
825 | static PyObject *_wrap_wxShapeRegion_GetActualColourObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
826 | PyObject * _resultobj; | |
827 | wxColour * _result; | |
828 | wxShapeRegion * _arg0; | |
829 | PyObject * _argo0 = 0; | |
830 | char *_kwnames[] = { "self", NULL }; | |
831 | char _ptemp[128]; | |
832 | ||
833 | self = self; | |
834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetActualColourObject",_kwnames,&_argo0)) | |
835 | return NULL; | |
836 | if (_argo0) { | |
837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetActualColourObject. Expected _wxShapeRegion_p."); | |
840 | return NULL; | |
841 | } | |
842 | } | |
843 | { | |
844 | wxPy_BEGIN_ALLOW_THREADS; | |
845 | _result = (wxColour *)wxShapeRegion_GetActualColourObject(_arg0); | |
846 | ||
847 | wxPy_END_ALLOW_THREADS; | |
848 | } if (_result) { | |
849 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
850 | _resultobj = Py_BuildValue("s",_ptemp); | |
851 | } else { | |
852 | Py_INCREF(Py_None); | |
853 | _resultobj = Py_None; | |
854 | } | |
855 | return _resultobj; | |
856 | } | |
857 | ||
858 | #define wxShapeRegion_GetFormattedText(_swigobj) (_swigobj->GetFormattedText()) | |
859 | static PyObject *_wrap_wxShapeRegion_GetFormattedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
860 | PyObject * _resultobj; | |
861 | wxList * _result; | |
862 | wxShapeRegion * _arg0; | |
863 | PyObject * _argo0 = 0; | |
864 | char *_kwnames[] = { "self", NULL }; | |
865 | char _ptemp[128]; | |
866 | ||
867 | self = self; | |
868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetFormattedText",_kwnames,&_argo0)) | |
869 | return NULL; | |
870 | if (_argo0) { | |
871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetFormattedText. Expected _wxShapeRegion_p."); | |
874 | return NULL; | |
875 | } | |
876 | } | |
877 | { | |
878 | wxPy_BEGIN_ALLOW_THREADS; | |
879 | wxList & _result_ref = wxShapeRegion_GetFormattedText(_arg0); | |
880 | _result = (wxList *) &_result_ref; | |
881 | ||
882 | wxPy_END_ALLOW_THREADS; | |
883 | } if (_result) { | |
884 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxList_p"); | |
885 | _resultobj = Py_BuildValue("s",_ptemp); | |
886 | } else { | |
887 | Py_INCREF(Py_None); | |
888 | _resultobj = Py_None; | |
889 | } | |
890 | return _resultobj; | |
891 | } | |
892 | ||
893 | #define wxShapeRegion_GetPenColour(_swigobj) (_swigobj->GetPenColour()) | |
894 | static PyObject *_wrap_wxShapeRegion_GetPenColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
895 | PyObject * _resultobj; | |
896 | wxString * _result; | |
897 | wxShapeRegion * _arg0; | |
898 | PyObject * _argo0 = 0; | |
899 | char *_kwnames[] = { "self", NULL }; | |
900 | ||
901 | self = self; | |
902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetPenColour",_kwnames,&_argo0)) | |
903 | return NULL; | |
904 | if (_argo0) { | |
905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetPenColour. Expected _wxShapeRegion_p."); | |
908 | return NULL; | |
909 | } | |
910 | } | |
911 | { | |
912 | wxPy_BEGIN_ALLOW_THREADS; | |
913 | _result = new wxString (wxShapeRegion_GetPenColour(_arg0)); | |
914 | ||
915 | wxPy_END_ALLOW_THREADS; | |
916 | }{ | |
714d23b4 | 917 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
e91a9dfc RD |
918 | } |
919 | { | |
920 | delete _result; | |
921 | } | |
922 | return _resultobj; | |
923 | } | |
924 | ||
925 | #define wxShapeRegion_GetPenStyle(_swigobj) (_swigobj->GetPenStyle()) | |
926 | static PyObject *_wrap_wxShapeRegion_GetPenStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
927 | PyObject * _resultobj; | |
928 | int _result; | |
929 | wxShapeRegion * _arg0; | |
930 | PyObject * _argo0 = 0; | |
931 | char *_kwnames[] = { "self", NULL }; | |
932 | ||
933 | self = self; | |
934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetPenStyle",_kwnames,&_argo0)) | |
935 | return NULL; | |
936 | if (_argo0) { | |
937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetPenStyle. Expected _wxShapeRegion_p."); | |
940 | return NULL; | |
941 | } | |
942 | } | |
943 | { | |
944 | wxPy_BEGIN_ALLOW_THREADS; | |
945 | _result = (int )wxShapeRegion_GetPenStyle(_arg0); | |
946 | ||
947 | wxPy_END_ALLOW_THREADS; | |
948 | } _resultobj = Py_BuildValue("i",_result); | |
949 | return _resultobj; | |
950 | } | |
951 | ||
952 | #define wxShapeRegion_SetPenStyle(_swigobj,_swigarg0) (_swigobj->SetPenStyle(_swigarg0)) | |
953 | static PyObject *_wrap_wxShapeRegion_SetPenStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
954 | PyObject * _resultobj; | |
955 | wxShapeRegion * _arg0; | |
956 | int _arg1; | |
957 | PyObject * _argo0 = 0; | |
958 | char *_kwnames[] = { "self","style", NULL }; | |
959 | ||
960 | self = self; | |
961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxShapeRegion_SetPenStyle",_kwnames,&_argo0,&_arg1)) | |
962 | return NULL; | |
963 | if (_argo0) { | |
964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetPenStyle. Expected _wxShapeRegion_p."); | |
967 | return NULL; | |
968 | } | |
969 | } | |
970 | { | |
971 | wxPy_BEGIN_ALLOW_THREADS; | |
972 | wxShapeRegion_SetPenStyle(_arg0,_arg1); | |
973 | ||
974 | wxPy_END_ALLOW_THREADS; | |
975 | } Py_INCREF(Py_None); | |
976 | _resultobj = Py_None; | |
977 | return _resultobj; | |
978 | } | |
979 | ||
980 | #define wxShapeRegion_SetPenColour(_swigobj,_swigarg0) (_swigobj->SetPenColour(_swigarg0)) | |
981 | static PyObject *_wrap_wxShapeRegion_SetPenColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
982 | PyObject * _resultobj; | |
983 | wxShapeRegion * _arg0; | |
984 | wxString * _arg1; | |
985 | PyObject * _argo0 = 0; | |
986 | PyObject * _obj1 = 0; | |
987 | char *_kwnames[] = { "self","col", NULL }; | |
988 | ||
989 | self = self; | |
990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxShapeRegion_SetPenColour",_kwnames,&_argo0,&_obj1)) | |
991 | return NULL; | |
992 | if (_argo0) { | |
993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_SetPenColour. Expected _wxShapeRegion_p."); | |
996 | return NULL; | |
997 | } | |
998 | } | |
999 | { | |
185d7c3e RD |
1000 | #if PYTHON_API_VERSION >= 1009 |
1001 | char* tmpPtr; int tmpSize; | |
1002 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1003 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1004 | return NULL; |
1005 | } | |
1006 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1007 | return NULL; | |
1008 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1009 | #else | |
e91a9dfc RD |
1010 | if (!PyString_Check(_obj1)) { |
1011 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1012 | return NULL; | |
1013 | } | |
185d7c3e RD |
1014 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1015 | #endif | |
e91a9dfc RD |
1016 | } |
1017 | { | |
1018 | wxPy_BEGIN_ALLOW_THREADS; | |
1019 | wxShapeRegion_SetPenColour(_arg0,*_arg1); | |
1020 | ||
1021 | wxPy_END_ALLOW_THREADS; | |
1022 | } Py_INCREF(Py_None); | |
1023 | _resultobj = Py_None; | |
1024 | { | |
1025 | if (_obj1) | |
1026 | delete _arg1; | |
1027 | } | |
1028 | return _resultobj; | |
1029 | } | |
1030 | ||
1031 | #define wxShapeRegion_GetActualPen(_swigobj) (_swigobj->GetActualPen()) | |
1032 | static PyObject *_wrap_wxShapeRegion_GetActualPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1033 | PyObject * _resultobj; | |
1034 | wxPen * _result; | |
1035 | wxShapeRegion * _arg0; | |
1036 | PyObject * _argo0 = 0; | |
1037 | char *_kwnames[] = { "self", NULL }; | |
1038 | char _ptemp[128]; | |
1039 | ||
1040 | self = self; | |
1041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetActualPen",_kwnames,&_argo0)) | |
1042 | return NULL; | |
1043 | if (_argo0) { | |
1044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
1046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetActualPen. Expected _wxShapeRegion_p."); | |
1047 | return NULL; | |
1048 | } | |
1049 | } | |
1050 | { | |
1051 | wxPy_BEGIN_ALLOW_THREADS; | |
1052 | _result = (wxPen *)wxShapeRegion_GetActualPen(_arg0); | |
1053 | ||
1054 | wxPy_END_ALLOW_THREADS; | |
1055 | } if (_result) { | |
1056 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
1057 | _resultobj = Py_BuildValue("s",_ptemp); | |
1058 | } else { | |
1059 | Py_INCREF(Py_None); | |
1060 | _resultobj = Py_None; | |
1061 | } | |
1062 | return _resultobj; | |
1063 | } | |
1064 | ||
1065 | #define wxShapeRegion_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1066 | static PyObject *_wrap_wxShapeRegion_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1067 | PyObject * _resultobj; | |
1068 | double _result; | |
1069 | wxShapeRegion * _arg0; | |
1070 | PyObject * _argo0 = 0; | |
1071 | char *_kwnames[] = { "self", NULL }; | |
1072 | ||
1073 | self = self; | |
1074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetWidth",_kwnames,&_argo0)) | |
1075 | return NULL; | |
1076 | if (_argo0) { | |
1077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
1079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetWidth. Expected _wxShapeRegion_p."); | |
1080 | return NULL; | |
1081 | } | |
1082 | } | |
1083 | { | |
1084 | wxPy_BEGIN_ALLOW_THREADS; | |
1085 | _result = (double )wxShapeRegion_GetWidth(_arg0); | |
1086 | ||
1087 | wxPy_END_ALLOW_THREADS; | |
1088 | } _resultobj = Py_BuildValue("d",_result); | |
1089 | return _resultobj; | |
1090 | } | |
1091 | ||
1092 | #define wxShapeRegion_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1093 | static PyObject *_wrap_wxShapeRegion_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1094 | PyObject * _resultobj; | |
1095 | double _result; | |
1096 | wxShapeRegion * _arg0; | |
1097 | PyObject * _argo0 = 0; | |
1098 | char *_kwnames[] = { "self", NULL }; | |
1099 | ||
1100 | self = self; | |
1101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_GetHeight",_kwnames,&_argo0)) | |
1102 | return NULL; | |
1103 | if (_argo0) { | |
1104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
1106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_GetHeight. Expected _wxShapeRegion_p."); | |
1107 | return NULL; | |
1108 | } | |
1109 | } | |
1110 | { | |
1111 | wxPy_BEGIN_ALLOW_THREADS; | |
1112 | _result = (double )wxShapeRegion_GetHeight(_arg0); | |
1113 | ||
1114 | wxPy_END_ALLOW_THREADS; | |
1115 | } _resultobj = Py_BuildValue("d",_result); | |
1116 | return _resultobj; | |
1117 | } | |
1118 | ||
1119 | #define wxShapeRegion_ClearText(_swigobj) (_swigobj->ClearText()) | |
1120 | static PyObject *_wrap_wxShapeRegion_ClearText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1121 | PyObject * _resultobj; | |
1122 | wxShapeRegion * _arg0; | |
1123 | PyObject * _argo0 = 0; | |
1124 | char *_kwnames[] = { "self", NULL }; | |
1125 | ||
1126 | self = self; | |
1127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxShapeRegion_ClearText",_kwnames,&_argo0)) | |
1128 | return NULL; | |
1129 | if (_argo0) { | |
1130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxShapeRegion_p")) { | |
1132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShapeRegion_ClearText. Expected _wxShapeRegion_p."); | |
1133 | return NULL; | |
1134 | } | |
1135 | } | |
1136 | { | |
1137 | wxPy_BEGIN_ALLOW_THREADS; | |
1138 | wxShapeRegion_ClearText(_arg0); | |
1139 | ||
1140 | wxPy_END_ALLOW_THREADS; | |
1141 | } Py_INCREF(Py_None); | |
1142 | _resultobj = Py_None; | |
1143 | return _resultobj; | |
1144 | } | |
1145 | ||
9416aa89 RD |
1146 | static void *SwigwxPyShapeEvtHandlerTowxObject(void *ptr) { |
1147 | wxPyShapeEvtHandler *src; | |
1148 | wxObject *dest; | |
1149 | src = (wxPyShapeEvtHandler *) ptr; | |
1150 | dest = (wxObject *) src; | |
1151 | return (void *) dest; | |
1152 | } | |
1153 | ||
e91a9dfc RD |
1154 | #define new_wxPyShapeEvtHandler(_swigarg0,_swigarg1) (new wxPyShapeEvtHandler(_swigarg0,_swigarg1)) |
1155 | static PyObject *_wrap_new_wxPyShapeEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1156 | PyObject * _resultobj; | |
1157 | wxPyShapeEvtHandler * _result; | |
1158 | wxPyShapeEvtHandler * _arg0 = (wxPyShapeEvtHandler *) NULL; | |
1159 | wxPyShape * _arg1 = (wxPyShape *) NULL; | |
1160 | PyObject * _argo0 = 0; | |
1161 | PyObject * _argo1 = 0; | |
1162 | char *_kwnames[] = { "prev","shape", NULL }; | |
1163 | char _ptemp[128]; | |
1164 | ||
1165 | self = self; | |
1166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OO:new_wxPyShapeEvtHandler",_kwnames,&_argo0,&_argo1)) | |
1167 | return NULL; | |
1168 | if (_argo0) { | |
1169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyShapeEvtHandler. Expected _wxPyShapeEvtHandler_p."); | |
1172 | return NULL; | |
1173 | } | |
1174 | } | |
1175 | if (_argo1) { | |
1176 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1177 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) { | |
1178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPyShapeEvtHandler. Expected _wxPyShape_p."); | |
1179 | return NULL; | |
1180 | } | |
1181 | } | |
1182 | { | |
1183 | wxPy_BEGIN_ALLOW_THREADS; | |
1184 | _result = (wxPyShapeEvtHandler *)new_wxPyShapeEvtHandler(_arg0,_arg1); | |
1185 | ||
1186 | wxPy_END_ALLOW_THREADS; | |
1187 | } if (_result) { | |
1188 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyShapeEvtHandler_p"); | |
1189 | _resultobj = Py_BuildValue("s",_ptemp); | |
1190 | } else { | |
1191 | Py_INCREF(Py_None); | |
1192 | _resultobj = Py_None; | |
1193 | } | |
1194 | return _resultobj; | |
1195 | } | |
1196 | ||
f6bcfd97 | 1197 | #define wxPyShapeEvtHandler__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
e91a9dfc RD |
1198 | static PyObject *_wrap_wxPyShapeEvtHandler__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
1199 | PyObject * _resultobj; | |
1200 | wxPyShapeEvtHandler * _arg0; | |
1201 | PyObject * _arg1; | |
f6bcfd97 | 1202 | PyObject * _arg2; |
e91a9dfc RD |
1203 | PyObject * _argo0 = 0; |
1204 | PyObject * _obj1 = 0; | |
f6bcfd97 BP |
1205 | PyObject * _obj2 = 0; |
1206 | char *_kwnames[] = { "self","self","_class", NULL }; | |
e91a9dfc RD |
1207 | |
1208 | self = self; | |
f6bcfd97 | 1209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyShapeEvtHandler__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
e91a9dfc RD |
1210 | return NULL; |
1211 | if (_argo0) { | |
1212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler__setSelf. Expected _wxPyShapeEvtHandler_p."); | |
1215 | return NULL; | |
1216 | } | |
1217 | } | |
1218 | { | |
1219 | _arg1 = _obj1; | |
1220 | } | |
f6bcfd97 BP |
1221 | { |
1222 | _arg2 = _obj2; | |
1223 | } | |
e91a9dfc RD |
1224 | { |
1225 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1226 | wxPyShapeEvtHandler__setSelf(_arg0,_arg1,_arg2); |
e91a9dfc RD |
1227 | |
1228 | wxPy_END_ALLOW_THREADS; | |
1229 | } Py_INCREF(Py_None); | |
1230 | _resultobj = Py_None; | |
1231 | return _resultobj; | |
1232 | } | |
1233 | ||
1234 | static void wxPyShapeEvtHandler_Destroy(wxPyShapeEvtHandler *self) { delete self; } | |
1235 | static PyObject *_wrap_wxPyShapeEvtHandler_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1236 | PyObject * _resultobj; | |
1237 | wxPyShapeEvtHandler * _arg0; | |
1238 | PyObject * _argo0 = 0; | |
1239 | char *_kwnames[] = { "self", NULL }; | |
1240 | ||
1241 | self = self; | |
1242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeEvtHandler_Destroy",_kwnames,&_argo0)) | |
1243 | return NULL; | |
1244 | if (_argo0) { | |
1245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_Destroy. Expected _wxPyShapeEvtHandler_p."); | |
1248 | return NULL; | |
1249 | } | |
1250 | } | |
1251 | { | |
1252 | wxPy_BEGIN_ALLOW_THREADS; | |
1253 | wxPyShapeEvtHandler_Destroy(_arg0); | |
1254 | ||
1255 | wxPy_END_ALLOW_THREADS; | |
1256 | } Py_INCREF(Py_None); | |
1257 | _resultobj = Py_None; | |
1258 | return _resultobj; | |
1259 | } | |
1260 | ||
1261 | #define wxPyShapeEvtHandler_SetShape(_swigobj,_swigarg0) (_swigobj->SetShape(_swigarg0)) | |
1262 | static PyObject *_wrap_wxPyShapeEvtHandler_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1263 | PyObject * _resultobj; | |
1264 | wxPyShapeEvtHandler * _arg0; | |
1265 | wxPyShape * _arg1; | |
1266 | PyObject * _argo0 = 0; | |
1267 | PyObject * _argo1 = 0; | |
1268 | char *_kwnames[] = { "self","sh", NULL }; | |
1269 | ||
1270 | self = self; | |
1271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_SetShape",_kwnames,&_argo0,&_argo1)) | |
1272 | return NULL; | |
1273 | if (_argo0) { | |
1274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_SetShape. Expected _wxPyShapeEvtHandler_p."); | |
1277 | return NULL; | |
1278 | } | |
1279 | } | |
1280 | if (_argo1) { | |
1281 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1282 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) { | |
1283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_SetShape. Expected _wxPyShape_p."); | |
1284 | return NULL; | |
1285 | } | |
1286 | } | |
1287 | { | |
1288 | wxPy_BEGIN_ALLOW_THREADS; | |
1289 | wxPyShapeEvtHandler_SetShape(_arg0,_arg1); | |
1290 | ||
1291 | wxPy_END_ALLOW_THREADS; | |
1292 | } Py_INCREF(Py_None); | |
1293 | _resultobj = Py_None; | |
1294 | return _resultobj; | |
1295 | } | |
1296 | ||
1297 | #define wxPyShapeEvtHandler_GetShape(_swigobj) (_swigobj->GetShape()) | |
1298 | static PyObject *_wrap_wxPyShapeEvtHandler_GetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1299 | PyObject * _resultobj; | |
1300 | wxPyShape * _result; | |
1301 | wxPyShapeEvtHandler * _arg0; | |
1302 | PyObject * _argo0 = 0; | |
1303 | char *_kwnames[] = { "self", NULL }; | |
e91a9dfc RD |
1304 | |
1305 | self = self; | |
1306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeEvtHandler_GetShape",_kwnames,&_argo0)) | |
1307 | return NULL; | |
1308 | if (_argo0) { | |
1309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_GetShape. Expected _wxPyShapeEvtHandler_p."); | |
1312 | return NULL; | |
1313 | } | |
1314 | } | |
1315 | { | |
1316 | wxPy_BEGIN_ALLOW_THREADS; | |
1317 | _result = (wxPyShape *)wxPyShapeEvtHandler_GetShape(_arg0); | |
1318 | ||
1319 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 1320 | }{ _resultobj = wxPyMake_wxObject(_result); } |
e91a9dfc RD |
1321 | return _resultobj; |
1322 | } | |
1323 | ||
1324 | #define wxPyShapeEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
1325 | static PyObject *_wrap_wxPyShapeEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1326 | PyObject * _resultobj; | |
1327 | wxPyShapeEvtHandler * _arg0; | |
1328 | wxPyShapeEvtHandler * _arg1; | |
1329 | PyObject * _argo0 = 0; | |
1330 | PyObject * _argo1 = 0; | |
1331 | char *_kwnames[] = { "self","handler", NULL }; | |
1332 | ||
1333 | self = self; | |
1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
1335 | return NULL; | |
1336 | if (_argo0) { | |
1337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_SetPreviousHandler. Expected _wxPyShapeEvtHandler_p."); | |
1340 | return NULL; | |
1341 | } | |
1342 | } | |
1343 | if (_argo1) { | |
1344 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1345 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShapeEvtHandler_p")) { | |
1346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_SetPreviousHandler. Expected _wxPyShapeEvtHandler_p."); | |
1347 | return NULL; | |
1348 | } | |
1349 | } | |
1350 | { | |
1351 | wxPy_BEGIN_ALLOW_THREADS; | |
1352 | wxPyShapeEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
1353 | ||
1354 | wxPy_END_ALLOW_THREADS; | |
1355 | } Py_INCREF(Py_None); | |
1356 | _resultobj = Py_None; | |
1357 | return _resultobj; | |
1358 | } | |
1359 | ||
1360 | #define wxPyShapeEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
1361 | static PyObject *_wrap_wxPyShapeEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1362 | PyObject * _resultobj; | |
1363 | wxPyShapeEvtHandler * _result; | |
1364 | wxPyShapeEvtHandler * _arg0; | |
1365 | PyObject * _argo0 = 0; | |
1366 | char *_kwnames[] = { "self", NULL }; | |
e91a9dfc RD |
1367 | |
1368 | self = self; | |
1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
1370 | return NULL; | |
1371 | if (_argo0) { | |
1372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_GetPreviousHandler. Expected _wxPyShapeEvtHandler_p."); | |
1375 | return NULL; | |
1376 | } | |
1377 | } | |
1378 | { | |
1379 | wxPy_BEGIN_ALLOW_THREADS; | |
1380 | _result = (wxPyShapeEvtHandler *)wxPyShapeEvtHandler_GetPreviousHandler(_arg0); | |
1381 | ||
1382 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 1383 | }{ _resultobj = wxPyMake_wxObject(_result); } |
e91a9dfc RD |
1384 | return _resultobj; |
1385 | } | |
1386 | ||
1387 | #define wxPyShapeEvtHandler_CreateNewCopy(_swigobj) (_swigobj->CreateNewCopy()) | |
1388 | static PyObject *_wrap_wxPyShapeEvtHandler_CreateNewCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1389 | PyObject * _resultobj; | |
1390 | wxPyShapeEvtHandler * _result; | |
1391 | wxPyShapeEvtHandler * _arg0; | |
1392 | PyObject * _argo0 = 0; | |
1393 | char *_kwnames[] = { "self", NULL }; | |
e91a9dfc RD |
1394 | |
1395 | self = self; | |
1396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeEvtHandler_CreateNewCopy",_kwnames,&_argo0)) | |
1397 | return NULL; | |
1398 | if (_argo0) { | |
1399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_CreateNewCopy. Expected _wxPyShapeEvtHandler_p."); | |
1402 | return NULL; | |
1403 | } | |
1404 | } | |
1405 | { | |
1406 | wxPy_BEGIN_ALLOW_THREADS; | |
1407 | _result = (wxPyShapeEvtHandler *)wxPyShapeEvtHandler_CreateNewCopy(_arg0); | |
1408 | ||
1409 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 1410 | }{ _resultobj = wxPyMake_wxObject(_result); } |
e91a9dfc RD |
1411 | return _resultobj; |
1412 | } | |
1413 | ||
1414 | #define wxPyShapeEvtHandler_base_OnDelete(_swigobj) (_swigobj->base_OnDelete()) | |
1415 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1416 | PyObject * _resultobj; | |
1417 | wxPyShapeEvtHandler * _arg0; | |
1418 | PyObject * _argo0 = 0; | |
1419 | char *_kwnames[] = { "self", NULL }; | |
1420 | ||
1421 | self = self; | |
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShapeEvtHandler_base_OnDelete",_kwnames,&_argo0)) | |
1423 | return NULL; | |
1424 | if (_argo0) { | |
1425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnDelete. Expected _wxPyShapeEvtHandler_p."); | |
1428 | return NULL; | |
1429 | } | |
1430 | } | |
1431 | { | |
1432 | wxPy_BEGIN_ALLOW_THREADS; | |
1433 | wxPyShapeEvtHandler_base_OnDelete(_arg0); | |
1434 | ||
1435 | wxPy_END_ALLOW_THREADS; | |
1436 | } Py_INCREF(Py_None); | |
1437 | _resultobj = Py_None; | |
1438 | return _resultobj; | |
1439 | } | |
1440 | ||
1441 | #define wxPyShapeEvtHandler_base_OnDraw(_swigobj,_swigarg0) (_swigobj->base_OnDraw(_swigarg0)) | |
1442 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1443 | PyObject * _resultobj; | |
1444 | wxPyShapeEvtHandler * _arg0; | |
1445 | wxDC * _arg1; | |
1446 | PyObject * _argo0 = 0; | |
1447 | PyObject * _argo1 = 0; | |
1448 | char *_kwnames[] = { "self","dc", NULL }; | |
1449 | ||
1450 | self = self; | |
1451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_base_OnDraw",_kwnames,&_argo0,&_argo1)) | |
1452 | return NULL; | |
1453 | if (_argo0) { | |
1454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnDraw. Expected _wxPyShapeEvtHandler_p."); | |
1457 | return NULL; | |
1458 | } | |
1459 | } | |
1460 | if (_argo1) { | |
1461 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1462 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
1463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnDraw. Expected _wxDC_p."); | |
1464 | return NULL; | |
1465 | } | |
1466 | } | |
1467 | { | |
1468 | wxPy_BEGIN_ALLOW_THREADS; | |
1469 | wxPyShapeEvtHandler_base_OnDraw(_arg0,*_arg1); | |
1470 | ||
1471 | wxPy_END_ALLOW_THREADS; | |
1472 | } Py_INCREF(Py_None); | |
1473 | _resultobj = Py_None; | |
1474 | return _resultobj; | |
1475 | } | |
1476 | ||
1477 | #define wxPyShapeEvtHandler_base_OnDrawContents(_swigobj,_swigarg0) (_swigobj->base_OnDrawContents(_swigarg0)) | |
1478 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1479 | PyObject * _resultobj; | |
1480 | wxPyShapeEvtHandler * _arg0; | |
1481 | wxDC * _arg1; | |
1482 | PyObject * _argo0 = 0; | |
1483 | PyObject * _argo1 = 0; | |
1484 | char *_kwnames[] = { "self","dc", NULL }; | |
1485 | ||
1486 | self = self; | |
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_base_OnDrawContents",_kwnames,&_argo0,&_argo1)) | |
1488 | return NULL; | |
1489 | if (_argo0) { | |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnDrawContents. Expected _wxPyShapeEvtHandler_p."); | |
1493 | return NULL; | |
1494 | } | |
1495 | } | |
1496 | if (_argo1) { | |
1497 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1498 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
1499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnDrawContents. Expected _wxDC_p."); | |
1500 | return NULL; | |
1501 | } | |
1502 | } | |
1503 | { | |
1504 | wxPy_BEGIN_ALLOW_THREADS; | |
1505 | wxPyShapeEvtHandler_base_OnDrawContents(_arg0,*_arg1); | |
1506 | ||
1507 | wxPy_END_ALLOW_THREADS; | |
1508 | } Py_INCREF(Py_None); | |
1509 | _resultobj = Py_None; | |
1510 | return _resultobj; | |
1511 | } | |
1512 | ||
1513 | #define wxPyShapeEvtHandler_base_OnDrawBranches(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrawBranches(_swigarg0,_swigarg1)) | |
1514 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1515 | PyObject * _resultobj; | |
1516 | wxPyShapeEvtHandler * _arg0; | |
1517 | wxDC * _arg1; | |
1518 | bool _arg2 = (bool ) FALSE; | |
1519 | PyObject * _argo0 = 0; | |
1520 | PyObject * _argo1 = 0; | |
1521 | int tempbool2 = (int) FALSE; | |
1522 | char *_kwnames[] = { "self","dc","erase", NULL }; | |
1523 | ||
1524 | self = self; | |
1525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyShapeEvtHandler_base_OnDrawBranches",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1526 | return NULL; | |
1527 | if (_argo0) { | |
1528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnDrawBranches. Expected _wxPyShapeEvtHandler_p."); | |
1531 | return NULL; | |
1532 | } | |
1533 | } | |
1534 | if (_argo1) { | |
1535 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1536 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
1537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnDrawBranches. Expected _wxDC_p."); | |
1538 | return NULL; | |
1539 | } | |
1540 | } | |
1541 | _arg2 = (bool ) tempbool2; | |
1542 | { | |
1543 | wxPy_BEGIN_ALLOW_THREADS; | |
1544 | wxPyShapeEvtHandler_base_OnDrawBranches(_arg0,*_arg1,_arg2); | |
1545 | ||
1546 | wxPy_END_ALLOW_THREADS; | |
1547 | } Py_INCREF(Py_None); | |
1548 | _resultobj = Py_None; | |
1549 | return _resultobj; | |
1550 | } | |
1551 | ||
1552 | #define wxPyShapeEvtHandler_base_OnMoveLinks(_swigobj,_swigarg0) (_swigobj->base_OnMoveLinks(_swigarg0)) | |
1553 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1554 | PyObject * _resultobj; | |
1555 | wxPyShapeEvtHandler * _arg0; | |
1556 | wxDC * _arg1; | |
1557 | PyObject * _argo0 = 0; | |
1558 | PyObject * _argo1 = 0; | |
1559 | char *_kwnames[] = { "self","dc", NULL }; | |
1560 | ||
1561 | self = self; | |
1562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_base_OnMoveLinks",_kwnames,&_argo0,&_argo1)) | |
1563 | return NULL; | |
1564 | if (_argo0) { | |
1565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnMoveLinks. Expected _wxPyShapeEvtHandler_p."); | |
1568 | return NULL; | |
1569 | } | |
1570 | } | |
1571 | if (_argo1) { | |
1572 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1573 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
1574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnMoveLinks. Expected _wxDC_p."); | |
1575 | return NULL; | |
1576 | } | |
1577 | } | |
1578 | { | |
1579 | wxPy_BEGIN_ALLOW_THREADS; | |
1580 | wxPyShapeEvtHandler_base_OnMoveLinks(_arg0,*_arg1); | |
1581 | ||
1582 | wxPy_END_ALLOW_THREADS; | |
1583 | } Py_INCREF(Py_None); | |
1584 | _resultobj = Py_None; | |
1585 | return _resultobj; | |
1586 | } | |
1587 | ||
1588 | #define wxPyShapeEvtHandler_base_OnErase(_swigobj,_swigarg0) (_swigobj->base_OnErase(_swigarg0)) | |
1589 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1590 | PyObject * _resultobj; | |
1591 | wxPyShapeEvtHandler * _arg0; | |
1592 | wxDC * _arg1; | |
1593 | PyObject * _argo0 = 0; | |
1594 | PyObject * _argo1 = 0; | |
1595 | char *_kwnames[] = { "self","dc", NULL }; | |
1596 | ||
1597 | self = self; | |
1598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_base_OnErase",_kwnames,&_argo0,&_argo1)) | |
1599 | return NULL; | |
1600 | if (_argo0) { | |
1601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnErase. Expected _wxPyShapeEvtHandler_p."); | |
1604 | return NULL; | |
1605 | } | |
1606 | } | |
1607 | if (_argo1) { | |
1608 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1609 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
1610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnErase. Expected _wxDC_p."); | |
1611 | return NULL; | |
1612 | } | |
1613 | } | |
1614 | { | |
1615 | wxPy_BEGIN_ALLOW_THREADS; | |
1616 | wxPyShapeEvtHandler_base_OnErase(_arg0,*_arg1); | |
1617 | ||
1618 | wxPy_END_ALLOW_THREADS; | |
1619 | } Py_INCREF(Py_None); | |
1620 | _resultobj = Py_None; | |
1621 | return _resultobj; | |
1622 | } | |
1623 | ||
1624 | #define wxPyShapeEvtHandler_base_OnEraseContents(_swigobj,_swigarg0) (_swigobj->base_OnEraseContents(_swigarg0)) | |
1625 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1626 | PyObject * _resultobj; | |
1627 | wxPyShapeEvtHandler * _arg0; | |
1628 | wxDC * _arg1; | |
1629 | PyObject * _argo0 = 0; | |
1630 | PyObject * _argo1 = 0; | |
1631 | char *_kwnames[] = { "self","dc", NULL }; | |
1632 | ||
1633 | self = self; | |
1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_base_OnEraseContents",_kwnames,&_argo0,&_argo1)) | |
1635 | return NULL; | |
1636 | if (_argo0) { | |
1637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnEraseContents. Expected _wxPyShapeEvtHandler_p."); | |
1640 | return NULL; | |
1641 | } | |
1642 | } | |
1643 | if (_argo1) { | |
1644 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1645 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
1646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnEraseContents. Expected _wxDC_p."); | |
1647 | return NULL; | |
1648 | } | |
1649 | } | |
1650 | { | |
1651 | wxPy_BEGIN_ALLOW_THREADS; | |
1652 | wxPyShapeEvtHandler_base_OnEraseContents(_arg0,*_arg1); | |
1653 | ||
1654 | wxPy_END_ALLOW_THREADS; | |
1655 | } Py_INCREF(Py_None); | |
1656 | _resultobj = Py_None; | |
1657 | return _resultobj; | |
1658 | } | |
1659 | ||
1660 | #define wxPyShapeEvtHandler_base_OnHighlight(_swigobj,_swigarg0) (_swigobj->base_OnHighlight(_swigarg0)) | |
1661 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1662 | PyObject * _resultobj; | |
1663 | wxPyShapeEvtHandler * _arg0; | |
1664 | wxDC * _arg1; | |
1665 | PyObject * _argo0 = 0; | |
1666 | PyObject * _argo1 = 0; | |
1667 | char *_kwnames[] = { "self","dc", NULL }; | |
1668 | ||
1669 | self = self; | |
1670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_base_OnHighlight",_kwnames,&_argo0,&_argo1)) | |
1671 | return NULL; | |
1672 | if (_argo0) { | |
1673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnHighlight. Expected _wxPyShapeEvtHandler_p."); | |
1676 | return NULL; | |
1677 | } | |
1678 | } | |
1679 | if (_argo1) { | |
1680 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1681 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
1682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnHighlight. Expected _wxDC_p."); | |
1683 | return NULL; | |
1684 | } | |
1685 | } | |
1686 | { | |
1687 | wxPy_BEGIN_ALLOW_THREADS; | |
1688 | wxPyShapeEvtHandler_base_OnHighlight(_arg0,*_arg1); | |
1689 | ||
1690 | wxPy_END_ALLOW_THREADS; | |
1691 | } Py_INCREF(Py_None); | |
1692 | _resultobj = Py_None; | |
1693 | return _resultobj; | |
1694 | } | |
1695 | ||
1696 | #define wxPyShapeEvtHandler_base_OnLeftClick(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnLeftClick(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1697 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1698 | PyObject * _resultobj; | |
1699 | wxPyShapeEvtHandler * _arg0; | |
1700 | double _arg1; | |
1701 | double _arg2; | |
1702 | int _arg3 = (int ) 0; | |
1703 | int _arg4 = (int ) 0; | |
1704 | PyObject * _argo0 = 0; | |
1705 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
1706 | ||
1707 | self = self; | |
1708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShapeEvtHandler_base_OnLeftClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
1709 | return NULL; | |
1710 | if (_argo0) { | |
1711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnLeftClick. Expected _wxPyShapeEvtHandler_p."); | |
1714 | return NULL; | |
1715 | } | |
1716 | } | |
1717 | { | |
1718 | wxPy_BEGIN_ALLOW_THREADS; | |
1719 | wxPyShapeEvtHandler_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3,_arg4); | |
1720 | ||
1721 | wxPy_END_ALLOW_THREADS; | |
1722 | } Py_INCREF(Py_None); | |
1723 | _resultobj = Py_None; | |
1724 | return _resultobj; | |
1725 | } | |
1726 | ||
1727 | #define wxPyShapeEvtHandler_base_OnLeftDoubleClick(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnLeftDoubleClick(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1728 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1729 | PyObject * _resultobj; | |
1730 | wxPyShapeEvtHandler * _arg0; | |
1731 | double _arg1; | |
1732 | double _arg2; | |
1733 | int _arg3 = (int ) 0; | |
1734 | int _arg4 = (int ) 0; | |
1735 | PyObject * _argo0 = 0; | |
1736 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
1737 | ||
1738 | self = self; | |
1739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShapeEvtHandler_base_OnLeftDoubleClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
1740 | return NULL; | |
1741 | if (_argo0) { | |
1742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnLeftDoubleClick. Expected _wxPyShapeEvtHandler_p."); | |
1745 | return NULL; | |
1746 | } | |
1747 | } | |
1748 | { | |
1749 | wxPy_BEGIN_ALLOW_THREADS; | |
1750 | wxPyShapeEvtHandler_base_OnLeftDoubleClick(_arg0,_arg1,_arg2,_arg3,_arg4); | |
1751 | ||
1752 | wxPy_END_ALLOW_THREADS; | |
1753 | } Py_INCREF(Py_None); | |
1754 | _resultobj = Py_None; | |
1755 | return _resultobj; | |
1756 | } | |
1757 | ||
1758 | #define wxPyShapeEvtHandler_base_OnRightClick(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnRightClick(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1759 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1760 | PyObject * _resultobj; | |
1761 | wxPyShapeEvtHandler * _arg0; | |
1762 | double _arg1; | |
1763 | double _arg2; | |
1764 | int _arg3 = (int ) 0; | |
1765 | int _arg4 = (int ) 0; | |
1766 | PyObject * _argo0 = 0; | |
1767 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
1768 | ||
1769 | self = self; | |
1770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShapeEvtHandler_base_OnRightClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
1771 | return NULL; | |
1772 | if (_argo0) { | |
1773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnRightClick. Expected _wxPyShapeEvtHandler_p."); | |
1776 | return NULL; | |
1777 | } | |
1778 | } | |
1779 | { | |
1780 | wxPy_BEGIN_ALLOW_THREADS; | |
1781 | wxPyShapeEvtHandler_base_OnRightClick(_arg0,_arg1,_arg2,_arg3,_arg4); | |
1782 | ||
1783 | wxPy_END_ALLOW_THREADS; | |
1784 | } Py_INCREF(Py_None); | |
1785 | _resultobj = Py_None; | |
1786 | return _resultobj; | |
1787 | } | |
1788 | ||
1789 | #define wxPyShapeEvtHandler_base_OnSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnSize(_swigarg0,_swigarg1)) | |
1790 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1791 | PyObject * _resultobj; | |
1792 | wxPyShapeEvtHandler * _arg0; | |
1793 | double _arg1; | |
1794 | double _arg2; | |
1795 | PyObject * _argo0 = 0; | |
1796 | char *_kwnames[] = { "self","x","y", NULL }; | |
1797 | ||
1798 | self = self; | |
1799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPyShapeEvtHandler_base_OnSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1800 | return NULL; | |
1801 | if (_argo0) { | |
1802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnSize. Expected _wxPyShapeEvtHandler_p."); | |
1805 | return NULL; | |
1806 | } | |
1807 | } | |
1808 | { | |
1809 | wxPy_BEGIN_ALLOW_THREADS; | |
1810 | wxPyShapeEvtHandler_base_OnSize(_arg0,_arg1,_arg2); | |
1811 | ||
1812 | wxPy_END_ALLOW_THREADS; | |
1813 | } Py_INCREF(Py_None); | |
1814 | _resultobj = Py_None; | |
1815 | return _resultobj; | |
1816 | } | |
1817 | ||
1818 | #define wxPyShapeEvtHandler_base_OnMovePre(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->base_OnMovePre(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1819 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1820 | PyObject * _resultobj; | |
1821 | bool _result; | |
1822 | wxPyShapeEvtHandler * _arg0; | |
1823 | wxDC * _arg1; | |
1824 | double _arg2; | |
1825 | double _arg3; | |
1826 | double _arg4; | |
1827 | double _arg5; | |
1828 | bool _arg6 = (bool ) TRUE; | |
1829 | PyObject * _argo0 = 0; | |
1830 | PyObject * _argo1 = 0; | |
1831 | int tempbool6 = (int) TRUE; | |
1832 | char *_kwnames[] = { "self","dc","x","y","old_x","old_y","display", NULL }; | |
1833 | ||
1834 | self = self; | |
1835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdddd|i:wxPyShapeEvtHandler_base_OnMovePre",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
1836 | return NULL; | |
1837 | if (_argo0) { | |
1838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnMovePre. Expected _wxPyShapeEvtHandler_p."); | |
1841 | return NULL; | |
1842 | } | |
1843 | } | |
1844 | if (_argo1) { | |
1845 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1846 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
1847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnMovePre. Expected _wxDC_p."); | |
1848 | return NULL; | |
1849 | } | |
1850 | } | |
1851 | _arg6 = (bool ) tempbool6; | |
1852 | { | |
1853 | wxPy_BEGIN_ALLOW_THREADS; | |
1854 | _result = (bool )wxPyShapeEvtHandler_base_OnMovePre(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
1855 | ||
1856 | wxPy_END_ALLOW_THREADS; | |
1857 | } _resultobj = Py_BuildValue("i",_result); | |
1858 | return _resultobj; | |
1859 | } | |
1860 | ||
1861 | #define wxPyShapeEvtHandler_base_OnMovePost(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->base_OnMovePost(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1862 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject * _resultobj; | |
1864 | wxPyShapeEvtHandler * _arg0; | |
1865 | wxDC * _arg1; | |
1866 | double _arg2; | |
1867 | double _arg3; | |
1868 | double _arg4; | |
1869 | double _arg5; | |
1870 | bool _arg6 = (bool ) TRUE; | |
1871 | PyObject * _argo0 = 0; | |
1872 | PyObject * _argo1 = 0; | |
1873 | int tempbool6 = (int) TRUE; | |
1874 | char *_kwnames[] = { "self","dc","x","y","old_x","old_y","display", NULL }; | |
1875 | ||
1876 | self = self; | |
1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdddd|i:wxPyShapeEvtHandler_base_OnMovePost",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
1878 | return NULL; | |
1879 | if (_argo0) { | |
1880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnMovePost. Expected _wxPyShapeEvtHandler_p."); | |
1883 | return NULL; | |
1884 | } | |
1885 | } | |
1886 | if (_argo1) { | |
1887 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1888 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
1889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnMovePost. Expected _wxDC_p."); | |
1890 | return NULL; | |
1891 | } | |
1892 | } | |
1893 | _arg6 = (bool ) tempbool6; | |
1894 | { | |
1895 | wxPy_BEGIN_ALLOW_THREADS; | |
1896 | wxPyShapeEvtHandler_base_OnMovePost(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
1897 | ||
1898 | wxPy_END_ALLOW_THREADS; | |
1899 | } Py_INCREF(Py_None); | |
1900 | _resultobj = Py_None; | |
1901 | return _resultobj; | |
1902 | } | |
1903 | ||
1904 | #define wxPyShapeEvtHandler_base_OnDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1905 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1906 | PyObject * _resultobj; | |
1907 | wxPyShapeEvtHandler * _arg0; | |
1908 | bool _arg1; | |
1909 | double _arg2; | |
1910 | double _arg3; | |
1911 | int _arg4 = (int ) 0; | |
1912 | int _arg5 = (int ) 0; | |
1913 | PyObject * _argo0 = 0; | |
1914 | int tempbool1; | |
1915 | char *_kwnames[] = { "self","draw","x","y","keys","attachment", NULL }; | |
1916 | ||
1917 | self = self; | |
1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|ii:wxPyShapeEvtHandler_base_OnDragLeft",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
1919 | return NULL; | |
1920 | if (_argo0) { | |
1921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnDragLeft. Expected _wxPyShapeEvtHandler_p."); | |
1924 | return NULL; | |
1925 | } | |
1926 | } | |
1927 | _arg1 = (bool ) tempbool1; | |
1928 | { | |
1929 | wxPy_BEGIN_ALLOW_THREADS; | |
1930 | wxPyShapeEvtHandler_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
1931 | ||
1932 | wxPy_END_ALLOW_THREADS; | |
1933 | } Py_INCREF(Py_None); | |
1934 | _resultobj = Py_None; | |
1935 | return _resultobj; | |
1936 | } | |
1937 | ||
1938 | #define wxPyShapeEvtHandler_base_OnBeginDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnBeginDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1939 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1940 | PyObject * _resultobj; | |
1941 | wxPyShapeEvtHandler * _arg0; | |
1942 | double _arg1; | |
1943 | double _arg2; | |
1944 | int _arg3 = (int ) 0; | |
1945 | int _arg4 = (int ) 0; | |
1946 | PyObject * _argo0 = 0; | |
1947 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
1948 | ||
1949 | self = self; | |
1950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShapeEvtHandler_base_OnBeginDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
1951 | return NULL; | |
1952 | if (_argo0) { | |
1953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnBeginDragLeft. Expected _wxPyShapeEvtHandler_p."); | |
1956 | return NULL; | |
1957 | } | |
1958 | } | |
1959 | { | |
1960 | wxPy_BEGIN_ALLOW_THREADS; | |
1961 | wxPyShapeEvtHandler_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4); | |
1962 | ||
1963 | wxPy_END_ALLOW_THREADS; | |
1964 | } Py_INCREF(Py_None); | |
1965 | _resultobj = Py_None; | |
1966 | return _resultobj; | |
1967 | } | |
1968 | ||
1969 | #define wxPyShapeEvtHandler_base_OnEndDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnEndDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1970 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1971 | PyObject * _resultobj; | |
1972 | wxPyShapeEvtHandler * _arg0; | |
1973 | double _arg1; | |
1974 | double _arg2; | |
1975 | int _arg3 = (int ) 0; | |
1976 | int _arg4 = (int ) 0; | |
1977 | PyObject * _argo0 = 0; | |
1978 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
1979 | ||
1980 | self = self; | |
1981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShapeEvtHandler_base_OnEndDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
1982 | return NULL; | |
1983 | if (_argo0) { | |
1984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
1986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnEndDragLeft. Expected _wxPyShapeEvtHandler_p."); | |
1987 | return NULL; | |
1988 | } | |
1989 | } | |
1990 | { | |
1991 | wxPy_BEGIN_ALLOW_THREADS; | |
1992 | wxPyShapeEvtHandler_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4); | |
1993 | ||
1994 | wxPy_END_ALLOW_THREADS; | |
1995 | } Py_INCREF(Py_None); | |
1996 | _resultobj = Py_None; | |
1997 | return _resultobj; | |
1998 | } | |
1999 | ||
2000 | #define wxPyShapeEvtHandler_base_OnDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
2001 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2002 | PyObject * _resultobj; | |
2003 | wxPyShapeEvtHandler * _arg0; | |
2004 | bool _arg1; | |
2005 | double _arg2; | |
2006 | double _arg3; | |
2007 | int _arg4 = (int ) 0; | |
2008 | int _arg5 = (int ) 0; | |
2009 | PyObject * _argo0 = 0; | |
2010 | int tempbool1; | |
2011 | char *_kwnames[] = { "self","draw","x","y","keys","attachment", NULL }; | |
2012 | ||
2013 | self = self; | |
2014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|ii:wxPyShapeEvtHandler_base_OnDragRight",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
2015 | return NULL; | |
2016 | if (_argo0) { | |
2017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnDragRight. Expected _wxPyShapeEvtHandler_p."); | |
2020 | return NULL; | |
2021 | } | |
2022 | } | |
2023 | _arg1 = (bool ) tempbool1; | |
2024 | { | |
2025 | wxPy_BEGIN_ALLOW_THREADS; | |
2026 | wxPyShapeEvtHandler_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
2027 | ||
2028 | wxPy_END_ALLOW_THREADS; | |
2029 | } Py_INCREF(Py_None); | |
2030 | _resultobj = Py_None; | |
2031 | return _resultobj; | |
2032 | } | |
2033 | ||
2034 | #define wxPyShapeEvtHandler_base_OnBeginDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnBeginDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2035 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2036 | PyObject * _resultobj; | |
2037 | wxPyShapeEvtHandler * _arg0; | |
2038 | double _arg1; | |
2039 | double _arg2; | |
2040 | int _arg3 = (int ) 0; | |
2041 | int _arg4 = (int ) 0; | |
2042 | PyObject * _argo0 = 0; | |
2043 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
2044 | ||
2045 | self = self; | |
2046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShapeEvtHandler_base_OnBeginDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2047 | return NULL; | |
2048 | if (_argo0) { | |
2049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnBeginDragRight. Expected _wxPyShapeEvtHandler_p."); | |
2052 | return NULL; | |
2053 | } | |
2054 | } | |
2055 | { | |
2056 | wxPy_BEGIN_ALLOW_THREADS; | |
2057 | wxPyShapeEvtHandler_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2058 | ||
2059 | wxPy_END_ALLOW_THREADS; | |
2060 | } Py_INCREF(Py_None); | |
2061 | _resultobj = Py_None; | |
2062 | return _resultobj; | |
2063 | } | |
2064 | ||
2065 | #define wxPyShapeEvtHandler_base_OnEndDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnEndDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2066 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2067 | PyObject * _resultobj; | |
2068 | wxPyShapeEvtHandler * _arg0; | |
2069 | double _arg1; | |
2070 | double _arg2; | |
2071 | int _arg3 = (int ) 0; | |
2072 | int _arg4 = (int ) 0; | |
2073 | PyObject * _argo0 = 0; | |
2074 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
2075 | ||
2076 | self = self; | |
2077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShapeEvtHandler_base_OnEndDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2078 | return NULL; | |
2079 | if (_argo0) { | |
2080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnEndDragRight. Expected _wxPyShapeEvtHandler_p."); | |
2083 | return NULL; | |
2084 | } | |
2085 | } | |
2086 | { | |
2087 | wxPy_BEGIN_ALLOW_THREADS; | |
2088 | wxPyShapeEvtHandler_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2089 | ||
2090 | wxPy_END_ALLOW_THREADS; | |
2091 | } Py_INCREF(Py_None); | |
2092 | _resultobj = Py_None; | |
2093 | return _resultobj; | |
2094 | } | |
2095 | ||
2096 | #define wxPyShapeEvtHandler_base_OnDrawOutline(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnDrawOutline(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
2097 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2098 | PyObject * _resultobj; | |
2099 | wxPyShapeEvtHandler * _arg0; | |
2100 | wxDC * _arg1; | |
2101 | double _arg2; | |
2102 | double _arg3; | |
2103 | double _arg4; | |
2104 | double _arg5; | |
2105 | PyObject * _argo0 = 0; | |
2106 | PyObject * _argo1 = 0; | |
2107 | char *_kwnames[] = { "self","dc","x","y","w","h", NULL }; | |
2108 | ||
2109 | self = self; | |
2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdddd:wxPyShapeEvtHandler_base_OnDrawOutline",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
2111 | return NULL; | |
2112 | if (_argo0) { | |
2113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnDrawOutline. Expected _wxPyShapeEvtHandler_p."); | |
2116 | return NULL; | |
2117 | } | |
2118 | } | |
2119 | if (_argo1) { | |
2120 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2121 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
2122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnDrawOutline. Expected _wxDC_p."); | |
2123 | return NULL; | |
2124 | } | |
2125 | } | |
2126 | { | |
2127 | wxPy_BEGIN_ALLOW_THREADS; | |
2128 | wxPyShapeEvtHandler_base_OnDrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
2129 | ||
2130 | wxPy_END_ALLOW_THREADS; | |
2131 | } Py_INCREF(Py_None); | |
2132 | _resultobj = Py_None; | |
2133 | return _resultobj; | |
2134 | } | |
2135 | ||
2136 | #define wxPyShapeEvtHandler_base_OnDrawControlPoints(_swigobj,_swigarg0) (_swigobj->base_OnDrawControlPoints(_swigarg0)) | |
2137 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2138 | PyObject * _resultobj; | |
2139 | wxPyShapeEvtHandler * _arg0; | |
2140 | wxDC * _arg1; | |
2141 | PyObject * _argo0 = 0; | |
2142 | PyObject * _argo1 = 0; | |
2143 | char *_kwnames[] = { "self","dc", NULL }; | |
2144 | ||
2145 | self = self; | |
2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_base_OnDrawControlPoints",_kwnames,&_argo0,&_argo1)) | |
2147 | return NULL; | |
2148 | if (_argo0) { | |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnDrawControlPoints. Expected _wxPyShapeEvtHandler_p."); | |
2152 | return NULL; | |
2153 | } | |
2154 | } | |
2155 | if (_argo1) { | |
2156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
2158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnDrawControlPoints. Expected _wxDC_p."); | |
2159 | return NULL; | |
2160 | } | |
2161 | } | |
2162 | { | |
2163 | wxPy_BEGIN_ALLOW_THREADS; | |
2164 | wxPyShapeEvtHandler_base_OnDrawControlPoints(_arg0,*_arg1); | |
2165 | ||
2166 | wxPy_END_ALLOW_THREADS; | |
2167 | } Py_INCREF(Py_None); | |
2168 | _resultobj = Py_None; | |
2169 | return _resultobj; | |
2170 | } | |
2171 | ||
2172 | #define wxPyShapeEvtHandler_base_OnEraseControlPoints(_swigobj,_swigarg0) (_swigobj->base_OnEraseControlPoints(_swigarg0)) | |
2173 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2174 | PyObject * _resultobj; | |
2175 | wxPyShapeEvtHandler * _arg0; | |
2176 | wxDC * _arg1; | |
2177 | PyObject * _argo0 = 0; | |
2178 | PyObject * _argo1 = 0; | |
2179 | char *_kwnames[] = { "self","dc", NULL }; | |
2180 | ||
2181 | self = self; | |
2182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShapeEvtHandler_base_OnEraseControlPoints",_kwnames,&_argo0,&_argo1)) | |
2183 | return NULL; | |
2184 | if (_argo0) { | |
2185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnEraseControlPoints. Expected _wxPyShapeEvtHandler_p."); | |
2188 | return NULL; | |
2189 | } | |
2190 | } | |
2191 | if (_argo1) { | |
2192 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2193 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
2194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnEraseControlPoints. Expected _wxDC_p."); | |
2195 | return NULL; | |
2196 | } | |
2197 | } | |
2198 | { | |
2199 | wxPy_BEGIN_ALLOW_THREADS; | |
2200 | wxPyShapeEvtHandler_base_OnEraseControlPoints(_arg0,*_arg1); | |
2201 | ||
2202 | wxPy_END_ALLOW_THREADS; | |
2203 | } Py_INCREF(Py_None); | |
2204 | _resultobj = Py_None; | |
2205 | return _resultobj; | |
2206 | } | |
2207 | ||
2208 | #define wxPyShapeEvtHandler_base_OnMoveLink(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnMoveLink(_swigarg0,_swigarg1)) | |
2209 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2210 | PyObject * _resultobj; | |
2211 | wxPyShapeEvtHandler * _arg0; | |
2212 | wxDC * _arg1; | |
2213 | bool _arg2 = (bool ) TRUE; | |
2214 | PyObject * _argo0 = 0; | |
2215 | PyObject * _argo1 = 0; | |
2216 | int tempbool2 = (int) TRUE; | |
2217 | char *_kwnames[] = { "self","dc","moveControlPoints", NULL }; | |
2218 | ||
2219 | self = self; | |
2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyShapeEvtHandler_base_OnMoveLink",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
2221 | return NULL; | |
2222 | if (_argo0) { | |
2223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnMoveLink. Expected _wxPyShapeEvtHandler_p."); | |
2226 | return NULL; | |
2227 | } | |
2228 | } | |
2229 | if (_argo1) { | |
2230 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2231 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
2232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnMoveLink. Expected _wxDC_p."); | |
2233 | return NULL; | |
2234 | } | |
2235 | } | |
2236 | _arg2 = (bool ) tempbool2; | |
2237 | { | |
2238 | wxPy_BEGIN_ALLOW_THREADS; | |
2239 | wxPyShapeEvtHandler_base_OnMoveLink(_arg0,*_arg1,_arg2); | |
2240 | ||
2241 | wxPy_END_ALLOW_THREADS; | |
2242 | } Py_INCREF(Py_None); | |
2243 | _resultobj = Py_None; | |
2244 | return _resultobj; | |
2245 | } | |
2246 | ||
2247 | #define wxPyShapeEvtHandler_base_OnSizingDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->base_OnSizingDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2248 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2249 | PyObject * _resultobj; | |
2250 | wxPyShapeEvtHandler * _arg0; | |
2348eaee | 2251 | wxPyControlPoint * _arg1; |
e91a9dfc RD |
2252 | bool _arg2; |
2253 | double _arg3; | |
2254 | double _arg4; | |
2255 | int _arg5 = (int ) 0; | |
2256 | int _arg6 = (int ) 0; | |
2257 | PyObject * _argo0 = 0; | |
2258 | PyObject * _argo1 = 0; | |
2259 | int tempbool2; | |
2260 | char *_kwnames[] = { "self","pt","draw","x","y","keys","attachment", NULL }; | |
2261 | ||
2262 | self = self; | |
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOidd|ii:wxPyShapeEvtHandler_base_OnSizingDragLeft",_kwnames,&_argo0,&_argo1,&tempbool2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
2264 | return NULL; | |
2265 | if (_argo0) { | |
2266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnSizingDragLeft. Expected _wxPyShapeEvtHandler_p."); | |
2269 | return NULL; | |
2270 | } | |
2271 | } | |
2272 | if (_argo1) { | |
2273 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2348eaee RD |
2274 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyControlPoint_p")) { |
2275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnSizingDragLeft. Expected _wxPyControlPoint_p."); | |
e91a9dfc RD |
2276 | return NULL; |
2277 | } | |
2278 | } | |
2279 | _arg2 = (bool ) tempbool2; | |
2280 | { | |
2281 | wxPy_BEGIN_ALLOW_THREADS; | |
2282 | wxPyShapeEvtHandler_base_OnSizingDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2283 | ||
2284 | wxPy_END_ALLOW_THREADS; | |
2285 | } Py_INCREF(Py_None); | |
2286 | _resultobj = Py_None; | |
2287 | return _resultobj; | |
2288 | } | |
2289 | ||
2290 | #define wxPyShapeEvtHandler_base_OnSizingBeginDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnSizingBeginDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
2291 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2292 | PyObject * _resultobj; | |
2293 | wxPyShapeEvtHandler * _arg0; | |
2348eaee | 2294 | wxPyControlPoint * _arg1; |
e91a9dfc RD |
2295 | double _arg2; |
2296 | double _arg3; | |
2297 | int _arg4 = (int ) 0; | |
2298 | int _arg5 = (int ) 0; | |
2299 | PyObject * _argo0 = 0; | |
2300 | PyObject * _argo1 = 0; | |
2301 | char *_kwnames[] = { "self","pt","x","y","keys","attachment", NULL }; | |
2302 | ||
2303 | self = self; | |
2304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdd|ii:wxPyShapeEvtHandler_base_OnSizingBeginDragLeft",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
2305 | return NULL; | |
2306 | if (_argo0) { | |
2307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnSizingBeginDragLeft. Expected _wxPyShapeEvtHandler_p."); | |
2310 | return NULL; | |
2311 | } | |
2312 | } | |
2313 | if (_argo1) { | |
2314 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2348eaee RD |
2315 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyControlPoint_p")) { |
2316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnSizingBeginDragLeft. Expected _wxPyControlPoint_p."); | |
e91a9dfc RD |
2317 | return NULL; |
2318 | } | |
2319 | } | |
2320 | { | |
2321 | wxPy_BEGIN_ALLOW_THREADS; | |
2322 | wxPyShapeEvtHandler_base_OnSizingBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
2323 | ||
2324 | wxPy_END_ALLOW_THREADS; | |
2325 | } Py_INCREF(Py_None); | |
2326 | _resultobj = Py_None; | |
2327 | return _resultobj; | |
2328 | } | |
2329 | ||
2330 | #define wxPyShapeEvtHandler_base_OnSizingEndDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnSizingEndDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
2331 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2332 | PyObject * _resultobj; | |
2333 | wxPyShapeEvtHandler * _arg0; | |
2348eaee | 2334 | wxPyControlPoint * _arg1; |
e91a9dfc RD |
2335 | double _arg2; |
2336 | double _arg3; | |
2337 | int _arg4 = (int ) 0; | |
2338 | int _arg5 = (int ) 0; | |
2339 | PyObject * _argo0 = 0; | |
2340 | PyObject * _argo1 = 0; | |
2341 | char *_kwnames[] = { "self","pt","x","y","keys","attachment", NULL }; | |
2342 | ||
2343 | self = self; | |
2344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdd|ii:wxPyShapeEvtHandler_base_OnSizingEndDragLeft",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
2345 | return NULL; | |
2346 | if (_argo0) { | |
2347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnSizingEndDragLeft. Expected _wxPyShapeEvtHandler_p."); | |
2350 | return NULL; | |
2351 | } | |
2352 | } | |
2353 | if (_argo1) { | |
2354 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2348eaee RD |
2355 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyControlPoint_p")) { |
2356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShapeEvtHandler_base_OnSizingEndDragLeft. Expected _wxPyControlPoint_p."); | |
e91a9dfc RD |
2357 | return NULL; |
2358 | } | |
2359 | } | |
2360 | { | |
2361 | wxPy_BEGIN_ALLOW_THREADS; | |
2362 | wxPyShapeEvtHandler_base_OnSizingEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
2363 | ||
2364 | wxPy_END_ALLOW_THREADS; | |
2365 | } Py_INCREF(Py_None); | |
2366 | _resultobj = Py_None; | |
2367 | return _resultobj; | |
2368 | } | |
2369 | ||
2370 | #define wxPyShapeEvtHandler_base_OnBeginSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnBeginSize(_swigarg0,_swigarg1)) | |
2371 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2372 | PyObject * _resultobj; | |
2373 | wxPyShapeEvtHandler * _arg0; | |
2374 | double _arg1; | |
2375 | double _arg2; | |
2376 | PyObject * _argo0 = 0; | |
2377 | char *_kwnames[] = { "self","w","h", NULL }; | |
2378 | ||
2379 | self = self; | |
2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPyShapeEvtHandler_base_OnBeginSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2381 | return NULL; | |
2382 | if (_argo0) { | |
2383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnBeginSize. Expected _wxPyShapeEvtHandler_p."); | |
2386 | return NULL; | |
2387 | } | |
2388 | } | |
2389 | { | |
2390 | wxPy_BEGIN_ALLOW_THREADS; | |
2391 | wxPyShapeEvtHandler_base_OnBeginSize(_arg0,_arg1,_arg2); | |
2392 | ||
2393 | wxPy_END_ALLOW_THREADS; | |
2394 | } Py_INCREF(Py_None); | |
2395 | _resultobj = Py_None; | |
2396 | return _resultobj; | |
2397 | } | |
2398 | ||
2399 | #define wxPyShapeEvtHandler_base_OnEndSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnEndSize(_swigarg0,_swigarg1)) | |
2400 | static PyObject *_wrap_wxPyShapeEvtHandler_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2401 | PyObject * _resultobj; | |
2402 | wxPyShapeEvtHandler * _arg0; | |
2403 | double _arg1; | |
2404 | double _arg2; | |
2405 | PyObject * _argo0 = 0; | |
2406 | char *_kwnames[] = { "self","w","h", NULL }; | |
2407 | ||
2408 | self = self; | |
2409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPyShapeEvtHandler_base_OnEndSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2410 | return NULL; | |
2411 | if (_argo0) { | |
2412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShapeEvtHandler_p")) { | |
2414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShapeEvtHandler_base_OnEndSize. Expected _wxPyShapeEvtHandler_p."); | |
2415 | return NULL; | |
2416 | } | |
2417 | } | |
2418 | { | |
2419 | wxPy_BEGIN_ALLOW_THREADS; | |
2420 | wxPyShapeEvtHandler_base_OnEndSize(_arg0,_arg1,_arg2); | |
2421 | ||
2422 | wxPy_END_ALLOW_THREADS; | |
2423 | } Py_INCREF(Py_None); | |
2424 | _resultobj = Py_None; | |
2425 | return _resultobj; | |
2426 | } | |
2427 | ||
2428 | static void *SwigwxPyShapeTowxPyShapeEvtHandler(void *ptr) { | |
2429 | wxPyShape *src; | |
2430 | wxPyShapeEvtHandler *dest; | |
2431 | src = (wxPyShape *) ptr; | |
2432 | dest = (wxPyShapeEvtHandler *) src; | |
2433 | return (void *) dest; | |
2434 | } | |
2435 | ||
9416aa89 RD |
2436 | static void *SwigwxPyShapeTowxObject(void *ptr) { |
2437 | wxPyShape *src; | |
2438 | wxObject *dest; | |
2439 | src = (wxPyShape *) ptr; | |
2440 | dest = (wxObject *) src; | |
2441 | return (void *) dest; | |
2442 | } | |
2443 | ||
f6bcfd97 | 2444 | #define wxPyShape__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
e91a9dfc RD |
2445 | static PyObject *_wrap_wxPyShape__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
2446 | PyObject * _resultobj; | |
2447 | wxPyShape * _arg0; | |
2448 | PyObject * _arg1; | |
f6bcfd97 | 2449 | PyObject * _arg2; |
e91a9dfc RD |
2450 | PyObject * _argo0 = 0; |
2451 | PyObject * _obj1 = 0; | |
f6bcfd97 BP |
2452 | PyObject * _obj2 = 0; |
2453 | char *_kwnames[] = { "self","self","_class", NULL }; | |
e91a9dfc RD |
2454 | |
2455 | self = self; | |
f6bcfd97 | 2456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyShape__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
e91a9dfc RD |
2457 | return NULL; |
2458 | if (_argo0) { | |
2459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape__setSelf. Expected _wxPyShape_p."); | |
2462 | return NULL; | |
2463 | } | |
2464 | } | |
2465 | { | |
2466 | _arg1 = _obj1; | |
2467 | } | |
f6bcfd97 BP |
2468 | { |
2469 | _arg2 = _obj2; | |
2470 | } | |
e91a9dfc RD |
2471 | { |
2472 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2473 | wxPyShape__setSelf(_arg0,_arg1,_arg2); |
e91a9dfc RD |
2474 | |
2475 | wxPy_END_ALLOW_THREADS; | |
2476 | } Py_INCREF(Py_None); | |
2477 | _resultobj = Py_None; | |
2478 | return _resultobj; | |
2479 | } | |
2480 | ||
2481 | static void wxPyShape_Destroy(wxPyShape *self) { delete self; } | |
2482 | static PyObject *_wrap_wxPyShape_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2483 | PyObject * _resultobj; | |
2484 | wxPyShape * _arg0; | |
2485 | PyObject * _argo0 = 0; | |
2486 | char *_kwnames[] = { "self", NULL }; | |
2487 | ||
2488 | self = self; | |
2489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_Destroy",_kwnames,&_argo0)) | |
2490 | return NULL; | |
2491 | if (_argo0) { | |
2492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Destroy. Expected _wxPyShape_p."); | |
2495 | return NULL; | |
2496 | } | |
2497 | } | |
2498 | { | |
2499 | wxPy_BEGIN_ALLOW_THREADS; | |
2500 | wxPyShape_Destroy(_arg0); | |
2501 | ||
2502 | wxPy_END_ALLOW_THREADS; | |
2503 | } Py_INCREF(Py_None); | |
2504 | _resultobj = Py_None; | |
2505 | return _resultobj; | |
2506 | } | |
2507 | ||
2508 | #define wxPyShape_GetBoundingBoxMax(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBoundingBoxMax(_swigarg0,_swigarg1)) | |
2509 | static PyObject *_wrap_wxPyShape_GetBoundingBoxMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2510 | PyObject * _resultobj; | |
2511 | wxPyShape * _arg0; | |
2512 | double * _arg1; | |
2513 | double temp; | |
2514 | double * _arg2; | |
2515 | double temp0; | |
2516 | PyObject * _argo0 = 0; | |
2517 | char *_kwnames[] = { "self", NULL }; | |
2518 | ||
2519 | self = self; | |
2520 | { | |
2521 | _arg1 = &temp; | |
2522 | } | |
2523 | { | |
2524 | _arg2 = &temp0; | |
2525 | } | |
2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetBoundingBoxMax",_kwnames,&_argo0)) | |
2527 | return NULL; | |
2528 | if (_argo0) { | |
2529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBoundingBoxMax. Expected _wxPyShape_p."); | |
2532 | return NULL; | |
2533 | } | |
2534 | } | |
2535 | { | |
2536 | wxPy_BEGIN_ALLOW_THREADS; | |
2537 | wxPyShape_GetBoundingBoxMax(_arg0,_arg1,_arg2); | |
2538 | ||
2539 | wxPy_END_ALLOW_THREADS; | |
2540 | } Py_INCREF(Py_None); | |
2541 | _resultobj = Py_None; | |
2542 | { | |
2543 | PyObject *o; | |
2544 | o = PyFloat_FromDouble((double) (*_arg1)); | |
2545 | _resultobj = t_output_helper(_resultobj, o); | |
2546 | } | |
2547 | { | |
2548 | PyObject *o; | |
2549 | o = PyFloat_FromDouble((double) (*_arg2)); | |
2550 | _resultobj = t_output_helper(_resultobj, o); | |
2551 | } | |
2552 | return _resultobj; | |
2553 | } | |
2554 | ||
2555 | #define wxPyShape_GetBoundingBoxMin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBoundingBoxMin(_swigarg0,_swigarg1)) | |
2556 | static PyObject *_wrap_wxPyShape_GetBoundingBoxMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2557 | PyObject * _resultobj; | |
2558 | wxPyShape * _arg0; | |
2559 | double * _arg1; | |
2560 | double temp; | |
2561 | double * _arg2; | |
2562 | double temp0; | |
2563 | PyObject * _argo0 = 0; | |
2564 | char *_kwnames[] = { "self", NULL }; | |
2565 | ||
2566 | self = self; | |
2567 | { | |
2568 | _arg1 = &temp; | |
2569 | } | |
2570 | { | |
2571 | _arg2 = &temp0; | |
2572 | } | |
2573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetBoundingBoxMin",_kwnames,&_argo0)) | |
2574 | return NULL; | |
2575 | if (_argo0) { | |
2576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBoundingBoxMin. Expected _wxPyShape_p."); | |
2579 | return NULL; | |
2580 | } | |
2581 | } | |
2582 | { | |
2583 | wxPy_BEGIN_ALLOW_THREADS; | |
2584 | wxPyShape_GetBoundingBoxMin(_arg0,_arg1,_arg2); | |
2585 | ||
2586 | wxPy_END_ALLOW_THREADS; | |
2587 | } Py_INCREF(Py_None); | |
2588 | _resultobj = Py_None; | |
2589 | { | |
2590 | PyObject *o; | |
2591 | o = PyFloat_FromDouble((double) (*_arg1)); | |
2592 | _resultobj = t_output_helper(_resultobj, o); | |
2593 | } | |
2594 | { | |
2595 | PyObject *o; | |
2596 | o = PyFloat_FromDouble((double) (*_arg2)); | |
2597 | _resultobj = t_output_helper(_resultobj, o); | |
2598 | } | |
2599 | return _resultobj; | |
2600 | } | |
2601 | ||
2602 | #define wxPyShape_GetPerimeterPoint(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetPerimeterPoint(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2603 | static PyObject *_wrap_wxPyShape_GetPerimeterPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2604 | PyObject * _resultobj; | |
2605 | bool _result; | |
2606 | wxPyShape * _arg0; | |
2607 | double _arg1; | |
2608 | double _arg2; | |
2609 | double _arg3; | |
2610 | double _arg4; | |
2611 | double * _arg5; | |
2612 | double temp; | |
2613 | double * _arg6; | |
2614 | double temp0; | |
2615 | PyObject * _argo0 = 0; | |
2616 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; | |
2617 | ||
2618 | self = self; | |
2619 | { | |
2620 | _arg5 = &temp; | |
2621 | } | |
2622 | { | |
2623 | _arg6 = &temp0; | |
2624 | } | |
2625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odddd:wxPyShape_GetPerimeterPoint",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2626 | return NULL; | |
2627 | if (_argo0) { | |
2628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetPerimeterPoint. Expected _wxPyShape_p."); | |
2631 | return NULL; | |
2632 | } | |
2633 | } | |
2634 | { | |
2635 | wxPy_BEGIN_ALLOW_THREADS; | |
2636 | _result = (bool )wxPyShape_GetPerimeterPoint(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2637 | ||
2638 | wxPy_END_ALLOW_THREADS; | |
2639 | } _resultobj = Py_BuildValue("i",_result); | |
2640 | { | |
2641 | PyObject *o; | |
2642 | o = PyFloat_FromDouble((double) (*_arg5)); | |
2643 | _resultobj = t_output_helper(_resultobj, o); | |
2644 | } | |
2645 | { | |
2646 | PyObject *o; | |
2647 | o = PyFloat_FromDouble((double) (*_arg6)); | |
2648 | _resultobj = t_output_helper(_resultobj, o); | |
2649 | } | |
2650 | return _resultobj; | |
2651 | } | |
2652 | ||
2653 | #define wxPyShape_GetCanvas(_swigobj) (_swigobj->GetCanvas()) | |
2654 | static PyObject *_wrap_wxPyShape_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2655 | PyObject * _resultobj; | |
2656 | wxPyShapeCanvas * _result; | |
2657 | wxPyShape * _arg0; | |
2658 | PyObject * _argo0 = 0; | |
2659 | char *_kwnames[] = { "self", NULL }; | |
e91a9dfc RD |
2660 | |
2661 | self = self; | |
2662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetCanvas",_kwnames,&_argo0)) | |
2663 | return NULL; | |
2664 | if (_argo0) { | |
2665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetCanvas. Expected _wxPyShape_p."); | |
2668 | return NULL; | |
2669 | } | |
2670 | } | |
2671 | { | |
2672 | wxPy_BEGIN_ALLOW_THREADS; | |
2673 | _result = (wxPyShapeCanvas *)wxPyShape_GetCanvas(_arg0); | |
2674 | ||
2675 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 2676 | }{ _resultobj = wxPyMake_wxObject(_result); } |
e91a9dfc RD |
2677 | return _resultobj; |
2678 | } | |
2679 | ||
2680 | #define wxPyShape_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0)) | |
2681 | static PyObject *_wrap_wxPyShape_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2682 | PyObject * _resultobj; | |
2683 | wxPyShape * _arg0; | |
2684 | wxPyShapeCanvas * _arg1; | |
2685 | PyObject * _argo0 = 0; | |
2686 | PyObject * _argo1 = 0; | |
2687 | char *_kwnames[] = { "self","the_canvas", NULL }; | |
2688 | ||
2689 | self = self; | |
2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_SetCanvas",_kwnames,&_argo0,&_argo1)) | |
2691 | return NULL; | |
2692 | if (_argo0) { | |
2693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetCanvas. Expected _wxPyShape_p."); | |
2696 | return NULL; | |
2697 | } | |
2698 | } | |
2699 | if (_argo1) { | |
2700 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2701 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShapeCanvas_p")) { | |
2702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_SetCanvas. Expected _wxPyShapeCanvas_p."); | |
2703 | return NULL; | |
2704 | } | |
2705 | } | |
2706 | { | |
2707 | wxPy_BEGIN_ALLOW_THREADS; | |
2708 | wxPyShape_SetCanvas(_arg0,_arg1); | |
2709 | ||
2710 | wxPy_END_ALLOW_THREADS; | |
2711 | } Py_INCREF(Py_None); | |
2712 | _resultobj = Py_None; | |
2713 | return _resultobj; | |
2714 | } | |
2715 | ||
2716 | #define wxPyShape_AddToCanvas(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddToCanvas(_swigarg0,_swigarg1)) | |
2717 | static PyObject *_wrap_wxPyShape_AddToCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2718 | PyObject * _resultobj; | |
2719 | wxPyShape * _arg0; | |
2720 | wxPyShapeCanvas * _arg1; | |
2721 | wxPyShape * _arg2 = (wxPyShape *) NULL; | |
2722 | PyObject * _argo0 = 0; | |
2723 | PyObject * _argo1 = 0; | |
2724 | PyObject * _argo2 = 0; | |
2725 | char *_kwnames[] = { "self","the_canvas","addAfter", NULL }; | |
2726 | ||
2727 | self = self; | |
2728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxPyShape_AddToCanvas",_kwnames,&_argo0,&_argo1,&_argo2)) | |
2729 | return NULL; | |
2730 | if (_argo0) { | |
2731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_AddToCanvas. Expected _wxPyShape_p."); | |
2734 | return NULL; | |
2735 | } | |
2736 | } | |
2737 | if (_argo1) { | |
2738 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2739 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShapeCanvas_p")) { | |
2740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_AddToCanvas. Expected _wxPyShapeCanvas_p."); | |
2741 | return NULL; | |
2742 | } | |
2743 | } | |
2744 | if (_argo2) { | |
2745 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2746 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyShape_p")) { | |
2747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyShape_AddToCanvas. Expected _wxPyShape_p."); | |
2748 | return NULL; | |
2749 | } | |
2750 | } | |
2751 | { | |
2752 | wxPy_BEGIN_ALLOW_THREADS; | |
2753 | wxPyShape_AddToCanvas(_arg0,_arg1,_arg2); | |
2754 | ||
2755 | wxPy_END_ALLOW_THREADS; | |
2756 | } Py_INCREF(Py_None); | |
2757 | _resultobj = Py_None; | |
2758 | return _resultobj; | |
2759 | } | |
2760 | ||
2761 | #define wxPyShape_InsertInCanvas(_swigobj,_swigarg0) (_swigobj->InsertInCanvas(_swigarg0)) | |
2762 | static PyObject *_wrap_wxPyShape_InsertInCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2763 | PyObject * _resultobj; | |
2764 | wxPyShape * _arg0; | |
2765 | wxPyShapeCanvas * _arg1; | |
2766 | PyObject * _argo0 = 0; | |
2767 | PyObject * _argo1 = 0; | |
2768 | char *_kwnames[] = { "self","the_canvas", NULL }; | |
2769 | ||
2770 | self = self; | |
2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_InsertInCanvas",_kwnames,&_argo0,&_argo1)) | |
2772 | return NULL; | |
2773 | if (_argo0) { | |
2774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_InsertInCanvas. Expected _wxPyShape_p."); | |
2777 | return NULL; | |
2778 | } | |
2779 | } | |
2780 | if (_argo1) { | |
2781 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2782 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShapeCanvas_p")) { | |
2783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_InsertInCanvas. Expected _wxPyShapeCanvas_p."); | |
2784 | return NULL; | |
2785 | } | |
2786 | } | |
2787 | { | |
2788 | wxPy_BEGIN_ALLOW_THREADS; | |
2789 | wxPyShape_InsertInCanvas(_arg0,_arg1); | |
2790 | ||
2791 | wxPy_END_ALLOW_THREADS; | |
2792 | } Py_INCREF(Py_None); | |
2793 | _resultobj = Py_None; | |
2794 | return _resultobj; | |
2795 | } | |
2796 | ||
2797 | #define wxPyShape_RemoveFromCanvas(_swigobj,_swigarg0) (_swigobj->RemoveFromCanvas(_swigarg0)) | |
2798 | static PyObject *_wrap_wxPyShape_RemoveFromCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2799 | PyObject * _resultobj; | |
2800 | wxPyShape * _arg0; | |
2801 | wxPyShapeCanvas * _arg1; | |
2802 | PyObject * _argo0 = 0; | |
2803 | PyObject * _argo1 = 0; | |
2804 | char *_kwnames[] = { "self","the_canvas", NULL }; | |
2805 | ||
2806 | self = self; | |
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_RemoveFromCanvas",_kwnames,&_argo0,&_argo1)) | |
2808 | return NULL; | |
2809 | if (_argo0) { | |
2810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_RemoveFromCanvas. Expected _wxPyShape_p."); | |
2813 | return NULL; | |
2814 | } | |
2815 | } | |
2816 | if (_argo1) { | |
2817 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2818 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShapeCanvas_p")) { | |
2819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_RemoveFromCanvas. Expected _wxPyShapeCanvas_p."); | |
2820 | return NULL; | |
2821 | } | |
2822 | } | |
2823 | { | |
2824 | wxPy_BEGIN_ALLOW_THREADS; | |
2825 | wxPyShape_RemoveFromCanvas(_arg0,_arg1); | |
2826 | ||
2827 | wxPy_END_ALLOW_THREADS; | |
2828 | } Py_INCREF(Py_None); | |
2829 | _resultobj = Py_None; | |
2830 | return _resultobj; | |
2831 | } | |
2832 | ||
2833 | #define wxPyShape_GetX(_swigobj) (_swigobj->GetX()) | |
2834 | static PyObject *_wrap_wxPyShape_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2835 | PyObject * _resultobj; | |
2836 | double _result; | |
2837 | wxPyShape * _arg0; | |
2838 | PyObject * _argo0 = 0; | |
2839 | char *_kwnames[] = { "self", NULL }; | |
2840 | ||
2841 | self = self; | |
2842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetX",_kwnames,&_argo0)) | |
2843 | return NULL; | |
2844 | if (_argo0) { | |
2845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetX. Expected _wxPyShape_p."); | |
2848 | return NULL; | |
2849 | } | |
2850 | } | |
2851 | { | |
2852 | wxPy_BEGIN_ALLOW_THREADS; | |
2853 | _result = (double )wxPyShape_GetX(_arg0); | |
2854 | ||
2855 | wxPy_END_ALLOW_THREADS; | |
2856 | } _resultobj = Py_BuildValue("d",_result); | |
2857 | return _resultobj; | |
2858 | } | |
2859 | ||
2860 | #define wxPyShape_GetY(_swigobj) (_swigobj->GetY()) | |
2861 | static PyObject *_wrap_wxPyShape_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2862 | PyObject * _resultobj; | |
2863 | double _result; | |
2864 | wxPyShape * _arg0; | |
2865 | PyObject * _argo0 = 0; | |
2866 | char *_kwnames[] = { "self", NULL }; | |
2867 | ||
2868 | self = self; | |
2869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetY",_kwnames,&_argo0)) | |
2870 | return NULL; | |
2871 | if (_argo0) { | |
2872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetY. Expected _wxPyShape_p."); | |
2875 | return NULL; | |
2876 | } | |
2877 | } | |
2878 | { | |
2879 | wxPy_BEGIN_ALLOW_THREADS; | |
2880 | _result = (double )wxPyShape_GetY(_arg0); | |
2881 | ||
2882 | wxPy_END_ALLOW_THREADS; | |
2883 | } _resultobj = Py_BuildValue("d",_result); | |
2884 | return _resultobj; | |
2885 | } | |
2886 | ||
2887 | #define wxPyShape_SetX(_swigobj,_swigarg0) (_swigobj->SetX(_swigarg0)) | |
2888 | static PyObject *_wrap_wxPyShape_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2889 | PyObject * _resultobj; | |
2890 | wxPyShape * _arg0; | |
2891 | double _arg1; | |
2892 | PyObject * _argo0 = 0; | |
2893 | char *_kwnames[] = { "self","x", NULL }; | |
2894 | ||
2895 | self = self; | |
2896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPyShape_SetX",_kwnames,&_argo0,&_arg1)) | |
2897 | return NULL; | |
2898 | if (_argo0) { | |
2899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetX. Expected _wxPyShape_p."); | |
2902 | return NULL; | |
2903 | } | |
2904 | } | |
2905 | { | |
2906 | wxPy_BEGIN_ALLOW_THREADS; | |
2907 | wxPyShape_SetX(_arg0,_arg1); | |
2908 | ||
2909 | wxPy_END_ALLOW_THREADS; | |
2910 | } Py_INCREF(Py_None); | |
2911 | _resultobj = Py_None; | |
2912 | return _resultobj; | |
2913 | } | |
2914 | ||
2915 | #define wxPyShape_SetY(_swigobj,_swigarg0) (_swigobj->SetY(_swigarg0)) | |
2916 | static PyObject *_wrap_wxPyShape_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2917 | PyObject * _resultobj; | |
2918 | wxPyShape * _arg0; | |
2919 | double _arg1; | |
2920 | PyObject * _argo0 = 0; | |
2921 | char *_kwnames[] = { "self","y", NULL }; | |
2922 | ||
2923 | self = self; | |
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPyShape_SetY",_kwnames,&_argo0,&_arg1)) | |
2925 | return NULL; | |
2926 | if (_argo0) { | |
2927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetY. Expected _wxPyShape_p."); | |
2930 | return NULL; | |
2931 | } | |
2932 | } | |
2933 | { | |
2934 | wxPy_BEGIN_ALLOW_THREADS; | |
2935 | wxPyShape_SetY(_arg0,_arg1); | |
2936 | ||
2937 | wxPy_END_ALLOW_THREADS; | |
2938 | } Py_INCREF(Py_None); | |
2939 | _resultobj = Py_None; | |
2940 | return _resultobj; | |
2941 | } | |
2942 | ||
2943 | #define wxPyShape_GetParent(_swigobj) (_swigobj->GetParent()) | |
2944 | static PyObject *_wrap_wxPyShape_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2945 | PyObject * _resultobj; | |
2946 | wxPyShape * _result; | |
2947 | wxPyShape * _arg0; | |
2948 | PyObject * _argo0 = 0; | |
2949 | char *_kwnames[] = { "self", NULL }; | |
e91a9dfc RD |
2950 | |
2951 | self = self; | |
2952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetParent",_kwnames,&_argo0)) | |
2953 | return NULL; | |
2954 | if (_argo0) { | |
2955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetParent. Expected _wxPyShape_p."); | |
2958 | return NULL; | |
2959 | } | |
2960 | } | |
2961 | { | |
2962 | wxPy_BEGIN_ALLOW_THREADS; | |
2963 | _result = (wxPyShape *)wxPyShape_GetParent(_arg0); | |
2964 | ||
2965 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 2966 | }{ _resultobj = wxPyMake_wxObject(_result); } |
e91a9dfc RD |
2967 | return _resultobj; |
2968 | } | |
2969 | ||
2970 | #define wxPyShape_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) | |
2971 | static PyObject *_wrap_wxPyShape_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2972 | PyObject * _resultobj; | |
2973 | wxPyShape * _arg0; | |
2974 | wxPyShape * _arg1; | |
2975 | PyObject * _argo0 = 0; | |
2976 | PyObject * _argo1 = 0; | |
2977 | char *_kwnames[] = { "self","p", NULL }; | |
2978 | ||
2979 | self = self; | |
2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_SetParent",_kwnames,&_argo0,&_argo1)) | |
2981 | return NULL; | |
2982 | if (_argo0) { | |
2983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
2985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetParent. Expected _wxPyShape_p."); | |
2986 | return NULL; | |
2987 | } | |
2988 | } | |
2989 | if (_argo1) { | |
2990 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2991 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) { | |
2992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_SetParent. Expected _wxPyShape_p."); | |
2993 | return NULL; | |
2994 | } | |
2995 | } | |
2996 | { | |
2997 | wxPy_BEGIN_ALLOW_THREADS; | |
2998 | wxPyShape_SetParent(_arg0,_arg1); | |
2999 | ||
3000 | wxPy_END_ALLOW_THREADS; | |
3001 | } Py_INCREF(Py_None); | |
3002 | _resultobj = Py_None; | |
3003 | return _resultobj; | |
3004 | } | |
3005 | ||
3006 | #define wxPyShape_GetTopAncestor(_swigobj) (_swigobj->GetTopAncestor()) | |
3007 | static PyObject *_wrap_wxPyShape_GetTopAncestor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3008 | PyObject * _resultobj; | |
3009 | wxPyShape * _result; | |
3010 | wxPyShape * _arg0; | |
3011 | PyObject * _argo0 = 0; | |
3012 | char *_kwnames[] = { "self", NULL }; | |
e91a9dfc RD |
3013 | |
3014 | self = self; | |
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetTopAncestor",_kwnames,&_argo0)) | |
3016 | return NULL; | |
3017 | if (_argo0) { | |
3018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetTopAncestor. Expected _wxPyShape_p."); | |
3021 | return NULL; | |
3022 | } | |
3023 | } | |
3024 | { | |
3025 | wxPy_BEGIN_ALLOW_THREADS; | |
3026 | _result = (wxPyShape *)wxPyShape_GetTopAncestor(_arg0); | |
3027 | ||
3028 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 3029 | }{ _resultobj = wxPyMake_wxObject(_result); } |
e91a9dfc RD |
3030 | return _resultobj; |
3031 | } | |
3032 | ||
3033 | static PyObject * wxPyShape_GetChildren(wxPyShape *self) { | |
3034 | wxList& list = self->GetChildren(); | |
3035 | return wxPy_ConvertList(&list, "wxPyShape"); | |
3036 | } | |
3037 | static PyObject *_wrap_wxPyShape_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3038 | PyObject * _resultobj; | |
3039 | PyObject * _result; | |
3040 | wxPyShape * _arg0; | |
3041 | PyObject * _argo0 = 0; | |
3042 | char *_kwnames[] = { "self", NULL }; | |
3043 | ||
3044 | self = self; | |
3045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetChildren",_kwnames,&_argo0)) | |
3046 | return NULL; | |
3047 | if (_argo0) { | |
3048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetChildren. Expected _wxPyShape_p."); | |
3051 | return NULL; | |
3052 | } | |
3053 | } | |
3054 | { | |
3055 | wxPy_BEGIN_ALLOW_THREADS; | |
3056 | _result = (PyObject *)wxPyShape_GetChildren(_arg0); | |
3057 | ||
3058 | wxPy_END_ALLOW_THREADS; | |
3059 | }{ | |
3060 | _resultobj = _result; | |
3061 | } | |
3062 | return _resultobj; | |
3063 | } | |
3064 | ||
3065 | #define wxPyShape_Unlink(_swigobj) (_swigobj->Unlink()) | |
3066 | static PyObject *_wrap_wxPyShape_Unlink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3067 | PyObject * _resultobj; | |
3068 | wxPyShape * _arg0; | |
3069 | PyObject * _argo0 = 0; | |
3070 | char *_kwnames[] = { "self", NULL }; | |
3071 | ||
3072 | self = self; | |
3073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_Unlink",_kwnames,&_argo0)) | |
3074 | return NULL; | |
3075 | if (_argo0) { | |
3076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Unlink. Expected _wxPyShape_p."); | |
3079 | return NULL; | |
3080 | } | |
3081 | } | |
3082 | { | |
3083 | wxPy_BEGIN_ALLOW_THREADS; | |
3084 | wxPyShape_Unlink(_arg0); | |
3085 | ||
3086 | wxPy_END_ALLOW_THREADS; | |
3087 | } Py_INCREF(Py_None); | |
3088 | _resultobj = Py_None; | |
3089 | return _resultobj; | |
3090 | } | |
3091 | ||
3092 | #define wxPyShape_SetDrawHandles(_swigobj,_swigarg0) (_swigobj->SetDrawHandles(_swigarg0)) | |
3093 | static PyObject *_wrap_wxPyShape_SetDrawHandles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3094 | PyObject * _resultobj; | |
3095 | wxPyShape * _arg0; | |
3096 | bool _arg1; | |
3097 | PyObject * _argo0 = 0; | |
3098 | int tempbool1; | |
3099 | char *_kwnames[] = { "self","drawH", NULL }; | |
3100 | ||
3101 | self = self; | |
3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_SetDrawHandles",_kwnames,&_argo0,&tempbool1)) | |
3103 | return NULL; | |
3104 | if (_argo0) { | |
3105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetDrawHandles. Expected _wxPyShape_p."); | |
3108 | return NULL; | |
3109 | } | |
3110 | } | |
3111 | _arg1 = (bool ) tempbool1; | |
3112 | { | |
3113 | wxPy_BEGIN_ALLOW_THREADS; | |
3114 | wxPyShape_SetDrawHandles(_arg0,_arg1); | |
3115 | ||
3116 | wxPy_END_ALLOW_THREADS; | |
3117 | } Py_INCREF(Py_None); | |
3118 | _resultobj = Py_None; | |
3119 | return _resultobj; | |
3120 | } | |
3121 | ||
3122 | #define wxPyShape_GetDrawHandles(_swigobj) (_swigobj->GetDrawHandles()) | |
3123 | static PyObject *_wrap_wxPyShape_GetDrawHandles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3124 | PyObject * _resultobj; | |
3125 | bool _result; | |
3126 | wxPyShape * _arg0; | |
3127 | PyObject * _argo0 = 0; | |
3128 | char *_kwnames[] = { "self", NULL }; | |
3129 | ||
3130 | self = self; | |
3131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetDrawHandles",_kwnames,&_argo0)) | |
3132 | return NULL; | |
3133 | if (_argo0) { | |
3134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetDrawHandles. Expected _wxPyShape_p."); | |
3137 | return NULL; | |
3138 | } | |
3139 | } | |
3140 | { | |
3141 | wxPy_BEGIN_ALLOW_THREADS; | |
3142 | _result = (bool )wxPyShape_GetDrawHandles(_arg0); | |
3143 | ||
3144 | wxPy_END_ALLOW_THREADS; | |
3145 | } _resultobj = Py_BuildValue("i",_result); | |
3146 | return _resultobj; | |
3147 | } | |
3148 | ||
3149 | #define wxPyShape_MakeControlPoints(_swigobj) (_swigobj->MakeControlPoints()) | |
3150 | static PyObject *_wrap_wxPyShape_MakeControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3151 | PyObject * _resultobj; | |
3152 | wxPyShape * _arg0; | |
3153 | PyObject * _argo0 = 0; | |
3154 | char *_kwnames[] = { "self", NULL }; | |
3155 | ||
3156 | self = self; | |
3157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_MakeControlPoints",_kwnames,&_argo0)) | |
3158 | return NULL; | |
3159 | if (_argo0) { | |
3160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_MakeControlPoints. Expected _wxPyShape_p."); | |
3163 | return NULL; | |
3164 | } | |
3165 | } | |
3166 | { | |
3167 | wxPy_BEGIN_ALLOW_THREADS; | |
3168 | wxPyShape_MakeControlPoints(_arg0); | |
3169 | ||
3170 | wxPy_END_ALLOW_THREADS; | |
3171 | } Py_INCREF(Py_None); | |
3172 | _resultobj = Py_None; | |
3173 | return _resultobj; | |
3174 | } | |
3175 | ||
3176 | #define wxPyShape_DeleteControlPoints(_swigobj,_swigarg0) (_swigobj->DeleteControlPoints(_swigarg0)) | |
3177 | static PyObject *_wrap_wxPyShape_DeleteControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3178 | PyObject * _resultobj; | |
3179 | wxPyShape * _arg0; | |
3180 | wxDC * _arg1 = (wxDC *) NULL; | |
3181 | PyObject * _argo0 = 0; | |
3182 | PyObject * _argo1 = 0; | |
3183 | char *_kwnames[] = { "self","dc", NULL }; | |
3184 | ||
3185 | self = self; | |
3186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxPyShape_DeleteControlPoints",_kwnames,&_argo0,&_argo1)) | |
3187 | return NULL; | |
3188 | if (_argo0) { | |
3189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_DeleteControlPoints. Expected _wxPyShape_p."); | |
3192 | return NULL; | |
3193 | } | |
3194 | } | |
3195 | if (_argo1) { | |
3196 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3197 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
3198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_DeleteControlPoints. Expected _wxDC_p."); | |
3199 | return NULL; | |
3200 | } | |
3201 | } | |
3202 | { | |
3203 | wxPy_BEGIN_ALLOW_THREADS; | |
3204 | wxPyShape_DeleteControlPoints(_arg0,_arg1); | |
3205 | ||
3206 | wxPy_END_ALLOW_THREADS; | |
3207 | } Py_INCREF(Py_None); | |
3208 | _resultobj = Py_None; | |
3209 | return _resultobj; | |
3210 | } | |
3211 | ||
3212 | #define wxPyShape_ResetControlPoints(_swigobj) (_swigobj->ResetControlPoints()) | |
3213 | static PyObject *_wrap_wxPyShape_ResetControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3214 | PyObject * _resultobj; | |
3215 | wxPyShape * _arg0; | |
3216 | PyObject * _argo0 = 0; | |
3217 | char *_kwnames[] = { "self", NULL }; | |
3218 | ||
3219 | self = self; | |
3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_ResetControlPoints",_kwnames,&_argo0)) | |
3221 | return NULL; | |
3222 | if (_argo0) { | |
3223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_ResetControlPoints. Expected _wxPyShape_p."); | |
3226 | return NULL; | |
3227 | } | |
3228 | } | |
3229 | { | |
3230 | wxPy_BEGIN_ALLOW_THREADS; | |
3231 | wxPyShape_ResetControlPoints(_arg0); | |
3232 | ||
3233 | wxPy_END_ALLOW_THREADS; | |
3234 | } Py_INCREF(Py_None); | |
3235 | _resultobj = Py_None; | |
3236 | return _resultobj; | |
3237 | } | |
3238 | ||
3239 | #define wxPyShape_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
3240 | static PyObject *_wrap_wxPyShape_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject * _resultobj; | |
3242 | wxPyShapeEvtHandler * _result; | |
3243 | wxPyShape * _arg0; | |
3244 | PyObject * _argo0 = 0; | |
3245 | char *_kwnames[] = { "self", NULL }; | |
e91a9dfc RD |
3246 | |
3247 | self = self; | |
3248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetEventHandler",_kwnames,&_argo0)) | |
3249 | return NULL; | |
3250 | if (_argo0) { | |
3251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetEventHandler. Expected _wxPyShape_p."); | |
3254 | return NULL; | |
3255 | } | |
3256 | } | |
3257 | { | |
3258 | wxPy_BEGIN_ALLOW_THREADS; | |
3259 | _result = (wxPyShapeEvtHandler *)wxPyShape_GetEventHandler(_arg0); | |
3260 | ||
3261 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 3262 | }{ _resultobj = wxPyMake_wxObject(_result); } |
e91a9dfc RD |
3263 | return _resultobj; |
3264 | } | |
3265 | ||
3266 | #define wxPyShape_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
3267 | static PyObject *_wrap_wxPyShape_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3268 | PyObject * _resultobj; | |
3269 | wxPyShape * _arg0; | |
3270 | wxPyShapeEvtHandler * _arg1; | |
3271 | PyObject * _argo0 = 0; | |
3272 | PyObject * _argo1 = 0; | |
3273 | char *_kwnames[] = { "self","handler", NULL }; | |
3274 | ||
3275 | self = self; | |
3276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
3277 | return NULL; | |
3278 | if (_argo0) { | |
3279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetEventHandler. Expected _wxPyShape_p."); | |
3282 | return NULL; | |
3283 | } | |
3284 | } | |
3285 | if (_argo1) { | |
3286 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3287 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShapeEvtHandler_p")) { | |
3288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_SetEventHandler. Expected _wxPyShapeEvtHandler_p."); | |
3289 | return NULL; | |
3290 | } | |
3291 | } | |
3292 | { | |
3293 | wxPy_BEGIN_ALLOW_THREADS; | |
3294 | wxPyShape_SetEventHandler(_arg0,_arg1); | |
3295 | ||
3296 | wxPy_END_ALLOW_THREADS; | |
3297 | } Py_INCREF(Py_None); | |
3298 | _resultobj = Py_None; | |
3299 | return _resultobj; | |
3300 | } | |
3301 | ||
3302 | #define wxPyShape_MakeMandatoryControlPoints(_swigobj) (_swigobj->MakeMandatoryControlPoints()) | |
3303 | static PyObject *_wrap_wxPyShape_MakeMandatoryControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3304 | PyObject * _resultobj; | |
3305 | wxPyShape * _arg0; | |
3306 | PyObject * _argo0 = 0; | |
3307 | char *_kwnames[] = { "self", NULL }; | |
3308 | ||
3309 | self = self; | |
3310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_MakeMandatoryControlPoints",_kwnames,&_argo0)) | |
3311 | return NULL; | |
3312 | if (_argo0) { | |
3313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_MakeMandatoryControlPoints. Expected _wxPyShape_p."); | |
3316 | return NULL; | |
3317 | } | |
3318 | } | |
3319 | { | |
3320 | wxPy_BEGIN_ALLOW_THREADS; | |
3321 | wxPyShape_MakeMandatoryControlPoints(_arg0); | |
3322 | ||
3323 | wxPy_END_ALLOW_THREADS; | |
3324 | } Py_INCREF(Py_None); | |
3325 | _resultobj = Py_None; | |
3326 | return _resultobj; | |
3327 | } | |
3328 | ||
3329 | #define wxPyShape_ResetMandatoryControlPoints(_swigobj) (_swigobj->ResetMandatoryControlPoints()) | |
3330 | static PyObject *_wrap_wxPyShape_ResetMandatoryControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3331 | PyObject * _resultobj; | |
3332 | wxPyShape * _arg0; | |
3333 | PyObject * _argo0 = 0; | |
3334 | char *_kwnames[] = { "self", NULL }; | |
3335 | ||
3336 | self = self; | |
3337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_ResetMandatoryControlPoints",_kwnames,&_argo0)) | |
3338 | return NULL; | |
3339 | if (_argo0) { | |
3340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_ResetMandatoryControlPoints. Expected _wxPyShape_p."); | |
3343 | return NULL; | |
3344 | } | |
3345 | } | |
3346 | { | |
3347 | wxPy_BEGIN_ALLOW_THREADS; | |
3348 | wxPyShape_ResetMandatoryControlPoints(_arg0); | |
3349 | ||
3350 | wxPy_END_ALLOW_THREADS; | |
3351 | } Py_INCREF(Py_None); | |
3352 | _resultobj = Py_None; | |
3353 | return _resultobj; | |
3354 | } | |
3355 | ||
3356 | #define wxPyShape_Recompute(_swigobj) (_swigobj->Recompute()) | |
3357 | static PyObject *_wrap_wxPyShape_Recompute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3358 | PyObject * _resultobj; | |
3359 | bool _result; | |
3360 | wxPyShape * _arg0; | |
3361 | PyObject * _argo0 = 0; | |
3362 | char *_kwnames[] = { "self", NULL }; | |
3363 | ||
3364 | self = self; | |
3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_Recompute",_kwnames,&_argo0)) | |
3366 | return NULL; | |
3367 | if (_argo0) { | |
3368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Recompute. Expected _wxPyShape_p."); | |
3371 | return NULL; | |
3372 | } | |
3373 | } | |
3374 | { | |
3375 | wxPy_BEGIN_ALLOW_THREADS; | |
3376 | _result = (bool )wxPyShape_Recompute(_arg0); | |
3377 | ||
3378 | wxPy_END_ALLOW_THREADS; | |
3379 | } _resultobj = Py_BuildValue("i",_result); | |
3380 | return _resultobj; | |
3381 | } | |
3382 | ||
3383 | #define wxPyShape_CalculateSize(_swigobj) (_swigobj->CalculateSize()) | |
3384 | static PyObject *_wrap_wxPyShape_CalculateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3385 | PyObject * _resultobj; | |
3386 | wxPyShape * _arg0; | |
3387 | PyObject * _argo0 = 0; | |
3388 | char *_kwnames[] = { "self", NULL }; | |
3389 | ||
3390 | self = self; | |
3391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_CalculateSize",_kwnames,&_argo0)) | |
3392 | return NULL; | |
3393 | if (_argo0) { | |
3394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_CalculateSize. Expected _wxPyShape_p."); | |
3397 | return NULL; | |
3398 | } | |
3399 | } | |
3400 | { | |
3401 | wxPy_BEGIN_ALLOW_THREADS; | |
3402 | wxPyShape_CalculateSize(_arg0); | |
3403 | ||
3404 | wxPy_END_ALLOW_THREADS; | |
3405 | } Py_INCREF(Py_None); | |
3406 | _resultobj = Py_None; | |
3407 | return _resultobj; | |
3408 | } | |
3409 | ||
3410 | #define wxPyShape_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
3411 | static PyObject *_wrap_wxPyShape_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3412 | PyObject * _resultobj; | |
3413 | wxPyShape * _arg0; | |
3414 | bool _arg1 = (bool ) TRUE; | |
3415 | wxDC * _arg2 = (wxDC *) NULL; | |
3416 | PyObject * _argo0 = 0; | |
3417 | int tempbool1 = (int) TRUE; | |
3418 | PyObject * _argo2 = 0; | |
3419 | char *_kwnames[] = { "self","select","dc", NULL }; | |
3420 | ||
3421 | self = self; | |
3422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxPyShape_Select",_kwnames,&_argo0,&tempbool1,&_argo2)) | |
3423 | return NULL; | |
3424 | if (_argo0) { | |
3425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Select. Expected _wxPyShape_p."); | |
3428 | return NULL; | |
3429 | } | |
3430 | } | |
3431 | _arg1 = (bool ) tempbool1; | |
3432 | if (_argo2) { | |
3433 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3434 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
3435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyShape_Select. Expected _wxDC_p."); | |
3436 | return NULL; | |
3437 | } | |
3438 | } | |
3439 | { | |
3440 | wxPy_BEGIN_ALLOW_THREADS; | |
3441 | wxPyShape_Select(_arg0,_arg1,_arg2); | |
3442 | ||
3443 | wxPy_END_ALLOW_THREADS; | |
3444 | } Py_INCREF(Py_None); | |
3445 | _resultobj = Py_None; | |
3446 | return _resultobj; | |
3447 | } | |
3448 | ||
3449 | #define wxPyShape_SetHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlight(_swigarg0,_swigarg1)) | |
3450 | static PyObject *_wrap_wxPyShape_SetHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3451 | PyObject * _resultobj; | |
3452 | wxPyShape * _arg0; | |
3453 | bool _arg1 = (bool ) TRUE; | |
3454 | bool _arg2 = (bool ) FALSE; | |
3455 | PyObject * _argo0 = 0; | |
3456 | int tempbool1 = (int) TRUE; | |
3457 | int tempbool2 = (int) FALSE; | |
3458 | char *_kwnames[] = { "self","hi","recurse", NULL }; | |
3459 | ||
3460 | self = self; | |
3461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyShape_SetHighlight",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
3462 | return NULL; | |
3463 | if (_argo0) { | |
3464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetHighlight. Expected _wxPyShape_p."); | |
3467 | return NULL; | |
3468 | } | |
3469 | } | |
3470 | _arg1 = (bool ) tempbool1; | |
3471 | _arg2 = (bool ) tempbool2; | |
3472 | { | |
3473 | wxPy_BEGIN_ALLOW_THREADS; | |
3474 | wxPyShape_SetHighlight(_arg0,_arg1,_arg2); | |
3475 | ||
3476 | wxPy_END_ALLOW_THREADS; | |
3477 | } Py_INCREF(Py_None); | |
3478 | _resultobj = Py_None; | |
3479 | return _resultobj; | |
3480 | } | |
3481 | ||
3482 | #define wxPyShape_IsHighlighted(_swigobj) (_swigobj->IsHighlighted()) | |
3483 | static PyObject *_wrap_wxPyShape_IsHighlighted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3484 | PyObject * _resultobj; | |
3485 | bool _result; | |
3486 | wxPyShape * _arg0; | |
3487 | PyObject * _argo0 = 0; | |
3488 | char *_kwnames[] = { "self", NULL }; | |
3489 | ||
3490 | self = self; | |
3491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_IsHighlighted",_kwnames,&_argo0)) | |
3492 | return NULL; | |
3493 | if (_argo0) { | |
3494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_IsHighlighted. Expected _wxPyShape_p."); | |
3497 | return NULL; | |
3498 | } | |
3499 | } | |
3500 | { | |
3501 | wxPy_BEGIN_ALLOW_THREADS; | |
3502 | _result = (bool )wxPyShape_IsHighlighted(_arg0); | |
3503 | ||
3504 | wxPy_END_ALLOW_THREADS; | |
3505 | } _resultobj = Py_BuildValue("i",_result); | |
3506 | return _resultobj; | |
3507 | } | |
3508 | ||
3509 | #define wxPyShape_Selected(_swigobj) (_swigobj->Selected()) | |
3510 | static PyObject *_wrap_wxPyShape_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3511 | PyObject * _resultobj; | |
3512 | bool _result; | |
3513 | wxPyShape * _arg0; | |
3514 | PyObject * _argo0 = 0; | |
3515 | char *_kwnames[] = { "self", NULL }; | |
3516 | ||
3517 | self = self; | |
3518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_Selected",_kwnames,&_argo0)) | |
3519 | return NULL; | |
3520 | if (_argo0) { | |
3521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Selected. Expected _wxPyShape_p."); | |
3524 | return NULL; | |
3525 | } | |
3526 | } | |
3527 | { | |
3528 | wxPy_BEGIN_ALLOW_THREADS; | |
3529 | _result = (bool )wxPyShape_Selected(_arg0); | |
3530 | ||
3531 | wxPy_END_ALLOW_THREADS; | |
3532 | } _resultobj = Py_BuildValue("i",_result); | |
3533 | return _resultobj; | |
3534 | } | |
3535 | ||
3536 | #define wxPyShape_AncestorSelected(_swigobj) (_swigobj->AncestorSelected()) | |
3537 | static PyObject *_wrap_wxPyShape_AncestorSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3538 | PyObject * _resultobj; | |
3539 | bool _result; | |
3540 | wxPyShape * _arg0; | |
3541 | PyObject * _argo0 = 0; | |
3542 | char *_kwnames[] = { "self", NULL }; | |
3543 | ||
3544 | self = self; | |
3545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_AncestorSelected",_kwnames,&_argo0)) | |
3546 | return NULL; | |
3547 | if (_argo0) { | |
3548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_AncestorSelected. Expected _wxPyShape_p."); | |
3551 | return NULL; | |
3552 | } | |
3553 | } | |
3554 | { | |
3555 | wxPy_BEGIN_ALLOW_THREADS; | |
3556 | _result = (bool )wxPyShape_AncestorSelected(_arg0); | |
3557 | ||
3558 | wxPy_END_ALLOW_THREADS; | |
3559 | } _resultobj = Py_BuildValue("i",_result); | |
3560 | return _resultobj; | |
3561 | } | |
3562 | ||
3563 | #define wxPyShape_SetSensitivityFilter(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSensitivityFilter(_swigarg0,_swigarg1)) | |
3564 | static PyObject *_wrap_wxPyShape_SetSensitivityFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3565 | PyObject * _resultobj; | |
3566 | wxPyShape * _arg0; | |
3567 | int _arg1 = (int ) OP_ALL; | |
3568 | bool _arg2 = (bool ) FALSE; | |
3569 | PyObject * _argo0 = 0; | |
3570 | int tempbool2 = (int) FALSE; | |
3571 | char *_kwnames[] = { "self","sens","recursive", NULL }; | |
3572 | ||
3573 | self = self; | |
3574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyShape_SetSensitivityFilter",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3575 | return NULL; | |
3576 | if (_argo0) { | |
3577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetSensitivityFilter. Expected _wxPyShape_p."); | |
3580 | return NULL; | |
3581 | } | |
3582 | } | |
3583 | _arg2 = (bool ) tempbool2; | |
3584 | { | |
3585 | wxPy_BEGIN_ALLOW_THREADS; | |
3586 | wxPyShape_SetSensitivityFilter(_arg0,_arg1,_arg2); | |
3587 | ||
3588 | wxPy_END_ALLOW_THREADS; | |
3589 | } Py_INCREF(Py_None); | |
3590 | _resultobj = Py_None; | |
3591 | return _resultobj; | |
3592 | } | |
3593 | ||
3594 | #define wxPyShape_GetSensitivityFilter(_swigobj) (_swigobj->GetSensitivityFilter()) | |
3595 | static PyObject *_wrap_wxPyShape_GetSensitivityFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3596 | PyObject * _resultobj; | |
3597 | int _result; | |
3598 | wxPyShape * _arg0; | |
3599 | PyObject * _argo0 = 0; | |
3600 | char *_kwnames[] = { "self", NULL }; | |
3601 | ||
3602 | self = self; | |
3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetSensitivityFilter",_kwnames,&_argo0)) | |
3604 | return NULL; | |
3605 | if (_argo0) { | |
3606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetSensitivityFilter. Expected _wxPyShape_p."); | |
3609 | return NULL; | |
3610 | } | |
3611 | } | |
3612 | { | |
3613 | wxPy_BEGIN_ALLOW_THREADS; | |
3614 | _result = (int )wxPyShape_GetSensitivityFilter(_arg0); | |
3615 | ||
3616 | wxPy_END_ALLOW_THREADS; | |
3617 | } _resultobj = Py_BuildValue("i",_result); | |
3618 | return _resultobj; | |
3619 | } | |
3620 | ||
3621 | #define wxPyShape_SetDraggable(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDraggable(_swigarg0,_swigarg1)) | |
3622 | static PyObject *_wrap_wxPyShape_SetDraggable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3623 | PyObject * _resultobj; | |
3624 | wxPyShape * _arg0; | |
3625 | bool _arg1; | |
3626 | bool _arg2 = (bool ) FALSE; | |
3627 | PyObject * _argo0 = 0; | |
3628 | int tempbool1; | |
3629 | int tempbool2 = (int) FALSE; | |
3630 | char *_kwnames[] = { "self","drag","recursive", NULL }; | |
3631 | ||
3632 | self = self; | |
3633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxPyShape_SetDraggable",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
3634 | return NULL; | |
3635 | if (_argo0) { | |
3636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetDraggable. Expected _wxPyShape_p."); | |
3639 | return NULL; | |
3640 | } | |
3641 | } | |
3642 | _arg1 = (bool ) tempbool1; | |
3643 | _arg2 = (bool ) tempbool2; | |
3644 | { | |
3645 | wxPy_BEGIN_ALLOW_THREADS; | |
3646 | wxPyShape_SetDraggable(_arg0,_arg1,_arg2); | |
3647 | ||
3648 | wxPy_END_ALLOW_THREADS; | |
3649 | } Py_INCREF(Py_None); | |
3650 | _resultobj = Py_None; | |
3651 | return _resultobj; | |
3652 | } | |
3653 | ||
3654 | #define wxPyShape_SetFixedSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFixedSize(_swigarg0,_swigarg1)) | |
3655 | static PyObject *_wrap_wxPyShape_SetFixedSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3656 | PyObject * _resultobj; | |
3657 | wxPyShape * _arg0; | |
3658 | bool _arg1; | |
3659 | bool _arg2; | |
3660 | PyObject * _argo0 = 0; | |
3661 | int tempbool1; | |
3662 | int tempbool2; | |
3663 | char *_kwnames[] = { "self","x","y", NULL }; | |
3664 | ||
3665 | self = self; | |
3666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyShape_SetFixedSize",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
3667 | return NULL; | |
3668 | if (_argo0) { | |
3669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetFixedSize. Expected _wxPyShape_p."); | |
3672 | return NULL; | |
3673 | } | |
3674 | } | |
3675 | _arg1 = (bool ) tempbool1; | |
3676 | _arg2 = (bool ) tempbool2; | |
3677 | { | |
3678 | wxPy_BEGIN_ALLOW_THREADS; | |
3679 | wxPyShape_SetFixedSize(_arg0,_arg1,_arg2); | |
3680 | ||
3681 | wxPy_END_ALLOW_THREADS; | |
3682 | } Py_INCREF(Py_None); | |
3683 | _resultobj = Py_None; | |
3684 | return _resultobj; | |
3685 | } | |
3686 | ||
3687 | #define wxPyShape_GetFixedSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFixedSize(_swigarg0,_swigarg1)) | |
3688 | static PyObject *_wrap_wxPyShape_GetFixedSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3689 | PyObject * _resultobj; | |
3690 | wxPyShape * _arg0; | |
3691 | bool * _arg1; | |
3692 | bool * _arg2; | |
3693 | PyObject * _argo0 = 0; | |
3694 | PyObject * _argo1 = 0; | |
3695 | PyObject * _argo2 = 0; | |
3696 | char *_kwnames[] = { "self","OUTPUT","OUTPUT", NULL }; | |
3697 | ||
3698 | self = self; | |
3699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyShape_GetFixedSize",_kwnames,&_argo0,&_argo1,&_argo2)) | |
3700 | return NULL; | |
3701 | if (_argo0) { | |
3702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetFixedSize. Expected _wxPyShape_p."); | |
3705 | return NULL; | |
3706 | } | |
3707 | } | |
3708 | if (_argo1) { | |
3709 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3710 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_bool_p")) { | |
3711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_GetFixedSize. Expected _bool_p."); | |
3712 | return NULL; | |
3713 | } | |
3714 | } | |
3715 | if (_argo2) { | |
3716 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3717 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_bool_p")) { | |
3718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyShape_GetFixedSize. Expected _bool_p."); | |
3719 | return NULL; | |
3720 | } | |
3721 | } | |
3722 | { | |
3723 | wxPy_BEGIN_ALLOW_THREADS; | |
3724 | wxPyShape_GetFixedSize(_arg0,_arg1,_arg2); | |
3725 | ||
3726 | wxPy_END_ALLOW_THREADS; | |
3727 | } Py_INCREF(Py_None); | |
3728 | _resultobj = Py_None; | |
3729 | return _resultobj; | |
3730 | } | |
3731 | ||
3732 | #define wxPyShape_GetFixedWidth(_swigobj) (_swigobj->GetFixedWidth()) | |
3733 | static PyObject *_wrap_wxPyShape_GetFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3734 | PyObject * _resultobj; | |
3735 | bool _result; | |
3736 | wxPyShape * _arg0; | |
3737 | PyObject * _argo0 = 0; | |
3738 | char *_kwnames[] = { "self", NULL }; | |
3739 | ||
3740 | self = self; | |
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetFixedWidth",_kwnames,&_argo0)) | |
3742 | return NULL; | |
3743 | if (_argo0) { | |
3744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetFixedWidth. Expected _wxPyShape_p."); | |
3747 | return NULL; | |
3748 | } | |
3749 | } | |
3750 | { | |
3751 | wxPy_BEGIN_ALLOW_THREADS; | |
3752 | _result = (bool )wxPyShape_GetFixedWidth(_arg0); | |
3753 | ||
3754 | wxPy_END_ALLOW_THREADS; | |
3755 | } _resultobj = Py_BuildValue("i",_result); | |
3756 | return _resultobj; | |
3757 | } | |
3758 | ||
3759 | #define wxPyShape_GetFixedHeight(_swigobj) (_swigobj->GetFixedHeight()) | |
3760 | static PyObject *_wrap_wxPyShape_GetFixedHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3761 | PyObject * _resultobj; | |
3762 | bool _result; | |
3763 | wxPyShape * _arg0; | |
3764 | PyObject * _argo0 = 0; | |
3765 | char *_kwnames[] = { "self", NULL }; | |
3766 | ||
3767 | self = self; | |
3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetFixedHeight",_kwnames,&_argo0)) | |
3769 | return NULL; | |
3770 | if (_argo0) { | |
3771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetFixedHeight. Expected _wxPyShape_p."); | |
3774 | return NULL; | |
3775 | } | |
3776 | } | |
3777 | { | |
3778 | wxPy_BEGIN_ALLOW_THREADS; | |
3779 | _result = (bool )wxPyShape_GetFixedHeight(_arg0); | |
3780 | ||
3781 | wxPy_END_ALLOW_THREADS; | |
3782 | } _resultobj = Py_BuildValue("i",_result); | |
3783 | return _resultobj; | |
3784 | } | |
3785 | ||
3786 | #define wxPyShape_SetSpaceAttachments(_swigobj,_swigarg0) (_swigobj->SetSpaceAttachments(_swigarg0)) | |
3787 | static PyObject *_wrap_wxPyShape_SetSpaceAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3788 | PyObject * _resultobj; | |
3789 | wxPyShape * _arg0; | |
3790 | bool _arg1; | |
3791 | PyObject * _argo0 = 0; | |
3792 | int tempbool1; | |
3793 | char *_kwnames[] = { "self","sp", NULL }; | |
3794 | ||
3795 | self = self; | |
3796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_SetSpaceAttachments",_kwnames,&_argo0,&tempbool1)) | |
3797 | return NULL; | |
3798 | if (_argo0) { | |
3799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetSpaceAttachments. Expected _wxPyShape_p."); | |
3802 | return NULL; | |
3803 | } | |
3804 | } | |
3805 | _arg1 = (bool ) tempbool1; | |
3806 | { | |
3807 | wxPy_BEGIN_ALLOW_THREADS; | |
3808 | wxPyShape_SetSpaceAttachments(_arg0,_arg1); | |
3809 | ||
3810 | wxPy_END_ALLOW_THREADS; | |
3811 | } Py_INCREF(Py_None); | |
3812 | _resultobj = Py_None; | |
3813 | return _resultobj; | |
3814 | } | |
3815 | ||
3816 | #define wxPyShape_GetSpaceAttachments(_swigobj) (_swigobj->GetSpaceAttachments()) | |
3817 | static PyObject *_wrap_wxPyShape_GetSpaceAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3818 | PyObject * _resultobj; | |
3819 | bool _result; | |
3820 | wxPyShape * _arg0; | |
3821 | PyObject * _argo0 = 0; | |
3822 | char *_kwnames[] = { "self", NULL }; | |
3823 | ||
3824 | self = self; | |
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetSpaceAttachments",_kwnames,&_argo0)) | |
3826 | return NULL; | |
3827 | if (_argo0) { | |
3828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetSpaceAttachments. Expected _wxPyShape_p."); | |
3831 | return NULL; | |
3832 | } | |
3833 | } | |
3834 | { | |
3835 | wxPy_BEGIN_ALLOW_THREADS; | |
3836 | _result = (bool )wxPyShape_GetSpaceAttachments(_arg0); | |
3837 | ||
3838 | wxPy_END_ALLOW_THREADS; | |
3839 | } _resultobj = Py_BuildValue("i",_result); | |
3840 | return _resultobj; | |
3841 | } | |
3842 | ||
3843 | #define wxPyShape_SetShadowMode(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetShadowMode(_swigarg0,_swigarg1)) | |
3844 | static PyObject *_wrap_wxPyShape_SetShadowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3845 | PyObject * _resultobj; | |
3846 | wxPyShape * _arg0; | |
3847 | int _arg1; | |
3848 | bool _arg2 = (bool ) FALSE; | |
3849 | PyObject * _argo0 = 0; | |
3850 | int tempbool2 = (int) FALSE; | |
3851 | char *_kwnames[] = { "self","mode","redraw", NULL }; | |
3852 | ||
3853 | self = self; | |
3854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxPyShape_SetShadowMode",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3855 | return NULL; | |
3856 | if (_argo0) { | |
3857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetShadowMode. Expected _wxPyShape_p."); | |
3860 | return NULL; | |
3861 | } | |
3862 | } | |
3863 | _arg2 = (bool ) tempbool2; | |
3864 | { | |
3865 | wxPy_BEGIN_ALLOW_THREADS; | |
3866 | wxPyShape_SetShadowMode(_arg0,_arg1,_arg2); | |
3867 | ||
3868 | wxPy_END_ALLOW_THREADS; | |
3869 | } Py_INCREF(Py_None); | |
3870 | _resultobj = Py_None; | |
3871 | return _resultobj; | |
3872 | } | |
3873 | ||
3874 | #define wxPyShape_GetShadowMode(_swigobj) (_swigobj->GetShadowMode()) | |
3875 | static PyObject *_wrap_wxPyShape_GetShadowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3876 | PyObject * _resultobj; | |
3877 | int _result; | |
3878 | wxPyShape * _arg0; | |
3879 | PyObject * _argo0 = 0; | |
3880 | char *_kwnames[] = { "self", NULL }; | |
3881 | ||
3882 | self = self; | |
3883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetShadowMode",_kwnames,&_argo0)) | |
3884 | return NULL; | |
3885 | if (_argo0) { | |
3886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetShadowMode. Expected _wxPyShape_p."); | |
3889 | return NULL; | |
3890 | } | |
3891 | } | |
3892 | { | |
3893 | wxPy_BEGIN_ALLOW_THREADS; | |
3894 | _result = (int )wxPyShape_GetShadowMode(_arg0); | |
3895 | ||
3896 | wxPy_END_ALLOW_THREADS; | |
3897 | } _resultobj = Py_BuildValue("i",_result); | |
3898 | return _resultobj; | |
3899 | } | |
3900 | ||
3901 | #define wxPyShape_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3902 | static PyObject *_wrap_wxPyShape_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3903 | PyObject * _resultobj; | |
3904 | bool _result; | |
3905 | wxPyShape * _arg0; | |
3906 | double _arg1; | |
3907 | double _arg2; | |
3908 | int * _arg3; | |
3909 | int temp; | |
3910 | double * _arg4; | |
3911 | double temp0; | |
3912 | PyObject * _argo0 = 0; | |
3913 | char *_kwnames[] = { "self","x","y", NULL }; | |
3914 | ||
3915 | self = self; | |
3916 | { | |
3917 | _arg3 = &temp; | |
3918 | } | |
3919 | { | |
3920 | _arg4 = &temp0; | |
3921 | } | |
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPyShape_HitTest",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3923 | return NULL; | |
3924 | if (_argo0) { | |
3925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_HitTest. Expected _wxPyShape_p."); | |
3928 | return NULL; | |
3929 | } | |
3930 | } | |
3931 | { | |
3932 | wxPy_BEGIN_ALLOW_THREADS; | |
3933 | _result = (bool )wxPyShape_HitTest(_arg0,_arg1,_arg2,_arg3,_arg4); | |
3934 | ||
3935 | wxPy_END_ALLOW_THREADS; | |
3936 | } _resultobj = Py_BuildValue("i",_result); | |
3937 | { | |
3938 | PyObject *o; | |
3939 | o = PyInt_FromLong((long) (*_arg3)); | |
3940 | _resultobj = t_output_helper(_resultobj, o); | |
3941 | } | |
3942 | { | |
3943 | PyObject *o; | |
3944 | o = PyFloat_FromDouble((double) (*_arg4)); | |
3945 | _resultobj = t_output_helper(_resultobj, o); | |
3946 | } | |
3947 | return _resultobj; | |
3948 | } | |
3949 | ||
3950 | #define wxPyShape_SetCentreResize(_swigobj,_swigarg0) (_swigobj->SetCentreResize(_swigarg0)) | |
3951 | static PyObject *_wrap_wxPyShape_SetCentreResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3952 | PyObject * _resultobj; | |
3953 | wxPyShape * _arg0; | |
3954 | bool _arg1; | |
3955 | PyObject * _argo0 = 0; | |
3956 | int tempbool1; | |
3957 | char *_kwnames[] = { "self","cr", NULL }; | |
3958 | ||
3959 | self = self; | |
3960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_SetCentreResize",_kwnames,&_argo0,&tempbool1)) | |
3961 | return NULL; | |
3962 | if (_argo0) { | |
3963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetCentreResize. Expected _wxPyShape_p."); | |
3966 | return NULL; | |
3967 | } | |
3968 | } | |
3969 | _arg1 = (bool ) tempbool1; | |
3970 | { | |
3971 | wxPy_BEGIN_ALLOW_THREADS; | |
3972 | wxPyShape_SetCentreResize(_arg0,_arg1); | |
3973 | ||
3974 | wxPy_END_ALLOW_THREADS; | |
3975 | } Py_INCREF(Py_None); | |
3976 | _resultobj = Py_None; | |
3977 | return _resultobj; | |
3978 | } | |
3979 | ||
3980 | #define wxPyShape_GetCentreResize(_swigobj) (_swigobj->GetCentreResize()) | |
3981 | static PyObject *_wrap_wxPyShape_GetCentreResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3982 | PyObject * _resultobj; | |
3983 | bool _result; | |
3984 | wxPyShape * _arg0; | |
3985 | PyObject * _argo0 = 0; | |
3986 | char *_kwnames[] = { "self", NULL }; | |
3987 | ||
3988 | self = self; | |
3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetCentreResize",_kwnames,&_argo0)) | |
3990 | return NULL; | |
3991 | if (_argo0) { | |
3992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
3994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetCentreResize. Expected _wxPyShape_p."); | |
3995 | return NULL; | |
3996 | } | |
3997 | } | |
3998 | { | |
3999 | wxPy_BEGIN_ALLOW_THREADS; | |
4000 | _result = (bool )wxPyShape_GetCentreResize(_arg0); | |
4001 | ||
4002 | wxPy_END_ALLOW_THREADS; | |
4003 | } _resultobj = Py_BuildValue("i",_result); | |
4004 | return _resultobj; | |
4005 | } | |
4006 | ||
4007 | #define wxPyShape_SetMaintainAspectRatio(_swigobj,_swigarg0) (_swigobj->SetMaintainAspectRatio(_swigarg0)) | |
4008 | static PyObject *_wrap_wxPyShape_SetMaintainAspectRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4009 | PyObject * _resultobj; | |
4010 | wxPyShape * _arg0; | |
4011 | bool _arg1; | |
4012 | PyObject * _argo0 = 0; | |
4013 | int tempbool1; | |
4014 | char *_kwnames[] = { "self","ar", NULL }; | |
4015 | ||
4016 | self = self; | |
4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_SetMaintainAspectRatio",_kwnames,&_argo0,&tempbool1)) | |
4018 | return NULL; | |
4019 | if (_argo0) { | |
4020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetMaintainAspectRatio. Expected _wxPyShape_p."); | |
4023 | return NULL; | |
4024 | } | |
4025 | } | |
4026 | _arg1 = (bool ) tempbool1; | |
4027 | { | |
4028 | wxPy_BEGIN_ALLOW_THREADS; | |
4029 | wxPyShape_SetMaintainAspectRatio(_arg0,_arg1); | |
4030 | ||
4031 | wxPy_END_ALLOW_THREADS; | |
4032 | } Py_INCREF(Py_None); | |
4033 | _resultobj = Py_None; | |
4034 | return _resultobj; | |
4035 | } | |
4036 | ||
4037 | #define wxPyShape_GetMaintainAspectRatio(_swigobj) (_swigobj->GetMaintainAspectRatio()) | |
4038 | static PyObject *_wrap_wxPyShape_GetMaintainAspectRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4039 | PyObject * _resultobj; | |
4040 | bool _result; | |
4041 | wxPyShape * _arg0; | |
4042 | PyObject * _argo0 = 0; | |
4043 | char *_kwnames[] = { "self", NULL }; | |
4044 | ||
4045 | self = self; | |
4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetMaintainAspectRatio",_kwnames,&_argo0)) | |
4047 | return NULL; | |
4048 | if (_argo0) { | |
4049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetMaintainAspectRatio. Expected _wxPyShape_p."); | |
4052 | return NULL; | |
4053 | } | |
4054 | } | |
4055 | { | |
4056 | wxPy_BEGIN_ALLOW_THREADS; | |
4057 | _result = (bool )wxPyShape_GetMaintainAspectRatio(_arg0); | |
4058 | ||
4059 | wxPy_END_ALLOW_THREADS; | |
4060 | } _resultobj = Py_BuildValue("i",_result); | |
4061 | return _resultobj; | |
4062 | } | |
4063 | ||
4064 | static PyObject * wxPyShape_GetLines(wxPyShape *self) { | |
4065 | wxList& list = self->GetLines(); | |
4066 | return wxPy_ConvertList(&list, "wxPyLineShape"); | |
4067 | } | |
4068 | static PyObject *_wrap_wxPyShape_GetLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4069 | PyObject * _resultobj; | |
4070 | PyObject * _result; | |
4071 | wxPyShape * _arg0; | |
4072 | PyObject * _argo0 = 0; | |
4073 | char *_kwnames[] = { "self", NULL }; | |
4074 | ||
4075 | self = self; | |
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetLines",_kwnames,&_argo0)) | |
4077 | return NULL; | |
4078 | if (_argo0) { | |
4079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetLines. Expected _wxPyShape_p."); | |
4082 | return NULL; | |
4083 | } | |
4084 | } | |
4085 | { | |
4086 | wxPy_BEGIN_ALLOW_THREADS; | |
4087 | _result = (PyObject *)wxPyShape_GetLines(_arg0); | |
4088 | ||
4089 | wxPy_END_ALLOW_THREADS; | |
4090 | }{ | |
4091 | _resultobj = _result; | |
4092 | } | |
4093 | return _resultobj; | |
4094 | } | |
4095 | ||
4096 | #define wxPyShape_SetDisableLabel(_swigobj,_swigarg0) (_swigobj->SetDisableLabel(_swigarg0)) | |
4097 | static PyObject *_wrap_wxPyShape_SetDisableLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4098 | PyObject * _resultobj; | |
4099 | wxPyShape * _arg0; | |
4100 | bool _arg1; | |
4101 | PyObject * _argo0 = 0; | |
4102 | int tempbool1; | |
4103 | char *_kwnames[] = { "self","flag", NULL }; | |
4104 | ||
4105 | self = self; | |
4106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_SetDisableLabel",_kwnames,&_argo0,&tempbool1)) | |
4107 | return NULL; | |
4108 | if (_argo0) { | |
4109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetDisableLabel. Expected _wxPyShape_p."); | |
4112 | return NULL; | |
4113 | } | |
4114 | } | |
4115 | _arg1 = (bool ) tempbool1; | |
4116 | { | |
4117 | wxPy_BEGIN_ALLOW_THREADS; | |
4118 | wxPyShape_SetDisableLabel(_arg0,_arg1); | |
4119 | ||
4120 | wxPy_END_ALLOW_THREADS; | |
4121 | } Py_INCREF(Py_None); | |
4122 | _resultobj = Py_None; | |
4123 | return _resultobj; | |
4124 | } | |
4125 | ||
4126 | #define wxPyShape_GetDisableLabel(_swigobj) (_swigobj->GetDisableLabel()) | |
4127 | static PyObject *_wrap_wxPyShape_GetDisableLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4128 | PyObject * _resultobj; | |
4129 | bool _result; | |
4130 | wxPyShape * _arg0; | |
4131 | PyObject * _argo0 = 0; | |
4132 | char *_kwnames[] = { "self", NULL }; | |
4133 | ||
4134 | self = self; | |
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetDisableLabel",_kwnames,&_argo0)) | |
4136 | return NULL; | |
4137 | if (_argo0) { | |
4138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetDisableLabel. Expected _wxPyShape_p."); | |
4141 | return NULL; | |
4142 | } | |
4143 | } | |
4144 | { | |
4145 | wxPy_BEGIN_ALLOW_THREADS; | |
4146 | _result = (bool )wxPyShape_GetDisableLabel(_arg0); | |
4147 | ||
4148 | wxPy_END_ALLOW_THREADS; | |
4149 | } _resultobj = Py_BuildValue("i",_result); | |
4150 | return _resultobj; | |
4151 | } | |
4152 | ||
4153 | #define wxPyShape_SetAttachmentMode(_swigobj,_swigarg0) (_swigobj->SetAttachmentMode(_swigarg0)) | |
4154 | static PyObject *_wrap_wxPyShape_SetAttachmentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4155 | PyObject * _resultobj; | |
4156 | wxPyShape * _arg0; | |
4157 | int _arg1; | |
4158 | PyObject * _argo0 = 0; | |
4159 | char *_kwnames[] = { "self","mode", NULL }; | |
4160 | ||
4161 | self = self; | |
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_SetAttachmentMode",_kwnames,&_argo0,&_arg1)) | |
4163 | return NULL; | |
4164 | if (_argo0) { | |
4165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetAttachmentMode. Expected _wxPyShape_p."); | |
4168 | return NULL; | |
4169 | } | |
4170 | } | |
4171 | { | |
4172 | wxPy_BEGIN_ALLOW_THREADS; | |
4173 | wxPyShape_SetAttachmentMode(_arg0,_arg1); | |
4174 | ||
4175 | wxPy_END_ALLOW_THREADS; | |
4176 | } Py_INCREF(Py_None); | |
4177 | _resultobj = Py_None; | |
4178 | return _resultobj; | |
4179 | } | |
4180 | ||
4181 | #define wxPyShape_GetAttachmentMode(_swigobj) (_swigobj->GetAttachmentMode()) | |
4182 | static PyObject *_wrap_wxPyShape_GetAttachmentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4183 | PyObject * _resultobj; | |
4184 | int _result; | |
4185 | wxPyShape * _arg0; | |
4186 | PyObject * _argo0 = 0; | |
4187 | char *_kwnames[] = { "self", NULL }; | |
4188 | ||
4189 | self = self; | |
4190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetAttachmentMode",_kwnames,&_argo0)) | |
4191 | return NULL; | |
4192 | if (_argo0) { | |
4193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetAttachmentMode. Expected _wxPyShape_p."); | |
4196 | return NULL; | |
4197 | } | |
4198 | } | |
4199 | { | |
4200 | wxPy_BEGIN_ALLOW_THREADS; | |
4201 | _result = (int )wxPyShape_GetAttachmentMode(_arg0); | |
4202 | ||
4203 | wxPy_END_ALLOW_THREADS; | |
4204 | } _resultobj = Py_BuildValue("i",_result); | |
4205 | return _resultobj; | |
4206 | } | |
4207 | ||
4208 | #define wxPyShape_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
4209 | static PyObject *_wrap_wxPyShape_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4210 | PyObject * _resultobj; | |
4211 | wxPyShape * _arg0; | |
4212 | long _arg1; | |
4213 | PyObject * _argo0 = 0; | |
4214 | char *_kwnames[] = { "self","i", NULL }; | |
4215 | ||
4216 | self = self; | |
4217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPyShape_SetId",_kwnames,&_argo0,&_arg1)) | |
4218 | return NULL; | |
4219 | if (_argo0) { | |
4220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetId. Expected _wxPyShape_p."); | |
4223 | return NULL; | |
4224 | } | |
4225 | } | |
4226 | { | |
4227 | wxPy_BEGIN_ALLOW_THREADS; | |
4228 | wxPyShape_SetId(_arg0,_arg1); | |
4229 | ||
4230 | wxPy_END_ALLOW_THREADS; | |
4231 | } Py_INCREF(Py_None); | |
4232 | _resultobj = Py_None; | |
4233 | return _resultobj; | |
4234 | } | |
4235 | ||
4236 | #define wxPyShape_GetId(_swigobj) (_swigobj->GetId()) | |
4237 | static PyObject *_wrap_wxPyShape_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4238 | PyObject * _resultobj; | |
4239 | long _result; | |
4240 | wxPyShape * _arg0; | |
4241 | PyObject * _argo0 = 0; | |
4242 | char *_kwnames[] = { "self", NULL }; | |
4243 | ||
4244 | self = self; | |
4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetId",_kwnames,&_argo0)) | |
4246 | return NULL; | |
4247 | if (_argo0) { | |
4248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetId. Expected _wxPyShape_p."); | |
4251 | return NULL; | |
4252 | } | |
4253 | } | |
4254 | { | |
4255 | wxPy_BEGIN_ALLOW_THREADS; | |
4256 | _result = (long )wxPyShape_GetId(_arg0); | |
4257 | ||
4258 | wxPy_END_ALLOW_THREADS; | |
4259 | } _resultobj = Py_BuildValue("l",_result); | |
4260 | return _resultobj; | |
4261 | } | |
4262 | ||
4263 | #define wxPyShape_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
4264 | static PyObject *_wrap_wxPyShape_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4265 | PyObject * _resultobj; | |
4266 | wxPyShape * _arg0; | |
4267 | wxPen * _arg1; | |
4268 | PyObject * _argo0 = 0; | |
d74525f7 | 4269 | PyObject * _obj1 = 0; |
e91a9dfc RD |
4270 | char *_kwnames[] = { "self","pen", NULL }; |
4271 | ||
4272 | self = self; | |
d74525f7 | 4273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_SetPen",_kwnames,&_argo0,&_obj1)) |
e91a9dfc RD |
4274 | return NULL; |
4275 | if (_argo0) { | |
4276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetPen. Expected _wxPyShape_p."); | |
4279 | return NULL; | |
4280 | } | |
4281 | } | |
d74525f7 RD |
4282 | { |
4283 | wxPen* temp; | |
4284 | if (_obj1) { | |
4285 | if (_obj1 == Py_None) { temp = NULL; } | |
4286 | else if (SWIG_GetPtrObj(_obj1, (void **) &temp,"_wxPen_p")) { | |
4287 | PyErr_SetString(PyExc_TypeError,"Type error, expected _wxPen_p."); | |
e91a9dfc RD |
4288 | return NULL; |
4289 | } | |
4290 | } | |
d74525f7 RD |
4291 | if (temp) |
4292 | _arg1 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
4293 | temp->GetWidth(), | |
4294 | temp->GetStyle()); | |
4295 | else | |
4296 | _arg1 = NULL; | |
4297 | } | |
e91a9dfc RD |
4298 | { |
4299 | wxPy_BEGIN_ALLOW_THREADS; | |
4300 | wxPyShape_SetPen(_arg0,_arg1); | |
4301 | ||
4302 | wxPy_END_ALLOW_THREADS; | |
4303 | } Py_INCREF(Py_None); | |
4304 | _resultobj = Py_None; | |
4305 | return _resultobj; | |
4306 | } | |
4307 | ||
4308 | #define wxPyShape_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
4309 | static PyObject *_wrap_wxPyShape_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4310 | PyObject * _resultobj; | |
4311 | wxPyShape * _arg0; | |
4312 | wxBrush * _arg1; | |
4313 | PyObject * _argo0 = 0; | |
d74525f7 | 4314 | PyObject * _obj1 = 0; |
e91a9dfc RD |
4315 | char *_kwnames[] = { "self","brush", NULL }; |
4316 | ||
4317 | self = self; | |
d74525f7 | 4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_SetBrush",_kwnames,&_argo0,&_obj1)) |
e91a9dfc RD |
4319 | return NULL; |
4320 | if (_argo0) { | |
4321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetBrush. Expected _wxPyShape_p."); | |
4324 | return NULL; | |
4325 | } | |
4326 | } | |
d74525f7 RD |
4327 | { |
4328 | wxBrush* temp; | |
4329 | if (_obj1) { | |
4330 | if (_obj1 == Py_None) { temp = NULL; } | |
4331 | else if (SWIG_GetPtrObj(_obj1, (void **) &temp,"_wxBrush_p")) { | |
4332 | PyErr_SetString(PyExc_TypeError,"Type error, expected _wxBrush_p."); | |
e91a9dfc RD |
4333 | return NULL; |
4334 | } | |
4335 | } | |
d74525f7 RD |
4336 | if (temp) |
4337 | _arg1 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
4338 | else | |
4339 | _arg1 = NULL; | |
4340 | } | |
e91a9dfc RD |
4341 | { |
4342 | wxPy_BEGIN_ALLOW_THREADS; | |
4343 | wxPyShape_SetBrush(_arg0,_arg1); | |
4344 | ||
4345 | wxPy_END_ALLOW_THREADS; | |
4346 | } Py_INCREF(Py_None); | |
4347 | _resultobj = Py_None; | |
4348 | return _resultobj; | |
4349 | } | |
4350 | ||
714d23b4 RD |
4351 | static void wxPyShape_SetClientData(wxPyShape *self,PyObject * userData) { |
4352 | wxPyUserData* data = NULL; | |
4353 | if (userData) | |
4354 | data = new wxPyUserData(userData); | |
4355 | self->SetClientData(data); | |
4356 | } | |
e91a9dfc RD |
4357 | static PyObject *_wrap_wxPyShape_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { |
4358 | PyObject * _resultobj; | |
4359 | wxPyShape * _arg0; | |
714d23b4 | 4360 | PyObject * _arg1; |
e91a9dfc | 4361 | PyObject * _argo0 = 0; |
714d23b4 RD |
4362 | PyObject * _obj1 = 0; |
4363 | char *_kwnames[] = { "self","userData", NULL }; | |
e91a9dfc RD |
4364 | |
4365 | self = self; | |
714d23b4 | 4366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_SetClientData",_kwnames,&_argo0,&_obj1)) |
e91a9dfc RD |
4367 | return NULL; |
4368 | if (_argo0) { | |
4369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetClientData. Expected _wxPyShape_p."); | |
4372 | return NULL; | |
4373 | } | |
4374 | } | |
714d23b4 RD |
4375 | { |
4376 | _arg1 = _obj1; | |
4377 | } | |
e91a9dfc RD |
4378 | { |
4379 | wxPy_BEGIN_ALLOW_THREADS; | |
4380 | wxPyShape_SetClientData(_arg0,_arg1); | |
4381 | ||
4382 | wxPy_END_ALLOW_THREADS; | |
4383 | } Py_INCREF(Py_None); | |
4384 | _resultobj = Py_None; | |
4385 | return _resultobj; | |
4386 | } | |
4387 | ||
714d23b4 RD |
4388 | static PyObject * wxPyShape_GetClientData(wxPyShape *self) { |
4389 | wxPyUserData* data = (wxPyUserData*)self->GetClientData(); | |
4390 | if (data) { | |
4391 | Py_INCREF(data->m_obj); | |
4392 | return data->m_obj; | |
4393 | } else { | |
4394 | Py_INCREF(Py_None); | |
4395 | return Py_None; | |
4396 | } | |
4397 | } | |
e91a9dfc RD |
4398 | static PyObject *_wrap_wxPyShape_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { |
4399 | PyObject * _resultobj; | |
714d23b4 | 4400 | PyObject * _result; |
e91a9dfc RD |
4401 | wxPyShape * _arg0; |
4402 | PyObject * _argo0 = 0; | |
4403 | char *_kwnames[] = { "self", NULL }; | |
e91a9dfc RD |
4404 | |
4405 | self = self; | |
4406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetClientData",_kwnames,&_argo0)) | |
4407 | return NULL; | |
4408 | if (_argo0) { | |
4409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetClientData. Expected _wxPyShape_p."); | |
4412 | return NULL; | |
4413 | } | |
4414 | } | |
4415 | { | |
4416 | wxPy_BEGIN_ALLOW_THREADS; | |
714d23b4 | 4417 | _result = (PyObject *)wxPyShape_GetClientData(_arg0); |
e91a9dfc RD |
4418 | |
4419 | wxPy_END_ALLOW_THREADS; | |
714d23b4 RD |
4420 | }{ |
4421 | _resultobj = _result; | |
4422 | } | |
e91a9dfc RD |
4423 | return _resultobj; |
4424 | } | |
4425 | ||
4426 | #define wxPyShape_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
4427 | static PyObject *_wrap_wxPyShape_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4428 | PyObject * _resultobj; | |
4429 | wxPyShape * _arg0; | |
4430 | bool _arg1; | |
4431 | PyObject * _argo0 = 0; | |
4432 | int tempbool1; | |
4433 | char *_kwnames[] = { "self","show", NULL }; | |
4434 | ||
4435 | self = self; | |
4436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_Show",_kwnames,&_argo0,&tempbool1)) | |
4437 | return NULL; | |
4438 | if (_argo0) { | |
4439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Show. Expected _wxPyShape_p."); | |
4442 | return NULL; | |
4443 | } | |
4444 | } | |
4445 | _arg1 = (bool ) tempbool1; | |
4446 | { | |
4447 | wxPy_BEGIN_ALLOW_THREADS; | |
4448 | wxPyShape_Show(_arg0,_arg1); | |
4449 | ||
4450 | wxPy_END_ALLOW_THREADS; | |
4451 | } Py_INCREF(Py_None); | |
4452 | _resultobj = Py_None; | |
4453 | return _resultobj; | |
4454 | } | |
4455 | ||
4456 | #define wxPyShape_IsShown(_swigobj) (_swigobj->IsShown()) | |
4457 | static PyObject *_wrap_wxPyShape_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4458 | PyObject * _resultobj; | |
4459 | bool _result; | |
4460 | wxPyShape * _arg0; | |
4461 | PyObject * _argo0 = 0; | |
4462 | char *_kwnames[] = { "self", NULL }; | |
4463 | ||
4464 | self = self; | |
4465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_IsShown",_kwnames,&_argo0)) | |
4466 | return NULL; | |
4467 | if (_argo0) { | |
4468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_IsShown. Expected _wxPyShape_p."); | |
4471 | return NULL; | |
4472 | } | |
4473 | } | |
4474 | { | |
4475 | wxPy_BEGIN_ALLOW_THREADS; | |
4476 | _result = (bool )wxPyShape_IsShown(_arg0); | |
4477 | ||
4478 | wxPy_END_ALLOW_THREADS; | |
4479 | } _resultobj = Py_BuildValue("i",_result); | |
4480 | return _resultobj; | |
4481 | } | |
4482 | ||
4483 | #define wxPyShape_Move(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4484 | static PyObject *_wrap_wxPyShape_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4485 | PyObject * _resultobj; | |
4486 | wxPyShape * _arg0; | |
4487 | wxDC * _arg1; | |
4488 | double _arg2; | |
4489 | double _arg3; | |
4490 | bool _arg4 = (bool ) TRUE; | |
4491 | PyObject * _argo0 = 0; | |
4492 | PyObject * _argo1 = 0; | |
4493 | int tempbool4 = (int) TRUE; | |
4494 | char *_kwnames[] = { "self","dc","x1","y1","display", NULL }; | |
4495 | ||
4496 | self = self; | |
4497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdd|i:wxPyShape_Move",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&tempbool4)) | |
4498 | return NULL; | |
4499 | if (_argo0) { | |
4500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Move. Expected _wxPyShape_p."); | |
4503 | return NULL; | |
4504 | } | |
4505 | } | |
4506 | if (_argo1) { | |
4507 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4508 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
4509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_Move. Expected _wxDC_p."); | |
4510 | return NULL; | |
4511 | } | |
4512 | } | |
4513 | _arg4 = (bool ) tempbool4; | |
4514 | { | |
4515 | wxPy_BEGIN_ALLOW_THREADS; | |
4516 | wxPyShape_Move(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
4517 | ||
4518 | wxPy_END_ALLOW_THREADS; | |
4519 | } Py_INCREF(Py_None); | |
4520 | _resultobj = Py_None; | |
4521 | return _resultobj; | |
4522 | } | |
4523 | ||
4524 | #define wxPyShape_Erase(_swigobj,_swigarg0) (_swigobj->Erase(_swigarg0)) | |
4525 | static PyObject *_wrap_wxPyShape_Erase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject * _resultobj; | |
4527 | wxPyShape * _arg0; | |
4528 | wxDC * _arg1; | |
4529 | PyObject * _argo0 = 0; | |
4530 | PyObject * _argo1 = 0; | |
4531 | char *_kwnames[] = { "self","dc", NULL }; | |
4532 | ||
4533 | self = self; | |
4534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_Erase",_kwnames,&_argo0,&_argo1)) | |
4535 | return NULL; | |
4536 | if (_argo0) { | |
4537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Erase. Expected _wxPyShape_p."); | |
4540 | return NULL; | |
4541 | } | |
4542 | } | |
4543 | if (_argo1) { | |
4544 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4545 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
4546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_Erase. Expected _wxDC_p."); | |
4547 | return NULL; | |
4548 | } | |
4549 | } | |
4550 | { | |
4551 | wxPy_BEGIN_ALLOW_THREADS; | |
4552 | wxPyShape_Erase(_arg0,*_arg1); | |
4553 | ||
4554 | wxPy_END_ALLOW_THREADS; | |
4555 | } Py_INCREF(Py_None); | |
4556 | _resultobj = Py_None; | |
4557 | return _resultobj; | |
4558 | } | |
4559 | ||
4560 | #define wxPyShape_EraseContents(_swigobj,_swigarg0) (_swigobj->EraseContents(_swigarg0)) | |
4561 | static PyObject *_wrap_wxPyShape_EraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4562 | PyObject * _resultobj; | |
4563 | wxPyShape * _arg0; | |
4564 | wxDC * _arg1; | |
4565 | PyObject * _argo0 = 0; | |
4566 | PyObject * _argo1 = 0; | |
4567 | char *_kwnames[] = { "self","dc", NULL }; | |
4568 | ||
4569 | self = self; | |
4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_EraseContents",_kwnames,&_argo0,&_argo1)) | |
4571 | return NULL; | |
4572 | if (_argo0) { | |
4573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_EraseContents. Expected _wxPyShape_p."); | |
4576 | return NULL; | |
4577 | } | |
4578 | } | |
4579 | if (_argo1) { | |
4580 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4581 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
4582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_EraseContents. Expected _wxDC_p."); | |
4583 | return NULL; | |
4584 | } | |
4585 | } | |
4586 | { | |
4587 | wxPy_BEGIN_ALLOW_THREADS; | |
4588 | wxPyShape_EraseContents(_arg0,*_arg1); | |
4589 | ||
4590 | wxPy_END_ALLOW_THREADS; | |
4591 | } Py_INCREF(Py_None); | |
4592 | _resultobj = Py_None; | |
4593 | return _resultobj; | |
4594 | } | |
4595 | ||
4596 | #define wxPyShape_Draw(_swigobj,_swigarg0) (_swigobj->Draw(_swigarg0)) | |
4597 | static PyObject *_wrap_wxPyShape_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4598 | PyObject * _resultobj; | |
4599 | wxPyShape * _arg0; | |
4600 | wxDC * _arg1; | |
4601 | PyObject * _argo0 = 0; | |
4602 | PyObject * _argo1 = 0; | |
4603 | char *_kwnames[] = { "self","dc", NULL }; | |
4604 | ||
4605 | self = self; | |
4606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_Draw",_kwnames,&_argo0,&_argo1)) | |
4607 | return NULL; | |
4608 | if (_argo0) { | |
4609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Draw. Expected _wxPyShape_p."); | |
4612 | return NULL; | |
4613 | } | |
4614 | } | |
4615 | if (_argo1) { | |
4616 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4617 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
4618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_Draw. Expected _wxDC_p."); | |
4619 | return NULL; | |
4620 | } | |
4621 | } | |
4622 | { | |
4623 | wxPy_BEGIN_ALLOW_THREADS; | |
4624 | wxPyShape_Draw(_arg0,*_arg1); | |
4625 | ||
4626 | wxPy_END_ALLOW_THREADS; | |
4627 | } Py_INCREF(Py_None); | |
4628 | _resultobj = Py_None; | |
4629 | return _resultobj; | |
4630 | } | |
4631 | ||
4632 | #define wxPyShape_Flash(_swigobj) (_swigobj->Flash()) | |
4633 | static PyObject *_wrap_wxPyShape_Flash(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4634 | PyObject * _resultobj; | |
4635 | wxPyShape * _arg0; | |
4636 | PyObject * _argo0 = 0; | |
4637 | char *_kwnames[] = { "self", NULL }; | |
4638 | ||
4639 | self = self; | |
4640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_Flash",_kwnames,&_argo0)) | |
4641 | return NULL; | |
4642 | if (_argo0) { | |
4643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Flash. Expected _wxPyShape_p."); | |
4646 | return NULL; | |
4647 | } | |
4648 | } | |
4649 | { | |
4650 | wxPy_BEGIN_ALLOW_THREADS; | |
4651 | wxPyShape_Flash(_arg0); | |
4652 | ||
4653 | wxPy_END_ALLOW_THREADS; | |
4654 | } Py_INCREF(Py_None); | |
4655 | _resultobj = Py_None; | |
4656 | return _resultobj; | |
4657 | } | |
4658 | ||
4659 | #define wxPyShape_MoveLinks(_swigobj,_swigarg0) (_swigobj->MoveLinks(_swigarg0)) | |
4660 | static PyObject *_wrap_wxPyShape_MoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4661 | PyObject * _resultobj; | |
4662 | wxPyShape * _arg0; | |
4663 | wxDC * _arg1; | |
4664 | PyObject * _argo0 = 0; | |
4665 | PyObject * _argo1 = 0; | |
4666 | char *_kwnames[] = { "self","dc", NULL }; | |
4667 | ||
4668 | self = self; | |
4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_MoveLinks",_kwnames,&_argo0,&_argo1)) | |
4670 | return NULL; | |
4671 | if (_argo0) { | |
4672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_MoveLinks. Expected _wxPyShape_p."); | |
4675 | return NULL; | |
4676 | } | |
4677 | } | |
4678 | if (_argo1) { | |
4679 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4680 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
4681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_MoveLinks. Expected _wxDC_p."); | |
4682 | return NULL; | |
4683 | } | |
4684 | } | |
4685 | { | |
4686 | wxPy_BEGIN_ALLOW_THREADS; | |
4687 | wxPyShape_MoveLinks(_arg0,*_arg1); | |
4688 | ||
4689 | wxPy_END_ALLOW_THREADS; | |
4690 | } Py_INCREF(Py_None); | |
4691 | _resultobj = Py_None; | |
4692 | return _resultobj; | |
4693 | } | |
4694 | ||
4695 | #define wxPyShape_DrawContents(_swigobj,_swigarg0) (_swigobj->DrawContents(_swigarg0)) | |
4696 | static PyObject *_wrap_wxPyShape_DrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4697 | PyObject * _resultobj; | |
4698 | wxPyShape * _arg0; | |
4699 | wxDC * _arg1; | |
4700 | PyObject * _argo0 = 0; | |
4701 | PyObject * _argo1 = 0; | |
4702 | char *_kwnames[] = { "self","dc", NULL }; | |
4703 | ||
4704 | self = self; | |
4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_DrawContents",_kwnames,&_argo0,&_argo1)) | |
4706 | return NULL; | |
4707 | if (_argo0) { | |
4708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_DrawContents. Expected _wxPyShape_p."); | |
4711 | return NULL; | |
4712 | } | |
4713 | } | |
4714 | if (_argo1) { | |
4715 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4716 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
4717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_DrawContents. Expected _wxDC_p."); | |
4718 | return NULL; | |
4719 | } | |
4720 | } | |
4721 | { | |
4722 | wxPy_BEGIN_ALLOW_THREADS; | |
4723 | wxPyShape_DrawContents(_arg0,*_arg1); | |
4724 | ||
4725 | wxPy_END_ALLOW_THREADS; | |
4726 | } Py_INCREF(Py_None); | |
4727 | _resultobj = Py_None; | |
4728 | return _resultobj; | |
4729 | } | |
4730 | ||
4731 | #define wxPyShape_SetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2)) | |
4732 | static PyObject *_wrap_wxPyShape_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4733 | PyObject * _resultobj; | |
4734 | wxPyShape * _arg0; | |
4735 | double _arg1; | |
4736 | double _arg2; | |
4737 | bool _arg3 = (bool ) TRUE; | |
4738 | PyObject * _argo0 = 0; | |
4739 | int tempbool3 = (int) TRUE; | |
4740 | char *_kwnames[] = { "self","x","y","recursive", NULL }; | |
4741 | ||
4742 | self = self; | |
4743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|i:wxPyShape_SetSize",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) | |
4744 | return NULL; | |
4745 | if (_argo0) { | |
4746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetSize. Expected _wxPyShape_p."); | |
4749 | return NULL; | |
4750 | } | |
4751 | } | |
4752 | _arg3 = (bool ) tempbool3; | |
4753 | { | |
4754 | wxPy_BEGIN_ALLOW_THREADS; | |
4755 | wxPyShape_SetSize(_arg0,_arg1,_arg2,_arg3); | |
4756 | ||
4757 | wxPy_END_ALLOW_THREADS; | |
4758 | } Py_INCREF(Py_None); | |
4759 | _resultobj = Py_None; | |
4760 | return _resultobj; | |
4761 | } | |
4762 | ||
4763 | #define wxPyShape_SetAttachmentSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAttachmentSize(_swigarg0,_swigarg1)) | |
4764 | static PyObject *_wrap_wxPyShape_SetAttachmentSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4765 | PyObject * _resultobj; | |
4766 | wxPyShape * _arg0; | |
4767 | double _arg1; | |
4768 | double _arg2; | |
4769 | PyObject * _argo0 = 0; | |
4770 | char *_kwnames[] = { "self","x","y", NULL }; | |
4771 | ||
4772 | self = self; | |
4773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPyShape_SetAttachmentSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4774 | return NULL; | |
4775 | if (_argo0) { | |
4776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetAttachmentSize. Expected _wxPyShape_p."); | |
4779 | return NULL; | |
4780 | } | |
4781 | } | |
4782 | { | |
4783 | wxPy_BEGIN_ALLOW_THREADS; | |
4784 | wxPyShape_SetAttachmentSize(_arg0,_arg1,_arg2); | |
4785 | ||
4786 | wxPy_END_ALLOW_THREADS; | |
4787 | } Py_INCREF(Py_None); | |
4788 | _resultobj = Py_None; | |
4789 | return _resultobj; | |
4790 | } | |
4791 | ||
4792 | #define wxPyShape_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0)) | |
4793 | static PyObject *_wrap_wxPyShape_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4794 | PyObject * _resultobj; | |
4795 | wxPyShape * _arg0; | |
4796 | wxPyShapeCanvas * _arg1; | |
4797 | PyObject * _argo0 = 0; | |
4798 | PyObject * _argo1 = 0; | |
4799 | char *_kwnames[] = { "self","can", NULL }; | |
4800 | ||
4801 | self = self; | |
4802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_Attach",_kwnames,&_argo0,&_argo1)) | |
4803 | return NULL; | |
4804 | if (_argo0) { | |
4805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Attach. Expected _wxPyShape_p."); | |
4808 | return NULL; | |
4809 | } | |
4810 | } | |
4811 | if (_argo1) { | |
4812 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4813 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShapeCanvas_p")) { | |
4814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_Attach. Expected _wxPyShapeCanvas_p."); | |
4815 | return NULL; | |
4816 | } | |
4817 | } | |
4818 | { | |
4819 | wxPy_BEGIN_ALLOW_THREADS; | |
4820 | wxPyShape_Attach(_arg0,_arg1); | |
4821 | ||
4822 | wxPy_END_ALLOW_THREADS; | |
4823 | } Py_INCREF(Py_None); | |
4824 | _resultobj = Py_None; | |
4825 | return _resultobj; | |
4826 | } | |
4827 | ||
4828 | #define wxPyShape_Detach(_swigobj) (_swigobj->Detach()) | |
4829 | static PyObject *_wrap_wxPyShape_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4830 | PyObject * _resultobj; | |
4831 | wxPyShape * _arg0; | |
4832 | PyObject * _argo0 = 0; | |
4833 | char *_kwnames[] = { "self", NULL }; | |
4834 | ||
4835 | self = self; | |
4836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_Detach",_kwnames,&_argo0)) | |
4837 | return NULL; | |
4838 | if (_argo0) { | |
4839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Detach. Expected _wxPyShape_p."); | |
4842 | return NULL; | |
4843 | } | |
4844 | } | |
4845 | { | |
4846 | wxPy_BEGIN_ALLOW_THREADS; | |
4847 | wxPyShape_Detach(_arg0); | |
4848 | ||
4849 | wxPy_END_ALLOW_THREADS; | |
4850 | } Py_INCREF(Py_None); | |
4851 | _resultobj = Py_None; | |
4852 | return _resultobj; | |
4853 | } | |
4854 | ||
4855 | #define wxPyShape_Constrain(_swigobj) (_swigobj->Constrain()) | |
4856 | static PyObject *_wrap_wxPyShape_Constrain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4857 | PyObject * _resultobj; | |
4858 | bool _result; | |
4859 | wxPyShape * _arg0; | |
4860 | PyObject * _argo0 = 0; | |
4861 | char *_kwnames[] = { "self", NULL }; | |
4862 | ||
4863 | self = self; | |
4864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_Constrain",_kwnames,&_argo0)) | |
4865 | return NULL; | |
4866 | if (_argo0) { | |
4867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Constrain. Expected _wxPyShape_p."); | |
4870 | return NULL; | |
4871 | } | |
4872 | } | |
4873 | { | |
4874 | wxPy_BEGIN_ALLOW_THREADS; | |
4875 | _result = (bool )wxPyShape_Constrain(_arg0); | |
4876 | ||
4877 | wxPy_END_ALLOW_THREADS; | |
4878 | } _resultobj = Py_BuildValue("i",_result); | |
4879 | return _resultobj; | |
4880 | } | |
4881 | ||
4882 | #define wxPyShape_AddLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->AddLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4883 | static PyObject *_wrap_wxPyShape_AddLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4884 | PyObject * _resultobj; | |
4885 | wxPyShape * _arg0; | |
4886 | wxPyLineShape * _arg1; | |
4887 | wxPyShape * _arg2; | |
4888 | int _arg3 = (int ) 0; | |
4889 | int _arg4 = (int ) 0; | |
4890 | int _arg5 = (int ) -1; | |
4891 | int _arg6 = (int ) -1; | |
4892 | PyObject * _argo0 = 0; | |
4893 | PyObject * _argo1 = 0; | |
4894 | PyObject * _argo2 = 0; | |
4895 | char *_kwnames[] = { "self","line","other","attachFrom","attachTo","positionFrom","positionTo", NULL }; | |
4896 | ||
4897 | self = self; | |
4898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiii:wxPyShape_AddLine",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4899 | return NULL; | |
4900 | if (_argo0) { | |
4901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_AddLine. Expected _wxPyShape_p."); | |
4904 | return NULL; | |
4905 | } | |
4906 | } | |
4907 | if (_argo1) { | |
4908 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4909 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyLineShape_p")) { | |
4910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_AddLine. Expected _wxPyLineShape_p."); | |
4911 | return NULL; | |
4912 | } | |
4913 | } | |
4914 | if (_argo2) { | |
4915 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4916 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyShape_p")) { | |
4917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyShape_AddLine. Expected _wxPyShape_p."); | |
4918 | return NULL; | |
4919 | } | |
4920 | } | |
4921 | { | |
4922 | wxPy_BEGIN_ALLOW_THREADS; | |
4923 | wxPyShape_AddLine(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4924 | ||
4925 | wxPy_END_ALLOW_THREADS; | |
4926 | } Py_INCREF(Py_None); | |
4927 | _resultobj = Py_None; | |
4928 | return _resultobj; | |
4929 | } | |
4930 | ||
4931 | #define wxPyShape_GetLinePosition(_swigobj,_swigarg0) (_swigobj->GetLinePosition(_swigarg0)) | |
4932 | static PyObject *_wrap_wxPyShape_GetLinePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4933 | PyObject * _resultobj; | |
4934 | int _result; | |
4935 | wxPyShape * _arg0; | |
4936 | wxPyLineShape * _arg1; | |
4937 | PyObject * _argo0 = 0; | |
4938 | PyObject * _argo1 = 0; | |
4939 | char *_kwnames[] = { "self","line", NULL }; | |
4940 | ||
4941 | self = self; | |
4942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_GetLinePosition",_kwnames,&_argo0,&_argo1)) | |
4943 | return NULL; | |
4944 | if (_argo0) { | |
4945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetLinePosition. Expected _wxPyShape_p."); | |
4948 | return NULL; | |
4949 | } | |
4950 | } | |
4951 | if (_argo1) { | |
4952 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4953 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyLineShape_p")) { | |
4954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_GetLinePosition. Expected _wxPyLineShape_p."); | |
4955 | return NULL; | |
4956 | } | |
4957 | } | |
4958 | { | |
4959 | wxPy_BEGIN_ALLOW_THREADS; | |
4960 | _result = (int )wxPyShape_GetLinePosition(_arg0,_arg1); | |
4961 | ||
4962 | wxPy_END_ALLOW_THREADS; | |
4963 | } _resultobj = Py_BuildValue("i",_result); | |
4964 | return _resultobj; | |
4965 | } | |
4966 | ||
4967 | #define wxPyShape_AddText(_swigobj,_swigarg0) (_swigobj->AddText(_swigarg0)) | |
4968 | static PyObject *_wrap_wxPyShape_AddText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4969 | PyObject * _resultobj; | |
4970 | wxPyShape * _arg0; | |
4971 | wxString * _arg1; | |
4972 | PyObject * _argo0 = 0; | |
4973 | PyObject * _obj1 = 0; | |
4974 | char *_kwnames[] = { "self","string", NULL }; | |
4975 | ||
4976 | self = self; | |
4977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_AddText",_kwnames,&_argo0,&_obj1)) | |
4978 | return NULL; | |
4979 | if (_argo0) { | |
4980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
4982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_AddText. Expected _wxPyShape_p."); | |
4983 | return NULL; | |
4984 | } | |
4985 | } | |
4986 | { | |
185d7c3e RD |
4987 | #if PYTHON_API_VERSION >= 1009 |
4988 | char* tmpPtr; int tmpSize; | |
4989 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 4990 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4991 | return NULL; |
4992 | } | |
4993 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4994 | return NULL; | |
4995 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4996 | #else | |
e91a9dfc RD |
4997 | if (!PyString_Check(_obj1)) { |
4998 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4999 | return NULL; | |
5000 | } | |
185d7c3e RD |
5001 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5002 | #endif | |
e91a9dfc RD |
5003 | } |
5004 | { | |
5005 | wxPy_BEGIN_ALLOW_THREADS; | |
5006 | wxPyShape_AddText(_arg0,*_arg1); | |
5007 | ||
5008 | wxPy_END_ALLOW_THREADS; | |
5009 | } Py_INCREF(Py_None); | |
5010 | _resultobj = Py_None; | |
5011 | { | |
5012 | if (_obj1) | |
5013 | delete _arg1; | |
5014 | } | |
5015 | return _resultobj; | |
5016 | } | |
5017 | ||
5018 | #define wxPyShape_GetPen(_swigobj) (_swigobj->GetPen()) | |
5019 | static PyObject *_wrap_wxPyShape_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5020 | PyObject * _resultobj; | |
5021 | wxPen * _result; | |
5022 | wxPyShape * _arg0; | |
5023 | PyObject * _argo0 = 0; | |
5024 | char *_kwnames[] = { "self", NULL }; | |
5025 | char _ptemp[128]; | |
5026 | ||
5027 | self = self; | |
5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetPen",_kwnames,&_argo0)) | |
5029 | return NULL; | |
5030 | if (_argo0) { | |
5031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetPen. Expected _wxPyShape_p."); | |
5034 | return NULL; | |
5035 | } | |
5036 | } | |
5037 | { | |
5038 | wxPy_BEGIN_ALLOW_THREADS; | |
5039 | _result = (wxPen *)wxPyShape_GetPen(_arg0); | |
5040 | ||
5041 | wxPy_END_ALLOW_THREADS; | |
5042 | } if (_result) { | |
5043 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5044 | _resultobj = Py_BuildValue("s",_ptemp); | |
5045 | } else { | |
5046 | Py_INCREF(Py_None); | |
5047 | _resultobj = Py_None; | |
5048 | } | |
5049 | return _resultobj; | |
5050 | } | |
5051 | ||
5052 | #define wxPyShape_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
5053 | static PyObject *_wrap_wxPyShape_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5054 | PyObject * _resultobj; | |
5055 | wxBrush * _result; | |
5056 | wxPyShape * _arg0; | |
5057 | PyObject * _argo0 = 0; | |
5058 | char *_kwnames[] = { "self", NULL }; | |
5059 | char _ptemp[128]; | |
5060 | ||
5061 | self = self; | |
5062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetBrush",_kwnames,&_argo0)) | |
5063 | return NULL; | |
5064 | if (_argo0) { | |
5065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBrush. Expected _wxPyShape_p."); | |
5068 | return NULL; | |
5069 | } | |
5070 | } | |
5071 | { | |
5072 | wxPy_BEGIN_ALLOW_THREADS; | |
5073 | _result = (wxBrush *)wxPyShape_GetBrush(_arg0); | |
5074 | ||
5075 | wxPy_END_ALLOW_THREADS; | |
5076 | } if (_result) { | |
5077 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5078 | _resultobj = Py_BuildValue("s",_ptemp); | |
5079 | } else { | |
5080 | Py_INCREF(Py_None); | |
5081 | _resultobj = Py_None; | |
5082 | } | |
5083 | return _resultobj; | |
5084 | } | |
5085 | ||
5086 | #define wxPyShape_SetDefaultRegionSize(_swigobj) (_swigobj->SetDefaultRegionSize()) | |
5087 | static PyObject *_wrap_wxPyShape_SetDefaultRegionSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5088 | PyObject * _resultobj; | |
5089 | wxPyShape * _arg0; | |
5090 | PyObject * _argo0 = 0; | |
5091 | char *_kwnames[] = { "self", NULL }; | |
5092 | ||
5093 | self = self; | |
5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_SetDefaultRegionSize",_kwnames,&_argo0)) | |
5095 | return NULL; | |
5096 | if (_argo0) { | |
5097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetDefaultRegionSize. Expected _wxPyShape_p."); | |
5100 | return NULL; | |
5101 | } | |
5102 | } | |
5103 | { | |
5104 | wxPy_BEGIN_ALLOW_THREADS; | |
5105 | wxPyShape_SetDefaultRegionSize(_arg0); | |
5106 | ||
5107 | wxPy_END_ALLOW_THREADS; | |
5108 | } Py_INCREF(Py_None); | |
5109 | _resultobj = Py_None; | |
5110 | return _resultobj; | |
5111 | } | |
5112 | ||
5113 | #define wxPyShape_FormatText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FormatText(_swigarg0,_swigarg1,_swigarg2)) | |
5114 | static PyObject *_wrap_wxPyShape_FormatText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5115 | PyObject * _resultobj; | |
5116 | wxPyShape * _arg0; | |
5117 | wxDC * _arg1; | |
5118 | wxString * _arg2; | |
5119 | int _arg3 = (int ) 0; | |
5120 | PyObject * _argo0 = 0; | |
5121 | PyObject * _argo1 = 0; | |
5122 | PyObject * _obj2 = 0; | |
5123 | char *_kwnames[] = { "self","dc","s","regionId", NULL }; | |
5124 | ||
5125 | self = self; | |
5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyShape_FormatText",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3)) | |
5127 | return NULL; | |
5128 | if (_argo0) { | |
5129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_FormatText. Expected _wxPyShape_p."); | |
5132 | return NULL; | |
5133 | } | |
5134 | } | |
5135 | if (_argo1) { | |
5136 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5137 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
5138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_FormatText. Expected _wxDC_p."); | |
5139 | return NULL; | |
5140 | } | |
5141 | } | |
5142 | { | |
185d7c3e RD |
5143 | #if PYTHON_API_VERSION >= 1009 |
5144 | char* tmpPtr; int tmpSize; | |
5145 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 5146 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5147 | return NULL; |
5148 | } | |
5149 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5150 | return NULL; | |
5151 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5152 | #else | |
e91a9dfc RD |
5153 | if (!PyString_Check(_obj2)) { |
5154 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5155 | return NULL; | |
5156 | } | |
185d7c3e RD |
5157 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5158 | #endif | |
e91a9dfc RD |
5159 | } |
5160 | { | |
5161 | wxPy_BEGIN_ALLOW_THREADS; | |
5162 | wxPyShape_FormatText(_arg0,*_arg1,*_arg2,_arg3); | |
5163 | ||
5164 | wxPy_END_ALLOW_THREADS; | |
5165 | } Py_INCREF(Py_None); | |
5166 | _resultobj = Py_None; | |
5167 | { | |
5168 | if (_obj2) | |
5169 | delete _arg2; | |
5170 | } | |
5171 | return _resultobj; | |
5172 | } | |
5173 | ||
5174 | #define wxPyShape_SetFormatMode(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFormatMode(_swigarg0,_swigarg1)) | |
5175 | static PyObject *_wrap_wxPyShape_SetFormatMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject * _resultobj; | |
5177 | wxPyShape * _arg0; | |
5178 | int _arg1; | |
5179 | int _arg2 = (int ) 0; | |
5180 | PyObject * _argo0 = 0; | |
5181 | char *_kwnames[] = { "self","mode","regionId", NULL }; | |
5182 | ||
5183 | self = self; | |
5184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxPyShape_SetFormatMode",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5185 | return NULL; | |
5186 | if (_argo0) { | |
5187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetFormatMode. Expected _wxPyShape_p."); | |
5190 | return NULL; | |
5191 | } | |
5192 | } | |
5193 | { | |
5194 | wxPy_BEGIN_ALLOW_THREADS; | |
5195 | wxPyShape_SetFormatMode(_arg0,_arg1,_arg2); | |
5196 | ||
5197 | wxPy_END_ALLOW_THREADS; | |
5198 | } Py_INCREF(Py_None); | |
5199 | _resultobj = Py_None; | |
5200 | return _resultobj; | |
5201 | } | |
5202 | ||
5203 | #define wxPyShape_GetFormatMode(_swigobj,_swigarg0) (_swigobj->GetFormatMode(_swigarg0)) | |
5204 | static PyObject *_wrap_wxPyShape_GetFormatMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5205 | PyObject * _resultobj; | |
5206 | int _result; | |
5207 | wxPyShape * _arg0; | |
5208 | int _arg1 = (int ) 0; | |
5209 | PyObject * _argo0 = 0; | |
5210 | char *_kwnames[] = { "self","regionId", NULL }; | |
5211 | ||
5212 | self = self; | |
5213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxPyShape_GetFormatMode",_kwnames,&_argo0,&_arg1)) | |
5214 | return NULL; | |
5215 | if (_argo0) { | |
5216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetFormatMode. Expected _wxPyShape_p."); | |
5219 | return NULL; | |
5220 | } | |
5221 | } | |
5222 | { | |
5223 | wxPy_BEGIN_ALLOW_THREADS; | |
5224 | _result = (int )wxPyShape_GetFormatMode(_arg0,_arg1); | |
5225 | ||
5226 | wxPy_END_ALLOW_THREADS; | |
5227 | } _resultobj = Py_BuildValue("i",_result); | |
5228 | return _resultobj; | |
5229 | } | |
5230 | ||
5231 | #define wxPyShape_SetFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFont(_swigarg0,_swigarg1)) | |
5232 | static PyObject *_wrap_wxPyShape_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5233 | PyObject * _resultobj; | |
5234 | wxPyShape * _arg0; | |
5235 | wxFont * _arg1; | |
5236 | int _arg2 = (int ) 0; | |
5237 | PyObject * _argo0 = 0; | |
d74525f7 | 5238 | PyObject * _obj1 = 0; |
e91a9dfc RD |
5239 | char *_kwnames[] = { "self","font","regionId", NULL }; |
5240 | ||
5241 | self = self; | |
d74525f7 | 5242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyShape_SetFont",_kwnames,&_argo0,&_obj1,&_arg2)) |
e91a9dfc RD |
5243 | return NULL; |
5244 | if (_argo0) { | |
5245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetFont. Expected _wxPyShape_p."); | |
5248 | return NULL; | |
5249 | } | |
5250 | } | |
d74525f7 RD |
5251 | { |
5252 | wxFont* temp; | |
5253 | if (_obj1) { | |
5254 | if (_obj1 == Py_None) { temp = NULL; } | |
5255 | else if (SWIG_GetPtrObj(_obj1, (void **) &temp,"_wxFont_p")) { | |
5256 | PyErr_SetString(PyExc_TypeError,"Type error, expected _wxFont_p."); | |
e91a9dfc RD |
5257 | return NULL; |
5258 | } | |
5259 | } | |
d74525f7 RD |
5260 | if (temp) |
5261 | _arg1 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
5262 | temp->GetFamily(), | |
5263 | temp->GetStyle(), | |
5264 | temp->GetWeight(), | |
5265 | temp->GetUnderlined(), | |
5266 | temp->GetFaceName(), | |
5267 | temp->GetEncoding()); | |
5268 | else | |
5269 | _arg1 = NULL; | |
5270 | } | |
e91a9dfc RD |
5271 | { |
5272 | wxPy_BEGIN_ALLOW_THREADS; | |
5273 | wxPyShape_SetFont(_arg0,_arg1,_arg2); | |
5274 | ||
5275 | wxPy_END_ALLOW_THREADS; | |
5276 | } Py_INCREF(Py_None); | |
5277 | _resultobj = Py_None; | |
5278 | return _resultobj; | |
5279 | } | |
5280 | ||
5281 | #define wxPyShape_GetFont(_swigobj,_swigarg0) (_swigobj->GetFont(_swigarg0)) | |
5282 | static PyObject *_wrap_wxPyShape_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5283 | PyObject * _resultobj; | |
5284 | wxFont * _result; | |
5285 | wxPyShape * _arg0; | |
5286 | int _arg1 = (int ) 0; | |
5287 | PyObject * _argo0 = 0; | |
5288 | char *_kwnames[] = { "self","regionId", NULL }; | |
5289 | char _ptemp[128]; | |
5290 | ||
5291 | self = self; | |
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxPyShape_GetFont",_kwnames,&_argo0,&_arg1)) | |
5293 | return NULL; | |
5294 | if (_argo0) { | |
5295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetFont. Expected _wxPyShape_p."); | |
5298 | return NULL; | |
5299 | } | |
5300 | } | |
5301 | { | |
5302 | wxPy_BEGIN_ALLOW_THREADS; | |
5303 | _result = (wxFont *)wxPyShape_GetFont(_arg0,_arg1); | |
5304 | ||
5305 | wxPy_END_ALLOW_THREADS; | |
5306 | } if (_result) { | |
5307 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5308 | _resultobj = Py_BuildValue("s",_ptemp); | |
5309 | } else { | |
5310 | Py_INCREF(Py_None); | |
5311 | _resultobj = Py_None; | |
5312 | } | |
5313 | return _resultobj; | |
5314 | } | |
5315 | ||
5316 | #define wxPyShape_SetTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTextColour(_swigarg0,_swigarg1)) | |
5317 | static PyObject *_wrap_wxPyShape_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5318 | PyObject * _resultobj; | |
5319 | wxPyShape * _arg0; | |
5320 | wxString * _arg1; | |
5321 | int _arg2 = (int ) 0; | |
5322 | PyObject * _argo0 = 0; | |
5323 | PyObject * _obj1 = 0; | |
5324 | char *_kwnames[] = { "self","colour","regionId", NULL }; | |
5325 | ||
5326 | self = self; | |
5327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyShape_SetTextColour",_kwnames,&_argo0,&_obj1,&_arg2)) | |
5328 | return NULL; | |
5329 | if (_argo0) { | |
5330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetTextColour. Expected _wxPyShape_p."); | |
5333 | return NULL; | |
5334 | } | |
5335 | } | |
5336 | { | |
185d7c3e RD |
5337 | #if PYTHON_API_VERSION >= 1009 |
5338 | char* tmpPtr; int tmpSize; | |
5339 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5340 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5341 | return NULL; |
5342 | } | |
5343 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5344 | return NULL; | |
5345 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5346 | #else | |
e91a9dfc RD |
5347 | if (!PyString_Check(_obj1)) { |
5348 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5349 | return NULL; | |
5350 | } | |
185d7c3e RD |
5351 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5352 | #endif | |
e91a9dfc RD |
5353 | } |
5354 | { | |
5355 | wxPy_BEGIN_ALLOW_THREADS; | |
5356 | wxPyShape_SetTextColour(_arg0,*_arg1,_arg2); | |
5357 | ||
5358 | wxPy_END_ALLOW_THREADS; | |
5359 | } Py_INCREF(Py_None); | |
5360 | _resultobj = Py_None; | |
5361 | { | |
5362 | if (_obj1) | |
5363 | delete _arg1; | |
5364 | } | |
5365 | return _resultobj; | |
5366 | } | |
5367 | ||
5368 | #define wxPyShape_GetTextColour(_swigobj,_swigarg0) (_swigobj->GetTextColour(_swigarg0)) | |
5369 | static PyObject *_wrap_wxPyShape_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5370 | PyObject * _resultobj; | |
5371 | wxString * _result; | |
5372 | wxPyShape * _arg0; | |
5373 | int _arg1 = (int ) 0; | |
5374 | PyObject * _argo0 = 0; | |
5375 | char *_kwnames[] = { "self","regionId", NULL }; | |
5376 | ||
5377 | self = self; | |
5378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxPyShape_GetTextColour",_kwnames,&_argo0,&_arg1)) | |
5379 | return NULL; | |
5380 | if (_argo0) { | |
5381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetTextColour. Expected _wxPyShape_p."); | |
5384 | return NULL; | |
5385 | } | |
5386 | } | |
5387 | { | |
5388 | wxPy_BEGIN_ALLOW_THREADS; | |
5389 | _result = new wxString (wxPyShape_GetTextColour(_arg0,_arg1)); | |
5390 | ||
5391 | wxPy_END_ALLOW_THREADS; | |
5392 | }{ | |
714d23b4 | 5393 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
e91a9dfc RD |
5394 | } |
5395 | { | |
5396 | delete _result; | |
5397 | } | |
5398 | return _resultobj; | |
5399 | } | |
5400 | ||
5401 | #define wxPyShape_GetNumberOfTextRegions(_swigobj) (_swigobj->GetNumberOfTextRegions()) | |
5402 | static PyObject *_wrap_wxPyShape_GetNumberOfTextRegions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5403 | PyObject * _resultobj; | |
5404 | int _result; | |
5405 | wxPyShape * _arg0; | |
5406 | PyObject * _argo0 = 0; | |
5407 | char *_kwnames[] = { "self", NULL }; | |
5408 | ||
5409 | self = self; | |
5410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetNumberOfTextRegions",_kwnames,&_argo0)) | |
5411 | return NULL; | |
5412 | if (_argo0) { | |
5413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetNumberOfTextRegions. Expected _wxPyShape_p."); | |
5416 | return NULL; | |
5417 | } | |
5418 | } | |
5419 | { | |
5420 | wxPy_BEGIN_ALLOW_THREADS; | |
5421 | _result = (int )wxPyShape_GetNumberOfTextRegions(_arg0); | |
5422 | ||
5423 | wxPy_END_ALLOW_THREADS; | |
5424 | } _resultobj = Py_BuildValue("i",_result); | |
5425 | return _resultobj; | |
5426 | } | |
5427 | ||
5428 | #define wxPyShape_SetRegionName(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRegionName(_swigarg0,_swigarg1)) | |
5429 | static PyObject *_wrap_wxPyShape_SetRegionName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5430 | PyObject * _resultobj; | |
5431 | wxPyShape * _arg0; | |
5432 | wxString * _arg1; | |
5433 | int _arg2 = (int ) 0; | |
5434 | PyObject * _argo0 = 0; | |
5435 | PyObject * _obj1 = 0; | |
5436 | char *_kwnames[] = { "self","name","regionId", NULL }; | |
5437 | ||
5438 | self = self; | |
5439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyShape_SetRegionName",_kwnames,&_argo0,&_obj1,&_arg2)) | |
5440 | return NULL; | |
5441 | if (_argo0) { | |
5442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetRegionName. Expected _wxPyShape_p."); | |
5445 | return NULL; | |
5446 | } | |
5447 | } | |
5448 | { | |
185d7c3e RD |
5449 | #if PYTHON_API_VERSION >= 1009 |
5450 | char* tmpPtr; int tmpSize; | |
5451 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5452 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5453 | return NULL; |
5454 | } | |
5455 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5456 | return NULL; | |
5457 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5458 | #else | |
e91a9dfc RD |
5459 | if (!PyString_Check(_obj1)) { |
5460 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5461 | return NULL; | |
5462 | } | |
185d7c3e RD |
5463 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5464 | #endif | |
e91a9dfc RD |
5465 | } |
5466 | { | |
5467 | wxPy_BEGIN_ALLOW_THREADS; | |
5468 | wxPyShape_SetRegionName(_arg0,*_arg1,_arg2); | |
5469 | ||
5470 | wxPy_END_ALLOW_THREADS; | |
5471 | } Py_INCREF(Py_None); | |
5472 | _resultobj = Py_None; | |
5473 | { | |
5474 | if (_obj1) | |
5475 | delete _arg1; | |
5476 | } | |
5477 | return _resultobj; | |
5478 | } | |
5479 | ||
5480 | #define wxPyShape_GetRegionName(_swigobj,_swigarg0) (_swigobj->GetRegionName(_swigarg0)) | |
5481 | static PyObject *_wrap_wxPyShape_GetRegionName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5482 | PyObject * _resultobj; | |
5483 | wxString * _result; | |
5484 | wxPyShape * _arg0; | |
5485 | int _arg1; | |
5486 | PyObject * _argo0 = 0; | |
5487 | char *_kwnames[] = { "self","regionId", NULL }; | |
5488 | ||
5489 | self = self; | |
5490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_GetRegionName",_kwnames,&_argo0,&_arg1)) | |
5491 | return NULL; | |
5492 | if (_argo0) { | |
5493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetRegionName. Expected _wxPyShape_p."); | |
5496 | return NULL; | |
5497 | } | |
5498 | } | |
5499 | { | |
5500 | wxPy_BEGIN_ALLOW_THREADS; | |
5501 | _result = new wxString (wxPyShape_GetRegionName(_arg0,_arg1)); | |
5502 | ||
5503 | wxPy_END_ALLOW_THREADS; | |
5504 | }{ | |
714d23b4 | 5505 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
e91a9dfc RD |
5506 | } |
5507 | { | |
5508 | delete _result; | |
5509 | } | |
5510 | return _resultobj; | |
5511 | } | |
5512 | ||
5513 | #define wxPyShape_GetRegionId(_swigobj,_swigarg0) (_swigobj->GetRegionId(_swigarg0)) | |
5514 | static PyObject *_wrap_wxPyShape_GetRegionId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5515 | PyObject * _resultobj; | |
5516 | int _result; | |
5517 | wxPyShape * _arg0; | |
5518 | wxString * _arg1; | |
5519 | PyObject * _argo0 = 0; | |
5520 | PyObject * _obj1 = 0; | |
5521 | char *_kwnames[] = { "self","name", NULL }; | |
5522 | ||
5523 | self = self; | |
5524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_GetRegionId",_kwnames,&_argo0,&_obj1)) | |
5525 | return NULL; | |
5526 | if (_argo0) { | |
5527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetRegionId. Expected _wxPyShape_p."); | |
5530 | return NULL; | |
5531 | } | |
5532 | } | |
5533 | { | |
185d7c3e RD |
5534 | #if PYTHON_API_VERSION >= 1009 |
5535 | char* tmpPtr; int tmpSize; | |
5536 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5537 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5538 | return NULL; |
5539 | } | |
5540 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5541 | return NULL; | |
5542 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5543 | #else | |
e91a9dfc RD |
5544 | if (!PyString_Check(_obj1)) { |
5545 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5546 | return NULL; | |
5547 | } | |
185d7c3e RD |
5548 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5549 | #endif | |
e91a9dfc RD |
5550 | } |
5551 | { | |
5552 | wxPy_BEGIN_ALLOW_THREADS; | |
5553 | _result = (int )wxPyShape_GetRegionId(_arg0,*_arg1); | |
5554 | ||
5555 | wxPy_END_ALLOW_THREADS; | |
5556 | } _resultobj = Py_BuildValue("i",_result); | |
5557 | { | |
5558 | if (_obj1) | |
5559 | delete _arg1; | |
5560 | } | |
5561 | return _resultobj; | |
5562 | } | |
5563 | ||
5564 | #define wxPyShape_NameRegions(_swigobj,_swigarg0) (_swigobj->NameRegions(_swigarg0)) | |
5565 | static PyObject *_wrap_wxPyShape_NameRegions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5566 | PyObject * _resultobj; | |
5567 | wxPyShape * _arg0; | |
5568 | wxString * _arg1 = (wxString *) &""; | |
5569 | PyObject * _argo0 = 0; | |
5570 | PyObject * _obj1 = 0; | |
5571 | char *_kwnames[] = { "self","parentName", NULL }; | |
5572 | ||
5573 | self = self; | |
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxPyShape_NameRegions",_kwnames,&_argo0,&_obj1)) | |
5575 | return NULL; | |
5576 | if (_argo0) { | |
5577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_NameRegions. Expected _wxPyShape_p."); | |
5580 | return NULL; | |
5581 | } | |
5582 | } | |
5583 | if (_obj1) | |
5584 | { | |
185d7c3e RD |
5585 | #if PYTHON_API_VERSION >= 1009 |
5586 | char* tmpPtr; int tmpSize; | |
5587 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5588 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5589 | return NULL; |
5590 | } | |
5591 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5592 | return NULL; | |
5593 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5594 | #else | |
e91a9dfc RD |
5595 | if (!PyString_Check(_obj1)) { |
5596 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5597 | return NULL; | |
5598 | } | |
185d7c3e RD |
5599 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5600 | #endif | |
e91a9dfc RD |
5601 | } |
5602 | { | |
5603 | wxPy_BEGIN_ALLOW_THREADS; | |
5604 | wxPyShape_NameRegions(_arg0,*_arg1); | |
5605 | ||
5606 | wxPy_END_ALLOW_THREADS; | |
5607 | } Py_INCREF(Py_None); | |
5608 | _resultobj = Py_None; | |
5609 | { | |
5610 | if (_obj1) | |
5611 | delete _arg1; | |
5612 | } | |
5613 | return _resultobj; | |
5614 | } | |
5615 | ||
5616 | static PyObject * wxPyShape_GetRegions(wxPyShape *self) { | |
5617 | wxList& list = self->GetRegions(); | |
5618 | return wxPy_ConvertList(&list, "wxShapeRegion"); | |
5619 | } | |
5620 | static PyObject *_wrap_wxPyShape_GetRegions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5621 | PyObject * _resultobj; | |
5622 | PyObject * _result; | |
5623 | wxPyShape * _arg0; | |
5624 | PyObject * _argo0 = 0; | |
5625 | char *_kwnames[] = { "self", NULL }; | |
5626 | ||
5627 | self = self; | |
5628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetRegions",_kwnames,&_argo0)) | |
5629 | return NULL; | |
5630 | if (_argo0) { | |
5631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetRegions. Expected _wxPyShape_p."); | |
5634 | return NULL; | |
5635 | } | |
5636 | } | |
5637 | { | |
5638 | wxPy_BEGIN_ALLOW_THREADS; | |
5639 | _result = (PyObject *)wxPyShape_GetRegions(_arg0); | |
5640 | ||
5641 | wxPy_END_ALLOW_THREADS; | |
5642 | }{ | |
5643 | _resultobj = _result; | |
5644 | } | |
5645 | return _resultobj; | |
5646 | } | |
5647 | ||
5648 | #define wxPyShape_AddRegion(_swigobj,_swigarg0) (_swigobj->AddRegion(_swigarg0)) | |
5649 | static PyObject *_wrap_wxPyShape_AddRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5650 | PyObject * _resultobj; | |
5651 | wxPyShape * _arg0; | |
5652 | wxShapeRegion * _arg1; | |
5653 | PyObject * _argo0 = 0; | |
5654 | PyObject * _argo1 = 0; | |
5655 | char *_kwnames[] = { "self","region", NULL }; | |
5656 | ||
5657 | self = self; | |
5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_AddRegion",_kwnames,&_argo0,&_argo1)) | |
5659 | return NULL; | |
5660 | if (_argo0) { | |
5661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_AddRegion. Expected _wxPyShape_p."); | |
5664 | return NULL; | |
5665 | } | |
5666 | } | |
5667 | if (_argo1) { | |
5668 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5669 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxShapeRegion_p")) { | |
5670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_AddRegion. Expected _wxShapeRegion_p."); | |
5671 | return NULL; | |
5672 | } | |
5673 | } | |
5674 | { | |
5675 | wxPy_BEGIN_ALLOW_THREADS; | |
5676 | wxPyShape_AddRegion(_arg0,_arg1); | |
5677 | ||
5678 | wxPy_END_ALLOW_THREADS; | |
5679 | } Py_INCREF(Py_None); | |
5680 | _resultobj = Py_None; | |
5681 | return _resultobj; | |
5682 | } | |
5683 | ||
5684 | #define wxPyShape_ClearRegions(_swigobj) (_swigobj->ClearRegions()) | |
5685 | static PyObject *_wrap_wxPyShape_ClearRegions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5686 | PyObject * _resultobj; | |
5687 | wxPyShape * _arg0; | |
5688 | PyObject * _argo0 = 0; | |
5689 | char *_kwnames[] = { "self", NULL }; | |
5690 | ||
5691 | self = self; | |
5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_ClearRegions",_kwnames,&_argo0)) | |
5693 | return NULL; | |
5694 | if (_argo0) { | |
5695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_ClearRegions. Expected _wxPyShape_p."); | |
5698 | return NULL; | |
5699 | } | |
5700 | } | |
5701 | { | |
5702 | wxPy_BEGIN_ALLOW_THREADS; | |
5703 | wxPyShape_ClearRegions(_arg0); | |
5704 | ||
5705 | wxPy_END_ALLOW_THREADS; | |
5706 | } Py_INCREF(Py_None); | |
5707 | _resultobj = Py_None; | |
5708 | return _resultobj; | |
5709 | } | |
5710 | ||
5711 | #define wxPyShape_AssignNewIds(_swigobj) (_swigobj->AssignNewIds()) | |
5712 | static PyObject *_wrap_wxPyShape_AssignNewIds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5713 | PyObject * _resultobj; | |
5714 | wxPyShape * _arg0; | |
5715 | PyObject * _argo0 = 0; | |
5716 | char *_kwnames[] = { "self", NULL }; | |
5717 | ||
5718 | self = self; | |
5719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_AssignNewIds",_kwnames,&_argo0)) | |
5720 | return NULL; | |
5721 | if (_argo0) { | |
5722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_AssignNewIds. Expected _wxPyShape_p."); | |
5725 | return NULL; | |
5726 | } | |
5727 | } | |
5728 | { | |
5729 | wxPy_BEGIN_ALLOW_THREADS; | |
5730 | wxPyShape_AssignNewIds(_arg0); | |
5731 | ||
5732 | wxPy_END_ALLOW_THREADS; | |
5733 | } Py_INCREF(Py_None); | |
5734 | _resultobj = Py_None; | |
5735 | return _resultobj; | |
5736 | } | |
5737 | ||
5738 | #define wxPyShape_FindRegion(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindRegion(_swigarg0,_swigarg1)) | |
5739 | static PyObject *_wrap_wxPyShape_FindRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5740 | PyObject * _resultobj; | |
5741 | wxPyShape * _result; | |
5742 | wxPyShape * _arg0; | |
5743 | wxString * _arg1; | |
5744 | int * _arg2; | |
f6bcfd97 | 5745 | int temp; |
e91a9dfc RD |
5746 | PyObject * _argo0 = 0; |
5747 | PyObject * _obj1 = 0; | |
f6bcfd97 | 5748 | char *_kwnames[] = { "self","regionName", NULL }; |
e91a9dfc RD |
5749 | |
5750 | self = self; | |
f6bcfd97 BP |
5751 | { |
5752 | _arg2 = &temp; | |
5753 | } | |
5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_FindRegion",_kwnames,&_argo0,&_obj1)) | |
e91a9dfc RD |
5755 | return NULL; |
5756 | if (_argo0) { | |
5757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_FindRegion. Expected _wxPyShape_p."); | |
5760 | return NULL; | |
5761 | } | |
5762 | } | |
5763 | { | |
185d7c3e RD |
5764 | #if PYTHON_API_VERSION >= 1009 |
5765 | char* tmpPtr; int tmpSize; | |
5766 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 5767 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5768 | return NULL; |
5769 | } | |
5770 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5771 | return NULL; | |
5772 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5773 | #else | |
e91a9dfc RD |
5774 | if (!PyString_Check(_obj1)) { |
5775 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5776 | return NULL; | |
5777 | } | |
185d7c3e RD |
5778 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5779 | #endif | |
e91a9dfc | 5780 | } |
e91a9dfc RD |
5781 | { |
5782 | wxPy_BEGIN_ALLOW_THREADS; | |
5783 | _result = (wxPyShape *)wxPyShape_FindRegion(_arg0,*_arg1,_arg2); | |
5784 | ||
5785 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 5786 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
5787 | { |
5788 | PyObject *o; | |
5789 | o = PyInt_FromLong((long) (*_arg2)); | |
5790 | _resultobj = t_output_helper(_resultobj, o); | |
5791 | } | |
e91a9dfc RD |
5792 | { |
5793 | if (_obj1) | |
5794 | delete _arg1; | |
5795 | } | |
5796 | return _resultobj; | |
5797 | } | |
5798 | ||
5799 | #define wxPyShape_FindRegionNames(_swigobj,_swigarg0) (_swigobj->FindRegionNames(_swigarg0)) | |
5800 | static PyObject *_wrap_wxPyShape_FindRegionNames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5801 | PyObject * _resultobj; | |
5802 | wxPyShape * _arg0; | |
5803 | wxStringList * _arg1; | |
5804 | PyObject * _argo0 = 0; | |
5805 | PyObject * _argo1 = 0; | |
5806 | char *_kwnames[] = { "self","list", NULL }; | |
5807 | ||
5808 | self = self; | |
5809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_FindRegionNames",_kwnames,&_argo0,&_argo1)) | |
5810 | return NULL; | |
5811 | if (_argo0) { | |
5812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_FindRegionNames. Expected _wxPyShape_p."); | |
5815 | return NULL; | |
5816 | } | |
5817 | } | |
5818 | if (_argo1) { | |
5819 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5820 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxStringList_p")) { | |
5821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_FindRegionNames. Expected _wxStringList_p."); | |
5822 | return NULL; | |
5823 | } | |
5824 | } | |
5825 | { | |
5826 | wxPy_BEGIN_ALLOW_THREADS; | |
5827 | wxPyShape_FindRegionNames(_arg0,*_arg1); | |
5828 | ||
5829 | wxPy_END_ALLOW_THREADS; | |
5830 | } Py_INCREF(Py_None); | |
5831 | _resultobj = Py_None; | |
5832 | return _resultobj; | |
5833 | } | |
5834 | ||
5835 | #define wxPyShape_ClearText(_swigobj,_swigarg0) (_swigobj->ClearText(_swigarg0)) | |
5836 | static PyObject *_wrap_wxPyShape_ClearText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5837 | PyObject * _resultobj; | |
5838 | wxPyShape * _arg0; | |
5839 | int _arg1 = (int ) 0; | |
5840 | PyObject * _argo0 = 0; | |
5841 | char *_kwnames[] = { "self","regionId", NULL }; | |
5842 | ||
5843 | self = self; | |
5844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxPyShape_ClearText",_kwnames,&_argo0,&_arg1)) | |
5845 | return NULL; | |
5846 | if (_argo0) { | |
5847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_ClearText. Expected _wxPyShape_p."); | |
5850 | return NULL; | |
5851 | } | |
5852 | } | |
5853 | { | |
5854 | wxPy_BEGIN_ALLOW_THREADS; | |
5855 | wxPyShape_ClearText(_arg0,_arg1); | |
5856 | ||
5857 | wxPy_END_ALLOW_THREADS; | |
5858 | } Py_INCREF(Py_None); | |
5859 | _resultobj = Py_None; | |
5860 | return _resultobj; | |
5861 | } | |
5862 | ||
5863 | #define wxPyShape_RemoveLine(_swigobj,_swigarg0) (_swigobj->RemoveLine(_swigarg0)) | |
5864 | static PyObject *_wrap_wxPyShape_RemoveLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject * _resultobj; | |
5866 | wxPyShape * _arg0; | |
5867 | wxPyLineShape * _arg1; | |
5868 | PyObject * _argo0 = 0; | |
5869 | PyObject * _argo1 = 0; | |
5870 | char *_kwnames[] = { "self","line", NULL }; | |
5871 | ||
5872 | self = self; | |
5873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_RemoveLine",_kwnames,&_argo0,&_argo1)) | |
5874 | return NULL; | |
5875 | if (_argo0) { | |
5876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_RemoveLine. Expected _wxPyShape_p."); | |
5879 | return NULL; | |
5880 | } | |
5881 | } | |
5882 | if (_argo1) { | |
5883 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5884 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyLineShape_p")) { | |
5885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_RemoveLine. Expected _wxPyLineShape_p."); | |
5886 | return NULL; | |
5887 | } | |
5888 | } | |
5889 | { | |
5890 | wxPy_BEGIN_ALLOW_THREADS; | |
5891 | wxPyShape_RemoveLine(_arg0,_arg1); | |
5892 | ||
5893 | wxPy_END_ALLOW_THREADS; | |
5894 | } Py_INCREF(Py_None); | |
5895 | _resultobj = Py_None; | |
5896 | return _resultobj; | |
5897 | } | |
5898 | ||
5899 | #define wxPyShape_GetAttachmentPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetAttachmentPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5900 | static PyObject *_wrap_wxPyShape_GetAttachmentPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5901 | PyObject * _resultobj; | |
5902 | bool _result; | |
5903 | wxPyShape * _arg0; | |
5904 | int _arg1; | |
5905 | double * _arg2; | |
714d23b4 | 5906 | double temp; |
e91a9dfc | 5907 | double * _arg3; |
714d23b4 | 5908 | double temp0; |
e91a9dfc RD |
5909 | int _arg4 = (int ) 0; |
5910 | int _arg5 = (int ) 1; | |
5911 | wxPyLineShape * _arg6 = (wxPyLineShape *) NULL; | |
5912 | PyObject * _argo0 = 0; | |
e91a9dfc | 5913 | PyObject * _argo6 = 0; |
714d23b4 | 5914 | char *_kwnames[] = { "self","attachment","nth","no_arcs","line", NULL }; |
e91a9dfc RD |
5915 | |
5916 | self = self; | |
714d23b4 RD |
5917 | { |
5918 | _arg2 = &temp; | |
5919 | } | |
5920 | { | |
5921 | _arg3 = &temp0; | |
5922 | } | |
5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|iiO:wxPyShape_GetAttachmentPosition",_kwnames,&_argo0,&_arg1,&_arg4,&_arg5,&_argo6)) | |
e91a9dfc RD |
5924 | return NULL; |
5925 | if (_argo0) { | |
5926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetAttachmentPosition. Expected _wxPyShape_p."); | |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
e91a9dfc RD |
5932 | if (_argo6) { |
5933 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5934 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyLineShape_p")) { | |
5935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxPyShape_GetAttachmentPosition. Expected _wxPyLineShape_p."); | |
5936 | return NULL; | |
5937 | } | |
5938 | } | |
5939 | { | |
5940 | wxPy_BEGIN_ALLOW_THREADS; | |
5941 | _result = (bool )wxPyShape_GetAttachmentPosition(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5942 | ||
5943 | wxPy_END_ALLOW_THREADS; | |
5944 | } _resultobj = Py_BuildValue("i",_result); | |
714d23b4 RD |
5945 | { |
5946 | PyObject *o; | |
5947 | o = PyFloat_FromDouble((double) (*_arg2)); | |
5948 | _resultobj = t_output_helper(_resultobj, o); | |
5949 | } | |
5950 | { | |
5951 | PyObject *o; | |
5952 | o = PyFloat_FromDouble((double) (*_arg3)); | |
5953 | _resultobj = t_output_helper(_resultobj, o); | |
5954 | } | |
e91a9dfc RD |
5955 | return _resultobj; |
5956 | } | |
5957 | ||
5958 | #define wxPyShape_GetNumberOfAttachments(_swigobj) (_swigobj->GetNumberOfAttachments()) | |
5959 | static PyObject *_wrap_wxPyShape_GetNumberOfAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5960 | PyObject * _resultobj; | |
5961 | int _result; | |
5962 | wxPyShape * _arg0; | |
5963 | PyObject * _argo0 = 0; | |
5964 | char *_kwnames[] = { "self", NULL }; | |
5965 | ||
5966 | self = self; | |
5967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetNumberOfAttachments",_kwnames,&_argo0)) | |
5968 | return NULL; | |
5969 | if (_argo0) { | |
5970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
5972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetNumberOfAttachments. Expected _wxPyShape_p."); | |
5973 | return NULL; | |
5974 | } | |
5975 | } | |
5976 | { | |
5977 | wxPy_BEGIN_ALLOW_THREADS; | |
5978 | _result = (int )wxPyShape_GetNumberOfAttachments(_arg0); | |
5979 | ||
5980 | wxPy_END_ALLOW_THREADS; | |
5981 | } _resultobj = Py_BuildValue("i",_result); | |
5982 | return _resultobj; | |
5983 | } | |
5984 | ||
5985 | #define wxPyShape_AttachmentIsValid(_swigobj,_swigarg0) (_swigobj->AttachmentIsValid(_swigarg0)) | |
5986 | static PyObject *_wrap_wxPyShape_AttachmentIsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5987 | PyObject * _resultobj; | |
5988 | bool _result; | |
5989 | wxPyShape * _arg0; | |
5990 | int _arg1; | |
5991 | PyObject * _argo0 = 0; | |
5992 | char *_kwnames[] = { "self","attachment", NULL }; | |
5993 | ||
5994 | self = self; | |
5995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_AttachmentIsValid",_kwnames,&_argo0,&_arg1)) | |
5996 | return NULL; | |
5997 | if (_argo0) { | |
5998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_AttachmentIsValid. Expected _wxPyShape_p."); | |
6001 | return NULL; | |
6002 | } | |
6003 | } | |
6004 | { | |
6005 | wxPy_BEGIN_ALLOW_THREADS; | |
6006 | _result = (bool )wxPyShape_AttachmentIsValid(_arg0,_arg1); | |
6007 | ||
6008 | wxPy_END_ALLOW_THREADS; | |
6009 | } _resultobj = Py_BuildValue("i",_result); | |
6010 | return _resultobj; | |
6011 | } | |
6012 | ||
6013 | #define wxPyShape_GetAttachmentPositionEdge(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetAttachmentPositionEdge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6014 | static PyObject *_wrap_wxPyShape_GetAttachmentPositionEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6015 | PyObject * _resultobj; | |
6016 | bool _result; | |
6017 | wxPyShape * _arg0; | |
6018 | int _arg1; | |
6019 | double * _arg2; | |
714d23b4 | 6020 | double temp; |
e91a9dfc | 6021 | double * _arg3; |
714d23b4 | 6022 | double temp0; |
e91a9dfc RD |
6023 | int _arg4 = (int ) 0; |
6024 | int _arg5 = (int ) 1; | |
6025 | wxPyLineShape * _arg6 = (wxPyLineShape *) NULL; | |
6026 | PyObject * _argo0 = 0; | |
e91a9dfc | 6027 | PyObject * _argo6 = 0; |
714d23b4 | 6028 | char *_kwnames[] = { "self","attachment","nth","no_arcs","line", NULL }; |
e91a9dfc RD |
6029 | |
6030 | self = self; | |
714d23b4 RD |
6031 | { |
6032 | _arg2 = &temp; | |
6033 | } | |
6034 | { | |
6035 | _arg3 = &temp0; | |
6036 | } | |
6037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|iiO:wxPyShape_GetAttachmentPositionEdge",_kwnames,&_argo0,&_arg1,&_arg4,&_arg5,&_argo6)) | |
e91a9dfc RD |
6038 | return NULL; |
6039 | if (_argo0) { | |
6040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetAttachmentPositionEdge. Expected _wxPyShape_p."); | |
6043 | return NULL; | |
6044 | } | |
6045 | } | |
e91a9dfc RD |
6046 | if (_argo6) { |
6047 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6048 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyLineShape_p")) { | |
6049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxPyShape_GetAttachmentPositionEdge. Expected _wxPyLineShape_p."); | |
6050 | return NULL; | |
6051 | } | |
6052 | } | |
6053 | { | |
6054 | wxPy_BEGIN_ALLOW_THREADS; | |
6055 | _result = (bool )wxPyShape_GetAttachmentPositionEdge(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6056 | ||
6057 | wxPy_END_ALLOW_THREADS; | |
6058 | } _resultobj = Py_BuildValue("i",_result); | |
714d23b4 RD |
6059 | { |
6060 | PyObject *o; | |
6061 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6062 | _resultobj = t_output_helper(_resultobj, o); | |
6063 | } | |
6064 | { | |
6065 | PyObject *o; | |
6066 | o = PyFloat_FromDouble((double) (*_arg3)); | |
6067 | _resultobj = t_output_helper(_resultobj, o); | |
6068 | } | |
e91a9dfc RD |
6069 | return _resultobj; |
6070 | } | |
6071 | ||
6072 | #define wxPyShape_CalcSimpleAttachment(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->CalcSimpleAttachment(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
6073 | static PyObject *_wrap_wxPyShape_CalcSimpleAttachment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6074 | PyObject * _resultobj; | |
6075 | wxRealPoint * _result; | |
6076 | wxPyShape * _arg0; | |
6077 | wxRealPoint * _arg1; | |
6078 | wxRealPoint * _arg2; | |
6079 | int _arg3; | |
6080 | int _arg4; | |
6081 | wxPyLineShape * _arg5; | |
6082 | PyObject * _argo0 = 0; | |
2348eaee RD |
6083 | wxRealPoint temp; |
6084 | PyObject * _obj1 = 0; | |
6085 | wxRealPoint temp0; | |
6086 | PyObject * _obj2 = 0; | |
e91a9dfc RD |
6087 | PyObject * _argo5 = 0; |
6088 | char *_kwnames[] = { "self","pt1","pt2","nth","noArcs","line", NULL }; | |
6089 | char _ptemp[128]; | |
6090 | ||
6091 | self = self; | |
2348eaee | 6092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOiiO:wxPyShape_CalcSimpleAttachment",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4,&_argo5)) |
e91a9dfc RD |
6093 | return NULL; |
6094 | if (_argo0) { | |
6095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_CalcSimpleAttachment. Expected _wxPyShape_p."); | |
6098 | return NULL; | |
6099 | } | |
6100 | } | |
2348eaee RD |
6101 | { |
6102 | _arg1 = &temp; | |
6103 | if (! wxRealPoint_helper(_obj1, &_arg1)) | |
e91a9dfc | 6104 | return NULL; |
2348eaee RD |
6105 | } |
6106 | { | |
6107 | _arg2 = &temp0; | |
6108 | if (! wxRealPoint_helper(_obj2, &_arg2)) | |
e91a9dfc | 6109 | return NULL; |
2348eaee | 6110 | } |
e91a9dfc RD |
6111 | if (_argo5) { |
6112 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6113 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyLineShape_p")) { | |
6114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxPyShape_CalcSimpleAttachment. Expected _wxPyLineShape_p."); | |
6115 | return NULL; | |
6116 | } | |
6117 | } | |
6118 | { | |
6119 | wxPy_BEGIN_ALLOW_THREADS; | |
6120 | _result = new wxRealPoint (wxPyShape_CalcSimpleAttachment(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
6121 | ||
6122 | wxPy_END_ALLOW_THREADS; | |
6123 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p"); | |
6124 | _resultobj = Py_BuildValue("s",_ptemp); | |
6125 | return _resultobj; | |
6126 | } | |
6127 | ||
6128 | #define wxPyShape_AttachmentSortTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachmentSortTest(_swigarg0,_swigarg1,_swigarg2)) | |
6129 | static PyObject *_wrap_wxPyShape_AttachmentSortTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject * _resultobj; | |
6131 | bool _result; | |
6132 | wxPyShape * _arg0; | |
6133 | int _arg1; | |
6134 | wxRealPoint * _arg2; | |
6135 | wxRealPoint * _arg3; | |
6136 | PyObject * _argo0 = 0; | |
2348eaee RD |
6137 | wxRealPoint temp; |
6138 | PyObject * _obj2 = 0; | |
6139 | wxRealPoint temp0; | |
6140 | PyObject * _obj3 = 0; | |
e91a9dfc RD |
6141 | char *_kwnames[] = { "self","attachmentPoint","pt1","pt2", NULL }; |
6142 | ||
6143 | self = self; | |
2348eaee | 6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxPyShape_AttachmentSortTest",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
e91a9dfc RD |
6145 | return NULL; |
6146 | if (_argo0) { | |
6147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_AttachmentSortTest. Expected _wxPyShape_p."); | |
6150 | return NULL; | |
6151 | } | |
6152 | } | |
2348eaee RD |
6153 | { |
6154 | _arg2 = &temp; | |
6155 | if (! wxRealPoint_helper(_obj2, &_arg2)) | |
e91a9dfc | 6156 | return NULL; |
2348eaee RD |
6157 | } |
6158 | { | |
6159 | _arg3 = &temp0; | |
6160 | if (! wxRealPoint_helper(_obj3, &_arg3)) | |
e91a9dfc | 6161 | return NULL; |
2348eaee | 6162 | } |
e91a9dfc RD |
6163 | { |
6164 | wxPy_BEGIN_ALLOW_THREADS; | |
6165 | _result = (bool )wxPyShape_AttachmentSortTest(_arg0,_arg1,*_arg2,*_arg3); | |
6166 | ||
6167 | wxPy_END_ALLOW_THREADS; | |
6168 | } _resultobj = Py_BuildValue("i",_result); | |
6169 | return _resultobj; | |
6170 | } | |
6171 | ||
6172 | #define wxPyShape_EraseLinks(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->EraseLinks(_swigarg0,_swigarg1,_swigarg2)) | |
6173 | static PyObject *_wrap_wxPyShape_EraseLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6174 | PyObject * _resultobj; | |
6175 | wxPyShape * _arg0; | |
6176 | wxDC * _arg1; | |
6177 | int _arg2 = (int ) -1; | |
6178 | bool _arg3 = (bool ) FALSE; | |
6179 | PyObject * _argo0 = 0; | |
6180 | PyObject * _argo1 = 0; | |
6181 | int tempbool3 = (int) FALSE; | |
6182 | char *_kwnames[] = { "self","dc","attachment","recurse", NULL }; | |
6183 | ||
6184 | self = self; | |
6185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:wxPyShape_EraseLinks",_kwnames,&_argo0,&_argo1,&_arg2,&tempbool3)) | |
6186 | return NULL; | |
6187 | if (_argo0) { | |
6188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_EraseLinks. Expected _wxPyShape_p."); | |
6191 | return NULL; | |
6192 | } | |
6193 | } | |
6194 | if (_argo1) { | |
6195 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6196 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
6197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_EraseLinks. Expected _wxDC_p."); | |
6198 | return NULL; | |
6199 | } | |
6200 | } | |
6201 | _arg3 = (bool ) tempbool3; | |
6202 | { | |
6203 | wxPy_BEGIN_ALLOW_THREADS; | |
6204 | wxPyShape_EraseLinks(_arg0,*_arg1,_arg2,_arg3); | |
6205 | ||
6206 | wxPy_END_ALLOW_THREADS; | |
6207 | } Py_INCREF(Py_None); | |
6208 | _resultobj = Py_None; | |
6209 | return _resultobj; | |
6210 | } | |
6211 | ||
6212 | #define wxPyShape_DrawLinks(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawLinks(_swigarg0,_swigarg1,_swigarg2)) | |
6213 | static PyObject *_wrap_wxPyShape_DrawLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6214 | PyObject * _resultobj; | |
6215 | wxPyShape * _arg0; | |
6216 | wxDC * _arg1; | |
6217 | int _arg2 = (int ) -1; | |
6218 | bool _arg3 = (bool ) FALSE; | |
6219 | PyObject * _argo0 = 0; | |
6220 | PyObject * _argo1 = 0; | |
6221 | int tempbool3 = (int) FALSE; | |
6222 | char *_kwnames[] = { "self","dc","attachment","recurse", NULL }; | |
6223 | ||
6224 | self = self; | |
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:wxPyShape_DrawLinks",_kwnames,&_argo0,&_argo1,&_arg2,&tempbool3)) | |
6226 | return NULL; | |
6227 | if (_argo0) { | |
6228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_DrawLinks. Expected _wxPyShape_p."); | |
6231 | return NULL; | |
6232 | } | |
6233 | } | |
6234 | if (_argo1) { | |
6235 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6236 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
6237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_DrawLinks. Expected _wxDC_p."); | |
6238 | return NULL; | |
6239 | } | |
6240 | } | |
6241 | _arg3 = (bool ) tempbool3; | |
6242 | { | |
6243 | wxPy_BEGIN_ALLOW_THREADS; | |
6244 | wxPyShape_DrawLinks(_arg0,*_arg1,_arg2,_arg3); | |
6245 | ||
6246 | wxPy_END_ALLOW_THREADS; | |
6247 | } Py_INCREF(Py_None); | |
6248 | _resultobj = Py_None; | |
6249 | return _resultobj; | |
6250 | } | |
6251 | ||
6252 | #define wxPyShape_MoveLineToNewAttachment(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->MoveLineToNewAttachment(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6253 | static PyObject *_wrap_wxPyShape_MoveLineToNewAttachment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6254 | PyObject * _resultobj; | |
6255 | bool _result; | |
6256 | wxPyShape * _arg0; | |
6257 | wxDC * _arg1; | |
6258 | wxPyLineShape * _arg2; | |
6259 | double _arg3; | |
6260 | double _arg4; | |
6261 | PyObject * _argo0 = 0; | |
6262 | PyObject * _argo1 = 0; | |
6263 | PyObject * _argo2 = 0; | |
6264 | char *_kwnames[] = { "self","dc","to_move","x","y", NULL }; | |
6265 | ||
6266 | self = self; | |
6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOdd:wxPyShape_MoveLineToNewAttachment",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3,&_arg4)) | |
6268 | return NULL; | |
6269 | if (_argo0) { | |
6270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_MoveLineToNewAttachment. Expected _wxPyShape_p."); | |
6273 | return NULL; | |
6274 | } | |
6275 | } | |
6276 | if (_argo1) { | |
6277 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6278 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
6279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_MoveLineToNewAttachment. Expected _wxDC_p."); | |
6280 | return NULL; | |
6281 | } | |
6282 | } | |
6283 | if (_argo2) { | |
6284 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6285 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyLineShape_p")) { | |
6286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyShape_MoveLineToNewAttachment. Expected _wxPyLineShape_p."); | |
6287 | return NULL; | |
6288 | } | |
6289 | } | |
6290 | { | |
6291 | wxPy_BEGIN_ALLOW_THREADS; | |
6292 | _result = (bool )wxPyShape_MoveLineToNewAttachment(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
6293 | ||
6294 | wxPy_END_ALLOW_THREADS; | |
6295 | } _resultobj = Py_BuildValue("i",_result); | |
6296 | return _resultobj; | |
6297 | } | |
6298 | ||
6299 | static void wxPyShape_ApplyAttachmentOrdering(wxPyShape *self,PyObject * linesToSort) { | |
99ab9f3b | 6300 | wxList* list = wxPy_wxListHelper(linesToSort, "_wxPyLineShape_p"); |
e91a9dfc RD |
6301 | self->ApplyAttachmentOrdering(*list); |
6302 | delete list; | |
6303 | } | |
6304 | static PyObject *_wrap_wxPyShape_ApplyAttachmentOrdering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6305 | PyObject * _resultobj; | |
6306 | wxPyShape * _arg0; | |
6307 | PyObject * _arg1; | |
6308 | PyObject * _argo0 = 0; | |
6309 | PyObject * _obj1 = 0; | |
6310 | char *_kwnames[] = { "self","linesToSort", NULL }; | |
6311 | ||
6312 | self = self; | |
6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_ApplyAttachmentOrdering",_kwnames,&_argo0,&_obj1)) | |
6314 | return NULL; | |
6315 | if (_argo0) { | |
6316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_ApplyAttachmentOrdering. Expected _wxPyShape_p."); | |
6319 | return NULL; | |
6320 | } | |
6321 | } | |
6322 | { | |
6323 | _arg1 = _obj1; | |
6324 | } | |
6325 | { | |
6326 | wxPy_BEGIN_ALLOW_THREADS; | |
6327 | wxPyShape_ApplyAttachmentOrdering(_arg0,_arg1); | |
6328 | ||
6329 | wxPy_END_ALLOW_THREADS; | |
6330 | } Py_INCREF(Py_None); | |
6331 | _resultobj = Py_None; | |
6332 | return _resultobj; | |
6333 | } | |
6334 | ||
6335 | #define wxPyShape_GetBranchingAttachmentRoot(_swigobj,_swigarg0) (_swigobj->GetBranchingAttachmentRoot(_swigarg0)) | |
6336 | static PyObject *_wrap_wxPyShape_GetBranchingAttachmentRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6337 | PyObject * _resultobj; | |
6338 | wxRealPoint * _result; | |
6339 | wxPyShape * _arg0; | |
6340 | int _arg1; | |
6341 | PyObject * _argo0 = 0; | |
6342 | char *_kwnames[] = { "self","attachment", NULL }; | |
6343 | char _ptemp[128]; | |
6344 | ||
6345 | self = self; | |
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_GetBranchingAttachmentRoot",_kwnames,&_argo0,&_arg1)) | |
6347 | return NULL; | |
6348 | if (_argo0) { | |
6349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBranchingAttachmentRoot. Expected _wxPyShape_p."); | |
6352 | return NULL; | |
6353 | } | |
6354 | } | |
6355 | { | |
6356 | wxPy_BEGIN_ALLOW_THREADS; | |
6357 | _result = new wxRealPoint (wxPyShape_GetBranchingAttachmentRoot(_arg0,_arg1)); | |
6358 | ||
6359 | wxPy_END_ALLOW_THREADS; | |
6360 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p"); | |
6361 | _resultobj = Py_BuildValue("s",_ptemp); | |
6362 | return _resultobj; | |
6363 | } | |
6364 | ||
6365 | #define wxPyShape_GetBranchingAttachmentInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetBranchingAttachmentInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
6366 | static PyObject *_wrap_wxPyShape_GetBranchingAttachmentInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6367 | PyObject * _resultobj; | |
6368 | bool _result; | |
6369 | wxPyShape * _arg0; | |
6370 | int _arg1; | |
6371 | wxRealPoint * _arg2; | |
6372 | wxRealPoint * _arg3; | |
6373 | wxRealPoint * _arg4; | |
6374 | wxRealPoint * _arg5; | |
6375 | PyObject * _argo0 = 0; | |
2348eaee RD |
6376 | wxRealPoint temp; |
6377 | PyObject * _obj2 = 0; | |
6378 | wxRealPoint temp0; | |
6379 | PyObject * _obj3 = 0; | |
6380 | wxRealPoint temp1; | |
6381 | PyObject * _obj4 = 0; | |
6382 | wxRealPoint temp2; | |
6383 | PyObject * _obj5 = 0; | |
e91a9dfc RD |
6384 | char *_kwnames[] = { "self","attachment","root","neck","shoulder1","shoulder2", NULL }; |
6385 | ||
6386 | self = self; | |
2348eaee | 6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOOO:wxPyShape_GetBranchingAttachmentInfo",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj5)) |
e91a9dfc RD |
6388 | return NULL; |
6389 | if (_argo0) { | |
6390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBranchingAttachmentInfo. Expected _wxPyShape_p."); | |
6393 | return NULL; | |
6394 | } | |
6395 | } | |
2348eaee RD |
6396 | { |
6397 | _arg2 = &temp; | |
6398 | if (! wxRealPoint_helper(_obj2, &_arg2)) | |
e91a9dfc | 6399 | return NULL; |
2348eaee RD |
6400 | } |
6401 | { | |
6402 | _arg3 = &temp0; | |
6403 | if (! wxRealPoint_helper(_obj3, &_arg3)) | |
e91a9dfc | 6404 | return NULL; |
2348eaee RD |
6405 | } |
6406 | { | |
6407 | _arg4 = &temp1; | |
6408 | if (! wxRealPoint_helper(_obj4, &_arg4)) | |
e91a9dfc | 6409 | return NULL; |
2348eaee RD |
6410 | } |
6411 | { | |
6412 | _arg5 = &temp2; | |
6413 | if (! wxRealPoint_helper(_obj5, &_arg5)) | |
e91a9dfc | 6414 | return NULL; |
2348eaee | 6415 | } |
e91a9dfc RD |
6416 | { |
6417 | wxPy_BEGIN_ALLOW_THREADS; | |
6418 | _result = (bool )wxPyShape_GetBranchingAttachmentInfo(_arg0,_arg1,*_arg2,*_arg3,*_arg4,*_arg5); | |
6419 | ||
6420 | wxPy_END_ALLOW_THREADS; | |
6421 | } _resultobj = Py_BuildValue("i",_result); | |
6422 | return _resultobj; | |
6423 | } | |
6424 | ||
6425 | #define wxPyShape_GetBranchingAttachmentPoint(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetBranchingAttachmentPoint(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6426 | static PyObject *_wrap_wxPyShape_GetBranchingAttachmentPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6427 | PyObject * _resultobj; | |
6428 | bool _result; | |
6429 | wxPyShape * _arg0; | |
6430 | int _arg1; | |
6431 | int _arg2; | |
6432 | wxRealPoint * _arg3; | |
6433 | wxRealPoint * _arg4; | |
6434 | PyObject * _argo0 = 0; | |
2348eaee RD |
6435 | wxRealPoint temp; |
6436 | PyObject * _obj3 = 0; | |
6437 | wxRealPoint temp0; | |
6438 | PyObject * _obj4 = 0; | |
e91a9dfc RD |
6439 | char *_kwnames[] = { "self","attachment","n","attachmentPoint","stemPoint", NULL }; |
6440 | ||
6441 | self = self; | |
2348eaee | 6442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO:wxPyShape_GetBranchingAttachmentPoint",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) |
e91a9dfc RD |
6443 | return NULL; |
6444 | if (_argo0) { | |
6445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBranchingAttachmentPoint. Expected _wxPyShape_p."); | |
6448 | return NULL; | |
6449 | } | |
6450 | } | |
2348eaee RD |
6451 | { |
6452 | _arg3 = &temp; | |
6453 | if (! wxRealPoint_helper(_obj3, &_arg3)) | |
e91a9dfc | 6454 | return NULL; |
2348eaee RD |
6455 | } |
6456 | { | |
6457 | _arg4 = &temp0; | |
6458 | if (! wxRealPoint_helper(_obj4, &_arg4)) | |
e91a9dfc | 6459 | return NULL; |
2348eaee | 6460 | } |
e91a9dfc RD |
6461 | { |
6462 | wxPy_BEGIN_ALLOW_THREADS; | |
6463 | _result = (bool )wxPyShape_GetBranchingAttachmentPoint(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
6464 | ||
6465 | wxPy_END_ALLOW_THREADS; | |
6466 | } _resultobj = Py_BuildValue("i",_result); | |
6467 | return _resultobj; | |
6468 | } | |
6469 | ||
6470 | #define wxPyShape_GetAttachmentLineCount(_swigobj,_swigarg0) (_swigobj->GetAttachmentLineCount(_swigarg0)) | |
6471 | static PyObject *_wrap_wxPyShape_GetAttachmentLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6472 | PyObject * _resultobj; | |
6473 | int _result; | |
6474 | wxPyShape * _arg0; | |
6475 | int _arg1; | |
6476 | PyObject * _argo0 = 0; | |
6477 | char *_kwnames[] = { "self","attachment", NULL }; | |
6478 | ||
6479 | self = self; | |
6480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_GetAttachmentLineCount",_kwnames,&_argo0,&_arg1)) | |
6481 | return NULL; | |
6482 | if (_argo0) { | |
6483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetAttachmentLineCount. Expected _wxPyShape_p."); | |
6486 | return NULL; | |
6487 | } | |
6488 | } | |
6489 | { | |
6490 | wxPy_BEGIN_ALLOW_THREADS; | |
6491 | _result = (int )wxPyShape_GetAttachmentLineCount(_arg0,_arg1); | |
6492 | ||
6493 | wxPy_END_ALLOW_THREADS; | |
6494 | } _resultobj = Py_BuildValue("i",_result); | |
6495 | return _resultobj; | |
6496 | } | |
6497 | ||
6498 | #define wxPyShape_SetBranchNeckLength(_swigobj,_swigarg0) (_swigobj->SetBranchNeckLength(_swigarg0)) | |
6499 | static PyObject *_wrap_wxPyShape_SetBranchNeckLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6500 | PyObject * _resultobj; | |
6501 | wxPyShape * _arg0; | |
6502 | int _arg1; | |
6503 | PyObject * _argo0 = 0; | |
6504 | char *_kwnames[] = { "self","len", NULL }; | |
6505 | ||
6506 | self = self; | |
6507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_SetBranchNeckLength",_kwnames,&_argo0,&_arg1)) | |
6508 | return NULL; | |
6509 | if (_argo0) { | |
6510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetBranchNeckLength. Expected _wxPyShape_p."); | |
6513 | return NULL; | |
6514 | } | |
6515 | } | |
6516 | { | |
6517 | wxPy_BEGIN_ALLOW_THREADS; | |
6518 | wxPyShape_SetBranchNeckLength(_arg0,_arg1); | |
6519 | ||
6520 | wxPy_END_ALLOW_THREADS; | |
6521 | } Py_INCREF(Py_None); | |
6522 | _resultobj = Py_None; | |
6523 | return _resultobj; | |
6524 | } | |
6525 | ||
6526 | #define wxPyShape_GetBranchNeckLength(_swigobj) (_swigobj->GetBranchNeckLength()) | |
6527 | static PyObject *_wrap_wxPyShape_GetBranchNeckLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6528 | PyObject * _resultobj; | |
6529 | int _result; | |
6530 | wxPyShape * _arg0; | |
6531 | PyObject * _argo0 = 0; | |
6532 | char *_kwnames[] = { "self", NULL }; | |
6533 | ||
6534 | self = self; | |
6535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetBranchNeckLength",_kwnames,&_argo0)) | |
6536 | return NULL; | |
6537 | if (_argo0) { | |
6538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBranchNeckLength. Expected _wxPyShape_p."); | |
6541 | return NULL; | |
6542 | } | |
6543 | } | |
6544 | { | |
6545 | wxPy_BEGIN_ALLOW_THREADS; | |
6546 | _result = (int )wxPyShape_GetBranchNeckLength(_arg0); | |
6547 | ||
6548 | wxPy_END_ALLOW_THREADS; | |
6549 | } _resultobj = Py_BuildValue("i",_result); | |
6550 | return _resultobj; | |
6551 | } | |
6552 | ||
6553 | #define wxPyShape_SetBranchStemLength(_swigobj,_swigarg0) (_swigobj->SetBranchStemLength(_swigarg0)) | |
6554 | static PyObject *_wrap_wxPyShape_SetBranchStemLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6555 | PyObject * _resultobj; | |
6556 | wxPyShape * _arg0; | |
6557 | int _arg1; | |
6558 | PyObject * _argo0 = 0; | |
6559 | char *_kwnames[] = { "self","len", NULL }; | |
6560 | ||
6561 | self = self; | |
6562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_SetBranchStemLength",_kwnames,&_argo0,&_arg1)) | |
6563 | return NULL; | |
6564 | if (_argo0) { | |
6565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetBranchStemLength. Expected _wxPyShape_p."); | |
6568 | return NULL; | |
6569 | } | |
6570 | } | |
6571 | { | |
6572 | wxPy_BEGIN_ALLOW_THREADS; | |
6573 | wxPyShape_SetBranchStemLength(_arg0,_arg1); | |
6574 | ||
6575 | wxPy_END_ALLOW_THREADS; | |
6576 | } Py_INCREF(Py_None); | |
6577 | _resultobj = Py_None; | |
6578 | return _resultobj; | |
6579 | } | |
6580 | ||
6581 | #define wxPyShape_GetBranchStemLength(_swigobj) (_swigobj->GetBranchStemLength()) | |
6582 | static PyObject *_wrap_wxPyShape_GetBranchStemLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6583 | PyObject * _resultobj; | |
6584 | int _result; | |
6585 | wxPyShape * _arg0; | |
6586 | PyObject * _argo0 = 0; | |
6587 | char *_kwnames[] = { "self", NULL }; | |
6588 | ||
6589 | self = self; | |
6590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetBranchStemLength",_kwnames,&_argo0)) | |
6591 | return NULL; | |
6592 | if (_argo0) { | |
6593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBranchStemLength. Expected _wxPyShape_p."); | |
6596 | return NULL; | |
6597 | } | |
6598 | } | |
6599 | { | |
6600 | wxPy_BEGIN_ALLOW_THREADS; | |
6601 | _result = (int )wxPyShape_GetBranchStemLength(_arg0); | |
6602 | ||
6603 | wxPy_END_ALLOW_THREADS; | |
6604 | } _resultobj = Py_BuildValue("i",_result); | |
6605 | return _resultobj; | |
6606 | } | |
6607 | ||
6608 | #define wxPyShape_SetBranchSpacing(_swigobj,_swigarg0) (_swigobj->SetBranchSpacing(_swigarg0)) | |
6609 | static PyObject *_wrap_wxPyShape_SetBranchSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6610 | PyObject * _resultobj; | |
6611 | wxPyShape * _arg0; | |
6612 | int _arg1; | |
6613 | PyObject * _argo0 = 0; | |
6614 | char *_kwnames[] = { "self","len", NULL }; | |
6615 | ||
6616 | self = self; | |
6617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_SetBranchSpacing",_kwnames,&_argo0,&_arg1)) | |
6618 | return NULL; | |
6619 | if (_argo0) { | |
6620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetBranchSpacing. Expected _wxPyShape_p."); | |
6623 | return NULL; | |
6624 | } | |
6625 | } | |
6626 | { | |
6627 | wxPy_BEGIN_ALLOW_THREADS; | |
6628 | wxPyShape_SetBranchSpacing(_arg0,_arg1); | |
6629 | ||
6630 | wxPy_END_ALLOW_THREADS; | |
6631 | } Py_INCREF(Py_None); | |
6632 | _resultobj = Py_None; | |
6633 | return _resultobj; | |
6634 | } | |
6635 | ||
6636 | #define wxPyShape_GetBranchSpacing(_swigobj) (_swigobj->GetBranchSpacing()) | |
6637 | static PyObject *_wrap_wxPyShape_GetBranchSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6638 | PyObject * _resultobj; | |
6639 | int _result; | |
6640 | wxPyShape * _arg0; | |
6641 | PyObject * _argo0 = 0; | |
6642 | char *_kwnames[] = { "self", NULL }; | |
6643 | ||
6644 | self = self; | |
6645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetBranchSpacing",_kwnames,&_argo0)) | |
6646 | return NULL; | |
6647 | if (_argo0) { | |
6648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBranchSpacing. Expected _wxPyShape_p."); | |
6651 | return NULL; | |
6652 | } | |
6653 | } | |
6654 | { | |
6655 | wxPy_BEGIN_ALLOW_THREADS; | |
6656 | _result = (int )wxPyShape_GetBranchSpacing(_arg0); | |
6657 | ||
6658 | wxPy_END_ALLOW_THREADS; | |
6659 | } _resultobj = Py_BuildValue("i",_result); | |
6660 | return _resultobj; | |
6661 | } | |
6662 | ||
6663 | #define wxPyShape_SetBranchStyle(_swigobj,_swigarg0) (_swigobj->SetBranchStyle(_swigarg0)) | |
6664 | static PyObject *_wrap_wxPyShape_SetBranchStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6665 | PyObject * _resultobj; | |
6666 | wxPyShape * _arg0; | |
6667 | long _arg1; | |
6668 | PyObject * _argo0 = 0; | |
6669 | char *_kwnames[] = { "self","style", NULL }; | |
6670 | ||
6671 | self = self; | |
6672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPyShape_SetBranchStyle",_kwnames,&_argo0,&_arg1)) | |
6673 | return NULL; | |
6674 | if (_argo0) { | |
6675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_SetBranchStyle. Expected _wxPyShape_p."); | |
6678 | return NULL; | |
6679 | } | |
6680 | } | |
6681 | { | |
6682 | wxPy_BEGIN_ALLOW_THREADS; | |
6683 | wxPyShape_SetBranchStyle(_arg0,_arg1); | |
6684 | ||
6685 | wxPy_END_ALLOW_THREADS; | |
6686 | } Py_INCREF(Py_None); | |
6687 | _resultobj = Py_None; | |
6688 | return _resultobj; | |
6689 | } | |
6690 | ||
6691 | #define wxPyShape_GetBranchStyle(_swigobj) (_swigobj->GetBranchStyle()) | |
6692 | static PyObject *_wrap_wxPyShape_GetBranchStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6693 | PyObject * _resultobj; | |
6694 | long _result; | |
6695 | wxPyShape * _arg0; | |
6696 | PyObject * _argo0 = 0; | |
6697 | char *_kwnames[] = { "self", NULL }; | |
6698 | ||
6699 | self = self; | |
6700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetBranchStyle",_kwnames,&_argo0)) | |
6701 | return NULL; | |
6702 | if (_argo0) { | |
6703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetBranchStyle. Expected _wxPyShape_p."); | |
6706 | return NULL; | |
6707 | } | |
6708 | } | |
6709 | { | |
6710 | wxPy_BEGIN_ALLOW_THREADS; | |
6711 | _result = (long )wxPyShape_GetBranchStyle(_arg0); | |
6712 | ||
6713 | wxPy_END_ALLOW_THREADS; | |
6714 | } _resultobj = Py_BuildValue("l",_result); | |
6715 | return _resultobj; | |
6716 | } | |
6717 | ||
6718 | #define wxPyShape_PhysicalToLogicalAttachment(_swigobj,_swigarg0) (_swigobj->PhysicalToLogicalAttachment(_swigarg0)) | |
6719 | static PyObject *_wrap_wxPyShape_PhysicalToLogicalAttachment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6720 | PyObject * _resultobj; | |
6721 | int _result; | |
6722 | wxPyShape * _arg0; | |
6723 | int _arg1; | |
6724 | PyObject * _argo0 = 0; | |
6725 | char *_kwnames[] = { "self","physicalAttachment", NULL }; | |
6726 | ||
6727 | self = self; | |
6728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_PhysicalToLogicalAttachment",_kwnames,&_argo0,&_arg1)) | |
6729 | return NULL; | |
6730 | if (_argo0) { | |
6731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_PhysicalToLogicalAttachment. Expected _wxPyShape_p."); | |
6734 | return NULL; | |
6735 | } | |
6736 | } | |
6737 | { | |
6738 | wxPy_BEGIN_ALLOW_THREADS; | |
6739 | _result = (int )wxPyShape_PhysicalToLogicalAttachment(_arg0,_arg1); | |
6740 | ||
6741 | wxPy_END_ALLOW_THREADS; | |
6742 | } _resultobj = Py_BuildValue("i",_result); | |
6743 | return _resultobj; | |
6744 | } | |
6745 | ||
6746 | #define wxPyShape_LogicalToPhysicalAttachment(_swigobj,_swigarg0) (_swigobj->LogicalToPhysicalAttachment(_swigarg0)) | |
6747 | static PyObject *_wrap_wxPyShape_LogicalToPhysicalAttachment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6748 | PyObject * _resultobj; | |
6749 | int _result; | |
6750 | wxPyShape * _arg0; | |
6751 | int _arg1; | |
6752 | PyObject * _argo0 = 0; | |
6753 | char *_kwnames[] = { "self","logicalAttachment", NULL }; | |
6754 | ||
6755 | self = self; | |
6756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyShape_LogicalToPhysicalAttachment",_kwnames,&_argo0,&_arg1)) | |
6757 | return NULL; | |
6758 | if (_argo0) { | |
6759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_LogicalToPhysicalAttachment. Expected _wxPyShape_p."); | |
6762 | return NULL; | |
6763 | } | |
6764 | } | |
6765 | { | |
6766 | wxPy_BEGIN_ALLOW_THREADS; | |
6767 | _result = (int )wxPyShape_LogicalToPhysicalAttachment(_arg0,_arg1); | |
6768 | ||
6769 | wxPy_END_ALLOW_THREADS; | |
6770 | } _resultobj = Py_BuildValue("i",_result); | |
6771 | return _resultobj; | |
6772 | } | |
6773 | ||
6774 | #define wxPyShape_Draggable(_swigobj) (_swigobj->Draggable()) | |
6775 | static PyObject *_wrap_wxPyShape_Draggable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject * _resultobj; | |
6777 | bool _result; | |
6778 | wxPyShape * _arg0; | |
6779 | PyObject * _argo0 = 0; | |
6780 | char *_kwnames[] = { "self", NULL }; | |
6781 | ||
6782 | self = self; | |
6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_Draggable",_kwnames,&_argo0)) | |
6784 | return NULL; | |
6785 | if (_argo0) { | |
6786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Draggable. Expected _wxPyShape_p."); | |
6789 | return NULL; | |
6790 | } | |
6791 | } | |
6792 | { | |
6793 | wxPy_BEGIN_ALLOW_THREADS; | |
6794 | _result = (bool )wxPyShape_Draggable(_arg0); | |
6795 | ||
6796 | wxPy_END_ALLOW_THREADS; | |
6797 | } _resultobj = Py_BuildValue("i",_result); | |
6798 | return _resultobj; | |
6799 | } | |
6800 | ||
6801 | #define wxPyShape_HasDescendant(_swigobj,_swigarg0) (_swigobj->HasDescendant(_swigarg0)) | |
6802 | static PyObject *_wrap_wxPyShape_HasDescendant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6803 | PyObject * _resultobj; | |
6804 | bool _result; | |
6805 | wxPyShape * _arg0; | |
6806 | wxPyShape * _arg1; | |
6807 | PyObject * _argo0 = 0; | |
6808 | PyObject * _argo1 = 0; | |
6809 | char *_kwnames[] = { "self","image", NULL }; | |
6810 | ||
6811 | self = self; | |
6812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_HasDescendant",_kwnames,&_argo0,&_argo1)) | |
6813 | return NULL; | |
6814 | if (_argo0) { | |
6815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_HasDescendant. Expected _wxPyShape_p."); | |
6818 | return NULL; | |
6819 | } | |
6820 | } | |
6821 | if (_argo1) { | |
6822 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6823 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) { | |
6824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_HasDescendant. Expected _wxPyShape_p."); | |
6825 | return NULL; | |
6826 | } | |
6827 | } | |
6828 | { | |
6829 | wxPy_BEGIN_ALLOW_THREADS; | |
6830 | _result = (bool )wxPyShape_HasDescendant(_arg0,_arg1); | |
6831 | ||
6832 | wxPy_END_ALLOW_THREADS; | |
6833 | } _resultobj = Py_BuildValue("i",_result); | |
6834 | return _resultobj; | |
6835 | } | |
6836 | ||
6837 | #define wxPyShape_CreateNewCopy(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateNewCopy(_swigarg0,_swigarg1)) | |
6838 | static PyObject *_wrap_wxPyShape_CreateNewCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6839 | PyObject * _resultobj; | |
6840 | wxPyShape * _result; | |
6841 | wxPyShape * _arg0; | |
6842 | bool _arg1 = (bool ) TRUE; | |
6843 | bool _arg2 = (bool ) TRUE; | |
6844 | PyObject * _argo0 = 0; | |
6845 | int tempbool1 = (int) TRUE; | |
6846 | int tempbool2 = (int) TRUE; | |
6847 | char *_kwnames[] = { "self","resetMapping","recompute", NULL }; | |
e91a9dfc RD |
6848 | |
6849 | self = self; | |
6850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyShape_CreateNewCopy",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
6851 | return NULL; | |
6852 | if (_argo0) { | |
6853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_CreateNewCopy. Expected _wxPyShape_p."); | |
6856 | return NULL; | |
6857 | } | |
6858 | } | |
6859 | _arg1 = (bool ) tempbool1; | |
6860 | _arg2 = (bool ) tempbool2; | |
6861 | { | |
6862 | wxPy_BEGIN_ALLOW_THREADS; | |
6863 | _result = (wxPyShape *)wxPyShape_CreateNewCopy(_arg0,_arg1,_arg2); | |
6864 | ||
6865 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 6866 | }{ _resultobj = wxPyMake_wxObject(_result); } |
e91a9dfc RD |
6867 | return _resultobj; |
6868 | } | |
6869 | ||
6870 | #define wxPyShape_Copy(_swigobj,_swigarg0) (_swigobj->Copy(_swigarg0)) | |
6871 | static PyObject *_wrap_wxPyShape_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6872 | PyObject * _resultobj; | |
6873 | wxPyShape * _arg0; | |
6874 | wxPyShape * _arg1; | |
6875 | PyObject * _argo0 = 0; | |
6876 | PyObject * _argo1 = 0; | |
6877 | char *_kwnames[] = { "self","copy", NULL }; | |
6878 | ||
6879 | self = self; | |
6880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_Copy",_kwnames,&_argo0,&_argo1)) | |
6881 | return NULL; | |
6882 | if (_argo0) { | |
6883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Copy. Expected _wxPyShape_p."); | |
6886 | return NULL; | |
6887 | } | |
6888 | } | |
6889 | if (_argo1) { | |
6890 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6891 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) { | |
6892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_Copy. Expected _wxPyShape_p."); | |
6893 | return NULL; | |
6894 | } | |
6895 | } | |
6896 | { | |
6897 | wxPy_BEGIN_ALLOW_THREADS; | |
6898 | wxPyShape_Copy(_arg0,*_arg1); | |
6899 | ||
6900 | wxPy_END_ALLOW_THREADS; | |
6901 | } Py_INCREF(Py_None); | |
6902 | _resultobj = Py_None; | |
6903 | return _resultobj; | |
6904 | } | |
6905 | ||
6906 | #define wxPyShape_CopyWithHandler(_swigobj,_swigarg0) (_swigobj->CopyWithHandler(_swigarg0)) | |
6907 | static PyObject *_wrap_wxPyShape_CopyWithHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6908 | PyObject * _resultobj; | |
6909 | wxPyShape * _arg0; | |
6910 | wxPyShape * _arg1; | |
6911 | PyObject * _argo0 = 0; | |
6912 | PyObject * _argo1 = 0; | |
6913 | char *_kwnames[] = { "self","copy", NULL }; | |
6914 | ||
6915 | self = self; | |
6916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_CopyWithHandler",_kwnames,&_argo0,&_argo1)) | |
6917 | return NULL; | |
6918 | if (_argo0) { | |
6919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_CopyWithHandler. Expected _wxPyShape_p."); | |
6922 | return NULL; | |
6923 | } | |
6924 | } | |
6925 | if (_argo1) { | |
6926 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6927 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyShape_p")) { | |
6928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_CopyWithHandler. Expected _wxPyShape_p."); | |
6929 | return NULL; | |
6930 | } | |
6931 | } | |
6932 | { | |
6933 | wxPy_BEGIN_ALLOW_THREADS; | |
6934 | wxPyShape_CopyWithHandler(_arg0,*_arg1); | |
6935 | ||
6936 | wxPy_END_ALLOW_THREADS; | |
6937 | } Py_INCREF(Py_None); | |
6938 | _resultobj = Py_None; | |
6939 | return _resultobj; | |
6940 | } | |
6941 | ||
6942 | #define wxPyShape_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2)) | |
6943 | static PyObject *_wrap_wxPyShape_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6944 | PyObject * _resultobj; | |
6945 | wxPyShape * _arg0; | |
6946 | double _arg1; | |
6947 | double _arg2; | |
6948 | double _arg3; | |
6949 | PyObject * _argo0 = 0; | |
6950 | char *_kwnames[] = { "self","x","y","theta", NULL }; | |
6951 | ||
6952 | self = self; | |
6953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oddd:wxPyShape_Rotate",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
6954 | return NULL; | |
6955 | if (_argo0) { | |
6956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Rotate. Expected _wxPyShape_p."); | |
6959 | return NULL; | |
6960 | } | |
6961 | } | |
6962 | { | |
6963 | wxPy_BEGIN_ALLOW_THREADS; | |
6964 | wxPyShape_Rotate(_arg0,_arg1,_arg2,_arg3); | |
6965 | ||
6966 | wxPy_END_ALLOW_THREADS; | |
6967 | } Py_INCREF(Py_None); | |
6968 | _resultobj = Py_None; | |
6969 | return _resultobj; | |
6970 | } | |
6971 | ||
6972 | #define wxPyShape_GetRotation(_swigobj) (_swigobj->GetRotation()) | |
6973 | static PyObject *_wrap_wxPyShape_GetRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6974 | PyObject * _resultobj; | |
6975 | double _result; | |
6976 | wxPyShape * _arg0; | |
6977 | PyObject * _argo0 = 0; | |
6978 | char *_kwnames[] = { "self", NULL }; | |
6979 | ||
6980 | self = self; | |
6981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_GetRotation",_kwnames,&_argo0)) | |
6982 | return NULL; | |
6983 | if (_argo0) { | |
6984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
6986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_GetRotation. Expected _wxPyShape_p."); | |
6987 | return NULL; | |
6988 | } | |
6989 | } | |
6990 | { | |
6991 | wxPy_BEGIN_ALLOW_THREADS; | |
6992 | _result = (double )wxPyShape_GetRotation(_arg0); | |
6993 | ||
6994 | wxPy_END_ALLOW_THREADS; | |
6995 | } _resultobj = Py_BuildValue("d",_result); | |
6996 | return _resultobj; | |
6997 | } | |
6998 | ||
6999 | #define wxPyShape_ClearAttachments(_swigobj) (_swigobj->ClearAttachments()) | |
7000 | static PyObject *_wrap_wxPyShape_ClearAttachments(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7001 | PyObject * _resultobj; | |
7002 | wxPyShape * _arg0; | |
7003 | PyObject * _argo0 = 0; | |
7004 | char *_kwnames[] = { "self", NULL }; | |
7005 | ||
7006 | self = self; | |
7007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_ClearAttachments",_kwnames,&_argo0)) | |
7008 | return NULL; | |
7009 | if (_argo0) { | |
7010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_ClearAttachments. Expected _wxPyShape_p."); | |
7013 | return NULL; | |
7014 | } | |
7015 | } | |
7016 | { | |
7017 | wxPy_BEGIN_ALLOW_THREADS; | |
7018 | wxPyShape_ClearAttachments(_arg0); | |
7019 | ||
7020 | wxPy_END_ALLOW_THREADS; | |
7021 | } Py_INCREF(Py_None); | |
7022 | _resultobj = Py_None; | |
7023 | return _resultobj; | |
7024 | } | |
7025 | ||
7026 | #define wxPyShape_Recentre(_swigobj,_swigarg0) (_swigobj->Recentre(_swigarg0)) | |
7027 | static PyObject *_wrap_wxPyShape_Recentre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7028 | PyObject * _resultobj; | |
7029 | wxPyShape * _arg0; | |
7030 | wxDC * _arg1; | |
7031 | PyObject * _argo0 = 0; | |
7032 | PyObject * _argo1 = 0; | |
7033 | char *_kwnames[] = { "self","dc", NULL }; | |
7034 | ||
7035 | self = self; | |
7036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_Recentre",_kwnames,&_argo0,&_argo1)) | |
7037 | return NULL; | |
7038 | if (_argo0) { | |
7039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_Recentre. Expected _wxPyShape_p."); | |
7042 | return NULL; | |
7043 | } | |
7044 | } | |
7045 | if (_argo1) { | |
7046 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7047 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_Recentre. Expected _wxDC_p."); | |
7049 | return NULL; | |
7050 | } | |
7051 | } | |
7052 | { | |
7053 | wxPy_BEGIN_ALLOW_THREADS; | |
7054 | wxPyShape_Recentre(_arg0,*_arg1); | |
7055 | ||
7056 | wxPy_END_ALLOW_THREADS; | |
7057 | } Py_INCREF(Py_None); | |
7058 | _resultobj = Py_None; | |
7059 | return _resultobj; | |
7060 | } | |
7061 | ||
7062 | #define wxPyShape_ClearPointList(_swigobj,_swigarg0) (_swigobj->ClearPointList(_swigarg0)) | |
7063 | static PyObject *_wrap_wxPyShape_ClearPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7064 | PyObject * _resultobj; | |
7065 | wxPyShape * _arg0; | |
7066 | wxList * _arg1; | |
7067 | PyObject * _argo0 = 0; | |
7068 | PyObject * _argo1 = 0; | |
7069 | char *_kwnames[] = { "self","list", NULL }; | |
7070 | ||
7071 | self = self; | |
7072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_ClearPointList",_kwnames,&_argo0,&_argo1)) | |
7073 | return NULL; | |
7074 | if (_argo0) { | |
7075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_ClearPointList. Expected _wxPyShape_p."); | |
7078 | return NULL; | |
7079 | } | |
7080 | } | |
7081 | if (_argo1) { | |
7082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxList_p")) { | |
7084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_ClearPointList. Expected _wxList_p."); | |
7085 | return NULL; | |
7086 | } | |
7087 | } | |
7088 | { | |
7089 | wxPy_BEGIN_ALLOW_THREADS; | |
7090 | wxPyShape_ClearPointList(_arg0,*_arg1); | |
7091 | ||
7092 | wxPy_END_ALLOW_THREADS; | |
7093 | } Py_INCREF(Py_None); | |
7094 | _resultobj = Py_None; | |
7095 | return _resultobj; | |
7096 | } | |
7097 | ||
7098 | #define wxPyShape_base_OnDelete(_swigobj) (_swigobj->base_OnDelete()) | |
7099 | static PyObject *_wrap_wxPyShape_base_OnDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7100 | PyObject * _resultobj; | |
7101 | wxPyShape * _arg0; | |
7102 | PyObject * _argo0 = 0; | |
7103 | char *_kwnames[] = { "self", NULL }; | |
7104 | ||
7105 | self = self; | |
7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyShape_base_OnDelete",_kwnames,&_argo0)) | |
7107 | return NULL; | |
7108 | if (_argo0) { | |
7109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnDelete. Expected _wxPyShape_p."); | |
7112 | return NULL; | |
7113 | } | |
7114 | } | |
7115 | { | |
7116 | wxPy_BEGIN_ALLOW_THREADS; | |
7117 | wxPyShape_base_OnDelete(_arg0); | |
7118 | ||
7119 | wxPy_END_ALLOW_THREADS; | |
7120 | } Py_INCREF(Py_None); | |
7121 | _resultobj = Py_None; | |
7122 | return _resultobj; | |
7123 | } | |
7124 | ||
7125 | #define wxPyShape_base_OnDraw(_swigobj,_swigarg0) (_swigobj->base_OnDraw(_swigarg0)) | |
7126 | static PyObject *_wrap_wxPyShape_base_OnDraw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject * _resultobj; | |
7128 | wxPyShape * _arg0; | |
7129 | wxDC * _arg1; | |
7130 | PyObject * _argo0 = 0; | |
7131 | PyObject * _argo1 = 0; | |
7132 | char *_kwnames[] = { "self","dc", NULL }; | |
7133 | ||
7134 | self = self; | |
7135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_base_OnDraw",_kwnames,&_argo0,&_argo1)) | |
7136 | return NULL; | |
7137 | if (_argo0) { | |
7138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnDraw. Expected _wxPyShape_p."); | |
7141 | return NULL; | |
7142 | } | |
7143 | } | |
7144 | if (_argo1) { | |
7145 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7146 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnDraw. Expected _wxDC_p."); | |
7148 | return NULL; | |
7149 | } | |
7150 | } | |
7151 | { | |
7152 | wxPy_BEGIN_ALLOW_THREADS; | |
7153 | wxPyShape_base_OnDraw(_arg0,*_arg1); | |
7154 | ||
7155 | wxPy_END_ALLOW_THREADS; | |
7156 | } Py_INCREF(Py_None); | |
7157 | _resultobj = Py_None; | |
7158 | return _resultobj; | |
7159 | } | |
7160 | ||
7161 | #define wxPyShape_base_OnDrawContents(_swigobj,_swigarg0) (_swigobj->base_OnDrawContents(_swigarg0)) | |
7162 | static PyObject *_wrap_wxPyShape_base_OnDrawContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7163 | PyObject * _resultobj; | |
7164 | wxPyShape * _arg0; | |
7165 | wxDC * _arg1; | |
7166 | PyObject * _argo0 = 0; | |
7167 | PyObject * _argo1 = 0; | |
7168 | char *_kwnames[] = { "self","dc", NULL }; | |
7169 | ||
7170 | self = self; | |
7171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_base_OnDrawContents",_kwnames,&_argo0,&_argo1)) | |
7172 | return NULL; | |
7173 | if (_argo0) { | |
7174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnDrawContents. Expected _wxPyShape_p."); | |
7177 | return NULL; | |
7178 | } | |
7179 | } | |
7180 | if (_argo1) { | |
7181 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7182 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnDrawContents. Expected _wxDC_p."); | |
7184 | return NULL; | |
7185 | } | |
7186 | } | |
7187 | { | |
7188 | wxPy_BEGIN_ALLOW_THREADS; | |
7189 | wxPyShape_base_OnDrawContents(_arg0,*_arg1); | |
7190 | ||
7191 | wxPy_END_ALLOW_THREADS; | |
7192 | } Py_INCREF(Py_None); | |
7193 | _resultobj = Py_None; | |
7194 | return _resultobj; | |
7195 | } | |
7196 | ||
7197 | #define wxPyShape_base_OnDrawBranches(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrawBranches(_swigarg0,_swigarg1)) | |
7198 | static PyObject *_wrap_wxPyShape_base_OnDrawBranches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7199 | PyObject * _resultobj; | |
7200 | wxPyShape * _arg0; | |
7201 | wxDC * _arg1; | |
7202 | bool _arg2 = (bool ) FALSE; | |
7203 | PyObject * _argo0 = 0; | |
7204 | PyObject * _argo1 = 0; | |
7205 | int tempbool2 = (int) FALSE; | |
7206 | char *_kwnames[] = { "self","dc","erase", NULL }; | |
7207 | ||
7208 | self = self; | |
7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyShape_base_OnDrawBranches",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
7210 | return NULL; | |
7211 | if (_argo0) { | |
7212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnDrawBranches. Expected _wxPyShape_p."); | |
7215 | return NULL; | |
7216 | } | |
7217 | } | |
7218 | if (_argo1) { | |
7219 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7220 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnDrawBranches. Expected _wxDC_p."); | |
7222 | return NULL; | |
7223 | } | |
7224 | } | |
7225 | _arg2 = (bool ) tempbool2; | |
7226 | { | |
7227 | wxPy_BEGIN_ALLOW_THREADS; | |
7228 | wxPyShape_base_OnDrawBranches(_arg0,*_arg1,_arg2); | |
7229 | ||
7230 | wxPy_END_ALLOW_THREADS; | |
7231 | } Py_INCREF(Py_None); | |
7232 | _resultobj = Py_None; | |
7233 | return _resultobj; | |
7234 | } | |
7235 | ||
7236 | #define wxPyShape_base_OnMoveLinks(_swigobj,_swigarg0) (_swigobj->base_OnMoveLinks(_swigarg0)) | |
7237 | static PyObject *_wrap_wxPyShape_base_OnMoveLinks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7238 | PyObject * _resultobj; | |
7239 | wxPyShape * _arg0; | |
7240 | wxDC * _arg1; | |
7241 | PyObject * _argo0 = 0; | |
7242 | PyObject * _argo1 = 0; | |
7243 | char *_kwnames[] = { "self","dc", NULL }; | |
7244 | ||
7245 | self = self; | |
7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_base_OnMoveLinks",_kwnames,&_argo0,&_argo1)) | |
7247 | return NULL; | |
7248 | if (_argo0) { | |
7249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnMoveLinks. Expected _wxPyShape_p."); | |
7252 | return NULL; | |
7253 | } | |
7254 | } | |
7255 | if (_argo1) { | |
7256 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7257 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnMoveLinks. Expected _wxDC_p."); | |
7259 | return NULL; | |
7260 | } | |
7261 | } | |
7262 | { | |
7263 | wxPy_BEGIN_ALLOW_THREADS; | |
7264 | wxPyShape_base_OnMoveLinks(_arg0,*_arg1); | |
7265 | ||
7266 | wxPy_END_ALLOW_THREADS; | |
7267 | } Py_INCREF(Py_None); | |
7268 | _resultobj = Py_None; | |
7269 | return _resultobj; | |
7270 | } | |
7271 | ||
7272 | #define wxPyShape_base_OnErase(_swigobj,_swigarg0) (_swigobj->base_OnErase(_swigarg0)) | |
7273 | static PyObject *_wrap_wxPyShape_base_OnErase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7274 | PyObject * _resultobj; | |
7275 | wxPyShape * _arg0; | |
7276 | wxDC * _arg1; | |
7277 | PyObject * _argo0 = 0; | |
7278 | PyObject * _argo1 = 0; | |
7279 | char *_kwnames[] = { "self","dc", NULL }; | |
7280 | ||
7281 | self = self; | |
7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_base_OnErase",_kwnames,&_argo0,&_argo1)) | |
7283 | return NULL; | |
7284 | if (_argo0) { | |
7285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnErase. Expected _wxPyShape_p."); | |
7288 | return NULL; | |
7289 | } | |
7290 | } | |
7291 | if (_argo1) { | |
7292 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7293 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnErase. Expected _wxDC_p."); | |
7295 | return NULL; | |
7296 | } | |
7297 | } | |
7298 | { | |
7299 | wxPy_BEGIN_ALLOW_THREADS; | |
7300 | wxPyShape_base_OnErase(_arg0,*_arg1); | |
7301 | ||
7302 | wxPy_END_ALLOW_THREADS; | |
7303 | } Py_INCREF(Py_None); | |
7304 | _resultobj = Py_None; | |
7305 | return _resultobj; | |
7306 | } | |
7307 | ||
7308 | #define wxPyShape_base_OnEraseContents(_swigobj,_swigarg0) (_swigobj->base_OnEraseContents(_swigarg0)) | |
7309 | static PyObject *_wrap_wxPyShape_base_OnEraseContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7310 | PyObject * _resultobj; | |
7311 | wxPyShape * _arg0; | |
7312 | wxDC * _arg1; | |
7313 | PyObject * _argo0 = 0; | |
7314 | PyObject * _argo1 = 0; | |
7315 | char *_kwnames[] = { "self","dc", NULL }; | |
7316 | ||
7317 | self = self; | |
7318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_base_OnEraseContents",_kwnames,&_argo0,&_argo1)) | |
7319 | return NULL; | |
7320 | if (_argo0) { | |
7321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnEraseContents. Expected _wxPyShape_p."); | |
7324 | return NULL; | |
7325 | } | |
7326 | } | |
7327 | if (_argo1) { | |
7328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnEraseContents. Expected _wxDC_p."); | |
7331 | return NULL; | |
7332 | } | |
7333 | } | |
7334 | { | |
7335 | wxPy_BEGIN_ALLOW_THREADS; | |
7336 | wxPyShape_base_OnEraseContents(_arg0,*_arg1); | |
7337 | ||
7338 | wxPy_END_ALLOW_THREADS; | |
7339 | } Py_INCREF(Py_None); | |
7340 | _resultobj = Py_None; | |
7341 | return _resultobj; | |
7342 | } | |
7343 | ||
7344 | #define wxPyShape_base_OnHighlight(_swigobj,_swigarg0) (_swigobj->base_OnHighlight(_swigarg0)) | |
7345 | static PyObject *_wrap_wxPyShape_base_OnHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7346 | PyObject * _resultobj; | |
7347 | wxPyShape * _arg0; | |
7348 | wxDC * _arg1; | |
7349 | PyObject * _argo0 = 0; | |
7350 | PyObject * _argo1 = 0; | |
7351 | char *_kwnames[] = { "self","dc", NULL }; | |
7352 | ||
7353 | self = self; | |
7354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_base_OnHighlight",_kwnames,&_argo0,&_argo1)) | |
7355 | return NULL; | |
7356 | if (_argo0) { | |
7357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnHighlight. Expected _wxPyShape_p."); | |
7360 | return NULL; | |
7361 | } | |
7362 | } | |
7363 | if (_argo1) { | |
7364 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7365 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnHighlight. Expected _wxDC_p."); | |
7367 | return NULL; | |
7368 | } | |
7369 | } | |
7370 | { | |
7371 | wxPy_BEGIN_ALLOW_THREADS; | |
7372 | wxPyShape_base_OnHighlight(_arg0,*_arg1); | |
7373 | ||
7374 | wxPy_END_ALLOW_THREADS; | |
7375 | } Py_INCREF(Py_None); | |
7376 | _resultobj = Py_None; | |
7377 | return _resultobj; | |
7378 | } | |
7379 | ||
7380 | #define wxPyShape_base_OnLeftClick(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnLeftClick(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7381 | static PyObject *_wrap_wxPyShape_base_OnLeftClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7382 | PyObject * _resultobj; | |
7383 | wxPyShape * _arg0; | |
7384 | double _arg1; | |
7385 | double _arg2; | |
7386 | int _arg3 = (int ) 0; | |
7387 | int _arg4 = (int ) 0; | |
7388 | PyObject * _argo0 = 0; | |
7389 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
7390 | ||
7391 | self = self; | |
7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShape_base_OnLeftClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7393 | return NULL; | |
7394 | if (_argo0) { | |
7395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnLeftClick. Expected _wxPyShape_p."); | |
7398 | return NULL; | |
7399 | } | |
7400 | } | |
7401 | { | |
7402 | wxPy_BEGIN_ALLOW_THREADS; | |
7403 | wxPyShape_base_OnLeftClick(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7404 | ||
7405 | wxPy_END_ALLOW_THREADS; | |
7406 | } Py_INCREF(Py_None); | |
7407 | _resultobj = Py_None; | |
7408 | return _resultobj; | |
7409 | } | |
7410 | ||
7411 | #define wxPyShape_base_OnLeftDoubleClick(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnLeftDoubleClick(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7412 | static PyObject *_wrap_wxPyShape_base_OnLeftDoubleClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject * _resultobj; | |
7414 | wxPyShape * _arg0; | |
7415 | double _arg1; | |
7416 | double _arg2; | |
7417 | int _arg3 = (int ) 0; | |
7418 | int _arg4 = (int ) 0; | |
7419 | PyObject * _argo0 = 0; | |
7420 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
7421 | ||
7422 | self = self; | |
7423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShape_base_OnLeftDoubleClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7424 | return NULL; | |
7425 | if (_argo0) { | |
7426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnLeftDoubleClick. Expected _wxPyShape_p."); | |
7429 | return NULL; | |
7430 | } | |
7431 | } | |
7432 | { | |
7433 | wxPy_BEGIN_ALLOW_THREADS; | |
7434 | wxPyShape_base_OnLeftDoubleClick(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7435 | ||
7436 | wxPy_END_ALLOW_THREADS; | |
7437 | } Py_INCREF(Py_None); | |
7438 | _resultobj = Py_None; | |
7439 | return _resultobj; | |
7440 | } | |
7441 | ||
7442 | #define wxPyShape_base_OnRightClick(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnRightClick(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7443 | static PyObject *_wrap_wxPyShape_base_OnRightClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7444 | PyObject * _resultobj; | |
7445 | wxPyShape * _arg0; | |
7446 | double _arg1; | |
7447 | double _arg2; | |
7448 | int _arg3 = (int ) 0; | |
7449 | int _arg4 = (int ) 0; | |
7450 | PyObject * _argo0 = 0; | |
7451 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
7452 | ||
7453 | self = self; | |
7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShape_base_OnRightClick",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7455 | return NULL; | |
7456 | if (_argo0) { | |
7457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnRightClick. Expected _wxPyShape_p."); | |
7460 | return NULL; | |
7461 | } | |
7462 | } | |
7463 | { | |
7464 | wxPy_BEGIN_ALLOW_THREADS; | |
7465 | wxPyShape_base_OnRightClick(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7466 | ||
7467 | wxPy_END_ALLOW_THREADS; | |
7468 | } Py_INCREF(Py_None); | |
7469 | _resultobj = Py_None; | |
7470 | return _resultobj; | |
7471 | } | |
7472 | ||
7473 | #define wxPyShape_base_OnSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnSize(_swigarg0,_swigarg1)) | |
7474 | static PyObject *_wrap_wxPyShape_base_OnSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7475 | PyObject * _resultobj; | |
7476 | wxPyShape * _arg0; | |
7477 | double _arg1; | |
7478 | double _arg2; | |
7479 | PyObject * _argo0 = 0; | |
7480 | char *_kwnames[] = { "self","x","y", NULL }; | |
7481 | ||
7482 | self = self; | |
7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPyShape_base_OnSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7484 | return NULL; | |
7485 | if (_argo0) { | |
7486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnSize. Expected _wxPyShape_p."); | |
7489 | return NULL; | |
7490 | } | |
7491 | } | |
7492 | { | |
7493 | wxPy_BEGIN_ALLOW_THREADS; | |
7494 | wxPyShape_base_OnSize(_arg0,_arg1,_arg2); | |
7495 | ||
7496 | wxPy_END_ALLOW_THREADS; | |
7497 | } Py_INCREF(Py_None); | |
7498 | _resultobj = Py_None; | |
7499 | return _resultobj; | |
7500 | } | |
7501 | ||
7502 | #define wxPyShape_base_OnMovePre(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->base_OnMovePre(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7503 | static PyObject *_wrap_wxPyShape_base_OnMovePre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7504 | PyObject * _resultobj; | |
7505 | bool _result; | |
7506 | wxPyShape * _arg0; | |
7507 | wxDC * _arg1; | |
7508 | double _arg2; | |
7509 | double _arg3; | |
7510 | double _arg4; | |
7511 | double _arg5; | |
7512 | bool _arg6 = (bool ) TRUE; | |
7513 | PyObject * _argo0 = 0; | |
7514 | PyObject * _argo1 = 0; | |
7515 | int tempbool6 = (int) TRUE; | |
7516 | char *_kwnames[] = { "self","dc","x","y","old_x","old_y","display", NULL }; | |
7517 | ||
7518 | self = self; | |
7519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdddd|i:wxPyShape_base_OnMovePre",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
7520 | return NULL; | |
7521 | if (_argo0) { | |
7522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnMovePre. Expected _wxPyShape_p."); | |
7525 | return NULL; | |
7526 | } | |
7527 | } | |
7528 | if (_argo1) { | |
7529 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7530 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnMovePre. Expected _wxDC_p."); | |
7532 | return NULL; | |
7533 | } | |
7534 | } | |
7535 | _arg6 = (bool ) tempbool6; | |
7536 | { | |
7537 | wxPy_BEGIN_ALLOW_THREADS; | |
7538 | _result = (bool )wxPyShape_base_OnMovePre(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
7539 | ||
7540 | wxPy_END_ALLOW_THREADS; | |
7541 | } _resultobj = Py_BuildValue("i",_result); | |
7542 | return _resultobj; | |
7543 | } | |
7544 | ||
7545 | #define wxPyShape_base_OnMovePost(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->base_OnMovePost(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7546 | static PyObject *_wrap_wxPyShape_base_OnMovePost(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7547 | PyObject * _resultobj; | |
7548 | wxPyShape * _arg0; | |
7549 | wxDC * _arg1; | |
7550 | double _arg2; | |
7551 | double _arg3; | |
7552 | double _arg4; | |
7553 | double _arg5; | |
7554 | bool _arg6 = (bool ) TRUE; | |
7555 | PyObject * _argo0 = 0; | |
7556 | PyObject * _argo1 = 0; | |
7557 | int tempbool6 = (int) TRUE; | |
7558 | char *_kwnames[] = { "self","dc","x","y","old_x","old_y","display", NULL }; | |
7559 | ||
7560 | self = self; | |
7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdddd|i:wxPyShape_base_OnMovePost",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
7562 | return NULL; | |
7563 | if (_argo0) { | |
7564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnMovePost. Expected _wxPyShape_p."); | |
7567 | return NULL; | |
7568 | } | |
7569 | } | |
7570 | if (_argo1) { | |
7571 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7572 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnMovePost. Expected _wxDC_p."); | |
7574 | return NULL; | |
7575 | } | |
7576 | } | |
7577 | _arg6 = (bool ) tempbool6; | |
7578 | { | |
7579 | wxPy_BEGIN_ALLOW_THREADS; | |
7580 | wxPyShape_base_OnMovePost(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
7581 | ||
7582 | wxPy_END_ALLOW_THREADS; | |
7583 | } Py_INCREF(Py_None); | |
7584 | _resultobj = Py_None; | |
7585 | return _resultobj; | |
7586 | } | |
7587 | ||
7588 | #define wxPyShape_base_OnDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7589 | static PyObject *_wrap_wxPyShape_base_OnDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7590 | PyObject * _resultobj; | |
7591 | wxPyShape * _arg0; | |
7592 | bool _arg1; | |
7593 | double _arg2; | |
7594 | double _arg3; | |
7595 | int _arg4 = (int ) 0; | |
7596 | int _arg5 = (int ) 0; | |
7597 | PyObject * _argo0 = 0; | |
7598 | int tempbool1; | |
7599 | char *_kwnames[] = { "self","draw","x","y","keys","attachment", NULL }; | |
7600 | ||
7601 | self = self; | |
7602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|ii:wxPyShape_base_OnDragLeft",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
7603 | return NULL; | |
7604 | if (_argo0) { | |
7605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnDragLeft. Expected _wxPyShape_p."); | |
7608 | return NULL; | |
7609 | } | |
7610 | } | |
7611 | _arg1 = (bool ) tempbool1; | |
7612 | { | |
7613 | wxPy_BEGIN_ALLOW_THREADS; | |
7614 | wxPyShape_base_OnDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
7615 | ||
7616 | wxPy_END_ALLOW_THREADS; | |
7617 | } Py_INCREF(Py_None); | |
7618 | _resultobj = Py_None; | |
7619 | return _resultobj; | |
7620 | } | |
7621 | ||
7622 | #define wxPyShape_base_OnBeginDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnBeginDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7623 | static PyObject *_wrap_wxPyShape_base_OnBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7624 | PyObject * _resultobj; | |
7625 | wxPyShape * _arg0; | |
7626 | double _arg1; | |
7627 | double _arg2; | |
7628 | int _arg3 = (int ) 0; | |
7629 | int _arg4 = (int ) 0; | |
7630 | PyObject * _argo0 = 0; | |
7631 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
7632 | ||
7633 | self = self; | |
7634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShape_base_OnBeginDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7635 | return NULL; | |
7636 | if (_argo0) { | |
7637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnBeginDragLeft. Expected _wxPyShape_p."); | |
7640 | return NULL; | |
7641 | } | |
7642 | } | |
7643 | { | |
7644 | wxPy_BEGIN_ALLOW_THREADS; | |
7645 | wxPyShape_base_OnBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7646 | ||
7647 | wxPy_END_ALLOW_THREADS; | |
7648 | } Py_INCREF(Py_None); | |
7649 | _resultobj = Py_None; | |
7650 | return _resultobj; | |
7651 | } | |
7652 | ||
7653 | #define wxPyShape_base_OnEndDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnEndDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7654 | static PyObject *_wrap_wxPyShape_base_OnEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject * _resultobj; | |
7656 | wxPyShape * _arg0; | |
7657 | double _arg1; | |
7658 | double _arg2; | |
7659 | int _arg3 = (int ) 0; | |
7660 | int _arg4 = (int ) 0; | |
7661 | PyObject * _argo0 = 0; | |
7662 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
7663 | ||
7664 | self = self; | |
7665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShape_base_OnEndDragLeft",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7666 | return NULL; | |
7667 | if (_argo0) { | |
7668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnEndDragLeft. Expected _wxPyShape_p."); | |
7671 | return NULL; | |
7672 | } | |
7673 | } | |
7674 | { | |
7675 | wxPy_BEGIN_ALLOW_THREADS; | |
7676 | wxPyShape_base_OnEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7677 | ||
7678 | wxPy_END_ALLOW_THREADS; | |
7679 | } Py_INCREF(Py_None); | |
7680 | _resultobj = Py_None; | |
7681 | return _resultobj; | |
7682 | } | |
7683 | ||
7684 | #define wxPyShape_base_OnDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7685 | static PyObject *_wrap_wxPyShape_base_OnDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7686 | PyObject * _resultobj; | |
7687 | wxPyShape * _arg0; | |
7688 | bool _arg1; | |
7689 | double _arg2; | |
7690 | double _arg3; | |
7691 | int _arg4 = (int ) 0; | |
7692 | int _arg5 = (int ) 0; | |
7693 | PyObject * _argo0 = 0; | |
7694 | int tempbool1; | |
7695 | char *_kwnames[] = { "self","draw","x","y","keys","attachment", NULL }; | |
7696 | ||
7697 | self = self; | |
7698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oidd|ii:wxPyShape_base_OnDragRight",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
7699 | return NULL; | |
7700 | if (_argo0) { | |
7701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnDragRight. Expected _wxPyShape_p."); | |
7704 | return NULL; | |
7705 | } | |
7706 | } | |
7707 | _arg1 = (bool ) tempbool1; | |
7708 | { | |
7709 | wxPy_BEGIN_ALLOW_THREADS; | |
7710 | wxPyShape_base_OnDragRight(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
7711 | ||
7712 | wxPy_END_ALLOW_THREADS; | |
7713 | } Py_INCREF(Py_None); | |
7714 | _resultobj = Py_None; | |
7715 | return _resultobj; | |
7716 | } | |
7717 | ||
7718 | #define wxPyShape_base_OnBeginDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnBeginDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7719 | static PyObject *_wrap_wxPyShape_base_OnBeginDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7720 | PyObject * _resultobj; | |
7721 | wxPyShape * _arg0; | |
7722 | double _arg1; | |
7723 | double _arg2; | |
7724 | int _arg3 = (int ) 0; | |
7725 | int _arg4 = (int ) 0; | |
7726 | PyObject * _argo0 = 0; | |
7727 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
7728 | ||
7729 | self = self; | |
7730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShape_base_OnBeginDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7731 | return NULL; | |
7732 | if (_argo0) { | |
7733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnBeginDragRight. Expected _wxPyShape_p."); | |
7736 | return NULL; | |
7737 | } | |
7738 | } | |
7739 | { | |
7740 | wxPy_BEGIN_ALLOW_THREADS; | |
7741 | wxPyShape_base_OnBeginDragRight(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7742 | ||
7743 | wxPy_END_ALLOW_THREADS; | |
7744 | } Py_INCREF(Py_None); | |
7745 | _resultobj = Py_None; | |
7746 | return _resultobj; | |
7747 | } | |
7748 | ||
7749 | #define wxPyShape_base_OnEndDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnEndDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7750 | static PyObject *_wrap_wxPyShape_base_OnEndDragRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7751 | PyObject * _resultobj; | |
7752 | wxPyShape * _arg0; | |
7753 | double _arg1; | |
7754 | double _arg2; | |
7755 | int _arg3 = (int ) 0; | |
7756 | int _arg4 = (int ) 0; | |
7757 | PyObject * _argo0 = 0; | |
7758 | char *_kwnames[] = { "self","x","y","keys","attachment", NULL }; | |
7759 | ||
7760 | self = self; | |
7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd|ii:wxPyShape_base_OnEndDragRight",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7762 | return NULL; | |
7763 | if (_argo0) { | |
7764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnEndDragRight. Expected _wxPyShape_p."); | |
7767 | return NULL; | |
7768 | } | |
7769 | } | |
7770 | { | |
7771 | wxPy_BEGIN_ALLOW_THREADS; | |
7772 | wxPyShape_base_OnEndDragRight(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7773 | ||
7774 | wxPy_END_ALLOW_THREADS; | |
7775 | } Py_INCREF(Py_None); | |
7776 | _resultobj = Py_None; | |
7777 | return _resultobj; | |
7778 | } | |
7779 | ||
7780 | #define wxPyShape_base_OnDrawOutline(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnDrawOutline(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7781 | static PyObject *_wrap_wxPyShape_base_OnDrawOutline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7782 | PyObject * _resultobj; | |
7783 | wxPyShape * _arg0; | |
7784 | wxDC * _arg1; | |
7785 | double _arg2; | |
7786 | double _arg3; | |
7787 | double _arg4; | |
7788 | double _arg5; | |
7789 | PyObject * _argo0 = 0; | |
7790 | PyObject * _argo1 = 0; | |
7791 | char *_kwnames[] = { "self","dc","x","y","w","h", NULL }; | |
7792 | ||
7793 | self = self; | |
7794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdddd:wxPyShape_base_OnDrawOutline",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
7795 | return NULL; | |
7796 | if (_argo0) { | |
7797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnDrawOutline. Expected _wxPyShape_p."); | |
7800 | return NULL; | |
7801 | } | |
7802 | } | |
7803 | if (_argo1) { | |
7804 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7805 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnDrawOutline. Expected _wxDC_p."); | |
7807 | return NULL; | |
7808 | } | |
7809 | } | |
7810 | { | |
7811 | wxPy_BEGIN_ALLOW_THREADS; | |
7812 | wxPyShape_base_OnDrawOutline(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
7813 | ||
7814 | wxPy_END_ALLOW_THREADS; | |
7815 | } Py_INCREF(Py_None); | |
7816 | _resultobj = Py_None; | |
7817 | return _resultobj; | |
7818 | } | |
7819 | ||
7820 | #define wxPyShape_base_OnDrawControlPoints(_swigobj,_swigarg0) (_swigobj->base_OnDrawControlPoints(_swigarg0)) | |
7821 | static PyObject *_wrap_wxPyShape_base_OnDrawControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7822 | PyObject * _resultobj; | |
7823 | wxPyShape * _arg0; | |
7824 | wxDC * _arg1; | |
7825 | PyObject * _argo0 = 0; | |
7826 | PyObject * _argo1 = 0; | |
7827 | char *_kwnames[] = { "self","dc", NULL }; | |
7828 | ||
7829 | self = self; | |
7830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_base_OnDrawControlPoints",_kwnames,&_argo0,&_argo1)) | |
7831 | return NULL; | |
7832 | if (_argo0) { | |
7833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnDrawControlPoints. Expected _wxPyShape_p."); | |
7836 | return NULL; | |
7837 | } | |
7838 | } | |
7839 | if (_argo1) { | |
7840 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7841 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnDrawControlPoints. Expected _wxDC_p."); | |
7843 | return NULL; | |
7844 | } | |
7845 | } | |
7846 | { | |
7847 | wxPy_BEGIN_ALLOW_THREADS; | |
7848 | wxPyShape_base_OnDrawControlPoints(_arg0,*_arg1); | |
7849 | ||
7850 | wxPy_END_ALLOW_THREADS; | |
7851 | } Py_INCREF(Py_None); | |
7852 | _resultobj = Py_None; | |
7853 | return _resultobj; | |
7854 | } | |
7855 | ||
7856 | #define wxPyShape_base_OnEraseControlPoints(_swigobj,_swigarg0) (_swigobj->base_OnEraseControlPoints(_swigarg0)) | |
7857 | static PyObject *_wrap_wxPyShape_base_OnEraseControlPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7858 | PyObject * _resultobj; | |
7859 | wxPyShape * _arg0; | |
7860 | wxDC * _arg1; | |
7861 | PyObject * _argo0 = 0; | |
7862 | PyObject * _argo1 = 0; | |
7863 | char *_kwnames[] = { "self","dc", NULL }; | |
7864 | ||
7865 | self = self; | |
7866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyShape_base_OnEraseControlPoints",_kwnames,&_argo0,&_argo1)) | |
7867 | return NULL; | |
7868 | if (_argo0) { | |
7869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnEraseControlPoints. Expected _wxPyShape_p."); | |
7872 | return NULL; | |
7873 | } | |
7874 | } | |
7875 | if (_argo1) { | |
7876 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7877 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnEraseControlPoints. Expected _wxDC_p."); | |
7879 | return NULL; | |
7880 | } | |
7881 | } | |
7882 | { | |
7883 | wxPy_BEGIN_ALLOW_THREADS; | |
7884 | wxPyShape_base_OnEraseControlPoints(_arg0,*_arg1); | |
7885 | ||
7886 | wxPy_END_ALLOW_THREADS; | |
7887 | } Py_INCREF(Py_None); | |
7888 | _resultobj = Py_None; | |
7889 | return _resultobj; | |
7890 | } | |
7891 | ||
7892 | #define wxPyShape_base_OnMoveLink(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnMoveLink(_swigarg0,_swigarg1)) | |
7893 | static PyObject *_wrap_wxPyShape_base_OnMoveLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7894 | PyObject * _resultobj; | |
7895 | wxPyShape * _arg0; | |
7896 | wxDC * _arg1; | |
7897 | bool _arg2 = (bool ) TRUE; | |
7898 | PyObject * _argo0 = 0; | |
7899 | PyObject * _argo1 = 0; | |
7900 | int tempbool2 = (int) TRUE; | |
7901 | char *_kwnames[] = { "self","dc","moveControlPoints", NULL }; | |
7902 | ||
7903 | self = self; | |
7904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyShape_base_OnMoveLink",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
7905 | return NULL; | |
7906 | if (_argo0) { | |
7907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnMoveLink. Expected _wxPyShape_p."); | |
7910 | return NULL; | |
7911 | } | |
7912 | } | |
7913 | if (_argo1) { | |
7914 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7915 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
7916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnMoveLink. Expected _wxDC_p."); | |
7917 | return NULL; | |
7918 | } | |
7919 | } | |
7920 | _arg2 = (bool ) tempbool2; | |
7921 | { | |
7922 | wxPy_BEGIN_ALLOW_THREADS; | |
7923 | wxPyShape_base_OnMoveLink(_arg0,*_arg1,_arg2); | |
7924 | ||
7925 | wxPy_END_ALLOW_THREADS; | |
7926 | } Py_INCREF(Py_None); | |
7927 | _resultobj = Py_None; | |
7928 | return _resultobj; | |
7929 | } | |
7930 | ||
7931 | #define wxPyShape_base_OnSizingDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->base_OnSizingDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7932 | static PyObject *_wrap_wxPyShape_base_OnSizingDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7933 | PyObject * _resultobj; | |
7934 | wxPyShape * _arg0; | |
2348eaee | 7935 | wxPyControlPoint * _arg1; |
e91a9dfc RD |
7936 | bool _arg2; |
7937 | double _arg3; | |
7938 | double _arg4; | |
7939 | int _arg5 = (int ) 0; | |
7940 | int _arg6 = (int ) 0; | |
7941 | PyObject * _argo0 = 0; | |
7942 | PyObject * _argo1 = 0; | |
7943 | int tempbool2; | |
7944 | char *_kwnames[] = { "self","pt","draw","x","y","keys","attachment", NULL }; | |
7945 | ||
7946 | self = self; | |
7947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOidd|ii:wxPyShape_base_OnSizingDragLeft",_kwnames,&_argo0,&_argo1,&tempbool2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
7948 | return NULL; | |
7949 | if (_argo0) { | |
7950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnSizingDragLeft. Expected _wxPyShape_p."); | |
7953 | return NULL; | |
7954 | } | |
7955 | } | |
7956 | if (_argo1) { | |
7957 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2348eaee RD |
7958 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyControlPoint_p")) { |
7959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnSizingDragLeft. Expected _wxPyControlPoint_p."); | |
e91a9dfc RD |
7960 | return NULL; |
7961 | } | |
7962 | } | |
7963 | _arg2 = (bool ) tempbool2; | |
7964 | { | |
7965 | wxPy_BEGIN_ALLOW_THREADS; | |
7966 | wxPyShape_base_OnSizingDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
7967 | ||
7968 | wxPy_END_ALLOW_THREADS; | |
7969 | } Py_INCREF(Py_None); | |
7970 | _resultobj = Py_None; | |
7971 | return _resultobj; | |
7972 | } | |
7973 | ||
7974 | #define wxPyShape_base_OnSizingBeginDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnSizingBeginDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7975 | static PyObject *_wrap_wxPyShape_base_OnSizingBeginDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7976 | PyObject * _resultobj; | |
7977 | wxPyShape * _arg0; | |
2348eaee | 7978 | wxPyControlPoint * _arg1; |
e91a9dfc RD |
7979 | double _arg2; |
7980 | double _arg3; | |
7981 | int _arg4 = (int ) 0; | |
7982 | int _arg5 = (int ) 0; | |
7983 | PyObject * _argo0 = 0; | |
7984 | PyObject * _argo1 = 0; | |
7985 | char *_kwnames[] = { "self","pt","x","y","keys","attachment", NULL }; | |
7986 | ||
7987 | self = self; | |
7988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdd|ii:wxPyShape_base_OnSizingBeginDragLeft",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
7989 | return NULL; | |
7990 | if (_argo0) { | |
7991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
7993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnSizingBeginDragLeft. Expected _wxPyShape_p."); | |
7994 | return NULL; | |
7995 | } | |
7996 | } | |
7997 | if (_argo1) { | |
7998 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2348eaee RD |
7999 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyControlPoint_p")) { |
8000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnSizingBeginDragLeft. Expected _wxPyControlPoint_p."); | |
e91a9dfc RD |
8001 | return NULL; |
8002 | } | |
8003 | } | |
8004 | { | |
8005 | wxPy_BEGIN_ALLOW_THREADS; | |
8006 | wxPyShape_base_OnSizingBeginDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
8007 | ||
8008 | wxPy_END_ALLOW_THREADS; | |
8009 | } Py_INCREF(Py_None); | |
8010 | _resultobj = Py_None; | |
8011 | return _resultobj; | |
8012 | } | |
8013 | ||
8014 | #define wxPyShape_base_OnSizingEndDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->base_OnSizingEndDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8015 | static PyObject *_wrap_wxPyShape_base_OnSizingEndDragLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8016 | PyObject * _resultobj; | |
8017 | wxPyShape * _arg0; | |
2348eaee | 8018 | wxPyControlPoint * _arg1; |
e91a9dfc RD |
8019 | double _arg2; |
8020 | double _arg3; | |
8021 | int _arg4 = (int ) 0; | |
8022 | int _arg5 = (int ) 0; | |
8023 | PyObject * _argo0 = 0; | |
8024 | PyObject * _argo1 = 0; | |
8025 | char *_kwnames[] = { "self","pt","x","y","keys","attachment", NULL }; | |
8026 | ||
8027 | self = self; | |
8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOdd|ii:wxPyShape_base_OnSizingEndDragLeft",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
8029 | return NULL; | |
8030 | if (_argo0) { | |
8031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
8033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnSizingEndDragLeft. Expected _wxPyShape_p."); | |
8034 | return NULL; | |
8035 | } | |
8036 | } | |
8037 | if (_argo1) { | |
8038 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2348eaee RD |
8039 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyControlPoint_p")) { |
8040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyShape_base_OnSizingEndDragLeft. Expected _wxPyControlPoint_p."); | |
e91a9dfc RD |
8041 | return NULL; |
8042 | } | |
8043 | } | |
8044 | { | |
8045 | wxPy_BEGIN_ALLOW_THREADS; | |
8046 | wxPyShape_base_OnSizingEndDragLeft(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
8047 | ||
8048 | wxPy_END_ALLOW_THREADS; | |
8049 | } Py_INCREF(Py_None); | |
8050 | _resultobj = Py_None; | |
8051 | return _resultobj; | |
8052 | } | |
8053 | ||
8054 | #define wxPyShape_base_OnBeginSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnBeginSize(_swigarg0,_swigarg1)) | |
8055 | static PyObject *_wrap_wxPyShape_base_OnBeginSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8056 | PyObject * _resultobj; | |
8057 | wxPyShape * _arg0; | |
8058 | double _arg1; | |
8059 | double _arg2; | |
8060 | PyObject * _argo0 = 0; | |
8061 | char *_kwnames[] = { "self","w","h", NULL }; | |
8062 | ||
8063 | self = self; | |
8064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPyShape_base_OnBeginSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8065 | return NULL; | |
8066 | if (_argo0) { | |
8067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
8069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnBeginSize. Expected _wxPyShape_p."); | |
8070 | return NULL; | |
8071 | } | |
8072 | } | |
8073 | { | |
8074 | wxPy_BEGIN_ALLOW_THREADS; | |
8075 | wxPyShape_base_OnBeginSize(_arg0,_arg1,_arg2); | |
8076 | ||
8077 | wxPy_END_ALLOW_THREADS; | |
8078 | } Py_INCREF(Py_None); | |
8079 | _resultobj = Py_None; | |
8080 | return _resultobj; | |
8081 | } | |
8082 | ||
8083 | #define wxPyShape_base_OnEndSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnEndSize(_swigarg0,_swigarg1)) | |
8084 | static PyObject *_wrap_wxPyShape_base_OnEndSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8085 | PyObject * _resultobj; | |
8086 | wxPyShape * _arg0; | |
8087 | double _arg1; | |
8088 | double _arg2; | |
8089 | PyObject * _argo0 = 0; | |
8090 | char *_kwnames[] = { "self","w","h", NULL }; | |
8091 | ||
8092 | self = self; | |
8093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPyShape_base_OnEndSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8094 | return NULL; | |
8095 | if (_argo0) { | |
8096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyShape_p")) { | |
8098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyShape_base_OnEndSize. Expected _wxPyShape_p."); | |
8099 | return NULL; | |
8100 | } | |
8101 | } | |
8102 | { | |
8103 | wxPy_BEGIN_ALLOW_THREADS; | |
8104 | wxPyShape_base_OnEndSize(_arg0,_arg1,_arg2); | |
8105 | ||
8106 | wxPy_END_ALLOW_THREADS; | |
8107 | } Py_INCREF(Py_None); | |
8108 | _resultobj = Py_None; | |
8109 | return _resultobj; | |
8110 | } | |
8111 | ||
8112 | static PyMethodDef oglbasiccMethods[] = { | |
8113 | { "wxPyShape_base_OnEndSize", (PyCFunction) _wrap_wxPyShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
8114 | { "wxPyShape_base_OnBeginSize", (PyCFunction) _wrap_wxPyShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
8115 | { "wxPyShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_wxPyShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8116 | { "wxPyShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_wxPyShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8117 | { "wxPyShape_base_OnSizingDragLeft", (PyCFunction) _wrap_wxPyShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8118 | { "wxPyShape_base_OnMoveLink", (PyCFunction) _wrap_wxPyShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
8119 | { "wxPyShape_base_OnEraseControlPoints", (PyCFunction) _wrap_wxPyShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
8120 | { "wxPyShape_base_OnDrawControlPoints", (PyCFunction) _wrap_wxPyShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
8121 | { "wxPyShape_base_OnDrawOutline", (PyCFunction) _wrap_wxPyShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
8122 | { "wxPyShape_base_OnEndDragRight", (PyCFunction) _wrap_wxPyShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
8123 | { "wxPyShape_base_OnBeginDragRight", (PyCFunction) _wrap_wxPyShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
8124 | { "wxPyShape_base_OnDragRight", (PyCFunction) _wrap_wxPyShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
8125 | { "wxPyShape_base_OnEndDragLeft", (PyCFunction) _wrap_wxPyShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8126 | { "wxPyShape_base_OnBeginDragLeft", (PyCFunction) _wrap_wxPyShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8127 | { "wxPyShape_base_OnDragLeft", (PyCFunction) _wrap_wxPyShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8128 | { "wxPyShape_base_OnMovePost", (PyCFunction) _wrap_wxPyShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
8129 | { "wxPyShape_base_OnMovePre", (PyCFunction) _wrap_wxPyShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
8130 | { "wxPyShape_base_OnSize", (PyCFunction) _wrap_wxPyShape_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
8131 | { "wxPyShape_base_OnRightClick", (PyCFunction) _wrap_wxPyShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
8132 | { "wxPyShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_wxPyShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
8133 | { "wxPyShape_base_OnLeftClick", (PyCFunction) _wrap_wxPyShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
8134 | { "wxPyShape_base_OnHighlight", (PyCFunction) _wrap_wxPyShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
8135 | { "wxPyShape_base_OnEraseContents", (PyCFunction) _wrap_wxPyShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
8136 | { "wxPyShape_base_OnErase", (PyCFunction) _wrap_wxPyShape_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
8137 | { "wxPyShape_base_OnMoveLinks", (PyCFunction) _wrap_wxPyShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
8138 | { "wxPyShape_base_OnDrawBranches", (PyCFunction) _wrap_wxPyShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
8139 | { "wxPyShape_base_OnDrawContents", (PyCFunction) _wrap_wxPyShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
8140 | { "wxPyShape_base_OnDraw", (PyCFunction) _wrap_wxPyShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
8141 | { "wxPyShape_base_OnDelete", (PyCFunction) _wrap_wxPyShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
8142 | { "wxPyShape_ClearPointList", (PyCFunction) _wrap_wxPyShape_ClearPointList, METH_VARARGS | METH_KEYWORDS }, | |
8143 | { "wxPyShape_Recentre", (PyCFunction) _wrap_wxPyShape_Recentre, METH_VARARGS | METH_KEYWORDS }, | |
8144 | { "wxPyShape_ClearAttachments", (PyCFunction) _wrap_wxPyShape_ClearAttachments, METH_VARARGS | METH_KEYWORDS }, | |
8145 | { "wxPyShape_GetRotation", (PyCFunction) _wrap_wxPyShape_GetRotation, METH_VARARGS | METH_KEYWORDS }, | |
8146 | { "wxPyShape_Rotate", (PyCFunction) _wrap_wxPyShape_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
8147 | { "wxPyShape_CopyWithHandler", (PyCFunction) _wrap_wxPyShape_CopyWithHandler, METH_VARARGS | METH_KEYWORDS }, | |
8148 | { "wxPyShape_Copy", (PyCFunction) _wrap_wxPyShape_Copy, METH_VARARGS | METH_KEYWORDS }, | |
8149 | { "wxPyShape_CreateNewCopy", (PyCFunction) _wrap_wxPyShape_CreateNewCopy, METH_VARARGS | METH_KEYWORDS }, | |
8150 | { "wxPyShape_HasDescendant", (PyCFunction) _wrap_wxPyShape_HasDescendant, METH_VARARGS | METH_KEYWORDS }, | |
8151 | { "wxPyShape_Draggable", (PyCFunction) _wrap_wxPyShape_Draggable, METH_VARARGS | METH_KEYWORDS }, | |
8152 | { "wxPyShape_LogicalToPhysicalAttachment", (PyCFunction) _wrap_wxPyShape_LogicalToPhysicalAttachment, METH_VARARGS | METH_KEYWORDS }, | |
8153 | { "wxPyShape_PhysicalToLogicalAttachment", (PyCFunction) _wrap_wxPyShape_PhysicalToLogicalAttachment, METH_VARARGS | METH_KEYWORDS }, | |
8154 | { "wxPyShape_GetBranchStyle", (PyCFunction) _wrap_wxPyShape_GetBranchStyle, METH_VARARGS | METH_KEYWORDS }, | |
8155 | { "wxPyShape_SetBranchStyle", (PyCFunction) _wrap_wxPyShape_SetBranchStyle, METH_VARARGS | METH_KEYWORDS }, | |
8156 | { "wxPyShape_GetBranchSpacing", (PyCFunction) _wrap_wxPyShape_GetBranchSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8157 | { "wxPyShape_SetBranchSpacing", (PyCFunction) _wrap_wxPyShape_SetBranchSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8158 | { "wxPyShape_GetBranchStemLength", (PyCFunction) _wrap_wxPyShape_GetBranchStemLength, METH_VARARGS | METH_KEYWORDS }, | |
8159 | { "wxPyShape_SetBranchStemLength", (PyCFunction) _wrap_wxPyShape_SetBranchStemLength, METH_VARARGS | METH_KEYWORDS }, | |
8160 | { "wxPyShape_GetBranchNeckLength", (PyCFunction) _wrap_wxPyShape_GetBranchNeckLength, METH_VARARGS | METH_KEYWORDS }, | |
8161 | { "wxPyShape_SetBranchNeckLength", (PyCFunction) _wrap_wxPyShape_SetBranchNeckLength, METH_VARARGS | METH_KEYWORDS }, | |
8162 | { "wxPyShape_GetAttachmentLineCount", (PyCFunction) _wrap_wxPyShape_GetAttachmentLineCount, METH_VARARGS | METH_KEYWORDS }, | |
8163 | { "wxPyShape_GetBranchingAttachmentPoint", (PyCFunction) _wrap_wxPyShape_GetBranchingAttachmentPoint, METH_VARARGS | METH_KEYWORDS }, | |
8164 | { "wxPyShape_GetBranchingAttachmentInfo", (PyCFunction) _wrap_wxPyShape_GetBranchingAttachmentInfo, METH_VARARGS | METH_KEYWORDS }, | |
8165 | { "wxPyShape_GetBranchingAttachmentRoot", (PyCFunction) _wrap_wxPyShape_GetBranchingAttachmentRoot, METH_VARARGS | METH_KEYWORDS }, | |
8166 | { "wxPyShape_ApplyAttachmentOrdering", (PyCFunction) _wrap_wxPyShape_ApplyAttachmentOrdering, METH_VARARGS | METH_KEYWORDS }, | |
8167 | { "wxPyShape_MoveLineToNewAttachment", (PyCFunction) _wrap_wxPyShape_MoveLineToNewAttachment, METH_VARARGS | METH_KEYWORDS }, | |
8168 | { "wxPyShape_DrawLinks", (PyCFunction) _wrap_wxPyShape_DrawLinks, METH_VARARGS | METH_KEYWORDS }, | |
8169 | { "wxPyShape_EraseLinks", (PyCFunction) _wrap_wxPyShape_EraseLinks, METH_VARARGS | METH_KEYWORDS }, | |
8170 | { "wxPyShape_AttachmentSortTest", (PyCFunction) _wrap_wxPyShape_AttachmentSortTest, METH_VARARGS | METH_KEYWORDS }, | |
8171 | { "wxPyShape_CalcSimpleAttachment", (PyCFunction) _wrap_wxPyShape_CalcSimpleAttachment, METH_VARARGS | METH_KEYWORDS }, | |
8172 | { "wxPyShape_GetAttachmentPositionEdge", (PyCFunction) _wrap_wxPyShape_GetAttachmentPositionEdge, METH_VARARGS | METH_KEYWORDS }, | |
8173 | { "wxPyShape_AttachmentIsValid", (PyCFunction) _wrap_wxPyShape_AttachmentIsValid, METH_VARARGS | METH_KEYWORDS }, | |
8174 | { "wxPyShape_GetNumberOfAttachments", (PyCFunction) _wrap_wxPyShape_GetNumberOfAttachments, METH_VARARGS | METH_KEYWORDS }, | |
8175 | { "wxPyShape_GetAttachmentPosition", (PyCFunction) _wrap_wxPyShape_GetAttachmentPosition, METH_VARARGS | METH_KEYWORDS }, | |
8176 | { "wxPyShape_RemoveLine", (PyCFunction) _wrap_wxPyShape_RemoveLine, METH_VARARGS | METH_KEYWORDS }, | |
8177 | { "wxPyShape_ClearText", (PyCFunction) _wrap_wxPyShape_ClearText, METH_VARARGS | METH_KEYWORDS }, | |
8178 | { "wxPyShape_FindRegionNames", (PyCFunction) _wrap_wxPyShape_FindRegionNames, METH_VARARGS | METH_KEYWORDS }, | |
8179 | { "wxPyShape_FindRegion", (PyCFunction) _wrap_wxPyShape_FindRegion, METH_VARARGS | METH_KEYWORDS }, | |
8180 | { "wxPyShape_AssignNewIds", (PyCFunction) _wrap_wxPyShape_AssignNewIds, METH_VARARGS | METH_KEYWORDS }, | |
8181 | { "wxPyShape_ClearRegions", (PyCFunction) _wrap_wxPyShape_ClearRegions, METH_VARARGS | METH_KEYWORDS }, | |
8182 | { "wxPyShape_AddRegion", (PyCFunction) _wrap_wxPyShape_AddRegion, METH_VARARGS | METH_KEYWORDS }, | |
8183 | { "wxPyShape_GetRegions", (PyCFunction) _wrap_wxPyShape_GetRegions, METH_VARARGS | METH_KEYWORDS }, | |
8184 | { "wxPyShape_NameRegions", (PyCFunction) _wrap_wxPyShape_NameRegions, METH_VARARGS | METH_KEYWORDS }, | |
8185 | { "wxPyShape_GetRegionId", (PyCFunction) _wrap_wxPyShape_GetRegionId, METH_VARARGS | METH_KEYWORDS }, | |
8186 | { "wxPyShape_GetRegionName", (PyCFunction) _wrap_wxPyShape_GetRegionName, METH_VARARGS | METH_KEYWORDS }, | |
8187 | { "wxPyShape_SetRegionName", (PyCFunction) _wrap_wxPyShape_SetRegionName, METH_VARARGS | METH_KEYWORDS }, | |
8188 | { "wxPyShape_GetNumberOfTextRegions", (PyCFunction) _wrap_wxPyShape_GetNumberOfTextRegions, METH_VARARGS | METH_KEYWORDS }, | |
8189 | { "wxPyShape_GetTextColour", (PyCFunction) _wrap_wxPyShape_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8190 | { "wxPyShape_SetTextColour", (PyCFunction) _wrap_wxPyShape_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8191 | { "wxPyShape_GetFont", (PyCFunction) _wrap_wxPyShape_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8192 | { "wxPyShape_SetFont", (PyCFunction) _wrap_wxPyShape_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8193 | { "wxPyShape_GetFormatMode", (PyCFunction) _wrap_wxPyShape_GetFormatMode, METH_VARARGS | METH_KEYWORDS }, | |
8194 | { "wxPyShape_SetFormatMode", (PyCFunction) _wrap_wxPyShape_SetFormatMode, METH_VARARGS | METH_KEYWORDS }, | |
8195 | { "wxPyShape_FormatText", (PyCFunction) _wrap_wxPyShape_FormatText, METH_VARARGS | METH_KEYWORDS }, | |
8196 | { "wxPyShape_SetDefaultRegionSize", (PyCFunction) _wrap_wxPyShape_SetDefaultRegionSize, METH_VARARGS | METH_KEYWORDS }, | |
8197 | { "wxPyShape_GetBrush", (PyCFunction) _wrap_wxPyShape_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
8198 | { "wxPyShape_GetPen", (PyCFunction) _wrap_wxPyShape_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
8199 | { "wxPyShape_AddText", (PyCFunction) _wrap_wxPyShape_AddText, METH_VARARGS | METH_KEYWORDS }, | |
8200 | { "wxPyShape_GetLinePosition", (PyCFunction) _wrap_wxPyShape_GetLinePosition, METH_VARARGS | METH_KEYWORDS }, | |
8201 | { "wxPyShape_AddLine", (PyCFunction) _wrap_wxPyShape_AddLine, METH_VARARGS | METH_KEYWORDS }, | |
8202 | { "wxPyShape_Constrain", (PyCFunction) _wrap_wxPyShape_Constrain, METH_VARARGS | METH_KEYWORDS }, | |
8203 | { "wxPyShape_Detach", (PyCFunction) _wrap_wxPyShape_Detach, METH_VARARGS | METH_KEYWORDS }, | |
8204 | { "wxPyShape_Attach", (PyCFunction) _wrap_wxPyShape_Attach, METH_VARARGS | METH_KEYWORDS }, | |
8205 | { "wxPyShape_SetAttachmentSize", (PyCFunction) _wrap_wxPyShape_SetAttachmentSize, METH_VARARGS | METH_KEYWORDS }, | |
8206 | { "wxPyShape_SetSize", (PyCFunction) _wrap_wxPyShape_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
8207 | { "wxPyShape_DrawContents", (PyCFunction) _wrap_wxPyShape_DrawContents, METH_VARARGS | METH_KEYWORDS }, | |
8208 | { "wxPyShape_MoveLinks", (PyCFunction) _wrap_wxPyShape_MoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
8209 | { "wxPyShape_Flash", (PyCFunction) _wrap_wxPyShape_Flash, METH_VARARGS | METH_KEYWORDS }, | |
8210 | { "wxPyShape_Draw", (PyCFunction) _wrap_wxPyShape_Draw, METH_VARARGS | METH_KEYWORDS }, | |
8211 | { "wxPyShape_EraseContents", (PyCFunction) _wrap_wxPyShape_EraseContents, METH_VARARGS | METH_KEYWORDS }, | |
8212 | { "wxPyShape_Erase", (PyCFunction) _wrap_wxPyShape_Erase, METH_VARARGS | METH_KEYWORDS }, | |
8213 | { "wxPyShape_Move", (PyCFunction) _wrap_wxPyShape_Move, METH_VARARGS | METH_KEYWORDS }, | |
8214 | { "wxPyShape_IsShown", (PyCFunction) _wrap_wxPyShape_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
8215 | { "wxPyShape_Show", (PyCFunction) _wrap_wxPyShape_Show, METH_VARARGS | METH_KEYWORDS }, | |
8216 | { "wxPyShape_GetClientData", (PyCFunction) _wrap_wxPyShape_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
8217 | { "wxPyShape_SetClientData", (PyCFunction) _wrap_wxPyShape_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
8218 | { "wxPyShape_SetBrush", (PyCFunction) _wrap_wxPyShape_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
8219 | { "wxPyShape_SetPen", (PyCFunction) _wrap_wxPyShape_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
8220 | { "wxPyShape_GetId", (PyCFunction) _wrap_wxPyShape_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8221 | { "wxPyShape_SetId", (PyCFunction) _wrap_wxPyShape_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8222 | { "wxPyShape_GetAttachmentMode", (PyCFunction) _wrap_wxPyShape_GetAttachmentMode, METH_VARARGS | METH_KEYWORDS }, | |
8223 | { "wxPyShape_SetAttachmentMode", (PyCFunction) _wrap_wxPyShape_SetAttachmentMode, METH_VARARGS | METH_KEYWORDS }, | |
8224 | { "wxPyShape_GetDisableLabel", (PyCFunction) _wrap_wxPyShape_GetDisableLabel, METH_VARARGS | METH_KEYWORDS }, | |
8225 | { "wxPyShape_SetDisableLabel", (PyCFunction) _wrap_wxPyShape_SetDisableLabel, METH_VARARGS | METH_KEYWORDS }, | |
8226 | { "wxPyShape_GetLines", (PyCFunction) _wrap_wxPyShape_GetLines, METH_VARARGS | METH_KEYWORDS }, | |
8227 | { "wxPyShape_GetMaintainAspectRatio", (PyCFunction) _wrap_wxPyShape_GetMaintainAspectRatio, METH_VARARGS | METH_KEYWORDS }, | |
8228 | { "wxPyShape_SetMaintainAspectRatio", (PyCFunction) _wrap_wxPyShape_SetMaintainAspectRatio, METH_VARARGS | METH_KEYWORDS }, | |
8229 | { "wxPyShape_GetCentreResize", (PyCFunction) _wrap_wxPyShape_GetCentreResize, METH_VARARGS | METH_KEYWORDS }, | |
8230 | { "wxPyShape_SetCentreResize", (PyCFunction) _wrap_wxPyShape_SetCentreResize, METH_VARARGS | METH_KEYWORDS }, | |
8231 | { "wxPyShape_HitTest", (PyCFunction) _wrap_wxPyShape_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
8232 | { "wxPyShape_GetShadowMode", (PyCFunction) _wrap_wxPyShape_GetShadowMode, METH_VARARGS | METH_KEYWORDS }, | |
8233 | { "wxPyShape_SetShadowMode", (PyCFunction) _wrap_wxPyShape_SetShadowMode, METH_VARARGS | METH_KEYWORDS }, | |
8234 | { "wxPyShape_GetSpaceAttachments", (PyCFunction) _wrap_wxPyShape_GetSpaceAttachments, METH_VARARGS | METH_KEYWORDS }, | |
8235 | { "wxPyShape_SetSpaceAttachments", (PyCFunction) _wrap_wxPyShape_SetSpaceAttachments, METH_VARARGS | METH_KEYWORDS }, | |
8236 | { "wxPyShape_GetFixedHeight", (PyCFunction) _wrap_wxPyShape_GetFixedHeight, METH_VARARGS | METH_KEYWORDS }, | |
8237 | { "wxPyShape_GetFixedWidth", (PyCFunction) _wrap_wxPyShape_GetFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
8238 | { "wxPyShape_GetFixedSize", (PyCFunction) _wrap_wxPyShape_GetFixedSize, METH_VARARGS | METH_KEYWORDS }, | |
8239 | { "wxPyShape_SetFixedSize", (PyCFunction) _wrap_wxPyShape_SetFixedSize, METH_VARARGS | METH_KEYWORDS }, | |
8240 | { "wxPyShape_SetDraggable", (PyCFunction) _wrap_wxPyShape_SetDraggable, METH_VARARGS | METH_KEYWORDS }, | |
8241 | { "wxPyShape_GetSensitivityFilter", (PyCFunction) _wrap_wxPyShape_GetSensitivityFilter, METH_VARARGS | METH_KEYWORDS }, | |
8242 | { "wxPyShape_SetSensitivityFilter", (PyCFunction) _wrap_wxPyShape_SetSensitivityFilter, METH_VARARGS | METH_KEYWORDS }, | |
8243 | { "wxPyShape_AncestorSelected", (PyCFunction) _wrap_wxPyShape_AncestorSelected, METH_VARARGS | METH_KEYWORDS }, | |
8244 | { "wxPyShape_Selected", (PyCFunction) _wrap_wxPyShape_Selected, METH_VARARGS | METH_KEYWORDS }, | |
8245 | { "wxPyShape_IsHighlighted", (PyCFunction) _wrap_wxPyShape_IsHighlighted, METH_VARARGS | METH_KEYWORDS }, | |
8246 | { "wxPyShape_SetHighlight", (PyCFunction) _wrap_wxPyShape_SetHighlight, METH_VARARGS | METH_KEYWORDS }, | |
8247 | { "wxPyShape_Select", (PyCFunction) _wrap_wxPyShape_Select, METH_VARARGS | METH_KEYWORDS }, | |
8248 | { "wxPyShape_CalculateSize", (PyCFunction) _wrap_wxPyShape_CalculateSize, METH_VARARGS | METH_KEYWORDS }, | |
8249 | { "wxPyShape_Recompute", (PyCFunction) _wrap_wxPyShape_Recompute, METH_VARARGS | METH_KEYWORDS }, | |
8250 | { "wxPyShape_ResetMandatoryControlPoints", (PyCFunction) _wrap_wxPyShape_ResetMandatoryControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
8251 | { "wxPyShape_MakeMandatoryControlPoints", (PyCFunction) _wrap_wxPyShape_MakeMandatoryControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
8252 | { "wxPyShape_SetEventHandler", (PyCFunction) _wrap_wxPyShape_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8253 | { "wxPyShape_GetEventHandler", (PyCFunction) _wrap_wxPyShape_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8254 | { "wxPyShape_ResetControlPoints", (PyCFunction) _wrap_wxPyShape_ResetControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
8255 | { "wxPyShape_DeleteControlPoints", (PyCFunction) _wrap_wxPyShape_DeleteControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
8256 | { "wxPyShape_MakeControlPoints", (PyCFunction) _wrap_wxPyShape_MakeControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
8257 | { "wxPyShape_GetDrawHandles", (PyCFunction) _wrap_wxPyShape_GetDrawHandles, METH_VARARGS | METH_KEYWORDS }, | |
8258 | { "wxPyShape_SetDrawHandles", (PyCFunction) _wrap_wxPyShape_SetDrawHandles, METH_VARARGS | METH_KEYWORDS }, | |
8259 | { "wxPyShape_Unlink", (PyCFunction) _wrap_wxPyShape_Unlink, METH_VARARGS | METH_KEYWORDS }, | |
8260 | { "wxPyShape_GetChildren", (PyCFunction) _wrap_wxPyShape_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
8261 | { "wxPyShape_GetTopAncestor", (PyCFunction) _wrap_wxPyShape_GetTopAncestor, METH_VARARGS | METH_KEYWORDS }, | |
8262 | { "wxPyShape_SetParent", (PyCFunction) _wrap_wxPyShape_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
8263 | { "wxPyShape_GetParent", (PyCFunction) _wrap_wxPyShape_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
8264 | { "wxPyShape_SetY", (PyCFunction) _wrap_wxPyShape_SetY, METH_VARARGS | METH_KEYWORDS }, | |
8265 | { "wxPyShape_SetX", (PyCFunction) _wrap_wxPyShape_SetX, METH_VARARGS | METH_KEYWORDS }, | |
8266 | { "wxPyShape_GetY", (PyCFunction) _wrap_wxPyShape_GetY, METH_VARARGS | METH_KEYWORDS }, | |
8267 | { "wxPyShape_GetX", (PyCFunction) _wrap_wxPyShape_GetX, METH_VARARGS | METH_KEYWORDS }, | |
8268 | { "wxPyShape_RemoveFromCanvas", (PyCFunction) _wrap_wxPyShape_RemoveFromCanvas, METH_VARARGS | METH_KEYWORDS }, | |
8269 | { "wxPyShape_InsertInCanvas", (PyCFunction) _wrap_wxPyShape_InsertInCanvas, METH_VARARGS | METH_KEYWORDS }, | |
8270 | { "wxPyShape_AddToCanvas", (PyCFunction) _wrap_wxPyShape_AddToCanvas, METH_VARARGS | METH_KEYWORDS }, | |
8271 | { "wxPyShape_SetCanvas", (PyCFunction) _wrap_wxPyShape_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
8272 | { "wxPyShape_GetCanvas", (PyCFunction) _wrap_wxPyShape_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
8273 | { "wxPyShape_GetPerimeterPoint", (PyCFunction) _wrap_wxPyShape_GetPerimeterPoint, METH_VARARGS | METH_KEYWORDS }, | |
8274 | { "wxPyShape_GetBoundingBoxMin", (PyCFunction) _wrap_wxPyShape_GetBoundingBoxMin, METH_VARARGS | METH_KEYWORDS }, | |
8275 | { "wxPyShape_GetBoundingBoxMax", (PyCFunction) _wrap_wxPyShape_GetBoundingBoxMax, METH_VARARGS | METH_KEYWORDS }, | |
8276 | { "wxPyShape_Destroy", (PyCFunction) _wrap_wxPyShape_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
8277 | { "wxPyShape__setSelf", (PyCFunction) _wrap_wxPyShape__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
8278 | { "wxPyShapeEvtHandler_base_OnEndSize", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnEndSize, METH_VARARGS | METH_KEYWORDS }, | |
8279 | { "wxPyShapeEvtHandler_base_OnBeginSize", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS }, | |
8280 | { "wxPyShapeEvtHandler_base_OnSizingEndDragLeft", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8281 | { "wxPyShapeEvtHandler_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8282 | { "wxPyShapeEvtHandler_base_OnSizingDragLeft", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8283 | { "wxPyShapeEvtHandler_base_OnMoveLink", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS }, | |
8284 | { "wxPyShapeEvtHandler_base_OnEraseControlPoints", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
8285 | { "wxPyShapeEvtHandler_base_OnDrawControlPoints", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS }, | |
8286 | { "wxPyShapeEvtHandler_base_OnDrawOutline", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS }, | |
8287 | { "wxPyShapeEvtHandler_base_OnEndDragRight", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS }, | |
8288 | { "wxPyShapeEvtHandler_base_OnBeginDragRight", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS }, | |
8289 | { "wxPyShapeEvtHandler_base_OnDragRight", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnDragRight, METH_VARARGS | METH_KEYWORDS }, | |
8290 | { "wxPyShapeEvtHandler_base_OnEndDragLeft", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8291 | { "wxPyShapeEvtHandler_base_OnBeginDragLeft", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8292 | { "wxPyShapeEvtHandler_base_OnDragLeft", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS }, | |
8293 | { "wxPyShapeEvtHandler_base_OnMovePost", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnMovePost, METH_VARARGS | METH_KEYWORDS }, | |
8294 | { "wxPyShapeEvtHandler_base_OnMovePre", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnMovePre, METH_VARARGS | METH_KEYWORDS }, | |
8295 | { "wxPyShapeEvtHandler_base_OnSize", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnSize, METH_VARARGS | METH_KEYWORDS }, | |
8296 | { "wxPyShapeEvtHandler_base_OnRightClick", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnRightClick, METH_VARARGS | METH_KEYWORDS }, | |
8297 | { "wxPyShapeEvtHandler_base_OnLeftDoubleClick", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS }, | |
8298 | { "wxPyShapeEvtHandler_base_OnLeftClick", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS }, | |
8299 | { "wxPyShapeEvtHandler_base_OnHighlight", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnHighlight, METH_VARARGS | METH_KEYWORDS }, | |
8300 | { "wxPyShapeEvtHandler_base_OnEraseContents", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS }, | |
8301 | { "wxPyShapeEvtHandler_base_OnErase", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnErase, METH_VARARGS | METH_KEYWORDS }, | |
8302 | { "wxPyShapeEvtHandler_base_OnMoveLinks", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS }, | |
8303 | { "wxPyShapeEvtHandler_base_OnDrawBranches", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS }, | |
8304 | { "wxPyShapeEvtHandler_base_OnDrawContents", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS }, | |
8305 | { "wxPyShapeEvtHandler_base_OnDraw", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnDraw, METH_VARARGS | METH_KEYWORDS }, | |
8306 | { "wxPyShapeEvtHandler_base_OnDelete", (PyCFunction) _wrap_wxPyShapeEvtHandler_base_OnDelete, METH_VARARGS | METH_KEYWORDS }, | |
8307 | { "wxPyShapeEvtHandler_CreateNewCopy", (PyCFunction) _wrap_wxPyShapeEvtHandler_CreateNewCopy, METH_VARARGS | METH_KEYWORDS }, | |
8308 | { "wxPyShapeEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxPyShapeEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
8309 | { "wxPyShapeEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxPyShapeEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
8310 | { "wxPyShapeEvtHandler_GetShape", (PyCFunction) _wrap_wxPyShapeEvtHandler_GetShape, METH_VARARGS | METH_KEYWORDS }, | |
8311 | { "wxPyShapeEvtHandler_SetShape", (PyCFunction) _wrap_wxPyShapeEvtHandler_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
8312 | { "wxPyShapeEvtHandler_Destroy", (PyCFunction) _wrap_wxPyShapeEvtHandler_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
8313 | { "wxPyShapeEvtHandler__setSelf", (PyCFunction) _wrap_wxPyShapeEvtHandler__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
8314 | { "new_wxPyShapeEvtHandler", (PyCFunction) _wrap_new_wxPyShapeEvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
8315 | { "wxShapeRegion_ClearText", (PyCFunction) _wrap_wxShapeRegion_ClearText, METH_VARARGS | METH_KEYWORDS }, | |
8316 | { "wxShapeRegion_GetHeight", (PyCFunction) _wrap_wxShapeRegion_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
8317 | { "wxShapeRegion_GetWidth", (PyCFunction) _wrap_wxShapeRegion_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8318 | { "wxShapeRegion_GetActualPen", (PyCFunction) _wrap_wxShapeRegion_GetActualPen, METH_VARARGS | METH_KEYWORDS }, | |
8319 | { "wxShapeRegion_SetPenColour", (PyCFunction) _wrap_wxShapeRegion_SetPenColour, METH_VARARGS | METH_KEYWORDS }, | |
8320 | { "wxShapeRegion_SetPenStyle", (PyCFunction) _wrap_wxShapeRegion_SetPenStyle, METH_VARARGS | METH_KEYWORDS }, | |
8321 | { "wxShapeRegion_GetPenStyle", (PyCFunction) _wrap_wxShapeRegion_GetPenStyle, METH_VARARGS | METH_KEYWORDS }, | |
8322 | { "wxShapeRegion_GetPenColour", (PyCFunction) _wrap_wxShapeRegion_GetPenColour, METH_VARARGS | METH_KEYWORDS }, | |
8323 | { "wxShapeRegion_GetFormattedText", (PyCFunction) _wrap_wxShapeRegion_GetFormattedText, METH_VARARGS | METH_KEYWORDS }, | |
8324 | { "wxShapeRegion_GetActualColourObject", (PyCFunction) _wrap_wxShapeRegion_GetActualColourObject, METH_VARARGS | METH_KEYWORDS }, | |
8325 | { "wxShapeRegion_GetColour", (PyCFunction) _wrap_wxShapeRegion_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
8326 | { "wxShapeRegion_GetName", (PyCFunction) _wrap_wxShapeRegion_GetName, METH_VARARGS | METH_KEYWORDS }, | |
8327 | { "wxShapeRegion_GetFormatMode", (PyCFunction) _wrap_wxShapeRegion_GetFormatMode, METH_VARARGS | METH_KEYWORDS }, | |
8328 | { "wxShapeRegion_GetPosition", (PyCFunction) _wrap_wxShapeRegion_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
8329 | { "wxShapeRegion_GetSize", (PyCFunction) _wrap_wxShapeRegion_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
8330 | { "wxShapeRegion_GetProportion", (PyCFunction) _wrap_wxShapeRegion_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
8331 | { "wxShapeRegion_GetMinSize", (PyCFunction) _wrap_wxShapeRegion_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
8332 | { "wxShapeRegion_GetFont", (PyCFunction) _wrap_wxShapeRegion_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8333 | { "wxShapeRegion_GetText", (PyCFunction) _wrap_wxShapeRegion_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8334 | { "wxShapeRegion_SetColour", (PyCFunction) _wrap_wxShapeRegion_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
8335 | { "wxShapeRegion_SetName", (PyCFunction) _wrap_wxShapeRegion_SetName, METH_VARARGS | METH_KEYWORDS }, | |
8336 | { "wxShapeRegion_SetFormatMode", (PyCFunction) _wrap_wxShapeRegion_SetFormatMode, METH_VARARGS | METH_KEYWORDS }, | |
8337 | { "wxShapeRegion_SetProportions", (PyCFunction) _wrap_wxShapeRegion_SetProportions, METH_VARARGS | METH_KEYWORDS }, | |
8338 | { "wxShapeRegion_SetPosition", (PyCFunction) _wrap_wxShapeRegion_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
8339 | { "wxShapeRegion_SetSize", (PyCFunction) _wrap_wxShapeRegion_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
8340 | { "wxShapeRegion_SetMinSize", (PyCFunction) _wrap_wxShapeRegion_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
8341 | { "wxShapeRegion_SetFont", (PyCFunction) _wrap_wxShapeRegion_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8342 | { "wxShapeRegion_SetText", (PyCFunction) _wrap_wxShapeRegion_SetText, METH_VARARGS | METH_KEYWORDS }, | |
8343 | { "new_wxShapeRegion", (PyCFunction) _wrap_new_wxShapeRegion, METH_VARARGS | METH_KEYWORDS }, | |
8344 | { NULL, NULL } | |
8345 | }; | |
8346 | #ifdef __cplusplus | |
8347 | } | |
8348 | #endif | |
8349 | /* | |
8350 | * This table is used by the pointer type-checker | |
8351 | */ | |
8352 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
e91a9dfc | 8353 | { "_signed_long","_long",0}, |
714d23b4 | 8354 | { "_wxPrintQuality","_wxCoord",0}, |
e91a9dfc RD |
8355 | { "_wxPrintQuality","_int",0}, |
8356 | { "_wxPrintQuality","_signed_int",0}, | |
8357 | { "_wxPrintQuality","_unsigned_int",0}, | |
8358 | { "_wxPrintQuality","_wxWindowID",0}, | |
8359 | { "_wxPrintQuality","_uint",0}, | |
8360 | { "_wxPrintQuality","_EBool",0}, | |
8361 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 8362 | { "_wxPrintQuality","_time_t",0}, |
e91a9dfc | 8363 | { "_byte","_unsigned_char",0}, |
e91a9dfc RD |
8364 | { "_long","_unsigned_long",0}, |
8365 | { "_long","_signed_long",0}, | |
714d23b4 | 8366 | { "_size_t","_wxCoord",0}, |
e91a9dfc | 8367 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 8368 | { "_size_t","_time_t",0}, |
e91a9dfc RD |
8369 | { "_size_t","_unsigned_int",0}, |
8370 | { "_size_t","_int",0}, | |
8371 | { "_size_t","_wxWindowID",0}, | |
8372 | { "_size_t","_uint",0}, | |
714d23b4 | 8373 | { "_uint","_wxCoord",0}, |
e91a9dfc | 8374 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8375 | { "_uint","_time_t",0}, |
e91a9dfc RD |
8376 | { "_uint","_size_t",0}, |
8377 | { "_uint","_unsigned_int",0}, | |
8378 | { "_uint","_int",0}, | |
8379 | { "_uint","_wxWindowID",0}, | |
c368d904 | 8380 | { "_wxChar","_char",0}, |
c368d904 | 8381 | { "_char","_wxChar",0}, |
714d23b4 | 8382 | { "_EBool","_wxCoord",0}, |
e91a9dfc RD |
8383 | { "_EBool","_wxPrintQuality",0}, |
8384 | { "_EBool","_signed_int",0}, | |
8385 | { "_EBool","_int",0}, | |
8386 | { "_EBool","_wxWindowID",0}, | |
e91a9dfc | 8387 | { "_unsigned_long","_long",0}, |
714d23b4 | 8388 | { "_signed_int","_wxCoord",0}, |
e91a9dfc RD |
8389 | { "_signed_int","_wxPrintQuality",0}, |
8390 | { "_signed_int","_EBool",0}, | |
8391 | { "_signed_int","_wxWindowID",0}, | |
8392 | { "_signed_int","_int",0}, | |
c368d904 | 8393 | { "_WXTYPE","_wxDateTime_t",0}, |
e91a9dfc RD |
8394 | { "_WXTYPE","_short",0}, |
8395 | { "_WXTYPE","_signed_short",0}, | |
8396 | { "_WXTYPE","_unsigned_short",0}, | |
c368d904 | 8397 | { "_unsigned_short","_wxDateTime_t",0}, |
e91a9dfc RD |
8398 | { "_unsigned_short","_WXTYPE",0}, |
8399 | { "_unsigned_short","_short",0}, | |
9416aa89 | 8400 | { "_wxObject","_wxPyShape",SwigwxPyShapeTowxObject}, |
9416aa89 | 8401 | { "_wxObject","_wxPyShapeEvtHandler",SwigwxPyShapeEvtHandlerTowxObject}, |
9416aa89 | 8402 | { "_wxObject","_wxShapeRegion",SwigwxShapeRegionTowxObject}, |
e91a9dfc RD |
8403 | { "_signed_short","_WXTYPE",0}, |
8404 | { "_signed_short","_short",0}, | |
e91a9dfc | 8405 | { "_unsigned_char","_byte",0}, |
714d23b4 | 8406 | { "_unsigned_int","_wxCoord",0}, |
e91a9dfc | 8407 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8408 | { "_unsigned_int","_time_t",0}, |
e91a9dfc RD |
8409 | { "_unsigned_int","_size_t",0}, |
8410 | { "_unsigned_int","_uint",0}, | |
8411 | { "_unsigned_int","_wxWindowID",0}, | |
8412 | { "_unsigned_int","_int",0}, | |
c368d904 | 8413 | { "_short","_wxDateTime_t",0}, |
e91a9dfc RD |
8414 | { "_short","_WXTYPE",0}, |
8415 | { "_short","_unsigned_short",0}, | |
8416 | { "_short","_signed_short",0}, | |
714d23b4 | 8417 | { "_wxWindowID","_wxCoord",0}, |
e91a9dfc | 8418 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8419 | { "_wxWindowID","_time_t",0}, |
e91a9dfc RD |
8420 | { "_wxWindowID","_size_t",0}, |
8421 | { "_wxWindowID","_EBool",0}, | |
8422 | { "_wxWindowID","_uint",0}, | |
8423 | { "_wxWindowID","_int",0}, | |
8424 | { "_wxWindowID","_signed_int",0}, | |
8425 | { "_wxWindowID","_unsigned_int",0}, | |
714d23b4 | 8426 | { "_int","_wxCoord",0}, |
e91a9dfc | 8427 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8428 | { "_int","_time_t",0}, |
e91a9dfc RD |
8429 | { "_int","_size_t",0}, |
8430 | { "_int","_EBool",0}, | |
8431 | { "_int","_uint",0}, | |
8432 | { "_int","_wxWindowID",0}, | |
8433 | { "_int","_unsigned_int",0}, | |
8434 | { "_int","_signed_int",0}, | |
c368d904 RD |
8435 | { "_wxDateTime_t","_unsigned_short",0}, |
8436 | { "_wxDateTime_t","_short",0}, | |
8437 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
8438 | { "_time_t","_wxCoord",0}, |
8439 | { "_time_t","_wxPrintQuality",0}, | |
8440 | { "_time_t","_unsigned_int",0}, | |
8441 | { "_time_t","_int",0}, | |
8442 | { "_time_t","_wxWindowID",0}, | |
8443 | { "_time_t","_uint",0}, | |
8444 | { "_time_t","_size_t",0}, | |
714d23b4 RD |
8445 | { "_wxCoord","_int",0}, |
8446 | { "_wxCoord","_signed_int",0}, | |
8447 | { "_wxCoord","_unsigned_int",0}, | |
8448 | { "_wxCoord","_wxWindowID",0}, | |
8449 | { "_wxCoord","_uint",0}, | |
8450 | { "_wxCoord","_EBool",0}, | |
8451 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8452 | { "_wxCoord","_time_t",0}, |
714d23b4 | 8453 | { "_wxCoord","_wxPrintQuality",0}, |
e91a9dfc | 8454 | { "_wxPyShapeEvtHandler","_wxPyShape",SwigwxPyShapeTowxPyShapeEvtHandler}, |
e91a9dfc RD |
8455 | {0,0,0}}; |
8456 | ||
8457 | static PyObject *SWIG_globals; | |
8458 | #ifdef __cplusplus | |
8459 | extern "C" | |
8460 | #endif | |
8461 | SWIGEXPORT(void) initoglbasicc() { | |
8462 | PyObject *m, *d; | |
8463 | SWIG_globals = SWIG_newvarlink(); | |
8464 | m = Py_InitModule("oglbasicc", oglbasiccMethods); | |
8465 | d = PyModule_GetDict(m); | |
8466 | { | |
8467 | int i; | |
8468 | for (i = 0; _swig_mapping[i].n1; i++) | |
8469 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8470 | } | |
8471 | } |