]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName | |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
49 | #define SWIG_PackData SWIG_Python_PackData | |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
52 | ||
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
83 | #else | |
84 | # define SWIGEXPORT(a) a | |
85 | # define SWIGIMPORT(a) a | |
86 | #endif | |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
90 | #else | |
91 | # define SWIGRUNTIME(a) static a | |
92 | #endif | |
93 | ||
94 | #ifdef __cplusplus | |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
102 | const char *name; | |
103 | swig_converter_func converter; | |
104 | const char *str; | |
105 | void *clientdata; | |
106 | swig_dycast_func dcast; | |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); | |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
122 | ||
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
128 | ||
129 | /*********************************************************************** | |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
197 | ||
198 | ||
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
203 | #ifdef __cplusplus | |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
208 | ||
209 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
210 | ||
211 | #define SWIGTYPE_p_wxOGLConstraint swig_types[0] | |
212 | #define SWIGTYPE_p_wxBrush swig_types[1] | |
213 | #define SWIGTYPE_p_wxColour swig_types[2] | |
214 | #define SWIGTYPE_p_wxShapeRegion swig_types[3] | |
215 | #define SWIGTYPE_p_wxDC swig_types[4] | |
216 | #define SWIGTYPE_p_wxRealPoint swig_types[5] | |
217 | #define SWIGTYPE_p_wxPyControlPoint swig_types[6] | |
218 | #define SWIGTYPE_p_wxArrowHead swig_types[7] | |
219 | #define SWIGTYPE_p_char swig_types[8] | |
220 | #define SWIGTYPE_p_wxStringList swig_types[9] | |
221 | #define SWIGTYPE_p_wxPanel swig_types[10] | |
222 | #define SWIGTYPE_p_bool swig_types[11] | |
223 | #define SWIGTYPE_p_wxList swig_types[12] | |
224 | #define SWIGTYPE_p_wxFont swig_types[13] | |
225 | #define SWIGTYPE_p_wxScrolledWindow swig_types[14] | |
226 | #define SWIGTYPE_p_wxWindow swig_types[15] | |
227 | #define SWIGTYPE_p_double swig_types[16] | |
228 | #define SWIGTYPE_p_wxPyDivisionShape swig_types[17] | |
229 | #define SWIGTYPE_p_wxPyDrawnShape swig_types[18] | |
230 | #define SWIGTYPE_p_wxPyPolygonShape swig_types[19] | |
231 | #define SWIGTYPE_p_wxBitmap swig_types[20] | |
232 | #define SWIGTYPE_p_wxObject swig_types[21] | |
233 | #define SWIGTYPE_p_wxPyBitmapShape swig_types[22] | |
234 | #define SWIGTYPE_p_wxPyShapeEvtHandler swig_types[23] | |
235 | #define SWIGTYPE_p_wxEvtHandler swig_types[24] | |
236 | #define SWIGTYPE_p_wxPyEllipseShape swig_types[25] | |
237 | #define SWIGTYPE_p_wxPyShapeCanvas swig_types[26] | |
238 | #define SWIGTYPE_p_wxPoint swig_types[27] | |
239 | #define SWIGTYPE_p_wxDiagram swig_types[28] | |
240 | #define SWIGTYPE_p_wxPyShape swig_types[29] | |
241 | #define SWIGTYPE_p_wxAttachmentPoint swig_types[30] | |
242 | #define SWIGTYPE_p_wxClassInfo swig_types[31] | |
243 | #define SWIGTYPE_p_wxPyLineShape swig_types[32] | |
244 | #define SWIGTYPE_p_wxPyRectangleShape swig_types[33] | |
245 | #define SWIGTYPE_p_wxPyCompositeShape swig_types[34] | |
246 | #define SWIGTYPE_p_wxPyCircleShape swig_types[35] | |
247 | #define SWIGTYPE_p_wxPen swig_types[36] | |
248 | #define SWIGTYPE_p_int swig_types[37] | |
249 | #define SWIGTYPE_p_wxPseudoMetaFile swig_types[38] | |
250 | #define SWIGTYPE_p_wxPyTextShape swig_types[39] | |
251 | #define SWIGTYPE_p_wxPyDividedShape swig_types[40] | |
252 | static swig_type_info *swig_types[42]; | |
253 | ||
254 | /* -------- TYPES TABLE (END) -------- */ | |
255 | ||
256 | ||
257 | /*----------------------------------------------- | |
258 | @(target):= _ogl.so | |
259 | ------------------------------------------------*/ | |
260 | #define SWIG_init init_ogl | |
261 | ||
262 | #define SWIG_name "_ogl" | |
263 | ||
264 | /* Auxiliar swig macros that appear in the header */ | |
265 | ||
266 | #define SWIG_OLDOBJ 1 | |
267 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
268 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
269 | ||
270 | #ifdef __cplusplus | |
271 | #define SWIGSTATICINLINE(a) static inline a | |
272 | #define SWIGSTATIC(a) static a | |
273 | #define swig_new_array(size,Type) (new Type[(size)]) | |
274 | #define swig_delete(cptr) delete cptr | |
275 | #define swig_delete_array(cptr) delete[] cptr | |
276 | #define swig_const_cast(a,Type) const_cast<Type >(a) | |
277 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
278 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
279 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
280 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
281 | ||
282 | #else /* C case */ | |
283 | ||
284 | #define SWIGSTATICINLINE(a) static a | |
285 | #define SWIGSTATIC(a) static a | |
286 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) | |
287 | #define swig_delete(cptr) free((char*)cptr) | |
288 | #define swig_delete_array(cptr) free((char*)cptr) | |
289 | #define swig_const_cast(a,Type) (Type)(a) | |
290 | #define swig_static_cast(a,Type) (Type)(a) | |
291 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
292 | #define swig_numeric_cast(a,Type) (Type)(a) | |
293 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
294 | ||
295 | #endif /* __cplusplus */ | |
296 | ||
297 | ||
298 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
299 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
300 | /*@@*/ | |
301 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
302 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
303 | /*@@*/ | |
304 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
305 | #define SWIG_From_short PyInt_FromLong | |
306 | /*@@*/ | |
307 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
308 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
309 | /*@@*/ | |
310 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
311 | #define SWIG_From_int PyInt_FromLong | |
312 | /*@@*/ | |
313 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
314 | #define SWIG_From_long PyInt_FromLong | |
315 | /*@@*/ | |
316 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
317 | #define SWIG_From_float PyFloat_FromDouble | |
318 | /*@@*/ | |
319 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
320 | #define SWIG_From_double PyFloat_FromDouble | |
321 | /*@@*/ | |
322 | ||
323 | ||
324 | #include "wx/wxPython/wxPython.h" | |
325 | #include "wx/wxPython/pyclasses.h" | |
326 | #include "oglhelpers.h" | |
327 | ||
328 | ||
329 | static const wxString wxPyEmptyString(wxEmptyString); | |
330 | ||
331 | // See my_fragments.i | |
332 | SWIGSTATICINLINE(int) | |
333 | SWIG_AsVal_double(PyObject *obj, double* val) | |
334 | { | |
335 | if (PyNumber_Check(obj)) { | |
336 | if (val) *val = PyFloat_AsDouble(obj); | |
337 | return 1; | |
338 | } | |
339 | else { | |
340 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
341 | obj->ob_type->tp_name); | |
342 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
343 | Py_DECREF(errmsg); | |
344 | } | |
345 | return 0; | |
346 | } | |
347 | ||
348 | ||
349 | SWIGSTATICINLINE(double) | |
350 | SWIG_As_double(PyObject* obj) | |
351 | { | |
352 | double v; | |
353 | if (!SWIG_AsVal_double(obj, &v)) { | |
354 | /* | |
355 | this is needed to make valgrind/purify happier. the other | |
356 | solution is throw an exception, but since this code should work | |
357 | with plain C .... | |
358 | */ | |
359 | memset((void*)&v, 0, sizeof(double)); | |
360 | } | |
361 | return v; | |
362 | } | |
363 | ||
364 | ||
365 | SWIGSTATICINLINE(int) | |
366 | SWIG_Check_double(PyObject* obj) | |
367 | { | |
368 | return SWIG_AsVal_double(obj, (double*)0); | |
369 | } | |
370 | ||
371 | ||
372 | #include <limits.h> | |
373 | ||
374 | ||
375 | SWIGSTATICINLINE(int) | |
376 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
377 | const char *errmsg) | |
378 | { | |
379 | if (value < min_value) { | |
380 | if (errmsg) { | |
381 | PyErr_Format(PyExc_OverflowError, | |
382 | "value %ld is less than '%s' minimum %ld", | |
383 | value, errmsg, min_value); | |
384 | } | |
385 | return 0; | |
386 | } else if (value > max_value) { | |
387 | if (errmsg) { | |
388 | PyErr_Format(PyExc_OverflowError, | |
389 | "value %ld is greater than '%s' maximum %ld", | |
390 | value, errmsg, max_value); | |
391 | } | |
392 | return 0; | |
393 | } | |
394 | return 1; | |
395 | } | |
396 | ||
397 | ||
398 | // See my_fragments.i | |
399 | SWIGSTATICINLINE(int) | |
400 | SWIG_AsVal_long(PyObject* obj, long* val) | |
401 | { | |
402 | if (PyNumber_Check(obj)) { | |
403 | if (val) *val = PyInt_AsLong(obj); | |
404 | return 1; | |
405 | } | |
406 | else { | |
407 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
408 | obj->ob_type->tp_name); | |
409 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
410 | Py_DECREF(errmsg); | |
411 | } | |
412 | return 0; | |
413 | } | |
414 | ||
415 | ||
416 | #if INT_MAX != LONG_MAX | |
417 | SWIGSTATICINLINE(int) | |
418 | SWIG_AsVal_int(PyObject *obj, int *val) | |
419 | { | |
420 | const char* errmsg = val ? "int" : 0; | |
421 | long v; | |
422 | if (SWIG_AsVal_long(obj, &v)) { | |
423 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
424 | if (val) *val = swig_numeric_cast(v, int); | |
425 | return 1; | |
426 | } else { | |
427 | return 0; | |
428 | } | |
429 | } else { | |
430 | PyErr_Clear(); | |
431 | } | |
432 | if (val) { | |
433 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
434 | } | |
435 | return 0; | |
436 | } | |
437 | #else | |
438 | SWIGSTATICINLINE(int) | |
439 | SWIG_AsVal_int(PyObject *obj, int *val) | |
440 | { | |
441 | return SWIG_AsVal_long(obj,(long*)val); | |
442 | } | |
443 | #endif | |
444 | ||
445 | ||
446 | SWIGSTATICINLINE(int) | |
447 | SWIG_As_int(PyObject* obj) | |
448 | { | |
449 | int v; | |
450 | if (!SWIG_AsVal_int(obj, &v)) { | |
451 | /* | |
452 | this is needed to make valgrind/purify happier. the other | |
453 | solution is throw an exception, but since this code should work | |
454 | with plain C .... | |
455 | */ | |
456 | memset((void*)&v, 0, sizeof(int)); | |
457 | } | |
458 | return v; | |
459 | } | |
460 | ||
461 | ||
462 | SWIGSTATICINLINE(int) | |
463 | SWIG_Check_int(PyObject* obj) | |
464 | { | |
465 | return SWIG_AsVal_int(obj, (int*)0); | |
466 | } | |
467 | ||
468 | ||
469 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
470 | PyObject* o2; | |
471 | PyObject* o3; | |
472 | ||
473 | if (!target) { | |
474 | target = o; | |
475 | } else if (target == Py_None) { | |
476 | Py_DECREF(Py_None); | |
477 | target = o; | |
478 | } else { | |
479 | if (!PyTuple_Check(target)) { | |
480 | o2 = target; | |
481 | target = PyTuple_New(1); | |
482 | PyTuple_SetItem(target, 0, o2); | |
483 | } | |
484 | o3 = PyTuple_New(1); | |
485 | PyTuple_SetItem(o3, 0, o); | |
486 | ||
487 | o2 = target; | |
488 | target = PySequence_Concat(o2, o3); | |
489 | Py_DECREF(o2); | |
490 | Py_DECREF(o3); | |
491 | } | |
492 | return target; | |
493 | } | |
494 | ||
495 | ||
496 | ||
497 | WXSHAPE_IMP_CALLBACKS(wxPyShapeEvtHandler,wxShapeEvtHandler); | |
498 | ||
499 | void wxPyShapeEvtHandler__setOORInfo(wxPyShapeEvtHandler *self,PyObject *_self){ | |
500 | self->SetClientObject(new wxPyOORClientData(_self)); | |
501 | } | |
502 | ||
503 | SWIGSTATICINLINE(int) | |
504 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
505 | { | |
506 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
507 | if (obj == Py_True) { | |
508 | if (val) *val = true; | |
509 | return 1; | |
510 | } | |
511 | if (obj == Py_False) { | |
512 | if (val) *val = false; | |
513 | return 1; | |
514 | } | |
515 | int res = 0; | |
516 | if (SWIG_AsVal_int(obj, &res)) { | |
517 | if (val) *val = (bool)res; | |
518 | return 1; | |
519 | } | |
520 | if (val) { | |
521 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
522 | } | |
523 | return 0; | |
524 | } | |
525 | ||
526 | ||
527 | SWIGSTATICINLINE(bool) | |
528 | SWIG_As_bool(PyObject* obj) | |
529 | { | |
530 | bool v; | |
531 | if (!SWIG_AsVal_bool(obj, &v)) { | |
532 | /* | |
533 | this is needed to make valgrind/purify happier. the other | |
534 | solution is throw an exception, but since this code should work | |
535 | with plain C .... | |
536 | */ | |
537 | memset((void*)&v, 0, sizeof(bool)); | |
538 | } | |
539 | return v; | |
540 | } | |
541 | ||
542 | ||
543 | SWIGSTATICINLINE(int) | |
544 | SWIG_Check_bool(PyObject* obj) | |
545 | { | |
546 | return SWIG_AsVal_bool(obj, (bool*)0); | |
547 | } | |
548 | ||
549 | ||
550 | WXSHAPE_IMP_CALLBACKS(wxPyShape, wxShape); | |
551 | ||
552 | PyObject *wxPyShape_GetChildren(wxPyShape *self){ | |
553 | wxList& list = self->GetChildren(); | |
554 | return wxPy_ConvertShapeList(&list); | |
555 | } | |
556 | ||
557 | SWIGSTATICINLINE(PyObject*) | |
558 | SWIG_From_bool(bool value) | |
559 | { | |
560 | PyObject *obj = value ? Py_True : Py_False; | |
561 | Py_INCREF(obj); | |
562 | return obj; | |
563 | } | |
564 | ||
565 | ||
566 | ||
567 | PyObject *wxPyShape_GetLines(wxPyShape *self){ | |
568 | wxList& list = self->GetLines(); | |
569 | return wxPy_ConvertShapeList(&list); | |
570 | } | |
571 | ||
572 | SWIGSTATICINLINE(long) | |
573 | SWIG_As_long(PyObject* obj) | |
574 | { | |
575 | long v; | |
576 | if (!SWIG_AsVal_long(obj, &v)) { | |
577 | /* | |
578 | this is needed to make valgrind/purify happier. the other | |
579 | solution is throw an exception, but since this code should work | |
580 | with plain C .... | |
581 | */ | |
582 | memset((void*)&v, 0, sizeof(long)); | |
583 | } | |
584 | return v; | |
585 | } | |
586 | ||
587 | ||
588 | SWIGSTATICINLINE(int) | |
589 | SWIG_Check_long(PyObject* obj) | |
590 | { | |
591 | return SWIG_AsVal_long(obj, (long*)0); | |
592 | } | |
593 | ||
594 | PyObject *wxPyShape_GetRegions(wxPyShape *self){ | |
595 | wxList& list = self->GetRegions(); | |
596 | return wxPy_ConvertList(&list); | |
597 | } | |
598 | PyObject *wxPyShape_GetAttachments(wxPyShape *self){ | |
599 | wxList& list = self->GetAttachments(); | |
600 | return wxPy_ConvertList(&list); | |
601 | } | |
602 | void wxPyShape_ApplyAttachmentOrdering(wxPyShape *self,PyObject *linesToSort){ | |
603 | wxList* list = wxPy_wxListHelper(linesToSort, wxT("wxPyLineShape")); | |
604 | self->ApplyAttachmentOrdering(*list); | |
605 | delete list; | |
606 | } | |
607 | ||
608 | // Using this macro can sometimes provoke an Internal Compiler Error in MSVC | |
609 | // 6, so instead I'l just expand it out by hand... | |
610 | // WXSHAPE_IMP_CALLBACKS(wxPyRectangleShape, wxRectangleShape); | |
611 | ||
612 | IMP_PYCALLBACK__ (wxPyRectangleShape, wxRectangleShape, OnDelete); | |
613 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnDraw); | |
614 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnDrawContents); | |
615 | IMP_PYCALLBACK__DCBOOL (wxPyRectangleShape, wxRectangleShape, OnDrawBranches); | |
616 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnMoveLinks); | |
617 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnErase); | |
618 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnEraseContents); | |
619 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnHighlight); | |
620 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnLeftClick); | |
621 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnLeftDoubleClick); | |
622 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnRightClick); | |
623 | IMP_PYCALLBACK__2DBL (wxPyRectangleShape, wxRectangleShape, OnSize); | |
624 | IMP_PYCALLBACK_BOOL_DC4DBLBOOL (wxPyRectangleShape, wxRectangleShape, OnMovePre); | |
625 | IMP_PYCALLBACK__DC4DBLBOOL (wxPyRectangleShape, wxRectangleShape, OnMovePost); | |
626 | IMP_PYCALLBACK__BOOL2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnDragLeft); | |
627 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnBeginDragLeft); | |
628 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnEndDragLeft); | |
629 | IMP_PYCALLBACK__BOOL2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnDragRight); | |
630 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnBeginDragRight); | |
631 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnEndDragRight); | |
632 | IMP_PYCALLBACK__DC4DBL (wxPyRectangleShape, wxRectangleShape, OnDrawOutline); | |
633 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnDrawControlPoints); | |
634 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnEraseControlPoints); | |
635 | IMP_PYCALLBACK__DCBOOL (wxPyRectangleShape, wxRectangleShape, OnMoveLink); | |
636 | IMP_PYCALLBACK__WXCPBOOL2DBL2INT(wxPyRectangleShape, wxRectangleShape, OnSizingDragLeft); | |
637 | IMP_PYCALLBACK__WXCP2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnSizingBeginDragLeft); | |
638 | IMP_PYCALLBACK__WXCP2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnSizingEndDragLeft); | |
639 | IMP_PYCALLBACK__2DBL (wxPyRectangleShape, wxRectangleShape, OnBeginSize); | |
640 | IMP_PYCALLBACK__2DBL (wxPyRectangleShape, wxRectangleShape, OnEndSize) | |
641 | ||
642 | ||
643 | ||
644 | WXSHAPE_IMP_CALLBACKS(wxPyControlPoint, wxControlPoint); | |
645 | ||
646 | ||
647 | WXSHAPE_IMP_CALLBACKS(wxPyBitmapShape, wxBitmapShape); | |
648 | ||
649 | ||
650 | WXSHAPE_IMP_CALLBACKS(wxPyDrawnShape, wxDrawnShape); | |
651 | ||
652 | wxOGLConstraint *new_wxOGLConstraint(int type,wxPyShape *constraining,PyObject *constrained){ | |
653 | wxList* list = wxPy_wxListHelper(constrained, wxT("wxPyShape")); | |
654 | wxOGLConstraint* rv = new wxOGLConstraint(type, constraining, *list); | |
655 | delete list; | |
656 | return rv; | |
657 | } | |
658 | ||
659 | WXSHAPE_IMP_CALLBACKS(wxPyCompositeShape, wxCompositeShape); | |
660 | ||
661 | wxOGLConstraint *wxPyCompositeShape_AddConstrainedShapes(wxPyCompositeShape *self,int type,wxPyShape *constraining,PyObject *constrained){ | |
662 | wxList* list = wxPy_wxListHelper(constrained, wxT("wxPyShape")); | |
663 | wxOGLConstraint* rv = self->AddConstraint(type, constraining, *list); | |
664 | delete list; | |
665 | return rv; | |
666 | } | |
667 | PyObject *wxPyCompositeShape_GetConstraints(wxPyCompositeShape *self){ | |
668 | wxList& list = self->GetConstraints(); | |
669 | return wxPy_ConvertList(&list); | |
670 | } | |
671 | PyObject *wxPyCompositeShape_GetDivisions(wxPyCompositeShape *self){ | |
672 | wxList& list = self->GetDivisions(); | |
673 | return wxPy_ConvertShapeList(&list); | |
674 | } | |
675 | ||
676 | WXSHAPE_IMP_CALLBACKS(wxPyDividedShape, wxDividedShape); | |
677 | ||
678 | ||
679 | WXSHAPE_IMP_CALLBACKS(wxPyDivisionShape, wxDivisionShape); | |
680 | ||
681 | ||
682 | WXSHAPE_IMP_CALLBACKS(wxPyEllipseShape, wxEllipseShape); | |
683 | ||
684 | ||
685 | WXSHAPE_IMP_CALLBACKS(wxPyCircleShape, wxCircleShape); | |
686 | ||
687 | ||
688 | WXSHAPE_IMP_CALLBACKS(wxPyLineShape, wxLineShape); | |
689 | ||
690 | void wxPyLineShape_AddArrowOrdered(wxPyLineShape *self,wxArrowHead *arrow,PyObject *referenceList,int end){ | |
691 | wxList* list = wxPy_wxListHelper(referenceList, wxT("wxArrowHead")); | |
692 | self->AddArrowOrdered(arrow, *list, end); | |
693 | delete list; | |
694 | } | |
695 | PyObject *wxPyLineShape_GetLineControlPoints(wxPyLineShape *self){ | |
696 | wxList* list = self->GetLineControlPoints(); | |
697 | return wxPy_ConvertRealPointList(list); | |
698 | } | |
699 | void wxPyLineShape_SetLineControlPoints(wxPyLineShape *self,PyObject *list){ | |
700 | wxList* real_point_list = wxPy_wxRealPoint_ListHelper(list); | |
701 | self->MakeLineControlPoints((int)(real_point_list->GetCount())); | |
702 | wxList* old_control_points = self->GetLineControlPoints(); | |
703 | wxNode* old_node = old_control_points->GetFirst(); | |
704 | wxNode* real_node = real_point_list->GetFirst(); | |
705 | while(old_node) | |
706 | { | |
707 | wxRealPoint* old_point = (wxRealPoint*)old_node->GetData(); | |
708 | wxRealPoint* new_point = (wxRealPoint*)real_node->GetData(); | |
709 | old_point->x = new_point->x; | |
710 | old_point->y = new_point->y; | |
711 | old_node = old_node->GetNext(); | |
712 | real_node = real_node->GetNext(); | |
713 | } | |
714 | self->ClearPointList(*real_point_list); | |
715 | delete real_point_list; | |
716 | } | |
717 | ||
718 | WXSHAPE_IMP_CALLBACKS(wxPyPolygonShape, wxPolygonShape); | |
719 | ||
720 | PyObject *wxPyPolygonShape_Create(wxPyPolygonShape *self,PyObject *points){ | |
721 | wxList* list = wxPy_wxRealPoint_ListHelper(points); | |
722 | if (list) { | |
723 | self->Create(list); | |
724 | Py_INCREF(Py_None); | |
725 | return Py_None; | |
726 | } | |
727 | else return NULL; | |
728 | } | |
729 | PyObject *wxPyPolygonShape_GetPoints(wxPyPolygonShape *self){ | |
730 | wxList* list = self->GetPoints(); | |
731 | return wxPy_ConvertRealPointList(list); | |
732 | } | |
733 | PyObject *wxPyPolygonShape_GetOriginalPoints(wxPyPolygonShape *self){ | |
734 | wxList* list = self->GetOriginalPoints(); | |
735 | PyObject* pyList; | |
736 | PyObject* pyObj; | |
737 | wxObject* wxObj; | |
738 | wxNode* node = list->GetFirst(); | |
739 | ||
740 | bool blocked = wxPyBeginBlockThreads(); | |
741 | pyList = PyList_New(0); | |
742 | while (node) { | |
743 | wxObj = node->GetData(); | |
744 | pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0); | |
745 | PyList_Append(pyList, pyObj); | |
746 | node = node->GetNext(); | |
747 | } | |
748 | wxPyEndBlockThreads(blocked); | |
749 | return pyList; | |
750 | } | |
751 | ||
752 | WXSHAPE_IMP_CALLBACKS(wxPyTextShape, wxTextShape); | |
753 | ||
754 | ||
755 | // Put some wx default wxChar* values into wxStrings. | |
756 | DECLARE_DEF_STRING(ShapeCanvasNameStr); | |
757 | ||
758 | PyObject *wxDiagram_GetShapeList(wxDiagram *self){ | |
759 | wxList* list = self->GetShapeList(); | |
760 | return wxPy_ConvertShapeList(list); | |
761 | } | |
762 | ||
763 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragLeft); | |
764 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragRight); | |
765 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragLeft); | |
766 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragRight); | |
767 | IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragLeft); | |
768 | IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragRight); | |
769 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnLeftClick); | |
770 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnRightClick); | |
771 | ||
772 | ||
773 | //--------------------------------------------------------------------------- | |
774 | ||
775 | // Convert from a Python list to a list of className objects. This one will | |
776 | // work for any class for the VERY generic cases, but beyond that the helper | |
777 | // needs to know more about the type. | |
778 | wxList* wxPy_wxListHelper(PyObject* pyList, const wxChar* className) { | |
779 | bool blocked = wxPyBeginBlockThreads(); | |
780 | if (!PyList_Check(pyList)) { | |
781 | PyErr_SetString(PyExc_TypeError, "Expected a list object."); | |
782 | wxPyEndBlockThreads(blocked); | |
783 | return NULL; | |
784 | } | |
785 | int count = PyList_Size(pyList); | |
786 | wxList* list = new wxList; | |
787 | if (! list) { | |
788 | PyErr_SetString(PyExc_MemoryError, "Unable to allocate wxList object"); | |
789 | wxPyEndBlockThreads(blocked); | |
790 | return NULL; | |
791 | } | |
792 | for (int x=0; x<count; x++) { | |
793 | PyObject* pyo = PyList_GetItem(pyList, x); | |
794 | wxObject* wxo = NULL; | |
795 | ||
796 | if ( !wxPyConvertSwigPtr(pyo, (void **)&wxo, className) ) { | |
797 | wxString errmsg; | |
798 | errmsg.Printf(wxT("Type error, expected list of %s objects"), className); | |
799 | PyErr_SetString(PyExc_TypeError, errmsg.mb_str()); | |
800 | wxPyEndBlockThreads(blocked); | |
801 | return NULL; | |
802 | } | |
803 | list->Append(wxo); | |
804 | } | |
805 | wxPyEndBlockThreads(blocked); | |
806 | return list; | |
807 | } | |
808 | ||
809 | //--------------------------------------------------------------------------- | |
810 | ||
811 | wxList* wxPy_wxRealPoint_ListHelper(PyObject* pyList) { | |
812 | bool blocked = wxPyBeginBlockThreads(); | |
813 | if (!PyList_Check(pyList)) { | |
814 | PyErr_SetString(PyExc_TypeError, "Expected a list object."); | |
815 | wxPyEndBlockThreads(blocked); | |
816 | return NULL; | |
817 | } | |
818 | int count = PyList_Size(pyList); | |
819 | wxList* list = new wxList; | |
820 | if (! list) { | |
821 | PyErr_SetString(PyExc_MemoryError, "Unable to allocate wxList object"); | |
822 | wxPyEndBlockThreads(blocked); | |
823 | return NULL; | |
824 | } | |
825 | for (int x=0; x<count; x++) { | |
826 | PyObject* pyo = PyList_GetItem(pyList, x); | |
827 | ||
828 | if (PyTuple_Check(pyo)) { | |
829 | PyObject* o1 = PyNumber_Float(PyTuple_GetItem(pyo, 0)); | |
830 | PyObject* o2 = PyNumber_Float(PyTuple_GetItem(pyo, 1)); | |
831 | ||
832 | double val1 = (o1 ? PyFloat_AsDouble(o1) : 0.0); | |
833 | double val2 = (o2 ? PyFloat_AsDouble(o2) : 0.0); | |
834 | ||
835 | list->Append((wxObject*) new wxRealPoint(val1, val2)); | |
836 | ||
837 | } else { | |
838 | wxRealPoint* wxo = NULL; | |
839 | if (wxPyConvertSwigPtr(pyo, (void **)&wxo, wxT("wxRealPoint"))) { | |
840 | PyErr_SetString(PyExc_TypeError, "Type error, expected list of wxRealPoint objects or 2-tuples"); | |
841 | wxPyEndBlockThreads(blocked); | |
842 | return NULL; | |
843 | } | |
844 | list->Append((wxObject*) new wxRealPoint(*wxo)); | |
845 | } | |
846 | } | |
847 | wxPyEndBlockThreads(blocked); | |
848 | return list; | |
849 | } | |
850 | ||
851 | //--------------------------------------------------------------------------- | |
852 | ||
853 | PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source, bool setThisOwn) { | |
854 | PyObject* target = NULL; | |
855 | ||
856 | if (source && wxIsKindOf(source, wxShapeEvtHandler)) { | |
857 | // If it's derived from wxShapeEvtHandler then there may | |
858 | // already be a pointer to a Python object that we can use | |
859 | // in the OOR data. | |
860 | wxShapeEvtHandler* seh = (wxShapeEvtHandler*)source; | |
861 | wxPyOORClientData* data = (wxPyOORClientData*)seh->GetClientObject(); | |
862 | if (data) { | |
863 | target = data->m_obj; | |
864 | Py_INCREF(target); | |
865 | } | |
866 | } | |
867 | if (! target) { | |
868 | target = wxPyMake_wxObject2(source, setThisOwn, false); | |
869 | if (target != Py_None) | |
870 | ((wxShapeEvtHandler*)source)->SetClientObject(new wxPyOORClientData(target)); | |
871 | } | |
872 | return target; | |
873 | } | |
874 | ||
875 | //--------------------------------------------------------------------------- | |
876 | ||
877 | PyObject* wxPy_ConvertRealPointList(wxListBase* listbase) { | |
878 | wxList* list = (wxList*)listbase; | |
879 | PyObject* pyList; | |
880 | PyObject* pyObj; | |
881 | wxObject* wxObj; | |
882 | wxNode* node = list->GetFirst(); | |
883 | ||
884 | bool blocked = wxPyBeginBlockThreads(); | |
885 | pyList = PyList_New(0); | |
886 | while (node) { | |
887 | wxObj = node->GetData(); | |
888 | pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0); | |
889 | PyList_Append(pyList, pyObj); | |
890 | node = node->GetNext(); | |
891 | } | |
892 | wxPyEndBlockThreads(blocked); | |
893 | return pyList; | |
894 | } | |
895 | ||
896 | //--------------------------------------------------------------------------- | |
897 | ||
898 | PyObject* wxPy_ConvertShapeList(wxListBase* listbase) { | |
899 | wxList* list = (wxList*)listbase; | |
900 | PyObject* pyList; | |
901 | PyObject* pyObj; | |
902 | wxObject* wxObj; | |
903 | wxNode* node = list->GetFirst(); | |
904 | ||
905 | bool blocked = wxPyBeginBlockThreads(); | |
906 | pyList = PyList_New(0); | |
907 | while (node) { | |
908 | wxObj = node->GetData(); | |
909 | pyObj = wxPyMake_wxShapeEvtHandler((wxShapeEvtHandler*)wxObj, false); | |
910 | PyList_Append(pyList, pyObj); | |
911 | node = node->GetNext(); | |
912 | } | |
913 | wxPyEndBlockThreads(blocked); | |
914 | return pyList; | |
915 | } | |
916 | ||
917 | ||
918 | //--------------------------------------------------------------------------- | |
919 | ||
920 | IMPLEMENT_DYNAMIC_CLASS(wxPyShapeCanvas, wxShapeCanvas); | |
921 | IMPLEMENT_DYNAMIC_CLASS(wxPyShapeEvtHandler, wxShapeEvtHandler); | |
922 | IMPLEMENT_ABSTRACT_CLASS(wxPyShape, wxShape); | |
923 | IMPLEMENT_DYNAMIC_CLASS(wxPyRectangleShape, wxRectangleShape); | |
924 | IMPLEMENT_DYNAMIC_CLASS(wxPyControlPoint, wxControlPoint); | |
925 | IMPLEMENT_DYNAMIC_CLASS(wxPyBitmapShape, wxBitmapShape); | |
926 | IMPLEMENT_DYNAMIC_CLASS(wxPyDrawnShape, wxDrawnShape); | |
927 | IMPLEMENT_DYNAMIC_CLASS(wxPyCompositeShape, wxCompositeShape); | |
928 | IMPLEMENT_DYNAMIC_CLASS(wxPyDividedShape, wxDividedShape); | |
929 | IMPLEMENT_DYNAMIC_CLASS(wxPyDivisionShape, wxDivisionShape); | |
930 | IMPLEMENT_DYNAMIC_CLASS(wxPyEllipseShape, wxEllipseShape); | |
931 | IMPLEMENT_DYNAMIC_CLASS(wxPyCircleShape, wxCircleShape); | |
932 | IMPLEMENT_DYNAMIC_CLASS(wxPyLineShape, wxLineShape); | |
933 | IMPLEMENT_DYNAMIC_CLASS(wxPyPolygonShape, wxPolygonShape); | |
934 | IMPLEMENT_DYNAMIC_CLASS(wxPyTextShape, wxTextShape); | |
935 | ||
936 | //--------------------------------------------------------------------------- | |
937 | ||
938 | // extern "C" SWIGEXPORT(void) initoglbasicc(); | |
939 | // extern "C" SWIGEXPORT(void) initoglshapesc(); | |
940 | // extern "C" SWIGEXPORT(void) initoglshapes2c(); | |
941 | // extern "C" SWIGEXPORT(void) initoglcanvasc(); | |
942 | ||
943 | #ifdef __cplusplus | |
944 | extern "C" { | |
945 | #endif | |
946 | static PyObject *_wrap_new_ShapeRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
947 | PyObject *resultobj; | |
948 | wxShapeRegion *result; | |
949 | char *kwnames[] = { | |
950 | NULL | |
951 | }; | |
952 | ||
953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ShapeRegion",kwnames)) goto fail; | |
954 | { | |
955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
956 | result = (wxShapeRegion *)new wxShapeRegion(); | |
957 | ||
958 | wxPyEndAllowThreads(__tstate); | |
959 | if (PyErr_Occurred()) SWIG_fail; | |
960 | } | |
961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShapeRegion, 1); | |
962 | return resultobj; | |
963 | fail: | |
964 | return NULL; | |
965 | } | |
966 | ||
967 | ||
968 | static PyObject *_wrap_ShapeRegion_SetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
969 | PyObject *resultobj; | |
970 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
971 | wxString *arg2 = 0 ; | |
972 | bool temp2 = false ; | |
973 | PyObject * obj0 = 0 ; | |
974 | PyObject * obj1 = 0 ; | |
975 | char *kwnames[] = { | |
976 | (char *) "self",(char *) "s", NULL | |
977 | }; | |
978 | ||
979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetText",kwnames,&obj0,&obj1)) goto fail; | |
980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
982 | { | |
983 | arg2 = wxString_in_helper(obj1); | |
984 | if (arg2 == NULL) SWIG_fail; | |
985 | temp2 = true; | |
986 | } | |
987 | { | |
988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
989 | (arg1)->SetText((wxString const &)*arg2); | |
990 | ||
991 | wxPyEndAllowThreads(__tstate); | |
992 | if (PyErr_Occurred()) SWIG_fail; | |
993 | } | |
994 | Py_INCREF(Py_None); resultobj = Py_None; | |
995 | { | |
996 | if (temp2) | |
997 | delete arg2; | |
998 | } | |
999 | return resultobj; | |
1000 | fail: | |
1001 | { | |
1002 | if (temp2) | |
1003 | delete arg2; | |
1004 | } | |
1005 | return NULL; | |
1006 | } | |
1007 | ||
1008 | ||
1009 | static PyObject *_wrap_ShapeRegion_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
1010 | PyObject *resultobj; | |
1011 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1012 | wxFont *arg2 = (wxFont *) 0 ; | |
1013 | PyObject * obj0 = 0 ; | |
1014 | PyObject * obj1 = 0 ; | |
1015 | char *kwnames[] = { | |
1016 | (char *) "self",(char *) "f", NULL | |
1017 | }; | |
1018 | ||
1019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
1020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1022 | { | |
1023 | wxFont* temp; | |
1024 | if (obj1) { | |
1025 | if (obj1 == Py_None) { | |
1026 | temp = NULL; | |
1027 | } | |
1028 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
1029 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
1030 | return NULL; | |
1031 | } | |
1032 | } | |
1033 | if (temp) | |
1034 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
1035 | temp->GetFamily(), | |
1036 | temp->GetStyle(), | |
1037 | temp->GetWeight(), | |
1038 | temp->GetUnderlined(), | |
1039 | temp->GetFaceName(), | |
1040 | temp->GetEncoding()); | |
1041 | else | |
1042 | arg2 = NULL; | |
1043 | } | |
1044 | { | |
1045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1046 | (arg1)->SetFont(arg2); | |
1047 | ||
1048 | wxPyEndAllowThreads(__tstate); | |
1049 | if (PyErr_Occurred()) SWIG_fail; | |
1050 | } | |
1051 | Py_INCREF(Py_None); resultobj = Py_None; | |
1052 | return resultobj; | |
1053 | fail: | |
1054 | return NULL; | |
1055 | } | |
1056 | ||
1057 | ||
1058 | static PyObject *_wrap_ShapeRegion_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
1059 | PyObject *resultobj; | |
1060 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1061 | double arg2 ; | |
1062 | double arg3 ; | |
1063 | PyObject * obj0 = 0 ; | |
1064 | PyObject * obj1 = 0 ; | |
1065 | PyObject * obj2 = 0 ; | |
1066 | char *kwnames[] = { | |
1067 | (char *) "self",(char *) "w",(char *) "h", NULL | |
1068 | }; | |
1069 | ||
1070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ShapeRegion_SetMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1073 | arg2 = (double)SWIG_As_double(obj1); | |
1074 | if (PyErr_Occurred()) SWIG_fail; | |
1075 | arg3 = (double)SWIG_As_double(obj2); | |
1076 | if (PyErr_Occurred()) SWIG_fail; | |
1077 | { | |
1078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1079 | (arg1)->SetMinSize(arg2,arg3); | |
1080 | ||
1081 | wxPyEndAllowThreads(__tstate); | |
1082 | if (PyErr_Occurred()) SWIG_fail; | |
1083 | } | |
1084 | Py_INCREF(Py_None); resultobj = Py_None; | |
1085 | return resultobj; | |
1086 | fail: | |
1087 | return NULL; | |
1088 | } | |
1089 | ||
1090 | ||
1091 | static PyObject *_wrap_ShapeRegion_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
1092 | PyObject *resultobj; | |
1093 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1094 | double arg2 ; | |
1095 | double arg3 ; | |
1096 | PyObject * obj0 = 0 ; | |
1097 | PyObject * obj1 = 0 ; | |
1098 | PyObject * obj2 = 0 ; | |
1099 | char *kwnames[] = { | |
1100 | (char *) "self",(char *) "w",(char *) "h", NULL | |
1101 | }; | |
1102 | ||
1103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ShapeRegion_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1106 | arg2 = (double)SWIG_As_double(obj1); | |
1107 | if (PyErr_Occurred()) SWIG_fail; | |
1108 | arg3 = (double)SWIG_As_double(obj2); | |
1109 | if (PyErr_Occurred()) SWIG_fail; | |
1110 | { | |
1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1112 | (arg1)->SetSize(arg2,arg3); | |
1113 | ||
1114 | wxPyEndAllowThreads(__tstate); | |
1115 | if (PyErr_Occurred()) SWIG_fail; | |
1116 | } | |
1117 | Py_INCREF(Py_None); resultobj = Py_None; | |
1118 | return resultobj; | |
1119 | fail: | |
1120 | return NULL; | |
1121 | } | |
1122 | ||
1123 | ||
1124 | static PyObject *_wrap_ShapeRegion_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
1125 | PyObject *resultobj; | |
1126 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1127 | double arg2 ; | |
1128 | double arg3 ; | |
1129 | PyObject * obj0 = 0 ; | |
1130 | PyObject * obj1 = 0 ; | |
1131 | PyObject * obj2 = 0 ; | |
1132 | char *kwnames[] = { | |
1133 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1134 | }; | |
1135 | ||
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ShapeRegion_SetPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1139 | arg2 = (double)SWIG_As_double(obj1); | |
1140 | if (PyErr_Occurred()) SWIG_fail; | |
1141 | arg3 = (double)SWIG_As_double(obj2); | |
1142 | if (PyErr_Occurred()) SWIG_fail; | |
1143 | { | |
1144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1145 | (arg1)->SetPosition(arg2,arg3); | |
1146 | ||
1147 | wxPyEndAllowThreads(__tstate); | |
1148 | if (PyErr_Occurred()) SWIG_fail; | |
1149 | } | |
1150 | Py_INCREF(Py_None); resultobj = Py_None; | |
1151 | return resultobj; | |
1152 | fail: | |
1153 | return NULL; | |
1154 | } | |
1155 | ||
1156 | ||
1157 | static PyObject *_wrap_ShapeRegion_SetProportions(PyObject *, PyObject *args, PyObject *kwargs) { | |
1158 | PyObject *resultobj; | |
1159 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1160 | double arg2 ; | |
1161 | double arg3 ; | |
1162 | PyObject * obj0 = 0 ; | |
1163 | PyObject * obj1 = 0 ; | |
1164 | PyObject * obj2 = 0 ; | |
1165 | char *kwnames[] = { | |
1166 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1167 | }; | |
1168 | ||
1169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ShapeRegion_SetProportions",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1172 | arg2 = (double)SWIG_As_double(obj1); | |
1173 | if (PyErr_Occurred()) SWIG_fail; | |
1174 | arg3 = (double)SWIG_As_double(obj2); | |
1175 | if (PyErr_Occurred()) SWIG_fail; | |
1176 | { | |
1177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1178 | (arg1)->SetProportions(arg2,arg3); | |
1179 | ||
1180 | wxPyEndAllowThreads(__tstate); | |
1181 | if (PyErr_Occurred()) SWIG_fail; | |
1182 | } | |
1183 | Py_INCREF(Py_None); resultobj = Py_None; | |
1184 | return resultobj; | |
1185 | fail: | |
1186 | return NULL; | |
1187 | } | |
1188 | ||
1189 | ||
1190 | static PyObject *_wrap_ShapeRegion_SetFormatMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
1191 | PyObject *resultobj; | |
1192 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1193 | int arg2 ; | |
1194 | PyObject * obj0 = 0 ; | |
1195 | PyObject * obj1 = 0 ; | |
1196 | char *kwnames[] = { | |
1197 | (char *) "self",(char *) "mode", NULL | |
1198 | }; | |
1199 | ||
1200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetFormatMode",kwnames,&obj0,&obj1)) goto fail; | |
1201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1203 | arg2 = (int)SWIG_As_int(obj1); | |
1204 | if (PyErr_Occurred()) SWIG_fail; | |
1205 | { | |
1206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1207 | (arg1)->SetFormatMode(arg2); | |
1208 | ||
1209 | wxPyEndAllowThreads(__tstate); | |
1210 | if (PyErr_Occurred()) SWIG_fail; | |
1211 | } | |
1212 | Py_INCREF(Py_None); resultobj = Py_None; | |
1213 | return resultobj; | |
1214 | fail: | |
1215 | return NULL; | |
1216 | } | |
1217 | ||
1218 | ||
1219 | static PyObject *_wrap_ShapeRegion_SetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
1220 | PyObject *resultobj; | |
1221 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1222 | wxString *arg2 = 0 ; | |
1223 | bool temp2 = false ; | |
1224 | PyObject * obj0 = 0 ; | |
1225 | PyObject * obj1 = 0 ; | |
1226 | char *kwnames[] = { | |
1227 | (char *) "self",(char *) "s", NULL | |
1228 | }; | |
1229 | ||
1230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetName",kwnames,&obj0,&obj1)) goto fail; | |
1231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1233 | { | |
1234 | arg2 = wxString_in_helper(obj1); | |
1235 | if (arg2 == NULL) SWIG_fail; | |
1236 | temp2 = true; | |
1237 | } | |
1238 | { | |
1239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1240 | (arg1)->SetName((wxString const &)*arg2); | |
1241 | ||
1242 | wxPyEndAllowThreads(__tstate); | |
1243 | if (PyErr_Occurred()) SWIG_fail; | |
1244 | } | |
1245 | Py_INCREF(Py_None); resultobj = Py_None; | |
1246 | { | |
1247 | if (temp2) | |
1248 | delete arg2; | |
1249 | } | |
1250 | return resultobj; | |
1251 | fail: | |
1252 | { | |
1253 | if (temp2) | |
1254 | delete arg2; | |
1255 | } | |
1256 | return NULL; | |
1257 | } | |
1258 | ||
1259 | ||
1260 | static PyObject *_wrap_ShapeRegion_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
1261 | PyObject *resultobj; | |
1262 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1263 | wxString *arg2 = 0 ; | |
1264 | bool temp2 = false ; | |
1265 | PyObject * obj0 = 0 ; | |
1266 | PyObject * obj1 = 0 ; | |
1267 | char *kwnames[] = { | |
1268 | (char *) "self",(char *) "col", NULL | |
1269 | }; | |
1270 | ||
1271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1274 | { | |
1275 | arg2 = wxString_in_helper(obj1); | |
1276 | if (arg2 == NULL) SWIG_fail; | |
1277 | temp2 = true; | |
1278 | } | |
1279 | { | |
1280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1281 | (arg1)->SetColour((wxString const &)*arg2); | |
1282 | ||
1283 | wxPyEndAllowThreads(__tstate); | |
1284 | if (PyErr_Occurred()) SWIG_fail; | |
1285 | } | |
1286 | Py_INCREF(Py_None); resultobj = Py_None; | |
1287 | { | |
1288 | if (temp2) | |
1289 | delete arg2; | |
1290 | } | |
1291 | return resultobj; | |
1292 | fail: | |
1293 | { | |
1294 | if (temp2) | |
1295 | delete arg2; | |
1296 | } | |
1297 | return NULL; | |
1298 | } | |
1299 | ||
1300 | ||
1301 | static PyObject *_wrap_ShapeRegion_GetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
1302 | PyObject *resultobj; | |
1303 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1304 | wxString result; | |
1305 | PyObject * obj0 = 0 ; | |
1306 | char *kwnames[] = { | |
1307 | (char *) "self", NULL | |
1308 | }; | |
1309 | ||
1310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetText",kwnames,&obj0)) goto fail; | |
1311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1313 | { | |
1314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1315 | result = (arg1)->GetText(); | |
1316 | ||
1317 | wxPyEndAllowThreads(__tstate); | |
1318 | if (PyErr_Occurred()) SWIG_fail; | |
1319 | } | |
1320 | { | |
1321 | #if wxUSE_UNICODE | |
1322 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1323 | #else | |
1324 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1325 | #endif | |
1326 | } | |
1327 | return resultobj; | |
1328 | fail: | |
1329 | return NULL; | |
1330 | } | |
1331 | ||
1332 | ||
1333 | static PyObject *_wrap_ShapeRegion_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
1334 | PyObject *resultobj; | |
1335 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1336 | wxFont *result; | |
1337 | PyObject * obj0 = 0 ; | |
1338 | char *kwnames[] = { | |
1339 | (char *) "self", NULL | |
1340 | }; | |
1341 | ||
1342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetFont",kwnames,&obj0)) goto fail; | |
1343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1345 | { | |
1346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1347 | result = (wxFont *)(arg1)->GetFont(); | |
1348 | ||
1349 | wxPyEndAllowThreads(__tstate); | |
1350 | if (PyErr_Occurred()) SWIG_fail; | |
1351 | } | |
1352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
1353 | return resultobj; | |
1354 | fail: | |
1355 | return NULL; | |
1356 | } | |
1357 | ||
1358 | ||
1359 | static PyObject *_wrap_ShapeRegion_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
1360 | PyObject *resultobj; | |
1361 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1362 | double *arg2 = (double *) 0 ; | |
1363 | double *arg3 = (double *) 0 ; | |
1364 | double temp2 ; | |
1365 | int res2 = 0 ; | |
1366 | double temp3 ; | |
1367 | int res3 = 0 ; | |
1368 | PyObject * obj0 = 0 ; | |
1369 | char *kwnames[] = { | |
1370 | (char *) "self", NULL | |
1371 | }; | |
1372 | ||
1373 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
1374 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetMinSize",kwnames,&obj0)) goto fail; | |
1376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1378 | { | |
1379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1380 | (arg1)->GetMinSize(arg2,arg3); | |
1381 | ||
1382 | wxPyEndAllowThreads(__tstate); | |
1383 | if (PyErr_Occurred()) SWIG_fail; | |
1384 | } | |
1385 | Py_INCREF(Py_None); resultobj = Py_None; | |
1386 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
1387 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
1388 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
1389 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
1390 | return resultobj; | |
1391 | fail: | |
1392 | return NULL; | |
1393 | } | |
1394 | ||
1395 | ||
1396 | static PyObject *_wrap_ShapeRegion_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { | |
1397 | PyObject *resultobj; | |
1398 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1399 | double *arg2 = (double *) 0 ; | |
1400 | double *arg3 = (double *) 0 ; | |
1401 | double temp2 ; | |
1402 | int res2 = 0 ; | |
1403 | double temp3 ; | |
1404 | int res3 = 0 ; | |
1405 | PyObject * obj0 = 0 ; | |
1406 | char *kwnames[] = { | |
1407 | (char *) "self", NULL | |
1408 | }; | |
1409 | ||
1410 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
1411 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetProportion",kwnames,&obj0)) goto fail; | |
1413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1415 | { | |
1416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1417 | (arg1)->GetProportion(arg2,arg3); | |
1418 | ||
1419 | wxPyEndAllowThreads(__tstate); | |
1420 | if (PyErr_Occurred()) SWIG_fail; | |
1421 | } | |
1422 | Py_INCREF(Py_None); resultobj = Py_None; | |
1423 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
1424 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
1425 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
1426 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
1427 | return resultobj; | |
1428 | fail: | |
1429 | return NULL; | |
1430 | } | |
1431 | ||
1432 | ||
1433 | static PyObject *_wrap_ShapeRegion_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
1434 | PyObject *resultobj; | |
1435 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1436 | double *arg2 = (double *) 0 ; | |
1437 | double *arg3 = (double *) 0 ; | |
1438 | double temp2 ; | |
1439 | int res2 = 0 ; | |
1440 | double temp3 ; | |
1441 | int res3 = 0 ; | |
1442 | PyObject * obj0 = 0 ; | |
1443 | char *kwnames[] = { | |
1444 | (char *) "self", NULL | |
1445 | }; | |
1446 | ||
1447 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
1448 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
1449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetSize",kwnames,&obj0)) goto fail; | |
1450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1452 | { | |
1453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1454 | (arg1)->GetSize(arg2,arg3); | |
1455 | ||
1456 | wxPyEndAllowThreads(__tstate); | |
1457 | if (PyErr_Occurred()) SWIG_fail; | |
1458 | } | |
1459 | Py_INCREF(Py_None); resultobj = Py_None; | |
1460 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
1461 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
1462 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
1463 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
1464 | return resultobj; | |
1465 | fail: | |
1466 | return NULL; | |
1467 | } | |
1468 | ||
1469 | ||
1470 | static PyObject *_wrap_ShapeRegion_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
1471 | PyObject *resultobj; | |
1472 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1473 | double *arg2 = (double *) 0 ; | |
1474 | double *arg3 = (double *) 0 ; | |
1475 | double temp2 ; | |
1476 | int res2 = 0 ; | |
1477 | double temp3 ; | |
1478 | int res3 = 0 ; | |
1479 | PyObject * obj0 = 0 ; | |
1480 | char *kwnames[] = { | |
1481 | (char *) "self", NULL | |
1482 | }; | |
1483 | ||
1484 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
1485 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
1486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetPosition",kwnames,&obj0)) goto fail; | |
1487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1489 | { | |
1490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1491 | (arg1)->GetPosition(arg2,arg3); | |
1492 | ||
1493 | wxPyEndAllowThreads(__tstate); | |
1494 | if (PyErr_Occurred()) SWIG_fail; | |
1495 | } | |
1496 | Py_INCREF(Py_None); resultobj = Py_None; | |
1497 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
1498 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
1499 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
1500 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
1501 | return resultobj; | |
1502 | fail: | |
1503 | return NULL; | |
1504 | } | |
1505 | ||
1506 | ||
1507 | static PyObject *_wrap_ShapeRegion_GetFormatMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
1508 | PyObject *resultobj; | |
1509 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1510 | int result; | |
1511 | PyObject * obj0 = 0 ; | |
1512 | char *kwnames[] = { | |
1513 | (char *) "self", NULL | |
1514 | }; | |
1515 | ||
1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetFormatMode",kwnames,&obj0)) goto fail; | |
1517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1519 | { | |
1520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1521 | result = (int)(arg1)->GetFormatMode(); | |
1522 | ||
1523 | wxPyEndAllowThreads(__tstate); | |
1524 | if (PyErr_Occurred()) SWIG_fail; | |
1525 | } | |
1526 | resultobj = SWIG_From_int((int)result); | |
1527 | return resultobj; | |
1528 | fail: | |
1529 | return NULL; | |
1530 | } | |
1531 | ||
1532 | ||
1533 | static PyObject *_wrap_ShapeRegion_GetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
1534 | PyObject *resultobj; | |
1535 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1536 | wxString result; | |
1537 | PyObject * obj0 = 0 ; | |
1538 | char *kwnames[] = { | |
1539 | (char *) "self", NULL | |
1540 | }; | |
1541 | ||
1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetName",kwnames,&obj0)) goto fail; | |
1543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1545 | { | |
1546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1547 | result = (arg1)->GetName(); | |
1548 | ||
1549 | wxPyEndAllowThreads(__tstate); | |
1550 | if (PyErr_Occurred()) SWIG_fail; | |
1551 | } | |
1552 | { | |
1553 | #if wxUSE_UNICODE | |
1554 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1555 | #else | |
1556 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1557 | #endif | |
1558 | } | |
1559 | return resultobj; | |
1560 | fail: | |
1561 | return NULL; | |
1562 | } | |
1563 | ||
1564 | ||
1565 | static PyObject *_wrap_ShapeRegion_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject *resultobj; | |
1567 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1568 | wxString result; | |
1569 | PyObject * obj0 = 0 ; | |
1570 | char *kwnames[] = { | |
1571 | (char *) "self", NULL | |
1572 | }; | |
1573 | ||
1574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetColour",kwnames,&obj0)) goto fail; | |
1575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1577 | { | |
1578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1579 | result = (arg1)->GetColour(); | |
1580 | ||
1581 | wxPyEndAllowThreads(__tstate); | |
1582 | if (PyErr_Occurred()) SWIG_fail; | |
1583 | } | |
1584 | { | |
1585 | #if wxUSE_UNICODE | |
1586 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1587 | #else | |
1588 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1589 | #endif | |
1590 | } | |
1591 | return resultobj; | |
1592 | fail: | |
1593 | return NULL; | |
1594 | } | |
1595 | ||
1596 | ||
1597 | static PyObject *_wrap_ShapeRegion_GetActualColourObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
1598 | PyObject *resultobj; | |
1599 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1600 | wxColour result; | |
1601 | PyObject * obj0 = 0 ; | |
1602 | char *kwnames[] = { | |
1603 | (char *) "self", NULL | |
1604 | }; | |
1605 | ||
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetActualColourObject",kwnames,&obj0)) goto fail; | |
1607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1609 | { | |
1610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1611 | result = (arg1)->GetActualColourObject(); | |
1612 | ||
1613 | wxPyEndAllowThreads(__tstate); | |
1614 | if (PyErr_Occurred()) SWIG_fail; | |
1615 | } | |
1616 | { | |
1617 | wxColour * resultptr; | |
1618 | resultptr = new wxColour((wxColour &) result); | |
1619 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1620 | } | |
1621 | return resultobj; | |
1622 | fail: | |
1623 | return NULL; | |
1624 | } | |
1625 | ||
1626 | ||
1627 | static PyObject *_wrap_ShapeRegion_GetFormattedText(PyObject *, PyObject *args, PyObject *kwargs) { | |
1628 | PyObject *resultobj; | |
1629 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1630 | wxList *result; | |
1631 | PyObject * obj0 = 0 ; | |
1632 | char *kwnames[] = { | |
1633 | (char *) "self", NULL | |
1634 | }; | |
1635 | ||
1636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetFormattedText",kwnames,&obj0)) goto fail; | |
1637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1639 | { | |
1640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1641 | { | |
1642 | wxList &_result_ref = (arg1)->GetFormattedText(); | |
1643 | result = (wxList *) &_result_ref; | |
1644 | } | |
1645 | ||
1646 | wxPyEndAllowThreads(__tstate); | |
1647 | if (PyErr_Occurred()) SWIG_fail; | |
1648 | } | |
1649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxList, 0); | |
1650 | return resultobj; | |
1651 | fail: | |
1652 | return NULL; | |
1653 | } | |
1654 | ||
1655 | ||
1656 | static PyObject *_wrap_ShapeRegion_GetPenColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
1657 | PyObject *resultobj; | |
1658 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1659 | wxString result; | |
1660 | PyObject * obj0 = 0 ; | |
1661 | char *kwnames[] = { | |
1662 | (char *) "self", NULL | |
1663 | }; | |
1664 | ||
1665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetPenColour",kwnames,&obj0)) goto fail; | |
1666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1668 | { | |
1669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1670 | result = (arg1)->GetPenColour(); | |
1671 | ||
1672 | wxPyEndAllowThreads(__tstate); | |
1673 | if (PyErr_Occurred()) SWIG_fail; | |
1674 | } | |
1675 | { | |
1676 | #if wxUSE_UNICODE | |
1677 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1678 | #else | |
1679 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1680 | #endif | |
1681 | } | |
1682 | return resultobj; | |
1683 | fail: | |
1684 | return NULL; | |
1685 | } | |
1686 | ||
1687 | ||
1688 | static PyObject *_wrap_ShapeRegion_GetPenStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
1689 | PyObject *resultobj; | |
1690 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1691 | int result; | |
1692 | PyObject * obj0 = 0 ; | |
1693 | char *kwnames[] = { | |
1694 | (char *) "self", NULL | |
1695 | }; | |
1696 | ||
1697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetPenStyle",kwnames,&obj0)) goto fail; | |
1698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1700 | { | |
1701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1702 | result = (int)(arg1)->GetPenStyle(); | |
1703 | ||
1704 | wxPyEndAllowThreads(__tstate); | |
1705 | if (PyErr_Occurred()) SWIG_fail; | |
1706 | } | |
1707 | resultobj = SWIG_From_int((int)result); | |
1708 | return resultobj; | |
1709 | fail: | |
1710 | return NULL; | |
1711 | } | |
1712 | ||
1713 | ||
1714 | static PyObject *_wrap_ShapeRegion_SetPenStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
1715 | PyObject *resultobj; | |
1716 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1717 | int arg2 ; | |
1718 | PyObject * obj0 = 0 ; | |
1719 | PyObject * obj1 = 0 ; | |
1720 | char *kwnames[] = { | |
1721 | (char *) "self",(char *) "style", NULL | |
1722 | }; | |
1723 | ||
1724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetPenStyle",kwnames,&obj0,&obj1)) goto fail; | |
1725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1727 | arg2 = (int)SWIG_As_int(obj1); | |
1728 | if (PyErr_Occurred()) SWIG_fail; | |
1729 | { | |
1730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1731 | (arg1)->SetPenStyle(arg2); | |
1732 | ||
1733 | wxPyEndAllowThreads(__tstate); | |
1734 | if (PyErr_Occurred()) SWIG_fail; | |
1735 | } | |
1736 | Py_INCREF(Py_None); resultobj = Py_None; | |
1737 | return resultobj; | |
1738 | fail: | |
1739 | return NULL; | |
1740 | } | |
1741 | ||
1742 | ||
1743 | static PyObject *_wrap_ShapeRegion_SetPenColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
1744 | PyObject *resultobj; | |
1745 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1746 | wxString *arg2 = 0 ; | |
1747 | bool temp2 = false ; | |
1748 | PyObject * obj0 = 0 ; | |
1749 | PyObject * obj1 = 0 ; | |
1750 | char *kwnames[] = { | |
1751 | (char *) "self",(char *) "col", NULL | |
1752 | }; | |
1753 | ||
1754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetPenColour",kwnames,&obj0,&obj1)) goto fail; | |
1755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1757 | { | |
1758 | arg2 = wxString_in_helper(obj1); | |
1759 | if (arg2 == NULL) SWIG_fail; | |
1760 | temp2 = true; | |
1761 | } | |
1762 | { | |
1763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1764 | (arg1)->SetPenColour((wxString const &)*arg2); | |
1765 | ||
1766 | wxPyEndAllowThreads(__tstate); | |
1767 | if (PyErr_Occurred()) SWIG_fail; | |
1768 | } | |
1769 | Py_INCREF(Py_None); resultobj = Py_None; | |
1770 | { | |
1771 | if (temp2) | |
1772 | delete arg2; | |
1773 | } | |
1774 | return resultobj; | |
1775 | fail: | |
1776 | { | |
1777 | if (temp2) | |
1778 | delete arg2; | |
1779 | } | |
1780 | return NULL; | |
1781 | } | |
1782 | ||
1783 | ||
1784 | static PyObject *_wrap_ShapeRegion_GetActualPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
1785 | PyObject *resultobj; | |
1786 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1787 | wxPen *result; | |
1788 | PyObject * obj0 = 0 ; | |
1789 | char *kwnames[] = { | |
1790 | (char *) "self", NULL | |
1791 | }; | |
1792 | ||
1793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetActualPen",kwnames,&obj0)) goto fail; | |
1794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1796 | { | |
1797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1798 | result = (wxPen *)(arg1)->GetActualPen(); | |
1799 | ||
1800 | wxPyEndAllowThreads(__tstate); | |
1801 | if (PyErr_Occurred()) SWIG_fail; | |
1802 | } | |
1803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
1804 | return resultobj; | |
1805 | fail: | |
1806 | return NULL; | |
1807 | } | |
1808 | ||
1809 | ||
1810 | static PyObject *_wrap_ShapeRegion_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
1811 | PyObject *resultobj; | |
1812 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1813 | double result; | |
1814 | PyObject * obj0 = 0 ; | |
1815 | char *kwnames[] = { | |
1816 | (char *) "self", NULL | |
1817 | }; | |
1818 | ||
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetWidth",kwnames,&obj0)) goto fail; | |
1820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1822 | { | |
1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1824 | result = (double)(arg1)->GetWidth(); | |
1825 | ||
1826 | wxPyEndAllowThreads(__tstate); | |
1827 | if (PyErr_Occurred()) SWIG_fail; | |
1828 | } | |
1829 | resultobj = SWIG_From_double((double)result); | |
1830 | return resultobj; | |
1831 | fail: | |
1832 | return NULL; | |
1833 | } | |
1834 | ||
1835 | ||
1836 | static PyObject *_wrap_ShapeRegion_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
1837 | PyObject *resultobj; | |
1838 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1839 | double result; | |
1840 | PyObject * obj0 = 0 ; | |
1841 | char *kwnames[] = { | |
1842 | (char *) "self", NULL | |
1843 | }; | |
1844 | ||
1845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetHeight",kwnames,&obj0)) goto fail; | |
1846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1848 | { | |
1849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1850 | result = (double)(arg1)->GetHeight(); | |
1851 | ||
1852 | wxPyEndAllowThreads(__tstate); | |
1853 | if (PyErr_Occurred()) SWIG_fail; | |
1854 | } | |
1855 | resultobj = SWIG_From_double((double)result); | |
1856 | return resultobj; | |
1857 | fail: | |
1858 | return NULL; | |
1859 | } | |
1860 | ||
1861 | ||
1862 | static PyObject *_wrap_ShapeRegion_ClearText(PyObject *, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject *resultobj; | |
1864 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1865 | PyObject * obj0 = 0 ; | |
1866 | char *kwnames[] = { | |
1867 | (char *) "self", NULL | |
1868 | }; | |
1869 | ||
1870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_ClearText",kwnames,&obj0)) goto fail; | |
1871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, | |
1872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1873 | { | |
1874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1875 | (arg1)->ClearText(); | |
1876 | ||
1877 | wxPyEndAllowThreads(__tstate); | |
1878 | if (PyErr_Occurred()) SWIG_fail; | |
1879 | } | |
1880 | Py_INCREF(Py_None); resultobj = Py_None; | |
1881 | return resultobj; | |
1882 | fail: | |
1883 | return NULL; | |
1884 | } | |
1885 | ||
1886 | ||
1887 | static PyObject * ShapeRegion_swigregister(PyObject *, PyObject *args) { | |
1888 | PyObject *obj; | |
1889 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1890 | SWIG_TypeClientData(SWIGTYPE_p_wxShapeRegion, obj); | |
1891 | Py_INCREF(obj); | |
1892 | return Py_BuildValue((char *)""); | |
1893 | } | |
1894 | static PyObject *_wrap_new_AttachmentPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
1895 | PyObject *resultobj; | |
1896 | int arg1 = (int) 0 ; | |
1897 | double arg2 = (double) 0.0 ; | |
1898 | double arg3 = (double) 0.0 ; | |
1899 | wxAttachmentPoint *result; | |
1900 | PyObject * obj0 = 0 ; | |
1901 | PyObject * obj1 = 0 ; | |
1902 | PyObject * obj2 = 0 ; | |
1903 | char *kwnames[] = { | |
1904 | (char *) "id",(char *) "x",(char *) "y", NULL | |
1905 | }; | |
1906 | ||
1907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AttachmentPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1908 | if (obj0) { | |
1909 | arg1 = (int)SWIG_As_int(obj0); | |
1910 | if (PyErr_Occurred()) SWIG_fail; | |
1911 | } | |
1912 | if (obj1) { | |
1913 | arg2 = (double)SWIG_As_double(obj1); | |
1914 | if (PyErr_Occurred()) SWIG_fail; | |
1915 | } | |
1916 | if (obj2) { | |
1917 | arg3 = (double)SWIG_As_double(obj2); | |
1918 | if (PyErr_Occurred()) SWIG_fail; | |
1919 | } | |
1920 | { | |
1921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1922 | result = (wxAttachmentPoint *)new wxAttachmentPoint(arg1,arg2,arg3); | |
1923 | ||
1924 | wxPyEndAllowThreads(__tstate); | |
1925 | if (PyErr_Occurred()) SWIG_fail; | |
1926 | } | |
1927 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAttachmentPoint, 1); | |
1928 | return resultobj; | |
1929 | fail: | |
1930 | return NULL; | |
1931 | } | |
1932 | ||
1933 | ||
1934 | static PyObject *_wrap_AttachmentPoint_m_id_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
1935 | PyObject *resultobj; | |
1936 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1937 | int arg2 ; | |
1938 | PyObject * obj0 = 0 ; | |
1939 | PyObject * obj1 = 0 ; | |
1940 | char *kwnames[] = { | |
1941 | (char *) "self",(char *) "m_id", NULL | |
1942 | }; | |
1943 | ||
1944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AttachmentPoint_m_id_set",kwnames,&obj0,&obj1)) goto fail; | |
1945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, | |
1946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1947 | arg2 = (int)SWIG_As_int(obj1); | |
1948 | if (PyErr_Occurred()) SWIG_fail; | |
1949 | if (arg1) (arg1)->m_id = arg2; | |
1950 | ||
1951 | Py_INCREF(Py_None); resultobj = Py_None; | |
1952 | return resultobj; | |
1953 | fail: | |
1954 | return NULL; | |
1955 | } | |
1956 | ||
1957 | ||
1958 | static PyObject *_wrap_AttachmentPoint_m_id_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
1959 | PyObject *resultobj; | |
1960 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1961 | int result; | |
1962 | PyObject * obj0 = 0 ; | |
1963 | char *kwnames[] = { | |
1964 | (char *) "self", NULL | |
1965 | }; | |
1966 | ||
1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AttachmentPoint_m_id_get",kwnames,&obj0)) goto fail; | |
1968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, | |
1969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1970 | result = (int) ((arg1)->m_id); | |
1971 | ||
1972 | resultobj = SWIG_From_int((int)result); | |
1973 | return resultobj; | |
1974 | fail: | |
1975 | return NULL; | |
1976 | } | |
1977 | ||
1978 | ||
1979 | static PyObject *_wrap_AttachmentPoint_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
1980 | PyObject *resultobj; | |
1981 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1982 | double arg2 ; | |
1983 | PyObject * obj0 = 0 ; | |
1984 | PyObject * obj1 = 0 ; | |
1985 | char *kwnames[] = { | |
1986 | (char *) "self",(char *) "m_x", NULL | |
1987 | }; | |
1988 | ||
1989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AttachmentPoint_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
1990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, | |
1991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1992 | arg2 = (double)SWIG_As_double(obj1); | |
1993 | if (PyErr_Occurred()) SWIG_fail; | |
1994 | if (arg1) (arg1)->m_x = arg2; | |
1995 | ||
1996 | Py_INCREF(Py_None); resultobj = Py_None; | |
1997 | return resultobj; | |
1998 | fail: | |
1999 | return NULL; | |
2000 | } | |
2001 | ||
2002 | ||
2003 | static PyObject *_wrap_AttachmentPoint_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2004 | PyObject *resultobj; | |
2005 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
2006 | double result; | |
2007 | PyObject * obj0 = 0 ; | |
2008 | char *kwnames[] = { | |
2009 | (char *) "self", NULL | |
2010 | }; | |
2011 | ||
2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AttachmentPoint_m_x_get",kwnames,&obj0)) goto fail; | |
2013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, | |
2014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2015 | result = (double) ((arg1)->m_x); | |
2016 | ||
2017 | resultobj = SWIG_From_double((double)result); | |
2018 | return resultobj; | |
2019 | fail: | |
2020 | return NULL; | |
2021 | } | |
2022 | ||
2023 | ||
2024 | static PyObject *_wrap_AttachmentPoint_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
2025 | PyObject *resultobj; | |
2026 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
2027 | double arg2 ; | |
2028 | PyObject * obj0 = 0 ; | |
2029 | PyObject * obj1 = 0 ; | |
2030 | char *kwnames[] = { | |
2031 | (char *) "self",(char *) "m_y", NULL | |
2032 | }; | |
2033 | ||
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AttachmentPoint_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, | |
2036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2037 | arg2 = (double)SWIG_As_double(obj1); | |
2038 | if (PyErr_Occurred()) SWIG_fail; | |
2039 | if (arg1) (arg1)->m_y = arg2; | |
2040 | ||
2041 | Py_INCREF(Py_None); resultobj = Py_None; | |
2042 | return resultobj; | |
2043 | fail: | |
2044 | return NULL; | |
2045 | } | |
2046 | ||
2047 | ||
2048 | static PyObject *_wrap_AttachmentPoint_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2049 | PyObject *resultobj; | |
2050 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
2051 | double result; | |
2052 | PyObject * obj0 = 0 ; | |
2053 | char *kwnames[] = { | |
2054 | (char *) "self", NULL | |
2055 | }; | |
2056 | ||
2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AttachmentPoint_m_y_get",kwnames,&obj0)) goto fail; | |
2058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, | |
2059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2060 | result = (double) ((arg1)->m_y); | |
2061 | ||
2062 | resultobj = SWIG_From_double((double)result); | |
2063 | return resultobj; | |
2064 | fail: | |
2065 | return NULL; | |
2066 | } | |
2067 | ||
2068 | ||
2069 | static PyObject * AttachmentPoint_swigregister(PyObject *, PyObject *args) { | |
2070 | PyObject *obj; | |
2071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2072 | SWIG_TypeClientData(SWIGTYPE_p_wxAttachmentPoint, obj); | |
2073 | Py_INCREF(obj); | |
2074 | return Py_BuildValue((char *)""); | |
2075 | } | |
2076 | static PyObject *_wrap_new_PyShapeEvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { | |
2077 | PyObject *resultobj; | |
2078 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) NULL ; | |
2079 | wxPyShape *arg2 = (wxPyShape *) NULL ; | |
2080 | wxPyShapeEvtHandler *result; | |
2081 | PyObject * obj0 = 0 ; | |
2082 | PyObject * obj1 = 0 ; | |
2083 | char *kwnames[] = { | |
2084 | (char *) "prev",(char *) "shape", NULL | |
2085 | }; | |
2086 | ||
2087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyShapeEvtHandler",kwnames,&obj0,&obj1)) goto fail; | |
2088 | if (obj0) { | |
2089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2091 | } | |
2092 | if (obj1) { | |
2093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
2094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2095 | } | |
2096 | { | |
2097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2098 | result = (wxPyShapeEvtHandler *)new wxPyShapeEvtHandler(arg1,arg2); | |
2099 | ||
2100 | wxPyEndAllowThreads(__tstate); | |
2101 | if (PyErr_Occurred()) SWIG_fail; | |
2102 | } | |
2103 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyShapeEvtHandler, 1); | |
2104 | return resultobj; | |
2105 | fail: | |
2106 | return NULL; | |
2107 | } | |
2108 | ||
2109 | ||
2110 | static PyObject *_wrap_PyShapeEvtHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
2111 | PyObject *resultobj; | |
2112 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2113 | PyObject *arg2 = (PyObject *) 0 ; | |
2114 | PyObject *arg3 = (PyObject *) 0 ; | |
2115 | PyObject * obj0 = 0 ; | |
2116 | PyObject * obj1 = 0 ; | |
2117 | PyObject * obj2 = 0 ; | |
2118 | char *kwnames[] = { | |
2119 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
2120 | }; | |
2121 | ||
2122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeEvtHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2125 | arg2 = obj1; | |
2126 | arg3 = obj2; | |
2127 | { | |
2128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2129 | (arg1)->_setCallbackInfo(arg2,arg3); | |
2130 | ||
2131 | wxPyEndAllowThreads(__tstate); | |
2132 | if (PyErr_Occurred()) SWIG_fail; | |
2133 | } | |
2134 | Py_INCREF(Py_None); resultobj = Py_None; | |
2135 | return resultobj; | |
2136 | fail: | |
2137 | return NULL; | |
2138 | } | |
2139 | ||
2140 | ||
2141 | static PyObject *_wrap_PyShapeEvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject *resultobj; | |
2143 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2144 | PyObject *arg2 = (PyObject *) 0 ; | |
2145 | PyObject * obj0 = 0 ; | |
2146 | PyObject * obj1 = 0 ; | |
2147 | char *kwnames[] = { | |
2148 | (char *) "self",(char *) "_self", NULL | |
2149 | }; | |
2150 | ||
2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2154 | arg2 = obj1; | |
2155 | { | |
2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2157 | wxPyShapeEvtHandler__setOORInfo(arg1,arg2); | |
2158 | ||
2159 | wxPyEndAllowThreads(__tstate); | |
2160 | if (PyErr_Occurred()) SWIG_fail; | |
2161 | } | |
2162 | Py_INCREF(Py_None); resultobj = Py_None; | |
2163 | return resultobj; | |
2164 | fail: | |
2165 | return NULL; | |
2166 | } | |
2167 | ||
2168 | ||
2169 | static PyObject *_wrap_PyShapeEvtHandler_SetShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
2170 | PyObject *resultobj; | |
2171 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2172 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
2173 | PyObject * obj0 = 0 ; | |
2174 | PyObject * obj1 = 0 ; | |
2175 | char *kwnames[] = { | |
2176 | (char *) "self",(char *) "sh", NULL | |
2177 | }; | |
2178 | ||
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
2180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2182 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
2183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2184 | { | |
2185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2186 | (arg1)->SetShape(arg2); | |
2187 | ||
2188 | wxPyEndAllowThreads(__tstate); | |
2189 | if (PyErr_Occurred()) SWIG_fail; | |
2190 | } | |
2191 | Py_INCREF(Py_None); resultobj = Py_None; | |
2192 | return resultobj; | |
2193 | fail: | |
2194 | return NULL; | |
2195 | } | |
2196 | ||
2197 | ||
2198 | static PyObject *_wrap_PyShapeEvtHandler_GetShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
2199 | PyObject *resultobj; | |
2200 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2201 | wxPyShape *result; | |
2202 | PyObject * obj0 = 0 ; | |
2203 | char *kwnames[] = { | |
2204 | (char *) "self", NULL | |
2205 | }; | |
2206 | ||
2207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_GetShape",kwnames,&obj0)) goto fail; | |
2208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2210 | { | |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2212 | result = (wxPyShape *)(arg1)->GetShape(); | |
2213 | ||
2214 | wxPyEndAllowThreads(__tstate); | |
2215 | if (PyErr_Occurred()) SWIG_fail; | |
2216 | } | |
2217 | { | |
2218 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
2219 | } | |
2220 | return resultobj; | |
2221 | fail: | |
2222 | return NULL; | |
2223 | } | |
2224 | ||
2225 | ||
2226 | static PyObject *_wrap_PyShapeEvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { | |
2227 | PyObject *resultobj; | |
2228 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2229 | wxPyShapeEvtHandler *arg2 = (wxPyShapeEvtHandler *) 0 ; | |
2230 | PyObject * obj0 = 0 ; | |
2231 | PyObject * obj1 = 0 ; | |
2232 | char *kwnames[] = { | |
2233 | (char *) "self",(char *) "handler", NULL | |
2234 | }; | |
2235 | ||
2236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
2237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2241 | { | |
2242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2243 | (arg1)->SetPreviousHandler(arg2); | |
2244 | ||
2245 | wxPyEndAllowThreads(__tstate); | |
2246 | if (PyErr_Occurred()) SWIG_fail; | |
2247 | } | |
2248 | Py_INCREF(Py_None); resultobj = Py_None; | |
2249 | return resultobj; | |
2250 | fail: | |
2251 | return NULL; | |
2252 | } | |
2253 | ||
2254 | ||
2255 | static PyObject *_wrap_PyShapeEvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { | |
2256 | PyObject *resultobj; | |
2257 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2258 | wxPyShapeEvtHandler *result; | |
2259 | PyObject * obj0 = 0 ; | |
2260 | char *kwnames[] = { | |
2261 | (char *) "self", NULL | |
2262 | }; | |
2263 | ||
2264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
2265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2267 | { | |
2268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2269 | result = (wxPyShapeEvtHandler *)(arg1)->GetPreviousHandler(); | |
2270 | ||
2271 | wxPyEndAllowThreads(__tstate); | |
2272 | if (PyErr_Occurred()) SWIG_fail; | |
2273 | } | |
2274 | { | |
2275 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
2276 | } | |
2277 | return resultobj; | |
2278 | fail: | |
2279 | return NULL; | |
2280 | } | |
2281 | ||
2282 | ||
2283 | static PyObject *_wrap_PyShapeEvtHandler_CreateNewCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
2284 | PyObject *resultobj; | |
2285 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2286 | wxPyShapeEvtHandler *result; | |
2287 | PyObject * obj0 = 0 ; | |
2288 | char *kwnames[] = { | |
2289 | (char *) "self", NULL | |
2290 | }; | |
2291 | ||
2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_CreateNewCopy",kwnames,&obj0)) goto fail; | |
2293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2295 | { | |
2296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2297 | result = (wxPyShapeEvtHandler *)(arg1)->CreateNewCopy(); | |
2298 | ||
2299 | wxPyEndAllowThreads(__tstate); | |
2300 | if (PyErr_Occurred()) SWIG_fail; | |
2301 | } | |
2302 | { | |
2303 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
2304 | } | |
2305 | return resultobj; | |
2306 | fail: | |
2307 | return NULL; | |
2308 | } | |
2309 | ||
2310 | ||
2311 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject *resultobj; | |
2313 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2314 | PyObject * obj0 = 0 ; | |
2315 | char *kwnames[] = { | |
2316 | (char *) "self", NULL | |
2317 | }; | |
2318 | ||
2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_base_OnDelete",kwnames,&obj0)) goto fail; | |
2320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2322 | { | |
2323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2324 | (arg1)->base_OnDelete(); | |
2325 | ||
2326 | wxPyEndAllowThreads(__tstate); | |
2327 | if (PyErr_Occurred()) SWIG_fail; | |
2328 | } | |
2329 | Py_INCREF(Py_None); resultobj = Py_None; | |
2330 | return resultobj; | |
2331 | fail: | |
2332 | return NULL; | |
2333 | } | |
2334 | ||
2335 | ||
2336 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
2337 | PyObject *resultobj; | |
2338 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2339 | wxDC *arg2 = 0 ; | |
2340 | PyObject * obj0 = 0 ; | |
2341 | PyObject * obj1 = 0 ; | |
2342 | char *kwnames[] = { | |
2343 | (char *) "self",(char *) "dc", NULL | |
2344 | }; | |
2345 | ||
2346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2349 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2350 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2351 | SWIG_fail; | |
2352 | if (arg2 == NULL) { | |
2353 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2354 | SWIG_fail; | |
2355 | } | |
2356 | { | |
2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2358 | (arg1)->base_OnDraw(*arg2); | |
2359 | ||
2360 | wxPyEndAllowThreads(__tstate); | |
2361 | if (PyErr_Occurred()) SWIG_fail; | |
2362 | } | |
2363 | Py_INCREF(Py_None); resultobj = Py_None; | |
2364 | return resultobj; | |
2365 | fail: | |
2366 | return NULL; | |
2367 | } | |
2368 | ||
2369 | ||
2370 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
2371 | PyObject *resultobj; | |
2372 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2373 | wxDC *arg2 = 0 ; | |
2374 | PyObject * obj0 = 0 ; | |
2375 | PyObject * obj1 = 0 ; | |
2376 | char *kwnames[] = { | |
2377 | (char *) "self",(char *) "dc", NULL | |
2378 | }; | |
2379 | ||
2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2384 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2385 | SWIG_fail; | |
2386 | if (arg2 == NULL) { | |
2387 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2388 | SWIG_fail; | |
2389 | } | |
2390 | { | |
2391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2392 | (arg1)->base_OnDrawContents(*arg2); | |
2393 | ||
2394 | wxPyEndAllowThreads(__tstate); | |
2395 | if (PyErr_Occurred()) SWIG_fail; | |
2396 | } | |
2397 | Py_INCREF(Py_None); resultobj = Py_None; | |
2398 | return resultobj; | |
2399 | fail: | |
2400 | return NULL; | |
2401 | } | |
2402 | ||
2403 | ||
2404 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
2405 | PyObject *resultobj; | |
2406 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2407 | wxDC *arg2 = 0 ; | |
2408 | bool arg3 = (bool) false ; | |
2409 | PyObject * obj0 = 0 ; | |
2410 | PyObject * obj1 = 0 ; | |
2411 | PyObject * obj2 = 0 ; | |
2412 | char *kwnames[] = { | |
2413 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
2414 | }; | |
2415 | ||
2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShapeEvtHandler_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2419 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2420 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2421 | SWIG_fail; | |
2422 | if (arg2 == NULL) { | |
2423 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2424 | SWIG_fail; | |
2425 | } | |
2426 | if (obj2) { | |
2427 | arg3 = (bool)SWIG_As_bool(obj2); | |
2428 | if (PyErr_Occurred()) SWIG_fail; | |
2429 | } | |
2430 | { | |
2431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2432 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
2433 | ||
2434 | wxPyEndAllowThreads(__tstate); | |
2435 | if (PyErr_Occurred()) SWIG_fail; | |
2436 | } | |
2437 | Py_INCREF(Py_None); resultobj = Py_None; | |
2438 | return resultobj; | |
2439 | fail: | |
2440 | return NULL; | |
2441 | } | |
2442 | ||
2443 | ||
2444 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
2445 | PyObject *resultobj; | |
2446 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2447 | wxDC *arg2 = 0 ; | |
2448 | PyObject * obj0 = 0 ; | |
2449 | PyObject * obj1 = 0 ; | |
2450 | char *kwnames[] = { | |
2451 | (char *) "self",(char *) "dc", NULL | |
2452 | }; | |
2453 | ||
2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2457 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2458 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2459 | SWIG_fail; | |
2460 | if (arg2 == NULL) { | |
2461 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2462 | SWIG_fail; | |
2463 | } | |
2464 | { | |
2465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2466 | (arg1)->base_OnMoveLinks(*arg2); | |
2467 | ||
2468 | wxPyEndAllowThreads(__tstate); | |
2469 | if (PyErr_Occurred()) SWIG_fail; | |
2470 | } | |
2471 | Py_INCREF(Py_None); resultobj = Py_None; | |
2472 | return resultobj; | |
2473 | fail: | |
2474 | return NULL; | |
2475 | } | |
2476 | ||
2477 | ||
2478 | static PyObject *_wrap_PyShapeEvtHandler_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
2479 | PyObject *resultobj; | |
2480 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2481 | wxDC *arg2 = 0 ; | |
2482 | PyObject * obj0 = 0 ; | |
2483 | PyObject * obj1 = 0 ; | |
2484 | char *kwnames[] = { | |
2485 | (char *) "self",(char *) "dc", NULL | |
2486 | }; | |
2487 | ||
2488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2491 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2492 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2493 | SWIG_fail; | |
2494 | if (arg2 == NULL) { | |
2495 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2496 | SWIG_fail; | |
2497 | } | |
2498 | { | |
2499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2500 | (arg1)->base_OnErase(*arg2); | |
2501 | ||
2502 | wxPyEndAllowThreads(__tstate); | |
2503 | if (PyErr_Occurred()) SWIG_fail; | |
2504 | } | |
2505 | Py_INCREF(Py_None); resultobj = Py_None; | |
2506 | return resultobj; | |
2507 | fail: | |
2508 | return NULL; | |
2509 | } | |
2510 | ||
2511 | ||
2512 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
2513 | PyObject *resultobj; | |
2514 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2515 | wxDC *arg2 = 0 ; | |
2516 | PyObject * obj0 = 0 ; | |
2517 | PyObject * obj1 = 0 ; | |
2518 | char *kwnames[] = { | |
2519 | (char *) "self",(char *) "dc", NULL | |
2520 | }; | |
2521 | ||
2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2526 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2527 | SWIG_fail; | |
2528 | if (arg2 == NULL) { | |
2529 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2530 | SWIG_fail; | |
2531 | } | |
2532 | { | |
2533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2534 | (arg1)->base_OnEraseContents(*arg2); | |
2535 | ||
2536 | wxPyEndAllowThreads(__tstate); | |
2537 | if (PyErr_Occurred()) SWIG_fail; | |
2538 | } | |
2539 | Py_INCREF(Py_None); resultobj = Py_None; | |
2540 | return resultobj; | |
2541 | fail: | |
2542 | return NULL; | |
2543 | } | |
2544 | ||
2545 | ||
2546 | static PyObject *_wrap_PyShapeEvtHandler_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
2547 | PyObject *resultobj; | |
2548 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2549 | wxDC *arg2 = 0 ; | |
2550 | PyObject * obj0 = 0 ; | |
2551 | PyObject * obj1 = 0 ; | |
2552 | char *kwnames[] = { | |
2553 | (char *) "self",(char *) "dc", NULL | |
2554 | }; | |
2555 | ||
2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2559 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2560 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2561 | SWIG_fail; | |
2562 | if (arg2 == NULL) { | |
2563 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2564 | SWIG_fail; | |
2565 | } | |
2566 | { | |
2567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2568 | (arg1)->base_OnHighlight(*arg2); | |
2569 | ||
2570 | wxPyEndAllowThreads(__tstate); | |
2571 | if (PyErr_Occurred()) SWIG_fail; | |
2572 | } | |
2573 | Py_INCREF(Py_None); resultobj = Py_None; | |
2574 | return resultobj; | |
2575 | fail: | |
2576 | return NULL; | |
2577 | } | |
2578 | ||
2579 | ||
2580 | static PyObject *_wrap_PyShapeEvtHandler_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
2581 | PyObject *resultobj; | |
2582 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2583 | double arg2 ; | |
2584 | double arg3 ; | |
2585 | int arg4 = (int) 0 ; | |
2586 | int arg5 = (int) 0 ; | |
2587 | PyObject * obj0 = 0 ; | |
2588 | PyObject * obj1 = 0 ; | |
2589 | PyObject * obj2 = 0 ; | |
2590 | PyObject * obj3 = 0 ; | |
2591 | PyObject * obj4 = 0 ; | |
2592 | char *kwnames[] = { | |
2593 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2594 | }; | |
2595 | ||
2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2599 | arg2 = (double)SWIG_As_double(obj1); | |
2600 | if (PyErr_Occurred()) SWIG_fail; | |
2601 | arg3 = (double)SWIG_As_double(obj2); | |
2602 | if (PyErr_Occurred()) SWIG_fail; | |
2603 | if (obj3) { | |
2604 | arg4 = (int)SWIG_As_int(obj3); | |
2605 | if (PyErr_Occurred()) SWIG_fail; | |
2606 | } | |
2607 | if (obj4) { | |
2608 | arg5 = (int)SWIG_As_int(obj4); | |
2609 | if (PyErr_Occurred()) SWIG_fail; | |
2610 | } | |
2611 | { | |
2612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2613 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
2614 | ||
2615 | wxPyEndAllowThreads(__tstate); | |
2616 | if (PyErr_Occurred()) SWIG_fail; | |
2617 | } | |
2618 | Py_INCREF(Py_None); resultobj = Py_None; | |
2619 | return resultobj; | |
2620 | fail: | |
2621 | return NULL; | |
2622 | } | |
2623 | ||
2624 | ||
2625 | static PyObject *_wrap_PyShapeEvtHandler_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
2626 | PyObject *resultobj; | |
2627 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2628 | double arg2 ; | |
2629 | double arg3 ; | |
2630 | int arg4 = (int) 0 ; | |
2631 | int arg5 = (int) 0 ; | |
2632 | PyObject * obj0 = 0 ; | |
2633 | PyObject * obj1 = 0 ; | |
2634 | PyObject * obj2 = 0 ; | |
2635 | PyObject * obj3 = 0 ; | |
2636 | PyObject * obj4 = 0 ; | |
2637 | char *kwnames[] = { | |
2638 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2639 | }; | |
2640 | ||
2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2644 | arg2 = (double)SWIG_As_double(obj1); | |
2645 | if (PyErr_Occurred()) SWIG_fail; | |
2646 | arg3 = (double)SWIG_As_double(obj2); | |
2647 | if (PyErr_Occurred()) SWIG_fail; | |
2648 | if (obj3) { | |
2649 | arg4 = (int)SWIG_As_int(obj3); | |
2650 | if (PyErr_Occurred()) SWIG_fail; | |
2651 | } | |
2652 | if (obj4) { | |
2653 | arg5 = (int)SWIG_As_int(obj4); | |
2654 | if (PyErr_Occurred()) SWIG_fail; | |
2655 | } | |
2656 | { | |
2657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2658 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
2659 | ||
2660 | wxPyEndAllowThreads(__tstate); | |
2661 | if (PyErr_Occurred()) SWIG_fail; | |
2662 | } | |
2663 | Py_INCREF(Py_None); resultobj = Py_None; | |
2664 | return resultobj; | |
2665 | fail: | |
2666 | return NULL; | |
2667 | } | |
2668 | ||
2669 | ||
2670 | static PyObject *_wrap_PyShapeEvtHandler_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
2671 | PyObject *resultobj; | |
2672 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2673 | double arg2 ; | |
2674 | double arg3 ; | |
2675 | int arg4 = (int) 0 ; | |
2676 | int arg5 = (int) 0 ; | |
2677 | PyObject * obj0 = 0 ; | |
2678 | PyObject * obj1 = 0 ; | |
2679 | PyObject * obj2 = 0 ; | |
2680 | PyObject * obj3 = 0 ; | |
2681 | PyObject * obj4 = 0 ; | |
2682 | char *kwnames[] = { | |
2683 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2684 | }; | |
2685 | ||
2686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2689 | arg2 = (double)SWIG_As_double(obj1); | |
2690 | if (PyErr_Occurred()) SWIG_fail; | |
2691 | arg3 = (double)SWIG_As_double(obj2); | |
2692 | if (PyErr_Occurred()) SWIG_fail; | |
2693 | if (obj3) { | |
2694 | arg4 = (int)SWIG_As_int(obj3); | |
2695 | if (PyErr_Occurred()) SWIG_fail; | |
2696 | } | |
2697 | if (obj4) { | |
2698 | arg5 = (int)SWIG_As_int(obj4); | |
2699 | if (PyErr_Occurred()) SWIG_fail; | |
2700 | } | |
2701 | { | |
2702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2703 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
2704 | ||
2705 | wxPyEndAllowThreads(__tstate); | |
2706 | if (PyErr_Occurred()) SWIG_fail; | |
2707 | } | |
2708 | Py_INCREF(Py_None); resultobj = Py_None; | |
2709 | return resultobj; | |
2710 | fail: | |
2711 | return NULL; | |
2712 | } | |
2713 | ||
2714 | ||
2715 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
2716 | PyObject *resultobj; | |
2717 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2718 | double arg2 ; | |
2719 | double arg3 ; | |
2720 | PyObject * obj0 = 0 ; | |
2721 | PyObject * obj1 = 0 ; | |
2722 | PyObject * obj2 = 0 ; | |
2723 | char *kwnames[] = { | |
2724 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2725 | }; | |
2726 | ||
2727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeEvtHandler_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2730 | arg2 = (double)SWIG_As_double(obj1); | |
2731 | if (PyErr_Occurred()) SWIG_fail; | |
2732 | arg3 = (double)SWIG_As_double(obj2); | |
2733 | if (PyErr_Occurred()) SWIG_fail; | |
2734 | { | |
2735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2736 | (arg1)->base_OnSize(arg2,arg3); | |
2737 | ||
2738 | wxPyEndAllowThreads(__tstate); | |
2739 | if (PyErr_Occurred()) SWIG_fail; | |
2740 | } | |
2741 | Py_INCREF(Py_None); resultobj = Py_None; | |
2742 | return resultobj; | |
2743 | fail: | |
2744 | return NULL; | |
2745 | } | |
2746 | ||
2747 | ||
2748 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
2749 | PyObject *resultobj; | |
2750 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2751 | wxDC *arg2 = 0 ; | |
2752 | double arg3 ; | |
2753 | double arg4 ; | |
2754 | double arg5 ; | |
2755 | double arg6 ; | |
2756 | bool arg7 = (bool) true ; | |
2757 | bool result; | |
2758 | PyObject * obj0 = 0 ; | |
2759 | PyObject * obj1 = 0 ; | |
2760 | PyObject * obj2 = 0 ; | |
2761 | PyObject * obj3 = 0 ; | |
2762 | PyObject * obj4 = 0 ; | |
2763 | PyObject * obj5 = 0 ; | |
2764 | PyObject * obj6 = 0 ; | |
2765 | char *kwnames[] = { | |
2766 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
2767 | }; | |
2768 | ||
2769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyShapeEvtHandler_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
2770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2772 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2773 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2774 | SWIG_fail; | |
2775 | if (arg2 == NULL) { | |
2776 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2777 | SWIG_fail; | |
2778 | } | |
2779 | arg3 = (double)SWIG_As_double(obj2); | |
2780 | if (PyErr_Occurred()) SWIG_fail; | |
2781 | arg4 = (double)SWIG_As_double(obj3); | |
2782 | if (PyErr_Occurred()) SWIG_fail; | |
2783 | arg5 = (double)SWIG_As_double(obj4); | |
2784 | if (PyErr_Occurred()) SWIG_fail; | |
2785 | arg6 = (double)SWIG_As_double(obj5); | |
2786 | if (PyErr_Occurred()) SWIG_fail; | |
2787 | if (obj6) { | |
2788 | arg7 = (bool)SWIG_As_bool(obj6); | |
2789 | if (PyErr_Occurred()) SWIG_fail; | |
2790 | } | |
2791 | { | |
2792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2793 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
2794 | ||
2795 | wxPyEndAllowThreads(__tstate); | |
2796 | if (PyErr_Occurred()) SWIG_fail; | |
2797 | } | |
2798 | { | |
2799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2800 | } | |
2801 | return resultobj; | |
2802 | fail: | |
2803 | return NULL; | |
2804 | } | |
2805 | ||
2806 | ||
2807 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
2808 | PyObject *resultobj; | |
2809 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2810 | wxDC *arg2 = 0 ; | |
2811 | double arg3 ; | |
2812 | double arg4 ; | |
2813 | double arg5 ; | |
2814 | double arg6 ; | |
2815 | bool arg7 = (bool) true ; | |
2816 | PyObject * obj0 = 0 ; | |
2817 | PyObject * obj1 = 0 ; | |
2818 | PyObject * obj2 = 0 ; | |
2819 | PyObject * obj3 = 0 ; | |
2820 | PyObject * obj4 = 0 ; | |
2821 | PyObject * obj5 = 0 ; | |
2822 | PyObject * obj6 = 0 ; | |
2823 | char *kwnames[] = { | |
2824 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
2825 | }; | |
2826 | ||
2827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyShapeEvtHandler_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
2828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2830 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2831 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2832 | SWIG_fail; | |
2833 | if (arg2 == NULL) { | |
2834 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2835 | SWIG_fail; | |
2836 | } | |
2837 | arg3 = (double)SWIG_As_double(obj2); | |
2838 | if (PyErr_Occurred()) SWIG_fail; | |
2839 | arg4 = (double)SWIG_As_double(obj3); | |
2840 | if (PyErr_Occurred()) SWIG_fail; | |
2841 | arg5 = (double)SWIG_As_double(obj4); | |
2842 | if (PyErr_Occurred()) SWIG_fail; | |
2843 | arg6 = (double)SWIG_As_double(obj5); | |
2844 | if (PyErr_Occurred()) SWIG_fail; | |
2845 | if (obj6) { | |
2846 | arg7 = (bool)SWIG_As_bool(obj6); | |
2847 | if (PyErr_Occurred()) SWIG_fail; | |
2848 | } | |
2849 | { | |
2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2851 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
2852 | ||
2853 | wxPyEndAllowThreads(__tstate); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
2855 | } | |
2856 | Py_INCREF(Py_None); resultobj = Py_None; | |
2857 | return resultobj; | |
2858 | fail: | |
2859 | return NULL; | |
2860 | } | |
2861 | ||
2862 | ||
2863 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
2864 | PyObject *resultobj; | |
2865 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2866 | bool arg2 ; | |
2867 | double arg3 ; | |
2868 | double arg4 ; | |
2869 | int arg5 = (int) 0 ; | |
2870 | int arg6 = (int) 0 ; | |
2871 | PyObject * obj0 = 0 ; | |
2872 | PyObject * obj1 = 0 ; | |
2873 | PyObject * obj2 = 0 ; | |
2874 | PyObject * obj3 = 0 ; | |
2875 | PyObject * obj4 = 0 ; | |
2876 | PyObject * obj5 = 0 ; | |
2877 | char *kwnames[] = { | |
2878 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2879 | }; | |
2880 | ||
2881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShapeEvtHandler_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
2882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2884 | arg2 = (bool)SWIG_As_bool(obj1); | |
2885 | if (PyErr_Occurred()) SWIG_fail; | |
2886 | arg3 = (double)SWIG_As_double(obj2); | |
2887 | if (PyErr_Occurred()) SWIG_fail; | |
2888 | arg4 = (double)SWIG_As_double(obj3); | |
2889 | if (PyErr_Occurred()) SWIG_fail; | |
2890 | if (obj4) { | |
2891 | arg5 = (int)SWIG_As_int(obj4); | |
2892 | if (PyErr_Occurred()) SWIG_fail; | |
2893 | } | |
2894 | if (obj5) { | |
2895 | arg6 = (int)SWIG_As_int(obj5); | |
2896 | if (PyErr_Occurred()) SWIG_fail; | |
2897 | } | |
2898 | { | |
2899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2900 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
2901 | ||
2902 | wxPyEndAllowThreads(__tstate); | |
2903 | if (PyErr_Occurred()) SWIG_fail; | |
2904 | } | |
2905 | Py_INCREF(Py_None); resultobj = Py_None; | |
2906 | return resultobj; | |
2907 | fail: | |
2908 | return NULL; | |
2909 | } | |
2910 | ||
2911 | ||
2912 | static PyObject *_wrap_PyShapeEvtHandler_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
2913 | PyObject *resultobj; | |
2914 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2915 | double arg2 ; | |
2916 | double arg3 ; | |
2917 | int arg4 = (int) 0 ; | |
2918 | int arg5 = (int) 0 ; | |
2919 | PyObject * obj0 = 0 ; | |
2920 | PyObject * obj1 = 0 ; | |
2921 | PyObject * obj2 = 0 ; | |
2922 | PyObject * obj3 = 0 ; | |
2923 | PyObject * obj4 = 0 ; | |
2924 | char *kwnames[] = { | |
2925 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2926 | }; | |
2927 | ||
2928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2931 | arg2 = (double)SWIG_As_double(obj1); | |
2932 | if (PyErr_Occurred()) SWIG_fail; | |
2933 | arg3 = (double)SWIG_As_double(obj2); | |
2934 | if (PyErr_Occurred()) SWIG_fail; | |
2935 | if (obj3) { | |
2936 | arg4 = (int)SWIG_As_int(obj3); | |
2937 | if (PyErr_Occurred()) SWIG_fail; | |
2938 | } | |
2939 | if (obj4) { | |
2940 | arg5 = (int)SWIG_As_int(obj4); | |
2941 | if (PyErr_Occurred()) SWIG_fail; | |
2942 | } | |
2943 | { | |
2944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2945 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
2946 | ||
2947 | wxPyEndAllowThreads(__tstate); | |
2948 | if (PyErr_Occurred()) SWIG_fail; | |
2949 | } | |
2950 | Py_INCREF(Py_None); resultobj = Py_None; | |
2951 | return resultobj; | |
2952 | fail: | |
2953 | return NULL; | |
2954 | } | |
2955 | ||
2956 | ||
2957 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
2958 | PyObject *resultobj; | |
2959 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2960 | double arg2 ; | |
2961 | double arg3 ; | |
2962 | int arg4 = (int) 0 ; | |
2963 | int arg5 = (int) 0 ; | |
2964 | PyObject * obj0 = 0 ; | |
2965 | PyObject * obj1 = 0 ; | |
2966 | PyObject * obj2 = 0 ; | |
2967 | PyObject * obj3 = 0 ; | |
2968 | PyObject * obj4 = 0 ; | |
2969 | char *kwnames[] = { | |
2970 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2971 | }; | |
2972 | ||
2973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2976 | arg2 = (double)SWIG_As_double(obj1); | |
2977 | if (PyErr_Occurred()) SWIG_fail; | |
2978 | arg3 = (double)SWIG_As_double(obj2); | |
2979 | if (PyErr_Occurred()) SWIG_fail; | |
2980 | if (obj3) { | |
2981 | arg4 = (int)SWIG_As_int(obj3); | |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
2983 | } | |
2984 | if (obj4) { | |
2985 | arg5 = (int)SWIG_As_int(obj4); | |
2986 | if (PyErr_Occurred()) SWIG_fail; | |
2987 | } | |
2988 | { | |
2989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2990 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
2991 | ||
2992 | wxPyEndAllowThreads(__tstate); | |
2993 | if (PyErr_Occurred()) SWIG_fail; | |
2994 | } | |
2995 | Py_INCREF(Py_None); resultobj = Py_None; | |
2996 | return resultobj; | |
2997 | fail: | |
2998 | return NULL; | |
2999 | } | |
3000 | ||
3001 | ||
3002 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
3003 | PyObject *resultobj; | |
3004 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3005 | bool arg2 ; | |
3006 | double arg3 ; | |
3007 | double arg4 ; | |
3008 | int arg5 = (int) 0 ; | |
3009 | int arg6 = (int) 0 ; | |
3010 | PyObject * obj0 = 0 ; | |
3011 | PyObject * obj1 = 0 ; | |
3012 | PyObject * obj2 = 0 ; | |
3013 | PyObject * obj3 = 0 ; | |
3014 | PyObject * obj4 = 0 ; | |
3015 | PyObject * obj5 = 0 ; | |
3016 | char *kwnames[] = { | |
3017 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3018 | }; | |
3019 | ||
3020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShapeEvtHandler_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3023 | arg2 = (bool)SWIG_As_bool(obj1); | |
3024 | if (PyErr_Occurred()) SWIG_fail; | |
3025 | arg3 = (double)SWIG_As_double(obj2); | |
3026 | if (PyErr_Occurred()) SWIG_fail; | |
3027 | arg4 = (double)SWIG_As_double(obj3); | |
3028 | if (PyErr_Occurred()) SWIG_fail; | |
3029 | if (obj4) { | |
3030 | arg5 = (int)SWIG_As_int(obj4); | |
3031 | if (PyErr_Occurred()) SWIG_fail; | |
3032 | } | |
3033 | if (obj5) { | |
3034 | arg6 = (int)SWIG_As_int(obj5); | |
3035 | if (PyErr_Occurred()) SWIG_fail; | |
3036 | } | |
3037 | { | |
3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3039 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
3040 | ||
3041 | wxPyEndAllowThreads(__tstate); | |
3042 | if (PyErr_Occurred()) SWIG_fail; | |
3043 | } | |
3044 | Py_INCREF(Py_None); resultobj = Py_None; | |
3045 | return resultobj; | |
3046 | fail: | |
3047 | return NULL; | |
3048 | } | |
3049 | ||
3050 | ||
3051 | static PyObject *_wrap_PyShapeEvtHandler_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
3052 | PyObject *resultobj; | |
3053 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3054 | double arg2 ; | |
3055 | double arg3 ; | |
3056 | int arg4 = (int) 0 ; | |
3057 | int arg5 = (int) 0 ; | |
3058 | PyObject * obj0 = 0 ; | |
3059 | PyObject * obj1 = 0 ; | |
3060 | PyObject * obj2 = 0 ; | |
3061 | PyObject * obj3 = 0 ; | |
3062 | PyObject * obj4 = 0 ; | |
3063 | char *kwnames[] = { | |
3064 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3065 | }; | |
3066 | ||
3067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3070 | arg2 = (double)SWIG_As_double(obj1); | |
3071 | if (PyErr_Occurred()) SWIG_fail; | |
3072 | arg3 = (double)SWIG_As_double(obj2); | |
3073 | if (PyErr_Occurred()) SWIG_fail; | |
3074 | if (obj3) { | |
3075 | arg4 = (int)SWIG_As_int(obj3); | |
3076 | if (PyErr_Occurred()) SWIG_fail; | |
3077 | } | |
3078 | if (obj4) { | |
3079 | arg5 = (int)SWIG_As_int(obj4); | |
3080 | if (PyErr_Occurred()) SWIG_fail; | |
3081 | } | |
3082 | { | |
3083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3084 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
3085 | ||
3086 | wxPyEndAllowThreads(__tstate); | |
3087 | if (PyErr_Occurred()) SWIG_fail; | |
3088 | } | |
3089 | Py_INCREF(Py_None); resultobj = Py_None; | |
3090 | return resultobj; | |
3091 | fail: | |
3092 | return NULL; | |
3093 | } | |
3094 | ||
3095 | ||
3096 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
3097 | PyObject *resultobj; | |
3098 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3099 | double arg2 ; | |
3100 | double arg3 ; | |
3101 | int arg4 = (int) 0 ; | |
3102 | int arg5 = (int) 0 ; | |
3103 | PyObject * obj0 = 0 ; | |
3104 | PyObject * obj1 = 0 ; | |
3105 | PyObject * obj2 = 0 ; | |
3106 | PyObject * obj3 = 0 ; | |
3107 | PyObject * obj4 = 0 ; | |
3108 | char *kwnames[] = { | |
3109 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3110 | }; | |
3111 | ||
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3115 | arg2 = (double)SWIG_As_double(obj1); | |
3116 | if (PyErr_Occurred()) SWIG_fail; | |
3117 | arg3 = (double)SWIG_As_double(obj2); | |
3118 | if (PyErr_Occurred()) SWIG_fail; | |
3119 | if (obj3) { | |
3120 | arg4 = (int)SWIG_As_int(obj3); | |
3121 | if (PyErr_Occurred()) SWIG_fail; | |
3122 | } | |
3123 | if (obj4) { | |
3124 | arg5 = (int)SWIG_As_int(obj4); | |
3125 | if (PyErr_Occurred()) SWIG_fail; | |
3126 | } | |
3127 | { | |
3128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3129 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
3130 | ||
3131 | wxPyEndAllowThreads(__tstate); | |
3132 | if (PyErr_Occurred()) SWIG_fail; | |
3133 | } | |
3134 | Py_INCREF(Py_None); resultobj = Py_None; | |
3135 | return resultobj; | |
3136 | fail: | |
3137 | return NULL; | |
3138 | } | |
3139 | ||
3140 | ||
3141 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
3142 | PyObject *resultobj; | |
3143 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3144 | wxDC *arg2 = 0 ; | |
3145 | double arg3 ; | |
3146 | double arg4 ; | |
3147 | double arg5 ; | |
3148 | double arg6 ; | |
3149 | PyObject * obj0 = 0 ; | |
3150 | PyObject * obj1 = 0 ; | |
3151 | PyObject * obj2 = 0 ; | |
3152 | PyObject * obj3 = 0 ; | |
3153 | PyObject * obj4 = 0 ; | |
3154 | PyObject * obj5 = 0 ; | |
3155 | char *kwnames[] = { | |
3156 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
3157 | }; | |
3158 | ||
3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyShapeEvtHandler_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3162 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
3163 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3164 | SWIG_fail; | |
3165 | if (arg2 == NULL) { | |
3166 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3167 | SWIG_fail; | |
3168 | } | |
3169 | arg3 = (double)SWIG_As_double(obj2); | |
3170 | if (PyErr_Occurred()) SWIG_fail; | |
3171 | arg4 = (double)SWIG_As_double(obj3); | |
3172 | if (PyErr_Occurred()) SWIG_fail; | |
3173 | arg5 = (double)SWIG_As_double(obj4); | |
3174 | if (PyErr_Occurred()) SWIG_fail; | |
3175 | arg6 = (double)SWIG_As_double(obj5); | |
3176 | if (PyErr_Occurred()) SWIG_fail; | |
3177 | { | |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
3180 | ||
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) SWIG_fail; | |
3183 | } | |
3184 | Py_INCREF(Py_None); resultobj = Py_None; | |
3185 | return resultobj; | |
3186 | fail: | |
3187 | return NULL; | |
3188 | } | |
3189 | ||
3190 | ||
3191 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
3192 | PyObject *resultobj; | |
3193 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3194 | wxDC *arg2 = 0 ; | |
3195 | PyObject * obj0 = 0 ; | |
3196 | PyObject * obj1 = 0 ; | |
3197 | char *kwnames[] = { | |
3198 | (char *) "self",(char *) "dc", NULL | |
3199 | }; | |
3200 | ||
3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
3202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
3205 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3206 | SWIG_fail; | |
3207 | if (arg2 == NULL) { | |
3208 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3209 | SWIG_fail; | |
3210 | } | |
3211 | { | |
3212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3213 | (arg1)->base_OnDrawControlPoints(*arg2); | |
3214 | ||
3215 | wxPyEndAllowThreads(__tstate); | |
3216 | if (PyErr_Occurred()) SWIG_fail; | |
3217 | } | |
3218 | Py_INCREF(Py_None); resultobj = Py_None; | |
3219 | return resultobj; | |
3220 | fail: | |
3221 | return NULL; | |
3222 | } | |
3223 | ||
3224 | ||
3225 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
3226 | PyObject *resultobj; | |
3227 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3228 | wxDC *arg2 = 0 ; | |
3229 | PyObject * obj0 = 0 ; | |
3230 | PyObject * obj1 = 0 ; | |
3231 | char *kwnames[] = { | |
3232 | (char *) "self",(char *) "dc", NULL | |
3233 | }; | |
3234 | ||
3235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
3236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3238 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
3239 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3240 | SWIG_fail; | |
3241 | if (arg2 == NULL) { | |
3242 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3243 | SWIG_fail; | |
3244 | } | |
3245 | { | |
3246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3247 | (arg1)->base_OnEraseControlPoints(*arg2); | |
3248 | ||
3249 | wxPyEndAllowThreads(__tstate); | |
3250 | if (PyErr_Occurred()) SWIG_fail; | |
3251 | } | |
3252 | Py_INCREF(Py_None); resultobj = Py_None; | |
3253 | return resultobj; | |
3254 | fail: | |
3255 | return NULL; | |
3256 | } | |
3257 | ||
3258 | ||
3259 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
3260 | PyObject *resultobj; | |
3261 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3262 | wxDC *arg2 = 0 ; | |
3263 | bool arg3 = (bool) true ; | |
3264 | PyObject * obj0 = 0 ; | |
3265 | PyObject * obj1 = 0 ; | |
3266 | PyObject * obj2 = 0 ; | |
3267 | char *kwnames[] = { | |
3268 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
3269 | }; | |
3270 | ||
3271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShapeEvtHandler_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3274 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
3275 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3276 | SWIG_fail; | |
3277 | if (arg2 == NULL) { | |
3278 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3279 | SWIG_fail; | |
3280 | } | |
3281 | if (obj2) { | |
3282 | arg3 = (bool)SWIG_As_bool(obj2); | |
3283 | if (PyErr_Occurred()) SWIG_fail; | |
3284 | } | |
3285 | { | |
3286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3287 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
3288 | ||
3289 | wxPyEndAllowThreads(__tstate); | |
3290 | if (PyErr_Occurred()) SWIG_fail; | |
3291 | } | |
3292 | Py_INCREF(Py_None); resultobj = Py_None; | |
3293 | return resultobj; | |
3294 | fail: | |
3295 | return NULL; | |
3296 | } | |
3297 | ||
3298 | ||
3299 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
3300 | PyObject *resultobj; | |
3301 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3302 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
3303 | bool arg3 ; | |
3304 | double arg4 ; | |
3305 | double arg5 ; | |
3306 | int arg6 = (int) 0 ; | |
3307 | int arg7 = (int) 0 ; | |
3308 | PyObject * obj0 = 0 ; | |
3309 | PyObject * obj1 = 0 ; | |
3310 | PyObject * obj2 = 0 ; | |
3311 | PyObject * obj3 = 0 ; | |
3312 | PyObject * obj4 = 0 ; | |
3313 | PyObject * obj5 = 0 ; | |
3314 | PyObject * obj6 = 0 ; | |
3315 | char *kwnames[] = { | |
3316 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3317 | }; | |
3318 | ||
3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyShapeEvtHandler_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3322 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
3323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3324 | arg3 = (bool)SWIG_As_bool(obj2); | |
3325 | if (PyErr_Occurred()) SWIG_fail; | |
3326 | arg4 = (double)SWIG_As_double(obj3); | |
3327 | if (PyErr_Occurred()) SWIG_fail; | |
3328 | arg5 = (double)SWIG_As_double(obj4); | |
3329 | if (PyErr_Occurred()) SWIG_fail; | |
3330 | if (obj5) { | |
3331 | arg6 = (int)SWIG_As_int(obj5); | |
3332 | if (PyErr_Occurred()) SWIG_fail; | |
3333 | } | |
3334 | if (obj6) { | |
3335 | arg7 = (int)SWIG_As_int(obj6); | |
3336 | if (PyErr_Occurred()) SWIG_fail; | |
3337 | } | |
3338 | { | |
3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3340 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
3341 | ||
3342 | wxPyEndAllowThreads(__tstate); | |
3343 | if (PyErr_Occurred()) SWIG_fail; | |
3344 | } | |
3345 | Py_INCREF(Py_None); resultobj = Py_None; | |
3346 | return resultobj; | |
3347 | fail: | |
3348 | return NULL; | |
3349 | } | |
3350 | ||
3351 | ||
3352 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
3353 | PyObject *resultobj; | |
3354 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3355 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
3356 | double arg3 ; | |
3357 | double arg4 ; | |
3358 | int arg5 = (int) 0 ; | |
3359 | int arg6 = (int) 0 ; | |
3360 | PyObject * obj0 = 0 ; | |
3361 | PyObject * obj1 = 0 ; | |
3362 | PyObject * obj2 = 0 ; | |
3363 | PyObject * obj3 = 0 ; | |
3364 | PyObject * obj4 = 0 ; | |
3365 | PyObject * obj5 = 0 ; | |
3366 | char *kwnames[] = { | |
3367 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3368 | }; | |
3369 | ||
3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShapeEvtHandler_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3373 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
3374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3375 | arg3 = (double)SWIG_As_double(obj2); | |
3376 | if (PyErr_Occurred()) SWIG_fail; | |
3377 | arg4 = (double)SWIG_As_double(obj3); | |
3378 | if (PyErr_Occurred()) SWIG_fail; | |
3379 | if (obj4) { | |
3380 | arg5 = (int)SWIG_As_int(obj4); | |
3381 | if (PyErr_Occurred()) SWIG_fail; | |
3382 | } | |
3383 | if (obj5) { | |
3384 | arg6 = (int)SWIG_As_int(obj5); | |
3385 | if (PyErr_Occurred()) SWIG_fail; | |
3386 | } | |
3387 | { | |
3388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3389 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
3390 | ||
3391 | wxPyEndAllowThreads(__tstate); | |
3392 | if (PyErr_Occurred()) SWIG_fail; | |
3393 | } | |
3394 | Py_INCREF(Py_None); resultobj = Py_None; | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | return NULL; | |
3398 | } | |
3399 | ||
3400 | ||
3401 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
3402 | PyObject *resultobj; | |
3403 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3404 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
3405 | double arg3 ; | |
3406 | double arg4 ; | |
3407 | int arg5 = (int) 0 ; | |
3408 | int arg6 = (int) 0 ; | |
3409 | PyObject * obj0 = 0 ; | |
3410 | PyObject * obj1 = 0 ; | |
3411 | PyObject * obj2 = 0 ; | |
3412 | PyObject * obj3 = 0 ; | |
3413 | PyObject * obj4 = 0 ; | |
3414 | PyObject * obj5 = 0 ; | |
3415 | char *kwnames[] = { | |
3416 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3417 | }; | |
3418 | ||
3419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShapeEvtHandler_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
3423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3424 | arg3 = (double)SWIG_As_double(obj2); | |
3425 | if (PyErr_Occurred()) SWIG_fail; | |
3426 | arg4 = (double)SWIG_As_double(obj3); | |
3427 | if (PyErr_Occurred()) SWIG_fail; | |
3428 | if (obj4) { | |
3429 | arg5 = (int)SWIG_As_int(obj4); | |
3430 | if (PyErr_Occurred()) SWIG_fail; | |
3431 | } | |
3432 | if (obj5) { | |
3433 | arg6 = (int)SWIG_As_int(obj5); | |
3434 | if (PyErr_Occurred()) SWIG_fail; | |
3435 | } | |
3436 | { | |
3437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3438 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
3439 | ||
3440 | wxPyEndAllowThreads(__tstate); | |
3441 | if (PyErr_Occurred()) SWIG_fail; | |
3442 | } | |
3443 | Py_INCREF(Py_None); resultobj = Py_None; | |
3444 | return resultobj; | |
3445 | fail: | |
3446 | return NULL; | |
3447 | } | |
3448 | ||
3449 | ||
3450 | static PyObject *_wrap_PyShapeEvtHandler_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
3451 | PyObject *resultobj; | |
3452 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3453 | double arg2 ; | |
3454 | double arg3 ; | |
3455 | PyObject * obj0 = 0 ; | |
3456 | PyObject * obj1 = 0 ; | |
3457 | PyObject * obj2 = 0 ; | |
3458 | char *kwnames[] = { | |
3459 | (char *) "self",(char *) "w",(char *) "h", NULL | |
3460 | }; | |
3461 | ||
3462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeEvtHandler_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3465 | arg2 = (double)SWIG_As_double(obj1); | |
3466 | if (PyErr_Occurred()) SWIG_fail; | |
3467 | arg3 = (double)SWIG_As_double(obj2); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | { | |
3470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3471 | (arg1)->base_OnBeginSize(arg2,arg3); | |
3472 | ||
3473 | wxPyEndAllowThreads(__tstate); | |
3474 | if (PyErr_Occurred()) SWIG_fail; | |
3475 | } | |
3476 | Py_INCREF(Py_None); resultobj = Py_None; | |
3477 | return resultobj; | |
3478 | fail: | |
3479 | return NULL; | |
3480 | } | |
3481 | ||
3482 | ||
3483 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
3484 | PyObject *resultobj; | |
3485 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3486 | double arg2 ; | |
3487 | double arg3 ; | |
3488 | PyObject * obj0 = 0 ; | |
3489 | PyObject * obj1 = 0 ; | |
3490 | PyObject * obj2 = 0 ; | |
3491 | char *kwnames[] = { | |
3492 | (char *) "self",(char *) "w",(char *) "h", NULL | |
3493 | }; | |
3494 | ||
3495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeEvtHandler_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, | |
3497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3498 | arg2 = (double)SWIG_As_double(obj1); | |
3499 | if (PyErr_Occurred()) SWIG_fail; | |
3500 | arg3 = (double)SWIG_As_double(obj2); | |
3501 | if (PyErr_Occurred()) SWIG_fail; | |
3502 | { | |
3503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3504 | (arg1)->base_OnEndSize(arg2,arg3); | |
3505 | ||
3506 | wxPyEndAllowThreads(__tstate); | |
3507 | if (PyErr_Occurred()) SWIG_fail; | |
3508 | } | |
3509 | Py_INCREF(Py_None); resultobj = Py_None; | |
3510 | return resultobj; | |
3511 | fail: | |
3512 | return NULL; | |
3513 | } | |
3514 | ||
3515 | ||
3516 | static PyObject * PyShapeEvtHandler_swigregister(PyObject *, PyObject *args) { | |
3517 | PyObject *obj; | |
3518 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3519 | SWIG_TypeClientData(SWIGTYPE_p_wxPyShapeEvtHandler, obj); | |
3520 | Py_INCREF(obj); | |
3521 | return Py_BuildValue((char *)""); | |
3522 | } | |
3523 | static PyObject *_wrap_new_PyShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
3524 | PyObject *resultobj; | |
3525 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) NULL ; | |
3526 | wxPyShape *result; | |
3527 | PyObject * obj0 = 0 ; | |
3528 | char *kwnames[] = { | |
3529 | (char *) "can", NULL | |
3530 | }; | |
3531 | ||
3532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyShape",kwnames,&obj0)) goto fail; | |
3533 | if (obj0) { | |
3534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
3535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3536 | } | |
3537 | { | |
3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3539 | result = (wxPyShape *)new wxPyShape(arg1); | |
3540 | ||
3541 | wxPyEndAllowThreads(__tstate); | |
3542 | if (PyErr_Occurred()) SWIG_fail; | |
3543 | } | |
3544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyShape, 1); | |
3545 | return resultobj; | |
3546 | fail: | |
3547 | return NULL; | |
3548 | } | |
3549 | ||
3550 | ||
3551 | static PyObject *_wrap_PyShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
3552 | PyObject *resultobj; | |
3553 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3554 | PyObject *arg2 = (PyObject *) 0 ; | |
3555 | PyObject *arg3 = (PyObject *) 0 ; | |
3556 | PyObject * obj0 = 0 ; | |
3557 | PyObject * obj1 = 0 ; | |
3558 | PyObject * obj2 = 0 ; | |
3559 | char *kwnames[] = { | |
3560 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
3561 | }; | |
3562 | ||
3563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3566 | arg2 = obj1; | |
3567 | arg3 = obj2; | |
3568 | { | |
3569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3570 | (arg1)->_setCallbackInfo(arg2,arg3); | |
3571 | ||
3572 | wxPyEndAllowThreads(__tstate); | |
3573 | if (PyErr_Occurred()) SWIG_fail; | |
3574 | } | |
3575 | Py_INCREF(Py_None); resultobj = Py_None; | |
3576 | return resultobj; | |
3577 | fail: | |
3578 | return NULL; | |
3579 | } | |
3580 | ||
3581 | ||
3582 | static PyObject *_wrap_PyShape_GetBoundingBoxMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
3583 | PyObject *resultobj; | |
3584 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3585 | double *arg2 = (double *) 0 ; | |
3586 | double *arg3 = (double *) 0 ; | |
3587 | double temp2 ; | |
3588 | int res2 = 0 ; | |
3589 | double temp3 ; | |
3590 | int res3 = 0 ; | |
3591 | PyObject * obj0 = 0 ; | |
3592 | char *kwnames[] = { | |
3593 | (char *) "self", NULL | |
3594 | }; | |
3595 | ||
3596 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
3597 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
3598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBoundingBoxMax",kwnames,&obj0)) goto fail; | |
3599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3601 | { | |
3602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3603 | (arg1)->GetBoundingBoxMax(arg2,arg3); | |
3604 | ||
3605 | wxPyEndAllowThreads(__tstate); | |
3606 | if (PyErr_Occurred()) SWIG_fail; | |
3607 | } | |
3608 | Py_INCREF(Py_None); resultobj = Py_None; | |
3609 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
3610 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
3611 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
3612 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
3613 | return resultobj; | |
3614 | fail: | |
3615 | return NULL; | |
3616 | } | |
3617 | ||
3618 | ||
3619 | static PyObject *_wrap_PyShape_GetBoundingBoxMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
3620 | PyObject *resultobj; | |
3621 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3622 | double *arg2 = (double *) 0 ; | |
3623 | double *arg3 = (double *) 0 ; | |
3624 | double temp2 ; | |
3625 | int res2 = 0 ; | |
3626 | double temp3 ; | |
3627 | int res3 = 0 ; | |
3628 | PyObject * obj0 = 0 ; | |
3629 | char *kwnames[] = { | |
3630 | (char *) "self", NULL | |
3631 | }; | |
3632 | ||
3633 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
3634 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBoundingBoxMin",kwnames,&obj0)) goto fail; | |
3636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3638 | { | |
3639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3640 | (arg1)->GetBoundingBoxMin(arg2,arg3); | |
3641 | ||
3642 | wxPyEndAllowThreads(__tstate); | |
3643 | if (PyErr_Occurred()) SWIG_fail; | |
3644 | } | |
3645 | Py_INCREF(Py_None); resultobj = Py_None; | |
3646 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
3647 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
3648 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
3649 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
3650 | return resultobj; | |
3651 | fail: | |
3652 | return NULL; | |
3653 | } | |
3654 | ||
3655 | ||
3656 | static PyObject *_wrap_PyShape_GetPerimeterPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
3657 | PyObject *resultobj; | |
3658 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3659 | double arg2 ; | |
3660 | double arg3 ; | |
3661 | double arg4 ; | |
3662 | double arg5 ; | |
3663 | double *arg6 = (double *) 0 ; | |
3664 | double *arg7 = (double *) 0 ; | |
3665 | bool result; | |
3666 | double temp6 ; | |
3667 | int res6 = 0 ; | |
3668 | double temp7 ; | |
3669 | int res7 = 0 ; | |
3670 | PyObject * obj0 = 0 ; | |
3671 | PyObject * obj1 = 0 ; | |
3672 | PyObject * obj2 = 0 ; | |
3673 | PyObject * obj3 = 0 ; | |
3674 | PyObject * obj4 = 0 ; | |
3675 | char *kwnames[] = { | |
3676 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
3677 | }; | |
3678 | ||
3679 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
3680 | arg7 = &temp7; res7 = SWIG_NEWOBJ; | |
3681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyShape_GetPerimeterPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3684 | arg2 = (double)SWIG_As_double(obj1); | |
3685 | if (PyErr_Occurred()) SWIG_fail; | |
3686 | arg3 = (double)SWIG_As_double(obj2); | |
3687 | if (PyErr_Occurred()) SWIG_fail; | |
3688 | arg4 = (double)SWIG_As_double(obj3); | |
3689 | if (PyErr_Occurred()) SWIG_fail; | |
3690 | arg5 = (double)SWIG_As_double(obj4); | |
3691 | if (PyErr_Occurred()) SWIG_fail; | |
3692 | { | |
3693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3694 | result = (bool)(arg1)->GetPerimeterPoint(arg2,arg3,arg4,arg5,arg6,arg7); | |
3695 | ||
3696 | wxPyEndAllowThreads(__tstate); | |
3697 | if (PyErr_Occurred()) SWIG_fail; | |
3698 | } | |
3699 | { | |
3700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3701 | } | |
3702 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
3703 | SWIG_From_double((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, 0))); | |
3704 | resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ? | |
3705 | SWIG_From_double((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, 0))); | |
3706 | return resultobj; | |
3707 | fail: | |
3708 | return NULL; | |
3709 | } | |
3710 | ||
3711 | ||
3712 | static PyObject *_wrap_PyShape_GetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
3713 | PyObject *resultobj; | |
3714 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3715 | wxPyShapeCanvas *result; | |
3716 | PyObject * obj0 = 0 ; | |
3717 | char *kwnames[] = { | |
3718 | (char *) "self", NULL | |
3719 | }; | |
3720 | ||
3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetCanvas",kwnames,&obj0)) goto fail; | |
3722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3724 | { | |
3725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3726 | result = (wxPyShapeCanvas *)(arg1)->GetCanvas(); | |
3727 | ||
3728 | wxPyEndAllowThreads(__tstate); | |
3729 | if (PyErr_Occurred()) SWIG_fail; | |
3730 | } | |
3731 | { | |
3732 | resultobj = wxPyMake_wxObject(result, 0); | |
3733 | } | |
3734 | return resultobj; | |
3735 | fail: | |
3736 | return NULL; | |
3737 | } | |
3738 | ||
3739 | ||
3740 | static PyObject *_wrap_PyShape_SetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
3741 | PyObject *resultobj; | |
3742 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3743 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3744 | PyObject * obj0 = 0 ; | |
3745 | PyObject * obj1 = 0 ; | |
3746 | char *kwnames[] = { | |
3747 | (char *) "self",(char *) "the_canvas", NULL | |
3748 | }; | |
3749 | ||
3750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
3751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
3754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3755 | { | |
3756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3757 | (arg1)->SetCanvas(arg2); | |
3758 | ||
3759 | wxPyEndAllowThreads(__tstate); | |
3760 | if (PyErr_Occurred()) SWIG_fail; | |
3761 | } | |
3762 | Py_INCREF(Py_None); resultobj = Py_None; | |
3763 | return resultobj; | |
3764 | fail: | |
3765 | return NULL; | |
3766 | } | |
3767 | ||
3768 | ||
3769 | static PyObject *_wrap_PyShape_AddToCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
3770 | PyObject *resultobj; | |
3771 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3772 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3773 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
3774 | PyObject * obj0 = 0 ; | |
3775 | PyObject * obj1 = 0 ; | |
3776 | PyObject * obj2 = 0 ; | |
3777 | char *kwnames[] = { | |
3778 | (char *) "self",(char *) "the_canvas",(char *) "addAfter", NULL | |
3779 | }; | |
3780 | ||
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_AddToCanvas",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3784 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
3785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3786 | if (obj2) { | |
3787 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
3788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3789 | } | |
3790 | { | |
3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3792 | (arg1)->AddToCanvas(arg2,arg3); | |
3793 | ||
3794 | wxPyEndAllowThreads(__tstate); | |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
3796 | } | |
3797 | Py_INCREF(Py_None); resultobj = Py_None; | |
3798 | return resultobj; | |
3799 | fail: | |
3800 | return NULL; | |
3801 | } | |
3802 | ||
3803 | ||
3804 | static PyObject *_wrap_PyShape_InsertInCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
3805 | PyObject *resultobj; | |
3806 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3807 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3808 | PyObject * obj0 = 0 ; | |
3809 | PyObject * obj1 = 0 ; | |
3810 | char *kwnames[] = { | |
3811 | (char *) "self",(char *) "the_canvas", NULL | |
3812 | }; | |
3813 | ||
3814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_InsertInCanvas",kwnames,&obj0,&obj1)) goto fail; | |
3815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
3818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3819 | { | |
3820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3821 | (arg1)->InsertInCanvas(arg2); | |
3822 | ||
3823 | wxPyEndAllowThreads(__tstate); | |
3824 | if (PyErr_Occurred()) SWIG_fail; | |
3825 | } | |
3826 | Py_INCREF(Py_None); resultobj = Py_None; | |
3827 | return resultobj; | |
3828 | fail: | |
3829 | return NULL; | |
3830 | } | |
3831 | ||
3832 | ||
3833 | static PyObject *_wrap_PyShape_RemoveFromCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
3834 | PyObject *resultobj; | |
3835 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3836 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3837 | PyObject * obj0 = 0 ; | |
3838 | PyObject * obj1 = 0 ; | |
3839 | char *kwnames[] = { | |
3840 | (char *) "self",(char *) "the_canvas", NULL | |
3841 | }; | |
3842 | ||
3843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_RemoveFromCanvas",kwnames,&obj0,&obj1)) goto fail; | |
3844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
3847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3848 | { | |
3849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3850 | (arg1)->RemoveFromCanvas(arg2); | |
3851 | ||
3852 | wxPyEndAllowThreads(__tstate); | |
3853 | if (PyErr_Occurred()) SWIG_fail; | |
3854 | } | |
3855 | Py_INCREF(Py_None); resultobj = Py_None; | |
3856 | return resultobj; | |
3857 | fail: | |
3858 | return NULL; | |
3859 | } | |
3860 | ||
3861 | ||
3862 | static PyObject *_wrap_PyShape_GetX(PyObject *, PyObject *args, PyObject *kwargs) { | |
3863 | PyObject *resultobj; | |
3864 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3865 | double result; | |
3866 | PyObject * obj0 = 0 ; | |
3867 | char *kwnames[] = { | |
3868 | (char *) "self", NULL | |
3869 | }; | |
3870 | ||
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetX",kwnames,&obj0)) goto fail; | |
3872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3874 | { | |
3875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3876 | result = (double)(arg1)->GetX(); | |
3877 | ||
3878 | wxPyEndAllowThreads(__tstate); | |
3879 | if (PyErr_Occurred()) SWIG_fail; | |
3880 | } | |
3881 | resultobj = SWIG_From_double((double)result); | |
3882 | return resultobj; | |
3883 | fail: | |
3884 | return NULL; | |
3885 | } | |
3886 | ||
3887 | ||
3888 | static PyObject *_wrap_PyShape_GetY(PyObject *, PyObject *args, PyObject *kwargs) { | |
3889 | PyObject *resultobj; | |
3890 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3891 | double result; | |
3892 | PyObject * obj0 = 0 ; | |
3893 | char *kwnames[] = { | |
3894 | (char *) "self", NULL | |
3895 | }; | |
3896 | ||
3897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetY",kwnames,&obj0)) goto fail; | |
3898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3900 | { | |
3901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3902 | result = (double)(arg1)->GetY(); | |
3903 | ||
3904 | wxPyEndAllowThreads(__tstate); | |
3905 | if (PyErr_Occurred()) SWIG_fail; | |
3906 | } | |
3907 | resultobj = SWIG_From_double((double)result); | |
3908 | return resultobj; | |
3909 | fail: | |
3910 | return NULL; | |
3911 | } | |
3912 | ||
3913 | ||
3914 | static PyObject *_wrap_PyShape_SetX(PyObject *, PyObject *args, PyObject *kwargs) { | |
3915 | PyObject *resultobj; | |
3916 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3917 | double arg2 ; | |
3918 | PyObject * obj0 = 0 ; | |
3919 | PyObject * obj1 = 0 ; | |
3920 | char *kwnames[] = { | |
3921 | (char *) "self",(char *) "x", NULL | |
3922 | }; | |
3923 | ||
3924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3927 | arg2 = (double)SWIG_As_double(obj1); | |
3928 | if (PyErr_Occurred()) SWIG_fail; | |
3929 | { | |
3930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3931 | (arg1)->SetX(arg2); | |
3932 | ||
3933 | wxPyEndAllowThreads(__tstate); | |
3934 | if (PyErr_Occurred()) SWIG_fail; | |
3935 | } | |
3936 | Py_INCREF(Py_None); resultobj = Py_None; | |
3937 | return resultobj; | |
3938 | fail: | |
3939 | return NULL; | |
3940 | } | |
3941 | ||
3942 | ||
3943 | static PyObject *_wrap_PyShape_SetY(PyObject *, PyObject *args, PyObject *kwargs) { | |
3944 | PyObject *resultobj; | |
3945 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3946 | double arg2 ; | |
3947 | PyObject * obj0 = 0 ; | |
3948 | PyObject * obj1 = 0 ; | |
3949 | char *kwnames[] = { | |
3950 | (char *) "self",(char *) "y", NULL | |
3951 | }; | |
3952 | ||
3953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3956 | arg2 = (double)SWIG_As_double(obj1); | |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
3958 | { | |
3959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3960 | (arg1)->SetY(arg2); | |
3961 | ||
3962 | wxPyEndAllowThreads(__tstate); | |
3963 | if (PyErr_Occurred()) SWIG_fail; | |
3964 | } | |
3965 | Py_INCREF(Py_None); resultobj = Py_None; | |
3966 | return resultobj; | |
3967 | fail: | |
3968 | return NULL; | |
3969 | } | |
3970 | ||
3971 | ||
3972 | static PyObject *_wrap_PyShape_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
3973 | PyObject *resultobj; | |
3974 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3975 | wxPyShape *result; | |
3976 | PyObject * obj0 = 0 ; | |
3977 | char *kwnames[] = { | |
3978 | (char *) "self", NULL | |
3979 | }; | |
3980 | ||
3981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetParent",kwnames,&obj0)) goto fail; | |
3982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
3983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3984 | { | |
3985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3986 | result = (wxPyShape *)(arg1)->GetParent(); | |
3987 | ||
3988 | wxPyEndAllowThreads(__tstate); | |
3989 | if (PyErr_Occurred()) SWIG_fail; | |
3990 | } | |
3991 | { | |
3992 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
3993 | } | |
3994 | return resultobj; | |
3995 | fail: | |
3996 | return NULL; | |
3997 | } | |
3998 | ||
3999 | ||
4000 | static PyObject *_wrap_PyShape_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
4001 | PyObject *resultobj; | |
4002 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4003 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
4004 | PyObject * obj0 = 0 ; | |
4005 | PyObject * obj1 = 0 ; | |
4006 | char *kwnames[] = { | |
4007 | (char *) "self",(char *) "p", NULL | |
4008 | }; | |
4009 | ||
4010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
4011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
4014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4015 | { | |
4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4017 | (arg1)->SetParent(arg2); | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
4022 | Py_INCREF(Py_None); resultobj = Py_None; | |
4023 | return resultobj; | |
4024 | fail: | |
4025 | return NULL; | |
4026 | } | |
4027 | ||
4028 | ||
4029 | static PyObject *_wrap_PyShape_GetTopAncestor(PyObject *, PyObject *args, PyObject *kwargs) { | |
4030 | PyObject *resultobj; | |
4031 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4032 | wxPyShape *result; | |
4033 | PyObject * obj0 = 0 ; | |
4034 | char *kwnames[] = { | |
4035 | (char *) "self", NULL | |
4036 | }; | |
4037 | ||
4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetTopAncestor",kwnames,&obj0)) goto fail; | |
4039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4041 | { | |
4042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4043 | result = (wxPyShape *)(arg1)->GetTopAncestor(); | |
4044 | ||
4045 | wxPyEndAllowThreads(__tstate); | |
4046 | if (PyErr_Occurred()) SWIG_fail; | |
4047 | } | |
4048 | { | |
4049 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
4050 | } | |
4051 | return resultobj; | |
4052 | fail: | |
4053 | return NULL; | |
4054 | } | |
4055 | ||
4056 | ||
4057 | static PyObject *_wrap_PyShape_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { | |
4058 | PyObject *resultobj; | |
4059 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4060 | PyObject *result; | |
4061 | PyObject * obj0 = 0 ; | |
4062 | char *kwnames[] = { | |
4063 | (char *) "self", NULL | |
4064 | }; | |
4065 | ||
4066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetChildren",kwnames,&obj0)) goto fail; | |
4067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4069 | { | |
4070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4071 | result = (PyObject *)wxPyShape_GetChildren(arg1); | |
4072 | ||
4073 | wxPyEndAllowThreads(__tstate); | |
4074 | if (PyErr_Occurred()) SWIG_fail; | |
4075 | } | |
4076 | resultobj = result; | |
4077 | return resultobj; | |
4078 | fail: | |
4079 | return NULL; | |
4080 | } | |
4081 | ||
4082 | ||
4083 | static PyObject *_wrap_PyShape_Unlink(PyObject *, PyObject *args, PyObject *kwargs) { | |
4084 | PyObject *resultobj; | |
4085 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4086 | PyObject * obj0 = 0 ; | |
4087 | char *kwnames[] = { | |
4088 | (char *) "self", NULL | |
4089 | }; | |
4090 | ||
4091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Unlink",kwnames,&obj0)) goto fail; | |
4092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4094 | { | |
4095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4096 | (arg1)->Unlink(); | |
4097 | ||
4098 | wxPyEndAllowThreads(__tstate); | |
4099 | if (PyErr_Occurred()) SWIG_fail; | |
4100 | } | |
4101 | Py_INCREF(Py_None); resultobj = Py_None; | |
4102 | return resultobj; | |
4103 | fail: | |
4104 | return NULL; | |
4105 | } | |
4106 | ||
4107 | ||
4108 | static PyObject *_wrap_PyShape_SetDrawHandles(PyObject *, PyObject *args, PyObject *kwargs) { | |
4109 | PyObject *resultobj; | |
4110 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4111 | bool arg2 ; | |
4112 | PyObject * obj0 = 0 ; | |
4113 | PyObject * obj1 = 0 ; | |
4114 | char *kwnames[] = { | |
4115 | (char *) "self",(char *) "drawH", NULL | |
4116 | }; | |
4117 | ||
4118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetDrawHandles",kwnames,&obj0,&obj1)) goto fail; | |
4119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4121 | arg2 = (bool)SWIG_As_bool(obj1); | |
4122 | if (PyErr_Occurred()) SWIG_fail; | |
4123 | { | |
4124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4125 | (arg1)->SetDrawHandles(arg2); | |
4126 | ||
4127 | wxPyEndAllowThreads(__tstate); | |
4128 | if (PyErr_Occurred()) SWIG_fail; | |
4129 | } | |
4130 | Py_INCREF(Py_None); resultobj = Py_None; | |
4131 | return resultobj; | |
4132 | fail: | |
4133 | return NULL; | |
4134 | } | |
4135 | ||
4136 | ||
4137 | static PyObject *_wrap_PyShape_GetDrawHandles(PyObject *, PyObject *args, PyObject *kwargs) { | |
4138 | PyObject *resultobj; | |
4139 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4140 | bool result; | |
4141 | PyObject * obj0 = 0 ; | |
4142 | char *kwnames[] = { | |
4143 | (char *) "self", NULL | |
4144 | }; | |
4145 | ||
4146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetDrawHandles",kwnames,&obj0)) goto fail; | |
4147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4149 | { | |
4150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4151 | result = (bool)(arg1)->GetDrawHandles(); | |
4152 | ||
4153 | wxPyEndAllowThreads(__tstate); | |
4154 | if (PyErr_Occurred()) SWIG_fail; | |
4155 | } | |
4156 | { | |
4157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4158 | } | |
4159 | return resultobj; | |
4160 | fail: | |
4161 | return NULL; | |
4162 | } | |
4163 | ||
4164 | ||
4165 | static PyObject *_wrap_PyShape_MakeControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
4166 | PyObject *resultobj; | |
4167 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4168 | PyObject * obj0 = 0 ; | |
4169 | char *kwnames[] = { | |
4170 | (char *) "self", NULL | |
4171 | }; | |
4172 | ||
4173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_MakeControlPoints",kwnames,&obj0)) goto fail; | |
4174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4176 | { | |
4177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4178 | (arg1)->MakeControlPoints(); | |
4179 | ||
4180 | wxPyEndAllowThreads(__tstate); | |
4181 | if (PyErr_Occurred()) SWIG_fail; | |
4182 | } | |
4183 | Py_INCREF(Py_None); resultobj = Py_None; | |
4184 | return resultobj; | |
4185 | fail: | |
4186 | return NULL; | |
4187 | } | |
4188 | ||
4189 | ||
4190 | static PyObject *_wrap_PyShape_DeleteControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
4191 | PyObject *resultobj; | |
4192 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4193 | wxDC *arg2 = (wxDC *) NULL ; | |
4194 | PyObject * obj0 = 0 ; | |
4195 | PyObject * obj1 = 0 ; | |
4196 | char *kwnames[] = { | |
4197 | (char *) "self",(char *) "dc", NULL | |
4198 | }; | |
4199 | ||
4200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_DeleteControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
4201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4203 | if (obj1) { | |
4204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
4205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4206 | } | |
4207 | { | |
4208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4209 | (arg1)->DeleteControlPoints(arg2); | |
4210 | ||
4211 | wxPyEndAllowThreads(__tstate); | |
4212 | if (PyErr_Occurred()) SWIG_fail; | |
4213 | } | |
4214 | Py_INCREF(Py_None); resultobj = Py_None; | |
4215 | return resultobj; | |
4216 | fail: | |
4217 | return NULL; | |
4218 | } | |
4219 | ||
4220 | ||
4221 | static PyObject *_wrap_PyShape_ResetControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
4222 | PyObject *resultobj; | |
4223 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4224 | PyObject * obj0 = 0 ; | |
4225 | char *kwnames[] = { | |
4226 | (char *) "self", NULL | |
4227 | }; | |
4228 | ||
4229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ResetControlPoints",kwnames,&obj0)) goto fail; | |
4230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4232 | { | |
4233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4234 | (arg1)->ResetControlPoints(); | |
4235 | ||
4236 | wxPyEndAllowThreads(__tstate); | |
4237 | if (PyErr_Occurred()) SWIG_fail; | |
4238 | } | |
4239 | Py_INCREF(Py_None); resultobj = Py_None; | |
4240 | return resultobj; | |
4241 | fail: | |
4242 | return NULL; | |
4243 | } | |
4244 | ||
4245 | ||
4246 | static PyObject *_wrap_PyShape_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { | |
4247 | PyObject *resultobj; | |
4248 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4249 | wxPyShapeEvtHandler *result; | |
4250 | PyObject * obj0 = 0 ; | |
4251 | char *kwnames[] = { | |
4252 | (char *) "self", NULL | |
4253 | }; | |
4254 | ||
4255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetEventHandler",kwnames,&obj0)) goto fail; | |
4256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4258 | { | |
4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4260 | result = (wxPyShapeEvtHandler *)(arg1)->GetEventHandler(); | |
4261 | ||
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4265 | { | |
4266 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
4267 | } | |
4268 | return resultobj; | |
4269 | fail: | |
4270 | return NULL; | |
4271 | } | |
4272 | ||
4273 | ||
4274 | static PyObject *_wrap_PyShape_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { | |
4275 | PyObject *resultobj; | |
4276 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4277 | wxPyShapeEvtHandler *arg2 = (wxPyShapeEvtHandler *) 0 ; | |
4278 | PyObject * obj0 = 0 ; | |
4279 | PyObject * obj1 = 0 ; | |
4280 | char *kwnames[] = { | |
4281 | (char *) "self",(char *) "handler", NULL | |
4282 | }; | |
4283 | ||
4284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
4285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeEvtHandler, | |
4288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4289 | { | |
4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4291 | (arg1)->SetEventHandler(arg2); | |
4292 | ||
4293 | wxPyEndAllowThreads(__tstate); | |
4294 | if (PyErr_Occurred()) SWIG_fail; | |
4295 | } | |
4296 | Py_INCREF(Py_None); resultobj = Py_None; | |
4297 | return resultobj; | |
4298 | fail: | |
4299 | return NULL; | |
4300 | } | |
4301 | ||
4302 | ||
4303 | static PyObject *_wrap_PyShape_MakeMandatoryControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
4304 | PyObject *resultobj; | |
4305 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4306 | PyObject * obj0 = 0 ; | |
4307 | char *kwnames[] = { | |
4308 | (char *) "self", NULL | |
4309 | }; | |
4310 | ||
4311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_MakeMandatoryControlPoints",kwnames,&obj0)) goto fail; | |
4312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4314 | { | |
4315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4316 | (arg1)->MakeMandatoryControlPoints(); | |
4317 | ||
4318 | wxPyEndAllowThreads(__tstate); | |
4319 | if (PyErr_Occurred()) SWIG_fail; | |
4320 | } | |
4321 | Py_INCREF(Py_None); resultobj = Py_None; | |
4322 | return resultobj; | |
4323 | fail: | |
4324 | return NULL; | |
4325 | } | |
4326 | ||
4327 | ||
4328 | static PyObject *_wrap_PyShape_ResetMandatoryControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
4329 | PyObject *resultobj; | |
4330 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4331 | PyObject * obj0 = 0 ; | |
4332 | char *kwnames[] = { | |
4333 | (char *) "self", NULL | |
4334 | }; | |
4335 | ||
4336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ResetMandatoryControlPoints",kwnames,&obj0)) goto fail; | |
4337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4339 | { | |
4340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4341 | (arg1)->ResetMandatoryControlPoints(); | |
4342 | ||
4343 | wxPyEndAllowThreads(__tstate); | |
4344 | if (PyErr_Occurred()) SWIG_fail; | |
4345 | } | |
4346 | Py_INCREF(Py_None); resultobj = Py_None; | |
4347 | return resultobj; | |
4348 | fail: | |
4349 | return NULL; | |
4350 | } | |
4351 | ||
4352 | ||
4353 | static PyObject *_wrap_PyShape_Recompute(PyObject *, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject *resultobj; | |
4355 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4356 | bool result; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | char *kwnames[] = { | |
4359 | (char *) "self", NULL | |
4360 | }; | |
4361 | ||
4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Recompute",kwnames,&obj0)) goto fail; | |
4363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4365 | { | |
4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4367 | result = (bool)(arg1)->Recompute(); | |
4368 | ||
4369 | wxPyEndAllowThreads(__tstate); | |
4370 | if (PyErr_Occurred()) SWIG_fail; | |
4371 | } | |
4372 | { | |
4373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4374 | } | |
4375 | return resultobj; | |
4376 | fail: | |
4377 | return NULL; | |
4378 | } | |
4379 | ||
4380 | ||
4381 | static PyObject *_wrap_PyShape_CalculateSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
4382 | PyObject *resultobj; | |
4383 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4384 | PyObject * obj0 = 0 ; | |
4385 | char *kwnames[] = { | |
4386 | (char *) "self", NULL | |
4387 | }; | |
4388 | ||
4389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_CalculateSize",kwnames,&obj0)) goto fail; | |
4390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4392 | { | |
4393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4394 | (arg1)->CalculateSize(); | |
4395 | ||
4396 | wxPyEndAllowThreads(__tstate); | |
4397 | if (PyErr_Occurred()) SWIG_fail; | |
4398 | } | |
4399 | Py_INCREF(Py_None); resultobj = Py_None; | |
4400 | return resultobj; | |
4401 | fail: | |
4402 | return NULL; | |
4403 | } | |
4404 | ||
4405 | ||
4406 | static PyObject *_wrap_PyShape_Select(PyObject *, PyObject *args, PyObject *kwargs) { | |
4407 | PyObject *resultobj; | |
4408 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4409 | bool arg2 = (bool) true ; | |
4410 | wxDC *arg3 = (wxDC *) NULL ; | |
4411 | PyObject * obj0 = 0 ; | |
4412 | PyObject * obj1 = 0 ; | |
4413 | PyObject * obj2 = 0 ; | |
4414 | char *kwnames[] = { | |
4415 | (char *) "self",(char *) "select",(char *) "dc", NULL | |
4416 | }; | |
4417 | ||
4418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4421 | if (obj1) { | |
4422 | arg2 = (bool)SWIG_As_bool(obj1); | |
4423 | if (PyErr_Occurred()) SWIG_fail; | |
4424 | } | |
4425 | if (obj2) { | |
4426 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
4427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4428 | } | |
4429 | { | |
4430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4431 | (arg1)->Select(arg2,arg3); | |
4432 | ||
4433 | wxPyEndAllowThreads(__tstate); | |
4434 | if (PyErr_Occurred()) SWIG_fail; | |
4435 | } | |
4436 | Py_INCREF(Py_None); resultobj = Py_None; | |
4437 | return resultobj; | |
4438 | fail: | |
4439 | return NULL; | |
4440 | } | |
4441 | ||
4442 | ||
4443 | static PyObject *_wrap_PyShape_SetHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
4444 | PyObject *resultobj; | |
4445 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4446 | bool arg2 = (bool) true ; | |
4447 | bool arg3 = (bool) false ; | |
4448 | PyObject * obj0 = 0 ; | |
4449 | PyObject * obj1 = 0 ; | |
4450 | PyObject * obj2 = 0 ; | |
4451 | char *kwnames[] = { | |
4452 | (char *) "self",(char *) "hi",(char *) "recurse", NULL | |
4453 | }; | |
4454 | ||
4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_SetHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4458 | if (obj1) { | |
4459 | arg2 = (bool)SWIG_As_bool(obj1); | |
4460 | if (PyErr_Occurred()) SWIG_fail; | |
4461 | } | |
4462 | if (obj2) { | |
4463 | arg3 = (bool)SWIG_As_bool(obj2); | |
4464 | if (PyErr_Occurred()) SWIG_fail; | |
4465 | } | |
4466 | { | |
4467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4468 | (arg1)->SetHighlight(arg2,arg3); | |
4469 | ||
4470 | wxPyEndAllowThreads(__tstate); | |
4471 | if (PyErr_Occurred()) SWIG_fail; | |
4472 | } | |
4473 | Py_INCREF(Py_None); resultobj = Py_None; | |
4474 | return resultobj; | |
4475 | fail: | |
4476 | return NULL; | |
4477 | } | |
4478 | ||
4479 | ||
4480 | static PyObject *_wrap_PyShape_IsHighlighted(PyObject *, PyObject *args, PyObject *kwargs) { | |
4481 | PyObject *resultobj; | |
4482 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4483 | bool result; | |
4484 | PyObject * obj0 = 0 ; | |
4485 | char *kwnames[] = { | |
4486 | (char *) "self", NULL | |
4487 | }; | |
4488 | ||
4489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_IsHighlighted",kwnames,&obj0)) goto fail; | |
4490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4492 | { | |
4493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4494 | result = (bool)(arg1)->IsHighlighted(); | |
4495 | ||
4496 | wxPyEndAllowThreads(__tstate); | |
4497 | if (PyErr_Occurred()) SWIG_fail; | |
4498 | } | |
4499 | { | |
4500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4501 | } | |
4502 | return resultobj; | |
4503 | fail: | |
4504 | return NULL; | |
4505 | } | |
4506 | ||
4507 | ||
4508 | static PyObject *_wrap_PyShape_Selected(PyObject *, PyObject *args, PyObject *kwargs) { | |
4509 | PyObject *resultobj; | |
4510 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4511 | bool result; | |
4512 | PyObject * obj0 = 0 ; | |
4513 | char *kwnames[] = { | |
4514 | (char *) "self", NULL | |
4515 | }; | |
4516 | ||
4517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Selected",kwnames,&obj0)) goto fail; | |
4518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4520 | { | |
4521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4522 | result = (bool)(arg1)->Selected(); | |
4523 | ||
4524 | wxPyEndAllowThreads(__tstate); | |
4525 | if (PyErr_Occurred()) SWIG_fail; | |
4526 | } | |
4527 | { | |
4528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4529 | } | |
4530 | return resultobj; | |
4531 | fail: | |
4532 | return NULL; | |
4533 | } | |
4534 | ||
4535 | ||
4536 | static PyObject *_wrap_PyShape_AncestorSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
4537 | PyObject *resultobj; | |
4538 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4539 | bool result; | |
4540 | PyObject * obj0 = 0 ; | |
4541 | char *kwnames[] = { | |
4542 | (char *) "self", NULL | |
4543 | }; | |
4544 | ||
4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_AncestorSelected",kwnames,&obj0)) goto fail; | |
4546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4548 | { | |
4549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4550 | result = (bool)(arg1)->AncestorSelected(); | |
4551 | ||
4552 | wxPyEndAllowThreads(__tstate); | |
4553 | if (PyErr_Occurred()) SWIG_fail; | |
4554 | } | |
4555 | { | |
4556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4557 | } | |
4558 | return resultobj; | |
4559 | fail: | |
4560 | return NULL; | |
4561 | } | |
4562 | ||
4563 | ||
4564 | static PyObject *_wrap_PyShape_SetSensitivityFilter(PyObject *, PyObject *args, PyObject *kwargs) { | |
4565 | PyObject *resultobj; | |
4566 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4567 | int arg2 = (int) OP_ALL ; | |
4568 | bool arg3 = (bool) false ; | |
4569 | PyObject * obj0 = 0 ; | |
4570 | PyObject * obj1 = 0 ; | |
4571 | PyObject * obj2 = 0 ; | |
4572 | char *kwnames[] = { | |
4573 | (char *) "self",(char *) "sens",(char *) "recursive", NULL | |
4574 | }; | |
4575 | ||
4576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_SetSensitivityFilter",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4579 | if (obj1) { | |
4580 | arg2 = (int)SWIG_As_int(obj1); | |
4581 | if (PyErr_Occurred()) SWIG_fail; | |
4582 | } | |
4583 | if (obj2) { | |
4584 | arg3 = (bool)SWIG_As_bool(obj2); | |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
4586 | } | |
4587 | { | |
4588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4589 | (arg1)->SetSensitivityFilter(arg2,arg3); | |
4590 | ||
4591 | wxPyEndAllowThreads(__tstate); | |
4592 | if (PyErr_Occurred()) SWIG_fail; | |
4593 | } | |
4594 | Py_INCREF(Py_None); resultobj = Py_None; | |
4595 | return resultobj; | |
4596 | fail: | |
4597 | return NULL; | |
4598 | } | |
4599 | ||
4600 | ||
4601 | static PyObject *_wrap_PyShape_GetSensitivityFilter(PyObject *, PyObject *args, PyObject *kwargs) { | |
4602 | PyObject *resultobj; | |
4603 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4604 | int result; | |
4605 | PyObject * obj0 = 0 ; | |
4606 | char *kwnames[] = { | |
4607 | (char *) "self", NULL | |
4608 | }; | |
4609 | ||
4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetSensitivityFilter",kwnames,&obj0)) goto fail; | |
4611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4613 | { | |
4614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4615 | result = (int)(arg1)->GetSensitivityFilter(); | |
4616 | ||
4617 | wxPyEndAllowThreads(__tstate); | |
4618 | if (PyErr_Occurred()) SWIG_fail; | |
4619 | } | |
4620 | resultobj = SWIG_From_int((int)result); | |
4621 | return resultobj; | |
4622 | fail: | |
4623 | return NULL; | |
4624 | } | |
4625 | ||
4626 | ||
4627 | static PyObject *_wrap_PyShape_SetDraggable(PyObject *, PyObject *args, PyObject *kwargs) { | |
4628 | PyObject *resultobj; | |
4629 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4630 | bool arg2 ; | |
4631 | bool arg3 = (bool) false ; | |
4632 | PyObject * obj0 = 0 ; | |
4633 | PyObject * obj1 = 0 ; | |
4634 | PyObject * obj2 = 0 ; | |
4635 | char *kwnames[] = { | |
4636 | (char *) "self",(char *) "drag",(char *) "recursive", NULL | |
4637 | }; | |
4638 | ||
4639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetDraggable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4642 | arg2 = (bool)SWIG_As_bool(obj1); | |
4643 | if (PyErr_Occurred()) SWIG_fail; | |
4644 | if (obj2) { | |
4645 | arg3 = (bool)SWIG_As_bool(obj2); | |
4646 | if (PyErr_Occurred()) SWIG_fail; | |
4647 | } | |
4648 | { | |
4649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4650 | (arg1)->SetDraggable(arg2,arg3); | |
4651 | ||
4652 | wxPyEndAllowThreads(__tstate); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | Py_INCREF(Py_None); resultobj = Py_None; | |
4656 | return resultobj; | |
4657 | fail: | |
4658 | return NULL; | |
4659 | } | |
4660 | ||
4661 | ||
4662 | static PyObject *_wrap_PyShape_SetFixedSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
4663 | PyObject *resultobj; | |
4664 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4665 | bool arg2 ; | |
4666 | bool arg3 ; | |
4667 | PyObject * obj0 = 0 ; | |
4668 | PyObject * obj1 = 0 ; | |
4669 | PyObject * obj2 = 0 ; | |
4670 | char *kwnames[] = { | |
4671 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4672 | }; | |
4673 | ||
4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_SetFixedSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4677 | arg2 = (bool)SWIG_As_bool(obj1); | |
4678 | if (PyErr_Occurred()) SWIG_fail; | |
4679 | arg3 = (bool)SWIG_As_bool(obj2); | |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
4681 | { | |
4682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4683 | (arg1)->SetFixedSize(arg2,arg3); | |
4684 | ||
4685 | wxPyEndAllowThreads(__tstate); | |
4686 | if (PyErr_Occurred()) SWIG_fail; | |
4687 | } | |
4688 | Py_INCREF(Py_None); resultobj = Py_None; | |
4689 | return resultobj; | |
4690 | fail: | |
4691 | return NULL; | |
4692 | } | |
4693 | ||
4694 | ||
4695 | static PyObject *_wrap_PyShape_GetFixedSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
4696 | PyObject *resultobj; | |
4697 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4698 | bool *arg2 = (bool *) 0 ; | |
4699 | bool *arg3 = (bool *) 0 ; | |
4700 | bool temp2 ; | |
4701 | int res2 = 0 ; | |
4702 | bool temp3 ; | |
4703 | int res3 = 0 ; | |
4704 | PyObject * obj0 = 0 ; | |
4705 | char *kwnames[] = { | |
4706 | (char *) "self", NULL | |
4707 | }; | |
4708 | ||
4709 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4710 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetFixedSize",kwnames,&obj0)) goto fail; | |
4712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4714 | { | |
4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4716 | (arg1)->GetFixedSize(arg2,arg3); | |
4717 | ||
4718 | wxPyEndAllowThreads(__tstate); | |
4719 | if (PyErr_Occurred()) SWIG_fail; | |
4720 | } | |
4721 | Py_INCREF(Py_None); resultobj = Py_None; | |
4722 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4723 | SWIG_From_bool((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_bool, 0))); | |
4724 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4725 | SWIG_From_bool((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_bool, 0))); | |
4726 | return resultobj; | |
4727 | fail: | |
4728 | return NULL; | |
4729 | } | |
4730 | ||
4731 | ||
4732 | static PyObject *_wrap_PyShape_GetFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
4733 | PyObject *resultobj; | |
4734 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4735 | bool result; | |
4736 | PyObject * obj0 = 0 ; | |
4737 | char *kwnames[] = { | |
4738 | (char *) "self", NULL | |
4739 | }; | |
4740 | ||
4741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetFixedWidth",kwnames,&obj0)) goto fail; | |
4742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4744 | { | |
4745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4746 | result = (bool)(arg1)->GetFixedWidth(); | |
4747 | ||
4748 | wxPyEndAllowThreads(__tstate); | |
4749 | if (PyErr_Occurred()) SWIG_fail; | |
4750 | } | |
4751 | { | |
4752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4753 | } | |
4754 | return resultobj; | |
4755 | fail: | |
4756 | return NULL; | |
4757 | } | |
4758 | ||
4759 | ||
4760 | static PyObject *_wrap_PyShape_GetFixedHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
4761 | PyObject *resultobj; | |
4762 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4763 | bool result; | |
4764 | PyObject * obj0 = 0 ; | |
4765 | char *kwnames[] = { | |
4766 | (char *) "self", NULL | |
4767 | }; | |
4768 | ||
4769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetFixedHeight",kwnames,&obj0)) goto fail; | |
4770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4772 | { | |
4773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4774 | result = (bool)(arg1)->GetFixedHeight(); | |
4775 | ||
4776 | wxPyEndAllowThreads(__tstate); | |
4777 | if (PyErr_Occurred()) SWIG_fail; | |
4778 | } | |
4779 | { | |
4780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4781 | } | |
4782 | return resultobj; | |
4783 | fail: | |
4784 | return NULL; | |
4785 | } | |
4786 | ||
4787 | ||
4788 | static PyObject *_wrap_PyShape_SetSpaceAttachments(PyObject *, PyObject *args, PyObject *kwargs) { | |
4789 | PyObject *resultobj; | |
4790 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4791 | bool arg2 ; | |
4792 | PyObject * obj0 = 0 ; | |
4793 | PyObject * obj1 = 0 ; | |
4794 | char *kwnames[] = { | |
4795 | (char *) "self",(char *) "sp", NULL | |
4796 | }; | |
4797 | ||
4798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetSpaceAttachments",kwnames,&obj0,&obj1)) goto fail; | |
4799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4801 | arg2 = (bool)SWIG_As_bool(obj1); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | { | |
4804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4805 | (arg1)->SetSpaceAttachments(arg2); | |
4806 | ||
4807 | wxPyEndAllowThreads(__tstate); | |
4808 | if (PyErr_Occurred()) SWIG_fail; | |
4809 | } | |
4810 | Py_INCREF(Py_None); resultobj = Py_None; | |
4811 | return resultobj; | |
4812 | fail: | |
4813 | return NULL; | |
4814 | } | |
4815 | ||
4816 | ||
4817 | static PyObject *_wrap_PyShape_GetSpaceAttachments(PyObject *, PyObject *args, PyObject *kwargs) { | |
4818 | PyObject *resultobj; | |
4819 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4820 | bool result; | |
4821 | PyObject * obj0 = 0 ; | |
4822 | char *kwnames[] = { | |
4823 | (char *) "self", NULL | |
4824 | }; | |
4825 | ||
4826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetSpaceAttachments",kwnames,&obj0)) goto fail; | |
4827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4829 | { | |
4830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4831 | result = (bool)(arg1)->GetSpaceAttachments(); | |
4832 | ||
4833 | wxPyEndAllowThreads(__tstate); | |
4834 | if (PyErr_Occurred()) SWIG_fail; | |
4835 | } | |
4836 | { | |
4837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4838 | } | |
4839 | return resultobj; | |
4840 | fail: | |
4841 | return NULL; | |
4842 | } | |
4843 | ||
4844 | ||
4845 | static PyObject *_wrap_PyShape_SetShadowMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
4846 | PyObject *resultobj; | |
4847 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4848 | int arg2 ; | |
4849 | bool arg3 = (bool) false ; | |
4850 | PyObject * obj0 = 0 ; | |
4851 | PyObject * obj1 = 0 ; | |
4852 | PyObject * obj2 = 0 ; | |
4853 | char *kwnames[] = { | |
4854 | (char *) "self",(char *) "mode",(char *) "redraw", NULL | |
4855 | }; | |
4856 | ||
4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetShadowMode",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4860 | arg2 = (int)SWIG_As_int(obj1); | |
4861 | if (PyErr_Occurred()) SWIG_fail; | |
4862 | if (obj2) { | |
4863 | arg3 = (bool)SWIG_As_bool(obj2); | |
4864 | if (PyErr_Occurred()) SWIG_fail; | |
4865 | } | |
4866 | { | |
4867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4868 | (arg1)->SetShadowMode(arg2,arg3); | |
4869 | ||
4870 | wxPyEndAllowThreads(__tstate); | |
4871 | if (PyErr_Occurred()) SWIG_fail; | |
4872 | } | |
4873 | Py_INCREF(Py_None); resultobj = Py_None; | |
4874 | return resultobj; | |
4875 | fail: | |
4876 | return NULL; | |
4877 | } | |
4878 | ||
4879 | ||
4880 | static PyObject *_wrap_PyShape_GetShadowMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
4881 | PyObject *resultobj; | |
4882 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4883 | int result; | |
4884 | PyObject * obj0 = 0 ; | |
4885 | char *kwnames[] = { | |
4886 | (char *) "self", NULL | |
4887 | }; | |
4888 | ||
4889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetShadowMode",kwnames,&obj0)) goto fail; | |
4890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4892 | { | |
4893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4894 | result = (int)(arg1)->GetShadowMode(); | |
4895 | ||
4896 | wxPyEndAllowThreads(__tstate); | |
4897 | if (PyErr_Occurred()) SWIG_fail; | |
4898 | } | |
4899 | resultobj = SWIG_From_int((int)result); | |
4900 | return resultobj; | |
4901 | fail: | |
4902 | return NULL; | |
4903 | } | |
4904 | ||
4905 | ||
4906 | static PyObject *_wrap_PyShape_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
4907 | PyObject *resultobj; | |
4908 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4909 | double arg2 ; | |
4910 | double arg3 ; | |
4911 | int *arg4 = (int *) 0 ; | |
4912 | double *arg5 = (double *) 0 ; | |
4913 | bool result; | |
4914 | int temp4 ; | |
4915 | int res4 = 0 ; | |
4916 | double temp5 ; | |
4917 | int res5 = 0 ; | |
4918 | PyObject * obj0 = 0 ; | |
4919 | PyObject * obj1 = 0 ; | |
4920 | PyObject * obj2 = 0 ; | |
4921 | char *kwnames[] = { | |
4922 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4923 | }; | |
4924 | ||
4925 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
4926 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_HitTest",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4930 | arg2 = (double)SWIG_As_double(obj1); | |
4931 | if (PyErr_Occurred()) SWIG_fail; | |
4932 | arg3 = (double)SWIG_As_double(obj2); | |
4933 | if (PyErr_Occurred()) SWIG_fail; | |
4934 | { | |
4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4936 | result = (bool)(arg1)->HitTest(arg2,arg3,arg4,arg5); | |
4937 | ||
4938 | wxPyEndAllowThreads(__tstate); | |
4939 | if (PyErr_Occurred()) SWIG_fail; | |
4940 | } | |
4941 | { | |
4942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4943 | } | |
4944 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
4945 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
4946 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
4947 | SWIG_From_double((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, 0))); | |
4948 | return resultobj; | |
4949 | fail: | |
4950 | return NULL; | |
4951 | } | |
4952 | ||
4953 | ||
4954 | static PyObject *_wrap_PyShape_SetCentreResize(PyObject *, PyObject *args, PyObject *kwargs) { | |
4955 | PyObject *resultobj; | |
4956 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4957 | bool arg2 ; | |
4958 | PyObject * obj0 = 0 ; | |
4959 | PyObject * obj1 = 0 ; | |
4960 | char *kwnames[] = { | |
4961 | (char *) "self",(char *) "cr", NULL | |
4962 | }; | |
4963 | ||
4964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetCentreResize",kwnames,&obj0,&obj1)) goto fail; | |
4965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4967 | arg2 = (bool)SWIG_As_bool(obj1); | |
4968 | if (PyErr_Occurred()) SWIG_fail; | |
4969 | { | |
4970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4971 | (arg1)->SetCentreResize(arg2); | |
4972 | ||
4973 | wxPyEndAllowThreads(__tstate); | |
4974 | if (PyErr_Occurred()) SWIG_fail; | |
4975 | } | |
4976 | Py_INCREF(Py_None); resultobj = Py_None; | |
4977 | return resultobj; | |
4978 | fail: | |
4979 | return NULL; | |
4980 | } | |
4981 | ||
4982 | ||
4983 | static PyObject *_wrap_PyShape_GetCentreResize(PyObject *, PyObject *args, PyObject *kwargs) { | |
4984 | PyObject *resultobj; | |
4985 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4986 | bool result; | |
4987 | PyObject * obj0 = 0 ; | |
4988 | char *kwnames[] = { | |
4989 | (char *) "self", NULL | |
4990 | }; | |
4991 | ||
4992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetCentreResize",kwnames,&obj0)) goto fail; | |
4993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
4994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4995 | { | |
4996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4997 | result = (bool)(arg1)->GetCentreResize(); | |
4998 | ||
4999 | wxPyEndAllowThreads(__tstate); | |
5000 | if (PyErr_Occurred()) SWIG_fail; | |
5001 | } | |
5002 | { | |
5003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5004 | } | |
5005 | return resultobj; | |
5006 | fail: | |
5007 | return NULL; | |
5008 | } | |
5009 | ||
5010 | ||
5011 | static PyObject *_wrap_PyShape_SetMaintainAspectRatio(PyObject *, PyObject *args, PyObject *kwargs) { | |
5012 | PyObject *resultobj; | |
5013 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5014 | bool arg2 ; | |
5015 | PyObject * obj0 = 0 ; | |
5016 | PyObject * obj1 = 0 ; | |
5017 | char *kwnames[] = { | |
5018 | (char *) "self",(char *) "ar", NULL | |
5019 | }; | |
5020 | ||
5021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetMaintainAspectRatio",kwnames,&obj0,&obj1)) goto fail; | |
5022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5024 | arg2 = (bool)SWIG_As_bool(obj1); | |
5025 | if (PyErr_Occurred()) SWIG_fail; | |
5026 | { | |
5027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5028 | (arg1)->SetMaintainAspectRatio(arg2); | |
5029 | ||
5030 | wxPyEndAllowThreads(__tstate); | |
5031 | if (PyErr_Occurred()) SWIG_fail; | |
5032 | } | |
5033 | Py_INCREF(Py_None); resultobj = Py_None; | |
5034 | return resultobj; | |
5035 | fail: | |
5036 | return NULL; | |
5037 | } | |
5038 | ||
5039 | ||
5040 | static PyObject *_wrap_PyShape_GetMaintainAspectRatio(PyObject *, PyObject *args, PyObject *kwargs) { | |
5041 | PyObject *resultobj; | |
5042 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5043 | bool result; | |
5044 | PyObject * obj0 = 0 ; | |
5045 | char *kwnames[] = { | |
5046 | (char *) "self", NULL | |
5047 | }; | |
5048 | ||
5049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetMaintainAspectRatio",kwnames,&obj0)) goto fail; | |
5050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5052 | { | |
5053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5054 | result = (bool)(arg1)->GetMaintainAspectRatio(); | |
5055 | ||
5056 | wxPyEndAllowThreads(__tstate); | |
5057 | if (PyErr_Occurred()) SWIG_fail; | |
5058 | } | |
5059 | { | |
5060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5061 | } | |
5062 | return resultobj; | |
5063 | fail: | |
5064 | return NULL; | |
5065 | } | |
5066 | ||
5067 | ||
5068 | static PyObject *_wrap_PyShape_GetLines(PyObject *, PyObject *args, PyObject *kwargs) { | |
5069 | PyObject *resultobj; | |
5070 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5071 | PyObject *result; | |
5072 | PyObject * obj0 = 0 ; | |
5073 | char *kwnames[] = { | |
5074 | (char *) "self", NULL | |
5075 | }; | |
5076 | ||
5077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetLines",kwnames,&obj0)) goto fail; | |
5078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5080 | { | |
5081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5082 | result = (PyObject *)wxPyShape_GetLines(arg1); | |
5083 | ||
5084 | wxPyEndAllowThreads(__tstate); | |
5085 | if (PyErr_Occurred()) SWIG_fail; | |
5086 | } | |
5087 | resultobj = result; | |
5088 | return resultobj; | |
5089 | fail: | |
5090 | return NULL; | |
5091 | } | |
5092 | ||
5093 | ||
5094 | static PyObject *_wrap_PyShape_SetDisableLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
5095 | PyObject *resultobj; | |
5096 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5097 | bool arg2 ; | |
5098 | PyObject * obj0 = 0 ; | |
5099 | PyObject * obj1 = 0 ; | |
5100 | char *kwnames[] = { | |
5101 | (char *) "self",(char *) "flag", NULL | |
5102 | }; | |
5103 | ||
5104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetDisableLabel",kwnames,&obj0,&obj1)) goto fail; | |
5105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5107 | arg2 = (bool)SWIG_As_bool(obj1); | |
5108 | if (PyErr_Occurred()) SWIG_fail; | |
5109 | { | |
5110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5111 | (arg1)->SetDisableLabel(arg2); | |
5112 | ||
5113 | wxPyEndAllowThreads(__tstate); | |
5114 | if (PyErr_Occurred()) SWIG_fail; | |
5115 | } | |
5116 | Py_INCREF(Py_None); resultobj = Py_None; | |
5117 | return resultobj; | |
5118 | fail: | |
5119 | return NULL; | |
5120 | } | |
5121 | ||
5122 | ||
5123 | static PyObject *_wrap_PyShape_GetDisableLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
5124 | PyObject *resultobj; | |
5125 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5126 | bool result; | |
5127 | PyObject * obj0 = 0 ; | |
5128 | char *kwnames[] = { | |
5129 | (char *) "self", NULL | |
5130 | }; | |
5131 | ||
5132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetDisableLabel",kwnames,&obj0)) goto fail; | |
5133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5135 | { | |
5136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5137 | result = (bool)(arg1)->GetDisableLabel(); | |
5138 | ||
5139 | wxPyEndAllowThreads(__tstate); | |
5140 | if (PyErr_Occurred()) SWIG_fail; | |
5141 | } | |
5142 | { | |
5143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5144 | } | |
5145 | return resultobj; | |
5146 | fail: | |
5147 | return NULL; | |
5148 | } | |
5149 | ||
5150 | ||
5151 | static PyObject *_wrap_PyShape_SetAttachmentMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
5152 | PyObject *resultobj; | |
5153 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5154 | int arg2 ; | |
5155 | PyObject * obj0 = 0 ; | |
5156 | PyObject * obj1 = 0 ; | |
5157 | char *kwnames[] = { | |
5158 | (char *) "self",(char *) "mode", NULL | |
5159 | }; | |
5160 | ||
5161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetAttachmentMode",kwnames,&obj0,&obj1)) goto fail; | |
5162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5164 | arg2 = (int)SWIG_As_int(obj1); | |
5165 | if (PyErr_Occurred()) SWIG_fail; | |
5166 | { | |
5167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5168 | (arg1)->SetAttachmentMode(arg2); | |
5169 | ||
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
5173 | Py_INCREF(Py_None); resultobj = Py_None; | |
5174 | return resultobj; | |
5175 | fail: | |
5176 | return NULL; | |
5177 | } | |
5178 | ||
5179 | ||
5180 | static PyObject *_wrap_PyShape_GetAttachmentMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
5181 | PyObject *resultobj; | |
5182 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5183 | int result; | |
5184 | PyObject * obj0 = 0 ; | |
5185 | char *kwnames[] = { | |
5186 | (char *) "self", NULL | |
5187 | }; | |
5188 | ||
5189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetAttachmentMode",kwnames,&obj0)) goto fail; | |
5190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5192 | { | |
5193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5194 | result = (int)(arg1)->GetAttachmentMode(); | |
5195 | ||
5196 | wxPyEndAllowThreads(__tstate); | |
5197 | if (PyErr_Occurred()) SWIG_fail; | |
5198 | } | |
5199 | resultobj = SWIG_From_int((int)result); | |
5200 | return resultobj; | |
5201 | fail: | |
5202 | return NULL; | |
5203 | } | |
5204 | ||
5205 | ||
5206 | static PyObject *_wrap_PyShape_SetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
5207 | PyObject *resultobj; | |
5208 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5209 | long arg2 ; | |
5210 | PyObject * obj0 = 0 ; | |
5211 | PyObject * obj1 = 0 ; | |
5212 | char *kwnames[] = { | |
5213 | (char *) "self",(char *) "i", NULL | |
5214 | }; | |
5215 | ||
5216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetId",kwnames,&obj0,&obj1)) goto fail; | |
5217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5219 | arg2 = (long)SWIG_As_long(obj1); | |
5220 | if (PyErr_Occurred()) SWIG_fail; | |
5221 | { | |
5222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5223 | (arg1)->SetId(arg2); | |
5224 | ||
5225 | wxPyEndAllowThreads(__tstate); | |
5226 | if (PyErr_Occurred()) SWIG_fail; | |
5227 | } | |
5228 | Py_INCREF(Py_None); resultobj = Py_None; | |
5229 | return resultobj; | |
5230 | fail: | |
5231 | return NULL; | |
5232 | } | |
5233 | ||
5234 | ||
5235 | static PyObject *_wrap_PyShape_GetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
5236 | PyObject *resultobj; | |
5237 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5238 | long result; | |
5239 | PyObject * obj0 = 0 ; | |
5240 | char *kwnames[] = { | |
5241 | (char *) "self", NULL | |
5242 | }; | |
5243 | ||
5244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetId",kwnames,&obj0)) goto fail; | |
5245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5247 | { | |
5248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5249 | result = (long)(arg1)->GetId(); | |
5250 | ||
5251 | wxPyEndAllowThreads(__tstate); | |
5252 | if (PyErr_Occurred()) SWIG_fail; | |
5253 | } | |
5254 | resultobj = SWIG_From_long((long)result); | |
5255 | return resultobj; | |
5256 | fail: | |
5257 | return NULL; | |
5258 | } | |
5259 | ||
5260 | ||
5261 | static PyObject *_wrap_PyShape_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
5262 | PyObject *resultobj; | |
5263 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5264 | wxPen *arg2 = (wxPen *) 0 ; | |
5265 | PyObject * obj0 = 0 ; | |
5266 | PyObject * obj1 = 0 ; | |
5267 | char *kwnames[] = { | |
5268 | (char *) "self",(char *) "pen", NULL | |
5269 | }; | |
5270 | ||
5271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
5272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5274 | { | |
5275 | wxPen* temp; | |
5276 | if (obj1) { | |
5277 | if (obj1 == Py_None) { | |
5278 | temp = NULL; | |
5279 | } | |
5280 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
5281 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
5282 | return NULL; | |
5283 | } | |
5284 | } | |
5285 | if (temp) | |
5286 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
5287 | temp->GetWidth(), | |
5288 | temp->GetStyle()); | |
5289 | else | |
5290 | arg2 = NULL; | |
5291 | } | |
5292 | { | |
5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5294 | (arg1)->SetPen(arg2); | |
5295 | ||
5296 | wxPyEndAllowThreads(__tstate); | |
5297 | if (PyErr_Occurred()) SWIG_fail; | |
5298 | } | |
5299 | Py_INCREF(Py_None); resultobj = Py_None; | |
5300 | return resultobj; | |
5301 | fail: | |
5302 | return NULL; | |
5303 | } | |
5304 | ||
5305 | ||
5306 | static PyObject *_wrap_PyShape_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
5307 | PyObject *resultobj; | |
5308 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5309 | wxBrush *arg2 = (wxBrush *) 0 ; | |
5310 | PyObject * obj0 = 0 ; | |
5311 | PyObject * obj1 = 0 ; | |
5312 | char *kwnames[] = { | |
5313 | (char *) "self",(char *) "brush", NULL | |
5314 | }; | |
5315 | ||
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
5317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5319 | { | |
5320 | wxBrush* temp; | |
5321 | if (obj1) { | |
5322 | if (obj1 == Py_None) { | |
5323 | temp = NULL; | |
5324 | } | |
5325 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
5326 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
5327 | return NULL; | |
5328 | } | |
5329 | } | |
5330 | if (temp) | |
5331 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
5332 | else | |
5333 | arg2 = NULL; | |
5334 | } | |
5335 | { | |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | (arg1)->SetBrush(arg2); | |
5338 | ||
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) SWIG_fail; | |
5341 | } | |
5342 | Py_INCREF(Py_None); resultobj = Py_None; | |
5343 | return resultobj; | |
5344 | fail: | |
5345 | return NULL; | |
5346 | } | |
5347 | ||
5348 | ||
5349 | static PyObject *_wrap_PyShape_Show(PyObject *, PyObject *args, PyObject *kwargs) { | |
5350 | PyObject *resultobj; | |
5351 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5352 | bool arg2 ; | |
5353 | PyObject * obj0 = 0 ; | |
5354 | PyObject * obj1 = 0 ; | |
5355 | char *kwnames[] = { | |
5356 | (char *) "self",(char *) "show", NULL | |
5357 | }; | |
5358 | ||
5359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Show",kwnames,&obj0,&obj1)) goto fail; | |
5360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5362 | arg2 = (bool)SWIG_As_bool(obj1); | |
5363 | if (PyErr_Occurred()) SWIG_fail; | |
5364 | { | |
5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5366 | (arg1)->Show(arg2); | |
5367 | ||
5368 | wxPyEndAllowThreads(__tstate); | |
5369 | if (PyErr_Occurred()) SWIG_fail; | |
5370 | } | |
5371 | Py_INCREF(Py_None); resultobj = Py_None; | |
5372 | return resultobj; | |
5373 | fail: | |
5374 | return NULL; | |
5375 | } | |
5376 | ||
5377 | ||
5378 | static PyObject *_wrap_PyShape_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { | |
5379 | PyObject *resultobj; | |
5380 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5381 | bool result; | |
5382 | PyObject * obj0 = 0 ; | |
5383 | char *kwnames[] = { | |
5384 | (char *) "self", NULL | |
5385 | }; | |
5386 | ||
5387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_IsShown",kwnames,&obj0)) goto fail; | |
5388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5390 | { | |
5391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5392 | result = (bool)(arg1)->IsShown(); | |
5393 | ||
5394 | wxPyEndAllowThreads(__tstate); | |
5395 | if (PyErr_Occurred()) SWIG_fail; | |
5396 | } | |
5397 | { | |
5398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5399 | } | |
5400 | return resultobj; | |
5401 | fail: | |
5402 | return NULL; | |
5403 | } | |
5404 | ||
5405 | ||
5406 | static PyObject *_wrap_PyShape_Move(PyObject *, PyObject *args, PyObject *kwargs) { | |
5407 | PyObject *resultobj; | |
5408 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5409 | wxDC *arg2 = 0 ; | |
5410 | double arg3 ; | |
5411 | double arg4 ; | |
5412 | bool arg5 = (bool) true ; | |
5413 | PyObject * obj0 = 0 ; | |
5414 | PyObject * obj1 = 0 ; | |
5415 | PyObject * obj2 = 0 ; | |
5416 | PyObject * obj3 = 0 ; | |
5417 | PyObject * obj4 = 0 ; | |
5418 | char *kwnames[] = { | |
5419 | (char *) "self",(char *) "dc",(char *) "x1",(char *) "y1",(char *) "display", NULL | |
5420 | }; | |
5421 | ||
5422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyShape_Move",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5425 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5426 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5427 | SWIG_fail; | |
5428 | if (arg2 == NULL) { | |
5429 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5430 | SWIG_fail; | |
5431 | } | |
5432 | arg3 = (double)SWIG_As_double(obj2); | |
5433 | if (PyErr_Occurred()) SWIG_fail; | |
5434 | arg4 = (double)SWIG_As_double(obj3); | |
5435 | if (PyErr_Occurred()) SWIG_fail; | |
5436 | if (obj4) { | |
5437 | arg5 = (bool)SWIG_As_bool(obj4); | |
5438 | if (PyErr_Occurred()) SWIG_fail; | |
5439 | } | |
5440 | { | |
5441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5442 | (arg1)->Move(*arg2,arg3,arg4,arg5); | |
5443 | ||
5444 | wxPyEndAllowThreads(__tstate); | |
5445 | if (PyErr_Occurred()) SWIG_fail; | |
5446 | } | |
5447 | Py_INCREF(Py_None); resultobj = Py_None; | |
5448 | return resultobj; | |
5449 | fail: | |
5450 | return NULL; | |
5451 | } | |
5452 | ||
5453 | ||
5454 | static PyObject *_wrap_PyShape_Erase(PyObject *, PyObject *args, PyObject *kwargs) { | |
5455 | PyObject *resultobj; | |
5456 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5457 | wxDC *arg2 = 0 ; | |
5458 | PyObject * obj0 = 0 ; | |
5459 | PyObject * obj1 = 0 ; | |
5460 | char *kwnames[] = { | |
5461 | (char *) "self",(char *) "dc", NULL | |
5462 | }; | |
5463 | ||
5464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Erase",kwnames,&obj0,&obj1)) goto fail; | |
5465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5468 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5469 | SWIG_fail; | |
5470 | if (arg2 == NULL) { | |
5471 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5472 | SWIG_fail; | |
5473 | } | |
5474 | { | |
5475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5476 | (arg1)->Erase(*arg2); | |
5477 | ||
5478 | wxPyEndAllowThreads(__tstate); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
5480 | } | |
5481 | Py_INCREF(Py_None); resultobj = Py_None; | |
5482 | return resultobj; | |
5483 | fail: | |
5484 | return NULL; | |
5485 | } | |
5486 | ||
5487 | ||
5488 | static PyObject *_wrap_PyShape_EraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
5489 | PyObject *resultobj; | |
5490 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5491 | wxDC *arg2 = 0 ; | |
5492 | PyObject * obj0 = 0 ; | |
5493 | PyObject * obj1 = 0 ; | |
5494 | char *kwnames[] = { | |
5495 | (char *) "self",(char *) "dc", NULL | |
5496 | }; | |
5497 | ||
5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_EraseContents",kwnames,&obj0,&obj1)) goto fail; | |
5499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5501 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5502 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5503 | SWIG_fail; | |
5504 | if (arg2 == NULL) { | |
5505 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5506 | SWIG_fail; | |
5507 | } | |
5508 | { | |
5509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5510 | (arg1)->EraseContents(*arg2); | |
5511 | ||
5512 | wxPyEndAllowThreads(__tstate); | |
5513 | if (PyErr_Occurred()) SWIG_fail; | |
5514 | } | |
5515 | Py_INCREF(Py_None); resultobj = Py_None; | |
5516 | return resultobj; | |
5517 | fail: | |
5518 | return NULL; | |
5519 | } | |
5520 | ||
5521 | ||
5522 | static PyObject *_wrap_PyShape_Draw(PyObject *, PyObject *args, PyObject *kwargs) { | |
5523 | PyObject *resultobj; | |
5524 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5525 | wxDC *arg2 = 0 ; | |
5526 | PyObject * obj0 = 0 ; | |
5527 | PyObject * obj1 = 0 ; | |
5528 | char *kwnames[] = { | |
5529 | (char *) "self",(char *) "dc", NULL | |
5530 | }; | |
5531 | ||
5532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Draw",kwnames,&obj0,&obj1)) goto fail; | |
5533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5535 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5536 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5537 | SWIG_fail; | |
5538 | if (arg2 == NULL) { | |
5539 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5540 | SWIG_fail; | |
5541 | } | |
5542 | { | |
5543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5544 | (arg1)->Draw(*arg2); | |
5545 | ||
5546 | wxPyEndAllowThreads(__tstate); | |
5547 | if (PyErr_Occurred()) SWIG_fail; | |
5548 | } | |
5549 | Py_INCREF(Py_None); resultobj = Py_None; | |
5550 | return resultobj; | |
5551 | fail: | |
5552 | return NULL; | |
5553 | } | |
5554 | ||
5555 | ||
5556 | static PyObject *_wrap_PyShape_Flash(PyObject *, PyObject *args, PyObject *kwargs) { | |
5557 | PyObject *resultobj; | |
5558 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5559 | PyObject * obj0 = 0 ; | |
5560 | char *kwnames[] = { | |
5561 | (char *) "self", NULL | |
5562 | }; | |
5563 | ||
5564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Flash",kwnames,&obj0)) goto fail; | |
5565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5567 | { | |
5568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5569 | (arg1)->Flash(); | |
5570 | ||
5571 | wxPyEndAllowThreads(__tstate); | |
5572 | if (PyErr_Occurred()) SWIG_fail; | |
5573 | } | |
5574 | Py_INCREF(Py_None); resultobj = Py_None; | |
5575 | return resultobj; | |
5576 | fail: | |
5577 | return NULL; | |
5578 | } | |
5579 | ||
5580 | ||
5581 | static PyObject *_wrap_PyShape_MoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
5582 | PyObject *resultobj; | |
5583 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5584 | wxDC *arg2 = 0 ; | |
5585 | PyObject * obj0 = 0 ; | |
5586 | PyObject * obj1 = 0 ; | |
5587 | char *kwnames[] = { | |
5588 | (char *) "self",(char *) "dc", NULL | |
5589 | }; | |
5590 | ||
5591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_MoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
5592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5594 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5595 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5596 | SWIG_fail; | |
5597 | if (arg2 == NULL) { | |
5598 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5599 | SWIG_fail; | |
5600 | } | |
5601 | { | |
5602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5603 | (arg1)->MoveLinks(*arg2); | |
5604 | ||
5605 | wxPyEndAllowThreads(__tstate); | |
5606 | if (PyErr_Occurred()) SWIG_fail; | |
5607 | } | |
5608 | Py_INCREF(Py_None); resultobj = Py_None; | |
5609 | return resultobj; | |
5610 | fail: | |
5611 | return NULL; | |
5612 | } | |
5613 | ||
5614 | ||
5615 | static PyObject *_wrap_PyShape_DrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject *resultobj; | |
5617 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5618 | wxDC *arg2 = 0 ; | |
5619 | PyObject * obj0 = 0 ; | |
5620 | PyObject * obj1 = 0 ; | |
5621 | char *kwnames[] = { | |
5622 | (char *) "self",(char *) "dc", NULL | |
5623 | }; | |
5624 | ||
5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_DrawContents",kwnames,&obj0,&obj1)) goto fail; | |
5626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5628 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5629 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5630 | SWIG_fail; | |
5631 | if (arg2 == NULL) { | |
5632 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5633 | SWIG_fail; | |
5634 | } | |
5635 | { | |
5636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5637 | (arg1)->DrawContents(*arg2); | |
5638 | ||
5639 | wxPyEndAllowThreads(__tstate); | |
5640 | if (PyErr_Occurred()) SWIG_fail; | |
5641 | } | |
5642 | Py_INCREF(Py_None); resultobj = Py_None; | |
5643 | return resultobj; | |
5644 | fail: | |
5645 | return NULL; | |
5646 | } | |
5647 | ||
5648 | ||
5649 | static PyObject *_wrap_PyShape_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5650 | PyObject *resultobj; | |
5651 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5652 | double arg2 ; | |
5653 | double arg3 ; | |
5654 | bool arg4 = (bool) true ; | |
5655 | PyObject * obj0 = 0 ; | |
5656 | PyObject * obj1 = 0 ; | |
5657 | PyObject * obj2 = 0 ; | |
5658 | PyObject * obj3 = 0 ; | |
5659 | char *kwnames[] = { | |
5660 | (char *) "self",(char *) "x",(char *) "y",(char *) "recursive", NULL | |
5661 | }; | |
5662 | ||
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShape_SetSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5666 | arg2 = (double)SWIG_As_double(obj1); | |
5667 | if (PyErr_Occurred()) SWIG_fail; | |
5668 | arg3 = (double)SWIG_As_double(obj2); | |
5669 | if (PyErr_Occurred()) SWIG_fail; | |
5670 | if (obj3) { | |
5671 | arg4 = (bool)SWIG_As_bool(obj3); | |
5672 | if (PyErr_Occurred()) SWIG_fail; | |
5673 | } | |
5674 | { | |
5675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5676 | (arg1)->SetSize(arg2,arg3,arg4); | |
5677 | ||
5678 | wxPyEndAllowThreads(__tstate); | |
5679 | if (PyErr_Occurred()) SWIG_fail; | |
5680 | } | |
5681 | Py_INCREF(Py_None); resultobj = Py_None; | |
5682 | return resultobj; | |
5683 | fail: | |
5684 | return NULL; | |
5685 | } | |
5686 | ||
5687 | ||
5688 | static PyObject *_wrap_PyShape_SetAttachmentSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5689 | PyObject *resultobj; | |
5690 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5691 | double arg2 ; | |
5692 | double arg3 ; | |
5693 | PyObject * obj0 = 0 ; | |
5694 | PyObject * obj1 = 0 ; | |
5695 | PyObject * obj2 = 0 ; | |
5696 | char *kwnames[] = { | |
5697 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5698 | }; | |
5699 | ||
5700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_SetAttachmentSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5703 | arg2 = (double)SWIG_As_double(obj1); | |
5704 | if (PyErr_Occurred()) SWIG_fail; | |
5705 | arg3 = (double)SWIG_As_double(obj2); | |
5706 | if (PyErr_Occurred()) SWIG_fail; | |
5707 | { | |
5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5709 | (arg1)->SetAttachmentSize(arg2,arg3); | |
5710 | ||
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | Py_INCREF(Py_None); resultobj = Py_None; | |
5715 | return resultobj; | |
5716 | fail: | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
5721 | static PyObject *_wrap_PyShape_Attach(PyObject *, PyObject *args, PyObject *kwargs) { | |
5722 | PyObject *resultobj; | |
5723 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5724 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
5725 | PyObject * obj0 = 0 ; | |
5726 | PyObject * obj1 = 0 ; | |
5727 | char *kwnames[] = { | |
5728 | (char *) "self",(char *) "can", NULL | |
5729 | }; | |
5730 | ||
5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Attach",kwnames,&obj0,&obj1)) goto fail; | |
5732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
5735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5736 | { | |
5737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5738 | (arg1)->Attach(arg2); | |
5739 | ||
5740 | wxPyEndAllowThreads(__tstate); | |
5741 | if (PyErr_Occurred()) SWIG_fail; | |
5742 | } | |
5743 | Py_INCREF(Py_None); resultobj = Py_None; | |
5744 | return resultobj; | |
5745 | fail: | |
5746 | return NULL; | |
5747 | } | |
5748 | ||
5749 | ||
5750 | static PyObject *_wrap_PyShape_Detach(PyObject *, PyObject *args, PyObject *kwargs) { | |
5751 | PyObject *resultobj; | |
5752 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5753 | PyObject * obj0 = 0 ; | |
5754 | char *kwnames[] = { | |
5755 | (char *) "self", NULL | |
5756 | }; | |
5757 | ||
5758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Detach",kwnames,&obj0)) goto fail; | |
5759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5761 | { | |
5762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5763 | (arg1)->Detach(); | |
5764 | ||
5765 | wxPyEndAllowThreads(__tstate); | |
5766 | if (PyErr_Occurred()) SWIG_fail; | |
5767 | } | |
5768 | Py_INCREF(Py_None); resultobj = Py_None; | |
5769 | return resultobj; | |
5770 | fail: | |
5771 | return NULL; | |
5772 | } | |
5773 | ||
5774 | ||
5775 | static PyObject *_wrap_PyShape_Constrain(PyObject *, PyObject *args, PyObject *kwargs) { | |
5776 | PyObject *resultobj; | |
5777 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5778 | bool result; | |
5779 | PyObject * obj0 = 0 ; | |
5780 | char *kwnames[] = { | |
5781 | (char *) "self", NULL | |
5782 | }; | |
5783 | ||
5784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Constrain",kwnames,&obj0)) goto fail; | |
5785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5787 | { | |
5788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5789 | result = (bool)(arg1)->Constrain(); | |
5790 | ||
5791 | wxPyEndAllowThreads(__tstate); | |
5792 | if (PyErr_Occurred()) SWIG_fail; | |
5793 | } | |
5794 | { | |
5795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5796 | } | |
5797 | return resultobj; | |
5798 | fail: | |
5799 | return NULL; | |
5800 | } | |
5801 | ||
5802 | ||
5803 | static PyObject *_wrap_PyShape_AddLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
5804 | PyObject *resultobj; | |
5805 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5806 | wxPyLineShape *arg2 = (wxPyLineShape *) 0 ; | |
5807 | wxPyShape *arg3 = (wxPyShape *) 0 ; | |
5808 | int arg4 = (int) 0 ; | |
5809 | int arg5 = (int) 0 ; | |
5810 | int arg6 = (int) -1 ; | |
5811 | int arg7 = (int) -1 ; | |
5812 | PyObject * obj0 = 0 ; | |
5813 | PyObject * obj1 = 0 ; | |
5814 | PyObject * obj2 = 0 ; | |
5815 | PyObject * obj3 = 0 ; | |
5816 | PyObject * obj4 = 0 ; | |
5817 | PyObject * obj5 = 0 ; | |
5818 | PyObject * obj6 = 0 ; | |
5819 | char *kwnames[] = { | |
5820 | (char *) "self",(char *) "line",(char *) "other",(char *) "attachFrom",(char *) "attachTo",(char *) "positionFrom",(char *) "positionTo", NULL | |
5821 | }; | |
5822 | ||
5823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:PyShape_AddLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5826 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyLineShape, | |
5827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5828 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
5829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5830 | if (obj3) { | |
5831 | arg4 = (int)SWIG_As_int(obj3); | |
5832 | if (PyErr_Occurred()) SWIG_fail; | |
5833 | } | |
5834 | if (obj4) { | |
5835 | arg5 = (int)SWIG_As_int(obj4); | |
5836 | if (PyErr_Occurred()) SWIG_fail; | |
5837 | } | |
5838 | if (obj5) { | |
5839 | arg6 = (int)SWIG_As_int(obj5); | |
5840 | if (PyErr_Occurred()) SWIG_fail; | |
5841 | } | |
5842 | if (obj6) { | |
5843 | arg7 = (int)SWIG_As_int(obj6); | |
5844 | if (PyErr_Occurred()) SWIG_fail; | |
5845 | } | |
5846 | { | |
5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5848 | (arg1)->AddLine(arg2,arg3,arg4,arg5,arg6,arg7); | |
5849 | ||
5850 | wxPyEndAllowThreads(__tstate); | |
5851 | if (PyErr_Occurred()) SWIG_fail; | |
5852 | } | |
5853 | Py_INCREF(Py_None); resultobj = Py_None; | |
5854 | return resultobj; | |
5855 | fail: | |
5856 | return NULL; | |
5857 | } | |
5858 | ||
5859 | ||
5860 | static PyObject *_wrap_PyShape_GetLinePosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
5861 | PyObject *resultobj; | |
5862 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5863 | wxPyLineShape *arg2 = (wxPyLineShape *) 0 ; | |
5864 | int result; | |
5865 | PyObject * obj0 = 0 ; | |
5866 | PyObject * obj1 = 0 ; | |
5867 | char *kwnames[] = { | |
5868 | (char *) "self",(char *) "line", NULL | |
5869 | }; | |
5870 | ||
5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetLinePosition",kwnames,&obj0,&obj1)) goto fail; | |
5872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5874 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyLineShape, | |
5875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5876 | { | |
5877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5878 | result = (int)(arg1)->GetLinePosition(arg2); | |
5879 | ||
5880 | wxPyEndAllowThreads(__tstate); | |
5881 | if (PyErr_Occurred()) SWIG_fail; | |
5882 | } | |
5883 | resultobj = SWIG_From_int((int)result); | |
5884 | return resultobj; | |
5885 | fail: | |
5886 | return NULL; | |
5887 | } | |
5888 | ||
5889 | ||
5890 | static PyObject *_wrap_PyShape_AddText(PyObject *, PyObject *args, PyObject *kwargs) { | |
5891 | PyObject *resultobj; | |
5892 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5893 | wxString *arg2 = 0 ; | |
5894 | bool temp2 = false ; | |
5895 | PyObject * obj0 = 0 ; | |
5896 | PyObject * obj1 = 0 ; | |
5897 | char *kwnames[] = { | |
5898 | (char *) "self",(char *) "string", NULL | |
5899 | }; | |
5900 | ||
5901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_AddText",kwnames,&obj0,&obj1)) goto fail; | |
5902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5904 | { | |
5905 | arg2 = wxString_in_helper(obj1); | |
5906 | if (arg2 == NULL) SWIG_fail; | |
5907 | temp2 = true; | |
5908 | } | |
5909 | { | |
5910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5911 | (arg1)->AddText((wxString const &)*arg2); | |
5912 | ||
5913 | wxPyEndAllowThreads(__tstate); | |
5914 | if (PyErr_Occurred()) SWIG_fail; | |
5915 | } | |
5916 | Py_INCREF(Py_None); resultobj = Py_None; | |
5917 | { | |
5918 | if (temp2) | |
5919 | delete arg2; | |
5920 | } | |
5921 | return resultobj; | |
5922 | fail: | |
5923 | { | |
5924 | if (temp2) | |
5925 | delete arg2; | |
5926 | } | |
5927 | return NULL; | |
5928 | } | |
5929 | ||
5930 | ||
5931 | static PyObject *_wrap_PyShape_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
5932 | PyObject *resultobj; | |
5933 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5934 | wxPen *result; | |
5935 | PyObject * obj0 = 0 ; | |
5936 | char *kwnames[] = { | |
5937 | (char *) "self", NULL | |
5938 | }; | |
5939 | ||
5940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetPen",kwnames,&obj0)) goto fail; | |
5941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5943 | { | |
5944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5945 | result = (wxPen *)(arg1)->GetPen(); | |
5946 | ||
5947 | wxPyEndAllowThreads(__tstate); | |
5948 | if (PyErr_Occurred()) SWIG_fail; | |
5949 | } | |
5950 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
5951 | return resultobj; | |
5952 | fail: | |
5953 | return NULL; | |
5954 | } | |
5955 | ||
5956 | ||
5957 | static PyObject *_wrap_PyShape_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
5958 | PyObject *resultobj; | |
5959 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5960 | wxBrush *result; | |
5961 | PyObject * obj0 = 0 ; | |
5962 | char *kwnames[] = { | |
5963 | (char *) "self", NULL | |
5964 | }; | |
5965 | ||
5966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBrush",kwnames,&obj0)) goto fail; | |
5967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5969 | { | |
5970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5971 | result = (wxBrush *)(arg1)->GetBrush(); | |
5972 | ||
5973 | wxPyEndAllowThreads(__tstate); | |
5974 | if (PyErr_Occurred()) SWIG_fail; | |
5975 | } | |
5976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
5977 | return resultobj; | |
5978 | fail: | |
5979 | return NULL; | |
5980 | } | |
5981 | ||
5982 | ||
5983 | static PyObject *_wrap_PyShape_SetDefaultRegionSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5984 | PyObject *resultobj; | |
5985 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5986 | PyObject * obj0 = 0 ; | |
5987 | char *kwnames[] = { | |
5988 | (char *) "self", NULL | |
5989 | }; | |
5990 | ||
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_SetDefaultRegionSize",kwnames,&obj0)) goto fail; | |
5992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
5993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5994 | { | |
5995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5996 | (arg1)->SetDefaultRegionSize(); | |
5997 | ||
5998 | wxPyEndAllowThreads(__tstate); | |
5999 | if (PyErr_Occurred()) SWIG_fail; | |
6000 | } | |
6001 | Py_INCREF(Py_None); resultobj = Py_None; | |
6002 | return resultobj; | |
6003 | fail: | |
6004 | return NULL; | |
6005 | } | |
6006 | ||
6007 | ||
6008 | static PyObject *_wrap_PyShape_FormatText(PyObject *, PyObject *args, PyObject *kwargs) { | |
6009 | PyObject *resultobj; | |
6010 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6011 | wxDC *arg2 = 0 ; | |
6012 | wxString *arg3 = 0 ; | |
6013 | int arg4 = (int) 0 ; | |
6014 | bool temp3 = false ; | |
6015 | PyObject * obj0 = 0 ; | |
6016 | PyObject * obj1 = 0 ; | |
6017 | PyObject * obj2 = 0 ; | |
6018 | PyObject * obj3 = 0 ; | |
6019 | char *kwnames[] = { | |
6020 | (char *) "self",(char *) "dc",(char *) "s",(char *) "regionId", NULL | |
6021 | }; | |
6022 | ||
6023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShape_FormatText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6027 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6028 | SWIG_fail; | |
6029 | if (arg2 == NULL) { | |
6030 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6031 | SWIG_fail; | |
6032 | } | |
6033 | { | |
6034 | arg3 = wxString_in_helper(obj2); | |
6035 | if (arg3 == NULL) SWIG_fail; | |
6036 | temp3 = true; | |
6037 | } | |
6038 | if (obj3) { | |
6039 | arg4 = (int)SWIG_As_int(obj3); | |
6040 | if (PyErr_Occurred()) SWIG_fail; | |
6041 | } | |
6042 | { | |
6043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6044 | (arg1)->FormatText(*arg2,(wxString const &)*arg3,arg4); | |
6045 | ||
6046 | wxPyEndAllowThreads(__tstate); | |
6047 | if (PyErr_Occurred()) SWIG_fail; | |
6048 | } | |
6049 | Py_INCREF(Py_None); resultobj = Py_None; | |
6050 | { | |
6051 | if (temp3) | |
6052 | delete arg3; | |
6053 | } | |
6054 | return resultobj; | |
6055 | fail: | |
6056 | { | |
6057 | if (temp3) | |
6058 | delete arg3; | |
6059 | } | |
6060 | return NULL; | |
6061 | } | |
6062 | ||
6063 | ||
6064 | static PyObject *_wrap_PyShape_SetFormatMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
6065 | PyObject *resultobj; | |
6066 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6067 | int arg2 ; | |
6068 | int arg3 = (int) 0 ; | |
6069 | PyObject * obj0 = 0 ; | |
6070 | PyObject * obj1 = 0 ; | |
6071 | PyObject * obj2 = 0 ; | |
6072 | char *kwnames[] = { | |
6073 | (char *) "self",(char *) "mode",(char *) "regionId", NULL | |
6074 | }; | |
6075 | ||
6076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetFormatMode",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6079 | arg2 = (int)SWIG_As_int(obj1); | |
6080 | if (PyErr_Occurred()) SWIG_fail; | |
6081 | if (obj2) { | |
6082 | arg3 = (int)SWIG_As_int(obj2); | |
6083 | if (PyErr_Occurred()) SWIG_fail; | |
6084 | } | |
6085 | { | |
6086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6087 | (arg1)->SetFormatMode(arg2,arg3); | |
6088 | ||
6089 | wxPyEndAllowThreads(__tstate); | |
6090 | if (PyErr_Occurred()) SWIG_fail; | |
6091 | } | |
6092 | Py_INCREF(Py_None); resultobj = Py_None; | |
6093 | return resultobj; | |
6094 | fail: | |
6095 | return NULL; | |
6096 | } | |
6097 | ||
6098 | ||
6099 | static PyObject *_wrap_PyShape_GetFormatMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
6100 | PyObject *resultobj; | |
6101 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6102 | int arg2 = (int) 0 ; | |
6103 | int result; | |
6104 | PyObject * obj0 = 0 ; | |
6105 | PyObject * obj1 = 0 ; | |
6106 | char *kwnames[] = { | |
6107 | (char *) "self",(char *) "regionId", NULL | |
6108 | }; | |
6109 | ||
6110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_GetFormatMode",kwnames,&obj0,&obj1)) goto fail; | |
6111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6113 | if (obj1) { | |
6114 | arg2 = (int)SWIG_As_int(obj1); | |
6115 | if (PyErr_Occurred()) SWIG_fail; | |
6116 | } | |
6117 | { | |
6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6119 | result = (int)(arg1)->GetFormatMode(arg2); | |
6120 | ||
6121 | wxPyEndAllowThreads(__tstate); | |
6122 | if (PyErr_Occurred()) SWIG_fail; | |
6123 | } | |
6124 | resultobj = SWIG_From_int((int)result); | |
6125 | return resultobj; | |
6126 | fail: | |
6127 | return NULL; | |
6128 | } | |
6129 | ||
6130 | ||
6131 | static PyObject *_wrap_PyShape_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
6132 | PyObject *resultobj; | |
6133 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6134 | wxFont *arg2 = (wxFont *) 0 ; | |
6135 | int arg3 = (int) 0 ; | |
6136 | PyObject * obj0 = 0 ; | |
6137 | PyObject * obj1 = 0 ; | |
6138 | PyObject * obj2 = 0 ; | |
6139 | char *kwnames[] = { | |
6140 | (char *) "self",(char *) "font",(char *) "regionId", NULL | |
6141 | }; | |
6142 | ||
6143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6146 | { | |
6147 | wxFont* temp; | |
6148 | if (obj1) { | |
6149 | if (obj1 == Py_None) { | |
6150 | temp = NULL; | |
6151 | } | |
6152 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
6153 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
6154 | return NULL; | |
6155 | } | |
6156 | } | |
6157 | if (temp) | |
6158 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
6159 | temp->GetFamily(), | |
6160 | temp->GetStyle(), | |
6161 | temp->GetWeight(), | |
6162 | temp->GetUnderlined(), | |
6163 | temp->GetFaceName(), | |
6164 | temp->GetEncoding()); | |
6165 | else | |
6166 | arg2 = NULL; | |
6167 | } | |
6168 | if (obj2) { | |
6169 | arg3 = (int)SWIG_As_int(obj2); | |
6170 | if (PyErr_Occurred()) SWIG_fail; | |
6171 | } | |
6172 | { | |
6173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6174 | (arg1)->SetFont(arg2,arg3); | |
6175 | ||
6176 | wxPyEndAllowThreads(__tstate); | |
6177 | if (PyErr_Occurred()) SWIG_fail; | |
6178 | } | |
6179 | Py_INCREF(Py_None); resultobj = Py_None; | |
6180 | return resultobj; | |
6181 | fail: | |
6182 | return NULL; | |
6183 | } | |
6184 | ||
6185 | ||
6186 | static PyObject *_wrap_PyShape_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
6187 | PyObject *resultobj; | |
6188 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6189 | int arg2 = (int) 0 ; | |
6190 | wxFont *result; | |
6191 | PyObject * obj0 = 0 ; | |
6192 | PyObject * obj1 = 0 ; | |
6193 | char *kwnames[] = { | |
6194 | (char *) "self",(char *) "regionId", NULL | |
6195 | }; | |
6196 | ||
6197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_GetFont",kwnames,&obj0,&obj1)) goto fail; | |
6198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6200 | if (obj1) { | |
6201 | arg2 = (int)SWIG_As_int(obj1); | |
6202 | if (PyErr_Occurred()) SWIG_fail; | |
6203 | } | |
6204 | { | |
6205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6206 | result = (wxFont *)(arg1)->GetFont(arg2); | |
6207 | ||
6208 | wxPyEndAllowThreads(__tstate); | |
6209 | if (PyErr_Occurred()) SWIG_fail; | |
6210 | } | |
6211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
6212 | return resultobj; | |
6213 | fail: | |
6214 | return NULL; | |
6215 | } | |
6216 | ||
6217 | ||
6218 | static PyObject *_wrap_PyShape_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
6219 | PyObject *resultobj; | |
6220 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6221 | wxString *arg2 = 0 ; | |
6222 | int arg3 = (int) 0 ; | |
6223 | bool temp2 = false ; | |
6224 | PyObject * obj0 = 0 ; | |
6225 | PyObject * obj1 = 0 ; | |
6226 | PyObject * obj2 = 0 ; | |
6227 | char *kwnames[] = { | |
6228 | (char *) "self",(char *) "colour",(char *) "regionId", NULL | |
6229 | }; | |
6230 | ||
6231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6234 | { | |
6235 | arg2 = wxString_in_helper(obj1); | |
6236 | if (arg2 == NULL) SWIG_fail; | |
6237 | temp2 = true; | |
6238 | } | |
6239 | if (obj2) { | |
6240 | arg3 = (int)SWIG_As_int(obj2); | |
6241 | if (PyErr_Occurred()) SWIG_fail; | |
6242 | } | |
6243 | { | |
6244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6245 | (arg1)->SetTextColour((wxString const &)*arg2,arg3); | |
6246 | ||
6247 | wxPyEndAllowThreads(__tstate); | |
6248 | if (PyErr_Occurred()) SWIG_fail; | |
6249 | } | |
6250 | Py_INCREF(Py_None); resultobj = Py_None; | |
6251 | { | |
6252 | if (temp2) | |
6253 | delete arg2; | |
6254 | } | |
6255 | return resultobj; | |
6256 | fail: | |
6257 | { | |
6258 | if (temp2) | |
6259 | delete arg2; | |
6260 | } | |
6261 | return NULL; | |
6262 | } | |
6263 | ||
6264 | ||
6265 | static PyObject *_wrap_PyShape_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
6266 | PyObject *resultobj; | |
6267 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6268 | int arg2 = (int) 0 ; | |
6269 | wxString result; | |
6270 | PyObject * obj0 = 0 ; | |
6271 | PyObject * obj1 = 0 ; | |
6272 | char *kwnames[] = { | |
6273 | (char *) "self",(char *) "regionId", NULL | |
6274 | }; | |
6275 | ||
6276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_GetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6279 | if (obj1) { | |
6280 | arg2 = (int)SWIG_As_int(obj1); | |
6281 | if (PyErr_Occurred()) SWIG_fail; | |
6282 | } | |
6283 | { | |
6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6285 | result = (arg1)->GetTextColour(arg2); | |
6286 | ||
6287 | wxPyEndAllowThreads(__tstate); | |
6288 | if (PyErr_Occurred()) SWIG_fail; | |
6289 | } | |
6290 | { | |
6291 | #if wxUSE_UNICODE | |
6292 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6293 | #else | |
6294 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6295 | #endif | |
6296 | } | |
6297 | return resultobj; | |
6298 | fail: | |
6299 | return NULL; | |
6300 | } | |
6301 | ||
6302 | ||
6303 | static PyObject *_wrap_PyShape_GetNumberOfTextRegions(PyObject *, PyObject *args, PyObject *kwargs) { | |
6304 | PyObject *resultobj; | |
6305 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6306 | int result; | |
6307 | PyObject * obj0 = 0 ; | |
6308 | char *kwnames[] = { | |
6309 | (char *) "self", NULL | |
6310 | }; | |
6311 | ||
6312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetNumberOfTextRegions",kwnames,&obj0)) goto fail; | |
6313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6315 | { | |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6317 | result = (int)(arg1)->GetNumberOfTextRegions(); | |
6318 | ||
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
6321 | } | |
6322 | resultobj = SWIG_From_int((int)result); | |
6323 | return resultobj; | |
6324 | fail: | |
6325 | return NULL; | |
6326 | } | |
6327 | ||
6328 | ||
6329 | static PyObject *_wrap_PyShape_SetRegionName(PyObject *, PyObject *args, PyObject *kwargs) { | |
6330 | PyObject *resultobj; | |
6331 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6332 | wxString *arg2 = 0 ; | |
6333 | int arg3 = (int) 0 ; | |
6334 | bool temp2 = false ; | |
6335 | PyObject * obj0 = 0 ; | |
6336 | PyObject * obj1 = 0 ; | |
6337 | PyObject * obj2 = 0 ; | |
6338 | char *kwnames[] = { | |
6339 | (char *) "self",(char *) "name",(char *) "regionId", NULL | |
6340 | }; | |
6341 | ||
6342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetRegionName",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6345 | { | |
6346 | arg2 = wxString_in_helper(obj1); | |
6347 | if (arg2 == NULL) SWIG_fail; | |
6348 | temp2 = true; | |
6349 | } | |
6350 | if (obj2) { | |
6351 | arg3 = (int)SWIG_As_int(obj2); | |
6352 | if (PyErr_Occurred()) SWIG_fail; | |
6353 | } | |
6354 | { | |
6355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6356 | (arg1)->SetRegionName((wxString const &)*arg2,arg3); | |
6357 | ||
6358 | wxPyEndAllowThreads(__tstate); | |
6359 | if (PyErr_Occurred()) SWIG_fail; | |
6360 | } | |
6361 | Py_INCREF(Py_None); resultobj = Py_None; | |
6362 | { | |
6363 | if (temp2) | |
6364 | delete arg2; | |
6365 | } | |
6366 | return resultobj; | |
6367 | fail: | |
6368 | { | |
6369 | if (temp2) | |
6370 | delete arg2; | |
6371 | } | |
6372 | return NULL; | |
6373 | } | |
6374 | ||
6375 | ||
6376 | static PyObject *_wrap_PyShape_GetRegionName(PyObject *, PyObject *args, PyObject *kwargs) { | |
6377 | PyObject *resultobj; | |
6378 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6379 | int arg2 ; | |
6380 | wxString result; | |
6381 | PyObject * obj0 = 0 ; | |
6382 | PyObject * obj1 = 0 ; | |
6383 | char *kwnames[] = { | |
6384 | (char *) "self",(char *) "regionId", NULL | |
6385 | }; | |
6386 | ||
6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetRegionName",kwnames,&obj0,&obj1)) goto fail; | |
6388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6390 | arg2 = (int)SWIG_As_int(obj1); | |
6391 | if (PyErr_Occurred()) SWIG_fail; | |
6392 | { | |
6393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6394 | result = (arg1)->GetRegionName(arg2); | |
6395 | ||
6396 | wxPyEndAllowThreads(__tstate); | |
6397 | if (PyErr_Occurred()) SWIG_fail; | |
6398 | } | |
6399 | { | |
6400 | #if wxUSE_UNICODE | |
6401 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6402 | #else | |
6403 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6404 | #endif | |
6405 | } | |
6406 | return resultobj; | |
6407 | fail: | |
6408 | return NULL; | |
6409 | } | |
6410 | ||
6411 | ||
6412 | static PyObject *_wrap_PyShape_GetRegionId(PyObject *, PyObject *args, PyObject *kwargs) { | |
6413 | PyObject *resultobj; | |
6414 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6415 | wxString *arg2 = 0 ; | |
6416 | int result; | |
6417 | bool temp2 = false ; | |
6418 | PyObject * obj0 = 0 ; | |
6419 | PyObject * obj1 = 0 ; | |
6420 | char *kwnames[] = { | |
6421 | (char *) "self",(char *) "name", NULL | |
6422 | }; | |
6423 | ||
6424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetRegionId",kwnames,&obj0,&obj1)) goto fail; | |
6425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6427 | { | |
6428 | arg2 = wxString_in_helper(obj1); | |
6429 | if (arg2 == NULL) SWIG_fail; | |
6430 | temp2 = true; | |
6431 | } | |
6432 | { | |
6433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6434 | result = (int)(arg1)->GetRegionId((wxString const &)*arg2); | |
6435 | ||
6436 | wxPyEndAllowThreads(__tstate); | |
6437 | if (PyErr_Occurred()) SWIG_fail; | |
6438 | } | |
6439 | resultobj = SWIG_From_int((int)result); | |
6440 | { | |
6441 | if (temp2) | |
6442 | delete arg2; | |
6443 | } | |
6444 | return resultobj; | |
6445 | fail: | |
6446 | { | |
6447 | if (temp2) | |
6448 | delete arg2; | |
6449 | } | |
6450 | return NULL; | |
6451 | } | |
6452 | ||
6453 | ||
6454 | static PyObject *_wrap_PyShape_NameRegions(PyObject *, PyObject *args, PyObject *kwargs) { | |
6455 | PyObject *resultobj; | |
6456 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6457 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6458 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6459 | bool temp2 = false ; | |
6460 | PyObject * obj0 = 0 ; | |
6461 | PyObject * obj1 = 0 ; | |
6462 | char *kwnames[] = { | |
6463 | (char *) "self",(char *) "parentName", NULL | |
6464 | }; | |
6465 | ||
6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_NameRegions",kwnames,&obj0,&obj1)) goto fail; | |
6467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6469 | if (obj1) { | |
6470 | { | |
6471 | arg2 = wxString_in_helper(obj1); | |
6472 | if (arg2 == NULL) SWIG_fail; | |
6473 | temp2 = true; | |
6474 | } | |
6475 | } | |
6476 | { | |
6477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6478 | (arg1)->NameRegions((wxString const &)*arg2); | |
6479 | ||
6480 | wxPyEndAllowThreads(__tstate); | |
6481 | if (PyErr_Occurred()) SWIG_fail; | |
6482 | } | |
6483 | Py_INCREF(Py_None); resultobj = Py_None; | |
6484 | { | |
6485 | if (temp2) | |
6486 | delete arg2; | |
6487 | } | |
6488 | return resultobj; | |
6489 | fail: | |
6490 | { | |
6491 | if (temp2) | |
6492 | delete arg2; | |
6493 | } | |
6494 | return NULL; | |
6495 | } | |
6496 | ||
6497 | ||
6498 | static PyObject *_wrap_PyShape_GetRegions(PyObject *, PyObject *args, PyObject *kwargs) { | |
6499 | PyObject *resultobj; | |
6500 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6501 | PyObject *result; | |
6502 | PyObject * obj0 = 0 ; | |
6503 | char *kwnames[] = { | |
6504 | (char *) "self", NULL | |
6505 | }; | |
6506 | ||
6507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetRegions",kwnames,&obj0)) goto fail; | |
6508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6510 | { | |
6511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6512 | result = (PyObject *)wxPyShape_GetRegions(arg1); | |
6513 | ||
6514 | wxPyEndAllowThreads(__tstate); | |
6515 | if (PyErr_Occurred()) SWIG_fail; | |
6516 | } | |
6517 | resultobj = result; | |
6518 | return resultobj; | |
6519 | fail: | |
6520 | return NULL; | |
6521 | } | |
6522 | ||
6523 | ||
6524 | static PyObject *_wrap_PyShape_AddRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
6525 | PyObject *resultobj; | |
6526 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6527 | wxShapeRegion *arg2 = (wxShapeRegion *) 0 ; | |
6528 | PyObject * obj0 = 0 ; | |
6529 | PyObject * obj1 = 0 ; | |
6530 | char *kwnames[] = { | |
6531 | (char *) "self",(char *) "region", NULL | |
6532 | }; | |
6533 | ||
6534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_AddRegion",kwnames,&obj0,&obj1)) goto fail; | |
6535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6537 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxShapeRegion, | |
6538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6539 | { | |
6540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6541 | (arg1)->AddRegion(arg2); | |
6542 | ||
6543 | wxPyEndAllowThreads(__tstate); | |
6544 | if (PyErr_Occurred()) SWIG_fail; | |
6545 | } | |
6546 | Py_INCREF(Py_None); resultobj = Py_None; | |
6547 | return resultobj; | |
6548 | fail: | |
6549 | return NULL; | |
6550 | } | |
6551 | ||
6552 | ||
6553 | static PyObject *_wrap_PyShape_ClearRegions(PyObject *, PyObject *args, PyObject *kwargs) { | |
6554 | PyObject *resultobj; | |
6555 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6556 | PyObject * obj0 = 0 ; | |
6557 | char *kwnames[] = { | |
6558 | (char *) "self", NULL | |
6559 | }; | |
6560 | ||
6561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ClearRegions",kwnames,&obj0)) goto fail; | |
6562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6564 | { | |
6565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6566 | (arg1)->ClearRegions(); | |
6567 | ||
6568 | wxPyEndAllowThreads(__tstate); | |
6569 | if (PyErr_Occurred()) SWIG_fail; | |
6570 | } | |
6571 | Py_INCREF(Py_None); resultobj = Py_None; | |
6572 | return resultobj; | |
6573 | fail: | |
6574 | return NULL; | |
6575 | } | |
6576 | ||
6577 | ||
6578 | static PyObject *_wrap_PyShape_AssignNewIds(PyObject *, PyObject *args, PyObject *kwargs) { | |
6579 | PyObject *resultobj; | |
6580 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6581 | PyObject * obj0 = 0 ; | |
6582 | char *kwnames[] = { | |
6583 | (char *) "self", NULL | |
6584 | }; | |
6585 | ||
6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_AssignNewIds",kwnames,&obj0)) goto fail; | |
6587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6589 | { | |
6590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6591 | (arg1)->AssignNewIds(); | |
6592 | ||
6593 | wxPyEndAllowThreads(__tstate); | |
6594 | if (PyErr_Occurred()) SWIG_fail; | |
6595 | } | |
6596 | Py_INCREF(Py_None); resultobj = Py_None; | |
6597 | return resultobj; | |
6598 | fail: | |
6599 | return NULL; | |
6600 | } | |
6601 | ||
6602 | ||
6603 | static PyObject *_wrap_PyShape_FindRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
6604 | PyObject *resultobj; | |
6605 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6606 | wxString *arg2 = 0 ; | |
6607 | int *arg3 = (int *) 0 ; | |
6608 | wxPyShape *result; | |
6609 | bool temp2 = false ; | |
6610 | int temp3 ; | |
6611 | int res3 = 0 ; | |
6612 | PyObject * obj0 = 0 ; | |
6613 | PyObject * obj1 = 0 ; | |
6614 | char *kwnames[] = { | |
6615 | (char *) "self",(char *) "regionName", NULL | |
6616 | }; | |
6617 | ||
6618 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
6619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_FindRegion",kwnames,&obj0,&obj1)) goto fail; | |
6620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6622 | { | |
6623 | arg2 = wxString_in_helper(obj1); | |
6624 | if (arg2 == NULL) SWIG_fail; | |
6625 | temp2 = true; | |
6626 | } | |
6627 | { | |
6628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6629 | result = (wxPyShape *)(arg1)->FindRegion((wxString const &)*arg2,arg3); | |
6630 | ||
6631 | wxPyEndAllowThreads(__tstate); | |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
6633 | } | |
6634 | { | |
6635 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
6636 | } | |
6637 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6638 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
6639 | { | |
6640 | if (temp2) | |
6641 | delete arg2; | |
6642 | } | |
6643 | return resultobj; | |
6644 | fail: | |
6645 | { | |
6646 | if (temp2) | |
6647 | delete arg2; | |
6648 | } | |
6649 | return NULL; | |
6650 | } | |
6651 | ||
6652 | ||
6653 | static PyObject *_wrap_PyShape_FindRegionNames(PyObject *, PyObject *args, PyObject *kwargs) { | |
6654 | PyObject *resultobj; | |
6655 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6656 | wxStringList *arg2 = 0 ; | |
6657 | PyObject * obj0 = 0 ; | |
6658 | PyObject * obj1 = 0 ; | |
6659 | char *kwnames[] = { | |
6660 | (char *) "self",(char *) "list", NULL | |
6661 | }; | |
6662 | ||
6663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_FindRegionNames",kwnames,&obj0,&obj1)) goto fail; | |
6664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStringList, | |
6667 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6668 | SWIG_fail; | |
6669 | if (arg2 == NULL) { | |
6670 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6671 | SWIG_fail; | |
6672 | } | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | (arg1)->FindRegionNames(*arg2); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
6680 | Py_INCREF(Py_None); resultobj = Py_None; | |
6681 | return resultobj; | |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_PyShape_ClearText(PyObject *, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
6689 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6690 | int arg2 = (int) 0 ; | |
6691 | PyObject * obj0 = 0 ; | |
6692 | PyObject * obj1 = 0 ; | |
6693 | char *kwnames[] = { | |
6694 | (char *) "self",(char *) "regionId", NULL | |
6695 | }; | |
6696 | ||
6697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_ClearText",kwnames,&obj0,&obj1)) goto fail; | |
6698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6700 | if (obj1) { | |
6701 | arg2 = (int)SWIG_As_int(obj1); | |
6702 | if (PyErr_Occurred()) SWIG_fail; | |
6703 | } | |
6704 | { | |
6705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6706 | (arg1)->ClearText(arg2); | |
6707 | ||
6708 | wxPyEndAllowThreads(__tstate); | |
6709 | if (PyErr_Occurred()) SWIG_fail; | |
6710 | } | |
6711 | Py_INCREF(Py_None); resultobj = Py_None; | |
6712 | return resultobj; | |
6713 | fail: | |
6714 | return NULL; | |
6715 | } | |
6716 | ||
6717 | ||
6718 | static PyObject *_wrap_PyShape_RemoveLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
6719 | PyObject *resultobj; | |
6720 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6721 | wxPyLineShape *arg2 = (wxPyLineShape *) 0 ; | |
6722 | PyObject * obj0 = 0 ; | |
6723 | PyObject * obj1 = 0 ; | |
6724 | char *kwnames[] = { | |
6725 | (char *) "self",(char *) "line", NULL | |
6726 | }; | |
6727 | ||
6728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_RemoveLine",kwnames,&obj0,&obj1)) goto fail; | |
6729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6731 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyLineShape, | |
6732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6733 | { | |
6734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6735 | (arg1)->RemoveLine(arg2); | |
6736 | ||
6737 | wxPyEndAllowThreads(__tstate); | |
6738 | if (PyErr_Occurred()) SWIG_fail; | |
6739 | } | |
6740 | Py_INCREF(Py_None); resultobj = Py_None; | |
6741 | return resultobj; | |
6742 | fail: | |
6743 | return NULL; | |
6744 | } | |
6745 | ||
6746 | ||
6747 | static PyObject *_wrap_PyShape_GetAttachmentPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
6748 | PyObject *resultobj; | |
6749 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6750 | int arg2 ; | |
6751 | double *arg3 = (double *) 0 ; | |
6752 | double *arg4 = (double *) 0 ; | |
6753 | int arg5 = (int) 0 ; | |
6754 | int arg6 = (int) 1 ; | |
6755 | wxPyLineShape *arg7 = (wxPyLineShape *) NULL ; | |
6756 | bool result; | |
6757 | double temp3 ; | |
6758 | int res3 = 0 ; | |
6759 | double temp4 ; | |
6760 | int res4 = 0 ; | |
6761 | PyObject * obj0 = 0 ; | |
6762 | PyObject * obj1 = 0 ; | |
6763 | PyObject * obj2 = 0 ; | |
6764 | PyObject * obj3 = 0 ; | |
6765 | PyObject * obj4 = 0 ; | |
6766 | char *kwnames[] = { | |
6767 | (char *) "self",(char *) "attachment",(char *) "nth",(char *) "no_arcs",(char *) "line", NULL | |
6768 | }; | |
6769 | ||
6770 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
6771 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
6772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PyShape_GetAttachmentPosition",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6775 | arg2 = (int)SWIG_As_int(obj1); | |
6776 | if (PyErr_Occurred()) SWIG_fail; | |
6777 | if (obj2) { | |
6778 | arg5 = (int)SWIG_As_int(obj2); | |
6779 | if (PyErr_Occurred()) SWIG_fail; | |
6780 | } | |
6781 | if (obj3) { | |
6782 | arg6 = (int)SWIG_As_int(obj3); | |
6783 | if (PyErr_Occurred()) SWIG_fail; | |
6784 | } | |
6785 | if (obj4) { | |
6786 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg7),SWIGTYPE_p_wxPyLineShape, | |
6787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6788 | } | |
6789 | { | |
6790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6791 | result = (bool)(arg1)->GetAttachmentPosition(arg2,arg3,arg4,arg5,arg6,arg7); | |
6792 | ||
6793 | wxPyEndAllowThreads(__tstate); | |
6794 | if (PyErr_Occurred()) SWIG_fail; | |
6795 | } | |
6796 | { | |
6797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6798 | } | |
6799 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6800 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
6801 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
6802 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
6803 | return resultobj; | |
6804 | fail: | |
6805 | return NULL; | |
6806 | } | |
6807 | ||
6808 | ||
6809 | static PyObject *_wrap_PyShape_GetNumberOfAttachments(PyObject *, PyObject *args, PyObject *kwargs) { | |
6810 | PyObject *resultobj; | |
6811 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6812 | int result; | |
6813 | PyObject * obj0 = 0 ; | |
6814 | char *kwnames[] = { | |
6815 | (char *) "self", NULL | |
6816 | }; | |
6817 | ||
6818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetNumberOfAttachments",kwnames,&obj0)) goto fail; | |
6819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6821 | { | |
6822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6823 | result = (int)(arg1)->GetNumberOfAttachments(); | |
6824 | ||
6825 | wxPyEndAllowThreads(__tstate); | |
6826 | if (PyErr_Occurred()) SWIG_fail; | |
6827 | } | |
6828 | resultobj = SWIG_From_int((int)result); | |
6829 | return resultobj; | |
6830 | fail: | |
6831 | return NULL; | |
6832 | } | |
6833 | ||
6834 | ||
6835 | static PyObject *_wrap_PyShape_AttachmentIsValid(PyObject *, PyObject *args, PyObject *kwargs) { | |
6836 | PyObject *resultobj; | |
6837 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6838 | int arg2 ; | |
6839 | bool result; | |
6840 | PyObject * obj0 = 0 ; | |
6841 | PyObject * obj1 = 0 ; | |
6842 | char *kwnames[] = { | |
6843 | (char *) "self",(char *) "attachment", NULL | |
6844 | }; | |
6845 | ||
6846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_AttachmentIsValid",kwnames,&obj0,&obj1)) goto fail; | |
6847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6849 | arg2 = (int)SWIG_As_int(obj1); | |
6850 | if (PyErr_Occurred()) SWIG_fail; | |
6851 | { | |
6852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6853 | result = (bool)(arg1)->AttachmentIsValid(arg2); | |
6854 | ||
6855 | wxPyEndAllowThreads(__tstate); | |
6856 | if (PyErr_Occurred()) SWIG_fail; | |
6857 | } | |
6858 | { | |
6859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6860 | } | |
6861 | return resultobj; | |
6862 | fail: | |
6863 | return NULL; | |
6864 | } | |
6865 | ||
6866 | ||
6867 | static PyObject *_wrap_PyShape_GetAttachments(PyObject *, PyObject *args, PyObject *kwargs) { | |
6868 | PyObject *resultobj; | |
6869 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6870 | PyObject *result; | |
6871 | PyObject * obj0 = 0 ; | |
6872 | char *kwnames[] = { | |
6873 | (char *) "self", NULL | |
6874 | }; | |
6875 | ||
6876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetAttachments",kwnames,&obj0)) goto fail; | |
6877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6879 | { | |
6880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6881 | result = (PyObject *)wxPyShape_GetAttachments(arg1); | |
6882 | ||
6883 | wxPyEndAllowThreads(__tstate); | |
6884 | if (PyErr_Occurred()) SWIG_fail; | |
6885 | } | |
6886 | resultobj = result; | |
6887 | return resultobj; | |
6888 | fail: | |
6889 | return NULL; | |
6890 | } | |
6891 | ||
6892 | ||
6893 | static PyObject *_wrap_PyShape_GetAttachmentPositionEdge(PyObject *, PyObject *args, PyObject *kwargs) { | |
6894 | PyObject *resultobj; | |
6895 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6896 | int arg2 ; | |
6897 | double *arg3 = (double *) 0 ; | |
6898 | double *arg4 = (double *) 0 ; | |
6899 | int arg5 = (int) 0 ; | |
6900 | int arg6 = (int) 1 ; | |
6901 | wxPyLineShape *arg7 = (wxPyLineShape *) NULL ; | |
6902 | bool result; | |
6903 | double temp3 ; | |
6904 | int res3 = 0 ; | |
6905 | double temp4 ; | |
6906 | int res4 = 0 ; | |
6907 | PyObject * obj0 = 0 ; | |
6908 | PyObject * obj1 = 0 ; | |
6909 | PyObject * obj2 = 0 ; | |
6910 | PyObject * obj3 = 0 ; | |
6911 | PyObject * obj4 = 0 ; | |
6912 | char *kwnames[] = { | |
6913 | (char *) "self",(char *) "attachment",(char *) "nth",(char *) "no_arcs",(char *) "line", NULL | |
6914 | }; | |
6915 | ||
6916 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
6917 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PyShape_GetAttachmentPositionEdge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6921 | arg2 = (int)SWIG_As_int(obj1); | |
6922 | if (PyErr_Occurred()) SWIG_fail; | |
6923 | if (obj2) { | |
6924 | arg5 = (int)SWIG_As_int(obj2); | |
6925 | if (PyErr_Occurred()) SWIG_fail; | |
6926 | } | |
6927 | if (obj3) { | |
6928 | arg6 = (int)SWIG_As_int(obj3); | |
6929 | if (PyErr_Occurred()) SWIG_fail; | |
6930 | } | |
6931 | if (obj4) { | |
6932 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg7),SWIGTYPE_p_wxPyLineShape, | |
6933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6934 | } | |
6935 | { | |
6936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6937 | result = (bool)(arg1)->GetAttachmentPositionEdge(arg2,arg3,arg4,arg5,arg6,arg7); | |
6938 | ||
6939 | wxPyEndAllowThreads(__tstate); | |
6940 | if (PyErr_Occurred()) SWIG_fail; | |
6941 | } | |
6942 | { | |
6943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6944 | } | |
6945 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6946 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
6947 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
6948 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
6949 | return resultobj; | |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
6955 | static PyObject *_wrap_PyShape_CalcSimpleAttachment(PyObject *, PyObject *args, PyObject *kwargs) { | |
6956 | PyObject *resultobj; | |
6957 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6958 | wxRealPoint *arg2 = 0 ; | |
6959 | wxRealPoint *arg3 = 0 ; | |
6960 | int arg4 ; | |
6961 | int arg5 ; | |
6962 | wxPyLineShape *arg6 = (wxPyLineShape *) 0 ; | |
6963 | wxRealPoint result; | |
6964 | wxRealPoint temp2 ; | |
6965 | wxRealPoint temp3 ; | |
6966 | PyObject * obj0 = 0 ; | |
6967 | PyObject * obj1 = 0 ; | |
6968 | PyObject * obj2 = 0 ; | |
6969 | PyObject * obj3 = 0 ; | |
6970 | PyObject * obj4 = 0 ; | |
6971 | PyObject * obj5 = 0 ; | |
6972 | char *kwnames[] = { | |
6973 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "nth",(char *) "noArcs",(char *) "line", NULL | |
6974 | }; | |
6975 | ||
6976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyShape_CalcSimpleAttachment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
6977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
6978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6979 | { | |
6980 | arg2 = &temp2; | |
6981 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
6982 | } | |
6983 | { | |
6984 | arg3 = &temp3; | |
6985 | if ( ! wxRealPoint_helper(obj2, &arg3)) SWIG_fail; | |
6986 | } | |
6987 | arg4 = (int)SWIG_As_int(obj3); | |
6988 | if (PyErr_Occurred()) SWIG_fail; | |
6989 | arg5 = (int)SWIG_As_int(obj4); | |
6990 | if (PyErr_Occurred()) SWIG_fail; | |
6991 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyLineShape, | |
6992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6993 | { | |
6994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6995 | result = (arg1)->CalcSimpleAttachment((wxRealPoint const &)*arg2,(wxRealPoint const &)*arg3,arg4,arg5,arg6); | |
6996 | ||
6997 | wxPyEndAllowThreads(__tstate); | |
6998 | if (PyErr_Occurred()) SWIG_fail; | |
6999 | } | |
7000 | { | |
7001 | wxRealPoint * resultptr; | |
7002 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
7003 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
7004 | } | |
7005 | return resultobj; | |
7006 | fail: | |
7007 | return NULL; | |
7008 | } | |
7009 | ||
7010 | ||
7011 | static PyObject *_wrap_PyShape_AttachmentSortTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
7012 | PyObject *resultobj; | |
7013 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7014 | int arg2 ; | |
7015 | wxRealPoint *arg3 = 0 ; | |
7016 | wxRealPoint *arg4 = 0 ; | |
7017 | bool result; | |
7018 | wxRealPoint temp3 ; | |
7019 | wxRealPoint temp4 ; | |
7020 | PyObject * obj0 = 0 ; | |
7021 | PyObject * obj1 = 0 ; | |
7022 | PyObject * obj2 = 0 ; | |
7023 | PyObject * obj3 = 0 ; | |
7024 | char *kwnames[] = { | |
7025 | (char *) "self",(char *) "attachmentPoint",(char *) "pt1",(char *) "pt2", NULL | |
7026 | }; | |
7027 | ||
7028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyShape_AttachmentSortTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7031 | arg2 = (int)SWIG_As_int(obj1); | |
7032 | if (PyErr_Occurred()) SWIG_fail; | |
7033 | { | |
7034 | arg3 = &temp3; | |
7035 | if ( ! wxRealPoint_helper(obj2, &arg3)) SWIG_fail; | |
7036 | } | |
7037 | { | |
7038 | arg4 = &temp4; | |
7039 | if ( ! wxRealPoint_helper(obj3, &arg4)) SWIG_fail; | |
7040 | } | |
7041 | { | |
7042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7043 | result = (bool)(arg1)->AttachmentSortTest(arg2,(wxRealPoint const &)*arg3,(wxRealPoint const &)*arg4); | |
7044 | ||
7045 | wxPyEndAllowThreads(__tstate); | |
7046 | if (PyErr_Occurred()) SWIG_fail; | |
7047 | } | |
7048 | { | |
7049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7050 | } | |
7051 | return resultobj; | |
7052 | fail: | |
7053 | return NULL; | |
7054 | } | |
7055 | ||
7056 | ||
7057 | static PyObject *_wrap_PyShape_EraseLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
7058 | PyObject *resultobj; | |
7059 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7060 | wxDC *arg2 = 0 ; | |
7061 | int arg3 = (int) -1 ; | |
7062 | bool arg4 = (bool) false ; | |
7063 | PyObject * obj0 = 0 ; | |
7064 | PyObject * obj1 = 0 ; | |
7065 | PyObject * obj2 = 0 ; | |
7066 | PyObject * obj3 = 0 ; | |
7067 | char *kwnames[] = { | |
7068 | (char *) "self",(char *) "dc",(char *) "attachment",(char *) "recurse", NULL | |
7069 | }; | |
7070 | ||
7071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PyShape_EraseLinks",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7074 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
7075 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7076 | SWIG_fail; | |
7077 | if (arg2 == NULL) { | |
7078 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7079 | SWIG_fail; | |
7080 | } | |
7081 | if (obj2) { | |
7082 | arg3 = (int)SWIG_As_int(obj2); | |
7083 | if (PyErr_Occurred()) SWIG_fail; | |
7084 | } | |
7085 | if (obj3) { | |
7086 | arg4 = (bool)SWIG_As_bool(obj3); | |
7087 | if (PyErr_Occurred()) SWIG_fail; | |
7088 | } | |
7089 | { | |
7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7091 | (arg1)->EraseLinks(*arg2,arg3,arg4); | |
7092 | ||
7093 | wxPyEndAllowThreads(__tstate); | |
7094 | if (PyErr_Occurred()) SWIG_fail; | |
7095 | } | |
7096 | Py_INCREF(Py_None); resultobj = Py_None; | |
7097 | return resultobj; | |
7098 | fail: | |
7099 | return NULL; | |
7100 | } | |
7101 | ||
7102 | ||
7103 | static PyObject *_wrap_PyShape_DrawLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
7104 | PyObject *resultobj; | |
7105 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7106 | wxDC *arg2 = 0 ; | |
7107 | int arg3 = (int) -1 ; | |
7108 | bool arg4 = (bool) false ; | |
7109 | PyObject * obj0 = 0 ; | |
7110 | PyObject * obj1 = 0 ; | |
7111 | PyObject * obj2 = 0 ; | |
7112 | PyObject * obj3 = 0 ; | |
7113 | char *kwnames[] = { | |
7114 | (char *) "self",(char *) "dc",(char *) "attachment",(char *) "recurse", NULL | |
7115 | }; | |
7116 | ||
7117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PyShape_DrawLinks",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7120 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
7121 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7122 | SWIG_fail; | |
7123 | if (arg2 == NULL) { | |
7124 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7125 | SWIG_fail; | |
7126 | } | |
7127 | if (obj2) { | |
7128 | arg3 = (int)SWIG_As_int(obj2); | |
7129 | if (PyErr_Occurred()) SWIG_fail; | |
7130 | } | |
7131 | if (obj3) { | |
7132 | arg4 = (bool)SWIG_As_bool(obj3); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | { | |
7136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7137 | (arg1)->DrawLinks(*arg2,arg3,arg4); | |
7138 | ||
7139 | wxPyEndAllowThreads(__tstate); | |
7140 | if (PyErr_Occurred()) SWIG_fail; | |
7141 | } | |
7142 | Py_INCREF(Py_None); resultobj = Py_None; | |
7143 | return resultobj; | |
7144 | fail: | |
7145 | return NULL; | |
7146 | } | |
7147 | ||
7148 | ||
7149 | static PyObject *_wrap_PyShape_MoveLineToNewAttachment(PyObject *, PyObject *args, PyObject *kwargs) { | |
7150 | PyObject *resultobj; | |
7151 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7152 | wxDC *arg2 = 0 ; | |
7153 | wxPyLineShape *arg3 = (wxPyLineShape *) 0 ; | |
7154 | double arg4 ; | |
7155 | double arg5 ; | |
7156 | bool result; | |
7157 | PyObject * obj0 = 0 ; | |
7158 | PyObject * obj1 = 0 ; | |
7159 | PyObject * obj2 = 0 ; | |
7160 | PyObject * obj3 = 0 ; | |
7161 | PyObject * obj4 = 0 ; | |
7162 | char *kwnames[] = { | |
7163 | (char *) "self",(char *) "dc",(char *) "to_move",(char *) "x",(char *) "y", NULL | |
7164 | }; | |
7165 | ||
7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyShape_MoveLineToNewAttachment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
7167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7169 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
7170 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7171 | SWIG_fail; | |
7172 | if (arg2 == NULL) { | |
7173 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7174 | SWIG_fail; | |
7175 | } | |
7176 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyLineShape, | |
7177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7178 | arg4 = (double)SWIG_As_double(obj3); | |
7179 | if (PyErr_Occurred()) SWIG_fail; | |
7180 | arg5 = (double)SWIG_As_double(obj4); | |
7181 | if (PyErr_Occurred()) SWIG_fail; | |
7182 | { | |
7183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7184 | result = (bool)(arg1)->MoveLineToNewAttachment(*arg2,arg3,arg4,arg5); | |
7185 | ||
7186 | wxPyEndAllowThreads(__tstate); | |
7187 | if (PyErr_Occurred()) SWIG_fail; | |
7188 | } | |
7189 | { | |
7190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7191 | } | |
7192 | return resultobj; | |
7193 | fail: | |
7194 | return NULL; | |
7195 | } | |
7196 | ||
7197 | ||
7198 | static PyObject *_wrap_PyShape_ApplyAttachmentOrdering(PyObject *, PyObject *args, PyObject *kwargs) { | |
7199 | PyObject *resultobj; | |
7200 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7201 | PyObject *arg2 = (PyObject *) 0 ; | |
7202 | PyObject * obj0 = 0 ; | |
7203 | PyObject * obj1 = 0 ; | |
7204 | char *kwnames[] = { | |
7205 | (char *) "self",(char *) "linesToSort", NULL | |
7206 | }; | |
7207 | ||
7208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_ApplyAttachmentOrdering",kwnames,&obj0,&obj1)) goto fail; | |
7209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7211 | arg2 = obj1; | |
7212 | { | |
7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7214 | wxPyShape_ApplyAttachmentOrdering(arg1,arg2); | |
7215 | ||
7216 | wxPyEndAllowThreads(__tstate); | |
7217 | if (PyErr_Occurred()) SWIG_fail; | |
7218 | } | |
7219 | Py_INCREF(Py_None); resultobj = Py_None; | |
7220 | return resultobj; | |
7221 | fail: | |
7222 | return NULL; | |
7223 | } | |
7224 | ||
7225 | ||
7226 | static PyObject *_wrap_PyShape_GetBranchingAttachmentRoot(PyObject *, PyObject *args, PyObject *kwargs) { | |
7227 | PyObject *resultobj; | |
7228 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7229 | int arg2 ; | |
7230 | wxRealPoint result; | |
7231 | PyObject * obj0 = 0 ; | |
7232 | PyObject * obj1 = 0 ; | |
7233 | char *kwnames[] = { | |
7234 | (char *) "self",(char *) "attachment", NULL | |
7235 | }; | |
7236 | ||
7237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetBranchingAttachmentRoot",kwnames,&obj0,&obj1)) goto fail; | |
7238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7240 | arg2 = (int)SWIG_As_int(obj1); | |
7241 | if (PyErr_Occurred()) SWIG_fail; | |
7242 | { | |
7243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7244 | result = (arg1)->GetBranchingAttachmentRoot(arg2); | |
7245 | ||
7246 | wxPyEndAllowThreads(__tstate); | |
7247 | if (PyErr_Occurred()) SWIG_fail; | |
7248 | } | |
7249 | { | |
7250 | wxRealPoint * resultptr; | |
7251 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
7252 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
7253 | } | |
7254 | return resultobj; | |
7255 | fail: | |
7256 | return NULL; | |
7257 | } | |
7258 | ||
7259 | ||
7260 | static PyObject *_wrap_PyShape_GetBranchingAttachmentInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
7261 | PyObject *resultobj; | |
7262 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7263 | int arg2 ; | |
7264 | wxRealPoint *arg3 = 0 ; | |
7265 | wxRealPoint *arg4 = 0 ; | |
7266 | wxRealPoint *arg5 = 0 ; | |
7267 | wxRealPoint *arg6 = 0 ; | |
7268 | bool result; | |
7269 | wxRealPoint temp3 ; | |
7270 | wxRealPoint temp4 ; | |
7271 | wxRealPoint temp5 ; | |
7272 | wxRealPoint temp6 ; | |
7273 | PyObject * obj0 = 0 ; | |
7274 | PyObject * obj1 = 0 ; | |
7275 | PyObject * obj2 = 0 ; | |
7276 | PyObject * obj3 = 0 ; | |
7277 | PyObject * obj4 = 0 ; | |
7278 | PyObject * obj5 = 0 ; | |
7279 | char *kwnames[] = { | |
7280 | (char *) "self",(char *) "attachment",(char *) "root",(char *) "neck",(char *) "shoulder1",(char *) "shoulder2", NULL | |
7281 | }; | |
7282 | ||
7283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyShape_GetBranchingAttachmentInfo",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
7284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7286 | arg2 = (int)SWIG_As_int(obj1); | |
7287 | if (PyErr_Occurred()) SWIG_fail; | |
7288 | { | |
7289 | arg3 = &temp3; | |
7290 | if ( ! wxRealPoint_helper(obj2, &arg3)) SWIG_fail; | |
7291 | } | |
7292 | { | |
7293 | arg4 = &temp4; | |
7294 | if ( ! wxRealPoint_helper(obj3, &arg4)) SWIG_fail; | |
7295 | } | |
7296 | { | |
7297 | arg5 = &temp5; | |
7298 | if ( ! wxRealPoint_helper(obj4, &arg5)) SWIG_fail; | |
7299 | } | |
7300 | { | |
7301 | arg6 = &temp6; | |
7302 | if ( ! wxRealPoint_helper(obj5, &arg6)) SWIG_fail; | |
7303 | } | |
7304 | { | |
7305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7306 | result = (bool)(arg1)->GetBranchingAttachmentInfo(arg2,*arg3,*arg4,*arg5,*arg6); | |
7307 | ||
7308 | wxPyEndAllowThreads(__tstate); | |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
7310 | } | |
7311 | { | |
7312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7313 | } | |
7314 | return resultobj; | |
7315 | fail: | |
7316 | return NULL; | |
7317 | } | |
7318 | ||
7319 | ||
7320 | static PyObject *_wrap_PyShape_GetBranchingAttachmentPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
7321 | PyObject *resultobj; | |
7322 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7323 | int arg2 ; | |
7324 | int arg3 ; | |
7325 | wxRealPoint *arg4 = 0 ; | |
7326 | wxRealPoint *arg5 = 0 ; | |
7327 | bool result; | |
7328 | wxRealPoint temp4 ; | |
7329 | wxRealPoint temp5 ; | |
7330 | PyObject * obj0 = 0 ; | |
7331 | PyObject * obj1 = 0 ; | |
7332 | PyObject * obj2 = 0 ; | |
7333 | PyObject * obj3 = 0 ; | |
7334 | PyObject * obj4 = 0 ; | |
7335 | char *kwnames[] = { | |
7336 | (char *) "self",(char *) "attachment",(char *) "n",(char *) "attachmentPoint",(char *) "stemPoint", NULL | |
7337 | }; | |
7338 | ||
7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyShape_GetBranchingAttachmentPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
7340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7342 | arg2 = (int)SWIG_As_int(obj1); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | arg3 = (int)SWIG_As_int(obj2); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
7346 | { | |
7347 | arg4 = &temp4; | |
7348 | if ( ! wxRealPoint_helper(obj3, &arg4)) SWIG_fail; | |
7349 | } | |
7350 | { | |
7351 | arg5 = &temp5; | |
7352 | if ( ! wxRealPoint_helper(obj4, &arg5)) SWIG_fail; | |
7353 | } | |
7354 | { | |
7355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7356 | result = (bool)(arg1)->GetBranchingAttachmentPoint(arg2,arg3,*arg4,*arg5); | |
7357 | ||
7358 | wxPyEndAllowThreads(__tstate); | |
7359 | if (PyErr_Occurred()) SWIG_fail; | |
7360 | } | |
7361 | { | |
7362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7363 | } | |
7364 | return resultobj; | |
7365 | fail: | |
7366 | return NULL; | |
7367 | } | |
7368 | ||
7369 | ||
7370 | static PyObject *_wrap_PyShape_GetAttachmentLineCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
7371 | PyObject *resultobj; | |
7372 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7373 | int arg2 ; | |
7374 | int result; | |
7375 | PyObject * obj0 = 0 ; | |
7376 | PyObject * obj1 = 0 ; | |
7377 | char *kwnames[] = { | |
7378 | (char *) "self",(char *) "attachment", NULL | |
7379 | }; | |
7380 | ||
7381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetAttachmentLineCount",kwnames,&obj0,&obj1)) goto fail; | |
7382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7384 | arg2 = (int)SWIG_As_int(obj1); | |
7385 | if (PyErr_Occurred()) SWIG_fail; | |
7386 | { | |
7387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7388 | result = (int)(arg1)->GetAttachmentLineCount(arg2); | |
7389 | ||
7390 | wxPyEndAllowThreads(__tstate); | |
7391 | if (PyErr_Occurred()) SWIG_fail; | |
7392 | } | |
7393 | resultobj = SWIG_From_int((int)result); | |
7394 | return resultobj; | |
7395 | fail: | |
7396 | return NULL; | |
7397 | } | |
7398 | ||
7399 | ||
7400 | static PyObject *_wrap_PyShape_SetBranchNeckLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
7401 | PyObject *resultobj; | |
7402 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7403 | int arg2 ; | |
7404 | PyObject * obj0 = 0 ; | |
7405 | PyObject * obj1 = 0 ; | |
7406 | char *kwnames[] = { | |
7407 | (char *) "self",(char *) "len", NULL | |
7408 | }; | |
7409 | ||
7410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBranchNeckLength",kwnames,&obj0,&obj1)) goto fail; | |
7411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7413 | arg2 = (int)SWIG_As_int(obj1); | |
7414 | if (PyErr_Occurred()) SWIG_fail; | |
7415 | { | |
7416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7417 | (arg1)->SetBranchNeckLength(arg2); | |
7418 | ||
7419 | wxPyEndAllowThreads(__tstate); | |
7420 | if (PyErr_Occurred()) SWIG_fail; | |
7421 | } | |
7422 | Py_INCREF(Py_None); resultobj = Py_None; | |
7423 | return resultobj; | |
7424 | fail: | |
7425 | return NULL; | |
7426 | } | |
7427 | ||
7428 | ||
7429 | static PyObject *_wrap_PyShape_GetBranchNeckLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
7430 | PyObject *resultobj; | |
7431 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7432 | int result; | |
7433 | PyObject * obj0 = 0 ; | |
7434 | char *kwnames[] = { | |
7435 | (char *) "self", NULL | |
7436 | }; | |
7437 | ||
7438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchNeckLength",kwnames,&obj0)) goto fail; | |
7439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7441 | { | |
7442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7443 | result = (int)(arg1)->GetBranchNeckLength(); | |
7444 | ||
7445 | wxPyEndAllowThreads(__tstate); | |
7446 | if (PyErr_Occurred()) SWIG_fail; | |
7447 | } | |
7448 | resultobj = SWIG_From_int((int)result); | |
7449 | return resultobj; | |
7450 | fail: | |
7451 | return NULL; | |
7452 | } | |
7453 | ||
7454 | ||
7455 | static PyObject *_wrap_PyShape_SetBranchStemLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
7456 | PyObject *resultobj; | |
7457 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7458 | int arg2 ; | |
7459 | PyObject * obj0 = 0 ; | |
7460 | PyObject * obj1 = 0 ; | |
7461 | char *kwnames[] = { | |
7462 | (char *) "self",(char *) "len", NULL | |
7463 | }; | |
7464 | ||
7465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBranchStemLength",kwnames,&obj0,&obj1)) goto fail; | |
7466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7468 | arg2 = (int)SWIG_As_int(obj1); | |
7469 | if (PyErr_Occurred()) SWIG_fail; | |
7470 | { | |
7471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7472 | (arg1)->SetBranchStemLength(arg2); | |
7473 | ||
7474 | wxPyEndAllowThreads(__tstate); | |
7475 | if (PyErr_Occurred()) SWIG_fail; | |
7476 | } | |
7477 | Py_INCREF(Py_None); resultobj = Py_None; | |
7478 | return resultobj; | |
7479 | fail: | |
7480 | return NULL; | |
7481 | } | |
7482 | ||
7483 | ||
7484 | static PyObject *_wrap_PyShape_GetBranchStemLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
7485 | PyObject *resultobj; | |
7486 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7487 | int result; | |
7488 | PyObject * obj0 = 0 ; | |
7489 | char *kwnames[] = { | |
7490 | (char *) "self", NULL | |
7491 | }; | |
7492 | ||
7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchStemLength",kwnames,&obj0)) goto fail; | |
7494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7496 | { | |
7497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7498 | result = (int)(arg1)->GetBranchStemLength(); | |
7499 | ||
7500 | wxPyEndAllowThreads(__tstate); | |
7501 | if (PyErr_Occurred()) SWIG_fail; | |
7502 | } | |
7503 | resultobj = SWIG_From_int((int)result); | |
7504 | return resultobj; | |
7505 | fail: | |
7506 | return NULL; | |
7507 | } | |
7508 | ||
7509 | ||
7510 | static PyObject *_wrap_PyShape_SetBranchSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
7511 | PyObject *resultobj; | |
7512 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7513 | int arg2 ; | |
7514 | PyObject * obj0 = 0 ; | |
7515 | PyObject * obj1 = 0 ; | |
7516 | char *kwnames[] = { | |
7517 | (char *) "self",(char *) "len", NULL | |
7518 | }; | |
7519 | ||
7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBranchSpacing",kwnames,&obj0,&obj1)) goto fail; | |
7521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7523 | arg2 = (int)SWIG_As_int(obj1); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | { | |
7526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7527 | (arg1)->SetBranchSpacing(arg2); | |
7528 | ||
7529 | wxPyEndAllowThreads(__tstate); | |
7530 | if (PyErr_Occurred()) SWIG_fail; | |
7531 | } | |
7532 | Py_INCREF(Py_None); resultobj = Py_None; | |
7533 | return resultobj; | |
7534 | fail: | |
7535 | return NULL; | |
7536 | } | |
7537 | ||
7538 | ||
7539 | static PyObject *_wrap_PyShape_GetBranchSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
7540 | PyObject *resultobj; | |
7541 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7542 | int result; | |
7543 | PyObject * obj0 = 0 ; | |
7544 | char *kwnames[] = { | |
7545 | (char *) "self", NULL | |
7546 | }; | |
7547 | ||
7548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchSpacing",kwnames,&obj0)) goto fail; | |
7549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7551 | { | |
7552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7553 | result = (int)(arg1)->GetBranchSpacing(); | |
7554 | ||
7555 | wxPyEndAllowThreads(__tstate); | |
7556 | if (PyErr_Occurred()) SWIG_fail; | |
7557 | } | |
7558 | resultobj = SWIG_From_int((int)result); | |
7559 | return resultobj; | |
7560 | fail: | |
7561 | return NULL; | |
7562 | } | |
7563 | ||
7564 | ||
7565 | static PyObject *_wrap_PyShape_SetBranchStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
7566 | PyObject *resultobj; | |
7567 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7568 | long arg2 ; | |
7569 | PyObject * obj0 = 0 ; | |
7570 | PyObject * obj1 = 0 ; | |
7571 | char *kwnames[] = { | |
7572 | (char *) "self",(char *) "style", NULL | |
7573 | }; | |
7574 | ||
7575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBranchStyle",kwnames,&obj0,&obj1)) goto fail; | |
7576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7578 | arg2 = (long)SWIG_As_long(obj1); | |
7579 | if (PyErr_Occurred()) SWIG_fail; | |
7580 | { | |
7581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7582 | (arg1)->SetBranchStyle(arg2); | |
7583 | ||
7584 | wxPyEndAllowThreads(__tstate); | |
7585 | if (PyErr_Occurred()) SWIG_fail; | |
7586 | } | |
7587 | Py_INCREF(Py_None); resultobj = Py_None; | |
7588 | return resultobj; | |
7589 | fail: | |
7590 | return NULL; | |
7591 | } | |
7592 | ||
7593 | ||
7594 | static PyObject *_wrap_PyShape_GetBranchStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
7595 | PyObject *resultobj; | |
7596 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7597 | long result; | |
7598 | PyObject * obj0 = 0 ; | |
7599 | char *kwnames[] = { | |
7600 | (char *) "self", NULL | |
7601 | }; | |
7602 | ||
7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchStyle",kwnames,&obj0)) goto fail; | |
7604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7606 | { | |
7607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7608 | result = (long)(arg1)->GetBranchStyle(); | |
7609 | ||
7610 | wxPyEndAllowThreads(__tstate); | |
7611 | if (PyErr_Occurred()) SWIG_fail; | |
7612 | } | |
7613 | resultobj = SWIG_From_long((long)result); | |
7614 | return resultobj; | |
7615 | fail: | |
7616 | return NULL; | |
7617 | } | |
7618 | ||
7619 | ||
7620 | static PyObject *_wrap_PyShape_PhysicalToLogicalAttachment(PyObject *, PyObject *args, PyObject *kwargs) { | |
7621 | PyObject *resultobj; | |
7622 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7623 | int arg2 ; | |
7624 | int result; | |
7625 | PyObject * obj0 = 0 ; | |
7626 | PyObject * obj1 = 0 ; | |
7627 | char *kwnames[] = { | |
7628 | (char *) "self",(char *) "physicalAttachment", NULL | |
7629 | }; | |
7630 | ||
7631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_PhysicalToLogicalAttachment",kwnames,&obj0,&obj1)) goto fail; | |
7632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7634 | arg2 = (int)SWIG_As_int(obj1); | |
7635 | if (PyErr_Occurred()) SWIG_fail; | |
7636 | { | |
7637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7638 | result = (int)(arg1)->PhysicalToLogicalAttachment(arg2); | |
7639 | ||
7640 | wxPyEndAllowThreads(__tstate); | |
7641 | if (PyErr_Occurred()) SWIG_fail; | |
7642 | } | |
7643 | resultobj = SWIG_From_int((int)result); | |
7644 | return resultobj; | |
7645 | fail: | |
7646 | return NULL; | |
7647 | } | |
7648 | ||
7649 | ||
7650 | static PyObject *_wrap_PyShape_LogicalToPhysicalAttachment(PyObject *, PyObject *args, PyObject *kwargs) { | |
7651 | PyObject *resultobj; | |
7652 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7653 | int arg2 ; | |
7654 | int result; | |
7655 | PyObject * obj0 = 0 ; | |
7656 | PyObject * obj1 = 0 ; | |
7657 | char *kwnames[] = { | |
7658 | (char *) "self",(char *) "logicalAttachment", NULL | |
7659 | }; | |
7660 | ||
7661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_LogicalToPhysicalAttachment",kwnames,&obj0,&obj1)) goto fail; | |
7662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7664 | arg2 = (int)SWIG_As_int(obj1); | |
7665 | if (PyErr_Occurred()) SWIG_fail; | |
7666 | { | |
7667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7668 | result = (int)(arg1)->LogicalToPhysicalAttachment(arg2); | |
7669 | ||
7670 | wxPyEndAllowThreads(__tstate); | |
7671 | if (PyErr_Occurred()) SWIG_fail; | |
7672 | } | |
7673 | resultobj = SWIG_From_int((int)result); | |
7674 | return resultobj; | |
7675 | fail: | |
7676 | return NULL; | |
7677 | } | |
7678 | ||
7679 | ||
7680 | static PyObject *_wrap_PyShape_Draggable(PyObject *, PyObject *args, PyObject *kwargs) { | |
7681 | PyObject *resultobj; | |
7682 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7683 | bool result; | |
7684 | PyObject * obj0 = 0 ; | |
7685 | char *kwnames[] = { | |
7686 | (char *) "self", NULL | |
7687 | }; | |
7688 | ||
7689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Draggable",kwnames,&obj0)) goto fail; | |
7690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7692 | { | |
7693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7694 | result = (bool)(arg1)->Draggable(); | |
7695 | ||
7696 | wxPyEndAllowThreads(__tstate); | |
7697 | if (PyErr_Occurred()) SWIG_fail; | |
7698 | } | |
7699 | { | |
7700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7701 | } | |
7702 | return resultobj; | |
7703 | fail: | |
7704 | return NULL; | |
7705 | } | |
7706 | ||
7707 | ||
7708 | static PyObject *_wrap_PyShape_HasDescendant(PyObject *, PyObject *args, PyObject *kwargs) { | |
7709 | PyObject *resultobj; | |
7710 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7711 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
7712 | bool result; | |
7713 | PyObject * obj0 = 0 ; | |
7714 | PyObject * obj1 = 0 ; | |
7715 | char *kwnames[] = { | |
7716 | (char *) "self",(char *) "image", NULL | |
7717 | }; | |
7718 | ||
7719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_HasDescendant",kwnames,&obj0,&obj1)) goto fail; | |
7720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
7723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7724 | { | |
7725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7726 | result = (bool)(arg1)->HasDescendant(arg2); | |
7727 | ||
7728 | wxPyEndAllowThreads(__tstate); | |
7729 | if (PyErr_Occurred()) SWIG_fail; | |
7730 | } | |
7731 | { | |
7732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7733 | } | |
7734 | return resultobj; | |
7735 | fail: | |
7736 | return NULL; | |
7737 | } | |
7738 | ||
7739 | ||
7740 | static PyObject *_wrap_PyShape_CreateNewCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
7741 | PyObject *resultobj; | |
7742 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7743 | bool arg2 = (bool) true ; | |
7744 | bool arg3 = (bool) true ; | |
7745 | wxPyShape *result; | |
7746 | PyObject * obj0 = 0 ; | |
7747 | PyObject * obj1 = 0 ; | |
7748 | PyObject * obj2 = 0 ; | |
7749 | char *kwnames[] = { | |
7750 | (char *) "self",(char *) "resetMapping",(char *) "recompute", NULL | |
7751 | }; | |
7752 | ||
7753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_CreateNewCopy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7756 | if (obj1) { | |
7757 | arg2 = (bool)SWIG_As_bool(obj1); | |
7758 | if (PyErr_Occurred()) SWIG_fail; | |
7759 | } | |
7760 | if (obj2) { | |
7761 | arg3 = (bool)SWIG_As_bool(obj2); | |
7762 | if (PyErr_Occurred()) SWIG_fail; | |
7763 | } | |
7764 | { | |
7765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7766 | result = (wxPyShape *)(arg1)->CreateNewCopy(arg2,arg3); | |
7767 | ||
7768 | wxPyEndAllowThreads(__tstate); | |
7769 | if (PyErr_Occurred()) SWIG_fail; | |
7770 | } | |
7771 | { | |
7772 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
7773 | } | |
7774 | return resultobj; | |
7775 | fail: | |
7776 | return NULL; | |
7777 | } | |
7778 | ||
7779 | ||
7780 | static PyObject *_wrap_PyShape_Copy(PyObject *, PyObject *args, PyObject *kwargs) { | |
7781 | PyObject *resultobj; | |
7782 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7783 | wxPyShape *arg2 = 0 ; | |
7784 | PyObject * obj0 = 0 ; | |
7785 | PyObject * obj1 = 0 ; | |
7786 | char *kwnames[] = { | |
7787 | (char *) "self",(char *) "copy", NULL | |
7788 | }; | |
7789 | ||
7790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Copy",kwnames,&obj0,&obj1)) goto fail; | |
7791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
7794 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7795 | SWIG_fail; | |
7796 | if (arg2 == NULL) { | |
7797 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7798 | SWIG_fail; | |
7799 | } | |
7800 | { | |
7801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7802 | (arg1)->Copy(*arg2); | |
7803 | ||
7804 | wxPyEndAllowThreads(__tstate); | |
7805 | if (PyErr_Occurred()) SWIG_fail; | |
7806 | } | |
7807 | Py_INCREF(Py_None); resultobj = Py_None; | |
7808 | return resultobj; | |
7809 | fail: | |
7810 | return NULL; | |
7811 | } | |
7812 | ||
7813 | ||
7814 | static PyObject *_wrap_PyShape_CopyWithHandler(PyObject *, PyObject *args, PyObject *kwargs) { | |
7815 | PyObject *resultobj; | |
7816 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7817 | wxPyShape *arg2 = 0 ; | |
7818 | PyObject * obj0 = 0 ; | |
7819 | PyObject * obj1 = 0 ; | |
7820 | char *kwnames[] = { | |
7821 | (char *) "self",(char *) "copy", NULL | |
7822 | }; | |
7823 | ||
7824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_CopyWithHandler",kwnames,&obj0,&obj1)) goto fail; | |
7825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
7828 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7829 | SWIG_fail; | |
7830 | if (arg2 == NULL) { | |
7831 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7832 | SWIG_fail; | |
7833 | } | |
7834 | { | |
7835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7836 | (arg1)->CopyWithHandler(*arg2); | |
7837 | ||
7838 | wxPyEndAllowThreads(__tstate); | |
7839 | if (PyErr_Occurred()) SWIG_fail; | |
7840 | } | |
7841 | Py_INCREF(Py_None); resultobj = Py_None; | |
7842 | return resultobj; | |
7843 | fail: | |
7844 | return NULL; | |
7845 | } | |
7846 | ||
7847 | ||
7848 | static PyObject *_wrap_PyShape_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { | |
7849 | PyObject *resultobj; | |
7850 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7851 | double arg2 ; | |
7852 | double arg3 ; | |
7853 | double arg4 ; | |
7854 | PyObject * obj0 = 0 ; | |
7855 | PyObject * obj1 = 0 ; | |
7856 | PyObject * obj2 = 0 ; | |
7857 | PyObject * obj3 = 0 ; | |
7858 | char *kwnames[] = { | |
7859 | (char *) "self",(char *) "x",(char *) "y",(char *) "theta", NULL | |
7860 | }; | |
7861 | ||
7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyShape_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7865 | arg2 = (double)SWIG_As_double(obj1); | |
7866 | if (PyErr_Occurred()) SWIG_fail; | |
7867 | arg3 = (double)SWIG_As_double(obj2); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | arg4 = (double)SWIG_As_double(obj3); | |
7870 | if (PyErr_Occurred()) SWIG_fail; | |
7871 | { | |
7872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7873 | (arg1)->Rotate(arg2,arg3,arg4); | |
7874 | ||
7875 | wxPyEndAllowThreads(__tstate); | |
7876 | if (PyErr_Occurred()) SWIG_fail; | |
7877 | } | |
7878 | Py_INCREF(Py_None); resultobj = Py_None; | |
7879 | return resultobj; | |
7880 | fail: | |
7881 | return NULL; | |
7882 | } | |
7883 | ||
7884 | ||
7885 | static PyObject *_wrap_PyShape_GetRotation(PyObject *, PyObject *args, PyObject *kwargs) { | |
7886 | PyObject *resultobj; | |
7887 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7888 | double result; | |
7889 | PyObject * obj0 = 0 ; | |
7890 | char *kwnames[] = { | |
7891 | (char *) "self", NULL | |
7892 | }; | |
7893 | ||
7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetRotation",kwnames,&obj0)) goto fail; | |
7895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7897 | { | |
7898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7899 | result = (double)(arg1)->GetRotation(); | |
7900 | ||
7901 | wxPyEndAllowThreads(__tstate); | |
7902 | if (PyErr_Occurred()) SWIG_fail; | |
7903 | } | |
7904 | resultobj = SWIG_From_double((double)result); | |
7905 | return resultobj; | |
7906 | fail: | |
7907 | return NULL; | |
7908 | } | |
7909 | ||
7910 | ||
7911 | static PyObject *_wrap_PyShape_SetRotation(PyObject *, PyObject *args, PyObject *kwargs) { | |
7912 | PyObject *resultobj; | |
7913 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7914 | double arg2 ; | |
7915 | PyObject * obj0 = 0 ; | |
7916 | PyObject * obj1 = 0 ; | |
7917 | char *kwnames[] = { | |
7918 | (char *) "self",(char *) "rotation", NULL | |
7919 | }; | |
7920 | ||
7921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetRotation",kwnames,&obj0,&obj1)) goto fail; | |
7922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7924 | arg2 = (double)SWIG_As_double(obj1); | |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
7926 | { | |
7927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7928 | (arg1)->SetRotation(arg2); | |
7929 | ||
7930 | wxPyEndAllowThreads(__tstate); | |
7931 | if (PyErr_Occurred()) SWIG_fail; | |
7932 | } | |
7933 | Py_INCREF(Py_None); resultobj = Py_None; | |
7934 | return resultobj; | |
7935 | fail: | |
7936 | return NULL; | |
7937 | } | |
7938 | ||
7939 | ||
7940 | static PyObject *_wrap_PyShape_ClearAttachments(PyObject *, PyObject *args, PyObject *kwargs) { | |
7941 | PyObject *resultobj; | |
7942 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7943 | PyObject * obj0 = 0 ; | |
7944 | char *kwnames[] = { | |
7945 | (char *) "self", NULL | |
7946 | }; | |
7947 | ||
7948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ClearAttachments",kwnames,&obj0)) goto fail; | |
7949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7951 | { | |
7952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7953 | (arg1)->ClearAttachments(); | |
7954 | ||
7955 | wxPyEndAllowThreads(__tstate); | |
7956 | if (PyErr_Occurred()) SWIG_fail; | |
7957 | } | |
7958 | Py_INCREF(Py_None); resultobj = Py_None; | |
7959 | return resultobj; | |
7960 | fail: | |
7961 | return NULL; | |
7962 | } | |
7963 | ||
7964 | ||
7965 | static PyObject *_wrap_PyShape_Recentre(PyObject *, PyObject *args, PyObject *kwargs) { | |
7966 | PyObject *resultobj; | |
7967 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7968 | wxDC *arg2 = 0 ; | |
7969 | PyObject * obj0 = 0 ; | |
7970 | PyObject * obj1 = 0 ; | |
7971 | char *kwnames[] = { | |
7972 | (char *) "self",(char *) "dc", NULL | |
7973 | }; | |
7974 | ||
7975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Recentre",kwnames,&obj0,&obj1)) goto fail; | |
7976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
7977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7978 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
7979 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7980 | SWIG_fail; | |
7981 | if (arg2 == NULL) { | |
7982 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7983 | SWIG_fail; | |
7984 | } | |
7985 | { | |
7986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7987 | (arg1)->Recentre(*arg2); | |
7988 | ||
7989 | wxPyEndAllowThreads(__tstate); | |
7990 | if (PyErr_Occurred()) SWIG_fail; | |
7991 | } | |
7992 | Py_INCREF(Py_None); resultobj = Py_None; | |
7993 | return resultobj; | |
7994 | fail: | |
7995 | return NULL; | |
7996 | } | |
7997 | ||
7998 | ||
7999 | static PyObject *_wrap_PyShape_ClearPointList(PyObject *, PyObject *args, PyObject *kwargs) { | |
8000 | PyObject *resultobj; | |
8001 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8002 | wxList *arg2 = 0 ; | |
8003 | PyObject * obj0 = 0 ; | |
8004 | PyObject * obj1 = 0 ; | |
8005 | char *kwnames[] = { | |
8006 | (char *) "self",(char *) "list", NULL | |
8007 | }; | |
8008 | ||
8009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_ClearPointList",kwnames,&obj0,&obj1)) goto fail; | |
8010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8012 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxList, | |
8013 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8014 | SWIG_fail; | |
8015 | if (arg2 == NULL) { | |
8016 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8017 | SWIG_fail; | |
8018 | } | |
8019 | { | |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8021 | (arg1)->ClearPointList(*arg2); | |
8022 | ||
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
8026 | Py_INCREF(Py_None); resultobj = Py_None; | |
8027 | return resultobj; | |
8028 | fail: | |
8029 | return NULL; | |
8030 | } | |
8031 | ||
8032 | ||
8033 | static PyObject *_wrap_PyShape_GetBackgroundPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
8034 | PyObject *resultobj; | |
8035 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8036 | wxPen result; | |
8037 | PyObject * obj0 = 0 ; | |
8038 | char *kwnames[] = { | |
8039 | (char *) "self", NULL | |
8040 | }; | |
8041 | ||
8042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBackgroundPen",kwnames,&obj0)) goto fail; | |
8043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8045 | { | |
8046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8047 | result = (arg1)->GetBackgroundPen(); | |
8048 | ||
8049 | wxPyEndAllowThreads(__tstate); | |
8050 | if (PyErr_Occurred()) SWIG_fail; | |
8051 | } | |
8052 | { | |
8053 | wxPen * resultptr; | |
8054 | resultptr = new wxPen((wxPen &) result); | |
8055 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPen, 1); | |
8056 | } | |
8057 | return resultobj; | |
8058 | fail: | |
8059 | return NULL; | |
8060 | } | |
8061 | ||
8062 | ||
8063 | static PyObject *_wrap_PyShape_GetBackgroundBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
8064 | PyObject *resultobj; | |
8065 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8066 | wxBrush result; | |
8067 | PyObject * obj0 = 0 ; | |
8068 | char *kwnames[] = { | |
8069 | (char *) "self", NULL | |
8070 | }; | |
8071 | ||
8072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBackgroundBrush",kwnames,&obj0)) goto fail; | |
8073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8075 | { | |
8076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8077 | result = (arg1)->GetBackgroundBrush(); | |
8078 | ||
8079 | wxPyEndAllowThreads(__tstate); | |
8080 | if (PyErr_Occurred()) SWIG_fail; | |
8081 | } | |
8082 | { | |
8083 | wxBrush * resultptr; | |
8084 | resultptr = new wxBrush((wxBrush &) result); | |
8085 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
8086 | } | |
8087 | return resultobj; | |
8088 | fail: | |
8089 | return NULL; | |
8090 | } | |
8091 | ||
8092 | ||
8093 | static PyObject *_wrap_PyShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
8094 | PyObject *resultobj; | |
8095 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8096 | PyObject * obj0 = 0 ; | |
8097 | char *kwnames[] = { | |
8098 | (char *) "self", NULL | |
8099 | }; | |
8100 | ||
8101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
8102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8104 | { | |
8105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8106 | (arg1)->base_OnDelete(); | |
8107 | ||
8108 | wxPyEndAllowThreads(__tstate); | |
8109 | if (PyErr_Occurred()) SWIG_fail; | |
8110 | } | |
8111 | Py_INCREF(Py_None); resultobj = Py_None; | |
8112 | return resultobj; | |
8113 | fail: | |
8114 | return NULL; | |
8115 | } | |
8116 | ||
8117 | ||
8118 | static PyObject *_wrap_PyShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
8119 | PyObject *resultobj; | |
8120 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8121 | wxDC *arg2 = 0 ; | |
8122 | PyObject * obj0 = 0 ; | |
8123 | PyObject * obj1 = 0 ; | |
8124 | char *kwnames[] = { | |
8125 | (char *) "self",(char *) "dc", NULL | |
8126 | }; | |
8127 | ||
8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
8129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8131 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8132 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8133 | SWIG_fail; | |
8134 | if (arg2 == NULL) { | |
8135 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8136 | SWIG_fail; | |
8137 | } | |
8138 | { | |
8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8140 | (arg1)->base_OnDraw(*arg2); | |
8141 | ||
8142 | wxPyEndAllowThreads(__tstate); | |
8143 | if (PyErr_Occurred()) SWIG_fail; | |
8144 | } | |
8145 | Py_INCREF(Py_None); resultobj = Py_None; | |
8146 | return resultobj; | |
8147 | fail: | |
8148 | return NULL; | |
8149 | } | |
8150 | ||
8151 | ||
8152 | static PyObject *_wrap_PyShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
8153 | PyObject *resultobj; | |
8154 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8155 | wxDC *arg2 = 0 ; | |
8156 | PyObject * obj0 = 0 ; | |
8157 | PyObject * obj1 = 0 ; | |
8158 | char *kwnames[] = { | |
8159 | (char *) "self",(char *) "dc", NULL | |
8160 | }; | |
8161 | ||
8162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
8163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8165 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8166 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8167 | SWIG_fail; | |
8168 | if (arg2 == NULL) { | |
8169 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8170 | SWIG_fail; | |
8171 | } | |
8172 | { | |
8173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8174 | (arg1)->base_OnDrawContents(*arg2); | |
8175 | ||
8176 | wxPyEndAllowThreads(__tstate); | |
8177 | if (PyErr_Occurred()) SWIG_fail; | |
8178 | } | |
8179 | Py_INCREF(Py_None); resultobj = Py_None; | |
8180 | return resultobj; | |
8181 | fail: | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
8186 | static PyObject *_wrap_PyShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
8187 | PyObject *resultobj; | |
8188 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8189 | wxDC *arg2 = 0 ; | |
8190 | bool arg3 = (bool) false ; | |
8191 | PyObject * obj0 = 0 ; | |
8192 | PyObject * obj1 = 0 ; | |
8193 | PyObject * obj2 = 0 ; | |
8194 | char *kwnames[] = { | |
8195 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
8196 | }; | |
8197 | ||
8198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8201 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8202 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8203 | SWIG_fail; | |
8204 | if (arg2 == NULL) { | |
8205 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8206 | SWIG_fail; | |
8207 | } | |
8208 | if (obj2) { | |
8209 | arg3 = (bool)SWIG_As_bool(obj2); | |
8210 | if (PyErr_Occurred()) SWIG_fail; | |
8211 | } | |
8212 | { | |
8213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8214 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
8215 | ||
8216 | wxPyEndAllowThreads(__tstate); | |
8217 | if (PyErr_Occurred()) SWIG_fail; | |
8218 | } | |
8219 | Py_INCREF(Py_None); resultobj = Py_None; | |
8220 | return resultobj; | |
8221 | fail: | |
8222 | return NULL; | |
8223 | } | |
8224 | ||
8225 | ||
8226 | static PyObject *_wrap_PyShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
8227 | PyObject *resultobj; | |
8228 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8229 | wxDC *arg2 = 0 ; | |
8230 | PyObject * obj0 = 0 ; | |
8231 | PyObject * obj1 = 0 ; | |
8232 | char *kwnames[] = { | |
8233 | (char *) "self",(char *) "dc", NULL | |
8234 | }; | |
8235 | ||
8236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
8237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8240 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8241 | SWIG_fail; | |
8242 | if (arg2 == NULL) { | |
8243 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8244 | SWIG_fail; | |
8245 | } | |
8246 | { | |
8247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8248 | (arg1)->base_OnMoveLinks(*arg2); | |
8249 | ||
8250 | wxPyEndAllowThreads(__tstate); | |
8251 | if (PyErr_Occurred()) SWIG_fail; | |
8252 | } | |
8253 | Py_INCREF(Py_None); resultobj = Py_None; | |
8254 | return resultobj; | |
8255 | fail: | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
8260 | static PyObject *_wrap_PyShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
8261 | PyObject *resultobj; | |
8262 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8263 | wxDC *arg2 = 0 ; | |
8264 | PyObject * obj0 = 0 ; | |
8265 | PyObject * obj1 = 0 ; | |
8266 | char *kwnames[] = { | |
8267 | (char *) "self",(char *) "dc", NULL | |
8268 | }; | |
8269 | ||
8270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
8271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8273 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8274 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8275 | SWIG_fail; | |
8276 | if (arg2 == NULL) { | |
8277 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8278 | SWIG_fail; | |
8279 | } | |
8280 | { | |
8281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8282 | (arg1)->base_OnErase(*arg2); | |
8283 | ||
8284 | wxPyEndAllowThreads(__tstate); | |
8285 | if (PyErr_Occurred()) SWIG_fail; | |
8286 | } | |
8287 | Py_INCREF(Py_None); resultobj = Py_None; | |
8288 | return resultobj; | |
8289 | fail: | |
8290 | return NULL; | |
8291 | } | |
8292 | ||
8293 | ||
8294 | static PyObject *_wrap_PyShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
8295 | PyObject *resultobj; | |
8296 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8297 | wxDC *arg2 = 0 ; | |
8298 | PyObject * obj0 = 0 ; | |
8299 | PyObject * obj1 = 0 ; | |
8300 | char *kwnames[] = { | |
8301 | (char *) "self",(char *) "dc", NULL | |
8302 | }; | |
8303 | ||
8304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
8305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8308 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8309 | SWIG_fail; | |
8310 | if (arg2 == NULL) { | |
8311 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8312 | SWIG_fail; | |
8313 | } | |
8314 | { | |
8315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8316 | (arg1)->base_OnEraseContents(*arg2); | |
8317 | ||
8318 | wxPyEndAllowThreads(__tstate); | |
8319 | if (PyErr_Occurred()) SWIG_fail; | |
8320 | } | |
8321 | Py_INCREF(Py_None); resultobj = Py_None; | |
8322 | return resultobj; | |
8323 | fail: | |
8324 | return NULL; | |
8325 | } | |
8326 | ||
8327 | ||
8328 | static PyObject *_wrap_PyShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
8329 | PyObject *resultobj; | |
8330 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8331 | wxDC *arg2 = 0 ; | |
8332 | PyObject * obj0 = 0 ; | |
8333 | PyObject * obj1 = 0 ; | |
8334 | char *kwnames[] = { | |
8335 | (char *) "self",(char *) "dc", NULL | |
8336 | }; | |
8337 | ||
8338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
8339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8342 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8343 | SWIG_fail; | |
8344 | if (arg2 == NULL) { | |
8345 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8346 | SWIG_fail; | |
8347 | } | |
8348 | { | |
8349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8350 | (arg1)->base_OnHighlight(*arg2); | |
8351 | ||
8352 | wxPyEndAllowThreads(__tstate); | |
8353 | if (PyErr_Occurred()) SWIG_fail; | |
8354 | } | |
8355 | Py_INCREF(Py_None); resultobj = Py_None; | |
8356 | return resultobj; | |
8357 | fail: | |
8358 | return NULL; | |
8359 | } | |
8360 | ||
8361 | ||
8362 | static PyObject *_wrap_PyShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
8363 | PyObject *resultobj; | |
8364 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8365 | double arg2 ; | |
8366 | double arg3 ; | |
8367 | int arg4 = (int) 0 ; | |
8368 | int arg5 = (int) 0 ; | |
8369 | PyObject * obj0 = 0 ; | |
8370 | PyObject * obj1 = 0 ; | |
8371 | PyObject * obj2 = 0 ; | |
8372 | PyObject * obj3 = 0 ; | |
8373 | PyObject * obj4 = 0 ; | |
8374 | char *kwnames[] = { | |
8375 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8376 | }; | |
8377 | ||
8378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8381 | arg2 = (double)SWIG_As_double(obj1); | |
8382 | if (PyErr_Occurred()) SWIG_fail; | |
8383 | arg3 = (double)SWIG_As_double(obj2); | |
8384 | if (PyErr_Occurred()) SWIG_fail; | |
8385 | if (obj3) { | |
8386 | arg4 = (int)SWIG_As_int(obj3); | |
8387 | if (PyErr_Occurred()) SWIG_fail; | |
8388 | } | |
8389 | if (obj4) { | |
8390 | arg5 = (int)SWIG_As_int(obj4); | |
8391 | if (PyErr_Occurred()) SWIG_fail; | |
8392 | } | |
8393 | { | |
8394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8395 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
8396 | ||
8397 | wxPyEndAllowThreads(__tstate); | |
8398 | if (PyErr_Occurred()) SWIG_fail; | |
8399 | } | |
8400 | Py_INCREF(Py_None); resultobj = Py_None; | |
8401 | return resultobj; | |
8402 | fail: | |
8403 | return NULL; | |
8404 | } | |
8405 | ||
8406 | ||
8407 | static PyObject *_wrap_PyShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
8408 | PyObject *resultobj; | |
8409 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8410 | double arg2 ; | |
8411 | double arg3 ; | |
8412 | int arg4 = (int) 0 ; | |
8413 | int arg5 = (int) 0 ; | |
8414 | PyObject * obj0 = 0 ; | |
8415 | PyObject * obj1 = 0 ; | |
8416 | PyObject * obj2 = 0 ; | |
8417 | PyObject * obj3 = 0 ; | |
8418 | PyObject * obj4 = 0 ; | |
8419 | char *kwnames[] = { | |
8420 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8421 | }; | |
8422 | ||
8423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8426 | arg2 = (double)SWIG_As_double(obj1); | |
8427 | if (PyErr_Occurred()) SWIG_fail; | |
8428 | arg3 = (double)SWIG_As_double(obj2); | |
8429 | if (PyErr_Occurred()) SWIG_fail; | |
8430 | if (obj3) { | |
8431 | arg4 = (int)SWIG_As_int(obj3); | |
8432 | if (PyErr_Occurred()) SWIG_fail; | |
8433 | } | |
8434 | if (obj4) { | |
8435 | arg5 = (int)SWIG_As_int(obj4); | |
8436 | if (PyErr_Occurred()) SWIG_fail; | |
8437 | } | |
8438 | { | |
8439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8440 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
8441 | ||
8442 | wxPyEndAllowThreads(__tstate); | |
8443 | if (PyErr_Occurred()) SWIG_fail; | |
8444 | } | |
8445 | Py_INCREF(Py_None); resultobj = Py_None; | |
8446 | return resultobj; | |
8447 | fail: | |
8448 | return NULL; | |
8449 | } | |
8450 | ||
8451 | ||
8452 | static PyObject *_wrap_PyShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
8453 | PyObject *resultobj; | |
8454 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8455 | double arg2 ; | |
8456 | double arg3 ; | |
8457 | int arg4 = (int) 0 ; | |
8458 | int arg5 = (int) 0 ; | |
8459 | PyObject * obj0 = 0 ; | |
8460 | PyObject * obj1 = 0 ; | |
8461 | PyObject * obj2 = 0 ; | |
8462 | PyObject * obj3 = 0 ; | |
8463 | PyObject * obj4 = 0 ; | |
8464 | char *kwnames[] = { | |
8465 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8466 | }; | |
8467 | ||
8468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8471 | arg2 = (double)SWIG_As_double(obj1); | |
8472 | if (PyErr_Occurred()) SWIG_fail; | |
8473 | arg3 = (double)SWIG_As_double(obj2); | |
8474 | if (PyErr_Occurred()) SWIG_fail; | |
8475 | if (obj3) { | |
8476 | arg4 = (int)SWIG_As_int(obj3); | |
8477 | if (PyErr_Occurred()) SWIG_fail; | |
8478 | } | |
8479 | if (obj4) { | |
8480 | arg5 = (int)SWIG_As_int(obj4); | |
8481 | if (PyErr_Occurred()) SWIG_fail; | |
8482 | } | |
8483 | { | |
8484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8485 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
8486 | ||
8487 | wxPyEndAllowThreads(__tstate); | |
8488 | if (PyErr_Occurred()) SWIG_fail; | |
8489 | } | |
8490 | Py_INCREF(Py_None); resultobj = Py_None; | |
8491 | return resultobj; | |
8492 | fail: | |
8493 | return NULL; | |
8494 | } | |
8495 | ||
8496 | ||
8497 | static PyObject *_wrap_PyShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
8498 | PyObject *resultobj; | |
8499 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8500 | double arg2 ; | |
8501 | double arg3 ; | |
8502 | PyObject * obj0 = 0 ; | |
8503 | PyObject * obj1 = 0 ; | |
8504 | PyObject * obj2 = 0 ; | |
8505 | char *kwnames[] = { | |
8506 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8507 | }; | |
8508 | ||
8509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8512 | arg2 = (double)SWIG_As_double(obj1); | |
8513 | if (PyErr_Occurred()) SWIG_fail; | |
8514 | arg3 = (double)SWIG_As_double(obj2); | |
8515 | if (PyErr_Occurred()) SWIG_fail; | |
8516 | { | |
8517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8518 | (arg1)->base_OnSize(arg2,arg3); | |
8519 | ||
8520 | wxPyEndAllowThreads(__tstate); | |
8521 | if (PyErr_Occurred()) SWIG_fail; | |
8522 | } | |
8523 | Py_INCREF(Py_None); resultobj = Py_None; | |
8524 | return resultobj; | |
8525 | fail: | |
8526 | return NULL; | |
8527 | } | |
8528 | ||
8529 | ||
8530 | static PyObject *_wrap_PyShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
8531 | PyObject *resultobj; | |
8532 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8533 | wxDC *arg2 = 0 ; | |
8534 | double arg3 ; | |
8535 | double arg4 ; | |
8536 | double arg5 ; | |
8537 | double arg6 ; | |
8538 | bool arg7 = (bool) true ; | |
8539 | bool result; | |
8540 | PyObject * obj0 = 0 ; | |
8541 | PyObject * obj1 = 0 ; | |
8542 | PyObject * obj2 = 0 ; | |
8543 | PyObject * obj3 = 0 ; | |
8544 | PyObject * obj4 = 0 ; | |
8545 | PyObject * obj5 = 0 ; | |
8546 | PyObject * obj6 = 0 ; | |
8547 | char *kwnames[] = { | |
8548 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
8549 | }; | |
8550 | ||
8551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8556 | SWIG_fail; | |
8557 | if (arg2 == NULL) { | |
8558 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8559 | SWIG_fail; | |
8560 | } | |
8561 | arg3 = (double)SWIG_As_double(obj2); | |
8562 | if (PyErr_Occurred()) SWIG_fail; | |
8563 | arg4 = (double)SWIG_As_double(obj3); | |
8564 | if (PyErr_Occurred()) SWIG_fail; | |
8565 | arg5 = (double)SWIG_As_double(obj4); | |
8566 | if (PyErr_Occurred()) SWIG_fail; | |
8567 | arg6 = (double)SWIG_As_double(obj5); | |
8568 | if (PyErr_Occurred()) SWIG_fail; | |
8569 | if (obj6) { | |
8570 | arg7 = (bool)SWIG_As_bool(obj6); | |
8571 | if (PyErr_Occurred()) SWIG_fail; | |
8572 | } | |
8573 | { | |
8574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8575 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
8576 | ||
8577 | wxPyEndAllowThreads(__tstate); | |
8578 | if (PyErr_Occurred()) SWIG_fail; | |
8579 | } | |
8580 | { | |
8581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8582 | } | |
8583 | return resultobj; | |
8584 | fail: | |
8585 | return NULL; | |
8586 | } | |
8587 | ||
8588 | ||
8589 | static PyObject *_wrap_PyShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
8590 | PyObject *resultobj; | |
8591 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8592 | wxDC *arg2 = 0 ; | |
8593 | double arg3 ; | |
8594 | double arg4 ; | |
8595 | double arg5 ; | |
8596 | double arg6 ; | |
8597 | bool arg7 = (bool) true ; | |
8598 | PyObject * obj0 = 0 ; | |
8599 | PyObject * obj1 = 0 ; | |
8600 | PyObject * obj2 = 0 ; | |
8601 | PyObject * obj3 = 0 ; | |
8602 | PyObject * obj4 = 0 ; | |
8603 | PyObject * obj5 = 0 ; | |
8604 | PyObject * obj6 = 0 ; | |
8605 | char *kwnames[] = { | |
8606 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
8607 | }; | |
8608 | ||
8609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8613 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8614 | SWIG_fail; | |
8615 | if (arg2 == NULL) { | |
8616 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8617 | SWIG_fail; | |
8618 | } | |
8619 | arg3 = (double)SWIG_As_double(obj2); | |
8620 | if (PyErr_Occurred()) SWIG_fail; | |
8621 | arg4 = (double)SWIG_As_double(obj3); | |
8622 | if (PyErr_Occurred()) SWIG_fail; | |
8623 | arg5 = (double)SWIG_As_double(obj4); | |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
8625 | arg6 = (double)SWIG_As_double(obj5); | |
8626 | if (PyErr_Occurred()) SWIG_fail; | |
8627 | if (obj6) { | |
8628 | arg7 = (bool)SWIG_As_bool(obj6); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
8631 | { | |
8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8633 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
8634 | ||
8635 | wxPyEndAllowThreads(__tstate); | |
8636 | if (PyErr_Occurred()) SWIG_fail; | |
8637 | } | |
8638 | Py_INCREF(Py_None); resultobj = Py_None; | |
8639 | return resultobj; | |
8640 | fail: | |
8641 | return NULL; | |
8642 | } | |
8643 | ||
8644 | ||
8645 | static PyObject *_wrap_PyShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
8646 | PyObject *resultobj; | |
8647 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8648 | bool arg2 ; | |
8649 | double arg3 ; | |
8650 | double arg4 ; | |
8651 | int arg5 = (int) 0 ; | |
8652 | int arg6 = (int) 0 ; | |
8653 | PyObject * obj0 = 0 ; | |
8654 | PyObject * obj1 = 0 ; | |
8655 | PyObject * obj2 = 0 ; | |
8656 | PyObject * obj3 = 0 ; | |
8657 | PyObject * obj4 = 0 ; | |
8658 | PyObject * obj5 = 0 ; | |
8659 | char *kwnames[] = { | |
8660 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8661 | }; | |
8662 | ||
8663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8666 | arg2 = (bool)SWIG_As_bool(obj1); | |
8667 | if (PyErr_Occurred()) SWIG_fail; | |
8668 | arg3 = (double)SWIG_As_double(obj2); | |
8669 | if (PyErr_Occurred()) SWIG_fail; | |
8670 | arg4 = (double)SWIG_As_double(obj3); | |
8671 | if (PyErr_Occurred()) SWIG_fail; | |
8672 | if (obj4) { | |
8673 | arg5 = (int)SWIG_As_int(obj4); | |
8674 | if (PyErr_Occurred()) SWIG_fail; | |
8675 | } | |
8676 | if (obj5) { | |
8677 | arg6 = (int)SWIG_As_int(obj5); | |
8678 | if (PyErr_Occurred()) SWIG_fail; | |
8679 | } | |
8680 | { | |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8682 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
8683 | ||
8684 | wxPyEndAllowThreads(__tstate); | |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
8686 | } | |
8687 | Py_INCREF(Py_None); resultobj = Py_None; | |
8688 | return resultobj; | |
8689 | fail: | |
8690 | return NULL; | |
8691 | } | |
8692 | ||
8693 | ||
8694 | static PyObject *_wrap_PyShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
8695 | PyObject *resultobj; | |
8696 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8697 | double arg2 ; | |
8698 | double arg3 ; | |
8699 | int arg4 = (int) 0 ; | |
8700 | int arg5 = (int) 0 ; | |
8701 | PyObject * obj0 = 0 ; | |
8702 | PyObject * obj1 = 0 ; | |
8703 | PyObject * obj2 = 0 ; | |
8704 | PyObject * obj3 = 0 ; | |
8705 | PyObject * obj4 = 0 ; | |
8706 | char *kwnames[] = { | |
8707 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8708 | }; | |
8709 | ||
8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8713 | arg2 = (double)SWIG_As_double(obj1); | |
8714 | if (PyErr_Occurred()) SWIG_fail; | |
8715 | arg3 = (double)SWIG_As_double(obj2); | |
8716 | if (PyErr_Occurred()) SWIG_fail; | |
8717 | if (obj3) { | |
8718 | arg4 = (int)SWIG_As_int(obj3); | |
8719 | if (PyErr_Occurred()) SWIG_fail; | |
8720 | } | |
8721 | if (obj4) { | |
8722 | arg5 = (int)SWIG_As_int(obj4); | |
8723 | if (PyErr_Occurred()) SWIG_fail; | |
8724 | } | |
8725 | { | |
8726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8727 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
8728 | ||
8729 | wxPyEndAllowThreads(__tstate); | |
8730 | if (PyErr_Occurred()) SWIG_fail; | |
8731 | } | |
8732 | Py_INCREF(Py_None); resultobj = Py_None; | |
8733 | return resultobj; | |
8734 | fail: | |
8735 | return NULL; | |
8736 | } | |
8737 | ||
8738 | ||
8739 | static PyObject *_wrap_PyShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
8740 | PyObject *resultobj; | |
8741 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8742 | double arg2 ; | |
8743 | double arg3 ; | |
8744 | int arg4 = (int) 0 ; | |
8745 | int arg5 = (int) 0 ; | |
8746 | PyObject * obj0 = 0 ; | |
8747 | PyObject * obj1 = 0 ; | |
8748 | PyObject * obj2 = 0 ; | |
8749 | PyObject * obj3 = 0 ; | |
8750 | PyObject * obj4 = 0 ; | |
8751 | char *kwnames[] = { | |
8752 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8753 | }; | |
8754 | ||
8755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8758 | arg2 = (double)SWIG_As_double(obj1); | |
8759 | if (PyErr_Occurred()) SWIG_fail; | |
8760 | arg3 = (double)SWIG_As_double(obj2); | |
8761 | if (PyErr_Occurred()) SWIG_fail; | |
8762 | if (obj3) { | |
8763 | arg4 = (int)SWIG_As_int(obj3); | |
8764 | if (PyErr_Occurred()) SWIG_fail; | |
8765 | } | |
8766 | if (obj4) { | |
8767 | arg5 = (int)SWIG_As_int(obj4); | |
8768 | if (PyErr_Occurred()) SWIG_fail; | |
8769 | } | |
8770 | { | |
8771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8772 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
8773 | ||
8774 | wxPyEndAllowThreads(__tstate); | |
8775 | if (PyErr_Occurred()) SWIG_fail; | |
8776 | } | |
8777 | Py_INCREF(Py_None); resultobj = Py_None; | |
8778 | return resultobj; | |
8779 | fail: | |
8780 | return NULL; | |
8781 | } | |
8782 | ||
8783 | ||
8784 | static PyObject *_wrap_PyShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
8785 | PyObject *resultobj; | |
8786 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8787 | bool arg2 ; | |
8788 | double arg3 ; | |
8789 | double arg4 ; | |
8790 | int arg5 = (int) 0 ; | |
8791 | int arg6 = (int) 0 ; | |
8792 | PyObject * obj0 = 0 ; | |
8793 | PyObject * obj1 = 0 ; | |
8794 | PyObject * obj2 = 0 ; | |
8795 | PyObject * obj3 = 0 ; | |
8796 | PyObject * obj4 = 0 ; | |
8797 | PyObject * obj5 = 0 ; | |
8798 | char *kwnames[] = { | |
8799 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8800 | }; | |
8801 | ||
8802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8805 | arg2 = (bool)SWIG_As_bool(obj1); | |
8806 | if (PyErr_Occurred()) SWIG_fail; | |
8807 | arg3 = (double)SWIG_As_double(obj2); | |
8808 | if (PyErr_Occurred()) SWIG_fail; | |
8809 | arg4 = (double)SWIG_As_double(obj3); | |
8810 | if (PyErr_Occurred()) SWIG_fail; | |
8811 | if (obj4) { | |
8812 | arg5 = (int)SWIG_As_int(obj4); | |
8813 | if (PyErr_Occurred()) SWIG_fail; | |
8814 | } | |
8815 | if (obj5) { | |
8816 | arg6 = (int)SWIG_As_int(obj5); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
8819 | { | |
8820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8821 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
8822 | ||
8823 | wxPyEndAllowThreads(__tstate); | |
8824 | if (PyErr_Occurred()) SWIG_fail; | |
8825 | } | |
8826 | Py_INCREF(Py_None); resultobj = Py_None; | |
8827 | return resultobj; | |
8828 | fail: | |
8829 | return NULL; | |
8830 | } | |
8831 | ||
8832 | ||
8833 | static PyObject *_wrap_PyShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
8834 | PyObject *resultobj; | |
8835 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8836 | double arg2 ; | |
8837 | double arg3 ; | |
8838 | int arg4 = (int) 0 ; | |
8839 | int arg5 = (int) 0 ; | |
8840 | PyObject * obj0 = 0 ; | |
8841 | PyObject * obj1 = 0 ; | |
8842 | PyObject * obj2 = 0 ; | |
8843 | PyObject * obj3 = 0 ; | |
8844 | PyObject * obj4 = 0 ; | |
8845 | char *kwnames[] = { | |
8846 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8847 | }; | |
8848 | ||
8849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8852 | arg2 = (double)SWIG_As_double(obj1); | |
8853 | if (PyErr_Occurred()) SWIG_fail; | |
8854 | arg3 = (double)SWIG_As_double(obj2); | |
8855 | if (PyErr_Occurred()) SWIG_fail; | |
8856 | if (obj3) { | |
8857 | arg4 = (int)SWIG_As_int(obj3); | |
8858 | if (PyErr_Occurred()) SWIG_fail; | |
8859 | } | |
8860 | if (obj4) { | |
8861 | arg5 = (int)SWIG_As_int(obj4); | |
8862 | if (PyErr_Occurred()) SWIG_fail; | |
8863 | } | |
8864 | { | |
8865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8866 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
8867 | ||
8868 | wxPyEndAllowThreads(__tstate); | |
8869 | if (PyErr_Occurred()) SWIG_fail; | |
8870 | } | |
8871 | Py_INCREF(Py_None); resultobj = Py_None; | |
8872 | return resultobj; | |
8873 | fail: | |
8874 | return NULL; | |
8875 | } | |
8876 | ||
8877 | ||
8878 | static PyObject *_wrap_PyShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
8879 | PyObject *resultobj; | |
8880 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8881 | double arg2 ; | |
8882 | double arg3 ; | |
8883 | int arg4 = (int) 0 ; | |
8884 | int arg5 = (int) 0 ; | |
8885 | PyObject * obj0 = 0 ; | |
8886 | PyObject * obj1 = 0 ; | |
8887 | PyObject * obj2 = 0 ; | |
8888 | PyObject * obj3 = 0 ; | |
8889 | PyObject * obj4 = 0 ; | |
8890 | char *kwnames[] = { | |
8891 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8892 | }; | |
8893 | ||
8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8897 | arg2 = (double)SWIG_As_double(obj1); | |
8898 | if (PyErr_Occurred()) SWIG_fail; | |
8899 | arg3 = (double)SWIG_As_double(obj2); | |
8900 | if (PyErr_Occurred()) SWIG_fail; | |
8901 | if (obj3) { | |
8902 | arg4 = (int)SWIG_As_int(obj3); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
8905 | if (obj4) { | |
8906 | arg5 = (int)SWIG_As_int(obj4); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
8909 | { | |
8910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8911 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
8912 | ||
8913 | wxPyEndAllowThreads(__tstate); | |
8914 | if (PyErr_Occurred()) SWIG_fail; | |
8915 | } | |
8916 | Py_INCREF(Py_None); resultobj = Py_None; | |
8917 | return resultobj; | |
8918 | fail: | |
8919 | return NULL; | |
8920 | } | |
8921 | ||
8922 | ||
8923 | static PyObject *_wrap_PyShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
8924 | PyObject *resultobj; | |
8925 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8926 | wxDC *arg2 = 0 ; | |
8927 | double arg3 ; | |
8928 | double arg4 ; | |
8929 | double arg5 ; | |
8930 | double arg6 ; | |
8931 | PyObject * obj0 = 0 ; | |
8932 | PyObject * obj1 = 0 ; | |
8933 | PyObject * obj2 = 0 ; | |
8934 | PyObject * obj3 = 0 ; | |
8935 | PyObject * obj4 = 0 ; | |
8936 | PyObject * obj5 = 0 ; | |
8937 | char *kwnames[] = { | |
8938 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
8939 | }; | |
8940 | ||
8941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8944 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8945 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8946 | SWIG_fail; | |
8947 | if (arg2 == NULL) { | |
8948 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8949 | SWIG_fail; | |
8950 | } | |
8951 | arg3 = (double)SWIG_As_double(obj2); | |
8952 | if (PyErr_Occurred()) SWIG_fail; | |
8953 | arg4 = (double)SWIG_As_double(obj3); | |
8954 | if (PyErr_Occurred()) SWIG_fail; | |
8955 | arg5 = (double)SWIG_As_double(obj4); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | arg6 = (double)SWIG_As_double(obj5); | |
8958 | if (PyErr_Occurred()) SWIG_fail; | |
8959 | { | |
8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8961 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
8962 | ||
8963 | wxPyEndAllowThreads(__tstate); | |
8964 | if (PyErr_Occurred()) SWIG_fail; | |
8965 | } | |
8966 | Py_INCREF(Py_None); resultobj = Py_None; | |
8967 | return resultobj; | |
8968 | fail: | |
8969 | return NULL; | |
8970 | } | |
8971 | ||
8972 | ||
8973 | static PyObject *_wrap_PyShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
8974 | PyObject *resultobj; | |
8975 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8976 | wxDC *arg2 = 0 ; | |
8977 | PyObject * obj0 = 0 ; | |
8978 | PyObject * obj1 = 0 ; | |
8979 | char *kwnames[] = { | |
8980 | (char *) "self",(char *) "dc", NULL | |
8981 | }; | |
8982 | ||
8983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
8984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
8985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8988 | SWIG_fail; | |
8989 | if (arg2 == NULL) { | |
8990 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8991 | SWIG_fail; | |
8992 | } | |
8993 | { | |
8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8995 | (arg1)->base_OnDrawControlPoints(*arg2); | |
8996 | ||
8997 | wxPyEndAllowThreads(__tstate); | |
8998 | if (PyErr_Occurred()) SWIG_fail; | |
8999 | } | |
9000 | Py_INCREF(Py_None); resultobj = Py_None; | |
9001 | return resultobj; | |
9002 | fail: | |
9003 | return NULL; | |
9004 | } | |
9005 | ||
9006 | ||
9007 | static PyObject *_wrap_PyShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
9008 | PyObject *resultobj; | |
9009 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9010 | wxDC *arg2 = 0 ; | |
9011 | PyObject * obj0 = 0 ; | |
9012 | PyObject * obj1 = 0 ; | |
9013 | char *kwnames[] = { | |
9014 | (char *) "self",(char *) "dc", NULL | |
9015 | }; | |
9016 | ||
9017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
9018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
9019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9020 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
9021 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9022 | SWIG_fail; | |
9023 | if (arg2 == NULL) { | |
9024 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9025 | SWIG_fail; | |
9026 | } | |
9027 | { | |
9028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9029 | (arg1)->base_OnEraseControlPoints(*arg2); | |
9030 | ||
9031 | wxPyEndAllowThreads(__tstate); | |
9032 | if (PyErr_Occurred()) SWIG_fail; | |
9033 | } | |
9034 | Py_INCREF(Py_None); resultobj = Py_None; | |
9035 | return resultobj; | |
9036 | fail: | |
9037 | return NULL; | |
9038 | } | |
9039 | ||
9040 | ||
9041 | static PyObject *_wrap_PyShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
9042 | PyObject *resultobj; | |
9043 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9044 | wxDC *arg2 = 0 ; | |
9045 | bool arg3 = (bool) true ; | |
9046 | PyObject * obj0 = 0 ; | |
9047 | PyObject * obj1 = 0 ; | |
9048 | PyObject * obj2 = 0 ; | |
9049 | char *kwnames[] = { | |
9050 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
9051 | }; | |
9052 | ||
9053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
9055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9056 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
9057 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9058 | SWIG_fail; | |
9059 | if (arg2 == NULL) { | |
9060 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9061 | SWIG_fail; | |
9062 | } | |
9063 | if (obj2) { | |
9064 | arg3 = (bool)SWIG_As_bool(obj2); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | { | |
9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9069 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
9070 | ||
9071 | wxPyEndAllowThreads(__tstate); | |
9072 | if (PyErr_Occurred()) SWIG_fail; | |
9073 | } | |
9074 | Py_INCREF(Py_None); resultobj = Py_None; | |
9075 | return resultobj; | |
9076 | fail: | |
9077 | return NULL; | |
9078 | } | |
9079 | ||
9080 | ||
9081 | static PyObject *_wrap_PyShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
9082 | PyObject *resultobj; | |
9083 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9084 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
9085 | bool arg3 ; | |
9086 | double arg4 ; | |
9087 | double arg5 ; | |
9088 | int arg6 = (int) 0 ; | |
9089 | int arg7 = (int) 0 ; | |
9090 | PyObject * obj0 = 0 ; | |
9091 | PyObject * obj1 = 0 ; | |
9092 | PyObject * obj2 = 0 ; | |
9093 | PyObject * obj3 = 0 ; | |
9094 | PyObject * obj4 = 0 ; | |
9095 | PyObject * obj5 = 0 ; | |
9096 | PyObject * obj6 = 0 ; | |
9097 | char *kwnames[] = { | |
9098 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9099 | }; | |
9100 | ||
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
9103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9104 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
9105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9106 | arg3 = (bool)SWIG_As_bool(obj2); | |
9107 | if (PyErr_Occurred()) SWIG_fail; | |
9108 | arg4 = (double)SWIG_As_double(obj3); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | arg5 = (double)SWIG_As_double(obj4); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
9112 | if (obj5) { | |
9113 | arg6 = (int)SWIG_As_int(obj5); | |
9114 | if (PyErr_Occurred()) SWIG_fail; | |
9115 | } | |
9116 | if (obj6) { | |
9117 | arg7 = (int)SWIG_As_int(obj6); | |
9118 | if (PyErr_Occurred()) SWIG_fail; | |
9119 | } | |
9120 | { | |
9121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9122 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
9123 | ||
9124 | wxPyEndAllowThreads(__tstate); | |
9125 | if (PyErr_Occurred()) SWIG_fail; | |
9126 | } | |
9127 | Py_INCREF(Py_None); resultobj = Py_None; | |
9128 | return resultobj; | |
9129 | fail: | |
9130 | return NULL; | |
9131 | } | |
9132 | ||
9133 | ||
9134 | static PyObject *_wrap_PyShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
9135 | PyObject *resultobj; | |
9136 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9137 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
9138 | double arg3 ; | |
9139 | double arg4 ; | |
9140 | int arg5 = (int) 0 ; | |
9141 | int arg6 = (int) 0 ; | |
9142 | PyObject * obj0 = 0 ; | |
9143 | PyObject * obj1 = 0 ; | |
9144 | PyObject * obj2 = 0 ; | |
9145 | PyObject * obj3 = 0 ; | |
9146 | PyObject * obj4 = 0 ; | |
9147 | PyObject * obj5 = 0 ; | |
9148 | char *kwnames[] = { | |
9149 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9150 | }; | |
9151 | ||
9152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
9154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9155 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9157 | arg3 = (double)SWIG_As_double(obj2); | |
9158 | if (PyErr_Occurred()) SWIG_fail; | |
9159 | arg4 = (double)SWIG_As_double(obj3); | |
9160 | if (PyErr_Occurred()) SWIG_fail; | |
9161 | if (obj4) { | |
9162 | arg5 = (int)SWIG_As_int(obj4); | |
9163 | if (PyErr_Occurred()) SWIG_fail; | |
9164 | } | |
9165 | if (obj5) { | |
9166 | arg6 = (int)SWIG_As_int(obj5); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | } | |
9169 | { | |
9170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9171 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
9172 | ||
9173 | wxPyEndAllowThreads(__tstate); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | } | |
9176 | Py_INCREF(Py_None); resultobj = Py_None; | |
9177 | return resultobj; | |
9178 | fail: | |
9179 | return NULL; | |
9180 | } | |
9181 | ||
9182 | ||
9183 | static PyObject *_wrap_PyShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
9184 | PyObject *resultobj; | |
9185 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9186 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
9187 | double arg3 ; | |
9188 | double arg4 ; | |
9189 | int arg5 = (int) 0 ; | |
9190 | int arg6 = (int) 0 ; | |
9191 | PyObject * obj0 = 0 ; | |
9192 | PyObject * obj1 = 0 ; | |
9193 | PyObject * obj2 = 0 ; | |
9194 | PyObject * obj3 = 0 ; | |
9195 | PyObject * obj4 = 0 ; | |
9196 | PyObject * obj5 = 0 ; | |
9197 | char *kwnames[] = { | |
9198 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9199 | }; | |
9200 | ||
9201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
9203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
9205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9206 | arg3 = (double)SWIG_As_double(obj2); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | arg4 = (double)SWIG_As_double(obj3); | |
9209 | if (PyErr_Occurred()) SWIG_fail; | |
9210 | if (obj4) { | |
9211 | arg5 = (int)SWIG_As_int(obj4); | |
9212 | if (PyErr_Occurred()) SWIG_fail; | |
9213 | } | |
9214 | if (obj5) { | |
9215 | arg6 = (int)SWIG_As_int(obj5); | |
9216 | if (PyErr_Occurred()) SWIG_fail; | |
9217 | } | |
9218 | { | |
9219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9220 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
9221 | ||
9222 | wxPyEndAllowThreads(__tstate); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
9225 | Py_INCREF(Py_None); resultobj = Py_None; | |
9226 | return resultobj; | |
9227 | fail: | |
9228 | return NULL; | |
9229 | } | |
9230 | ||
9231 | ||
9232 | static PyObject *_wrap_PyShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
9233 | PyObject *resultobj; | |
9234 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9235 | double arg2 ; | |
9236 | double arg3 ; | |
9237 | PyObject * obj0 = 0 ; | |
9238 | PyObject * obj1 = 0 ; | |
9239 | PyObject * obj2 = 0 ; | |
9240 | char *kwnames[] = { | |
9241 | (char *) "self",(char *) "w",(char *) "h", NULL | |
9242 | }; | |
9243 | ||
9244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
9246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9247 | arg2 = (double)SWIG_As_double(obj1); | |
9248 | if (PyErr_Occurred()) SWIG_fail; | |
9249 | arg3 = (double)SWIG_As_double(obj2); | |
9250 | if (PyErr_Occurred()) SWIG_fail; | |
9251 | { | |
9252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9253 | (arg1)->base_OnBeginSize(arg2,arg3); | |
9254 | ||
9255 | wxPyEndAllowThreads(__tstate); | |
9256 | if (PyErr_Occurred()) SWIG_fail; | |
9257 | } | |
9258 | Py_INCREF(Py_None); resultobj = Py_None; | |
9259 | return resultobj; | |
9260 | fail: | |
9261 | return NULL; | |
9262 | } | |
9263 | ||
9264 | ||
9265 | static PyObject *_wrap_PyShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
9266 | PyObject *resultobj; | |
9267 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9268 | double arg2 ; | |
9269 | double arg3 ; | |
9270 | PyObject * obj0 = 0 ; | |
9271 | PyObject * obj1 = 0 ; | |
9272 | PyObject * obj2 = 0 ; | |
9273 | char *kwnames[] = { | |
9274 | (char *) "self",(char *) "w",(char *) "h", NULL | |
9275 | }; | |
9276 | ||
9277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, | |
9279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9280 | arg2 = (double)SWIG_As_double(obj1); | |
9281 | if (PyErr_Occurred()) SWIG_fail; | |
9282 | arg3 = (double)SWIG_As_double(obj2); | |
9283 | if (PyErr_Occurred()) SWIG_fail; | |
9284 | { | |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9286 | (arg1)->base_OnEndSize(arg2,arg3); | |
9287 | ||
9288 | wxPyEndAllowThreads(__tstate); | |
9289 | if (PyErr_Occurred()) SWIG_fail; | |
9290 | } | |
9291 | Py_INCREF(Py_None); resultobj = Py_None; | |
9292 | return resultobj; | |
9293 | fail: | |
9294 | return NULL; | |
9295 | } | |
9296 | ||
9297 | ||
9298 | static PyObject * PyShape_swigregister(PyObject *, PyObject *args) { | |
9299 | PyObject *obj; | |
9300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9301 | SWIG_TypeClientData(SWIGTYPE_p_wxPyShape, obj); | |
9302 | Py_INCREF(obj); | |
9303 | return Py_BuildValue((char *)""); | |
9304 | } | |
9305 | static PyObject *_wrap_new_PseudoMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
9306 | PyObject *resultobj; | |
9307 | wxPseudoMetaFile *result; | |
9308 | char *kwnames[] = { | |
9309 | NULL | |
9310 | }; | |
9311 | ||
9312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PseudoMetaFile",kwnames)) goto fail; | |
9313 | { | |
9314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9315 | result = (wxPseudoMetaFile *)new wxPseudoMetaFile(); | |
9316 | ||
9317 | wxPyEndAllowThreads(__tstate); | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | } | |
9320 | { | |
9321 | resultobj = wxPyMake_wxObject(result, 1); | |
9322 | } | |
9323 | return resultobj; | |
9324 | fail: | |
9325 | return NULL; | |
9326 | } | |
9327 | ||
9328 | ||
9329 | static PyObject *_wrap_delete_PseudoMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
9330 | PyObject *resultobj; | |
9331 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9332 | PyObject * obj0 = 0 ; | |
9333 | char *kwnames[] = { | |
9334 | (char *) "self", NULL | |
9335 | }; | |
9336 | ||
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PseudoMetaFile",kwnames,&obj0)) goto fail; | |
9338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9340 | { | |
9341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9342 | delete arg1; | |
9343 | ||
9344 | wxPyEndAllowThreads(__tstate); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | } | |
9347 | Py_INCREF(Py_None); resultobj = Py_None; | |
9348 | return resultobj; | |
9349 | fail: | |
9350 | return NULL; | |
9351 | } | |
9352 | ||
9353 | ||
9354 | static PyObject *_wrap_PseudoMetaFile_Draw(PyObject *, PyObject *args, PyObject *kwargs) { | |
9355 | PyObject *resultobj; | |
9356 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9357 | wxDC *arg2 = 0 ; | |
9358 | double arg3 ; | |
9359 | double arg4 ; | |
9360 | PyObject * obj0 = 0 ; | |
9361 | PyObject * obj1 = 0 ; | |
9362 | PyObject * obj2 = 0 ; | |
9363 | PyObject * obj3 = 0 ; | |
9364 | char *kwnames[] = { | |
9365 | (char *) "self",(char *) "dc",(char *) "xoffset",(char *) "yoffset", NULL | |
9366 | }; | |
9367 | ||
9368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_Draw",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9371 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
9372 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9373 | SWIG_fail; | |
9374 | if (arg2 == NULL) { | |
9375 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9376 | SWIG_fail; | |
9377 | } | |
9378 | arg3 = (double)SWIG_As_double(obj2); | |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
9380 | arg4 = (double)SWIG_As_double(obj3); | |
9381 | if (PyErr_Occurred()) SWIG_fail; | |
9382 | { | |
9383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9384 | (arg1)->Draw(*arg2,arg3,arg4); | |
9385 | ||
9386 | wxPyEndAllowThreads(__tstate); | |
9387 | if (PyErr_Occurred()) SWIG_fail; | |
9388 | } | |
9389 | Py_INCREF(Py_None); resultobj = Py_None; | |
9390 | return resultobj; | |
9391 | fail: | |
9392 | return NULL; | |
9393 | } | |
9394 | ||
9395 | ||
9396 | static PyObject *_wrap_PseudoMetaFile_Clear(PyObject *, PyObject *args, PyObject *kwargs) { | |
9397 | PyObject *resultobj; | |
9398 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9399 | PyObject * obj0 = 0 ; | |
9400 | char *kwnames[] = { | |
9401 | (char *) "self", NULL | |
9402 | }; | |
9403 | ||
9404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_Clear",kwnames,&obj0)) goto fail; | |
9405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9407 | { | |
9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9409 | (arg1)->Clear(); | |
9410 | ||
9411 | wxPyEndAllowThreads(__tstate); | |
9412 | if (PyErr_Occurred()) SWIG_fail; | |
9413 | } | |
9414 | Py_INCREF(Py_None); resultobj = Py_None; | |
9415 | return resultobj; | |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
9421 | static PyObject *_wrap_PseudoMetaFile_Copy(PyObject *, PyObject *args, PyObject *kwargs) { | |
9422 | PyObject *resultobj; | |
9423 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9424 | wxPseudoMetaFile *arg2 = 0 ; | |
9425 | PyObject * obj0 = 0 ; | |
9426 | PyObject * obj1 = 0 ; | |
9427 | char *kwnames[] = { | |
9428 | (char *) "self",(char *) "copy", NULL | |
9429 | }; | |
9430 | ||
9431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_Copy",kwnames,&obj0,&obj1)) goto fail; | |
9432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9434 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPseudoMetaFile, | |
9435 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9436 | SWIG_fail; | |
9437 | if (arg2 == NULL) { | |
9438 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9439 | SWIG_fail; | |
9440 | } | |
9441 | { | |
9442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9443 | (arg1)->Copy(*arg2); | |
9444 | ||
9445 | wxPyEndAllowThreads(__tstate); | |
9446 | if (PyErr_Occurred()) SWIG_fail; | |
9447 | } | |
9448 | Py_INCREF(Py_None); resultobj = Py_None; | |
9449 | return resultobj; | |
9450 | fail: | |
9451 | return NULL; | |
9452 | } | |
9453 | ||
9454 | ||
9455 | static PyObject *_wrap_PseudoMetaFile_Scale(PyObject *, PyObject *args, PyObject *kwargs) { | |
9456 | PyObject *resultobj; | |
9457 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9458 | double arg2 ; | |
9459 | double arg3 ; | |
9460 | PyObject * obj0 = 0 ; | |
9461 | PyObject * obj1 = 0 ; | |
9462 | PyObject * obj2 = 0 ; | |
9463 | char *kwnames[] = { | |
9464 | (char *) "self",(char *) "sx",(char *) "sy", NULL | |
9465 | }; | |
9466 | ||
9467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9470 | arg2 = (double)SWIG_As_double(obj1); | |
9471 | if (PyErr_Occurred()) SWIG_fail; | |
9472 | arg3 = (double)SWIG_As_double(obj2); | |
9473 | if (PyErr_Occurred()) SWIG_fail; | |
9474 | { | |
9475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9476 | (arg1)->Scale(arg2,arg3); | |
9477 | ||
9478 | wxPyEndAllowThreads(__tstate); | |
9479 | if (PyErr_Occurred()) SWIG_fail; | |
9480 | } | |
9481 | Py_INCREF(Py_None); resultobj = Py_None; | |
9482 | return resultobj; | |
9483 | fail: | |
9484 | return NULL; | |
9485 | } | |
9486 | ||
9487 | ||
9488 | static PyObject *_wrap_PseudoMetaFile_ScaleTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
9489 | PyObject *resultobj; | |
9490 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9491 | double arg2 ; | |
9492 | double arg3 ; | |
9493 | PyObject * obj0 = 0 ; | |
9494 | PyObject * obj1 = 0 ; | |
9495 | PyObject * obj2 = 0 ; | |
9496 | char *kwnames[] = { | |
9497 | (char *) "self",(char *) "w",(char *) "h", NULL | |
9498 | }; | |
9499 | ||
9500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_ScaleTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9503 | arg2 = (double)SWIG_As_double(obj1); | |
9504 | if (PyErr_Occurred()) SWIG_fail; | |
9505 | arg3 = (double)SWIG_As_double(obj2); | |
9506 | if (PyErr_Occurred()) SWIG_fail; | |
9507 | { | |
9508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9509 | (arg1)->ScaleTo(arg2,arg3); | |
9510 | ||
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
9514 | Py_INCREF(Py_None); resultobj = Py_None; | |
9515 | return resultobj; | |
9516 | fail: | |
9517 | return NULL; | |
9518 | } | |
9519 | ||
9520 | ||
9521 | static PyObject *_wrap_PseudoMetaFile_Translate(PyObject *, PyObject *args, PyObject *kwargs) { | |
9522 | PyObject *resultobj; | |
9523 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9524 | double arg2 ; | |
9525 | double arg3 ; | |
9526 | PyObject * obj0 = 0 ; | |
9527 | PyObject * obj1 = 0 ; | |
9528 | PyObject * obj2 = 0 ; | |
9529 | char *kwnames[] = { | |
9530 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9531 | }; | |
9532 | ||
9533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_Translate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9536 | arg2 = (double)SWIG_As_double(obj1); | |
9537 | if (PyErr_Occurred()) SWIG_fail; | |
9538 | arg3 = (double)SWIG_As_double(obj2); | |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
9540 | { | |
9541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9542 | (arg1)->Translate(arg2,arg3); | |
9543 | ||
9544 | wxPyEndAllowThreads(__tstate); | |
9545 | if (PyErr_Occurred()) SWIG_fail; | |
9546 | } | |
9547 | Py_INCREF(Py_None); resultobj = Py_None; | |
9548 | return resultobj; | |
9549 | fail: | |
9550 | return NULL; | |
9551 | } | |
9552 | ||
9553 | ||
9554 | static PyObject *_wrap_PseudoMetaFile_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { | |
9555 | PyObject *resultobj; | |
9556 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9557 | double arg2 ; | |
9558 | double arg3 ; | |
9559 | double arg4 ; | |
9560 | PyObject * obj0 = 0 ; | |
9561 | PyObject * obj1 = 0 ; | |
9562 | PyObject * obj2 = 0 ; | |
9563 | PyObject * obj3 = 0 ; | |
9564 | char *kwnames[] = { | |
9565 | (char *) "self",(char *) "x",(char *) "y",(char *) "theta", NULL | |
9566 | }; | |
9567 | ||
9568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9571 | arg2 = (double)SWIG_As_double(obj1); | |
9572 | if (PyErr_Occurred()) SWIG_fail; | |
9573 | arg3 = (double)SWIG_As_double(obj2); | |
9574 | if (PyErr_Occurred()) SWIG_fail; | |
9575 | arg4 = (double)SWIG_As_double(obj3); | |
9576 | if (PyErr_Occurred()) SWIG_fail; | |
9577 | { | |
9578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9579 | (arg1)->Rotate(arg2,arg3,arg4); | |
9580 | ||
9581 | wxPyEndAllowThreads(__tstate); | |
9582 | if (PyErr_Occurred()) SWIG_fail; | |
9583 | } | |
9584 | Py_INCREF(Py_None); resultobj = Py_None; | |
9585 | return resultobj; | |
9586 | fail: | |
9587 | return NULL; | |
9588 | } | |
9589 | ||
9590 | ||
9591 | static PyObject *_wrap_PseudoMetaFile_LoadFromMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
9592 | PyObject *resultobj; | |
9593 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9594 | wxString *arg2 = 0 ; | |
9595 | double *arg3 = (double *) 0 ; | |
9596 | double *arg4 = (double *) 0 ; | |
9597 | bool result; | |
9598 | bool temp2 = false ; | |
9599 | PyObject * obj0 = 0 ; | |
9600 | PyObject * obj1 = 0 ; | |
9601 | PyObject * obj2 = 0 ; | |
9602 | PyObject * obj3 = 0 ; | |
9603 | char *kwnames[] = { | |
9604 | (char *) "self",(char *) "filename",(char *) "width",(char *) "height", NULL | |
9605 | }; | |
9606 | ||
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_LoadFromMetaFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9610 | { | |
9611 | arg2 = wxString_in_helper(obj1); | |
9612 | if (arg2 == NULL) SWIG_fail; | |
9613 | temp2 = true; | |
9614 | } | |
9615 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_double, | |
9616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9617 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_double, | |
9618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9619 | { | |
9620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9621 | result = (bool)(arg1)->LoadFromMetaFile((wxString const &)*arg2,arg3,arg4); | |
9622 | ||
9623 | wxPyEndAllowThreads(__tstate); | |
9624 | if (PyErr_Occurred()) SWIG_fail; | |
9625 | } | |
9626 | { | |
9627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9628 | } | |
9629 | { | |
9630 | if (temp2) | |
9631 | delete arg2; | |
9632 | } | |
9633 | return resultobj; | |
9634 | fail: | |
9635 | { | |
9636 | if (temp2) | |
9637 | delete arg2; | |
9638 | } | |
9639 | return NULL; | |
9640 | } | |
9641 | ||
9642 | ||
9643 | static PyObject *_wrap_PseudoMetaFile_GetBounds(PyObject *, PyObject *args, PyObject *kwargs) { | |
9644 | PyObject *resultobj; | |
9645 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9646 | double *arg2 = (double *) 0 ; | |
9647 | double *arg3 = (double *) 0 ; | |
9648 | double *arg4 = (double *) 0 ; | |
9649 | double *arg5 = (double *) 0 ; | |
9650 | PyObject * obj0 = 0 ; | |
9651 | PyObject * obj1 = 0 ; | |
9652 | PyObject * obj2 = 0 ; | |
9653 | PyObject * obj3 = 0 ; | |
9654 | PyObject * obj4 = 0 ; | |
9655 | char *kwnames[] = { | |
9656 | (char *) "self",(char *) "minX",(char *) "minY",(char *) "maxX",(char *) "maxY", NULL | |
9657 | }; | |
9658 | ||
9659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoMetaFile_GetBounds",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9662 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_double, | |
9663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9664 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_double, | |
9665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9666 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_double, | |
9667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9668 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_double, | |
9669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9670 | { | |
9671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9672 | (arg1)->GetBounds(arg2,arg3,arg4,arg5); | |
9673 | ||
9674 | wxPyEndAllowThreads(__tstate); | |
9675 | if (PyErr_Occurred()) SWIG_fail; | |
9676 | } | |
9677 | Py_INCREF(Py_None); resultobj = Py_None; | |
9678 | return resultobj; | |
9679 | fail: | |
9680 | return NULL; | |
9681 | } | |
9682 | ||
9683 | ||
9684 | static PyObject *_wrap_PseudoMetaFile_CalculateSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
9685 | PyObject *resultobj; | |
9686 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9687 | wxPyDrawnShape *arg2 = (wxPyDrawnShape *) 0 ; | |
9688 | PyObject * obj0 = 0 ; | |
9689 | PyObject * obj1 = 0 ; | |
9690 | char *kwnames[] = { | |
9691 | (char *) "self",(char *) "shape", NULL | |
9692 | }; | |
9693 | ||
9694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_CalculateSize",kwnames,&obj0,&obj1)) goto fail; | |
9695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9697 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDrawnShape, | |
9698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9699 | { | |
9700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9701 | (arg1)->CalculateSize(arg2); | |
9702 | ||
9703 | wxPyEndAllowThreads(__tstate); | |
9704 | if (PyErr_Occurred()) SWIG_fail; | |
9705 | } | |
9706 | Py_INCREF(Py_None); resultobj = Py_None; | |
9707 | return resultobj; | |
9708 | fail: | |
9709 | return NULL; | |
9710 | } | |
9711 | ||
9712 | ||
9713 | static PyObject *_wrap_PseudoMetaFile_SetRotateable(PyObject *, PyObject *args, PyObject *kwargs) { | |
9714 | PyObject *resultobj; | |
9715 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9716 | bool arg2 ; | |
9717 | PyObject * obj0 = 0 ; | |
9718 | PyObject * obj1 = 0 ; | |
9719 | char *kwnames[] = { | |
9720 | (char *) "self",(char *) "rot", NULL | |
9721 | }; | |
9722 | ||
9723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetRotateable",kwnames,&obj0,&obj1)) goto fail; | |
9724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9726 | arg2 = (bool)SWIG_As_bool(obj1); | |
9727 | if (PyErr_Occurred()) SWIG_fail; | |
9728 | { | |
9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9730 | (arg1)->SetRotateable(arg2); | |
9731 | ||
9732 | wxPyEndAllowThreads(__tstate); | |
9733 | if (PyErr_Occurred()) SWIG_fail; | |
9734 | } | |
9735 | Py_INCREF(Py_None); resultobj = Py_None; | |
9736 | return resultobj; | |
9737 | fail: | |
9738 | return NULL; | |
9739 | } | |
9740 | ||
9741 | ||
9742 | static PyObject *_wrap_PseudoMetaFile_GetRotateable(PyObject *, PyObject *args, PyObject *kwargs) { | |
9743 | PyObject *resultobj; | |
9744 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9745 | bool result; | |
9746 | PyObject * obj0 = 0 ; | |
9747 | char *kwnames[] = { | |
9748 | (char *) "self", NULL | |
9749 | }; | |
9750 | ||
9751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetRotateable",kwnames,&obj0)) goto fail; | |
9752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9754 | { | |
9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9756 | result = (bool)(arg1)->GetRotateable(); | |
9757 | ||
9758 | wxPyEndAllowThreads(__tstate); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
9761 | { | |
9762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9763 | } | |
9764 | return resultobj; | |
9765 | fail: | |
9766 | return NULL; | |
9767 | } | |
9768 | ||
9769 | ||
9770 | static PyObject *_wrap_PseudoMetaFile_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
9771 | PyObject *resultobj; | |
9772 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9773 | double arg2 ; | |
9774 | double arg3 ; | |
9775 | PyObject * obj0 = 0 ; | |
9776 | PyObject * obj1 = 0 ; | |
9777 | PyObject * obj2 = 0 ; | |
9778 | char *kwnames[] = { | |
9779 | (char *) "self",(char *) "w",(char *) "h", NULL | |
9780 | }; | |
9781 | ||
9782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9785 | arg2 = (double)SWIG_As_double(obj1); | |
9786 | if (PyErr_Occurred()) SWIG_fail; | |
9787 | arg3 = (double)SWIG_As_double(obj2); | |
9788 | if (PyErr_Occurred()) SWIG_fail; | |
9789 | { | |
9790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9791 | (arg1)->SetSize(arg2,arg3); | |
9792 | ||
9793 | wxPyEndAllowThreads(__tstate); | |
9794 | if (PyErr_Occurred()) SWIG_fail; | |
9795 | } | |
9796 | Py_INCREF(Py_None); resultobj = Py_None; | |
9797 | return resultobj; | |
9798 | fail: | |
9799 | return NULL; | |
9800 | } | |
9801 | ||
9802 | ||
9803 | static PyObject *_wrap_PseudoMetaFile_SetFillBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
9804 | PyObject *resultobj; | |
9805 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9806 | wxBrush *arg2 = (wxBrush *) 0 ; | |
9807 | PyObject * obj0 = 0 ; | |
9808 | PyObject * obj1 = 0 ; | |
9809 | char *kwnames[] = { | |
9810 | (char *) "self",(char *) "brush", NULL | |
9811 | }; | |
9812 | ||
9813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetFillBrush",kwnames,&obj0,&obj1)) goto fail; | |
9814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9816 | { | |
9817 | wxBrush* temp; | |
9818 | if (obj1) { | |
9819 | if (obj1 == Py_None) { | |
9820 | temp = NULL; | |
9821 | } | |
9822 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
9823 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
9824 | return NULL; | |
9825 | } | |
9826 | } | |
9827 | if (temp) | |
9828 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
9829 | else | |
9830 | arg2 = NULL; | |
9831 | } | |
9832 | { | |
9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9834 | (arg1)->SetFillBrush(arg2); | |
9835 | ||
9836 | wxPyEndAllowThreads(__tstate); | |
9837 | if (PyErr_Occurred()) SWIG_fail; | |
9838 | } | |
9839 | Py_INCREF(Py_None); resultobj = Py_None; | |
9840 | return resultobj; | |
9841 | fail: | |
9842 | return NULL; | |
9843 | } | |
9844 | ||
9845 | ||
9846 | static PyObject *_wrap_PseudoMetaFile_GetFillBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
9847 | PyObject *resultobj; | |
9848 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9849 | wxBrush *result; | |
9850 | PyObject * obj0 = 0 ; | |
9851 | char *kwnames[] = { | |
9852 | (char *) "self", NULL | |
9853 | }; | |
9854 | ||
9855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetFillBrush",kwnames,&obj0)) goto fail; | |
9856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9858 | { | |
9859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9860 | result = (wxBrush *)(arg1)->GetFillBrush(); | |
9861 | ||
9862 | wxPyEndAllowThreads(__tstate); | |
9863 | if (PyErr_Occurred()) SWIG_fail; | |
9864 | } | |
9865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
9866 | return resultobj; | |
9867 | fail: | |
9868 | return NULL; | |
9869 | } | |
9870 | ||
9871 | ||
9872 | static PyObject *_wrap_PseudoMetaFile_SetOutlinePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
9873 | PyObject *resultobj; | |
9874 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9875 | wxPen *arg2 = (wxPen *) 0 ; | |
9876 | PyObject * obj0 = 0 ; | |
9877 | PyObject * obj1 = 0 ; | |
9878 | char *kwnames[] = { | |
9879 | (char *) "self",(char *) "pen", NULL | |
9880 | }; | |
9881 | ||
9882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetOutlinePen",kwnames,&obj0,&obj1)) goto fail; | |
9883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9885 | { | |
9886 | wxPen* temp; | |
9887 | if (obj1) { | |
9888 | if (obj1 == Py_None) { | |
9889 | temp = NULL; | |
9890 | } | |
9891 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
9892 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
9893 | return NULL; | |
9894 | } | |
9895 | } | |
9896 | if (temp) | |
9897 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
9898 | temp->GetWidth(), | |
9899 | temp->GetStyle()); | |
9900 | else | |
9901 | arg2 = NULL; | |
9902 | } | |
9903 | { | |
9904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9905 | (arg1)->SetOutlinePen(arg2); | |
9906 | ||
9907 | wxPyEndAllowThreads(__tstate); | |
9908 | if (PyErr_Occurred()) SWIG_fail; | |
9909 | } | |
9910 | Py_INCREF(Py_None); resultobj = Py_None; | |
9911 | return resultobj; | |
9912 | fail: | |
9913 | return NULL; | |
9914 | } | |
9915 | ||
9916 | ||
9917 | static PyObject *_wrap_PseudoMetaFile_GetOutlinePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
9918 | PyObject *resultobj; | |
9919 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9920 | wxPen *result; | |
9921 | PyObject * obj0 = 0 ; | |
9922 | char *kwnames[] = { | |
9923 | (char *) "self", NULL | |
9924 | }; | |
9925 | ||
9926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetOutlinePen",kwnames,&obj0)) goto fail; | |
9927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9929 | { | |
9930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9931 | result = (wxPen *)(arg1)->GetOutlinePen(); | |
9932 | ||
9933 | wxPyEndAllowThreads(__tstate); | |
9934 | if (PyErr_Occurred()) SWIG_fail; | |
9935 | } | |
9936 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
9937 | return resultobj; | |
9938 | fail: | |
9939 | return NULL; | |
9940 | } | |
9941 | ||
9942 | ||
9943 | static PyObject *_wrap_PseudoMetaFile_SetOutlineOp(PyObject *, PyObject *args, PyObject *kwargs) { | |
9944 | PyObject *resultobj; | |
9945 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9946 | int arg2 ; | |
9947 | PyObject * obj0 = 0 ; | |
9948 | PyObject * obj1 = 0 ; | |
9949 | char *kwnames[] = { | |
9950 | (char *) "self",(char *) "op", NULL | |
9951 | }; | |
9952 | ||
9953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetOutlineOp",kwnames,&obj0,&obj1)) goto fail; | |
9954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9956 | arg2 = (int)SWIG_As_int(obj1); | |
9957 | if (PyErr_Occurred()) SWIG_fail; | |
9958 | { | |
9959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9960 | (arg1)->SetOutlineOp(arg2); | |
9961 | ||
9962 | wxPyEndAllowThreads(__tstate); | |
9963 | if (PyErr_Occurred()) SWIG_fail; | |
9964 | } | |
9965 | Py_INCREF(Py_None); resultobj = Py_None; | |
9966 | return resultobj; | |
9967 | fail: | |
9968 | return NULL; | |
9969 | } | |
9970 | ||
9971 | ||
9972 | static PyObject *_wrap_PseudoMetaFile_GetOutlineOp(PyObject *, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject *resultobj; | |
9974 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9975 | int result; | |
9976 | PyObject * obj0 = 0 ; | |
9977 | char *kwnames[] = { | |
9978 | (char *) "self", NULL | |
9979 | }; | |
9980 | ||
9981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetOutlineOp",kwnames,&obj0)) goto fail; | |
9982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
9983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9984 | { | |
9985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9986 | result = (int)(arg1)->GetOutlineOp(); | |
9987 | ||
9988 | wxPyEndAllowThreads(__tstate); | |
9989 | if (PyErr_Occurred()) SWIG_fail; | |
9990 | } | |
9991 | resultobj = SWIG_From_int((int)result); | |
9992 | return resultobj; | |
9993 | fail: | |
9994 | return NULL; | |
9995 | } | |
9996 | ||
9997 | ||
9998 | static PyObject *_wrap_PseudoMetaFile_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { | |
9999 | PyObject *resultobj; | |
10000 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10001 | bool result; | |
10002 | PyObject * obj0 = 0 ; | |
10003 | char *kwnames[] = { | |
10004 | (char *) "self", NULL | |
10005 | }; | |
10006 | ||
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_IsValid",kwnames,&obj0)) goto fail; | |
10008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10010 | { | |
10011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10012 | result = (bool)(arg1)->IsValid(); | |
10013 | ||
10014 | wxPyEndAllowThreads(__tstate); | |
10015 | if (PyErr_Occurred()) SWIG_fail; | |
10016 | } | |
10017 | { | |
10018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10019 | } | |
10020 | return resultobj; | |
10021 | fail: | |
10022 | return NULL; | |
10023 | } | |
10024 | ||
10025 | ||
10026 | static PyObject *_wrap_PseudoMetaFile_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
10027 | PyObject *resultobj; | |
10028 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10029 | wxPoint *arg2 = 0 ; | |
10030 | wxPoint *arg3 = 0 ; | |
10031 | wxPoint temp2 ; | |
10032 | wxPoint temp3 ; | |
10033 | PyObject * obj0 = 0 ; | |
10034 | PyObject * obj1 = 0 ; | |
10035 | PyObject * obj2 = 0 ; | |
10036 | char *kwnames[] = { | |
10037 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10038 | }; | |
10039 | ||
10040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10043 | { | |
10044 | arg2 = &temp2; | |
10045 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10046 | } | |
10047 | { | |
10048 | arg3 = &temp3; | |
10049 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10050 | } | |
10051 | { | |
10052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10053 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10054 | ||
10055 | wxPyEndAllowThreads(__tstate); | |
10056 | if (PyErr_Occurred()) SWIG_fail; | |
10057 | } | |
10058 | Py_INCREF(Py_None); resultobj = Py_None; | |
10059 | return resultobj; | |
10060 | fail: | |
10061 | return NULL; | |
10062 | } | |
10063 | ||
10064 | ||
10065 | static PyObject *_wrap_PseudoMetaFile_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { | |
10066 | PyObject *resultobj; | |
10067 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10068 | wxRect *arg2 = 0 ; | |
10069 | wxRect temp2 ; | |
10070 | PyObject * obj0 = 0 ; | |
10071 | PyObject * obj1 = 0 ; | |
10072 | char *kwnames[] = { | |
10073 | (char *) "self",(char *) "rect", NULL | |
10074 | }; | |
10075 | ||
10076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawRectangle",kwnames,&obj0,&obj1)) goto fail; | |
10077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10079 | { | |
10080 | arg2 = &temp2; | |
10081 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10082 | } | |
10083 | { | |
10084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10085 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10086 | ||
10087 | wxPyEndAllowThreads(__tstate); | |
10088 | if (PyErr_Occurred()) SWIG_fail; | |
10089 | } | |
10090 | Py_INCREF(Py_None); resultobj = Py_None; | |
10091 | return resultobj; | |
10092 | fail: | |
10093 | return NULL; | |
10094 | } | |
10095 | ||
10096 | ||
10097 | static PyObject *_wrap_PseudoMetaFile_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { | |
10098 | PyObject *resultobj; | |
10099 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10100 | wxRect *arg2 = 0 ; | |
10101 | double arg3 ; | |
10102 | wxRect temp2 ; | |
10103 | PyObject * obj0 = 0 ; | |
10104 | PyObject * obj1 = 0 ; | |
10105 | PyObject * obj2 = 0 ; | |
10106 | char *kwnames[] = { | |
10107 | (char *) "self",(char *) "rect",(char *) "radius", NULL | |
10108 | }; | |
10109 | ||
10110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10113 | { | |
10114 | arg2 = &temp2; | |
10115 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10116 | } | |
10117 | arg3 = (double)SWIG_As_double(obj2); | |
10118 | if (PyErr_Occurred()) SWIG_fail; | |
10119 | { | |
10120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10121 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10122 | ||
10123 | wxPyEndAllowThreads(__tstate); | |
10124 | if (PyErr_Occurred()) SWIG_fail; | |
10125 | } | |
10126 | Py_INCREF(Py_None); resultobj = Py_None; | |
10127 | return resultobj; | |
10128 | fail: | |
10129 | return NULL; | |
10130 | } | |
10131 | ||
10132 | ||
10133 | static PyObject *_wrap_PseudoMetaFile_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { | |
10134 | PyObject *resultobj; | |
10135 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10136 | wxPoint *arg2 = 0 ; | |
10137 | wxPoint *arg3 = 0 ; | |
10138 | wxPoint *arg4 = 0 ; | |
10139 | wxPoint temp2 ; | |
10140 | wxPoint temp3 ; | |
10141 | wxPoint temp4 ; | |
10142 | PyObject * obj0 = 0 ; | |
10143 | PyObject * obj1 = 0 ; | |
10144 | PyObject * obj2 = 0 ; | |
10145 | PyObject * obj3 = 0 ; | |
10146 | char *kwnames[] = { | |
10147 | (char *) "self",(char *) "centrePt",(char *) "startPt",(char *) "endPt", NULL | |
10148 | }; | |
10149 | ||
10150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10153 | { | |
10154 | arg2 = &temp2; | |
10155 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10156 | } | |
10157 | { | |
10158 | arg3 = &temp3; | |
10159 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10160 | } | |
10161 | { | |
10162 | arg4 = &temp4; | |
10163 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10164 | } | |
10165 | { | |
10166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10167 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10168 | ||
10169 | wxPyEndAllowThreads(__tstate); | |
10170 | if (PyErr_Occurred()) SWIG_fail; | |
10171 | } | |
10172 | Py_INCREF(Py_None); resultobj = Py_None; | |
10173 | return resultobj; | |
10174 | fail: | |
10175 | return NULL; | |
10176 | } | |
10177 | ||
10178 | ||
10179 | static PyObject *_wrap_PseudoMetaFile_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { | |
10180 | PyObject *resultobj; | |
10181 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10182 | wxRect *arg2 = 0 ; | |
10183 | double arg3 ; | |
10184 | double arg4 ; | |
10185 | wxRect temp2 ; | |
10186 | PyObject * obj0 = 0 ; | |
10187 | PyObject * obj1 = 0 ; | |
10188 | PyObject * obj2 = 0 ; | |
10189 | PyObject * obj3 = 0 ; | |
10190 | char *kwnames[] = { | |
10191 | (char *) "self",(char *) "rect",(char *) "startAngle",(char *) "endAngle", NULL | |
10192 | }; | |
10193 | ||
10194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10197 | { | |
10198 | arg2 = &temp2; | |
10199 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10200 | } | |
10201 | arg3 = (double)SWIG_As_double(obj2); | |
10202 | if (PyErr_Occurred()) SWIG_fail; | |
10203 | arg4 = (double)SWIG_As_double(obj3); | |
10204 | if (PyErr_Occurred()) SWIG_fail; | |
10205 | { | |
10206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10207 | (arg1)->DrawEllipticArc((wxRect const &)*arg2,arg3,arg4); | |
10208 | ||
10209 | wxPyEndAllowThreads(__tstate); | |
10210 | if (PyErr_Occurred()) SWIG_fail; | |
10211 | } | |
10212 | Py_INCREF(Py_None); resultobj = Py_None; | |
10213 | return resultobj; | |
10214 | fail: | |
10215 | return NULL; | |
10216 | } | |
10217 | ||
10218 | ||
10219 | static PyObject *_wrap_PseudoMetaFile_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { | |
10220 | PyObject *resultobj; | |
10221 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10222 | wxRect *arg2 = 0 ; | |
10223 | wxRect temp2 ; | |
10224 | PyObject * obj0 = 0 ; | |
10225 | PyObject * obj1 = 0 ; | |
10226 | char *kwnames[] = { | |
10227 | (char *) "self",(char *) "rect", NULL | |
10228 | }; | |
10229 | ||
10230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawEllipse",kwnames,&obj0,&obj1)) goto fail; | |
10231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10233 | { | |
10234 | arg2 = &temp2; | |
10235 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10236 | } | |
10237 | { | |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
10240 | ||
10241 | wxPyEndAllowThreads(__tstate); | |
10242 | if (PyErr_Occurred()) SWIG_fail; | |
10243 | } | |
10244 | Py_INCREF(Py_None); resultobj = Py_None; | |
10245 | return resultobj; | |
10246 | fail: | |
10247 | return NULL; | |
10248 | } | |
10249 | ||
10250 | ||
10251 | static PyObject *_wrap_PseudoMetaFile_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
10252 | PyObject *resultobj; | |
10253 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10254 | wxPoint *arg2 = 0 ; | |
10255 | wxPoint temp2 ; | |
10256 | PyObject * obj0 = 0 ; | |
10257 | PyObject * obj1 = 0 ; | |
10258 | char *kwnames[] = { | |
10259 | (char *) "self",(char *) "pt", NULL | |
10260 | }; | |
10261 | ||
10262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10265 | { | |
10266 | arg2 = &temp2; | |
10267 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10268 | } | |
10269 | { | |
10270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10271 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10272 | ||
10273 | wxPyEndAllowThreads(__tstate); | |
10274 | if (PyErr_Occurred()) SWIG_fail; | |
10275 | } | |
10276 | Py_INCREF(Py_None); resultobj = Py_None; | |
10277 | return resultobj; | |
10278 | fail: | |
10279 | return NULL; | |
10280 | } | |
10281 | ||
10282 | ||
10283 | static PyObject *_wrap_PseudoMetaFile_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { | |
10284 | PyObject *resultobj; | |
10285 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10286 | wxString *arg2 = 0 ; | |
10287 | wxPoint *arg3 = 0 ; | |
10288 | bool temp2 = false ; | |
10289 | wxPoint temp3 ; | |
10290 | PyObject * obj0 = 0 ; | |
10291 | PyObject * obj1 = 0 ; | |
10292 | PyObject * obj2 = 0 ; | |
10293 | char *kwnames[] = { | |
10294 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
10295 | }; | |
10296 | ||
10297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10300 | { | |
10301 | arg2 = wxString_in_helper(obj1); | |
10302 | if (arg2 == NULL) SWIG_fail; | |
10303 | temp2 = true; | |
10304 | } | |
10305 | { | |
10306 | arg3 = &temp3; | |
10307 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10308 | } | |
10309 | { | |
10310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10311 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
10312 | ||
10313 | wxPyEndAllowThreads(__tstate); | |
10314 | if (PyErr_Occurred()) SWIG_fail; | |
10315 | } | |
10316 | Py_INCREF(Py_None); resultobj = Py_None; | |
10317 | { | |
10318 | if (temp2) | |
10319 | delete arg2; | |
10320 | } | |
10321 | return resultobj; | |
10322 | fail: | |
10323 | { | |
10324 | if (temp2) | |
10325 | delete arg2; | |
10326 | } | |
10327 | return NULL; | |
10328 | } | |
10329 | ||
10330 | ||
10331 | static PyObject *_wrap_PseudoMetaFile_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { | |
10332 | PyObject *resultobj; | |
10333 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10334 | int arg2 ; | |
10335 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10336 | PyObject * obj0 = 0 ; | |
10337 | PyObject * obj1 = 0 ; | |
10338 | char *kwnames[] = { | |
10339 | (char *) "self",(char *) "points", NULL | |
10340 | }; | |
10341 | ||
10342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawLines",kwnames,&obj0,&obj1)) goto fail; | |
10343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10345 | { | |
10346 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10347 | if (arg3 == NULL) SWIG_fail; | |
10348 | } | |
10349 | { | |
10350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10351 | (arg1)->DrawLines(arg2,arg3); | |
10352 | ||
10353 | wxPyEndAllowThreads(__tstate); | |
10354 | if (PyErr_Occurred()) SWIG_fail; | |
10355 | } | |
10356 | Py_INCREF(Py_None); resultobj = Py_None; | |
10357 | { | |
10358 | if (arg3) delete [] arg3; | |
10359 | } | |
10360 | return resultobj; | |
10361 | fail: | |
10362 | { | |
10363 | if (arg3) delete [] arg3; | |
10364 | } | |
10365 | return NULL; | |
10366 | } | |
10367 | ||
10368 | ||
10369 | static PyObject *_wrap_PseudoMetaFile_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { | |
10370 | PyObject *resultobj; | |
10371 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10372 | int arg2 ; | |
10373 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10374 | int arg4 = (int) 0 ; | |
10375 | PyObject * obj0 = 0 ; | |
10376 | PyObject * obj1 = 0 ; | |
10377 | PyObject * obj2 = 0 ; | |
10378 | char *kwnames[] = { | |
10379 | (char *) "self",(char *) "points",(char *) "flags", NULL | |
10380 | }; | |
10381 | ||
10382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoMetaFile_DrawPolygon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10385 | { | |
10386 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10387 | if (arg3 == NULL) SWIG_fail; | |
10388 | } | |
10389 | if (obj2) { | |
10390 | arg4 = (int)SWIG_As_int(obj2); | |
10391 | if (PyErr_Occurred()) SWIG_fail; | |
10392 | } | |
10393 | { | |
10394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10395 | (arg1)->DrawPolygon(arg2,arg3,arg4); | |
10396 | ||
10397 | wxPyEndAllowThreads(__tstate); | |
10398 | if (PyErr_Occurred()) SWIG_fail; | |
10399 | } | |
10400 | Py_INCREF(Py_None); resultobj = Py_None; | |
10401 | { | |
10402 | if (arg3) delete [] arg3; | |
10403 | } | |
10404 | return resultobj; | |
10405 | fail: | |
10406 | { | |
10407 | if (arg3) delete [] arg3; | |
10408 | } | |
10409 | return NULL; | |
10410 | } | |
10411 | ||
10412 | ||
10413 | static PyObject *_wrap_PseudoMetaFile_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { | |
10414 | PyObject *resultobj; | |
10415 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10416 | int arg2 ; | |
10417 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10418 | PyObject * obj0 = 0 ; | |
10419 | PyObject * obj1 = 0 ; | |
10420 | char *kwnames[] = { | |
10421 | (char *) "self",(char *) "points", NULL | |
10422 | }; | |
10423 | ||
10424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
10425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10427 | { | |
10428 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10429 | if (arg3 == NULL) SWIG_fail; | |
10430 | } | |
10431 | { | |
10432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10433 | (arg1)->DrawSpline(arg2,arg3); | |
10434 | ||
10435 | wxPyEndAllowThreads(__tstate); | |
10436 | if (PyErr_Occurred()) SWIG_fail; | |
10437 | } | |
10438 | Py_INCREF(Py_None); resultobj = Py_None; | |
10439 | { | |
10440 | if (arg3) delete [] arg3; | |
10441 | } | |
10442 | return resultobj; | |
10443 | fail: | |
10444 | { | |
10445 | if (arg3) delete [] arg3; | |
10446 | } | |
10447 | return NULL; | |
10448 | } | |
10449 | ||
10450 | ||
10451 | static PyObject *_wrap_PseudoMetaFile_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
10452 | PyObject *resultobj; | |
10453 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10454 | wxRect *arg2 = 0 ; | |
10455 | wxRect temp2 ; | |
10456 | PyObject * obj0 = 0 ; | |
10457 | PyObject * obj1 = 0 ; | |
10458 | char *kwnames[] = { | |
10459 | (char *) "self",(char *) "rect", NULL | |
10460 | }; | |
10461 | ||
10462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
10463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10465 | { | |
10466 | arg2 = &temp2; | |
10467 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10468 | } | |
10469 | { | |
10470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10471 | (arg1)->SetClippingRect((wxRect const &)*arg2); | |
10472 | ||
10473 | wxPyEndAllowThreads(__tstate); | |
10474 | if (PyErr_Occurred()) SWIG_fail; | |
10475 | } | |
10476 | Py_INCREF(Py_None); resultobj = Py_None; | |
10477 | return resultobj; | |
10478 | fail: | |
10479 | return NULL; | |
10480 | } | |
10481 | ||
10482 | ||
10483 | static PyObject *_wrap_PseudoMetaFile_DestroyClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
10484 | PyObject *resultobj; | |
10485 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10486 | PyObject * obj0 = 0 ; | |
10487 | char *kwnames[] = { | |
10488 | (char *) "self", NULL | |
10489 | }; | |
10490 | ||
10491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_DestroyClippingRect",kwnames,&obj0)) goto fail; | |
10492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10494 | { | |
10495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10496 | (arg1)->DestroyClippingRect(); | |
10497 | ||
10498 | wxPyEndAllowThreads(__tstate); | |
10499 | if (PyErr_Occurred()) SWIG_fail; | |
10500 | } | |
10501 | Py_INCREF(Py_None); resultobj = Py_None; | |
10502 | return resultobj; | |
10503 | fail: | |
10504 | return NULL; | |
10505 | } | |
10506 | ||
10507 | ||
10508 | static PyObject *_wrap_PseudoMetaFile_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
10509 | PyObject *resultobj; | |
10510 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10511 | wxPen *arg2 = (wxPen *) 0 ; | |
10512 | bool arg3 = (bool) FALSE ; | |
10513 | PyObject * obj0 = 0 ; | |
10514 | PyObject * obj1 = 0 ; | |
10515 | PyObject * obj2 = 0 ; | |
10516 | char *kwnames[] = { | |
10517 | (char *) "self",(char *) "pen",(char *) "isOutline", NULL | |
10518 | }; | |
10519 | ||
10520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoMetaFile_SetPen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10523 | { | |
10524 | wxPen* temp; | |
10525 | if (obj1) { | |
10526 | if (obj1 == Py_None) { | |
10527 | temp = NULL; | |
10528 | } | |
10529 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
10530 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
10531 | return NULL; | |
10532 | } | |
10533 | } | |
10534 | if (temp) | |
10535 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
10536 | temp->GetWidth(), | |
10537 | temp->GetStyle()); | |
10538 | else | |
10539 | arg2 = NULL; | |
10540 | } | |
10541 | if (obj2) { | |
10542 | arg3 = (bool)SWIG_As_bool(obj2); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | { | |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | (arg1)->SetPen(arg2,arg3); | |
10548 | ||
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | Py_INCREF(Py_None); resultobj = Py_None; | |
10553 | return resultobj; | |
10554 | fail: | |
10555 | return NULL; | |
10556 | } | |
10557 | ||
10558 | ||
10559 | static PyObject *_wrap_PseudoMetaFile_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
10560 | PyObject *resultobj; | |
10561 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10562 | wxBrush *arg2 = (wxBrush *) 0 ; | |
10563 | bool arg3 = (bool) FALSE ; | |
10564 | PyObject * obj0 = 0 ; | |
10565 | PyObject * obj1 = 0 ; | |
10566 | PyObject * obj2 = 0 ; | |
10567 | char *kwnames[] = { | |
10568 | (char *) "self",(char *) "brush",(char *) "isFill", NULL | |
10569 | }; | |
10570 | ||
10571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoMetaFile_SetBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10574 | { | |
10575 | wxBrush* temp; | |
10576 | if (obj1) { | |
10577 | if (obj1 == Py_None) { | |
10578 | temp = NULL; | |
10579 | } | |
10580 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
10581 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
10582 | return NULL; | |
10583 | } | |
10584 | } | |
10585 | if (temp) | |
10586 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
10587 | else | |
10588 | arg2 = NULL; | |
10589 | } | |
10590 | if (obj2) { | |
10591 | arg3 = (bool)SWIG_As_bool(obj2); | |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
10593 | } | |
10594 | { | |
10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10596 | (arg1)->SetBrush(arg2,arg3); | |
10597 | ||
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) SWIG_fail; | |
10600 | } | |
10601 | Py_INCREF(Py_None); resultobj = Py_None; | |
10602 | return resultobj; | |
10603 | fail: | |
10604 | return NULL; | |
10605 | } | |
10606 | ||
10607 | ||
10608 | static PyObject *_wrap_PseudoMetaFile_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
10609 | PyObject *resultobj; | |
10610 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10611 | wxFont *arg2 = (wxFont *) 0 ; | |
10612 | PyObject * obj0 = 0 ; | |
10613 | PyObject * obj1 = 0 ; | |
10614 | char *kwnames[] = { | |
10615 | (char *) "self",(char *) "font", NULL | |
10616 | }; | |
10617 | ||
10618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
10619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10621 | { | |
10622 | wxFont* temp; | |
10623 | if (obj1) { | |
10624 | if (obj1 == Py_None) { | |
10625 | temp = NULL; | |
10626 | } | |
10627 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
10628 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
10629 | return NULL; | |
10630 | } | |
10631 | } | |
10632 | if (temp) | |
10633 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
10634 | temp->GetFamily(), | |
10635 | temp->GetStyle(), | |
10636 | temp->GetWeight(), | |
10637 | temp->GetUnderlined(), | |
10638 | temp->GetFaceName(), | |
10639 | temp->GetEncoding()); | |
10640 | else | |
10641 | arg2 = NULL; | |
10642 | } | |
10643 | { | |
10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10645 | (arg1)->SetFont(arg2); | |
10646 | ||
10647 | wxPyEndAllowThreads(__tstate); | |
10648 | if (PyErr_Occurred()) SWIG_fail; | |
10649 | } | |
10650 | Py_INCREF(Py_None); resultobj = Py_None; | |
10651 | return resultobj; | |
10652 | fail: | |
10653 | return NULL; | |
10654 | } | |
10655 | ||
10656 | ||
10657 | static PyObject *_wrap_PseudoMetaFile_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
10658 | PyObject *resultobj; | |
10659 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10660 | wxColour *arg2 = 0 ; | |
10661 | wxColour temp2 ; | |
10662 | PyObject * obj0 = 0 ; | |
10663 | PyObject * obj1 = 0 ; | |
10664 | char *kwnames[] = { | |
10665 | (char *) "self",(char *) "colour", NULL | |
10666 | }; | |
10667 | ||
10668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
10669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10671 | { | |
10672 | arg2 = &temp2; | |
10673 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10674 | } | |
10675 | { | |
10676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10677 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
10678 | ||
10679 | wxPyEndAllowThreads(__tstate); | |
10680 | if (PyErr_Occurred()) SWIG_fail; | |
10681 | } | |
10682 | Py_INCREF(Py_None); resultobj = Py_None; | |
10683 | return resultobj; | |
10684 | fail: | |
10685 | return NULL; | |
10686 | } | |
10687 | ||
10688 | ||
10689 | static PyObject *_wrap_PseudoMetaFile_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
10690 | PyObject *resultobj; | |
10691 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10692 | wxColour *arg2 = 0 ; | |
10693 | wxColour temp2 ; | |
10694 | PyObject * obj0 = 0 ; | |
10695 | PyObject * obj1 = 0 ; | |
10696 | char *kwnames[] = { | |
10697 | (char *) "self",(char *) "colour", NULL | |
10698 | }; | |
10699 | ||
10700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
10701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10703 | { | |
10704 | arg2 = &temp2; | |
10705 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10706 | } | |
10707 | { | |
10708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10709 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
10710 | ||
10711 | wxPyEndAllowThreads(__tstate); | |
10712 | if (PyErr_Occurred()) SWIG_fail; | |
10713 | } | |
10714 | Py_INCREF(Py_None); resultobj = Py_None; | |
10715 | return resultobj; | |
10716 | fail: | |
10717 | return NULL; | |
10718 | } | |
10719 | ||
10720 | ||
10721 | static PyObject *_wrap_PseudoMetaFile_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
10722 | PyObject *resultobj; | |
10723 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10724 | int arg2 ; | |
10725 | PyObject * obj0 = 0 ; | |
10726 | PyObject * obj1 = 0 ; | |
10727 | char *kwnames[] = { | |
10728 | (char *) "self",(char *) "mode", NULL | |
10729 | }; | |
10730 | ||
10731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; | |
10732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, | |
10733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10734 | arg2 = (int)SWIG_As_int(obj1); | |
10735 | if (PyErr_Occurred()) SWIG_fail; | |
10736 | { | |
10737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10738 | (arg1)->SetBackgroundMode(arg2); | |
10739 | ||
10740 | wxPyEndAllowThreads(__tstate); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | } | |
10743 | Py_INCREF(Py_None); resultobj = Py_None; | |
10744 | return resultobj; | |
10745 | fail: | |
10746 | return NULL; | |
10747 | } | |
10748 | ||
10749 | ||
10750 | static PyObject * PseudoMetaFile_swigregister(PyObject *, PyObject *args) { | |
10751 | PyObject *obj; | |
10752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10753 | SWIG_TypeClientData(SWIGTYPE_p_wxPseudoMetaFile, obj); | |
10754 | Py_INCREF(obj); | |
10755 | return Py_BuildValue((char *)""); | |
10756 | } | |
10757 | static PyObject *_wrap_new_PyRectangleShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
10758 | PyObject *resultobj; | |
10759 | double arg1 = (double) 0.0 ; | |
10760 | double arg2 = (double) 0.0 ; | |
10761 | wxPyRectangleShape *result; | |
10762 | PyObject * obj0 = 0 ; | |
10763 | PyObject * obj1 = 0 ; | |
10764 | char *kwnames[] = { | |
10765 | (char *) "width",(char *) "height", NULL | |
10766 | }; | |
10767 | ||
10768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyRectangleShape",kwnames,&obj0,&obj1)) goto fail; | |
10769 | if (obj0) { | |
10770 | arg1 = (double)SWIG_As_double(obj0); | |
10771 | if (PyErr_Occurred()) SWIG_fail; | |
10772 | } | |
10773 | if (obj1) { | |
10774 | arg2 = (double)SWIG_As_double(obj1); | |
10775 | if (PyErr_Occurred()) SWIG_fail; | |
10776 | } | |
10777 | { | |
10778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10779 | result = (wxPyRectangleShape *)new wxPyRectangleShape(arg1,arg2); | |
10780 | ||
10781 | wxPyEndAllowThreads(__tstate); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
10783 | } | |
10784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyRectangleShape, 1); | |
10785 | return resultobj; | |
10786 | fail: | |
10787 | return NULL; | |
10788 | } | |
10789 | ||
10790 | ||
10791 | static PyObject *_wrap_PyRectangleShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
10792 | PyObject *resultobj; | |
10793 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10794 | PyObject *arg2 = (PyObject *) 0 ; | |
10795 | PyObject *arg3 = (PyObject *) 0 ; | |
10796 | PyObject * obj0 = 0 ; | |
10797 | PyObject * obj1 = 0 ; | |
10798 | PyObject * obj2 = 0 ; | |
10799 | char *kwnames[] = { | |
10800 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10801 | }; | |
10802 | ||
10803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyRectangleShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
10805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10806 | arg2 = obj1; | |
10807 | arg3 = obj2; | |
10808 | { | |
10809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10810 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10811 | ||
10812 | wxPyEndAllowThreads(__tstate); | |
10813 | if (PyErr_Occurred()) SWIG_fail; | |
10814 | } | |
10815 | Py_INCREF(Py_None); resultobj = Py_None; | |
10816 | return resultobj; | |
10817 | fail: | |
10818 | return NULL; | |
10819 | } | |
10820 | ||
10821 | ||
10822 | static PyObject *_wrap_PyRectangleShape_SetCornerRadius(PyObject *, PyObject *args, PyObject *kwargs) { | |
10823 | PyObject *resultobj; | |
10824 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10825 | double arg2 ; | |
10826 | PyObject * obj0 = 0 ; | |
10827 | PyObject * obj1 = 0 ; | |
10828 | char *kwnames[] = { | |
10829 | (char *) "self",(char *) "radius", NULL | |
10830 | }; | |
10831 | ||
10832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_SetCornerRadius",kwnames,&obj0,&obj1)) goto fail; | |
10833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
10834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10835 | arg2 = (double)SWIG_As_double(obj1); | |
10836 | if (PyErr_Occurred()) SWIG_fail; | |
10837 | { | |
10838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10839 | (arg1)->SetCornerRadius(arg2); | |
10840 | ||
10841 | wxPyEndAllowThreads(__tstate); | |
10842 | if (PyErr_Occurred()) SWIG_fail; | |
10843 | } | |
10844 | Py_INCREF(Py_None); resultobj = Py_None; | |
10845 | return resultobj; | |
10846 | fail: | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
10851 | static PyObject *_wrap_PyRectangleShape_GetCornerRadius(PyObject *, PyObject *args, PyObject *kwargs) { | |
10852 | PyObject *resultobj; | |
10853 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10854 | double result; | |
10855 | PyObject * obj0 = 0 ; | |
10856 | char *kwnames[] = { | |
10857 | (char *) "self", NULL | |
10858 | }; | |
10859 | ||
10860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyRectangleShape_GetCornerRadius",kwnames,&obj0)) goto fail; | |
10861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
10862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10863 | { | |
10864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10865 | result = (double)(arg1)->GetCornerRadius(); | |
10866 | ||
10867 | wxPyEndAllowThreads(__tstate); | |
10868 | if (PyErr_Occurred()) SWIG_fail; | |
10869 | } | |
10870 | resultobj = SWIG_From_double((double)result); | |
10871 | return resultobj; | |
10872 | fail: | |
10873 | return NULL; | |
10874 | } | |
10875 | ||
10876 | ||
10877 | static PyObject *_wrap_PyRectangleShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
10878 | PyObject *resultobj; | |
10879 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10880 | PyObject * obj0 = 0 ; | |
10881 | char *kwnames[] = { | |
10882 | (char *) "self", NULL | |
10883 | }; | |
10884 | ||
10885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyRectangleShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
10886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
10887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10888 | { | |
10889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10890 | (arg1)->base_OnDelete(); | |
10891 | ||
10892 | wxPyEndAllowThreads(__tstate); | |
10893 | if (PyErr_Occurred()) SWIG_fail; | |
10894 | } | |
10895 | Py_INCREF(Py_None); resultobj = Py_None; | |
10896 | return resultobj; | |
10897 | fail: | |
10898 | return NULL; | |
10899 | } | |
10900 | ||
10901 | ||
10902 | static PyObject *_wrap_PyRectangleShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
10903 | PyObject *resultobj; | |
10904 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10905 | wxDC *arg2 = 0 ; | |
10906 | PyObject * obj0 = 0 ; | |
10907 | PyObject * obj1 = 0 ; | |
10908 | char *kwnames[] = { | |
10909 | (char *) "self",(char *) "dc", NULL | |
10910 | }; | |
10911 | ||
10912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
10913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
10914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10915 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
10916 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10917 | SWIG_fail; | |
10918 | if (arg2 == NULL) { | |
10919 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10920 | SWIG_fail; | |
10921 | } | |
10922 | { | |
10923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10924 | (arg1)->base_OnDraw(*arg2); | |
10925 | ||
10926 | wxPyEndAllowThreads(__tstate); | |
10927 | if (PyErr_Occurred()) SWIG_fail; | |
10928 | } | |
10929 | Py_INCREF(Py_None); resultobj = Py_None; | |
10930 | return resultobj; | |
10931 | fail: | |
10932 | return NULL; | |
10933 | } | |
10934 | ||
10935 | ||
10936 | static PyObject *_wrap_PyRectangleShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
10937 | PyObject *resultobj; | |
10938 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10939 | wxDC *arg2 = 0 ; | |
10940 | PyObject * obj0 = 0 ; | |
10941 | PyObject * obj1 = 0 ; | |
10942 | char *kwnames[] = { | |
10943 | (char *) "self",(char *) "dc", NULL | |
10944 | }; | |
10945 | ||
10946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
10947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
10948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
10950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10951 | SWIG_fail; | |
10952 | if (arg2 == NULL) { | |
10953 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10954 | SWIG_fail; | |
10955 | } | |
10956 | { | |
10957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10958 | (arg1)->base_OnDrawContents(*arg2); | |
10959 | ||
10960 | wxPyEndAllowThreads(__tstate); | |
10961 | if (PyErr_Occurred()) SWIG_fail; | |
10962 | } | |
10963 | Py_INCREF(Py_None); resultobj = Py_None; | |
10964 | return resultobj; | |
10965 | fail: | |
10966 | return NULL; | |
10967 | } | |
10968 | ||
10969 | ||
10970 | static PyObject *_wrap_PyRectangleShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
10971 | PyObject *resultobj; | |
10972 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10973 | wxDC *arg2 = 0 ; | |
10974 | bool arg3 = (bool) FALSE ; | |
10975 | PyObject * obj0 = 0 ; | |
10976 | PyObject * obj1 = 0 ; | |
10977 | PyObject * obj2 = 0 ; | |
10978 | char *kwnames[] = { | |
10979 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
10980 | }; | |
10981 | ||
10982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyRectangleShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
10984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10985 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
10986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10987 | SWIG_fail; | |
10988 | if (arg2 == NULL) { | |
10989 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10990 | SWIG_fail; | |
10991 | } | |
10992 | if (obj2) { | |
10993 | arg3 = (bool)SWIG_As_bool(obj2); | |
10994 | if (PyErr_Occurred()) SWIG_fail; | |
10995 | } | |
10996 | { | |
10997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10998 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
10999 | ||
11000 | wxPyEndAllowThreads(__tstate); | |
11001 | if (PyErr_Occurred()) SWIG_fail; | |
11002 | } | |
11003 | Py_INCREF(Py_None); resultobj = Py_None; | |
11004 | return resultobj; | |
11005 | fail: | |
11006 | return NULL; | |
11007 | } | |
11008 | ||
11009 | ||
11010 | static PyObject *_wrap_PyRectangleShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
11011 | PyObject *resultobj; | |
11012 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11013 | wxDC *arg2 = 0 ; | |
11014 | PyObject * obj0 = 0 ; | |
11015 | PyObject * obj1 = 0 ; | |
11016 | char *kwnames[] = { | |
11017 | (char *) "self",(char *) "dc", NULL | |
11018 | }; | |
11019 | ||
11020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
11021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11023 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11024 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11025 | SWIG_fail; | |
11026 | if (arg2 == NULL) { | |
11027 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11028 | SWIG_fail; | |
11029 | } | |
11030 | { | |
11031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11032 | (arg1)->base_OnMoveLinks(*arg2); | |
11033 | ||
11034 | wxPyEndAllowThreads(__tstate); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | } | |
11037 | Py_INCREF(Py_None); resultobj = Py_None; | |
11038 | return resultobj; | |
11039 | fail: | |
11040 | return NULL; | |
11041 | } | |
11042 | ||
11043 | ||
11044 | static PyObject *_wrap_PyRectangleShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
11045 | PyObject *resultobj; | |
11046 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11047 | wxDC *arg2 = 0 ; | |
11048 | PyObject * obj0 = 0 ; | |
11049 | PyObject * obj1 = 0 ; | |
11050 | char *kwnames[] = { | |
11051 | (char *) "self",(char *) "dc", NULL | |
11052 | }; | |
11053 | ||
11054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
11055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11057 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11058 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11059 | SWIG_fail; | |
11060 | if (arg2 == NULL) { | |
11061 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11062 | SWIG_fail; | |
11063 | } | |
11064 | { | |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | (arg1)->base_OnErase(*arg2); | |
11067 | ||
11068 | wxPyEndAllowThreads(__tstate); | |
11069 | if (PyErr_Occurred()) SWIG_fail; | |
11070 | } | |
11071 | Py_INCREF(Py_None); resultobj = Py_None; | |
11072 | return resultobj; | |
11073 | fail: | |
11074 | return NULL; | |
11075 | } | |
11076 | ||
11077 | ||
11078 | static PyObject *_wrap_PyRectangleShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
11079 | PyObject *resultobj; | |
11080 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11081 | wxDC *arg2 = 0 ; | |
11082 | PyObject * obj0 = 0 ; | |
11083 | PyObject * obj1 = 0 ; | |
11084 | char *kwnames[] = { | |
11085 | (char *) "self",(char *) "dc", NULL | |
11086 | }; | |
11087 | ||
11088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
11089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11091 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11092 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11093 | SWIG_fail; | |
11094 | if (arg2 == NULL) { | |
11095 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11096 | SWIG_fail; | |
11097 | } | |
11098 | { | |
11099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11100 | (arg1)->base_OnEraseContents(*arg2); | |
11101 | ||
11102 | wxPyEndAllowThreads(__tstate); | |
11103 | if (PyErr_Occurred()) SWIG_fail; | |
11104 | } | |
11105 | Py_INCREF(Py_None); resultobj = Py_None; | |
11106 | return resultobj; | |
11107 | fail: | |
11108 | return NULL; | |
11109 | } | |
11110 | ||
11111 | ||
11112 | static PyObject *_wrap_PyRectangleShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
11113 | PyObject *resultobj; | |
11114 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11115 | wxDC *arg2 = 0 ; | |
11116 | PyObject * obj0 = 0 ; | |
11117 | PyObject * obj1 = 0 ; | |
11118 | char *kwnames[] = { | |
11119 | (char *) "self",(char *) "dc", NULL | |
11120 | }; | |
11121 | ||
11122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
11123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11125 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11126 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11127 | SWIG_fail; | |
11128 | if (arg2 == NULL) { | |
11129 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11130 | SWIG_fail; | |
11131 | } | |
11132 | { | |
11133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11134 | (arg1)->base_OnHighlight(*arg2); | |
11135 | ||
11136 | wxPyEndAllowThreads(__tstate); | |
11137 | if (PyErr_Occurred()) SWIG_fail; | |
11138 | } | |
11139 | Py_INCREF(Py_None); resultobj = Py_None; | |
11140 | return resultobj; | |
11141 | fail: | |
11142 | return NULL; | |
11143 | } | |
11144 | ||
11145 | ||
11146 | static PyObject *_wrap_PyRectangleShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
11147 | PyObject *resultobj; | |
11148 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11149 | double arg2 ; | |
11150 | double arg3 ; | |
11151 | int arg4 = (int) 0 ; | |
11152 | int arg5 = (int) 0 ; | |
11153 | PyObject * obj0 = 0 ; | |
11154 | PyObject * obj1 = 0 ; | |
11155 | PyObject * obj2 = 0 ; | |
11156 | PyObject * obj3 = 0 ; | |
11157 | PyObject * obj4 = 0 ; | |
11158 | char *kwnames[] = { | |
11159 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11160 | }; | |
11161 | ||
11162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11165 | arg2 = (double)SWIG_As_double(obj1); | |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
11167 | arg3 = (double)SWIG_As_double(obj2); | |
11168 | if (PyErr_Occurred()) SWIG_fail; | |
11169 | if (obj3) { | |
11170 | arg4 = (int)SWIG_As_int(obj3); | |
11171 | if (PyErr_Occurred()) SWIG_fail; | |
11172 | } | |
11173 | if (obj4) { | |
11174 | arg5 = (int)SWIG_As_int(obj4); | |
11175 | if (PyErr_Occurred()) SWIG_fail; | |
11176 | } | |
11177 | { | |
11178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11179 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
11180 | ||
11181 | wxPyEndAllowThreads(__tstate); | |
11182 | if (PyErr_Occurred()) SWIG_fail; | |
11183 | } | |
11184 | Py_INCREF(Py_None); resultobj = Py_None; | |
11185 | return resultobj; | |
11186 | fail: | |
11187 | return NULL; | |
11188 | } | |
11189 | ||
11190 | ||
11191 | static PyObject *_wrap_PyRectangleShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
11192 | PyObject *resultobj; | |
11193 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11194 | double arg2 ; | |
11195 | double arg3 ; | |
11196 | int arg4 = (int) 0 ; | |
11197 | int arg5 = (int) 0 ; | |
11198 | PyObject * obj0 = 0 ; | |
11199 | PyObject * obj1 = 0 ; | |
11200 | PyObject * obj2 = 0 ; | |
11201 | PyObject * obj3 = 0 ; | |
11202 | PyObject * obj4 = 0 ; | |
11203 | char *kwnames[] = { | |
11204 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11205 | }; | |
11206 | ||
11207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11210 | arg2 = (double)SWIG_As_double(obj1); | |
11211 | if (PyErr_Occurred()) SWIG_fail; | |
11212 | arg3 = (double)SWIG_As_double(obj2); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
11214 | if (obj3) { | |
11215 | arg4 = (int)SWIG_As_int(obj3); | |
11216 | if (PyErr_Occurred()) SWIG_fail; | |
11217 | } | |
11218 | if (obj4) { | |
11219 | arg5 = (int)SWIG_As_int(obj4); | |
11220 | if (PyErr_Occurred()) SWIG_fail; | |
11221 | } | |
11222 | { | |
11223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11224 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
11225 | ||
11226 | wxPyEndAllowThreads(__tstate); | |
11227 | if (PyErr_Occurred()) SWIG_fail; | |
11228 | } | |
11229 | Py_INCREF(Py_None); resultobj = Py_None; | |
11230 | return resultobj; | |
11231 | fail: | |
11232 | return NULL; | |
11233 | } | |
11234 | ||
11235 | ||
11236 | static PyObject *_wrap_PyRectangleShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
11237 | PyObject *resultobj; | |
11238 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11239 | double arg2 ; | |
11240 | double arg3 ; | |
11241 | int arg4 = (int) 0 ; | |
11242 | int arg5 = (int) 0 ; | |
11243 | PyObject * obj0 = 0 ; | |
11244 | PyObject * obj1 = 0 ; | |
11245 | PyObject * obj2 = 0 ; | |
11246 | PyObject * obj3 = 0 ; | |
11247 | PyObject * obj4 = 0 ; | |
11248 | char *kwnames[] = { | |
11249 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11250 | }; | |
11251 | ||
11252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11255 | arg2 = (double)SWIG_As_double(obj1); | |
11256 | if (PyErr_Occurred()) SWIG_fail; | |
11257 | arg3 = (double)SWIG_As_double(obj2); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | if (obj3) { | |
11260 | arg4 = (int)SWIG_As_int(obj3); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
11262 | } | |
11263 | if (obj4) { | |
11264 | arg5 = (int)SWIG_As_int(obj4); | |
11265 | if (PyErr_Occurred()) SWIG_fail; | |
11266 | } | |
11267 | { | |
11268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11269 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
11270 | ||
11271 | wxPyEndAllowThreads(__tstate); | |
11272 | if (PyErr_Occurred()) SWIG_fail; | |
11273 | } | |
11274 | Py_INCREF(Py_None); resultobj = Py_None; | |
11275 | return resultobj; | |
11276 | fail: | |
11277 | return NULL; | |
11278 | } | |
11279 | ||
11280 | ||
11281 | static PyObject *_wrap_PyRectangleShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
11282 | PyObject *resultobj; | |
11283 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11284 | double arg2 ; | |
11285 | double arg3 ; | |
11286 | PyObject * obj0 = 0 ; | |
11287 | PyObject * obj1 = 0 ; | |
11288 | PyObject * obj2 = 0 ; | |
11289 | char *kwnames[] = { | |
11290 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11291 | }; | |
11292 | ||
11293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyRectangleShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11296 | arg2 = (double)SWIG_As_double(obj1); | |
11297 | if (PyErr_Occurred()) SWIG_fail; | |
11298 | arg3 = (double)SWIG_As_double(obj2); | |
11299 | if (PyErr_Occurred()) SWIG_fail; | |
11300 | { | |
11301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11302 | (arg1)->base_OnSize(arg2,arg3); | |
11303 | ||
11304 | wxPyEndAllowThreads(__tstate); | |
11305 | if (PyErr_Occurred()) SWIG_fail; | |
11306 | } | |
11307 | Py_INCREF(Py_None); resultobj = Py_None; | |
11308 | return resultobj; | |
11309 | fail: | |
11310 | return NULL; | |
11311 | } | |
11312 | ||
11313 | ||
11314 | static PyObject *_wrap_PyRectangleShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
11315 | PyObject *resultobj; | |
11316 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11317 | wxDC *arg2 = 0 ; | |
11318 | double arg3 ; | |
11319 | double arg4 ; | |
11320 | double arg5 ; | |
11321 | double arg6 ; | |
11322 | bool arg7 = (bool) true ; | |
11323 | bool result; | |
11324 | PyObject * obj0 = 0 ; | |
11325 | PyObject * obj1 = 0 ; | |
11326 | PyObject * obj2 = 0 ; | |
11327 | PyObject * obj3 = 0 ; | |
11328 | PyObject * obj4 = 0 ; | |
11329 | PyObject * obj5 = 0 ; | |
11330 | PyObject * obj6 = 0 ; | |
11331 | char *kwnames[] = { | |
11332 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
11333 | }; | |
11334 | ||
11335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyRectangleShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11338 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11339 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11340 | SWIG_fail; | |
11341 | if (arg2 == NULL) { | |
11342 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11343 | SWIG_fail; | |
11344 | } | |
11345 | arg3 = (double)SWIG_As_double(obj2); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | arg4 = (double)SWIG_As_double(obj3); | |
11348 | if (PyErr_Occurred()) SWIG_fail; | |
11349 | arg5 = (double)SWIG_As_double(obj4); | |
11350 | if (PyErr_Occurred()) SWIG_fail; | |
11351 | arg6 = (double)SWIG_As_double(obj5); | |
11352 | if (PyErr_Occurred()) SWIG_fail; | |
11353 | if (obj6) { | |
11354 | arg7 = (bool)SWIG_As_bool(obj6); | |
11355 | if (PyErr_Occurred()) SWIG_fail; | |
11356 | } | |
11357 | { | |
11358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11359 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
11360 | ||
11361 | wxPyEndAllowThreads(__tstate); | |
11362 | if (PyErr_Occurred()) SWIG_fail; | |
11363 | } | |
11364 | { | |
11365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11366 | } | |
11367 | return resultobj; | |
11368 | fail: | |
11369 | return NULL; | |
11370 | } | |
11371 | ||
11372 | ||
11373 | static PyObject *_wrap_PyRectangleShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
11374 | PyObject *resultobj; | |
11375 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11376 | wxDC *arg2 = 0 ; | |
11377 | double arg3 ; | |
11378 | double arg4 ; | |
11379 | double arg5 ; | |
11380 | double arg6 ; | |
11381 | bool arg7 = (bool) true ; | |
11382 | PyObject * obj0 = 0 ; | |
11383 | PyObject * obj1 = 0 ; | |
11384 | PyObject * obj2 = 0 ; | |
11385 | PyObject * obj3 = 0 ; | |
11386 | PyObject * obj4 = 0 ; | |
11387 | PyObject * obj5 = 0 ; | |
11388 | PyObject * obj6 = 0 ; | |
11389 | char *kwnames[] = { | |
11390 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
11391 | }; | |
11392 | ||
11393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyRectangleShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11396 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11397 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11398 | SWIG_fail; | |
11399 | if (arg2 == NULL) { | |
11400 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11401 | SWIG_fail; | |
11402 | } | |
11403 | arg3 = (double)SWIG_As_double(obj2); | |
11404 | if (PyErr_Occurred()) SWIG_fail; | |
11405 | arg4 = (double)SWIG_As_double(obj3); | |
11406 | if (PyErr_Occurred()) SWIG_fail; | |
11407 | arg5 = (double)SWIG_As_double(obj4); | |
11408 | if (PyErr_Occurred()) SWIG_fail; | |
11409 | arg6 = (double)SWIG_As_double(obj5); | |
11410 | if (PyErr_Occurred()) SWIG_fail; | |
11411 | if (obj6) { | |
11412 | arg7 = (bool)SWIG_As_bool(obj6); | |
11413 | if (PyErr_Occurred()) SWIG_fail; | |
11414 | } | |
11415 | { | |
11416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11417 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
11418 | ||
11419 | wxPyEndAllowThreads(__tstate); | |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
11421 | } | |
11422 | Py_INCREF(Py_None); resultobj = Py_None; | |
11423 | return resultobj; | |
11424 | fail: | |
11425 | return NULL; | |
11426 | } | |
11427 | ||
11428 | ||
11429 | static PyObject *_wrap_PyRectangleShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
11430 | PyObject *resultobj; | |
11431 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11432 | bool arg2 ; | |
11433 | double arg3 ; | |
11434 | double arg4 ; | |
11435 | int arg5 = (int) 0 ; | |
11436 | int arg6 = (int) 0 ; | |
11437 | PyObject * obj0 = 0 ; | |
11438 | PyObject * obj1 = 0 ; | |
11439 | PyObject * obj2 = 0 ; | |
11440 | PyObject * obj3 = 0 ; | |
11441 | PyObject * obj4 = 0 ; | |
11442 | PyObject * obj5 = 0 ; | |
11443 | char *kwnames[] = { | |
11444 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11445 | }; | |
11446 | ||
11447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyRectangleShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11450 | arg2 = (bool)SWIG_As_bool(obj1); | |
11451 | if (PyErr_Occurred()) SWIG_fail; | |
11452 | arg3 = (double)SWIG_As_double(obj2); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | arg4 = (double)SWIG_As_double(obj3); | |
11455 | if (PyErr_Occurred()) SWIG_fail; | |
11456 | if (obj4) { | |
11457 | arg5 = (int)SWIG_As_int(obj4); | |
11458 | if (PyErr_Occurred()) SWIG_fail; | |
11459 | } | |
11460 | if (obj5) { | |
11461 | arg6 = (int)SWIG_As_int(obj5); | |
11462 | if (PyErr_Occurred()) SWIG_fail; | |
11463 | } | |
11464 | { | |
11465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11466 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
11467 | ||
11468 | wxPyEndAllowThreads(__tstate); | |
11469 | if (PyErr_Occurred()) SWIG_fail; | |
11470 | } | |
11471 | Py_INCREF(Py_None); resultobj = Py_None; | |
11472 | return resultobj; | |
11473 | fail: | |
11474 | return NULL; | |
11475 | } | |
11476 | ||
11477 | ||
11478 | static PyObject *_wrap_PyRectangleShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
11479 | PyObject *resultobj; | |
11480 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11481 | double arg2 ; | |
11482 | double arg3 ; | |
11483 | int arg4 = (int) 0 ; | |
11484 | int arg5 = (int) 0 ; | |
11485 | PyObject * obj0 = 0 ; | |
11486 | PyObject * obj1 = 0 ; | |
11487 | PyObject * obj2 = 0 ; | |
11488 | PyObject * obj3 = 0 ; | |
11489 | PyObject * obj4 = 0 ; | |
11490 | char *kwnames[] = { | |
11491 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11492 | }; | |
11493 | ||
11494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11497 | arg2 = (double)SWIG_As_double(obj1); | |
11498 | if (PyErr_Occurred()) SWIG_fail; | |
11499 | arg3 = (double)SWIG_As_double(obj2); | |
11500 | if (PyErr_Occurred()) SWIG_fail; | |
11501 | if (obj3) { | |
11502 | arg4 = (int)SWIG_As_int(obj3); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | if (obj4) { | |
11506 | arg5 = (int)SWIG_As_int(obj4); | |
11507 | if (PyErr_Occurred()) SWIG_fail; | |
11508 | } | |
11509 | { | |
11510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11511 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
11512 | ||
11513 | wxPyEndAllowThreads(__tstate); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
11516 | Py_INCREF(Py_None); resultobj = Py_None; | |
11517 | return resultobj; | |
11518 | fail: | |
11519 | return NULL; | |
11520 | } | |
11521 | ||
11522 | ||
11523 | static PyObject *_wrap_PyRectangleShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
11524 | PyObject *resultobj; | |
11525 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11526 | double arg2 ; | |
11527 | double arg3 ; | |
11528 | int arg4 = (int) 0 ; | |
11529 | int arg5 = (int) 0 ; | |
11530 | PyObject * obj0 = 0 ; | |
11531 | PyObject * obj1 = 0 ; | |
11532 | PyObject * obj2 = 0 ; | |
11533 | PyObject * obj3 = 0 ; | |
11534 | PyObject * obj4 = 0 ; | |
11535 | char *kwnames[] = { | |
11536 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11537 | }; | |
11538 | ||
11539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11542 | arg2 = (double)SWIG_As_double(obj1); | |
11543 | if (PyErr_Occurred()) SWIG_fail; | |
11544 | arg3 = (double)SWIG_As_double(obj2); | |
11545 | if (PyErr_Occurred()) SWIG_fail; | |
11546 | if (obj3) { | |
11547 | arg4 = (int)SWIG_As_int(obj3); | |
11548 | if (PyErr_Occurred()) SWIG_fail; | |
11549 | } | |
11550 | if (obj4) { | |
11551 | arg5 = (int)SWIG_As_int(obj4); | |
11552 | if (PyErr_Occurred()) SWIG_fail; | |
11553 | } | |
11554 | { | |
11555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11556 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
11557 | ||
11558 | wxPyEndAllowThreads(__tstate); | |
11559 | if (PyErr_Occurred()) SWIG_fail; | |
11560 | } | |
11561 | Py_INCREF(Py_None); resultobj = Py_None; | |
11562 | return resultobj; | |
11563 | fail: | |
11564 | return NULL; | |
11565 | } | |
11566 | ||
11567 | ||
11568 | static PyObject *_wrap_PyRectangleShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
11569 | PyObject *resultobj; | |
11570 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11571 | bool arg2 ; | |
11572 | double arg3 ; | |
11573 | double arg4 ; | |
11574 | int arg5 = (int) 0 ; | |
11575 | int arg6 = (int) 0 ; | |
11576 | PyObject * obj0 = 0 ; | |
11577 | PyObject * obj1 = 0 ; | |
11578 | PyObject * obj2 = 0 ; | |
11579 | PyObject * obj3 = 0 ; | |
11580 | PyObject * obj4 = 0 ; | |
11581 | PyObject * obj5 = 0 ; | |
11582 | char *kwnames[] = { | |
11583 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11584 | }; | |
11585 | ||
11586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyRectangleShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11589 | arg2 = (bool)SWIG_As_bool(obj1); | |
11590 | if (PyErr_Occurred()) SWIG_fail; | |
11591 | arg3 = (double)SWIG_As_double(obj2); | |
11592 | if (PyErr_Occurred()) SWIG_fail; | |
11593 | arg4 = (double)SWIG_As_double(obj3); | |
11594 | if (PyErr_Occurred()) SWIG_fail; | |
11595 | if (obj4) { | |
11596 | arg5 = (int)SWIG_As_int(obj4); | |
11597 | if (PyErr_Occurred()) SWIG_fail; | |
11598 | } | |
11599 | if (obj5) { | |
11600 | arg6 = (int)SWIG_As_int(obj5); | |
11601 | if (PyErr_Occurred()) SWIG_fail; | |
11602 | } | |
11603 | { | |
11604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11605 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
11606 | ||
11607 | wxPyEndAllowThreads(__tstate); | |
11608 | if (PyErr_Occurred()) SWIG_fail; | |
11609 | } | |
11610 | Py_INCREF(Py_None); resultobj = Py_None; | |
11611 | return resultobj; | |
11612 | fail: | |
11613 | return NULL; | |
11614 | } | |
11615 | ||
11616 | ||
11617 | static PyObject *_wrap_PyRectangleShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
11618 | PyObject *resultobj; | |
11619 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11620 | double arg2 ; | |
11621 | double arg3 ; | |
11622 | int arg4 = (int) 0 ; | |
11623 | int arg5 = (int) 0 ; | |
11624 | PyObject * obj0 = 0 ; | |
11625 | PyObject * obj1 = 0 ; | |
11626 | PyObject * obj2 = 0 ; | |
11627 | PyObject * obj3 = 0 ; | |
11628 | PyObject * obj4 = 0 ; | |
11629 | char *kwnames[] = { | |
11630 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11631 | }; | |
11632 | ||
11633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11636 | arg2 = (double)SWIG_As_double(obj1); | |
11637 | if (PyErr_Occurred()) SWIG_fail; | |
11638 | arg3 = (double)SWIG_As_double(obj2); | |
11639 | if (PyErr_Occurred()) SWIG_fail; | |
11640 | if (obj3) { | |
11641 | arg4 = (int)SWIG_As_int(obj3); | |
11642 | if (PyErr_Occurred()) SWIG_fail; | |
11643 | } | |
11644 | if (obj4) { | |
11645 | arg5 = (int)SWIG_As_int(obj4); | |
11646 | if (PyErr_Occurred()) SWIG_fail; | |
11647 | } | |
11648 | { | |
11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11650 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
11651 | ||
11652 | wxPyEndAllowThreads(__tstate); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | Py_INCREF(Py_None); resultobj = Py_None; | |
11656 | return resultobj; | |
11657 | fail: | |
11658 | return NULL; | |
11659 | } | |
11660 | ||
11661 | ||
11662 | static PyObject *_wrap_PyRectangleShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
11663 | PyObject *resultobj; | |
11664 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11665 | double arg2 ; | |
11666 | double arg3 ; | |
11667 | int arg4 = (int) 0 ; | |
11668 | int arg5 = (int) 0 ; | |
11669 | PyObject * obj0 = 0 ; | |
11670 | PyObject * obj1 = 0 ; | |
11671 | PyObject * obj2 = 0 ; | |
11672 | PyObject * obj3 = 0 ; | |
11673 | PyObject * obj4 = 0 ; | |
11674 | char *kwnames[] = { | |
11675 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11676 | }; | |
11677 | ||
11678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11681 | arg2 = (double)SWIG_As_double(obj1); | |
11682 | if (PyErr_Occurred()) SWIG_fail; | |
11683 | arg3 = (double)SWIG_As_double(obj2); | |
11684 | if (PyErr_Occurred()) SWIG_fail; | |
11685 | if (obj3) { | |
11686 | arg4 = (int)SWIG_As_int(obj3); | |
11687 | if (PyErr_Occurred()) SWIG_fail; | |
11688 | } | |
11689 | if (obj4) { | |
11690 | arg5 = (int)SWIG_As_int(obj4); | |
11691 | if (PyErr_Occurred()) SWIG_fail; | |
11692 | } | |
11693 | { | |
11694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11695 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
11696 | ||
11697 | wxPyEndAllowThreads(__tstate); | |
11698 | if (PyErr_Occurred()) SWIG_fail; | |
11699 | } | |
11700 | Py_INCREF(Py_None); resultobj = Py_None; | |
11701 | return resultobj; | |
11702 | fail: | |
11703 | return NULL; | |
11704 | } | |
11705 | ||
11706 | ||
11707 | static PyObject *_wrap_PyRectangleShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
11708 | PyObject *resultobj; | |
11709 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11710 | wxDC *arg2 = 0 ; | |
11711 | double arg3 ; | |
11712 | double arg4 ; | |
11713 | double arg5 ; | |
11714 | double arg6 ; | |
11715 | PyObject * obj0 = 0 ; | |
11716 | PyObject * obj1 = 0 ; | |
11717 | PyObject * obj2 = 0 ; | |
11718 | PyObject * obj3 = 0 ; | |
11719 | PyObject * obj4 = 0 ; | |
11720 | PyObject * obj5 = 0 ; | |
11721 | char *kwnames[] = { | |
11722 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
11723 | }; | |
11724 | ||
11725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyRectangleShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11729 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11730 | SWIG_fail; | |
11731 | if (arg2 == NULL) { | |
11732 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11733 | SWIG_fail; | |
11734 | } | |
11735 | arg3 = (double)SWIG_As_double(obj2); | |
11736 | if (PyErr_Occurred()) SWIG_fail; | |
11737 | arg4 = (double)SWIG_As_double(obj3); | |
11738 | if (PyErr_Occurred()) SWIG_fail; | |
11739 | arg5 = (double)SWIG_As_double(obj4); | |
11740 | if (PyErr_Occurred()) SWIG_fail; | |
11741 | arg6 = (double)SWIG_As_double(obj5); | |
11742 | if (PyErr_Occurred()) SWIG_fail; | |
11743 | { | |
11744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11745 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
11746 | ||
11747 | wxPyEndAllowThreads(__tstate); | |
11748 | if (PyErr_Occurred()) SWIG_fail; | |
11749 | } | |
11750 | Py_INCREF(Py_None); resultobj = Py_None; | |
11751 | return resultobj; | |
11752 | fail: | |
11753 | return NULL; | |
11754 | } | |
11755 | ||
11756 | ||
11757 | static PyObject *_wrap_PyRectangleShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
11758 | PyObject *resultobj; | |
11759 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11760 | wxDC *arg2 = 0 ; | |
11761 | PyObject * obj0 = 0 ; | |
11762 | PyObject * obj1 = 0 ; | |
11763 | char *kwnames[] = { | |
11764 | (char *) "self",(char *) "dc", NULL | |
11765 | }; | |
11766 | ||
11767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
11768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11770 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11771 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11772 | SWIG_fail; | |
11773 | if (arg2 == NULL) { | |
11774 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11775 | SWIG_fail; | |
11776 | } | |
11777 | { | |
11778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11779 | (arg1)->base_OnDrawControlPoints(*arg2); | |
11780 | ||
11781 | wxPyEndAllowThreads(__tstate); | |
11782 | if (PyErr_Occurred()) SWIG_fail; | |
11783 | } | |
11784 | Py_INCREF(Py_None); resultobj = Py_None; | |
11785 | return resultobj; | |
11786 | fail: | |
11787 | return NULL; | |
11788 | } | |
11789 | ||
11790 | ||
11791 | static PyObject *_wrap_PyRectangleShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
11792 | PyObject *resultobj; | |
11793 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11794 | wxDC *arg2 = 0 ; | |
11795 | PyObject * obj0 = 0 ; | |
11796 | PyObject * obj1 = 0 ; | |
11797 | char *kwnames[] = { | |
11798 | (char *) "self",(char *) "dc", NULL | |
11799 | }; | |
11800 | ||
11801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
11802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11804 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11805 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11806 | SWIG_fail; | |
11807 | if (arg2 == NULL) { | |
11808 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11809 | SWIG_fail; | |
11810 | } | |
11811 | { | |
11812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11813 | (arg1)->base_OnEraseControlPoints(*arg2); | |
11814 | ||
11815 | wxPyEndAllowThreads(__tstate); | |
11816 | if (PyErr_Occurred()) SWIG_fail; | |
11817 | } | |
11818 | Py_INCREF(Py_None); resultobj = Py_None; | |
11819 | return resultobj; | |
11820 | fail: | |
11821 | return NULL; | |
11822 | } | |
11823 | ||
11824 | ||
11825 | static PyObject *_wrap_PyRectangleShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
11826 | PyObject *resultobj; | |
11827 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11828 | wxDC *arg2 = 0 ; | |
11829 | bool arg3 = (bool) true ; | |
11830 | PyObject * obj0 = 0 ; | |
11831 | PyObject * obj1 = 0 ; | |
11832 | PyObject * obj2 = 0 ; | |
11833 | char *kwnames[] = { | |
11834 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
11835 | }; | |
11836 | ||
11837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyRectangleShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11840 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11841 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11842 | SWIG_fail; | |
11843 | if (arg2 == NULL) { | |
11844 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11845 | SWIG_fail; | |
11846 | } | |
11847 | if (obj2) { | |
11848 | arg3 = (bool)SWIG_As_bool(obj2); | |
11849 | if (PyErr_Occurred()) SWIG_fail; | |
11850 | } | |
11851 | { | |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
11854 | ||
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
11858 | Py_INCREF(Py_None); resultobj = Py_None; | |
11859 | return resultobj; | |
11860 | fail: | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
11865 | static PyObject *_wrap_PyRectangleShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
11866 | PyObject *resultobj; | |
11867 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11868 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
11869 | bool arg3 ; | |
11870 | double arg4 ; | |
11871 | double arg5 ; | |
11872 | int arg6 = (int) 0 ; | |
11873 | int arg7 = (int) 0 ; | |
11874 | PyObject * obj0 = 0 ; | |
11875 | PyObject * obj1 = 0 ; | |
11876 | PyObject * obj2 = 0 ; | |
11877 | PyObject * obj3 = 0 ; | |
11878 | PyObject * obj4 = 0 ; | |
11879 | PyObject * obj5 = 0 ; | |
11880 | PyObject * obj6 = 0 ; | |
11881 | char *kwnames[] = { | |
11882 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11883 | }; | |
11884 | ||
11885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyRectangleShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
11889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11890 | arg3 = (bool)SWIG_As_bool(obj2); | |
11891 | if (PyErr_Occurred()) SWIG_fail; | |
11892 | arg4 = (double)SWIG_As_double(obj3); | |
11893 | if (PyErr_Occurred()) SWIG_fail; | |
11894 | arg5 = (double)SWIG_As_double(obj4); | |
11895 | if (PyErr_Occurred()) SWIG_fail; | |
11896 | if (obj5) { | |
11897 | arg6 = (int)SWIG_As_int(obj5); | |
11898 | if (PyErr_Occurred()) SWIG_fail; | |
11899 | } | |
11900 | if (obj6) { | |
11901 | arg7 = (int)SWIG_As_int(obj6); | |
11902 | if (PyErr_Occurred()) SWIG_fail; | |
11903 | } | |
11904 | { | |
11905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11906 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
11907 | ||
11908 | wxPyEndAllowThreads(__tstate); | |
11909 | if (PyErr_Occurred()) SWIG_fail; | |
11910 | } | |
11911 | Py_INCREF(Py_None); resultobj = Py_None; | |
11912 | return resultobj; | |
11913 | fail: | |
11914 | return NULL; | |
11915 | } | |
11916 | ||
11917 | ||
11918 | static PyObject *_wrap_PyRectangleShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
11919 | PyObject *resultobj; | |
11920 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11921 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
11922 | double arg3 ; | |
11923 | double arg4 ; | |
11924 | int arg5 = (int) 0 ; | |
11925 | int arg6 = (int) 0 ; | |
11926 | PyObject * obj0 = 0 ; | |
11927 | PyObject * obj1 = 0 ; | |
11928 | PyObject * obj2 = 0 ; | |
11929 | PyObject * obj3 = 0 ; | |
11930 | PyObject * obj4 = 0 ; | |
11931 | PyObject * obj5 = 0 ; | |
11932 | char *kwnames[] = { | |
11933 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11934 | }; | |
11935 | ||
11936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyRectangleShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
11940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11941 | arg3 = (double)SWIG_As_double(obj2); | |
11942 | if (PyErr_Occurred()) SWIG_fail; | |
11943 | arg4 = (double)SWIG_As_double(obj3); | |
11944 | if (PyErr_Occurred()) SWIG_fail; | |
11945 | if (obj4) { | |
11946 | arg5 = (int)SWIG_As_int(obj4); | |
11947 | if (PyErr_Occurred()) SWIG_fail; | |
11948 | } | |
11949 | if (obj5) { | |
11950 | arg6 = (int)SWIG_As_int(obj5); | |
11951 | if (PyErr_Occurred()) SWIG_fail; | |
11952 | } | |
11953 | { | |
11954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11955 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
11956 | ||
11957 | wxPyEndAllowThreads(__tstate); | |
11958 | if (PyErr_Occurred()) SWIG_fail; | |
11959 | } | |
11960 | Py_INCREF(Py_None); resultobj = Py_None; | |
11961 | return resultobj; | |
11962 | fail: | |
11963 | return NULL; | |
11964 | } | |
11965 | ||
11966 | ||
11967 | static PyObject *_wrap_PyRectangleShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
11968 | PyObject *resultobj; | |
11969 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11970 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
11971 | double arg3 ; | |
11972 | double arg4 ; | |
11973 | int arg5 = (int) 0 ; | |
11974 | int arg6 = (int) 0 ; | |
11975 | PyObject * obj0 = 0 ; | |
11976 | PyObject * obj1 = 0 ; | |
11977 | PyObject * obj2 = 0 ; | |
11978 | PyObject * obj3 = 0 ; | |
11979 | PyObject * obj4 = 0 ; | |
11980 | PyObject * obj5 = 0 ; | |
11981 | char *kwnames[] = { | |
11982 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11983 | }; | |
11984 | ||
11985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyRectangleShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
11987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11988 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
11989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11990 | arg3 = (double)SWIG_As_double(obj2); | |
11991 | if (PyErr_Occurred()) SWIG_fail; | |
11992 | arg4 = (double)SWIG_As_double(obj3); | |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | if (obj4) { | |
11995 | arg5 = (int)SWIG_As_int(obj4); | |
11996 | if (PyErr_Occurred()) SWIG_fail; | |
11997 | } | |
11998 | if (obj5) { | |
11999 | arg6 = (int)SWIG_As_int(obj5); | |
12000 | if (PyErr_Occurred()) SWIG_fail; | |
12001 | } | |
12002 | { | |
12003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12004 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
12005 | ||
12006 | wxPyEndAllowThreads(__tstate); | |
12007 | if (PyErr_Occurred()) SWIG_fail; | |
12008 | } | |
12009 | Py_INCREF(Py_None); resultobj = Py_None; | |
12010 | return resultobj; | |
12011 | fail: | |
12012 | return NULL; | |
12013 | } | |
12014 | ||
12015 | ||
12016 | static PyObject *_wrap_PyRectangleShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
12017 | PyObject *resultobj; | |
12018 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
12019 | double arg2 ; | |
12020 | double arg3 ; | |
12021 | PyObject * obj0 = 0 ; | |
12022 | PyObject * obj1 = 0 ; | |
12023 | PyObject * obj2 = 0 ; | |
12024 | char *kwnames[] = { | |
12025 | (char *) "self",(char *) "w",(char *) "h", NULL | |
12026 | }; | |
12027 | ||
12028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyRectangleShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
12030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12031 | arg2 = (double)SWIG_As_double(obj1); | |
12032 | if (PyErr_Occurred()) SWIG_fail; | |
12033 | arg3 = (double)SWIG_As_double(obj2); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | { | |
12036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12037 | (arg1)->base_OnBeginSize(arg2,arg3); | |
12038 | ||
12039 | wxPyEndAllowThreads(__tstate); | |
12040 | if (PyErr_Occurred()) SWIG_fail; | |
12041 | } | |
12042 | Py_INCREF(Py_None); resultobj = Py_None; | |
12043 | return resultobj; | |
12044 | fail: | |
12045 | return NULL; | |
12046 | } | |
12047 | ||
12048 | ||
12049 | static PyObject *_wrap_PyRectangleShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
12050 | PyObject *resultobj; | |
12051 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
12052 | double arg2 ; | |
12053 | double arg3 ; | |
12054 | PyObject * obj0 = 0 ; | |
12055 | PyObject * obj1 = 0 ; | |
12056 | PyObject * obj2 = 0 ; | |
12057 | char *kwnames[] = { | |
12058 | (char *) "self",(char *) "w",(char *) "h", NULL | |
12059 | }; | |
12060 | ||
12061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyRectangleShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, | |
12063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12064 | arg2 = (double)SWIG_As_double(obj1); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | arg3 = (double)SWIG_As_double(obj2); | |
12067 | if (PyErr_Occurred()) SWIG_fail; | |
12068 | { | |
12069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12070 | (arg1)->base_OnEndSize(arg2,arg3); | |
12071 | ||
12072 | wxPyEndAllowThreads(__tstate); | |
12073 | if (PyErr_Occurred()) SWIG_fail; | |
12074 | } | |
12075 | Py_INCREF(Py_None); resultobj = Py_None; | |
12076 | return resultobj; | |
12077 | fail: | |
12078 | return NULL; | |
12079 | } | |
12080 | ||
12081 | ||
12082 | static PyObject * PyRectangleShape_swigregister(PyObject *, PyObject *args) { | |
12083 | PyObject *obj; | |
12084 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12085 | SWIG_TypeClientData(SWIGTYPE_p_wxPyRectangleShape, obj); | |
12086 | Py_INCREF(obj); | |
12087 | return Py_BuildValue((char *)""); | |
12088 | } | |
12089 | static PyObject *_wrap_new_PyControlPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
12090 | PyObject *resultobj; | |
12091 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) NULL ; | |
12092 | wxPyShape *arg2 = (wxPyShape *) NULL ; | |
12093 | double arg3 = (double) 0.0 ; | |
12094 | double arg4 = (double) 0.0 ; | |
12095 | double arg5 = (double) 0.0 ; | |
12096 | int arg6 = (int) 0 ; | |
12097 | wxPyControlPoint *result; | |
12098 | PyObject * obj0 = 0 ; | |
12099 | PyObject * obj1 = 0 ; | |
12100 | PyObject * obj2 = 0 ; | |
12101 | PyObject * obj3 = 0 ; | |
12102 | PyObject * obj4 = 0 ; | |
12103 | PyObject * obj5 = 0 ; | |
12104 | char *kwnames[] = { | |
12105 | (char *) "the_canvas",(char *) "object",(char *) "size",(char *) "the_xoffset",(char *) "the_yoffset",(char *) "the_type", NULL | |
12106 | }; | |
12107 | ||
12108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_PyControlPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12109 | if (obj0) { | |
12110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
12111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12112 | } | |
12113 | if (obj1) { | |
12114 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
12115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12116 | } | |
12117 | if (obj2) { | |
12118 | arg3 = (double)SWIG_As_double(obj2); | |
12119 | if (PyErr_Occurred()) SWIG_fail; | |
12120 | } | |
12121 | if (obj3) { | |
12122 | arg4 = (double)SWIG_As_double(obj3); | |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
12124 | } | |
12125 | if (obj4) { | |
12126 | arg5 = (double)SWIG_As_double(obj4); | |
12127 | if (PyErr_Occurred()) SWIG_fail; | |
12128 | } | |
12129 | if (obj5) { | |
12130 | arg6 = (int)SWIG_As_int(obj5); | |
12131 | if (PyErr_Occurred()) SWIG_fail; | |
12132 | } | |
12133 | { | |
12134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12135 | result = (wxPyControlPoint *)new wxPyControlPoint(arg1,arg2,arg3,arg4,arg5,arg6); | |
12136 | ||
12137 | wxPyEndAllowThreads(__tstate); | |
12138 | if (PyErr_Occurred()) SWIG_fail; | |
12139 | } | |
12140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControlPoint, 1); | |
12141 | return resultobj; | |
12142 | fail: | |
12143 | return NULL; | |
12144 | } | |
12145 | ||
12146 | ||
12147 | static PyObject *_wrap_PyControlPoint__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
12148 | PyObject *resultobj; | |
12149 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12150 | PyObject *arg2 = (PyObject *) 0 ; | |
12151 | PyObject *arg3 = (PyObject *) 0 ; | |
12152 | PyObject * obj0 = 0 ; | |
12153 | PyObject * obj1 = 0 ; | |
12154 | PyObject * obj2 = 0 ; | |
12155 | char *kwnames[] = { | |
12156 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
12157 | }; | |
12158 | ||
12159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControlPoint__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12162 | arg2 = obj1; | |
12163 | arg3 = obj2; | |
12164 | { | |
12165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12166 | (arg1)->_setCallbackInfo(arg2,arg3); | |
12167 | ||
12168 | wxPyEndAllowThreads(__tstate); | |
12169 | if (PyErr_Occurred()) SWIG_fail; | |
12170 | } | |
12171 | Py_INCREF(Py_None); resultobj = Py_None; | |
12172 | return resultobj; | |
12173 | fail: | |
12174 | return NULL; | |
12175 | } | |
12176 | ||
12177 | ||
12178 | static PyObject *_wrap_PyControlPoint_SetCornerRadius(PyObject *, PyObject *args, PyObject *kwargs) { | |
12179 | PyObject *resultobj; | |
12180 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12181 | double arg2 ; | |
12182 | PyObject * obj0 = 0 ; | |
12183 | PyObject * obj1 = 0 ; | |
12184 | char *kwnames[] = { | |
12185 | (char *) "self",(char *) "radius", NULL | |
12186 | }; | |
12187 | ||
12188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_SetCornerRadius",kwnames,&obj0,&obj1)) goto fail; | |
12189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12191 | arg2 = (double)SWIG_As_double(obj1); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | { | |
12194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12195 | (arg1)->SetCornerRadius(arg2); | |
12196 | ||
12197 | wxPyEndAllowThreads(__tstate); | |
12198 | if (PyErr_Occurred()) SWIG_fail; | |
12199 | } | |
12200 | Py_INCREF(Py_None); resultobj = Py_None; | |
12201 | return resultobj; | |
12202 | fail: | |
12203 | return NULL; | |
12204 | } | |
12205 | ||
12206 | ||
12207 | static PyObject *_wrap_PyControlPoint_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
12208 | PyObject *resultobj; | |
12209 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12210 | PyObject * obj0 = 0 ; | |
12211 | char *kwnames[] = { | |
12212 | (char *) "self", NULL | |
12213 | }; | |
12214 | ||
12215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControlPoint_base_OnDelete",kwnames,&obj0)) goto fail; | |
12216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12218 | { | |
12219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12220 | (arg1)->base_OnDelete(); | |
12221 | ||
12222 | wxPyEndAllowThreads(__tstate); | |
12223 | if (PyErr_Occurred()) SWIG_fail; | |
12224 | } | |
12225 | Py_INCREF(Py_None); resultobj = Py_None; | |
12226 | return resultobj; | |
12227 | fail: | |
12228 | return NULL; | |
12229 | } | |
12230 | ||
12231 | ||
12232 | static PyObject *_wrap_PyControlPoint_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
12233 | PyObject *resultobj; | |
12234 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12235 | wxDC *arg2 = 0 ; | |
12236 | PyObject * obj0 = 0 ; | |
12237 | PyObject * obj1 = 0 ; | |
12238 | char *kwnames[] = { | |
12239 | (char *) "self",(char *) "dc", NULL | |
12240 | }; | |
12241 | ||
12242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
12243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12245 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12246 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12247 | SWIG_fail; | |
12248 | if (arg2 == NULL) { | |
12249 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12250 | SWIG_fail; | |
12251 | } | |
12252 | { | |
12253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12254 | (arg1)->base_OnDraw(*arg2); | |
12255 | ||
12256 | wxPyEndAllowThreads(__tstate); | |
12257 | if (PyErr_Occurred()) SWIG_fail; | |
12258 | } | |
12259 | Py_INCREF(Py_None); resultobj = Py_None; | |
12260 | return resultobj; | |
12261 | fail: | |
12262 | return NULL; | |
12263 | } | |
12264 | ||
12265 | ||
12266 | static PyObject *_wrap_PyControlPoint_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
12267 | PyObject *resultobj; | |
12268 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12269 | wxDC *arg2 = 0 ; | |
12270 | PyObject * obj0 = 0 ; | |
12271 | PyObject * obj1 = 0 ; | |
12272 | char *kwnames[] = { | |
12273 | (char *) "self",(char *) "dc", NULL | |
12274 | }; | |
12275 | ||
12276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
12277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12279 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12280 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12281 | SWIG_fail; | |
12282 | if (arg2 == NULL) { | |
12283 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12284 | SWIG_fail; | |
12285 | } | |
12286 | { | |
12287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12288 | (arg1)->base_OnDrawContents(*arg2); | |
12289 | ||
12290 | wxPyEndAllowThreads(__tstate); | |
12291 | if (PyErr_Occurred()) SWIG_fail; | |
12292 | } | |
12293 | Py_INCREF(Py_None); resultobj = Py_None; | |
12294 | return resultobj; | |
12295 | fail: | |
12296 | return NULL; | |
12297 | } | |
12298 | ||
12299 | ||
12300 | static PyObject *_wrap_PyControlPoint_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
12301 | PyObject *resultobj; | |
12302 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12303 | wxDC *arg2 = 0 ; | |
12304 | bool arg3 = (bool) FALSE ; | |
12305 | PyObject * obj0 = 0 ; | |
12306 | PyObject * obj1 = 0 ; | |
12307 | PyObject * obj2 = 0 ; | |
12308 | char *kwnames[] = { | |
12309 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
12310 | }; | |
12311 | ||
12312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyControlPoint_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12316 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12317 | SWIG_fail; | |
12318 | if (arg2 == NULL) { | |
12319 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12320 | SWIG_fail; | |
12321 | } | |
12322 | if (obj2) { | |
12323 | arg3 = (bool)SWIG_As_bool(obj2); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
12325 | } | |
12326 | { | |
12327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12328 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
12329 | ||
12330 | wxPyEndAllowThreads(__tstate); | |
12331 | if (PyErr_Occurred()) SWIG_fail; | |
12332 | } | |
12333 | Py_INCREF(Py_None); resultobj = Py_None; | |
12334 | return resultobj; | |
12335 | fail: | |
12336 | return NULL; | |
12337 | } | |
12338 | ||
12339 | ||
12340 | static PyObject *_wrap_PyControlPoint_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
12341 | PyObject *resultobj; | |
12342 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12343 | wxDC *arg2 = 0 ; | |
12344 | PyObject * obj0 = 0 ; | |
12345 | PyObject * obj1 = 0 ; | |
12346 | char *kwnames[] = { | |
12347 | (char *) "self",(char *) "dc", NULL | |
12348 | }; | |
12349 | ||
12350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
12351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12353 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12354 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12355 | SWIG_fail; | |
12356 | if (arg2 == NULL) { | |
12357 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12358 | SWIG_fail; | |
12359 | } | |
12360 | { | |
12361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12362 | (arg1)->base_OnMoveLinks(*arg2); | |
12363 | ||
12364 | wxPyEndAllowThreads(__tstate); | |
12365 | if (PyErr_Occurred()) SWIG_fail; | |
12366 | } | |
12367 | Py_INCREF(Py_None); resultobj = Py_None; | |
12368 | return resultobj; | |
12369 | fail: | |
12370 | return NULL; | |
12371 | } | |
12372 | ||
12373 | ||
12374 | static PyObject *_wrap_PyControlPoint_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
12375 | PyObject *resultobj; | |
12376 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12377 | wxDC *arg2 = 0 ; | |
12378 | PyObject * obj0 = 0 ; | |
12379 | PyObject * obj1 = 0 ; | |
12380 | char *kwnames[] = { | |
12381 | (char *) "self",(char *) "dc", NULL | |
12382 | }; | |
12383 | ||
12384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
12385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12389 | SWIG_fail; | |
12390 | if (arg2 == NULL) { | |
12391 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12392 | SWIG_fail; | |
12393 | } | |
12394 | { | |
12395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12396 | (arg1)->base_OnErase(*arg2); | |
12397 | ||
12398 | wxPyEndAllowThreads(__tstate); | |
12399 | if (PyErr_Occurred()) SWIG_fail; | |
12400 | } | |
12401 | Py_INCREF(Py_None); resultobj = Py_None; | |
12402 | return resultobj; | |
12403 | fail: | |
12404 | return NULL; | |
12405 | } | |
12406 | ||
12407 | ||
12408 | static PyObject *_wrap_PyControlPoint_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
12409 | PyObject *resultobj; | |
12410 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12411 | wxDC *arg2 = 0 ; | |
12412 | PyObject * obj0 = 0 ; | |
12413 | PyObject * obj1 = 0 ; | |
12414 | char *kwnames[] = { | |
12415 | (char *) "self",(char *) "dc", NULL | |
12416 | }; | |
12417 | ||
12418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
12419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12421 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12422 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12423 | SWIG_fail; | |
12424 | if (arg2 == NULL) { | |
12425 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12426 | SWIG_fail; | |
12427 | } | |
12428 | { | |
12429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12430 | (arg1)->base_OnEraseContents(*arg2); | |
12431 | ||
12432 | wxPyEndAllowThreads(__tstate); | |
12433 | if (PyErr_Occurred()) SWIG_fail; | |
12434 | } | |
12435 | Py_INCREF(Py_None); resultobj = Py_None; | |
12436 | return resultobj; | |
12437 | fail: | |
12438 | return NULL; | |
12439 | } | |
12440 | ||
12441 | ||
12442 | static PyObject *_wrap_PyControlPoint_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
12443 | PyObject *resultobj; | |
12444 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12445 | wxDC *arg2 = 0 ; | |
12446 | PyObject * obj0 = 0 ; | |
12447 | PyObject * obj1 = 0 ; | |
12448 | char *kwnames[] = { | |
12449 | (char *) "self",(char *) "dc", NULL | |
12450 | }; | |
12451 | ||
12452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
12453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12455 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12456 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12457 | SWIG_fail; | |
12458 | if (arg2 == NULL) { | |
12459 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12460 | SWIG_fail; | |
12461 | } | |
12462 | { | |
12463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12464 | (arg1)->base_OnHighlight(*arg2); | |
12465 | ||
12466 | wxPyEndAllowThreads(__tstate); | |
12467 | if (PyErr_Occurred()) SWIG_fail; | |
12468 | } | |
12469 | Py_INCREF(Py_None); resultobj = Py_None; | |
12470 | return resultobj; | |
12471 | fail: | |
12472 | return NULL; | |
12473 | } | |
12474 | ||
12475 | ||
12476 | static PyObject *_wrap_PyControlPoint_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
12477 | PyObject *resultobj; | |
12478 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12479 | double arg2 ; | |
12480 | double arg3 ; | |
12481 | int arg4 = (int) 0 ; | |
12482 | int arg5 = (int) 0 ; | |
12483 | PyObject * obj0 = 0 ; | |
12484 | PyObject * obj1 = 0 ; | |
12485 | PyObject * obj2 = 0 ; | |
12486 | PyObject * obj3 = 0 ; | |
12487 | PyObject * obj4 = 0 ; | |
12488 | char *kwnames[] = { | |
12489 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12490 | }; | |
12491 | ||
12492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12495 | arg2 = (double)SWIG_As_double(obj1); | |
12496 | if (PyErr_Occurred()) SWIG_fail; | |
12497 | arg3 = (double)SWIG_As_double(obj2); | |
12498 | if (PyErr_Occurred()) SWIG_fail; | |
12499 | if (obj3) { | |
12500 | arg4 = (int)SWIG_As_int(obj3); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
12503 | if (obj4) { | |
12504 | arg5 = (int)SWIG_As_int(obj4); | |
12505 | if (PyErr_Occurred()) SWIG_fail; | |
12506 | } | |
12507 | { | |
12508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12509 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
12510 | ||
12511 | wxPyEndAllowThreads(__tstate); | |
12512 | if (PyErr_Occurred()) SWIG_fail; | |
12513 | } | |
12514 | Py_INCREF(Py_None); resultobj = Py_None; | |
12515 | return resultobj; | |
12516 | fail: | |
12517 | return NULL; | |
12518 | } | |
12519 | ||
12520 | ||
12521 | static PyObject *_wrap_PyControlPoint_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
12522 | PyObject *resultobj; | |
12523 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12524 | double arg2 ; | |
12525 | double arg3 ; | |
12526 | int arg4 = (int) 0 ; | |
12527 | int arg5 = (int) 0 ; | |
12528 | PyObject * obj0 = 0 ; | |
12529 | PyObject * obj1 = 0 ; | |
12530 | PyObject * obj2 = 0 ; | |
12531 | PyObject * obj3 = 0 ; | |
12532 | PyObject * obj4 = 0 ; | |
12533 | char *kwnames[] = { | |
12534 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12535 | }; | |
12536 | ||
12537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12540 | arg2 = (double)SWIG_As_double(obj1); | |
12541 | if (PyErr_Occurred()) SWIG_fail; | |
12542 | arg3 = (double)SWIG_As_double(obj2); | |
12543 | if (PyErr_Occurred()) SWIG_fail; | |
12544 | if (obj3) { | |
12545 | arg4 = (int)SWIG_As_int(obj3); | |
12546 | if (PyErr_Occurred()) SWIG_fail; | |
12547 | } | |
12548 | if (obj4) { | |
12549 | arg5 = (int)SWIG_As_int(obj4); | |
12550 | if (PyErr_Occurred()) SWIG_fail; | |
12551 | } | |
12552 | { | |
12553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12554 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
12555 | ||
12556 | wxPyEndAllowThreads(__tstate); | |
12557 | if (PyErr_Occurred()) SWIG_fail; | |
12558 | } | |
12559 | Py_INCREF(Py_None); resultobj = Py_None; | |
12560 | return resultobj; | |
12561 | fail: | |
12562 | return NULL; | |
12563 | } | |
12564 | ||
12565 | ||
12566 | static PyObject *_wrap_PyControlPoint_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
12567 | PyObject *resultobj; | |
12568 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12569 | double arg2 ; | |
12570 | double arg3 ; | |
12571 | int arg4 = (int) 0 ; | |
12572 | int arg5 = (int) 0 ; | |
12573 | PyObject * obj0 = 0 ; | |
12574 | PyObject * obj1 = 0 ; | |
12575 | PyObject * obj2 = 0 ; | |
12576 | PyObject * obj3 = 0 ; | |
12577 | PyObject * obj4 = 0 ; | |
12578 | char *kwnames[] = { | |
12579 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12580 | }; | |
12581 | ||
12582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12585 | arg2 = (double)SWIG_As_double(obj1); | |
12586 | if (PyErr_Occurred()) SWIG_fail; | |
12587 | arg3 = (double)SWIG_As_double(obj2); | |
12588 | if (PyErr_Occurred()) SWIG_fail; | |
12589 | if (obj3) { | |
12590 | arg4 = (int)SWIG_As_int(obj3); | |
12591 | if (PyErr_Occurred()) SWIG_fail; | |
12592 | } | |
12593 | if (obj4) { | |
12594 | arg5 = (int)SWIG_As_int(obj4); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
12597 | { | |
12598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12599 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
12600 | ||
12601 | wxPyEndAllowThreads(__tstate); | |
12602 | if (PyErr_Occurred()) SWIG_fail; | |
12603 | } | |
12604 | Py_INCREF(Py_None); resultobj = Py_None; | |
12605 | return resultobj; | |
12606 | fail: | |
12607 | return NULL; | |
12608 | } | |
12609 | ||
12610 | ||
12611 | static PyObject *_wrap_PyControlPoint_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
12612 | PyObject *resultobj; | |
12613 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12614 | double arg2 ; | |
12615 | double arg3 ; | |
12616 | PyObject * obj0 = 0 ; | |
12617 | PyObject * obj1 = 0 ; | |
12618 | PyObject * obj2 = 0 ; | |
12619 | char *kwnames[] = { | |
12620 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12621 | }; | |
12622 | ||
12623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControlPoint_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12626 | arg2 = (double)SWIG_As_double(obj1); | |
12627 | if (PyErr_Occurred()) SWIG_fail; | |
12628 | arg3 = (double)SWIG_As_double(obj2); | |
12629 | if (PyErr_Occurred()) SWIG_fail; | |
12630 | { | |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | (arg1)->base_OnSize(arg2,arg3); | |
12633 | ||
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
12637 | Py_INCREF(Py_None); resultobj = Py_None; | |
12638 | return resultobj; | |
12639 | fail: | |
12640 | return NULL; | |
12641 | } | |
12642 | ||
12643 | ||
12644 | static PyObject *_wrap_PyControlPoint_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
12645 | PyObject *resultobj; | |
12646 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12647 | wxDC *arg2 = 0 ; | |
12648 | double arg3 ; | |
12649 | double arg4 ; | |
12650 | double arg5 ; | |
12651 | double arg6 ; | |
12652 | bool arg7 = (bool) true ; | |
12653 | bool result; | |
12654 | PyObject * obj0 = 0 ; | |
12655 | PyObject * obj1 = 0 ; | |
12656 | PyObject * obj2 = 0 ; | |
12657 | PyObject * obj3 = 0 ; | |
12658 | PyObject * obj4 = 0 ; | |
12659 | PyObject * obj5 = 0 ; | |
12660 | PyObject * obj6 = 0 ; | |
12661 | char *kwnames[] = { | |
12662 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
12663 | }; | |
12664 | ||
12665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyControlPoint_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
12666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12669 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12670 | SWIG_fail; | |
12671 | if (arg2 == NULL) { | |
12672 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12673 | SWIG_fail; | |
12674 | } | |
12675 | arg3 = (double)SWIG_As_double(obj2); | |
12676 | if (PyErr_Occurred()) SWIG_fail; | |
12677 | arg4 = (double)SWIG_As_double(obj3); | |
12678 | if (PyErr_Occurred()) SWIG_fail; | |
12679 | arg5 = (double)SWIG_As_double(obj4); | |
12680 | if (PyErr_Occurred()) SWIG_fail; | |
12681 | arg6 = (double)SWIG_As_double(obj5); | |
12682 | if (PyErr_Occurred()) SWIG_fail; | |
12683 | if (obj6) { | |
12684 | arg7 = (bool)SWIG_As_bool(obj6); | |
12685 | if (PyErr_Occurred()) SWIG_fail; | |
12686 | } | |
12687 | { | |
12688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12689 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
12690 | ||
12691 | wxPyEndAllowThreads(__tstate); | |
12692 | if (PyErr_Occurred()) SWIG_fail; | |
12693 | } | |
12694 | { | |
12695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12696 | } | |
12697 | return resultobj; | |
12698 | fail: | |
12699 | return NULL; | |
12700 | } | |
12701 | ||
12702 | ||
12703 | static PyObject *_wrap_PyControlPoint_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
12704 | PyObject *resultobj; | |
12705 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12706 | wxDC *arg2 = 0 ; | |
12707 | double arg3 ; | |
12708 | double arg4 ; | |
12709 | double arg5 ; | |
12710 | double arg6 ; | |
12711 | bool arg7 = (bool) true ; | |
12712 | PyObject * obj0 = 0 ; | |
12713 | PyObject * obj1 = 0 ; | |
12714 | PyObject * obj2 = 0 ; | |
12715 | PyObject * obj3 = 0 ; | |
12716 | PyObject * obj4 = 0 ; | |
12717 | PyObject * obj5 = 0 ; | |
12718 | PyObject * obj6 = 0 ; | |
12719 | char *kwnames[] = { | |
12720 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
12721 | }; | |
12722 | ||
12723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyControlPoint_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
12724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12727 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12728 | SWIG_fail; | |
12729 | if (arg2 == NULL) { | |
12730 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12731 | SWIG_fail; | |
12732 | } | |
12733 | arg3 = (double)SWIG_As_double(obj2); | |
12734 | if (PyErr_Occurred()) SWIG_fail; | |
12735 | arg4 = (double)SWIG_As_double(obj3); | |
12736 | if (PyErr_Occurred()) SWIG_fail; | |
12737 | arg5 = (double)SWIG_As_double(obj4); | |
12738 | if (PyErr_Occurred()) SWIG_fail; | |
12739 | arg6 = (double)SWIG_As_double(obj5); | |
12740 | if (PyErr_Occurred()) SWIG_fail; | |
12741 | if (obj6) { | |
12742 | arg7 = (bool)SWIG_As_bool(obj6); | |
12743 | if (PyErr_Occurred()) SWIG_fail; | |
12744 | } | |
12745 | { | |
12746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12747 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
12748 | ||
12749 | wxPyEndAllowThreads(__tstate); | |
12750 | if (PyErr_Occurred()) SWIG_fail; | |
12751 | } | |
12752 | Py_INCREF(Py_None); resultobj = Py_None; | |
12753 | return resultobj; | |
12754 | fail: | |
12755 | return NULL; | |
12756 | } | |
12757 | ||
12758 | ||
12759 | static PyObject *_wrap_PyControlPoint_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
12760 | PyObject *resultobj; | |
12761 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12762 | bool arg2 ; | |
12763 | double arg3 ; | |
12764 | double arg4 ; | |
12765 | int arg5 = (int) 0 ; | |
12766 | int arg6 = (int) 0 ; | |
12767 | PyObject * obj0 = 0 ; | |
12768 | PyObject * obj1 = 0 ; | |
12769 | PyObject * obj2 = 0 ; | |
12770 | PyObject * obj3 = 0 ; | |
12771 | PyObject * obj4 = 0 ; | |
12772 | PyObject * obj5 = 0 ; | |
12773 | char *kwnames[] = { | |
12774 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12775 | }; | |
12776 | ||
12777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyControlPoint_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12780 | arg2 = (bool)SWIG_As_bool(obj1); | |
12781 | if (PyErr_Occurred()) SWIG_fail; | |
12782 | arg3 = (double)SWIG_As_double(obj2); | |
12783 | if (PyErr_Occurred()) SWIG_fail; | |
12784 | arg4 = (double)SWIG_As_double(obj3); | |
12785 | if (PyErr_Occurred()) SWIG_fail; | |
12786 | if (obj4) { | |
12787 | arg5 = (int)SWIG_As_int(obj4); | |
12788 | if (PyErr_Occurred()) SWIG_fail; | |
12789 | } | |
12790 | if (obj5) { | |
12791 | arg6 = (int)SWIG_As_int(obj5); | |
12792 | if (PyErr_Occurred()) SWIG_fail; | |
12793 | } | |
12794 | { | |
12795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12796 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
12797 | ||
12798 | wxPyEndAllowThreads(__tstate); | |
12799 | if (PyErr_Occurred()) SWIG_fail; | |
12800 | } | |
12801 | Py_INCREF(Py_None); resultobj = Py_None; | |
12802 | return resultobj; | |
12803 | fail: | |
12804 | return NULL; | |
12805 | } | |
12806 | ||
12807 | ||
12808 | static PyObject *_wrap_PyControlPoint_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
12809 | PyObject *resultobj; | |
12810 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12811 | double arg2 ; | |
12812 | double arg3 ; | |
12813 | int arg4 = (int) 0 ; | |
12814 | int arg5 = (int) 0 ; | |
12815 | PyObject * obj0 = 0 ; | |
12816 | PyObject * obj1 = 0 ; | |
12817 | PyObject * obj2 = 0 ; | |
12818 | PyObject * obj3 = 0 ; | |
12819 | PyObject * obj4 = 0 ; | |
12820 | char *kwnames[] = { | |
12821 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12822 | }; | |
12823 | ||
12824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12827 | arg2 = (double)SWIG_As_double(obj1); | |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
12829 | arg3 = (double)SWIG_As_double(obj2); | |
12830 | if (PyErr_Occurred()) SWIG_fail; | |
12831 | if (obj3) { | |
12832 | arg4 = (int)SWIG_As_int(obj3); | |
12833 | if (PyErr_Occurred()) SWIG_fail; | |
12834 | } | |
12835 | if (obj4) { | |
12836 | arg5 = (int)SWIG_As_int(obj4); | |
12837 | if (PyErr_Occurred()) SWIG_fail; | |
12838 | } | |
12839 | { | |
12840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12841 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
12842 | ||
12843 | wxPyEndAllowThreads(__tstate); | |
12844 | if (PyErr_Occurred()) SWIG_fail; | |
12845 | } | |
12846 | Py_INCREF(Py_None); resultobj = Py_None; | |
12847 | return resultobj; | |
12848 | fail: | |
12849 | return NULL; | |
12850 | } | |
12851 | ||
12852 | ||
12853 | static PyObject *_wrap_PyControlPoint_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
12854 | PyObject *resultobj; | |
12855 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12856 | double arg2 ; | |
12857 | double arg3 ; | |
12858 | int arg4 = (int) 0 ; | |
12859 | int arg5 = (int) 0 ; | |
12860 | PyObject * obj0 = 0 ; | |
12861 | PyObject * obj1 = 0 ; | |
12862 | PyObject * obj2 = 0 ; | |
12863 | PyObject * obj3 = 0 ; | |
12864 | PyObject * obj4 = 0 ; | |
12865 | char *kwnames[] = { | |
12866 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12867 | }; | |
12868 | ||
12869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12872 | arg2 = (double)SWIG_As_double(obj1); | |
12873 | if (PyErr_Occurred()) SWIG_fail; | |
12874 | arg3 = (double)SWIG_As_double(obj2); | |
12875 | if (PyErr_Occurred()) SWIG_fail; | |
12876 | if (obj3) { | |
12877 | arg4 = (int)SWIG_As_int(obj3); | |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | } | |
12880 | if (obj4) { | |
12881 | arg5 = (int)SWIG_As_int(obj4); | |
12882 | if (PyErr_Occurred()) SWIG_fail; | |
12883 | } | |
12884 | { | |
12885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12886 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
12887 | ||
12888 | wxPyEndAllowThreads(__tstate); | |
12889 | if (PyErr_Occurred()) SWIG_fail; | |
12890 | } | |
12891 | Py_INCREF(Py_None); resultobj = Py_None; | |
12892 | return resultobj; | |
12893 | fail: | |
12894 | return NULL; | |
12895 | } | |
12896 | ||
12897 | ||
12898 | static PyObject *_wrap_PyControlPoint_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
12899 | PyObject *resultobj; | |
12900 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12901 | bool arg2 ; | |
12902 | double arg3 ; | |
12903 | double arg4 ; | |
12904 | int arg5 = (int) 0 ; | |
12905 | int arg6 = (int) 0 ; | |
12906 | PyObject * obj0 = 0 ; | |
12907 | PyObject * obj1 = 0 ; | |
12908 | PyObject * obj2 = 0 ; | |
12909 | PyObject * obj3 = 0 ; | |
12910 | PyObject * obj4 = 0 ; | |
12911 | PyObject * obj5 = 0 ; | |
12912 | char *kwnames[] = { | |
12913 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12914 | }; | |
12915 | ||
12916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyControlPoint_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12919 | arg2 = (bool)SWIG_As_bool(obj1); | |
12920 | if (PyErr_Occurred()) SWIG_fail; | |
12921 | arg3 = (double)SWIG_As_double(obj2); | |
12922 | if (PyErr_Occurred()) SWIG_fail; | |
12923 | arg4 = (double)SWIG_As_double(obj3); | |
12924 | if (PyErr_Occurred()) SWIG_fail; | |
12925 | if (obj4) { | |
12926 | arg5 = (int)SWIG_As_int(obj4); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | if (obj5) { | |
12930 | arg6 = (int)SWIG_As_int(obj5); | |
12931 | if (PyErr_Occurred()) SWIG_fail; | |
12932 | } | |
12933 | { | |
12934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12935 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
12936 | ||
12937 | wxPyEndAllowThreads(__tstate); | |
12938 | if (PyErr_Occurred()) SWIG_fail; | |
12939 | } | |
12940 | Py_INCREF(Py_None); resultobj = Py_None; | |
12941 | return resultobj; | |
12942 | fail: | |
12943 | return NULL; | |
12944 | } | |
12945 | ||
12946 | ||
12947 | static PyObject *_wrap_PyControlPoint_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
12948 | PyObject *resultobj; | |
12949 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12950 | double arg2 ; | |
12951 | double arg3 ; | |
12952 | int arg4 = (int) 0 ; | |
12953 | int arg5 = (int) 0 ; | |
12954 | PyObject * obj0 = 0 ; | |
12955 | PyObject * obj1 = 0 ; | |
12956 | PyObject * obj2 = 0 ; | |
12957 | PyObject * obj3 = 0 ; | |
12958 | PyObject * obj4 = 0 ; | |
12959 | char *kwnames[] = { | |
12960 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12961 | }; | |
12962 | ||
12963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
12965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12966 | arg2 = (double)SWIG_As_double(obj1); | |
12967 | if (PyErr_Occurred()) SWIG_fail; | |
12968 | arg3 = (double)SWIG_As_double(obj2); | |
12969 | if (PyErr_Occurred()) SWIG_fail; | |
12970 | if (obj3) { | |
12971 | arg4 = (int)SWIG_As_int(obj3); | |
12972 | if (PyErr_Occurred()) SWIG_fail; | |
12973 | } | |
12974 | if (obj4) { | |
12975 | arg5 = (int)SWIG_As_int(obj4); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
12977 | } | |
12978 | { | |
12979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12980 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
12981 | ||
12982 | wxPyEndAllowThreads(__tstate); | |
12983 | if (PyErr_Occurred()) SWIG_fail; | |
12984 | } | |
12985 | Py_INCREF(Py_None); resultobj = Py_None; | |
12986 | return resultobj; | |
12987 | fail: | |
12988 | return NULL; | |
12989 | } | |
12990 | ||
12991 | ||
12992 | static PyObject *_wrap_PyControlPoint_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
12993 | PyObject *resultobj; | |
12994 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12995 | double arg2 ; | |
12996 | double arg3 ; | |
12997 | int arg4 = (int) 0 ; | |
12998 | int arg5 = (int) 0 ; | |
12999 | PyObject * obj0 = 0 ; | |
13000 | PyObject * obj1 = 0 ; | |
13001 | PyObject * obj2 = 0 ; | |
13002 | PyObject * obj3 = 0 ; | |
13003 | PyObject * obj4 = 0 ; | |
13004 | char *kwnames[] = { | |
13005 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13006 | }; | |
13007 | ||
13008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13011 | arg2 = (double)SWIG_As_double(obj1); | |
13012 | if (PyErr_Occurred()) SWIG_fail; | |
13013 | arg3 = (double)SWIG_As_double(obj2); | |
13014 | if (PyErr_Occurred()) SWIG_fail; | |
13015 | if (obj3) { | |
13016 | arg4 = (int)SWIG_As_int(obj3); | |
13017 | if (PyErr_Occurred()) SWIG_fail; | |
13018 | } | |
13019 | if (obj4) { | |
13020 | arg5 = (int)SWIG_As_int(obj4); | |
13021 | if (PyErr_Occurred()) SWIG_fail; | |
13022 | } | |
13023 | { | |
13024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13025 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
13026 | ||
13027 | wxPyEndAllowThreads(__tstate); | |
13028 | if (PyErr_Occurred()) SWIG_fail; | |
13029 | } | |
13030 | Py_INCREF(Py_None); resultobj = Py_None; | |
13031 | return resultobj; | |
13032 | fail: | |
13033 | return NULL; | |
13034 | } | |
13035 | ||
13036 | ||
13037 | static PyObject *_wrap_PyControlPoint_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
13038 | PyObject *resultobj; | |
13039 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13040 | wxDC *arg2 = 0 ; | |
13041 | double arg3 ; | |
13042 | double arg4 ; | |
13043 | double arg5 ; | |
13044 | double arg6 ; | |
13045 | PyObject * obj0 = 0 ; | |
13046 | PyObject * obj1 = 0 ; | |
13047 | PyObject * obj2 = 0 ; | |
13048 | PyObject * obj3 = 0 ; | |
13049 | PyObject * obj4 = 0 ; | |
13050 | PyObject * obj5 = 0 ; | |
13051 | char *kwnames[] = { | |
13052 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
13053 | }; | |
13054 | ||
13055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyControlPoint_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13058 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13060 | SWIG_fail; | |
13061 | if (arg2 == NULL) { | |
13062 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13063 | SWIG_fail; | |
13064 | } | |
13065 | arg3 = (double)SWIG_As_double(obj2); | |
13066 | if (PyErr_Occurred()) SWIG_fail; | |
13067 | arg4 = (double)SWIG_As_double(obj3); | |
13068 | if (PyErr_Occurred()) SWIG_fail; | |
13069 | arg5 = (double)SWIG_As_double(obj4); | |
13070 | if (PyErr_Occurred()) SWIG_fail; | |
13071 | arg6 = (double)SWIG_As_double(obj5); | |
13072 | if (PyErr_Occurred()) SWIG_fail; | |
13073 | { | |
13074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13075 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
13076 | ||
13077 | wxPyEndAllowThreads(__tstate); | |
13078 | if (PyErr_Occurred()) SWIG_fail; | |
13079 | } | |
13080 | Py_INCREF(Py_None); resultobj = Py_None; | |
13081 | return resultobj; | |
13082 | fail: | |
13083 | return NULL; | |
13084 | } | |
13085 | ||
13086 | ||
13087 | static PyObject *_wrap_PyControlPoint_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
13088 | PyObject *resultobj; | |
13089 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13090 | wxDC *arg2 = 0 ; | |
13091 | PyObject * obj0 = 0 ; | |
13092 | PyObject * obj1 = 0 ; | |
13093 | char *kwnames[] = { | |
13094 | (char *) "self",(char *) "dc", NULL | |
13095 | }; | |
13096 | ||
13097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
13098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13100 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13101 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13102 | SWIG_fail; | |
13103 | if (arg2 == NULL) { | |
13104 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13105 | SWIG_fail; | |
13106 | } | |
13107 | { | |
13108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13109 | (arg1)->base_OnDrawControlPoints(*arg2); | |
13110 | ||
13111 | wxPyEndAllowThreads(__tstate); | |
13112 | if (PyErr_Occurred()) SWIG_fail; | |
13113 | } | |
13114 | Py_INCREF(Py_None); resultobj = Py_None; | |
13115 | return resultobj; | |
13116 | fail: | |
13117 | return NULL; | |
13118 | } | |
13119 | ||
13120 | ||
13121 | static PyObject *_wrap_PyControlPoint_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
13122 | PyObject *resultobj; | |
13123 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13124 | wxDC *arg2 = 0 ; | |
13125 | PyObject * obj0 = 0 ; | |
13126 | PyObject * obj1 = 0 ; | |
13127 | char *kwnames[] = { | |
13128 | (char *) "self",(char *) "dc", NULL | |
13129 | }; | |
13130 | ||
13131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
13132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13134 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13135 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13136 | SWIG_fail; | |
13137 | if (arg2 == NULL) { | |
13138 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13139 | SWIG_fail; | |
13140 | } | |
13141 | { | |
13142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13143 | (arg1)->base_OnEraseControlPoints(*arg2); | |
13144 | ||
13145 | wxPyEndAllowThreads(__tstate); | |
13146 | if (PyErr_Occurred()) SWIG_fail; | |
13147 | } | |
13148 | Py_INCREF(Py_None); resultobj = Py_None; | |
13149 | return resultobj; | |
13150 | fail: | |
13151 | return NULL; | |
13152 | } | |
13153 | ||
13154 | ||
13155 | static PyObject *_wrap_PyControlPoint_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
13156 | PyObject *resultobj; | |
13157 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13158 | wxDC *arg2 = 0 ; | |
13159 | bool arg3 = (bool) true ; | |
13160 | PyObject * obj0 = 0 ; | |
13161 | PyObject * obj1 = 0 ; | |
13162 | PyObject * obj2 = 0 ; | |
13163 | char *kwnames[] = { | |
13164 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
13165 | }; | |
13166 | ||
13167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyControlPoint_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13170 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13171 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13172 | SWIG_fail; | |
13173 | if (arg2 == NULL) { | |
13174 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13175 | SWIG_fail; | |
13176 | } | |
13177 | if (obj2) { | |
13178 | arg3 = (bool)SWIG_As_bool(obj2); | |
13179 | if (PyErr_Occurred()) SWIG_fail; | |
13180 | } | |
13181 | { | |
13182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13183 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
13184 | ||
13185 | wxPyEndAllowThreads(__tstate); | |
13186 | if (PyErr_Occurred()) SWIG_fail; | |
13187 | } | |
13188 | Py_INCREF(Py_None); resultobj = Py_None; | |
13189 | return resultobj; | |
13190 | fail: | |
13191 | return NULL; | |
13192 | } | |
13193 | ||
13194 | ||
13195 | static PyObject *_wrap_PyControlPoint_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
13196 | PyObject *resultobj; | |
13197 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13198 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
13199 | bool arg3 ; | |
13200 | double arg4 ; | |
13201 | double arg5 ; | |
13202 | int arg6 = (int) 0 ; | |
13203 | int arg7 = (int) 0 ; | |
13204 | PyObject * obj0 = 0 ; | |
13205 | PyObject * obj1 = 0 ; | |
13206 | PyObject * obj2 = 0 ; | |
13207 | PyObject * obj3 = 0 ; | |
13208 | PyObject * obj4 = 0 ; | |
13209 | PyObject * obj5 = 0 ; | |
13210 | PyObject * obj6 = 0 ; | |
13211 | char *kwnames[] = { | |
13212 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13213 | }; | |
13214 | ||
13215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyControlPoint_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
13216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13218 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
13219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13220 | arg3 = (bool)SWIG_As_bool(obj2); | |
13221 | if (PyErr_Occurred()) SWIG_fail; | |
13222 | arg4 = (double)SWIG_As_double(obj3); | |
13223 | if (PyErr_Occurred()) SWIG_fail; | |
13224 | arg5 = (double)SWIG_As_double(obj4); | |
13225 | if (PyErr_Occurred()) SWIG_fail; | |
13226 | if (obj5) { | |
13227 | arg6 = (int)SWIG_As_int(obj5); | |
13228 | if (PyErr_Occurred()) SWIG_fail; | |
13229 | } | |
13230 | if (obj6) { | |
13231 | arg7 = (int)SWIG_As_int(obj6); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
13233 | } | |
13234 | { | |
13235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13236 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
13237 | ||
13238 | wxPyEndAllowThreads(__tstate); | |
13239 | if (PyErr_Occurred()) SWIG_fail; | |
13240 | } | |
13241 | Py_INCREF(Py_None); resultobj = Py_None; | |
13242 | return resultobj; | |
13243 | fail: | |
13244 | return NULL; | |
13245 | } | |
13246 | ||
13247 | ||
13248 | static PyObject *_wrap_PyControlPoint_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
13249 | PyObject *resultobj; | |
13250 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13251 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
13252 | double arg3 ; | |
13253 | double arg4 ; | |
13254 | int arg5 = (int) 0 ; | |
13255 | int arg6 = (int) 0 ; | |
13256 | PyObject * obj0 = 0 ; | |
13257 | PyObject * obj1 = 0 ; | |
13258 | PyObject * obj2 = 0 ; | |
13259 | PyObject * obj3 = 0 ; | |
13260 | PyObject * obj4 = 0 ; | |
13261 | PyObject * obj5 = 0 ; | |
13262 | char *kwnames[] = { | |
13263 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13264 | }; | |
13265 | ||
13266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyControlPoint_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
13270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13271 | arg3 = (double)SWIG_As_double(obj2); | |
13272 | if (PyErr_Occurred()) SWIG_fail; | |
13273 | arg4 = (double)SWIG_As_double(obj3); | |
13274 | if (PyErr_Occurred()) SWIG_fail; | |
13275 | if (obj4) { | |
13276 | arg5 = (int)SWIG_As_int(obj4); | |
13277 | if (PyErr_Occurred()) SWIG_fail; | |
13278 | } | |
13279 | if (obj5) { | |
13280 | arg6 = (int)SWIG_As_int(obj5); | |
13281 | if (PyErr_Occurred()) SWIG_fail; | |
13282 | } | |
13283 | { | |
13284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13285 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
13286 | ||
13287 | wxPyEndAllowThreads(__tstate); | |
13288 | if (PyErr_Occurred()) SWIG_fail; | |
13289 | } | |
13290 | Py_INCREF(Py_None); resultobj = Py_None; | |
13291 | return resultobj; | |
13292 | fail: | |
13293 | return NULL; | |
13294 | } | |
13295 | ||
13296 | ||
13297 | static PyObject *_wrap_PyControlPoint_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
13298 | PyObject *resultobj; | |
13299 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13300 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
13301 | double arg3 ; | |
13302 | double arg4 ; | |
13303 | int arg5 = (int) 0 ; | |
13304 | int arg6 = (int) 0 ; | |
13305 | PyObject * obj0 = 0 ; | |
13306 | PyObject * obj1 = 0 ; | |
13307 | PyObject * obj2 = 0 ; | |
13308 | PyObject * obj3 = 0 ; | |
13309 | PyObject * obj4 = 0 ; | |
13310 | PyObject * obj5 = 0 ; | |
13311 | char *kwnames[] = { | |
13312 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13313 | }; | |
13314 | ||
13315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyControlPoint_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
13319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13320 | arg3 = (double)SWIG_As_double(obj2); | |
13321 | if (PyErr_Occurred()) SWIG_fail; | |
13322 | arg4 = (double)SWIG_As_double(obj3); | |
13323 | if (PyErr_Occurred()) SWIG_fail; | |
13324 | if (obj4) { | |
13325 | arg5 = (int)SWIG_As_int(obj4); | |
13326 | if (PyErr_Occurred()) SWIG_fail; | |
13327 | } | |
13328 | if (obj5) { | |
13329 | arg6 = (int)SWIG_As_int(obj5); | |
13330 | if (PyErr_Occurred()) SWIG_fail; | |
13331 | } | |
13332 | { | |
13333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13334 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
13335 | ||
13336 | wxPyEndAllowThreads(__tstate); | |
13337 | if (PyErr_Occurred()) SWIG_fail; | |
13338 | } | |
13339 | Py_INCREF(Py_None); resultobj = Py_None; | |
13340 | return resultobj; | |
13341 | fail: | |
13342 | return NULL; | |
13343 | } | |
13344 | ||
13345 | ||
13346 | static PyObject *_wrap_PyControlPoint_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
13347 | PyObject *resultobj; | |
13348 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13349 | double arg2 ; | |
13350 | double arg3 ; | |
13351 | PyObject * obj0 = 0 ; | |
13352 | PyObject * obj1 = 0 ; | |
13353 | PyObject * obj2 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self",(char *) "w",(char *) "h", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControlPoint_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13361 | arg2 = (double)SWIG_As_double(obj1); | |
13362 | if (PyErr_Occurred()) SWIG_fail; | |
13363 | arg3 = (double)SWIG_As_double(obj2); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | { | |
13366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13367 | (arg1)->base_OnBeginSize(arg2,arg3); | |
13368 | ||
13369 | wxPyEndAllowThreads(__tstate); | |
13370 | if (PyErr_Occurred()) SWIG_fail; | |
13371 | } | |
13372 | Py_INCREF(Py_None); resultobj = Py_None; | |
13373 | return resultobj; | |
13374 | fail: | |
13375 | return NULL; | |
13376 | } | |
13377 | ||
13378 | ||
13379 | static PyObject *_wrap_PyControlPoint_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
13380 | PyObject *resultobj; | |
13381 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13382 | double arg2 ; | |
13383 | double arg3 ; | |
13384 | PyObject * obj0 = 0 ; | |
13385 | PyObject * obj1 = 0 ; | |
13386 | PyObject * obj2 = 0 ; | |
13387 | char *kwnames[] = { | |
13388 | (char *) "self",(char *) "w",(char *) "h", NULL | |
13389 | }; | |
13390 | ||
13391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControlPoint_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, | |
13393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13394 | arg2 = (double)SWIG_As_double(obj1); | |
13395 | if (PyErr_Occurred()) SWIG_fail; | |
13396 | arg3 = (double)SWIG_As_double(obj2); | |
13397 | if (PyErr_Occurred()) SWIG_fail; | |
13398 | { | |
13399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13400 | (arg1)->base_OnEndSize(arg2,arg3); | |
13401 | ||
13402 | wxPyEndAllowThreads(__tstate); | |
13403 | if (PyErr_Occurred()) SWIG_fail; | |
13404 | } | |
13405 | Py_INCREF(Py_None); resultobj = Py_None; | |
13406 | return resultobj; | |
13407 | fail: | |
13408 | return NULL; | |
13409 | } | |
13410 | ||
13411 | ||
13412 | static PyObject * PyControlPoint_swigregister(PyObject *, PyObject *args) { | |
13413 | PyObject *obj; | |
13414 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13415 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControlPoint, obj); | |
13416 | Py_INCREF(obj); | |
13417 | return Py_BuildValue((char *)""); | |
13418 | } | |
13419 | static PyObject *_wrap_new_PyBitmapShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
13420 | PyObject *resultobj; | |
13421 | wxPyBitmapShape *result; | |
13422 | char *kwnames[] = { | |
13423 | NULL | |
13424 | }; | |
13425 | ||
13426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyBitmapShape",kwnames)) goto fail; | |
13427 | { | |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | result = (wxPyBitmapShape *)new wxPyBitmapShape(); | |
13430 | ||
13431 | wxPyEndAllowThreads(__tstate); | |
13432 | if (PyErr_Occurred()) SWIG_fail; | |
13433 | } | |
13434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapShape, 1); | |
13435 | return resultobj; | |
13436 | fail: | |
13437 | return NULL; | |
13438 | } | |
13439 | ||
13440 | ||
13441 | static PyObject *_wrap_PyBitmapShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
13442 | PyObject *resultobj; | |
13443 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13444 | PyObject *arg2 = (PyObject *) 0 ; | |
13445 | PyObject *arg3 = (PyObject *) 0 ; | |
13446 | PyObject * obj0 = 0 ; | |
13447 | PyObject * obj1 = 0 ; | |
13448 | PyObject * obj2 = 0 ; | |
13449 | char *kwnames[] = { | |
13450 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13451 | }; | |
13452 | ||
13453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13456 | arg2 = obj1; | |
13457 | arg3 = obj2; | |
13458 | { | |
13459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13460 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13461 | ||
13462 | wxPyEndAllowThreads(__tstate); | |
13463 | if (PyErr_Occurred()) SWIG_fail; | |
13464 | } | |
13465 | Py_INCREF(Py_None); resultobj = Py_None; | |
13466 | return resultobj; | |
13467 | fail: | |
13468 | return NULL; | |
13469 | } | |
13470 | ||
13471 | ||
13472 | static PyObject *_wrap_PyBitmapShape_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
13473 | PyObject *resultobj; | |
13474 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13475 | wxBitmap *result; | |
13476 | PyObject * obj0 = 0 ; | |
13477 | char *kwnames[] = { | |
13478 | (char *) "self", NULL | |
13479 | }; | |
13480 | ||
13481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyBitmapShape_GetBitmap",kwnames,&obj0)) goto fail; | |
13482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13484 | { | |
13485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13486 | { | |
13487 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
13488 | result = (wxBitmap *) &_result_ref; | |
13489 | } | |
13490 | ||
13491 | wxPyEndAllowThreads(__tstate); | |
13492 | if (PyErr_Occurred()) SWIG_fail; | |
13493 | } | |
13494 | { | |
13495 | wxBitmap* resultptr = new wxBitmap(*result); | |
13496 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
13497 | } | |
13498 | return resultobj; | |
13499 | fail: | |
13500 | return NULL; | |
13501 | } | |
13502 | ||
13503 | ||
13504 | static PyObject *_wrap_PyBitmapShape_GetFilename(PyObject *, PyObject *args, PyObject *kwargs) { | |
13505 | PyObject *resultobj; | |
13506 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13507 | wxString result; | |
13508 | PyObject * obj0 = 0 ; | |
13509 | char *kwnames[] = { | |
13510 | (char *) "self", NULL | |
13511 | }; | |
13512 | ||
13513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyBitmapShape_GetFilename",kwnames,&obj0)) goto fail; | |
13514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13516 | { | |
13517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13518 | result = (arg1)->GetFilename(); | |
13519 | ||
13520 | wxPyEndAllowThreads(__tstate); | |
13521 | if (PyErr_Occurred()) SWIG_fail; | |
13522 | } | |
13523 | { | |
13524 | #if wxUSE_UNICODE | |
13525 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13526 | #else | |
13527 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13528 | #endif | |
13529 | } | |
13530 | return resultobj; | |
13531 | fail: | |
13532 | return NULL; | |
13533 | } | |
13534 | ||
13535 | ||
13536 | static PyObject *_wrap_PyBitmapShape_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
13537 | PyObject *resultobj; | |
13538 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13539 | wxBitmap *arg2 = 0 ; | |
13540 | PyObject * obj0 = 0 ; | |
13541 | PyObject * obj1 = 0 ; | |
13542 | char *kwnames[] = { | |
13543 | (char *) "self",(char *) "bitmap", NULL | |
13544 | }; | |
13545 | ||
13546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
13550 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13551 | SWIG_fail; | |
13552 | if (arg2 == NULL) { | |
13553 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13554 | SWIG_fail; | |
13555 | } | |
13556 | { | |
13557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13558 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
13559 | ||
13560 | wxPyEndAllowThreads(__tstate); | |
13561 | if (PyErr_Occurred()) SWIG_fail; | |
13562 | } | |
13563 | Py_INCREF(Py_None); resultobj = Py_None; | |
13564 | return resultobj; | |
13565 | fail: | |
13566 | return NULL; | |
13567 | } | |
13568 | ||
13569 | ||
13570 | static PyObject *_wrap_PyBitmapShape_SetFilename(PyObject *, PyObject *args, PyObject *kwargs) { | |
13571 | PyObject *resultobj; | |
13572 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13573 | wxString *arg2 = 0 ; | |
13574 | bool temp2 = false ; | |
13575 | PyObject * obj0 = 0 ; | |
13576 | PyObject * obj1 = 0 ; | |
13577 | char *kwnames[] = { | |
13578 | (char *) "self",(char *) "filename", NULL | |
13579 | }; | |
13580 | ||
13581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
13582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13584 | { | |
13585 | arg2 = wxString_in_helper(obj1); | |
13586 | if (arg2 == NULL) SWIG_fail; | |
13587 | temp2 = true; | |
13588 | } | |
13589 | { | |
13590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13591 | (arg1)->SetFilename((wxString const &)*arg2); | |
13592 | ||
13593 | wxPyEndAllowThreads(__tstate); | |
13594 | if (PyErr_Occurred()) SWIG_fail; | |
13595 | } | |
13596 | Py_INCREF(Py_None); resultobj = Py_None; | |
13597 | { | |
13598 | if (temp2) | |
13599 | delete arg2; | |
13600 | } | |
13601 | return resultobj; | |
13602 | fail: | |
13603 | { | |
13604 | if (temp2) | |
13605 | delete arg2; | |
13606 | } | |
13607 | return NULL; | |
13608 | } | |
13609 | ||
13610 | ||
13611 | static PyObject *_wrap_PyBitmapShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
13612 | PyObject *resultobj; | |
13613 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13614 | PyObject * obj0 = 0 ; | |
13615 | char *kwnames[] = { | |
13616 | (char *) "self", NULL | |
13617 | }; | |
13618 | ||
13619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyBitmapShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
13620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13622 | { | |
13623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13624 | (arg1)->base_OnDelete(); | |
13625 | ||
13626 | wxPyEndAllowThreads(__tstate); | |
13627 | if (PyErr_Occurred()) SWIG_fail; | |
13628 | } | |
13629 | Py_INCREF(Py_None); resultobj = Py_None; | |
13630 | return resultobj; | |
13631 | fail: | |
13632 | return NULL; | |
13633 | } | |
13634 | ||
13635 | ||
13636 | static PyObject *_wrap_PyBitmapShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
13637 | PyObject *resultobj; | |
13638 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13639 | wxDC *arg2 = 0 ; | |
13640 | PyObject * obj0 = 0 ; | |
13641 | PyObject * obj1 = 0 ; | |
13642 | char *kwnames[] = { | |
13643 | (char *) "self",(char *) "dc", NULL | |
13644 | }; | |
13645 | ||
13646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
13647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13650 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13651 | SWIG_fail; | |
13652 | if (arg2 == NULL) { | |
13653 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13654 | SWIG_fail; | |
13655 | } | |
13656 | { | |
13657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13658 | (arg1)->base_OnDraw(*arg2); | |
13659 | ||
13660 | wxPyEndAllowThreads(__tstate); | |
13661 | if (PyErr_Occurred()) SWIG_fail; | |
13662 | } | |
13663 | Py_INCREF(Py_None); resultobj = Py_None; | |
13664 | return resultobj; | |
13665 | fail: | |
13666 | return NULL; | |
13667 | } | |
13668 | ||
13669 | ||
13670 | static PyObject *_wrap_PyBitmapShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
13671 | PyObject *resultobj; | |
13672 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13673 | wxDC *arg2 = 0 ; | |
13674 | PyObject * obj0 = 0 ; | |
13675 | PyObject * obj1 = 0 ; | |
13676 | char *kwnames[] = { | |
13677 | (char *) "self",(char *) "dc", NULL | |
13678 | }; | |
13679 | ||
13680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
13681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13684 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13685 | SWIG_fail; | |
13686 | if (arg2 == NULL) { | |
13687 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13688 | SWIG_fail; | |
13689 | } | |
13690 | { | |
13691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13692 | (arg1)->base_OnDrawContents(*arg2); | |
13693 | ||
13694 | wxPyEndAllowThreads(__tstate); | |
13695 | if (PyErr_Occurred()) SWIG_fail; | |
13696 | } | |
13697 | Py_INCREF(Py_None); resultobj = Py_None; | |
13698 | return resultobj; | |
13699 | fail: | |
13700 | return NULL; | |
13701 | } | |
13702 | ||
13703 | ||
13704 | static PyObject *_wrap_PyBitmapShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
13705 | PyObject *resultobj; | |
13706 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13707 | wxDC *arg2 = 0 ; | |
13708 | bool arg3 = (bool) FALSE ; | |
13709 | PyObject * obj0 = 0 ; | |
13710 | PyObject * obj1 = 0 ; | |
13711 | PyObject * obj2 = 0 ; | |
13712 | char *kwnames[] = { | |
13713 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
13714 | }; | |
13715 | ||
13716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyBitmapShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13721 | SWIG_fail; | |
13722 | if (arg2 == NULL) { | |
13723 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13724 | SWIG_fail; | |
13725 | } | |
13726 | if (obj2) { | |
13727 | arg3 = (bool)SWIG_As_bool(obj2); | |
13728 | if (PyErr_Occurred()) SWIG_fail; | |
13729 | } | |
13730 | { | |
13731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13732 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
13733 | ||
13734 | wxPyEndAllowThreads(__tstate); | |
13735 | if (PyErr_Occurred()) SWIG_fail; | |
13736 | } | |
13737 | Py_INCREF(Py_None); resultobj = Py_None; | |
13738 | return resultobj; | |
13739 | fail: | |
13740 | return NULL; | |
13741 | } | |
13742 | ||
13743 | ||
13744 | static PyObject *_wrap_PyBitmapShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
13745 | PyObject *resultobj; | |
13746 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13747 | wxDC *arg2 = 0 ; | |
13748 | PyObject * obj0 = 0 ; | |
13749 | PyObject * obj1 = 0 ; | |
13750 | char *kwnames[] = { | |
13751 | (char *) "self",(char *) "dc", NULL | |
13752 | }; | |
13753 | ||
13754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
13755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13758 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13759 | SWIG_fail; | |
13760 | if (arg2 == NULL) { | |
13761 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13762 | SWIG_fail; | |
13763 | } | |
13764 | { | |
13765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13766 | (arg1)->base_OnMoveLinks(*arg2); | |
13767 | ||
13768 | wxPyEndAllowThreads(__tstate); | |
13769 | if (PyErr_Occurred()) SWIG_fail; | |
13770 | } | |
13771 | Py_INCREF(Py_None); resultobj = Py_None; | |
13772 | return resultobj; | |
13773 | fail: | |
13774 | return NULL; | |
13775 | } | |
13776 | ||
13777 | ||
13778 | static PyObject *_wrap_PyBitmapShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
13779 | PyObject *resultobj; | |
13780 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13781 | wxDC *arg2 = 0 ; | |
13782 | PyObject * obj0 = 0 ; | |
13783 | PyObject * obj1 = 0 ; | |
13784 | char *kwnames[] = { | |
13785 | (char *) "self",(char *) "dc", NULL | |
13786 | }; | |
13787 | ||
13788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
13789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13792 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13793 | SWIG_fail; | |
13794 | if (arg2 == NULL) { | |
13795 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13796 | SWIG_fail; | |
13797 | } | |
13798 | { | |
13799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13800 | (arg1)->base_OnErase(*arg2); | |
13801 | ||
13802 | wxPyEndAllowThreads(__tstate); | |
13803 | if (PyErr_Occurred()) SWIG_fail; | |
13804 | } | |
13805 | Py_INCREF(Py_None); resultobj = Py_None; | |
13806 | return resultobj; | |
13807 | fail: | |
13808 | return NULL; | |
13809 | } | |
13810 | ||
13811 | ||
13812 | static PyObject *_wrap_PyBitmapShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
13813 | PyObject *resultobj; | |
13814 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13815 | wxDC *arg2 = 0 ; | |
13816 | PyObject * obj0 = 0 ; | |
13817 | PyObject * obj1 = 0 ; | |
13818 | char *kwnames[] = { | |
13819 | (char *) "self",(char *) "dc", NULL | |
13820 | }; | |
13821 | ||
13822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
13823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13825 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13826 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13827 | SWIG_fail; | |
13828 | if (arg2 == NULL) { | |
13829 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13830 | SWIG_fail; | |
13831 | } | |
13832 | { | |
13833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13834 | (arg1)->base_OnEraseContents(*arg2); | |
13835 | ||
13836 | wxPyEndAllowThreads(__tstate); | |
13837 | if (PyErr_Occurred()) SWIG_fail; | |
13838 | } | |
13839 | Py_INCREF(Py_None); resultobj = Py_None; | |
13840 | return resultobj; | |
13841 | fail: | |
13842 | return NULL; | |
13843 | } | |
13844 | ||
13845 | ||
13846 | static PyObject *_wrap_PyBitmapShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
13847 | PyObject *resultobj; | |
13848 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13849 | wxDC *arg2 = 0 ; | |
13850 | PyObject * obj0 = 0 ; | |
13851 | PyObject * obj1 = 0 ; | |
13852 | char *kwnames[] = { | |
13853 | (char *) "self",(char *) "dc", NULL | |
13854 | }; | |
13855 | ||
13856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
13857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13859 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13860 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13861 | SWIG_fail; | |
13862 | if (arg2 == NULL) { | |
13863 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13864 | SWIG_fail; | |
13865 | } | |
13866 | { | |
13867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13868 | (arg1)->base_OnHighlight(*arg2); | |
13869 | ||
13870 | wxPyEndAllowThreads(__tstate); | |
13871 | if (PyErr_Occurred()) SWIG_fail; | |
13872 | } | |
13873 | Py_INCREF(Py_None); resultobj = Py_None; | |
13874 | return resultobj; | |
13875 | fail: | |
13876 | return NULL; | |
13877 | } | |
13878 | ||
13879 | ||
13880 | static PyObject *_wrap_PyBitmapShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
13881 | PyObject *resultobj; | |
13882 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13883 | double arg2 ; | |
13884 | double arg3 ; | |
13885 | int arg4 = (int) 0 ; | |
13886 | int arg5 = (int) 0 ; | |
13887 | PyObject * obj0 = 0 ; | |
13888 | PyObject * obj1 = 0 ; | |
13889 | PyObject * obj2 = 0 ; | |
13890 | PyObject * obj3 = 0 ; | |
13891 | PyObject * obj4 = 0 ; | |
13892 | char *kwnames[] = { | |
13893 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13894 | }; | |
13895 | ||
13896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13899 | arg2 = (double)SWIG_As_double(obj1); | |
13900 | if (PyErr_Occurred()) SWIG_fail; | |
13901 | arg3 = (double)SWIG_As_double(obj2); | |
13902 | if (PyErr_Occurred()) SWIG_fail; | |
13903 | if (obj3) { | |
13904 | arg4 = (int)SWIG_As_int(obj3); | |
13905 | if (PyErr_Occurred()) SWIG_fail; | |
13906 | } | |
13907 | if (obj4) { | |
13908 | arg5 = (int)SWIG_As_int(obj4); | |
13909 | if (PyErr_Occurred()) SWIG_fail; | |
13910 | } | |
13911 | { | |
13912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13913 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
13914 | ||
13915 | wxPyEndAllowThreads(__tstate); | |
13916 | if (PyErr_Occurred()) SWIG_fail; | |
13917 | } | |
13918 | Py_INCREF(Py_None); resultobj = Py_None; | |
13919 | return resultobj; | |
13920 | fail: | |
13921 | return NULL; | |
13922 | } | |
13923 | ||
13924 | ||
13925 | static PyObject *_wrap_PyBitmapShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
13926 | PyObject *resultobj; | |
13927 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13928 | double arg2 ; | |
13929 | double arg3 ; | |
13930 | int arg4 = (int) 0 ; | |
13931 | int arg5 = (int) 0 ; | |
13932 | PyObject * obj0 = 0 ; | |
13933 | PyObject * obj1 = 0 ; | |
13934 | PyObject * obj2 = 0 ; | |
13935 | PyObject * obj3 = 0 ; | |
13936 | PyObject * obj4 = 0 ; | |
13937 | char *kwnames[] = { | |
13938 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13939 | }; | |
13940 | ||
13941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13944 | arg2 = (double)SWIG_As_double(obj1); | |
13945 | if (PyErr_Occurred()) SWIG_fail; | |
13946 | arg3 = (double)SWIG_As_double(obj2); | |
13947 | if (PyErr_Occurred()) SWIG_fail; | |
13948 | if (obj3) { | |
13949 | arg4 = (int)SWIG_As_int(obj3); | |
13950 | if (PyErr_Occurred()) SWIG_fail; | |
13951 | } | |
13952 | if (obj4) { | |
13953 | arg5 = (int)SWIG_As_int(obj4); | |
13954 | if (PyErr_Occurred()) SWIG_fail; | |
13955 | } | |
13956 | { | |
13957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13958 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
13959 | ||
13960 | wxPyEndAllowThreads(__tstate); | |
13961 | if (PyErr_Occurred()) SWIG_fail; | |
13962 | } | |
13963 | Py_INCREF(Py_None); resultobj = Py_None; | |
13964 | return resultobj; | |
13965 | fail: | |
13966 | return NULL; | |
13967 | } | |
13968 | ||
13969 | ||
13970 | static PyObject *_wrap_PyBitmapShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
13971 | PyObject *resultobj; | |
13972 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13973 | double arg2 ; | |
13974 | double arg3 ; | |
13975 | int arg4 = (int) 0 ; | |
13976 | int arg5 = (int) 0 ; | |
13977 | PyObject * obj0 = 0 ; | |
13978 | PyObject * obj1 = 0 ; | |
13979 | PyObject * obj2 = 0 ; | |
13980 | PyObject * obj3 = 0 ; | |
13981 | PyObject * obj4 = 0 ; | |
13982 | char *kwnames[] = { | |
13983 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13984 | }; | |
13985 | ||
13986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
13988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13989 | arg2 = (double)SWIG_As_double(obj1); | |
13990 | if (PyErr_Occurred()) SWIG_fail; | |
13991 | arg3 = (double)SWIG_As_double(obj2); | |
13992 | if (PyErr_Occurred()) SWIG_fail; | |
13993 | if (obj3) { | |
13994 | arg4 = (int)SWIG_As_int(obj3); | |
13995 | if (PyErr_Occurred()) SWIG_fail; | |
13996 | } | |
13997 | if (obj4) { | |
13998 | arg5 = (int)SWIG_As_int(obj4); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
14001 | { | |
14002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14003 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
14004 | ||
14005 | wxPyEndAllowThreads(__tstate); | |
14006 | if (PyErr_Occurred()) SWIG_fail; | |
14007 | } | |
14008 | Py_INCREF(Py_None); resultobj = Py_None; | |
14009 | return resultobj; | |
14010 | fail: | |
14011 | return NULL; | |
14012 | } | |
14013 | ||
14014 | ||
14015 | static PyObject *_wrap_PyBitmapShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14016 | PyObject *resultobj; | |
14017 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14018 | double arg2 ; | |
14019 | double arg3 ; | |
14020 | PyObject * obj0 = 0 ; | |
14021 | PyObject * obj1 = 0 ; | |
14022 | PyObject * obj2 = 0 ; | |
14023 | char *kwnames[] = { | |
14024 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14025 | }; | |
14026 | ||
14027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14030 | arg2 = (double)SWIG_As_double(obj1); | |
14031 | if (PyErr_Occurred()) SWIG_fail; | |
14032 | arg3 = (double)SWIG_As_double(obj2); | |
14033 | if (PyErr_Occurred()) SWIG_fail; | |
14034 | { | |
14035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14036 | (arg1)->base_OnSize(arg2,arg3); | |
14037 | ||
14038 | wxPyEndAllowThreads(__tstate); | |
14039 | if (PyErr_Occurred()) SWIG_fail; | |
14040 | } | |
14041 | Py_INCREF(Py_None); resultobj = Py_None; | |
14042 | return resultobj; | |
14043 | fail: | |
14044 | return NULL; | |
14045 | } | |
14046 | ||
14047 | ||
14048 | static PyObject *_wrap_PyBitmapShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
14049 | PyObject *resultobj; | |
14050 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14051 | wxDC *arg2 = 0 ; | |
14052 | double arg3 ; | |
14053 | double arg4 ; | |
14054 | double arg5 ; | |
14055 | double arg6 ; | |
14056 | bool arg7 = (bool) true ; | |
14057 | bool result; | |
14058 | PyObject * obj0 = 0 ; | |
14059 | PyObject * obj1 = 0 ; | |
14060 | PyObject * obj2 = 0 ; | |
14061 | PyObject * obj3 = 0 ; | |
14062 | PyObject * obj4 = 0 ; | |
14063 | PyObject * obj5 = 0 ; | |
14064 | PyObject * obj6 = 0 ; | |
14065 | char *kwnames[] = { | |
14066 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
14067 | }; | |
14068 | ||
14069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyBitmapShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14072 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14073 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14074 | SWIG_fail; | |
14075 | if (arg2 == NULL) { | |
14076 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14077 | SWIG_fail; | |
14078 | } | |
14079 | arg3 = (double)SWIG_As_double(obj2); | |
14080 | if (PyErr_Occurred()) SWIG_fail; | |
14081 | arg4 = (double)SWIG_As_double(obj3); | |
14082 | if (PyErr_Occurred()) SWIG_fail; | |
14083 | arg5 = (double)SWIG_As_double(obj4); | |
14084 | if (PyErr_Occurred()) SWIG_fail; | |
14085 | arg6 = (double)SWIG_As_double(obj5); | |
14086 | if (PyErr_Occurred()) SWIG_fail; | |
14087 | if (obj6) { | |
14088 | arg7 = (bool)SWIG_As_bool(obj6); | |
14089 | if (PyErr_Occurred()) SWIG_fail; | |
14090 | } | |
14091 | { | |
14092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14093 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
14094 | ||
14095 | wxPyEndAllowThreads(__tstate); | |
14096 | if (PyErr_Occurred()) SWIG_fail; | |
14097 | } | |
14098 | { | |
14099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14100 | } | |
14101 | return resultobj; | |
14102 | fail: | |
14103 | return NULL; | |
14104 | } | |
14105 | ||
14106 | ||
14107 | static PyObject *_wrap_PyBitmapShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
14108 | PyObject *resultobj; | |
14109 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14110 | wxDC *arg2 = 0 ; | |
14111 | double arg3 ; | |
14112 | double arg4 ; | |
14113 | double arg5 ; | |
14114 | double arg6 ; | |
14115 | bool arg7 = (bool) true ; | |
14116 | PyObject * obj0 = 0 ; | |
14117 | PyObject * obj1 = 0 ; | |
14118 | PyObject * obj2 = 0 ; | |
14119 | PyObject * obj3 = 0 ; | |
14120 | PyObject * obj4 = 0 ; | |
14121 | PyObject * obj5 = 0 ; | |
14122 | PyObject * obj6 = 0 ; | |
14123 | char *kwnames[] = { | |
14124 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
14125 | }; | |
14126 | ||
14127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyBitmapShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14131 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14132 | SWIG_fail; | |
14133 | if (arg2 == NULL) { | |
14134 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14135 | SWIG_fail; | |
14136 | } | |
14137 | arg3 = (double)SWIG_As_double(obj2); | |
14138 | if (PyErr_Occurred()) SWIG_fail; | |
14139 | arg4 = (double)SWIG_As_double(obj3); | |
14140 | if (PyErr_Occurred()) SWIG_fail; | |
14141 | arg5 = (double)SWIG_As_double(obj4); | |
14142 | if (PyErr_Occurred()) SWIG_fail; | |
14143 | arg6 = (double)SWIG_As_double(obj5); | |
14144 | if (PyErr_Occurred()) SWIG_fail; | |
14145 | if (obj6) { | |
14146 | arg7 = (bool)SWIG_As_bool(obj6); | |
14147 | if (PyErr_Occurred()) SWIG_fail; | |
14148 | } | |
14149 | { | |
14150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14151 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
14152 | ||
14153 | wxPyEndAllowThreads(__tstate); | |
14154 | if (PyErr_Occurred()) SWIG_fail; | |
14155 | } | |
14156 | Py_INCREF(Py_None); resultobj = Py_None; | |
14157 | return resultobj; | |
14158 | fail: | |
14159 | return NULL; | |
14160 | } | |
14161 | ||
14162 | ||
14163 | static PyObject *_wrap_PyBitmapShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
14164 | PyObject *resultobj; | |
14165 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14166 | bool arg2 ; | |
14167 | double arg3 ; | |
14168 | double arg4 ; | |
14169 | int arg5 = (int) 0 ; | |
14170 | int arg6 = (int) 0 ; | |
14171 | PyObject * obj0 = 0 ; | |
14172 | PyObject * obj1 = 0 ; | |
14173 | PyObject * obj2 = 0 ; | |
14174 | PyObject * obj3 = 0 ; | |
14175 | PyObject * obj4 = 0 ; | |
14176 | PyObject * obj5 = 0 ; | |
14177 | char *kwnames[] = { | |
14178 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14179 | }; | |
14180 | ||
14181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyBitmapShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14184 | arg2 = (bool)SWIG_As_bool(obj1); | |
14185 | if (PyErr_Occurred()) SWIG_fail; | |
14186 | arg3 = (double)SWIG_As_double(obj2); | |
14187 | if (PyErr_Occurred()) SWIG_fail; | |
14188 | arg4 = (double)SWIG_As_double(obj3); | |
14189 | if (PyErr_Occurred()) SWIG_fail; | |
14190 | if (obj4) { | |
14191 | arg5 = (int)SWIG_As_int(obj4); | |
14192 | if (PyErr_Occurred()) SWIG_fail; | |
14193 | } | |
14194 | if (obj5) { | |
14195 | arg6 = (int)SWIG_As_int(obj5); | |
14196 | if (PyErr_Occurred()) SWIG_fail; | |
14197 | } | |
14198 | { | |
14199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14200 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
14201 | ||
14202 | wxPyEndAllowThreads(__tstate); | |
14203 | if (PyErr_Occurred()) SWIG_fail; | |
14204 | } | |
14205 | Py_INCREF(Py_None); resultobj = Py_None; | |
14206 | return resultobj; | |
14207 | fail: | |
14208 | return NULL; | |
14209 | } | |
14210 | ||
14211 | ||
14212 | static PyObject *_wrap_PyBitmapShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
14213 | PyObject *resultobj; | |
14214 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14215 | double arg2 ; | |
14216 | double arg3 ; | |
14217 | int arg4 = (int) 0 ; | |
14218 | int arg5 = (int) 0 ; | |
14219 | PyObject * obj0 = 0 ; | |
14220 | PyObject * obj1 = 0 ; | |
14221 | PyObject * obj2 = 0 ; | |
14222 | PyObject * obj3 = 0 ; | |
14223 | PyObject * obj4 = 0 ; | |
14224 | char *kwnames[] = { | |
14225 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14226 | }; | |
14227 | ||
14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14231 | arg2 = (double)SWIG_As_double(obj1); | |
14232 | if (PyErr_Occurred()) SWIG_fail; | |
14233 | arg3 = (double)SWIG_As_double(obj2); | |
14234 | if (PyErr_Occurred()) SWIG_fail; | |
14235 | if (obj3) { | |
14236 | arg4 = (int)SWIG_As_int(obj3); | |
14237 | if (PyErr_Occurred()) SWIG_fail; | |
14238 | } | |
14239 | if (obj4) { | |
14240 | arg5 = (int)SWIG_As_int(obj4); | |
14241 | if (PyErr_Occurred()) SWIG_fail; | |
14242 | } | |
14243 | { | |
14244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14245 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
14246 | ||
14247 | wxPyEndAllowThreads(__tstate); | |
14248 | if (PyErr_Occurred()) SWIG_fail; | |
14249 | } | |
14250 | Py_INCREF(Py_None); resultobj = Py_None; | |
14251 | return resultobj; | |
14252 | fail: | |
14253 | return NULL; | |
14254 | } | |
14255 | ||
14256 | ||
14257 | static PyObject *_wrap_PyBitmapShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
14258 | PyObject *resultobj; | |
14259 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14260 | double arg2 ; | |
14261 | double arg3 ; | |
14262 | int arg4 = (int) 0 ; | |
14263 | int arg5 = (int) 0 ; | |
14264 | PyObject * obj0 = 0 ; | |
14265 | PyObject * obj1 = 0 ; | |
14266 | PyObject * obj2 = 0 ; | |
14267 | PyObject * obj3 = 0 ; | |
14268 | PyObject * obj4 = 0 ; | |
14269 | char *kwnames[] = { | |
14270 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14271 | }; | |
14272 | ||
14273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14276 | arg2 = (double)SWIG_As_double(obj1); | |
14277 | if (PyErr_Occurred()) SWIG_fail; | |
14278 | arg3 = (double)SWIG_As_double(obj2); | |
14279 | if (PyErr_Occurred()) SWIG_fail; | |
14280 | if (obj3) { | |
14281 | arg4 = (int)SWIG_As_int(obj3); | |
14282 | if (PyErr_Occurred()) SWIG_fail; | |
14283 | } | |
14284 | if (obj4) { | |
14285 | arg5 = (int)SWIG_As_int(obj4); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
14288 | { | |
14289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14290 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
14291 | ||
14292 | wxPyEndAllowThreads(__tstate); | |
14293 | if (PyErr_Occurred()) SWIG_fail; | |
14294 | } | |
14295 | Py_INCREF(Py_None); resultobj = Py_None; | |
14296 | return resultobj; | |
14297 | fail: | |
14298 | return NULL; | |
14299 | } | |
14300 | ||
14301 | ||
14302 | static PyObject *_wrap_PyBitmapShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
14303 | PyObject *resultobj; | |
14304 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14305 | bool arg2 ; | |
14306 | double arg3 ; | |
14307 | double arg4 ; | |
14308 | int arg5 = (int) 0 ; | |
14309 | int arg6 = (int) 0 ; | |
14310 | PyObject * obj0 = 0 ; | |
14311 | PyObject * obj1 = 0 ; | |
14312 | PyObject * obj2 = 0 ; | |
14313 | PyObject * obj3 = 0 ; | |
14314 | PyObject * obj4 = 0 ; | |
14315 | PyObject * obj5 = 0 ; | |
14316 | char *kwnames[] = { | |
14317 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14318 | }; | |
14319 | ||
14320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyBitmapShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14323 | arg2 = (bool)SWIG_As_bool(obj1); | |
14324 | if (PyErr_Occurred()) SWIG_fail; | |
14325 | arg3 = (double)SWIG_As_double(obj2); | |
14326 | if (PyErr_Occurred()) SWIG_fail; | |
14327 | arg4 = (double)SWIG_As_double(obj3); | |
14328 | if (PyErr_Occurred()) SWIG_fail; | |
14329 | if (obj4) { | |
14330 | arg5 = (int)SWIG_As_int(obj4); | |
14331 | if (PyErr_Occurred()) SWIG_fail; | |
14332 | } | |
14333 | if (obj5) { | |
14334 | arg6 = (int)SWIG_As_int(obj5); | |
14335 | if (PyErr_Occurred()) SWIG_fail; | |
14336 | } | |
14337 | { | |
14338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14339 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
14340 | ||
14341 | wxPyEndAllowThreads(__tstate); | |
14342 | if (PyErr_Occurred()) SWIG_fail; | |
14343 | } | |
14344 | Py_INCREF(Py_None); resultobj = Py_None; | |
14345 | return resultobj; | |
14346 | fail: | |
14347 | return NULL; | |
14348 | } | |
14349 | ||
14350 | ||
14351 | static PyObject *_wrap_PyBitmapShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
14352 | PyObject *resultobj; | |
14353 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14354 | double arg2 ; | |
14355 | double arg3 ; | |
14356 | int arg4 = (int) 0 ; | |
14357 | int arg5 = (int) 0 ; | |
14358 | PyObject * obj0 = 0 ; | |
14359 | PyObject * obj1 = 0 ; | |
14360 | PyObject * obj2 = 0 ; | |
14361 | PyObject * obj3 = 0 ; | |
14362 | PyObject * obj4 = 0 ; | |
14363 | char *kwnames[] = { | |
14364 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14365 | }; | |
14366 | ||
14367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14370 | arg2 = (double)SWIG_As_double(obj1); | |
14371 | if (PyErr_Occurred()) SWIG_fail; | |
14372 | arg3 = (double)SWIG_As_double(obj2); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | if (obj3) { | |
14375 | arg4 = (int)SWIG_As_int(obj3); | |
14376 | if (PyErr_Occurred()) SWIG_fail; | |
14377 | } | |
14378 | if (obj4) { | |
14379 | arg5 = (int)SWIG_As_int(obj4); | |
14380 | if (PyErr_Occurred()) SWIG_fail; | |
14381 | } | |
14382 | { | |
14383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14384 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
14385 | ||
14386 | wxPyEndAllowThreads(__tstate); | |
14387 | if (PyErr_Occurred()) SWIG_fail; | |
14388 | } | |
14389 | Py_INCREF(Py_None); resultobj = Py_None; | |
14390 | return resultobj; | |
14391 | fail: | |
14392 | return NULL; | |
14393 | } | |
14394 | ||
14395 | ||
14396 | static PyObject *_wrap_PyBitmapShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
14397 | PyObject *resultobj; | |
14398 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14399 | double arg2 ; | |
14400 | double arg3 ; | |
14401 | int arg4 = (int) 0 ; | |
14402 | int arg5 = (int) 0 ; | |
14403 | PyObject * obj0 = 0 ; | |
14404 | PyObject * obj1 = 0 ; | |
14405 | PyObject * obj2 = 0 ; | |
14406 | PyObject * obj3 = 0 ; | |
14407 | PyObject * obj4 = 0 ; | |
14408 | char *kwnames[] = { | |
14409 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14410 | }; | |
14411 | ||
14412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14415 | arg2 = (double)SWIG_As_double(obj1); | |
14416 | if (PyErr_Occurred()) SWIG_fail; | |
14417 | arg3 = (double)SWIG_As_double(obj2); | |
14418 | if (PyErr_Occurred()) SWIG_fail; | |
14419 | if (obj3) { | |
14420 | arg4 = (int)SWIG_As_int(obj3); | |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
14423 | if (obj4) { | |
14424 | arg5 = (int)SWIG_As_int(obj4); | |
14425 | if (PyErr_Occurred()) SWIG_fail; | |
14426 | } | |
14427 | { | |
14428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14429 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
14430 | ||
14431 | wxPyEndAllowThreads(__tstate); | |
14432 | if (PyErr_Occurred()) SWIG_fail; | |
14433 | } | |
14434 | Py_INCREF(Py_None); resultobj = Py_None; | |
14435 | return resultobj; | |
14436 | fail: | |
14437 | return NULL; | |
14438 | } | |
14439 | ||
14440 | ||
14441 | static PyObject *_wrap_PyBitmapShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
14442 | PyObject *resultobj; | |
14443 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14444 | wxDC *arg2 = 0 ; | |
14445 | double arg3 ; | |
14446 | double arg4 ; | |
14447 | double arg5 ; | |
14448 | double arg6 ; | |
14449 | PyObject * obj0 = 0 ; | |
14450 | PyObject * obj1 = 0 ; | |
14451 | PyObject * obj2 = 0 ; | |
14452 | PyObject * obj3 = 0 ; | |
14453 | PyObject * obj4 = 0 ; | |
14454 | PyObject * obj5 = 0 ; | |
14455 | char *kwnames[] = { | |
14456 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
14457 | }; | |
14458 | ||
14459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyBitmapShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14464 | SWIG_fail; | |
14465 | if (arg2 == NULL) { | |
14466 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14467 | SWIG_fail; | |
14468 | } | |
14469 | arg3 = (double)SWIG_As_double(obj2); | |
14470 | if (PyErr_Occurred()) SWIG_fail; | |
14471 | arg4 = (double)SWIG_As_double(obj3); | |
14472 | if (PyErr_Occurred()) SWIG_fail; | |
14473 | arg5 = (double)SWIG_As_double(obj4); | |
14474 | if (PyErr_Occurred()) SWIG_fail; | |
14475 | arg6 = (double)SWIG_As_double(obj5); | |
14476 | if (PyErr_Occurred()) SWIG_fail; | |
14477 | { | |
14478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14479 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
14480 | ||
14481 | wxPyEndAllowThreads(__tstate); | |
14482 | if (PyErr_Occurred()) SWIG_fail; | |
14483 | } | |
14484 | Py_INCREF(Py_None); resultobj = Py_None; | |
14485 | return resultobj; | |
14486 | fail: | |
14487 | return NULL; | |
14488 | } | |
14489 | ||
14490 | ||
14491 | static PyObject *_wrap_PyBitmapShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
14492 | PyObject *resultobj; | |
14493 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14494 | wxDC *arg2 = 0 ; | |
14495 | PyObject * obj0 = 0 ; | |
14496 | PyObject * obj1 = 0 ; | |
14497 | char *kwnames[] = { | |
14498 | (char *) "self",(char *) "dc", NULL | |
14499 | }; | |
14500 | ||
14501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
14502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14505 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14506 | SWIG_fail; | |
14507 | if (arg2 == NULL) { | |
14508 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14509 | SWIG_fail; | |
14510 | } | |
14511 | { | |
14512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14513 | (arg1)->base_OnDrawControlPoints(*arg2); | |
14514 | ||
14515 | wxPyEndAllowThreads(__tstate); | |
14516 | if (PyErr_Occurred()) SWIG_fail; | |
14517 | } | |
14518 | Py_INCREF(Py_None); resultobj = Py_None; | |
14519 | return resultobj; | |
14520 | fail: | |
14521 | return NULL; | |
14522 | } | |
14523 | ||
14524 | ||
14525 | static PyObject *_wrap_PyBitmapShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
14526 | PyObject *resultobj; | |
14527 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14528 | wxDC *arg2 = 0 ; | |
14529 | PyObject * obj0 = 0 ; | |
14530 | PyObject * obj1 = 0 ; | |
14531 | char *kwnames[] = { | |
14532 | (char *) "self",(char *) "dc", NULL | |
14533 | }; | |
14534 | ||
14535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
14536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14539 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14540 | SWIG_fail; | |
14541 | if (arg2 == NULL) { | |
14542 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14543 | SWIG_fail; | |
14544 | } | |
14545 | { | |
14546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14547 | (arg1)->base_OnEraseControlPoints(*arg2); | |
14548 | ||
14549 | wxPyEndAllowThreads(__tstate); | |
14550 | if (PyErr_Occurred()) SWIG_fail; | |
14551 | } | |
14552 | Py_INCREF(Py_None); resultobj = Py_None; | |
14553 | return resultobj; | |
14554 | fail: | |
14555 | return NULL; | |
14556 | } | |
14557 | ||
14558 | ||
14559 | static PyObject *_wrap_PyBitmapShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
14560 | PyObject *resultobj; | |
14561 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14562 | wxDC *arg2 = 0 ; | |
14563 | bool arg3 = (bool) true ; | |
14564 | PyObject * obj0 = 0 ; | |
14565 | PyObject * obj1 = 0 ; | |
14566 | PyObject * obj2 = 0 ; | |
14567 | char *kwnames[] = { | |
14568 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
14569 | }; | |
14570 | ||
14571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyBitmapShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14574 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14575 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14576 | SWIG_fail; | |
14577 | if (arg2 == NULL) { | |
14578 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14579 | SWIG_fail; | |
14580 | } | |
14581 | if (obj2) { | |
14582 | arg3 = (bool)SWIG_As_bool(obj2); | |
14583 | if (PyErr_Occurred()) SWIG_fail; | |
14584 | } | |
14585 | { | |
14586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14587 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
14588 | ||
14589 | wxPyEndAllowThreads(__tstate); | |
14590 | if (PyErr_Occurred()) SWIG_fail; | |
14591 | } | |
14592 | Py_INCREF(Py_None); resultobj = Py_None; | |
14593 | return resultobj; | |
14594 | fail: | |
14595 | return NULL; | |
14596 | } | |
14597 | ||
14598 | ||
14599 | static PyObject *_wrap_PyBitmapShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
14600 | PyObject *resultobj; | |
14601 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14602 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
14603 | bool arg3 ; | |
14604 | double arg4 ; | |
14605 | double arg5 ; | |
14606 | int arg6 = (int) 0 ; | |
14607 | int arg7 = (int) 0 ; | |
14608 | PyObject * obj0 = 0 ; | |
14609 | PyObject * obj1 = 0 ; | |
14610 | PyObject * obj2 = 0 ; | |
14611 | PyObject * obj3 = 0 ; | |
14612 | PyObject * obj4 = 0 ; | |
14613 | PyObject * obj5 = 0 ; | |
14614 | PyObject * obj6 = 0 ; | |
14615 | char *kwnames[] = { | |
14616 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14617 | }; | |
14618 | ||
14619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyBitmapShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14622 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
14623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14624 | arg3 = (bool)SWIG_As_bool(obj2); | |
14625 | if (PyErr_Occurred()) SWIG_fail; | |
14626 | arg4 = (double)SWIG_As_double(obj3); | |
14627 | if (PyErr_Occurred()) SWIG_fail; | |
14628 | arg5 = (double)SWIG_As_double(obj4); | |
14629 | if (PyErr_Occurred()) SWIG_fail; | |
14630 | if (obj5) { | |
14631 | arg6 = (int)SWIG_As_int(obj5); | |
14632 | if (PyErr_Occurred()) SWIG_fail; | |
14633 | } | |
14634 | if (obj6) { | |
14635 | arg7 = (int)SWIG_As_int(obj6); | |
14636 | if (PyErr_Occurred()) SWIG_fail; | |
14637 | } | |
14638 | { | |
14639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14640 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
14641 | ||
14642 | wxPyEndAllowThreads(__tstate); | |
14643 | if (PyErr_Occurred()) SWIG_fail; | |
14644 | } | |
14645 | Py_INCREF(Py_None); resultobj = Py_None; | |
14646 | return resultobj; | |
14647 | fail: | |
14648 | return NULL; | |
14649 | } | |
14650 | ||
14651 | ||
14652 | static PyObject *_wrap_PyBitmapShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
14653 | PyObject *resultobj; | |
14654 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14655 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
14656 | double arg3 ; | |
14657 | double arg4 ; | |
14658 | int arg5 = (int) 0 ; | |
14659 | int arg6 = (int) 0 ; | |
14660 | PyObject * obj0 = 0 ; | |
14661 | PyObject * obj1 = 0 ; | |
14662 | PyObject * obj2 = 0 ; | |
14663 | PyObject * obj3 = 0 ; | |
14664 | PyObject * obj4 = 0 ; | |
14665 | PyObject * obj5 = 0 ; | |
14666 | char *kwnames[] = { | |
14667 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14668 | }; | |
14669 | ||
14670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyBitmapShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14673 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
14674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14675 | arg3 = (double)SWIG_As_double(obj2); | |
14676 | if (PyErr_Occurred()) SWIG_fail; | |
14677 | arg4 = (double)SWIG_As_double(obj3); | |
14678 | if (PyErr_Occurred()) SWIG_fail; | |
14679 | if (obj4) { | |
14680 | arg5 = (int)SWIG_As_int(obj4); | |
14681 | if (PyErr_Occurred()) SWIG_fail; | |
14682 | } | |
14683 | if (obj5) { | |
14684 | arg6 = (int)SWIG_As_int(obj5); | |
14685 | if (PyErr_Occurred()) SWIG_fail; | |
14686 | } | |
14687 | { | |
14688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14689 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
14690 | ||
14691 | wxPyEndAllowThreads(__tstate); | |
14692 | if (PyErr_Occurred()) SWIG_fail; | |
14693 | } | |
14694 | Py_INCREF(Py_None); resultobj = Py_None; | |
14695 | return resultobj; | |
14696 | fail: | |
14697 | return NULL; | |
14698 | } | |
14699 | ||
14700 | ||
14701 | static PyObject *_wrap_PyBitmapShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
14702 | PyObject *resultobj; | |
14703 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14704 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
14705 | double arg3 ; | |
14706 | double arg4 ; | |
14707 | int arg5 = (int) 0 ; | |
14708 | int arg6 = (int) 0 ; | |
14709 | PyObject * obj0 = 0 ; | |
14710 | PyObject * obj1 = 0 ; | |
14711 | PyObject * obj2 = 0 ; | |
14712 | PyObject * obj3 = 0 ; | |
14713 | PyObject * obj4 = 0 ; | |
14714 | PyObject * obj5 = 0 ; | |
14715 | char *kwnames[] = { | |
14716 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14717 | }; | |
14718 | ||
14719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyBitmapShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
14723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14724 | arg3 = (double)SWIG_As_double(obj2); | |
14725 | if (PyErr_Occurred()) SWIG_fail; | |
14726 | arg4 = (double)SWIG_As_double(obj3); | |
14727 | if (PyErr_Occurred()) SWIG_fail; | |
14728 | if (obj4) { | |
14729 | arg5 = (int)SWIG_As_int(obj4); | |
14730 | if (PyErr_Occurred()) SWIG_fail; | |
14731 | } | |
14732 | if (obj5) { | |
14733 | arg6 = (int)SWIG_As_int(obj5); | |
14734 | if (PyErr_Occurred()) SWIG_fail; | |
14735 | } | |
14736 | { | |
14737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14738 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
14739 | ||
14740 | wxPyEndAllowThreads(__tstate); | |
14741 | if (PyErr_Occurred()) SWIG_fail; | |
14742 | } | |
14743 | Py_INCREF(Py_None); resultobj = Py_None; | |
14744 | return resultobj; | |
14745 | fail: | |
14746 | return NULL; | |
14747 | } | |
14748 | ||
14749 | ||
14750 | static PyObject *_wrap_PyBitmapShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14751 | PyObject *resultobj; | |
14752 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14753 | double arg2 ; | |
14754 | double arg3 ; | |
14755 | PyObject * obj0 = 0 ; | |
14756 | PyObject * obj1 = 0 ; | |
14757 | PyObject * obj2 = 0 ; | |
14758 | char *kwnames[] = { | |
14759 | (char *) "self",(char *) "w",(char *) "h", NULL | |
14760 | }; | |
14761 | ||
14762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14765 | arg2 = (double)SWIG_As_double(obj1); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
14767 | arg3 = (double)SWIG_As_double(obj2); | |
14768 | if (PyErr_Occurred()) SWIG_fail; | |
14769 | { | |
14770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14771 | (arg1)->base_OnBeginSize(arg2,arg3); | |
14772 | ||
14773 | wxPyEndAllowThreads(__tstate); | |
14774 | if (PyErr_Occurred()) SWIG_fail; | |
14775 | } | |
14776 | Py_INCREF(Py_None); resultobj = Py_None; | |
14777 | return resultobj; | |
14778 | fail: | |
14779 | return NULL; | |
14780 | } | |
14781 | ||
14782 | ||
14783 | static PyObject *_wrap_PyBitmapShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14784 | PyObject *resultobj; | |
14785 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14786 | double arg2 ; | |
14787 | double arg3 ; | |
14788 | PyObject * obj0 = 0 ; | |
14789 | PyObject * obj1 = 0 ; | |
14790 | PyObject * obj2 = 0 ; | |
14791 | char *kwnames[] = { | |
14792 | (char *) "self",(char *) "w",(char *) "h", NULL | |
14793 | }; | |
14794 | ||
14795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, | |
14797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14798 | arg2 = (double)SWIG_As_double(obj1); | |
14799 | if (PyErr_Occurred()) SWIG_fail; | |
14800 | arg3 = (double)SWIG_As_double(obj2); | |
14801 | if (PyErr_Occurred()) SWIG_fail; | |
14802 | { | |
14803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14804 | (arg1)->base_OnEndSize(arg2,arg3); | |
14805 | ||
14806 | wxPyEndAllowThreads(__tstate); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
14809 | Py_INCREF(Py_None); resultobj = Py_None; | |
14810 | return resultobj; | |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | static PyObject * PyBitmapShape_swigregister(PyObject *, PyObject *args) { | |
14817 | PyObject *obj; | |
14818 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14819 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapShape, obj); | |
14820 | Py_INCREF(obj); | |
14821 | return Py_BuildValue((char *)""); | |
14822 | } | |
14823 | static PyObject *_wrap_new_PyDrawnShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
14824 | PyObject *resultobj; | |
14825 | wxPyDrawnShape *result; | |
14826 | char *kwnames[] = { | |
14827 | NULL | |
14828 | }; | |
14829 | ||
14830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyDrawnShape",kwnames)) goto fail; | |
14831 | { | |
14832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14833 | result = (wxPyDrawnShape *)new wxPyDrawnShape(); | |
14834 | ||
14835 | wxPyEndAllowThreads(__tstate); | |
14836 | if (PyErr_Occurred()) SWIG_fail; | |
14837 | } | |
14838 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDrawnShape, 1); | |
14839 | return resultobj; | |
14840 | fail: | |
14841 | return NULL; | |
14842 | } | |
14843 | ||
14844 | ||
14845 | static PyObject *_wrap_PyDrawnShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
14846 | PyObject *resultobj; | |
14847 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14848 | PyObject *arg2 = (PyObject *) 0 ; | |
14849 | PyObject *arg3 = (PyObject *) 0 ; | |
14850 | PyObject * obj0 = 0 ; | |
14851 | PyObject * obj1 = 0 ; | |
14852 | PyObject * obj2 = 0 ; | |
14853 | char *kwnames[] = { | |
14854 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14855 | }; | |
14856 | ||
14857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
14859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14860 | arg2 = obj1; | |
14861 | arg3 = obj2; | |
14862 | { | |
14863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14864 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14865 | ||
14866 | wxPyEndAllowThreads(__tstate); | |
14867 | if (PyErr_Occurred()) SWIG_fail; | |
14868 | } | |
14869 | Py_INCREF(Py_None); resultobj = Py_None; | |
14870 | return resultobj; | |
14871 | fail: | |
14872 | return NULL; | |
14873 | } | |
14874 | ||
14875 | ||
14876 | static PyObject *_wrap_PyDrawnShape_CalculateSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14877 | PyObject *resultobj; | |
14878 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14879 | PyObject * obj0 = 0 ; | |
14880 | char *kwnames[] = { | |
14881 | (char *) "self", NULL | |
14882 | }; | |
14883 | ||
14884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_CalculateSize",kwnames,&obj0)) goto fail; | |
14885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
14886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14887 | { | |
14888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14889 | (arg1)->CalculateSize(); | |
14890 | ||
14891 | wxPyEndAllowThreads(__tstate); | |
14892 | if (PyErr_Occurred()) SWIG_fail; | |
14893 | } | |
14894 | Py_INCREF(Py_None); resultobj = Py_None; | |
14895 | return resultobj; | |
14896 | fail: | |
14897 | return NULL; | |
14898 | } | |
14899 | ||
14900 | ||
14901 | static PyObject *_wrap_PyDrawnShape_DestroyClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
14902 | PyObject *resultobj; | |
14903 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14904 | PyObject * obj0 = 0 ; | |
14905 | char *kwnames[] = { | |
14906 | (char *) "self", NULL | |
14907 | }; | |
14908 | ||
14909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_DestroyClippingRect",kwnames,&obj0)) goto fail; | |
14910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
14911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14912 | { | |
14913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14914 | (arg1)->DestroyClippingRect(); | |
14915 | ||
14916 | wxPyEndAllowThreads(__tstate); | |
14917 | if (PyErr_Occurred()) SWIG_fail; | |
14918 | } | |
14919 | Py_INCREF(Py_None); resultobj = Py_None; | |
14920 | return resultobj; | |
14921 | fail: | |
14922 | return NULL; | |
14923 | } | |
14924 | ||
14925 | ||
14926 | static PyObject *_wrap_PyDrawnShape_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { | |
14927 | PyObject *resultobj; | |
14928 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14929 | wxPoint *arg2 = 0 ; | |
14930 | wxPoint *arg3 = 0 ; | |
14931 | wxPoint *arg4 = 0 ; | |
14932 | wxPoint temp2 ; | |
14933 | wxPoint temp3 ; | |
14934 | wxPoint temp4 ; | |
14935 | PyObject * obj0 = 0 ; | |
14936 | PyObject * obj1 = 0 ; | |
14937 | PyObject * obj2 = 0 ; | |
14938 | PyObject * obj3 = 0 ; | |
14939 | char *kwnames[] = { | |
14940 | (char *) "self",(char *) "centrePoint",(char *) "startPoint",(char *) "endPoint", NULL | |
14941 | }; | |
14942 | ||
14943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyDrawnShape_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
14945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14946 | { | |
14947 | arg2 = &temp2; | |
14948 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14949 | } | |
14950 | { | |
14951 | arg3 = &temp3; | |
14952 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14953 | } | |
14954 | { | |
14955 | arg4 = &temp4; | |
14956 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14957 | } | |
14958 | { | |
14959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14960 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
14961 | ||
14962 | wxPyEndAllowThreads(__tstate); | |
14963 | if (PyErr_Occurred()) SWIG_fail; | |
14964 | } | |
14965 | Py_INCREF(Py_None); resultobj = Py_None; | |
14966 | return resultobj; | |
14967 | fail: | |
14968 | return NULL; | |
14969 | } | |
14970 | ||
14971 | ||
14972 | static PyObject *_wrap_PyDrawnShape_DrawAtAngle(PyObject *, PyObject *args, PyObject *kwargs) { | |
14973 | PyObject *resultobj; | |
14974 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14975 | int arg2 ; | |
14976 | PyObject * obj0 = 0 ; | |
14977 | PyObject * obj1 = 0 ; | |
14978 | char *kwnames[] = { | |
14979 | (char *) "self",(char *) "angle", NULL | |
14980 | }; | |
14981 | ||
14982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawAtAngle",kwnames,&obj0,&obj1)) goto fail; | |
14983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
14984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14985 | arg2 = (int)SWIG_As_int(obj1); | |
14986 | if (PyErr_Occurred()) SWIG_fail; | |
14987 | { | |
14988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14989 | (arg1)->DrawAtAngle(arg2); | |
14990 | ||
14991 | wxPyEndAllowThreads(__tstate); | |
14992 | if (PyErr_Occurred()) SWIG_fail; | |
14993 | } | |
14994 | Py_INCREF(Py_None); resultobj = Py_None; | |
14995 | return resultobj; | |
14996 | fail: | |
14997 | return NULL; | |
14998 | } | |
14999 | ||
15000 | ||
15001 | static PyObject *_wrap_PyDrawnShape_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { | |
15002 | PyObject *resultobj; | |
15003 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15004 | wxRect *arg2 = 0 ; | |
15005 | double arg3 ; | |
15006 | double arg4 ; | |
15007 | wxRect temp2 ; | |
15008 | PyObject * obj0 = 0 ; | |
15009 | PyObject * obj1 = 0 ; | |
15010 | PyObject * obj2 = 0 ; | |
15011 | PyObject * obj3 = 0 ; | |
15012 | char *kwnames[] = { | |
15013 | (char *) "self",(char *) "rect",(char *) "startAngle",(char *) "endAngle", NULL | |
15014 | }; | |
15015 | ||
15016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyDrawnShape_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15019 | { | |
15020 | arg2 = &temp2; | |
15021 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15022 | } | |
15023 | arg3 = (double)SWIG_As_double(obj2); | |
15024 | if (PyErr_Occurred()) SWIG_fail; | |
15025 | arg4 = (double)SWIG_As_double(obj3); | |
15026 | if (PyErr_Occurred()) SWIG_fail; | |
15027 | { | |
15028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15029 | (arg1)->DrawEllipticArc((wxRect const &)*arg2,arg3,arg4); | |
15030 | ||
15031 | wxPyEndAllowThreads(__tstate); | |
15032 | if (PyErr_Occurred()) SWIG_fail; | |
15033 | } | |
15034 | Py_INCREF(Py_None); resultobj = Py_None; | |
15035 | return resultobj; | |
15036 | fail: | |
15037 | return NULL; | |
15038 | } | |
15039 | ||
15040 | ||
15041 | static PyObject *_wrap_PyDrawnShape_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
15042 | PyObject *resultobj; | |
15043 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15044 | wxPoint *arg2 = 0 ; | |
15045 | wxPoint *arg3 = 0 ; | |
15046 | wxPoint temp2 ; | |
15047 | wxPoint temp3 ; | |
15048 | PyObject * obj0 = 0 ; | |
15049 | PyObject * obj1 = 0 ; | |
15050 | PyObject * obj2 = 0 ; | |
15051 | char *kwnames[] = { | |
15052 | (char *) "self",(char *) "point1",(char *) "point2", NULL | |
15053 | }; | |
15054 | ||
15055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15058 | { | |
15059 | arg2 = &temp2; | |
15060 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15061 | } | |
15062 | { | |
15063 | arg3 = &temp3; | |
15064 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15065 | } | |
15066 | { | |
15067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15068 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
15069 | ||
15070 | wxPyEndAllowThreads(__tstate); | |
15071 | if (PyErr_Occurred()) SWIG_fail; | |
15072 | } | |
15073 | Py_INCREF(Py_None); resultobj = Py_None; | |
15074 | return resultobj; | |
15075 | fail: | |
15076 | return NULL; | |
15077 | } | |
15078 | ||
15079 | ||
15080 | static PyObject *_wrap_PyDrawnShape_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { | |
15081 | PyObject *resultobj; | |
15082 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15083 | int arg2 ; | |
15084 | wxPoint *arg3 = (wxPoint *) 0 ; | |
15085 | PyObject * obj0 = 0 ; | |
15086 | PyObject * obj1 = 0 ; | |
15087 | char *kwnames[] = { | |
15088 | (char *) "self",(char *) "points", NULL | |
15089 | }; | |
15090 | ||
15091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawLines",kwnames,&obj0,&obj1)) goto fail; | |
15092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15094 | { | |
15095 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
15096 | if (arg3 == NULL) SWIG_fail; | |
15097 | } | |
15098 | { | |
15099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15100 | (arg1)->DrawLines(arg2,arg3); | |
15101 | ||
15102 | wxPyEndAllowThreads(__tstate); | |
15103 | if (PyErr_Occurred()) SWIG_fail; | |
15104 | } | |
15105 | Py_INCREF(Py_None); resultobj = Py_None; | |
15106 | { | |
15107 | if (arg3) delete [] arg3; | |
15108 | } | |
15109 | return resultobj; | |
15110 | fail: | |
15111 | { | |
15112 | if (arg3) delete [] arg3; | |
15113 | } | |
15114 | return NULL; | |
15115 | } | |
15116 | ||
15117 | ||
15118 | static PyObject *_wrap_PyDrawnShape_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
15119 | PyObject *resultobj; | |
15120 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15121 | wxPoint *arg2 = 0 ; | |
15122 | wxPoint temp2 ; | |
15123 | PyObject * obj0 = 0 ; | |
15124 | PyObject * obj1 = 0 ; | |
15125 | char *kwnames[] = { | |
15126 | (char *) "self",(char *) "point", NULL | |
15127 | }; | |
15128 | ||
15129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
15130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15132 | { | |
15133 | arg2 = &temp2; | |
15134 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15135 | } | |
15136 | { | |
15137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15138 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
15139 | ||
15140 | wxPyEndAllowThreads(__tstate); | |
15141 | if (PyErr_Occurred()) SWIG_fail; | |
15142 | } | |
15143 | Py_INCREF(Py_None); resultobj = Py_None; | |
15144 | return resultobj; | |
15145 | fail: | |
15146 | return NULL; | |
15147 | } | |
15148 | ||
15149 | ||
15150 | static PyObject *_wrap_PyDrawnShape_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { | |
15151 | PyObject *resultobj; | |
15152 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15153 | int arg2 ; | |
15154 | wxPoint *arg3 = (wxPoint *) 0 ; | |
15155 | int arg4 = (int) 0 ; | |
15156 | PyObject * obj0 = 0 ; | |
15157 | PyObject * obj1 = 0 ; | |
15158 | PyObject * obj2 = 0 ; | |
15159 | char *kwnames[] = { | |
15160 | (char *) "self",(char *) "points",(char *) "flags", NULL | |
15161 | }; | |
15162 | ||
15163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_DrawPolygon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15166 | { | |
15167 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
15168 | if (arg3 == NULL) SWIG_fail; | |
15169 | } | |
15170 | if (obj2) { | |
15171 | arg4 = (int)SWIG_As_int(obj2); | |
15172 | if (PyErr_Occurred()) SWIG_fail; | |
15173 | } | |
15174 | { | |
15175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15176 | (arg1)->DrawPolygon(arg2,arg3,arg4); | |
15177 | ||
15178 | wxPyEndAllowThreads(__tstate); | |
15179 | if (PyErr_Occurred()) SWIG_fail; | |
15180 | } | |
15181 | Py_INCREF(Py_None); resultobj = Py_None; | |
15182 | { | |
15183 | if (arg3) delete [] arg3; | |
15184 | } | |
15185 | return resultobj; | |
15186 | fail: | |
15187 | { | |
15188 | if (arg3) delete [] arg3; | |
15189 | } | |
15190 | return NULL; | |
15191 | } | |
15192 | ||
15193 | ||
15194 | static PyObject *_wrap_PyDrawnShape_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { | |
15195 | PyObject *resultobj; | |
15196 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15197 | wxRect *arg2 = 0 ; | |
15198 | wxRect temp2 ; | |
15199 | PyObject * obj0 = 0 ; | |
15200 | PyObject * obj1 = 0 ; | |
15201 | char *kwnames[] = { | |
15202 | (char *) "self",(char *) "rect", NULL | |
15203 | }; | |
15204 | ||
15205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawRectangle",kwnames,&obj0,&obj1)) goto fail; | |
15206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15208 | { | |
15209 | arg2 = &temp2; | |
15210 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15211 | } | |
15212 | { | |
15213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15214 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
15215 | ||
15216 | wxPyEndAllowThreads(__tstate); | |
15217 | if (PyErr_Occurred()) SWIG_fail; | |
15218 | } | |
15219 | Py_INCREF(Py_None); resultobj = Py_None; | |
15220 | return resultobj; | |
15221 | fail: | |
15222 | return NULL; | |
15223 | } | |
15224 | ||
15225 | ||
15226 | static PyObject *_wrap_PyDrawnShape_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { | |
15227 | PyObject *resultobj; | |
15228 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15229 | wxRect *arg2 = 0 ; | |
15230 | double arg3 ; | |
15231 | wxRect temp2 ; | |
15232 | PyObject * obj0 = 0 ; | |
15233 | PyObject * obj1 = 0 ; | |
15234 | PyObject * obj2 = 0 ; | |
15235 | char *kwnames[] = { | |
15236 | (char *) "self",(char *) "rect",(char *) "radius", NULL | |
15237 | }; | |
15238 | ||
15239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15242 | { | |
15243 | arg2 = &temp2; | |
15244 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15245 | } | |
15246 | arg3 = (double)SWIG_As_double(obj2); | |
15247 | if (PyErr_Occurred()) SWIG_fail; | |
15248 | { | |
15249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15250 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
15251 | ||
15252 | wxPyEndAllowThreads(__tstate); | |
15253 | if (PyErr_Occurred()) SWIG_fail; | |
15254 | } | |
15255 | Py_INCREF(Py_None); resultobj = Py_None; | |
15256 | return resultobj; | |
15257 | fail: | |
15258 | return NULL; | |
15259 | } | |
15260 | ||
15261 | ||
15262 | static PyObject *_wrap_PyDrawnShape_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { | |
15263 | PyObject *resultobj; | |
15264 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15265 | int arg2 ; | |
15266 | wxPoint *arg3 = (wxPoint *) 0 ; | |
15267 | PyObject * obj0 = 0 ; | |
15268 | PyObject * obj1 = 0 ; | |
15269 | char *kwnames[] = { | |
15270 | (char *) "self",(char *) "points", NULL | |
15271 | }; | |
15272 | ||
15273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
15274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15276 | { | |
15277 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
15278 | if (arg3 == NULL) SWIG_fail; | |
15279 | } | |
15280 | { | |
15281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15282 | (arg1)->DrawSpline(arg2,arg3); | |
15283 | ||
15284 | wxPyEndAllowThreads(__tstate); | |
15285 | if (PyErr_Occurred()) SWIG_fail; | |
15286 | } | |
15287 | Py_INCREF(Py_None); resultobj = Py_None; | |
15288 | { | |
15289 | if (arg3) delete [] arg3; | |
15290 | } | |
15291 | return resultobj; | |
15292 | fail: | |
15293 | { | |
15294 | if (arg3) delete [] arg3; | |
15295 | } | |
15296 | return NULL; | |
15297 | } | |
15298 | ||
15299 | ||
15300 | static PyObject *_wrap_PyDrawnShape_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { | |
15301 | PyObject *resultobj; | |
15302 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15303 | wxString *arg2 = 0 ; | |
15304 | wxPoint *arg3 = 0 ; | |
15305 | bool temp2 = false ; | |
15306 | wxPoint temp3 ; | |
15307 | PyObject * obj0 = 0 ; | |
15308 | PyObject * obj1 = 0 ; | |
15309 | PyObject * obj2 = 0 ; | |
15310 | char *kwnames[] = { | |
15311 | (char *) "self",(char *) "text",(char *) "point", NULL | |
15312 | }; | |
15313 | ||
15314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15317 | { | |
15318 | arg2 = wxString_in_helper(obj1); | |
15319 | if (arg2 == NULL) SWIG_fail; | |
15320 | temp2 = true; | |
15321 | } | |
15322 | { | |
15323 | arg3 = &temp3; | |
15324 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15325 | } | |
15326 | { | |
15327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15328 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
15329 | ||
15330 | wxPyEndAllowThreads(__tstate); | |
15331 | if (PyErr_Occurred()) SWIG_fail; | |
15332 | } | |
15333 | Py_INCREF(Py_None); resultobj = Py_None; | |
15334 | { | |
15335 | if (temp2) | |
15336 | delete arg2; | |
15337 | } | |
15338 | return resultobj; | |
15339 | fail: | |
15340 | { | |
15341 | if (temp2) | |
15342 | delete arg2; | |
15343 | } | |
15344 | return NULL; | |
15345 | } | |
15346 | ||
15347 | ||
15348 | static PyObject *_wrap_PyDrawnShape_GetAngle(PyObject *, PyObject *args, PyObject *kwargs) { | |
15349 | PyObject *resultobj; | |
15350 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15351 | int result; | |
15352 | PyObject * obj0 = 0 ; | |
15353 | char *kwnames[] = { | |
15354 | (char *) "self", NULL | |
15355 | }; | |
15356 | ||
15357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_GetAngle",kwnames,&obj0)) goto fail; | |
15358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15360 | { | |
15361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15362 | result = (int)(arg1)->GetAngle(); | |
15363 | ||
15364 | wxPyEndAllowThreads(__tstate); | |
15365 | if (PyErr_Occurred()) SWIG_fail; | |
15366 | } | |
15367 | resultobj = SWIG_From_int((int)result); | |
15368 | return resultobj; | |
15369 | fail: | |
15370 | return NULL; | |
15371 | } | |
15372 | ||
15373 | ||
15374 | static PyObject *_wrap_PyDrawnShape_GetMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
15375 | PyObject *resultobj; | |
15376 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15377 | wxPseudoMetaFile *result; | |
15378 | PyObject * obj0 = 0 ; | |
15379 | char *kwnames[] = { | |
15380 | (char *) "self", NULL | |
15381 | }; | |
15382 | ||
15383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_GetMetaFile",kwnames,&obj0)) goto fail; | |
15384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15386 | { | |
15387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15388 | { | |
15389 | wxPseudoMetaFile &_result_ref = (arg1)->GetMetaFile(); | |
15390 | result = (wxPseudoMetaFile *) &_result_ref; | |
15391 | } | |
15392 | ||
15393 | wxPyEndAllowThreads(__tstate); | |
15394 | if (PyErr_Occurred()) SWIG_fail; | |
15395 | } | |
15396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPseudoMetaFile, 0); | |
15397 | return resultobj; | |
15398 | fail: | |
15399 | return NULL; | |
15400 | } | |
15401 | ||
15402 | ||
15403 | static PyObject *_wrap_PyDrawnShape_GetRotation(PyObject *, PyObject *args, PyObject *kwargs) { | |
15404 | PyObject *resultobj; | |
15405 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15406 | double result; | |
15407 | PyObject * obj0 = 0 ; | |
15408 | char *kwnames[] = { | |
15409 | (char *) "self", NULL | |
15410 | }; | |
15411 | ||
15412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_GetRotation",kwnames,&obj0)) goto fail; | |
15413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15415 | { | |
15416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15417 | result = (double)(arg1)->GetRotation(); | |
15418 | ||
15419 | wxPyEndAllowThreads(__tstate); | |
15420 | if (PyErr_Occurred()) SWIG_fail; | |
15421 | } | |
15422 | resultobj = SWIG_From_double((double)result); | |
15423 | return resultobj; | |
15424 | fail: | |
15425 | return NULL; | |
15426 | } | |
15427 | ||
15428 | ||
15429 | static PyObject *_wrap_PyDrawnShape_LoadFromMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
15430 | PyObject *resultobj; | |
15431 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15432 | wxString *arg2 = 0 ; | |
15433 | bool result; | |
15434 | bool temp2 = false ; | |
15435 | PyObject * obj0 = 0 ; | |
15436 | PyObject * obj1 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "self",(char *) "filename", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_LoadFromMetaFile",kwnames,&obj0,&obj1)) goto fail; | |
15442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15444 | { | |
15445 | arg2 = wxString_in_helper(obj1); | |
15446 | if (arg2 == NULL) SWIG_fail; | |
15447 | temp2 = true; | |
15448 | } | |
15449 | { | |
15450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15451 | result = (bool)(arg1)->LoadFromMetaFile((wxString const &)*arg2); | |
15452 | ||
15453 | wxPyEndAllowThreads(__tstate); | |
15454 | if (PyErr_Occurred()) SWIG_fail; | |
15455 | } | |
15456 | { | |
15457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15458 | } | |
15459 | { | |
15460 | if (temp2) | |
15461 | delete arg2; | |
15462 | } | |
15463 | return resultobj; | |
15464 | fail: | |
15465 | { | |
15466 | if (temp2) | |
15467 | delete arg2; | |
15468 | } | |
15469 | return NULL; | |
15470 | } | |
15471 | ||
15472 | ||
15473 | static PyObject *_wrap_PyDrawnShape_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { | |
15474 | PyObject *resultobj; | |
15475 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15476 | double arg2 ; | |
15477 | double arg3 ; | |
15478 | double arg4 ; | |
15479 | PyObject * obj0 = 0 ; | |
15480 | PyObject * obj1 = 0 ; | |
15481 | PyObject * obj2 = 0 ; | |
15482 | PyObject * obj3 = 0 ; | |
15483 | char *kwnames[] = { | |
15484 | (char *) "self",(char *) "x",(char *) "y",(char *) "theta", NULL | |
15485 | }; | |
15486 | ||
15487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyDrawnShape_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15490 | arg2 = (double)SWIG_As_double(obj1); | |
15491 | if (PyErr_Occurred()) SWIG_fail; | |
15492 | arg3 = (double)SWIG_As_double(obj2); | |
15493 | if (PyErr_Occurred()) SWIG_fail; | |
15494 | arg4 = (double)SWIG_As_double(obj3); | |
15495 | if (PyErr_Occurred()) SWIG_fail; | |
15496 | { | |
15497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15498 | (arg1)->Rotate(arg2,arg3,arg4); | |
15499 | ||
15500 | wxPyEndAllowThreads(__tstate); | |
15501 | if (PyErr_Occurred()) SWIG_fail; | |
15502 | } | |
15503 | Py_INCREF(Py_None); resultobj = Py_None; | |
15504 | return resultobj; | |
15505 | fail: | |
15506 | return NULL; | |
15507 | } | |
15508 | ||
15509 | ||
15510 | static PyObject *_wrap_PyDrawnShape_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
15511 | PyObject *resultobj; | |
15512 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15513 | wxRect *arg2 = 0 ; | |
15514 | wxRect temp2 ; | |
15515 | PyObject * obj0 = 0 ; | |
15516 | PyObject * obj1 = 0 ; | |
15517 | char *kwnames[] = { | |
15518 | (char *) "self",(char *) "rect", NULL | |
15519 | }; | |
15520 | ||
15521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
15522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15524 | { | |
15525 | arg2 = &temp2; | |
15526 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15527 | } | |
15528 | { | |
15529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15530 | (arg1)->SetClippingRect((wxRect const &)*arg2); | |
15531 | ||
15532 | wxPyEndAllowThreads(__tstate); | |
15533 | if (PyErr_Occurred()) SWIG_fail; | |
15534 | } | |
15535 | Py_INCREF(Py_None); resultobj = Py_None; | |
15536 | return resultobj; | |
15537 | fail: | |
15538 | return NULL; | |
15539 | } | |
15540 | ||
15541 | ||
15542 | static PyObject *_wrap_PyDrawnShape_SetDrawnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
15543 | PyObject *resultobj; | |
15544 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15545 | wxColour *arg2 = 0 ; | |
15546 | wxColour temp2 ; | |
15547 | PyObject * obj0 = 0 ; | |
15548 | PyObject * obj1 = 0 ; | |
15549 | char *kwnames[] = { | |
15550 | (char *) "self",(char *) "colour", NULL | |
15551 | }; | |
15552 | ||
15553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15556 | { | |
15557 | arg2 = &temp2; | |
15558 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15559 | } | |
15560 | { | |
15561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15562 | (arg1)->SetDrawnBackgroundColour((wxColour const &)*arg2); | |
15563 | ||
15564 | wxPyEndAllowThreads(__tstate); | |
15565 | if (PyErr_Occurred()) SWIG_fail; | |
15566 | } | |
15567 | Py_INCREF(Py_None); resultobj = Py_None; | |
15568 | return resultobj; | |
15569 | fail: | |
15570 | return NULL; | |
15571 | } | |
15572 | ||
15573 | ||
15574 | static PyObject *_wrap_PyDrawnShape_SetDrawnBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
15575 | PyObject *resultobj; | |
15576 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15577 | int arg2 ; | |
15578 | PyObject * obj0 = 0 ; | |
15579 | PyObject * obj1 = 0 ; | |
15580 | char *kwnames[] = { | |
15581 | (char *) "self",(char *) "mode", NULL | |
15582 | }; | |
15583 | ||
15584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnBackgroundMode",kwnames,&obj0,&obj1)) goto fail; | |
15585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15587 | arg2 = (int)SWIG_As_int(obj1); | |
15588 | if (PyErr_Occurred()) SWIG_fail; | |
15589 | { | |
15590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15591 | (arg1)->SetDrawnBackgroundMode(arg2); | |
15592 | ||
15593 | wxPyEndAllowThreads(__tstate); | |
15594 | if (PyErr_Occurred()) SWIG_fail; | |
15595 | } | |
15596 | Py_INCREF(Py_None); resultobj = Py_None; | |
15597 | return resultobj; | |
15598 | fail: | |
15599 | return NULL; | |
15600 | } | |
15601 | ||
15602 | ||
15603 | static PyObject *_wrap_PyDrawnShape_SetDrawnBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
15604 | PyObject *resultobj; | |
15605 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15606 | wxBrush *arg2 = (wxBrush *) 0 ; | |
15607 | bool arg3 = (bool) FALSE ; | |
15608 | PyObject * obj0 = 0 ; | |
15609 | PyObject * obj1 = 0 ; | |
15610 | PyObject * obj2 = 0 ; | |
15611 | char *kwnames[] = { | |
15612 | (char *) "self",(char *) "pen",(char *) "isOutline", NULL | |
15613 | }; | |
15614 | ||
15615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_SetDrawnBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15618 | { | |
15619 | wxBrush* temp; | |
15620 | if (obj1) { | |
15621 | if (obj1 == Py_None) { | |
15622 | temp = NULL; | |
15623 | } | |
15624 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
15625 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
15626 | return NULL; | |
15627 | } | |
15628 | } | |
15629 | if (temp) | |
15630 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
15631 | else | |
15632 | arg2 = NULL; | |
15633 | } | |
15634 | if (obj2) { | |
15635 | arg3 = (bool)SWIG_As_bool(obj2); | |
15636 | if (PyErr_Occurred()) SWIG_fail; | |
15637 | } | |
15638 | { | |
15639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15640 | (arg1)->SetDrawnBrush(arg2,arg3); | |
15641 | ||
15642 | wxPyEndAllowThreads(__tstate); | |
15643 | if (PyErr_Occurred()) SWIG_fail; | |
15644 | } | |
15645 | Py_INCREF(Py_None); resultobj = Py_None; | |
15646 | return resultobj; | |
15647 | fail: | |
15648 | return NULL; | |
15649 | } | |
15650 | ||
15651 | ||
15652 | static PyObject *_wrap_PyDrawnShape_SetDrawnFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
15653 | PyObject *resultobj; | |
15654 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15655 | wxFont *arg2 = (wxFont *) 0 ; | |
15656 | PyObject * obj0 = 0 ; | |
15657 | PyObject * obj1 = 0 ; | |
15658 | char *kwnames[] = { | |
15659 | (char *) "self",(char *) "font", NULL | |
15660 | }; | |
15661 | ||
15662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnFont",kwnames,&obj0,&obj1)) goto fail; | |
15663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15665 | { | |
15666 | wxFont* temp; | |
15667 | if (obj1) { | |
15668 | if (obj1 == Py_None) { | |
15669 | temp = NULL; | |
15670 | } | |
15671 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
15672 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
15673 | return NULL; | |
15674 | } | |
15675 | } | |
15676 | if (temp) | |
15677 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
15678 | temp->GetFamily(), | |
15679 | temp->GetStyle(), | |
15680 | temp->GetWeight(), | |
15681 | temp->GetUnderlined(), | |
15682 | temp->GetFaceName(), | |
15683 | temp->GetEncoding()); | |
15684 | else | |
15685 | arg2 = NULL; | |
15686 | } | |
15687 | { | |
15688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15689 | (arg1)->SetDrawnFont(arg2); | |
15690 | ||
15691 | wxPyEndAllowThreads(__tstate); | |
15692 | if (PyErr_Occurred()) SWIG_fail; | |
15693 | } | |
15694 | Py_INCREF(Py_None); resultobj = Py_None; | |
15695 | return resultobj; | |
15696 | fail: | |
15697 | return NULL; | |
15698 | } | |
15699 | ||
15700 | ||
15701 | static PyObject *_wrap_PyDrawnShape_SetDrawnPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
15702 | PyObject *resultobj; | |
15703 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15704 | wxPen *arg2 = (wxPen *) 0 ; | |
15705 | bool arg3 = (bool) FALSE ; | |
15706 | PyObject * obj0 = 0 ; | |
15707 | PyObject * obj1 = 0 ; | |
15708 | PyObject * obj2 = 0 ; | |
15709 | char *kwnames[] = { | |
15710 | (char *) "self",(char *) "pen",(char *) "isOutline", NULL | |
15711 | }; | |
15712 | ||
15713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_SetDrawnPen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15716 | { | |
15717 | wxPen* temp; | |
15718 | if (obj1) { | |
15719 | if (obj1 == Py_None) { | |
15720 | temp = NULL; | |
15721 | } | |
15722 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
15723 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
15724 | return NULL; | |
15725 | } | |
15726 | } | |
15727 | if (temp) | |
15728 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
15729 | temp->GetWidth(), | |
15730 | temp->GetStyle()); | |
15731 | else | |
15732 | arg2 = NULL; | |
15733 | } | |
15734 | if (obj2) { | |
15735 | arg3 = (bool)SWIG_As_bool(obj2); | |
15736 | if (PyErr_Occurred()) SWIG_fail; | |
15737 | } | |
15738 | { | |
15739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15740 | (arg1)->SetDrawnPen(arg2,arg3); | |
15741 | ||
15742 | wxPyEndAllowThreads(__tstate); | |
15743 | if (PyErr_Occurred()) SWIG_fail; | |
15744 | } | |
15745 | Py_INCREF(Py_None); resultobj = Py_None; | |
15746 | return resultobj; | |
15747 | fail: | |
15748 | return NULL; | |
15749 | } | |
15750 | ||
15751 | ||
15752 | static PyObject *_wrap_PyDrawnShape_SetDrawnTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
15753 | PyObject *resultobj; | |
15754 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15755 | wxColour *arg2 = 0 ; | |
15756 | wxColour temp2 ; | |
15757 | PyObject * obj0 = 0 ; | |
15758 | PyObject * obj1 = 0 ; | |
15759 | char *kwnames[] = { | |
15760 | (char *) "self",(char *) "colour", NULL | |
15761 | }; | |
15762 | ||
15763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15766 | { | |
15767 | arg2 = &temp2; | |
15768 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15769 | } | |
15770 | { | |
15771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15772 | (arg1)->SetDrawnTextColour((wxColour const &)*arg2); | |
15773 | ||
15774 | wxPyEndAllowThreads(__tstate); | |
15775 | if (PyErr_Occurred()) SWIG_fail; | |
15776 | } | |
15777 | Py_INCREF(Py_None); resultobj = Py_None; | |
15778 | return resultobj; | |
15779 | fail: | |
15780 | return NULL; | |
15781 | } | |
15782 | ||
15783 | ||
15784 | static PyObject *_wrap_PyDrawnShape_Scale(PyObject *, PyObject *args, PyObject *kwargs) { | |
15785 | PyObject *resultobj; | |
15786 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15787 | double arg2 ; | |
15788 | double arg3 ; | |
15789 | PyObject * obj0 = 0 ; | |
15790 | PyObject * obj1 = 0 ; | |
15791 | PyObject * obj2 = 0 ; | |
15792 | char *kwnames[] = { | |
15793 | (char *) "self",(char *) "sx",(char *) "sy", NULL | |
15794 | }; | |
15795 | ||
15796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15799 | arg2 = (double)SWIG_As_double(obj1); | |
15800 | if (PyErr_Occurred()) SWIG_fail; | |
15801 | arg3 = (double)SWIG_As_double(obj2); | |
15802 | if (PyErr_Occurred()) SWIG_fail; | |
15803 | { | |
15804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15805 | (arg1)->Scale(arg2,arg3); | |
15806 | ||
15807 | wxPyEndAllowThreads(__tstate); | |
15808 | if (PyErr_Occurred()) SWIG_fail; | |
15809 | } | |
15810 | Py_INCREF(Py_None); resultobj = Py_None; | |
15811 | return resultobj; | |
15812 | fail: | |
15813 | return NULL; | |
15814 | } | |
15815 | ||
15816 | ||
15817 | static PyObject *_wrap_PyDrawnShape_SetSaveToFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
15818 | PyObject *resultobj; | |
15819 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15820 | bool arg2 ; | |
15821 | PyObject * obj0 = 0 ; | |
15822 | PyObject * obj1 = 0 ; | |
15823 | char *kwnames[] = { | |
15824 | (char *) "self",(char *) "save", NULL | |
15825 | }; | |
15826 | ||
15827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetSaveToFile",kwnames,&obj0,&obj1)) goto fail; | |
15828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15830 | arg2 = (bool)SWIG_As_bool(obj1); | |
15831 | if (PyErr_Occurred()) SWIG_fail; | |
15832 | { | |
15833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15834 | (arg1)->SetSaveToFile(arg2); | |
15835 | ||
15836 | wxPyEndAllowThreads(__tstate); | |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | } | |
15839 | Py_INCREF(Py_None); resultobj = Py_None; | |
15840 | return resultobj; | |
15841 | fail: | |
15842 | return NULL; | |
15843 | } | |
15844 | ||
15845 | ||
15846 | static PyObject *_wrap_PyDrawnShape_Translate(PyObject *, PyObject *args, PyObject *kwargs) { | |
15847 | PyObject *resultobj; | |
15848 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15849 | double arg2 ; | |
15850 | double arg3 ; | |
15851 | PyObject * obj0 = 0 ; | |
15852 | PyObject * obj1 = 0 ; | |
15853 | PyObject * obj2 = 0 ; | |
15854 | char *kwnames[] = { | |
15855 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15856 | }; | |
15857 | ||
15858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_Translate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15861 | arg2 = (double)SWIG_As_double(obj1); | |
15862 | if (PyErr_Occurred()) SWIG_fail; | |
15863 | arg3 = (double)SWIG_As_double(obj2); | |
15864 | if (PyErr_Occurred()) SWIG_fail; | |
15865 | { | |
15866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15867 | (arg1)->Translate(arg2,arg3); | |
15868 | ||
15869 | wxPyEndAllowThreads(__tstate); | |
15870 | if (PyErr_Occurred()) SWIG_fail; | |
15871 | } | |
15872 | Py_INCREF(Py_None); resultobj = Py_None; | |
15873 | return resultobj; | |
15874 | fail: | |
15875 | return NULL; | |
15876 | } | |
15877 | ||
15878 | ||
15879 | static PyObject *_wrap_PyDrawnShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
15880 | PyObject *resultobj; | |
15881 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15882 | PyObject * obj0 = 0 ; | |
15883 | char *kwnames[] = { | |
15884 | (char *) "self", NULL | |
15885 | }; | |
15886 | ||
15887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
15888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15890 | { | |
15891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15892 | (arg1)->base_OnDelete(); | |
15893 | ||
15894 | wxPyEndAllowThreads(__tstate); | |
15895 | if (PyErr_Occurred()) SWIG_fail; | |
15896 | } | |
15897 | Py_INCREF(Py_None); resultobj = Py_None; | |
15898 | return resultobj; | |
15899 | fail: | |
15900 | return NULL; | |
15901 | } | |
15902 | ||
15903 | ||
15904 | static PyObject *_wrap_PyDrawnShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
15905 | PyObject *resultobj; | |
15906 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15907 | wxDC *arg2 = 0 ; | |
15908 | PyObject * obj0 = 0 ; | |
15909 | PyObject * obj1 = 0 ; | |
15910 | char *kwnames[] = { | |
15911 | (char *) "self",(char *) "dc", NULL | |
15912 | }; | |
15913 | ||
15914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
15915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15917 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
15918 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15919 | SWIG_fail; | |
15920 | if (arg2 == NULL) { | |
15921 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15922 | SWIG_fail; | |
15923 | } | |
15924 | { | |
15925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15926 | (arg1)->base_OnDraw(*arg2); | |
15927 | ||
15928 | wxPyEndAllowThreads(__tstate); | |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
15930 | } | |
15931 | Py_INCREF(Py_None); resultobj = Py_None; | |
15932 | return resultobj; | |
15933 | fail: | |
15934 | return NULL; | |
15935 | } | |
15936 | ||
15937 | ||
15938 | static PyObject *_wrap_PyDrawnShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
15939 | PyObject *resultobj; | |
15940 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15941 | wxDC *arg2 = 0 ; | |
15942 | PyObject * obj0 = 0 ; | |
15943 | PyObject * obj1 = 0 ; | |
15944 | char *kwnames[] = { | |
15945 | (char *) "self",(char *) "dc", NULL | |
15946 | }; | |
15947 | ||
15948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
15949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
15952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15953 | SWIG_fail; | |
15954 | if (arg2 == NULL) { | |
15955 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15956 | SWIG_fail; | |
15957 | } | |
15958 | { | |
15959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15960 | (arg1)->base_OnDrawContents(*arg2); | |
15961 | ||
15962 | wxPyEndAllowThreads(__tstate); | |
15963 | if (PyErr_Occurred()) SWIG_fail; | |
15964 | } | |
15965 | Py_INCREF(Py_None); resultobj = Py_None; | |
15966 | return resultobj; | |
15967 | fail: | |
15968 | return NULL; | |
15969 | } | |
15970 | ||
15971 | ||
15972 | static PyObject *_wrap_PyDrawnShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
15973 | PyObject *resultobj; | |
15974 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15975 | wxDC *arg2 = 0 ; | |
15976 | bool arg3 = (bool) FALSE ; | |
15977 | PyObject * obj0 = 0 ; | |
15978 | PyObject * obj1 = 0 ; | |
15979 | PyObject * obj2 = 0 ; | |
15980 | char *kwnames[] = { | |
15981 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
15982 | }; | |
15983 | ||
15984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
15986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15987 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
15988 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15989 | SWIG_fail; | |
15990 | if (arg2 == NULL) { | |
15991 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15992 | SWIG_fail; | |
15993 | } | |
15994 | if (obj2) { | |
15995 | arg3 = (bool)SWIG_As_bool(obj2); | |
15996 | if (PyErr_Occurred()) SWIG_fail; | |
15997 | } | |
15998 | { | |
15999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16000 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
16001 | ||
16002 | wxPyEndAllowThreads(__tstate); | |
16003 | if (PyErr_Occurred()) SWIG_fail; | |
16004 | } | |
16005 | Py_INCREF(Py_None); resultobj = Py_None; | |
16006 | return resultobj; | |
16007 | fail: | |
16008 | return NULL; | |
16009 | } | |
16010 | ||
16011 | ||
16012 | static PyObject *_wrap_PyDrawnShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
16013 | PyObject *resultobj; | |
16014 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16015 | wxDC *arg2 = 0 ; | |
16016 | PyObject * obj0 = 0 ; | |
16017 | PyObject * obj1 = 0 ; | |
16018 | char *kwnames[] = { | |
16019 | (char *) "self",(char *) "dc", NULL | |
16020 | }; | |
16021 | ||
16022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
16023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16025 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16026 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16027 | SWIG_fail; | |
16028 | if (arg2 == NULL) { | |
16029 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16030 | SWIG_fail; | |
16031 | } | |
16032 | { | |
16033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16034 | (arg1)->base_OnMoveLinks(*arg2); | |
16035 | ||
16036 | wxPyEndAllowThreads(__tstate); | |
16037 | if (PyErr_Occurred()) SWIG_fail; | |
16038 | } | |
16039 | Py_INCREF(Py_None); resultobj = Py_None; | |
16040 | return resultobj; | |
16041 | fail: | |
16042 | return NULL; | |
16043 | } | |
16044 | ||
16045 | ||
16046 | static PyObject *_wrap_PyDrawnShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
16047 | PyObject *resultobj; | |
16048 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16049 | wxDC *arg2 = 0 ; | |
16050 | PyObject * obj0 = 0 ; | |
16051 | PyObject * obj1 = 0 ; | |
16052 | char *kwnames[] = { | |
16053 | (char *) "self",(char *) "dc", NULL | |
16054 | }; | |
16055 | ||
16056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
16057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16059 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16060 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16061 | SWIG_fail; | |
16062 | if (arg2 == NULL) { | |
16063 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16064 | SWIG_fail; | |
16065 | } | |
16066 | { | |
16067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16068 | (arg1)->base_OnErase(*arg2); | |
16069 | ||
16070 | wxPyEndAllowThreads(__tstate); | |
16071 | if (PyErr_Occurred()) SWIG_fail; | |
16072 | } | |
16073 | Py_INCREF(Py_None); resultobj = Py_None; | |
16074 | return resultobj; | |
16075 | fail: | |
16076 | return NULL; | |
16077 | } | |
16078 | ||
16079 | ||
16080 | static PyObject *_wrap_PyDrawnShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
16081 | PyObject *resultobj; | |
16082 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16083 | wxDC *arg2 = 0 ; | |
16084 | PyObject * obj0 = 0 ; | |
16085 | PyObject * obj1 = 0 ; | |
16086 | char *kwnames[] = { | |
16087 | (char *) "self",(char *) "dc", NULL | |
16088 | }; | |
16089 | ||
16090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
16091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16094 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16095 | SWIG_fail; | |
16096 | if (arg2 == NULL) { | |
16097 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16098 | SWIG_fail; | |
16099 | } | |
16100 | { | |
16101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16102 | (arg1)->base_OnEraseContents(*arg2); | |
16103 | ||
16104 | wxPyEndAllowThreads(__tstate); | |
16105 | if (PyErr_Occurred()) SWIG_fail; | |
16106 | } | |
16107 | Py_INCREF(Py_None); resultobj = Py_None; | |
16108 | return resultobj; | |
16109 | fail: | |
16110 | return NULL; | |
16111 | } | |
16112 | ||
16113 | ||
16114 | static PyObject *_wrap_PyDrawnShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
16115 | PyObject *resultobj; | |
16116 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16117 | wxDC *arg2 = 0 ; | |
16118 | PyObject * obj0 = 0 ; | |
16119 | PyObject * obj1 = 0 ; | |
16120 | char *kwnames[] = { | |
16121 | (char *) "self",(char *) "dc", NULL | |
16122 | }; | |
16123 | ||
16124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
16125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16128 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16129 | SWIG_fail; | |
16130 | if (arg2 == NULL) { | |
16131 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16132 | SWIG_fail; | |
16133 | } | |
16134 | { | |
16135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16136 | (arg1)->base_OnHighlight(*arg2); | |
16137 | ||
16138 | wxPyEndAllowThreads(__tstate); | |
16139 | if (PyErr_Occurred()) SWIG_fail; | |
16140 | } | |
16141 | Py_INCREF(Py_None); resultobj = Py_None; | |
16142 | return resultobj; | |
16143 | fail: | |
16144 | return NULL; | |
16145 | } | |
16146 | ||
16147 | ||
16148 | static PyObject *_wrap_PyDrawnShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
16149 | PyObject *resultobj; | |
16150 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16151 | double arg2 ; | |
16152 | double arg3 ; | |
16153 | int arg4 = (int) 0 ; | |
16154 | int arg5 = (int) 0 ; | |
16155 | PyObject * obj0 = 0 ; | |
16156 | PyObject * obj1 = 0 ; | |
16157 | PyObject * obj2 = 0 ; | |
16158 | PyObject * obj3 = 0 ; | |
16159 | PyObject * obj4 = 0 ; | |
16160 | char *kwnames[] = { | |
16161 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16162 | }; | |
16163 | ||
16164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16167 | arg2 = (double)SWIG_As_double(obj1); | |
16168 | if (PyErr_Occurred()) SWIG_fail; | |
16169 | arg3 = (double)SWIG_As_double(obj2); | |
16170 | if (PyErr_Occurred()) SWIG_fail; | |
16171 | if (obj3) { | |
16172 | arg4 = (int)SWIG_As_int(obj3); | |
16173 | if (PyErr_Occurred()) SWIG_fail; | |
16174 | } | |
16175 | if (obj4) { | |
16176 | arg5 = (int)SWIG_As_int(obj4); | |
16177 | if (PyErr_Occurred()) SWIG_fail; | |
16178 | } | |
16179 | { | |
16180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16181 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
16182 | ||
16183 | wxPyEndAllowThreads(__tstate); | |
16184 | if (PyErr_Occurred()) SWIG_fail; | |
16185 | } | |
16186 | Py_INCREF(Py_None); resultobj = Py_None; | |
16187 | return resultobj; | |
16188 | fail: | |
16189 | return NULL; | |
16190 | } | |
16191 | ||
16192 | ||
16193 | static PyObject *_wrap_PyDrawnShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
16194 | PyObject *resultobj; | |
16195 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16196 | double arg2 ; | |
16197 | double arg3 ; | |
16198 | int arg4 = (int) 0 ; | |
16199 | int arg5 = (int) 0 ; | |
16200 | PyObject * obj0 = 0 ; | |
16201 | PyObject * obj1 = 0 ; | |
16202 | PyObject * obj2 = 0 ; | |
16203 | PyObject * obj3 = 0 ; | |
16204 | PyObject * obj4 = 0 ; | |
16205 | char *kwnames[] = { | |
16206 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16207 | }; | |
16208 | ||
16209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16212 | arg2 = (double)SWIG_As_double(obj1); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | arg3 = (double)SWIG_As_double(obj2); | |
16215 | if (PyErr_Occurred()) SWIG_fail; | |
16216 | if (obj3) { | |
16217 | arg4 = (int)SWIG_As_int(obj3); | |
16218 | if (PyErr_Occurred()) SWIG_fail; | |
16219 | } | |
16220 | if (obj4) { | |
16221 | arg5 = (int)SWIG_As_int(obj4); | |
16222 | if (PyErr_Occurred()) SWIG_fail; | |
16223 | } | |
16224 | { | |
16225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16226 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
16227 | ||
16228 | wxPyEndAllowThreads(__tstate); | |
16229 | if (PyErr_Occurred()) SWIG_fail; | |
16230 | } | |
16231 | Py_INCREF(Py_None); resultobj = Py_None; | |
16232 | return resultobj; | |
16233 | fail: | |
16234 | return NULL; | |
16235 | } | |
16236 | ||
16237 | ||
16238 | static PyObject *_wrap_PyDrawnShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
16239 | PyObject *resultobj; | |
16240 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16241 | double arg2 ; | |
16242 | double arg3 ; | |
16243 | int arg4 = (int) 0 ; | |
16244 | int arg5 = (int) 0 ; | |
16245 | PyObject * obj0 = 0 ; | |
16246 | PyObject * obj1 = 0 ; | |
16247 | PyObject * obj2 = 0 ; | |
16248 | PyObject * obj3 = 0 ; | |
16249 | PyObject * obj4 = 0 ; | |
16250 | char *kwnames[] = { | |
16251 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16252 | }; | |
16253 | ||
16254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16257 | arg2 = (double)SWIG_As_double(obj1); | |
16258 | if (PyErr_Occurred()) SWIG_fail; | |
16259 | arg3 = (double)SWIG_As_double(obj2); | |
16260 | if (PyErr_Occurred()) SWIG_fail; | |
16261 | if (obj3) { | |
16262 | arg4 = (int)SWIG_As_int(obj3); | |
16263 | if (PyErr_Occurred()) SWIG_fail; | |
16264 | } | |
16265 | if (obj4) { | |
16266 | arg5 = (int)SWIG_As_int(obj4); | |
16267 | if (PyErr_Occurred()) SWIG_fail; | |
16268 | } | |
16269 | { | |
16270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16271 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
16272 | ||
16273 | wxPyEndAllowThreads(__tstate); | |
16274 | if (PyErr_Occurred()) SWIG_fail; | |
16275 | } | |
16276 | Py_INCREF(Py_None); resultobj = Py_None; | |
16277 | return resultobj; | |
16278 | fail: | |
16279 | return NULL; | |
16280 | } | |
16281 | ||
16282 | ||
16283 | static PyObject *_wrap_PyDrawnShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
16284 | PyObject *resultobj; | |
16285 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16286 | double arg2 ; | |
16287 | double arg3 ; | |
16288 | PyObject * obj0 = 0 ; | |
16289 | PyObject * obj1 = 0 ; | |
16290 | PyObject * obj2 = 0 ; | |
16291 | char *kwnames[] = { | |
16292 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16293 | }; | |
16294 | ||
16295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16298 | arg2 = (double)SWIG_As_double(obj1); | |
16299 | if (PyErr_Occurred()) SWIG_fail; | |
16300 | arg3 = (double)SWIG_As_double(obj2); | |
16301 | if (PyErr_Occurred()) SWIG_fail; | |
16302 | { | |
16303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16304 | (arg1)->base_OnSize(arg2,arg3); | |
16305 | ||
16306 | wxPyEndAllowThreads(__tstate); | |
16307 | if (PyErr_Occurred()) SWIG_fail; | |
16308 | } | |
16309 | Py_INCREF(Py_None); resultobj = Py_None; | |
16310 | return resultobj; | |
16311 | fail: | |
16312 | return NULL; | |
16313 | } | |
16314 | ||
16315 | ||
16316 | static PyObject *_wrap_PyDrawnShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
16317 | PyObject *resultobj; | |
16318 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16319 | wxDC *arg2 = 0 ; | |
16320 | double arg3 ; | |
16321 | double arg4 ; | |
16322 | double arg5 ; | |
16323 | double arg6 ; | |
16324 | bool arg7 = (bool) true ; | |
16325 | bool result; | |
16326 | PyObject * obj0 = 0 ; | |
16327 | PyObject * obj1 = 0 ; | |
16328 | PyObject * obj2 = 0 ; | |
16329 | PyObject * obj3 = 0 ; | |
16330 | PyObject * obj4 = 0 ; | |
16331 | PyObject * obj5 = 0 ; | |
16332 | PyObject * obj6 = 0 ; | |
16333 | char *kwnames[] = { | |
16334 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
16335 | }; | |
16336 | ||
16337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDrawnShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16341 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16342 | SWIG_fail; | |
16343 | if (arg2 == NULL) { | |
16344 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16345 | SWIG_fail; | |
16346 | } | |
16347 | arg3 = (double)SWIG_As_double(obj2); | |
16348 | if (PyErr_Occurred()) SWIG_fail; | |
16349 | arg4 = (double)SWIG_As_double(obj3); | |
16350 | if (PyErr_Occurred()) SWIG_fail; | |
16351 | arg5 = (double)SWIG_As_double(obj4); | |
16352 | if (PyErr_Occurred()) SWIG_fail; | |
16353 | arg6 = (double)SWIG_As_double(obj5); | |
16354 | if (PyErr_Occurred()) SWIG_fail; | |
16355 | if (obj6) { | |
16356 | arg7 = (bool)SWIG_As_bool(obj6); | |
16357 | if (PyErr_Occurred()) SWIG_fail; | |
16358 | } | |
16359 | { | |
16360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16361 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
16362 | ||
16363 | wxPyEndAllowThreads(__tstate); | |
16364 | if (PyErr_Occurred()) SWIG_fail; | |
16365 | } | |
16366 | { | |
16367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16368 | } | |
16369 | return resultobj; | |
16370 | fail: | |
16371 | return NULL; | |
16372 | } | |
16373 | ||
16374 | ||
16375 | static PyObject *_wrap_PyDrawnShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
16376 | PyObject *resultobj; | |
16377 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16378 | wxDC *arg2 = 0 ; | |
16379 | double arg3 ; | |
16380 | double arg4 ; | |
16381 | double arg5 ; | |
16382 | double arg6 ; | |
16383 | bool arg7 = (bool) true ; | |
16384 | PyObject * obj0 = 0 ; | |
16385 | PyObject * obj1 = 0 ; | |
16386 | PyObject * obj2 = 0 ; | |
16387 | PyObject * obj3 = 0 ; | |
16388 | PyObject * obj4 = 0 ; | |
16389 | PyObject * obj5 = 0 ; | |
16390 | PyObject * obj6 = 0 ; | |
16391 | char *kwnames[] = { | |
16392 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
16393 | }; | |
16394 | ||
16395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDrawnShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16398 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16399 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16400 | SWIG_fail; | |
16401 | if (arg2 == NULL) { | |
16402 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16403 | SWIG_fail; | |
16404 | } | |
16405 | arg3 = (double)SWIG_As_double(obj2); | |
16406 | if (PyErr_Occurred()) SWIG_fail; | |
16407 | arg4 = (double)SWIG_As_double(obj3); | |
16408 | if (PyErr_Occurred()) SWIG_fail; | |
16409 | arg5 = (double)SWIG_As_double(obj4); | |
16410 | if (PyErr_Occurred()) SWIG_fail; | |
16411 | arg6 = (double)SWIG_As_double(obj5); | |
16412 | if (PyErr_Occurred()) SWIG_fail; | |
16413 | if (obj6) { | |
16414 | arg7 = (bool)SWIG_As_bool(obj6); | |
16415 | if (PyErr_Occurred()) SWIG_fail; | |
16416 | } | |
16417 | { | |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16419 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
16420 | ||
16421 | wxPyEndAllowThreads(__tstate); | |
16422 | if (PyErr_Occurred()) SWIG_fail; | |
16423 | } | |
16424 | Py_INCREF(Py_None); resultobj = Py_None; | |
16425 | return resultobj; | |
16426 | fail: | |
16427 | return NULL; | |
16428 | } | |
16429 | ||
16430 | ||
16431 | static PyObject *_wrap_PyDrawnShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
16432 | PyObject *resultobj; | |
16433 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16434 | bool arg2 ; | |
16435 | double arg3 ; | |
16436 | double arg4 ; | |
16437 | int arg5 = (int) 0 ; | |
16438 | int arg6 = (int) 0 ; | |
16439 | PyObject * obj0 = 0 ; | |
16440 | PyObject * obj1 = 0 ; | |
16441 | PyObject * obj2 = 0 ; | |
16442 | PyObject * obj3 = 0 ; | |
16443 | PyObject * obj4 = 0 ; | |
16444 | PyObject * obj5 = 0 ; | |
16445 | char *kwnames[] = { | |
16446 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16447 | }; | |
16448 | ||
16449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDrawnShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16452 | arg2 = (bool)SWIG_As_bool(obj1); | |
16453 | if (PyErr_Occurred()) SWIG_fail; | |
16454 | arg3 = (double)SWIG_As_double(obj2); | |
16455 | if (PyErr_Occurred()) SWIG_fail; | |
16456 | arg4 = (double)SWIG_As_double(obj3); | |
16457 | if (PyErr_Occurred()) SWIG_fail; | |
16458 | if (obj4) { | |
16459 | arg5 = (int)SWIG_As_int(obj4); | |
16460 | if (PyErr_Occurred()) SWIG_fail; | |
16461 | } | |
16462 | if (obj5) { | |
16463 | arg6 = (int)SWIG_As_int(obj5); | |
16464 | if (PyErr_Occurred()) SWIG_fail; | |
16465 | } | |
16466 | { | |
16467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16468 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
16469 | ||
16470 | wxPyEndAllowThreads(__tstate); | |
16471 | if (PyErr_Occurred()) SWIG_fail; | |
16472 | } | |
16473 | Py_INCREF(Py_None); resultobj = Py_None; | |
16474 | return resultobj; | |
16475 | fail: | |
16476 | return NULL; | |
16477 | } | |
16478 | ||
16479 | ||
16480 | static PyObject *_wrap_PyDrawnShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
16481 | PyObject *resultobj; | |
16482 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16483 | double arg2 ; | |
16484 | double arg3 ; | |
16485 | int arg4 = (int) 0 ; | |
16486 | int arg5 = (int) 0 ; | |
16487 | PyObject * obj0 = 0 ; | |
16488 | PyObject * obj1 = 0 ; | |
16489 | PyObject * obj2 = 0 ; | |
16490 | PyObject * obj3 = 0 ; | |
16491 | PyObject * obj4 = 0 ; | |
16492 | char *kwnames[] = { | |
16493 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16494 | }; | |
16495 | ||
16496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16499 | arg2 = (double)SWIG_As_double(obj1); | |
16500 | if (PyErr_Occurred()) SWIG_fail; | |
16501 | arg3 = (double)SWIG_As_double(obj2); | |
16502 | if (PyErr_Occurred()) SWIG_fail; | |
16503 | if (obj3) { | |
16504 | arg4 = (int)SWIG_As_int(obj3); | |
16505 | if (PyErr_Occurred()) SWIG_fail; | |
16506 | } | |
16507 | if (obj4) { | |
16508 | arg5 = (int)SWIG_As_int(obj4); | |
16509 | if (PyErr_Occurred()) SWIG_fail; | |
16510 | } | |
16511 | { | |
16512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16513 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
16514 | ||
16515 | wxPyEndAllowThreads(__tstate); | |
16516 | if (PyErr_Occurred()) SWIG_fail; | |
16517 | } | |
16518 | Py_INCREF(Py_None); resultobj = Py_None; | |
16519 | return resultobj; | |
16520 | fail: | |
16521 | return NULL; | |
16522 | } | |
16523 | ||
16524 | ||
16525 | static PyObject *_wrap_PyDrawnShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
16526 | PyObject *resultobj; | |
16527 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16528 | double arg2 ; | |
16529 | double arg3 ; | |
16530 | int arg4 = (int) 0 ; | |
16531 | int arg5 = (int) 0 ; | |
16532 | PyObject * obj0 = 0 ; | |
16533 | PyObject * obj1 = 0 ; | |
16534 | PyObject * obj2 = 0 ; | |
16535 | PyObject * obj3 = 0 ; | |
16536 | PyObject * obj4 = 0 ; | |
16537 | char *kwnames[] = { | |
16538 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16539 | }; | |
16540 | ||
16541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16544 | arg2 = (double)SWIG_As_double(obj1); | |
16545 | if (PyErr_Occurred()) SWIG_fail; | |
16546 | arg3 = (double)SWIG_As_double(obj2); | |
16547 | if (PyErr_Occurred()) SWIG_fail; | |
16548 | if (obj3) { | |
16549 | arg4 = (int)SWIG_As_int(obj3); | |
16550 | if (PyErr_Occurred()) SWIG_fail; | |
16551 | } | |
16552 | if (obj4) { | |
16553 | arg5 = (int)SWIG_As_int(obj4); | |
16554 | if (PyErr_Occurred()) SWIG_fail; | |
16555 | } | |
16556 | { | |
16557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16558 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
16559 | ||
16560 | wxPyEndAllowThreads(__tstate); | |
16561 | if (PyErr_Occurred()) SWIG_fail; | |
16562 | } | |
16563 | Py_INCREF(Py_None); resultobj = Py_None; | |
16564 | return resultobj; | |
16565 | fail: | |
16566 | return NULL; | |
16567 | } | |
16568 | ||
16569 | ||
16570 | static PyObject *_wrap_PyDrawnShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
16571 | PyObject *resultobj; | |
16572 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16573 | bool arg2 ; | |
16574 | double arg3 ; | |
16575 | double arg4 ; | |
16576 | int arg5 = (int) 0 ; | |
16577 | int arg6 = (int) 0 ; | |
16578 | PyObject * obj0 = 0 ; | |
16579 | PyObject * obj1 = 0 ; | |
16580 | PyObject * obj2 = 0 ; | |
16581 | PyObject * obj3 = 0 ; | |
16582 | PyObject * obj4 = 0 ; | |
16583 | PyObject * obj5 = 0 ; | |
16584 | char *kwnames[] = { | |
16585 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16586 | }; | |
16587 | ||
16588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDrawnShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16591 | arg2 = (bool)SWIG_As_bool(obj1); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | arg3 = (double)SWIG_As_double(obj2); | |
16594 | if (PyErr_Occurred()) SWIG_fail; | |
16595 | arg4 = (double)SWIG_As_double(obj3); | |
16596 | if (PyErr_Occurred()) SWIG_fail; | |
16597 | if (obj4) { | |
16598 | arg5 = (int)SWIG_As_int(obj4); | |
16599 | if (PyErr_Occurred()) SWIG_fail; | |
16600 | } | |
16601 | if (obj5) { | |
16602 | arg6 = (int)SWIG_As_int(obj5); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | { | |
16606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16607 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
16608 | ||
16609 | wxPyEndAllowThreads(__tstate); | |
16610 | if (PyErr_Occurred()) SWIG_fail; | |
16611 | } | |
16612 | Py_INCREF(Py_None); resultobj = Py_None; | |
16613 | return resultobj; | |
16614 | fail: | |
16615 | return NULL; | |
16616 | } | |
16617 | ||
16618 | ||
16619 | static PyObject *_wrap_PyDrawnShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
16620 | PyObject *resultobj; | |
16621 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16622 | double arg2 ; | |
16623 | double arg3 ; | |
16624 | int arg4 = (int) 0 ; | |
16625 | int arg5 = (int) 0 ; | |
16626 | PyObject * obj0 = 0 ; | |
16627 | PyObject * obj1 = 0 ; | |
16628 | PyObject * obj2 = 0 ; | |
16629 | PyObject * obj3 = 0 ; | |
16630 | PyObject * obj4 = 0 ; | |
16631 | char *kwnames[] = { | |
16632 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16633 | }; | |
16634 | ||
16635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16638 | arg2 = (double)SWIG_As_double(obj1); | |
16639 | if (PyErr_Occurred()) SWIG_fail; | |
16640 | arg3 = (double)SWIG_As_double(obj2); | |
16641 | if (PyErr_Occurred()) SWIG_fail; | |
16642 | if (obj3) { | |
16643 | arg4 = (int)SWIG_As_int(obj3); | |
16644 | if (PyErr_Occurred()) SWIG_fail; | |
16645 | } | |
16646 | if (obj4) { | |
16647 | arg5 = (int)SWIG_As_int(obj4); | |
16648 | if (PyErr_Occurred()) SWIG_fail; | |
16649 | } | |
16650 | { | |
16651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16652 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
16653 | ||
16654 | wxPyEndAllowThreads(__tstate); | |
16655 | if (PyErr_Occurred()) SWIG_fail; | |
16656 | } | |
16657 | Py_INCREF(Py_None); resultobj = Py_None; | |
16658 | return resultobj; | |
16659 | fail: | |
16660 | return NULL; | |
16661 | } | |
16662 | ||
16663 | ||
16664 | static PyObject *_wrap_PyDrawnShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
16665 | PyObject *resultobj; | |
16666 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16667 | double arg2 ; | |
16668 | double arg3 ; | |
16669 | int arg4 = (int) 0 ; | |
16670 | int arg5 = (int) 0 ; | |
16671 | PyObject * obj0 = 0 ; | |
16672 | PyObject * obj1 = 0 ; | |
16673 | PyObject * obj2 = 0 ; | |
16674 | PyObject * obj3 = 0 ; | |
16675 | PyObject * obj4 = 0 ; | |
16676 | char *kwnames[] = { | |
16677 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16678 | }; | |
16679 | ||
16680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16683 | arg2 = (double)SWIG_As_double(obj1); | |
16684 | if (PyErr_Occurred()) SWIG_fail; | |
16685 | arg3 = (double)SWIG_As_double(obj2); | |
16686 | if (PyErr_Occurred()) SWIG_fail; | |
16687 | if (obj3) { | |
16688 | arg4 = (int)SWIG_As_int(obj3); | |
16689 | if (PyErr_Occurred()) SWIG_fail; | |
16690 | } | |
16691 | if (obj4) { | |
16692 | arg5 = (int)SWIG_As_int(obj4); | |
16693 | if (PyErr_Occurred()) SWIG_fail; | |
16694 | } | |
16695 | { | |
16696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16697 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
16698 | ||
16699 | wxPyEndAllowThreads(__tstate); | |
16700 | if (PyErr_Occurred()) SWIG_fail; | |
16701 | } | |
16702 | Py_INCREF(Py_None); resultobj = Py_None; | |
16703 | return resultobj; | |
16704 | fail: | |
16705 | return NULL; | |
16706 | } | |
16707 | ||
16708 | ||
16709 | static PyObject *_wrap_PyDrawnShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
16710 | PyObject *resultobj; | |
16711 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16712 | wxDC *arg2 = 0 ; | |
16713 | double arg3 ; | |
16714 | double arg4 ; | |
16715 | double arg5 ; | |
16716 | double arg6 ; | |
16717 | PyObject * obj0 = 0 ; | |
16718 | PyObject * obj1 = 0 ; | |
16719 | PyObject * obj2 = 0 ; | |
16720 | PyObject * obj3 = 0 ; | |
16721 | PyObject * obj4 = 0 ; | |
16722 | PyObject * obj5 = 0 ; | |
16723 | char *kwnames[] = { | |
16724 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
16725 | }; | |
16726 | ||
16727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyDrawnShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16730 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16731 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16732 | SWIG_fail; | |
16733 | if (arg2 == NULL) { | |
16734 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16735 | SWIG_fail; | |
16736 | } | |
16737 | arg3 = (double)SWIG_As_double(obj2); | |
16738 | if (PyErr_Occurred()) SWIG_fail; | |
16739 | arg4 = (double)SWIG_As_double(obj3); | |
16740 | if (PyErr_Occurred()) SWIG_fail; | |
16741 | arg5 = (double)SWIG_As_double(obj4); | |
16742 | if (PyErr_Occurred()) SWIG_fail; | |
16743 | arg6 = (double)SWIG_As_double(obj5); | |
16744 | if (PyErr_Occurred()) SWIG_fail; | |
16745 | { | |
16746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16747 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
16748 | ||
16749 | wxPyEndAllowThreads(__tstate); | |
16750 | if (PyErr_Occurred()) SWIG_fail; | |
16751 | } | |
16752 | Py_INCREF(Py_None); resultobj = Py_None; | |
16753 | return resultobj; | |
16754 | fail: | |
16755 | return NULL; | |
16756 | } | |
16757 | ||
16758 | ||
16759 | static PyObject *_wrap_PyDrawnShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
16760 | PyObject *resultobj; | |
16761 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16762 | wxDC *arg2 = 0 ; | |
16763 | PyObject * obj0 = 0 ; | |
16764 | PyObject * obj1 = 0 ; | |
16765 | char *kwnames[] = { | |
16766 | (char *) "self",(char *) "dc", NULL | |
16767 | }; | |
16768 | ||
16769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
16770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16772 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16773 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16774 | SWIG_fail; | |
16775 | if (arg2 == NULL) { | |
16776 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16777 | SWIG_fail; | |
16778 | } | |
16779 | { | |
16780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16781 | (arg1)->base_OnDrawControlPoints(*arg2); | |
16782 | ||
16783 | wxPyEndAllowThreads(__tstate); | |
16784 | if (PyErr_Occurred()) SWIG_fail; | |
16785 | } | |
16786 | Py_INCREF(Py_None); resultobj = Py_None; | |
16787 | return resultobj; | |
16788 | fail: | |
16789 | return NULL; | |
16790 | } | |
16791 | ||
16792 | ||
16793 | static PyObject *_wrap_PyDrawnShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
16794 | PyObject *resultobj; | |
16795 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16796 | wxDC *arg2 = 0 ; | |
16797 | PyObject * obj0 = 0 ; | |
16798 | PyObject * obj1 = 0 ; | |
16799 | char *kwnames[] = { | |
16800 | (char *) "self",(char *) "dc", NULL | |
16801 | }; | |
16802 | ||
16803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
16804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16807 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16808 | SWIG_fail; | |
16809 | if (arg2 == NULL) { | |
16810 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16811 | SWIG_fail; | |
16812 | } | |
16813 | { | |
16814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16815 | (arg1)->base_OnEraseControlPoints(*arg2); | |
16816 | ||
16817 | wxPyEndAllowThreads(__tstate); | |
16818 | if (PyErr_Occurred()) SWIG_fail; | |
16819 | } | |
16820 | Py_INCREF(Py_None); resultobj = Py_None; | |
16821 | return resultobj; | |
16822 | fail: | |
16823 | return NULL; | |
16824 | } | |
16825 | ||
16826 | ||
16827 | static PyObject *_wrap_PyDrawnShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
16828 | PyObject *resultobj; | |
16829 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16830 | wxDC *arg2 = 0 ; | |
16831 | bool arg3 = (bool) true ; | |
16832 | PyObject * obj0 = 0 ; | |
16833 | PyObject * obj1 = 0 ; | |
16834 | PyObject * obj2 = 0 ; | |
16835 | char *kwnames[] = { | |
16836 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
16837 | }; | |
16838 | ||
16839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16842 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16843 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16844 | SWIG_fail; | |
16845 | if (arg2 == NULL) { | |
16846 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16847 | SWIG_fail; | |
16848 | } | |
16849 | if (obj2) { | |
16850 | arg3 = (bool)SWIG_As_bool(obj2); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
16853 | { | |
16854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16855 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
16856 | ||
16857 | wxPyEndAllowThreads(__tstate); | |
16858 | if (PyErr_Occurred()) SWIG_fail; | |
16859 | } | |
16860 | Py_INCREF(Py_None); resultobj = Py_None; | |
16861 | return resultobj; | |
16862 | fail: | |
16863 | return NULL; | |
16864 | } | |
16865 | ||
16866 | ||
16867 | static PyObject *_wrap_PyDrawnShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
16868 | PyObject *resultobj; | |
16869 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16870 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
16871 | bool arg3 ; | |
16872 | double arg4 ; | |
16873 | double arg5 ; | |
16874 | int arg6 = (int) 0 ; | |
16875 | int arg7 = (int) 0 ; | |
16876 | PyObject * obj0 = 0 ; | |
16877 | PyObject * obj1 = 0 ; | |
16878 | PyObject * obj2 = 0 ; | |
16879 | PyObject * obj3 = 0 ; | |
16880 | PyObject * obj4 = 0 ; | |
16881 | PyObject * obj5 = 0 ; | |
16882 | PyObject * obj6 = 0 ; | |
16883 | char *kwnames[] = { | |
16884 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16885 | }; | |
16886 | ||
16887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyDrawnShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16890 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
16891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16892 | arg3 = (bool)SWIG_As_bool(obj2); | |
16893 | if (PyErr_Occurred()) SWIG_fail; | |
16894 | arg4 = (double)SWIG_As_double(obj3); | |
16895 | if (PyErr_Occurred()) SWIG_fail; | |
16896 | arg5 = (double)SWIG_As_double(obj4); | |
16897 | if (PyErr_Occurred()) SWIG_fail; | |
16898 | if (obj5) { | |
16899 | arg6 = (int)SWIG_As_int(obj5); | |
16900 | if (PyErr_Occurred()) SWIG_fail; | |
16901 | } | |
16902 | if (obj6) { | |
16903 | arg7 = (int)SWIG_As_int(obj6); | |
16904 | if (PyErr_Occurred()) SWIG_fail; | |
16905 | } | |
16906 | { | |
16907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16908 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
16909 | ||
16910 | wxPyEndAllowThreads(__tstate); | |
16911 | if (PyErr_Occurred()) SWIG_fail; | |
16912 | } | |
16913 | Py_INCREF(Py_None); resultobj = Py_None; | |
16914 | return resultobj; | |
16915 | fail: | |
16916 | return NULL; | |
16917 | } | |
16918 | ||
16919 | ||
16920 | static PyObject *_wrap_PyDrawnShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
16921 | PyObject *resultobj; | |
16922 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16923 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
16924 | double arg3 ; | |
16925 | double arg4 ; | |
16926 | int arg5 = (int) 0 ; | |
16927 | int arg6 = (int) 0 ; | |
16928 | PyObject * obj0 = 0 ; | |
16929 | PyObject * obj1 = 0 ; | |
16930 | PyObject * obj2 = 0 ; | |
16931 | PyObject * obj3 = 0 ; | |
16932 | PyObject * obj4 = 0 ; | |
16933 | PyObject * obj5 = 0 ; | |
16934 | char *kwnames[] = { | |
16935 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16936 | }; | |
16937 | ||
16938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDrawnShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16941 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
16942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16943 | arg3 = (double)SWIG_As_double(obj2); | |
16944 | if (PyErr_Occurred()) SWIG_fail; | |
16945 | arg4 = (double)SWIG_As_double(obj3); | |
16946 | if (PyErr_Occurred()) SWIG_fail; | |
16947 | if (obj4) { | |
16948 | arg5 = (int)SWIG_As_int(obj4); | |
16949 | if (PyErr_Occurred()) SWIG_fail; | |
16950 | } | |
16951 | if (obj5) { | |
16952 | arg6 = (int)SWIG_As_int(obj5); | |
16953 | if (PyErr_Occurred()) SWIG_fail; | |
16954 | } | |
16955 | { | |
16956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16957 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
16958 | ||
16959 | wxPyEndAllowThreads(__tstate); | |
16960 | if (PyErr_Occurred()) SWIG_fail; | |
16961 | } | |
16962 | Py_INCREF(Py_None); resultobj = Py_None; | |
16963 | return resultobj; | |
16964 | fail: | |
16965 | return NULL; | |
16966 | } | |
16967 | ||
16968 | ||
16969 | static PyObject *_wrap_PyDrawnShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
16970 | PyObject *resultobj; | |
16971 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16972 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
16973 | double arg3 ; | |
16974 | double arg4 ; | |
16975 | int arg5 = (int) 0 ; | |
16976 | int arg6 = (int) 0 ; | |
16977 | PyObject * obj0 = 0 ; | |
16978 | PyObject * obj1 = 0 ; | |
16979 | PyObject * obj2 = 0 ; | |
16980 | PyObject * obj3 = 0 ; | |
16981 | PyObject * obj4 = 0 ; | |
16982 | PyObject * obj5 = 0 ; | |
16983 | char *kwnames[] = { | |
16984 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16985 | }; | |
16986 | ||
16987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDrawnShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
16989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16990 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
16991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16992 | arg3 = (double)SWIG_As_double(obj2); | |
16993 | if (PyErr_Occurred()) SWIG_fail; | |
16994 | arg4 = (double)SWIG_As_double(obj3); | |
16995 | if (PyErr_Occurred()) SWIG_fail; | |
16996 | if (obj4) { | |
16997 | arg5 = (int)SWIG_As_int(obj4); | |
16998 | if (PyErr_Occurred()) SWIG_fail; | |
16999 | } | |
17000 | if (obj5) { | |
17001 | arg6 = (int)SWIG_As_int(obj5); | |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
17003 | } | |
17004 | { | |
17005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17006 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
17007 | ||
17008 | wxPyEndAllowThreads(__tstate); | |
17009 | if (PyErr_Occurred()) SWIG_fail; | |
17010 | } | |
17011 | Py_INCREF(Py_None); resultobj = Py_None; | |
17012 | return resultobj; | |
17013 | fail: | |
17014 | return NULL; | |
17015 | } | |
17016 | ||
17017 | ||
17018 | static PyObject *_wrap_PyDrawnShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
17019 | PyObject *resultobj; | |
17020 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
17021 | double arg2 ; | |
17022 | double arg3 ; | |
17023 | PyObject * obj0 = 0 ; | |
17024 | PyObject * obj1 = 0 ; | |
17025 | PyObject * obj2 = 0 ; | |
17026 | char *kwnames[] = { | |
17027 | (char *) "self",(char *) "w",(char *) "h", NULL | |
17028 | }; | |
17029 | ||
17030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
17032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17033 | arg2 = (double)SWIG_As_double(obj1); | |
17034 | if (PyErr_Occurred()) SWIG_fail; | |
17035 | arg3 = (double)SWIG_As_double(obj2); | |
17036 | if (PyErr_Occurred()) SWIG_fail; | |
17037 | { | |
17038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17039 | (arg1)->base_OnBeginSize(arg2,arg3); | |
17040 | ||
17041 | wxPyEndAllowThreads(__tstate); | |
17042 | if (PyErr_Occurred()) SWIG_fail; | |
17043 | } | |
17044 | Py_INCREF(Py_None); resultobj = Py_None; | |
17045 | return resultobj; | |
17046 | fail: | |
17047 | return NULL; | |
17048 | } | |
17049 | ||
17050 | ||
17051 | static PyObject *_wrap_PyDrawnShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
17052 | PyObject *resultobj; | |
17053 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
17054 | double arg2 ; | |
17055 | double arg3 ; | |
17056 | PyObject * obj0 = 0 ; | |
17057 | PyObject * obj1 = 0 ; | |
17058 | PyObject * obj2 = 0 ; | |
17059 | char *kwnames[] = { | |
17060 | (char *) "self",(char *) "w",(char *) "h", NULL | |
17061 | }; | |
17062 | ||
17063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, | |
17065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17066 | arg2 = (double)SWIG_As_double(obj1); | |
17067 | if (PyErr_Occurred()) SWIG_fail; | |
17068 | arg3 = (double)SWIG_As_double(obj2); | |
17069 | if (PyErr_Occurred()) SWIG_fail; | |
17070 | { | |
17071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17072 | (arg1)->base_OnEndSize(arg2,arg3); | |
17073 | ||
17074 | wxPyEndAllowThreads(__tstate); | |
17075 | if (PyErr_Occurred()) SWIG_fail; | |
17076 | } | |
17077 | Py_INCREF(Py_None); resultobj = Py_None; | |
17078 | return resultobj; | |
17079 | fail: | |
17080 | return NULL; | |
17081 | } | |
17082 | ||
17083 | ||
17084 | static PyObject * PyDrawnShape_swigregister(PyObject *, PyObject *args) { | |
17085 | PyObject *obj; | |
17086 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17087 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDrawnShape, obj); | |
17088 | Py_INCREF(obj); | |
17089 | return Py_BuildValue((char *)""); | |
17090 | } | |
17091 | static PyObject *_wrap_new_OGLConstraint(PyObject *, PyObject *args, PyObject *kwargs) { | |
17092 | PyObject *resultobj; | |
17093 | int arg1 ; | |
17094 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
17095 | PyObject *arg3 = (PyObject *) 0 ; | |
17096 | wxOGLConstraint *result; | |
17097 | PyObject * obj0 = 0 ; | |
17098 | PyObject * obj1 = 0 ; | |
17099 | PyObject * obj2 = 0 ; | |
17100 | char *kwnames[] = { | |
17101 | (char *) "type",(char *) "constraining",(char *) "constrained", NULL | |
17102 | }; | |
17103 | ||
17104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_OGLConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17105 | arg1 = (int)SWIG_As_int(obj0); | |
17106 | if (PyErr_Occurred()) SWIG_fail; | |
17107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
17108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17109 | arg3 = obj2; | |
17110 | { | |
17111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17112 | result = (wxOGLConstraint *)new_wxOGLConstraint(arg1,arg2,arg3); | |
17113 | ||
17114 | wxPyEndAllowThreads(__tstate); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
17117 | { | |
17118 | resultobj = wxPyMake_wxObject(result, 1); | |
17119 | } | |
17120 | return resultobj; | |
17121 | fail: | |
17122 | return NULL; | |
17123 | } | |
17124 | ||
17125 | ||
17126 | static PyObject *_wrap_OGLConstraint_Evaluate(PyObject *, PyObject *args, PyObject *kwargs) { | |
17127 | PyObject *resultobj; | |
17128 | wxOGLConstraint *arg1 = (wxOGLConstraint *) 0 ; | |
17129 | bool result; | |
17130 | PyObject * obj0 = 0 ; | |
17131 | char *kwnames[] = { | |
17132 | (char *) "self", NULL | |
17133 | }; | |
17134 | ||
17135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:OGLConstraint_Evaluate",kwnames,&obj0)) goto fail; | |
17136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOGLConstraint, | |
17137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17138 | { | |
17139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17140 | result = (bool)(arg1)->Evaluate(); | |
17141 | ||
17142 | wxPyEndAllowThreads(__tstate); | |
17143 | if (PyErr_Occurred()) SWIG_fail; | |
17144 | } | |
17145 | { | |
17146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17147 | } | |
17148 | return resultobj; | |
17149 | fail: | |
17150 | return NULL; | |
17151 | } | |
17152 | ||
17153 | ||
17154 | static PyObject *_wrap_OGLConstraint_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
17155 | PyObject *resultobj; | |
17156 | wxOGLConstraint *arg1 = (wxOGLConstraint *) 0 ; | |
17157 | double arg2 ; | |
17158 | double arg3 ; | |
17159 | PyObject * obj0 = 0 ; | |
17160 | PyObject * obj1 = 0 ; | |
17161 | PyObject * obj2 = 0 ; | |
17162 | char *kwnames[] = { | |
17163 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17164 | }; | |
17165 | ||
17166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:OGLConstraint_SetSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOGLConstraint, | |
17168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17169 | arg2 = (double)SWIG_As_double(obj1); | |
17170 | if (PyErr_Occurred()) SWIG_fail; | |
17171 | arg3 = (double)SWIG_As_double(obj2); | |
17172 | if (PyErr_Occurred()) SWIG_fail; | |
17173 | { | |
17174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17175 | (arg1)->SetSpacing(arg2,arg3); | |
17176 | ||
17177 | wxPyEndAllowThreads(__tstate); | |
17178 | if (PyErr_Occurred()) SWIG_fail; | |
17179 | } | |
17180 | Py_INCREF(Py_None); resultobj = Py_None; | |
17181 | return resultobj; | |
17182 | fail: | |
17183 | return NULL; | |
17184 | } | |
17185 | ||
17186 | ||
17187 | static PyObject *_wrap_OGLConstraint_Equals(PyObject *, PyObject *args, PyObject *kwargs) { | |
17188 | PyObject *resultobj; | |
17189 | wxOGLConstraint *arg1 = (wxOGLConstraint *) 0 ; | |
17190 | double arg2 ; | |
17191 | double arg3 ; | |
17192 | bool result; | |
17193 | PyObject * obj0 = 0 ; | |
17194 | PyObject * obj1 = 0 ; | |
17195 | PyObject * obj2 = 0 ; | |
17196 | char *kwnames[] = { | |
17197 | (char *) "self",(char *) "a",(char *) "b", NULL | |
17198 | }; | |
17199 | ||
17200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:OGLConstraint_Equals",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOGLConstraint, | |
17202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17203 | arg2 = (double)SWIG_As_double(obj1); | |
17204 | if (PyErr_Occurred()) SWIG_fail; | |
17205 | arg3 = (double)SWIG_As_double(obj2); | |
17206 | if (PyErr_Occurred()) SWIG_fail; | |
17207 | { | |
17208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17209 | result = (bool)(arg1)->Equals(arg2,arg3); | |
17210 | ||
17211 | wxPyEndAllowThreads(__tstate); | |
17212 | if (PyErr_Occurred()) SWIG_fail; | |
17213 | } | |
17214 | { | |
17215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17216 | } | |
17217 | return resultobj; | |
17218 | fail: | |
17219 | return NULL; | |
17220 | } | |
17221 | ||
17222 | ||
17223 | static PyObject * OGLConstraint_swigregister(PyObject *, PyObject *args) { | |
17224 | PyObject *obj; | |
17225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17226 | SWIG_TypeClientData(SWIGTYPE_p_wxOGLConstraint, obj); | |
17227 | Py_INCREF(obj); | |
17228 | return Py_BuildValue((char *)""); | |
17229 | } | |
17230 | static PyObject *_wrap_new_PyCompositeShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
17231 | PyObject *resultobj; | |
17232 | wxPyCompositeShape *result; | |
17233 | char *kwnames[] = { | |
17234 | NULL | |
17235 | }; | |
17236 | ||
17237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyCompositeShape",kwnames)) goto fail; | |
17238 | { | |
17239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17240 | result = (wxPyCompositeShape *)new wxPyCompositeShape(); | |
17241 | ||
17242 | wxPyEndAllowThreads(__tstate); | |
17243 | if (PyErr_Occurred()) SWIG_fail; | |
17244 | } | |
17245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCompositeShape, 1); | |
17246 | return resultobj; | |
17247 | fail: | |
17248 | return NULL; | |
17249 | } | |
17250 | ||
17251 | ||
17252 | static PyObject *_wrap_PyCompositeShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
17253 | PyObject *resultobj; | |
17254 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17255 | PyObject *arg2 = (PyObject *) 0 ; | |
17256 | PyObject *arg3 = (PyObject *) 0 ; | |
17257 | PyObject * obj0 = 0 ; | |
17258 | PyObject * obj1 = 0 ; | |
17259 | PyObject * obj2 = 0 ; | |
17260 | char *kwnames[] = { | |
17261 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17262 | }; | |
17263 | ||
17264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCompositeShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17267 | arg2 = obj1; | |
17268 | arg3 = obj2; | |
17269 | { | |
17270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17271 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17272 | ||
17273 | wxPyEndAllowThreads(__tstate); | |
17274 | if (PyErr_Occurred()) SWIG_fail; | |
17275 | } | |
17276 | Py_INCREF(Py_None); resultobj = Py_None; | |
17277 | return resultobj; | |
17278 | fail: | |
17279 | return NULL; | |
17280 | } | |
17281 | ||
17282 | ||
17283 | static PyObject *_wrap_PyCompositeShape_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
17284 | PyObject *resultobj; | |
17285 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17286 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
17287 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
17288 | PyObject * obj0 = 0 ; | |
17289 | PyObject * obj1 = 0 ; | |
17290 | PyObject * obj2 = 0 ; | |
17291 | char *kwnames[] = { | |
17292 | (char *) "self",(char *) "child",(char *) "addAfter", NULL | |
17293 | }; | |
17294 | ||
17295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCompositeShape_AddChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17298 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
17299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17300 | if (obj2) { | |
17301 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
17302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17303 | } | |
17304 | { | |
17305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17306 | (arg1)->AddChild(arg2,arg3); | |
17307 | ||
17308 | wxPyEndAllowThreads(__tstate); | |
17309 | if (PyErr_Occurred()) SWIG_fail; | |
17310 | } | |
17311 | Py_INCREF(Py_None); resultobj = Py_None; | |
17312 | return resultobj; | |
17313 | fail: | |
17314 | return NULL; | |
17315 | } | |
17316 | ||
17317 | ||
17318 | static PyObject *_wrap_PyCompositeShape_AddConstraint(PyObject *, PyObject *args, PyObject *kwargs) { | |
17319 | PyObject *resultobj; | |
17320 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17321 | wxOGLConstraint *arg2 = (wxOGLConstraint *) 0 ; | |
17322 | wxOGLConstraint *result; | |
17323 | PyObject * obj0 = 0 ; | |
17324 | PyObject * obj1 = 0 ; | |
17325 | char *kwnames[] = { | |
17326 | (char *) "self",(char *) "constraint", NULL | |
17327 | }; | |
17328 | ||
17329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_AddConstraint",kwnames,&obj0,&obj1)) goto fail; | |
17330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17332 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOGLConstraint, | |
17333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17334 | { | |
17335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17336 | result = (wxOGLConstraint *)(arg1)->AddConstraint(arg2); | |
17337 | ||
17338 | wxPyEndAllowThreads(__tstate); | |
17339 | if (PyErr_Occurred()) SWIG_fail; | |
17340 | } | |
17341 | { | |
17342 | resultobj = wxPyMake_wxObject(result, 0); | |
17343 | } | |
17344 | return resultobj; | |
17345 | fail: | |
17346 | return NULL; | |
17347 | } | |
17348 | ||
17349 | ||
17350 | static PyObject *_wrap_PyCompositeShape_AddConstrainedShapes(PyObject *, PyObject *args, PyObject *kwargs) { | |
17351 | PyObject *resultobj; | |
17352 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17353 | int arg2 ; | |
17354 | wxPyShape *arg3 = (wxPyShape *) 0 ; | |
17355 | PyObject *arg4 = (PyObject *) 0 ; | |
17356 | wxOGLConstraint *result; | |
17357 | PyObject * obj0 = 0 ; | |
17358 | PyObject * obj1 = 0 ; | |
17359 | PyObject * obj2 = 0 ; | |
17360 | PyObject * obj3 = 0 ; | |
17361 | char *kwnames[] = { | |
17362 | (char *) "self",(char *) "type",(char *) "constraining",(char *) "constrained", NULL | |
17363 | }; | |
17364 | ||
17365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyCompositeShape_AddConstrainedShapes",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17368 | arg2 = (int)SWIG_As_int(obj1); | |
17369 | if (PyErr_Occurred()) SWIG_fail; | |
17370 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
17371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17372 | arg4 = obj3; | |
17373 | { | |
17374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17375 | result = (wxOGLConstraint *)wxPyCompositeShape_AddConstrainedShapes(arg1,arg2,arg3,arg4); | |
17376 | ||
17377 | wxPyEndAllowThreads(__tstate); | |
17378 | if (PyErr_Occurred()) SWIG_fail; | |
17379 | } | |
17380 | { | |
17381 | resultobj = wxPyMake_wxObject(result, 0); | |
17382 | } | |
17383 | return resultobj; | |
17384 | fail: | |
17385 | return NULL; | |
17386 | } | |
17387 | ||
17388 | ||
17389 | static PyObject *_wrap_PyCompositeShape_AddSimpleConstraint(PyObject *, PyObject *args, PyObject *kwargs) { | |
17390 | PyObject *resultobj; | |
17391 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17392 | int arg2 ; | |
17393 | wxPyShape *arg3 = (wxPyShape *) 0 ; | |
17394 | wxPyShape *arg4 = (wxPyShape *) 0 ; | |
17395 | wxOGLConstraint *result; | |
17396 | PyObject * obj0 = 0 ; | |
17397 | PyObject * obj1 = 0 ; | |
17398 | PyObject * obj2 = 0 ; | |
17399 | PyObject * obj3 = 0 ; | |
17400 | char *kwnames[] = { | |
17401 | (char *) "self",(char *) "type",(char *) "constraining",(char *) "constrained", NULL | |
17402 | }; | |
17403 | ||
17404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyCompositeShape_AddSimpleConstraint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17407 | arg2 = (int)SWIG_As_int(obj1); | |
17408 | if (PyErr_Occurred()) SWIG_fail; | |
17409 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
17410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17411 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPyShape, | |
17412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17413 | { | |
17414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17415 | result = (wxOGLConstraint *)(arg1)->AddConstraint(arg2,arg3,arg4); | |
17416 | ||
17417 | wxPyEndAllowThreads(__tstate); | |
17418 | if (PyErr_Occurred()) SWIG_fail; | |
17419 | } | |
17420 | { | |
17421 | resultobj = wxPyMake_wxObject(result, 0); | |
17422 | } | |
17423 | return resultobj; | |
17424 | fail: | |
17425 | return NULL; | |
17426 | } | |
17427 | ||
17428 | ||
17429 | static PyObject *_wrap_PyCompositeShape_CalculateSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
17430 | PyObject *resultobj; | |
17431 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17432 | PyObject * obj0 = 0 ; | |
17433 | char *kwnames[] = { | |
17434 | (char *) "self", NULL | |
17435 | }; | |
17436 | ||
17437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_CalculateSize",kwnames,&obj0)) goto fail; | |
17438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17440 | { | |
17441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17442 | (arg1)->CalculateSize(); | |
17443 | ||
17444 | wxPyEndAllowThreads(__tstate); | |
17445 | if (PyErr_Occurred()) SWIG_fail; | |
17446 | } | |
17447 | Py_INCREF(Py_None); resultobj = Py_None; | |
17448 | return resultobj; | |
17449 | fail: | |
17450 | return NULL; | |
17451 | } | |
17452 | ||
17453 | ||
17454 | static PyObject *_wrap_PyCompositeShape_ContainsDivision(PyObject *, PyObject *args, PyObject *kwargs) { | |
17455 | PyObject *resultobj; | |
17456 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17457 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
17458 | bool result; | |
17459 | PyObject * obj0 = 0 ; | |
17460 | PyObject * obj1 = 0 ; | |
17461 | char *kwnames[] = { | |
17462 | (char *) "self",(char *) "division", NULL | |
17463 | }; | |
17464 | ||
17465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_ContainsDivision",kwnames,&obj0,&obj1)) goto fail; | |
17466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17468 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
17469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17470 | { | |
17471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17472 | result = (bool)(arg1)->ContainsDivision(arg2); | |
17473 | ||
17474 | wxPyEndAllowThreads(__tstate); | |
17475 | if (PyErr_Occurred()) SWIG_fail; | |
17476 | } | |
17477 | { | |
17478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17479 | } | |
17480 | return resultobj; | |
17481 | fail: | |
17482 | return NULL; | |
17483 | } | |
17484 | ||
17485 | ||
17486 | static PyObject *_wrap_PyCompositeShape_DeleteConstraint(PyObject *, PyObject *args, PyObject *kwargs) { | |
17487 | PyObject *resultobj; | |
17488 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17489 | wxOGLConstraint *arg2 = (wxOGLConstraint *) 0 ; | |
17490 | PyObject * obj0 = 0 ; | |
17491 | PyObject * obj1 = 0 ; | |
17492 | char *kwnames[] = { | |
17493 | (char *) "self",(char *) "constraint", NULL | |
17494 | }; | |
17495 | ||
17496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_DeleteConstraint",kwnames,&obj0,&obj1)) goto fail; | |
17497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOGLConstraint, | |
17500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17501 | { | |
17502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17503 | (arg1)->DeleteConstraint(arg2); | |
17504 | ||
17505 | wxPyEndAllowThreads(__tstate); | |
17506 | if (PyErr_Occurred()) SWIG_fail; | |
17507 | } | |
17508 | Py_INCREF(Py_None); resultobj = Py_None; | |
17509 | return resultobj; | |
17510 | fail: | |
17511 | return NULL; | |
17512 | } | |
17513 | ||
17514 | ||
17515 | static PyObject *_wrap_PyCompositeShape_DeleteConstraintsInvolvingChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
17516 | PyObject *resultobj; | |
17517 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17518 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
17519 | PyObject * obj0 = 0 ; | |
17520 | PyObject * obj1 = 0 ; | |
17521 | char *kwnames[] = { | |
17522 | (char *) "self",(char *) "child", NULL | |
17523 | }; | |
17524 | ||
17525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_DeleteConstraintsInvolvingChild",kwnames,&obj0,&obj1)) goto fail; | |
17526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17528 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
17529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17530 | { | |
17531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17532 | (arg1)->DeleteConstraintsInvolvingChild(arg2); | |
17533 | ||
17534 | wxPyEndAllowThreads(__tstate); | |
17535 | if (PyErr_Occurred()) SWIG_fail; | |
17536 | } | |
17537 | Py_INCREF(Py_None); resultobj = Py_None; | |
17538 | return resultobj; | |
17539 | fail: | |
17540 | return NULL; | |
17541 | } | |
17542 | ||
17543 | ||
17544 | static PyObject *_wrap_PyCompositeShape_FindContainerImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
17545 | PyObject *resultobj; | |
17546 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17547 | wxPyShape *result; | |
17548 | PyObject * obj0 = 0 ; | |
17549 | char *kwnames[] = { | |
17550 | (char *) "self", NULL | |
17551 | }; | |
17552 | ||
17553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_FindContainerImage",kwnames,&obj0)) goto fail; | |
17554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17556 | { | |
17557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17558 | result = (wxPyShape *)(arg1)->FindContainerImage(); | |
17559 | ||
17560 | wxPyEndAllowThreads(__tstate); | |
17561 | if (PyErr_Occurred()) SWIG_fail; | |
17562 | } | |
17563 | { | |
17564 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
17565 | } | |
17566 | return resultobj; | |
17567 | fail: | |
17568 | return NULL; | |
17569 | } | |
17570 | ||
17571 | ||
17572 | static PyObject *_wrap_PyCompositeShape_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { | |
17573 | PyObject *resultobj; | |
17574 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17575 | PyObject *result; | |
17576 | PyObject * obj0 = 0 ; | |
17577 | char *kwnames[] = { | |
17578 | (char *) "self", NULL | |
17579 | }; | |
17580 | ||
17581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_GetConstraints",kwnames,&obj0)) goto fail; | |
17582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17584 | { | |
17585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17586 | result = (PyObject *)wxPyCompositeShape_GetConstraints(arg1); | |
17587 | ||
17588 | wxPyEndAllowThreads(__tstate); | |
17589 | if (PyErr_Occurred()) SWIG_fail; | |
17590 | } | |
17591 | resultobj = result; | |
17592 | return resultobj; | |
17593 | fail: | |
17594 | return NULL; | |
17595 | } | |
17596 | ||
17597 | ||
17598 | static PyObject *_wrap_PyCompositeShape_GetDivisions(PyObject *, PyObject *args, PyObject *kwargs) { | |
17599 | PyObject *resultobj; | |
17600 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17601 | PyObject *result; | |
17602 | PyObject * obj0 = 0 ; | |
17603 | char *kwnames[] = { | |
17604 | (char *) "self", NULL | |
17605 | }; | |
17606 | ||
17607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_GetDivisions",kwnames,&obj0)) goto fail; | |
17608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17610 | { | |
17611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17612 | result = (PyObject *)wxPyCompositeShape_GetDivisions(arg1); | |
17613 | ||
17614 | wxPyEndAllowThreads(__tstate); | |
17615 | if (PyErr_Occurred()) SWIG_fail; | |
17616 | } | |
17617 | resultobj = result; | |
17618 | return resultobj; | |
17619 | fail: | |
17620 | return NULL; | |
17621 | } | |
17622 | ||
17623 | ||
17624 | static PyObject *_wrap_PyCompositeShape_MakeContainer(PyObject *, PyObject *args, PyObject *kwargs) { | |
17625 | PyObject *resultobj; | |
17626 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17627 | PyObject * obj0 = 0 ; | |
17628 | char *kwnames[] = { | |
17629 | (char *) "self", NULL | |
17630 | }; | |
17631 | ||
17632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_MakeContainer",kwnames,&obj0)) goto fail; | |
17633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17635 | { | |
17636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17637 | (arg1)->MakeContainer(); | |
17638 | ||
17639 | wxPyEndAllowThreads(__tstate); | |
17640 | if (PyErr_Occurred()) SWIG_fail; | |
17641 | } | |
17642 | Py_INCREF(Py_None); resultobj = Py_None; | |
17643 | return resultobj; | |
17644 | fail: | |
17645 | return NULL; | |
17646 | } | |
17647 | ||
17648 | ||
17649 | static PyObject *_wrap_PyCompositeShape_Recompute(PyObject *, PyObject *args, PyObject *kwargs) { | |
17650 | PyObject *resultobj; | |
17651 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17652 | bool result; | |
17653 | PyObject * obj0 = 0 ; | |
17654 | char *kwnames[] = { | |
17655 | (char *) "self", NULL | |
17656 | }; | |
17657 | ||
17658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_Recompute",kwnames,&obj0)) goto fail; | |
17659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17661 | { | |
17662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17663 | result = (bool)(arg1)->Recompute(); | |
17664 | ||
17665 | wxPyEndAllowThreads(__tstate); | |
17666 | if (PyErr_Occurred()) SWIG_fail; | |
17667 | } | |
17668 | { | |
17669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17670 | } | |
17671 | return resultobj; | |
17672 | fail: | |
17673 | return NULL; | |
17674 | } | |
17675 | ||
17676 | ||
17677 | static PyObject *_wrap_PyCompositeShape_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
17678 | PyObject *resultobj; | |
17679 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17680 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
17681 | PyObject * obj0 = 0 ; | |
17682 | PyObject * obj1 = 0 ; | |
17683 | char *kwnames[] = { | |
17684 | (char *) "self",(char *) "child", NULL | |
17685 | }; | |
17686 | ||
17687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
17688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
17691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17692 | { | |
17693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17694 | (arg1)->RemoveChild(arg2); | |
17695 | ||
17696 | wxPyEndAllowThreads(__tstate); | |
17697 | if (PyErr_Occurred()) SWIG_fail; | |
17698 | } | |
17699 | Py_INCREF(Py_None); resultobj = Py_None; | |
17700 | return resultobj; | |
17701 | fail: | |
17702 | return NULL; | |
17703 | } | |
17704 | ||
17705 | ||
17706 | static PyObject *_wrap_PyCompositeShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
17707 | PyObject *resultobj; | |
17708 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17709 | PyObject * obj0 = 0 ; | |
17710 | char *kwnames[] = { | |
17711 | (char *) "self", NULL | |
17712 | }; | |
17713 | ||
17714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
17715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17717 | { | |
17718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17719 | (arg1)->base_OnDelete(); | |
17720 | ||
17721 | wxPyEndAllowThreads(__tstate); | |
17722 | if (PyErr_Occurred()) SWIG_fail; | |
17723 | } | |
17724 | Py_INCREF(Py_None); resultobj = Py_None; | |
17725 | return resultobj; | |
17726 | fail: | |
17727 | return NULL; | |
17728 | } | |
17729 | ||
17730 | ||
17731 | static PyObject *_wrap_PyCompositeShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
17732 | PyObject *resultobj; | |
17733 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17734 | wxDC *arg2 = 0 ; | |
17735 | PyObject * obj0 = 0 ; | |
17736 | PyObject * obj1 = 0 ; | |
17737 | char *kwnames[] = { | |
17738 | (char *) "self",(char *) "dc", NULL | |
17739 | }; | |
17740 | ||
17741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
17742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17744 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17745 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17746 | SWIG_fail; | |
17747 | if (arg2 == NULL) { | |
17748 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17749 | SWIG_fail; | |
17750 | } | |
17751 | { | |
17752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17753 | (arg1)->base_OnDraw(*arg2); | |
17754 | ||
17755 | wxPyEndAllowThreads(__tstate); | |
17756 | if (PyErr_Occurred()) SWIG_fail; | |
17757 | } | |
17758 | Py_INCREF(Py_None); resultobj = Py_None; | |
17759 | return resultobj; | |
17760 | fail: | |
17761 | return NULL; | |
17762 | } | |
17763 | ||
17764 | ||
17765 | static PyObject *_wrap_PyCompositeShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
17766 | PyObject *resultobj; | |
17767 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17768 | wxDC *arg2 = 0 ; | |
17769 | PyObject * obj0 = 0 ; | |
17770 | PyObject * obj1 = 0 ; | |
17771 | char *kwnames[] = { | |
17772 | (char *) "self",(char *) "dc", NULL | |
17773 | }; | |
17774 | ||
17775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
17776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17778 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17779 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17780 | SWIG_fail; | |
17781 | if (arg2 == NULL) { | |
17782 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17783 | SWIG_fail; | |
17784 | } | |
17785 | { | |
17786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17787 | (arg1)->base_OnDrawContents(*arg2); | |
17788 | ||
17789 | wxPyEndAllowThreads(__tstate); | |
17790 | if (PyErr_Occurred()) SWIG_fail; | |
17791 | } | |
17792 | Py_INCREF(Py_None); resultobj = Py_None; | |
17793 | return resultobj; | |
17794 | fail: | |
17795 | return NULL; | |
17796 | } | |
17797 | ||
17798 | ||
17799 | static PyObject *_wrap_PyCompositeShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
17800 | PyObject *resultobj; | |
17801 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17802 | wxDC *arg2 = 0 ; | |
17803 | bool arg3 = (bool) FALSE ; | |
17804 | PyObject * obj0 = 0 ; | |
17805 | PyObject * obj1 = 0 ; | |
17806 | PyObject * obj2 = 0 ; | |
17807 | char *kwnames[] = { | |
17808 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
17809 | }; | |
17810 | ||
17811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCompositeShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17814 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17815 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17816 | SWIG_fail; | |
17817 | if (arg2 == NULL) { | |
17818 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17819 | SWIG_fail; | |
17820 | } | |
17821 | if (obj2) { | |
17822 | arg3 = (bool)SWIG_As_bool(obj2); | |
17823 | if (PyErr_Occurred()) SWIG_fail; | |
17824 | } | |
17825 | { | |
17826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17827 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
17828 | ||
17829 | wxPyEndAllowThreads(__tstate); | |
17830 | if (PyErr_Occurred()) SWIG_fail; | |
17831 | } | |
17832 | Py_INCREF(Py_None); resultobj = Py_None; | |
17833 | return resultobj; | |
17834 | fail: | |
17835 | return NULL; | |
17836 | } | |
17837 | ||
17838 | ||
17839 | static PyObject *_wrap_PyCompositeShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
17840 | PyObject *resultobj; | |
17841 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17842 | wxDC *arg2 = 0 ; | |
17843 | PyObject * obj0 = 0 ; | |
17844 | PyObject * obj1 = 0 ; | |
17845 | char *kwnames[] = { | |
17846 | (char *) "self",(char *) "dc", NULL | |
17847 | }; | |
17848 | ||
17849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
17850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17854 | SWIG_fail; | |
17855 | if (arg2 == NULL) { | |
17856 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17857 | SWIG_fail; | |
17858 | } | |
17859 | { | |
17860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17861 | (arg1)->base_OnMoveLinks(*arg2); | |
17862 | ||
17863 | wxPyEndAllowThreads(__tstate); | |
17864 | if (PyErr_Occurred()) SWIG_fail; | |
17865 | } | |
17866 | Py_INCREF(Py_None); resultobj = Py_None; | |
17867 | return resultobj; | |
17868 | fail: | |
17869 | return NULL; | |
17870 | } | |
17871 | ||
17872 | ||
17873 | static PyObject *_wrap_PyCompositeShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
17874 | PyObject *resultobj; | |
17875 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17876 | wxDC *arg2 = 0 ; | |
17877 | PyObject * obj0 = 0 ; | |
17878 | PyObject * obj1 = 0 ; | |
17879 | char *kwnames[] = { | |
17880 | (char *) "self",(char *) "dc", NULL | |
17881 | }; | |
17882 | ||
17883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
17884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17887 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17888 | SWIG_fail; | |
17889 | if (arg2 == NULL) { | |
17890 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17891 | SWIG_fail; | |
17892 | } | |
17893 | { | |
17894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17895 | (arg1)->base_OnErase(*arg2); | |
17896 | ||
17897 | wxPyEndAllowThreads(__tstate); | |
17898 | if (PyErr_Occurred()) SWIG_fail; | |
17899 | } | |
17900 | Py_INCREF(Py_None); resultobj = Py_None; | |
17901 | return resultobj; | |
17902 | fail: | |
17903 | return NULL; | |
17904 | } | |
17905 | ||
17906 | ||
17907 | static PyObject *_wrap_PyCompositeShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
17908 | PyObject *resultobj; | |
17909 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17910 | wxDC *arg2 = 0 ; | |
17911 | PyObject * obj0 = 0 ; | |
17912 | PyObject * obj1 = 0 ; | |
17913 | char *kwnames[] = { | |
17914 | (char *) "self",(char *) "dc", NULL | |
17915 | }; | |
17916 | ||
17917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
17918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17920 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17921 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17922 | SWIG_fail; | |
17923 | if (arg2 == NULL) { | |
17924 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17925 | SWIG_fail; | |
17926 | } | |
17927 | { | |
17928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17929 | (arg1)->base_OnEraseContents(*arg2); | |
17930 | ||
17931 | wxPyEndAllowThreads(__tstate); | |
17932 | if (PyErr_Occurred()) SWIG_fail; | |
17933 | } | |
17934 | Py_INCREF(Py_None); resultobj = Py_None; | |
17935 | return resultobj; | |
17936 | fail: | |
17937 | return NULL; | |
17938 | } | |
17939 | ||
17940 | ||
17941 | static PyObject *_wrap_PyCompositeShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
17942 | PyObject *resultobj; | |
17943 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17944 | wxDC *arg2 = 0 ; | |
17945 | PyObject * obj0 = 0 ; | |
17946 | PyObject * obj1 = 0 ; | |
17947 | char *kwnames[] = { | |
17948 | (char *) "self",(char *) "dc", NULL | |
17949 | }; | |
17950 | ||
17951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
17952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17954 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17955 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17956 | SWIG_fail; | |
17957 | if (arg2 == NULL) { | |
17958 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17959 | SWIG_fail; | |
17960 | } | |
17961 | { | |
17962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17963 | (arg1)->base_OnHighlight(*arg2); | |
17964 | ||
17965 | wxPyEndAllowThreads(__tstate); | |
17966 | if (PyErr_Occurred()) SWIG_fail; | |
17967 | } | |
17968 | Py_INCREF(Py_None); resultobj = Py_None; | |
17969 | return resultobj; | |
17970 | fail: | |
17971 | return NULL; | |
17972 | } | |
17973 | ||
17974 | ||
17975 | static PyObject *_wrap_PyCompositeShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
17976 | PyObject *resultobj; | |
17977 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17978 | double arg2 ; | |
17979 | double arg3 ; | |
17980 | int arg4 = (int) 0 ; | |
17981 | int arg5 = (int) 0 ; | |
17982 | PyObject * obj0 = 0 ; | |
17983 | PyObject * obj1 = 0 ; | |
17984 | PyObject * obj2 = 0 ; | |
17985 | PyObject * obj3 = 0 ; | |
17986 | PyObject * obj4 = 0 ; | |
17987 | char *kwnames[] = { | |
17988 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17989 | }; | |
17990 | ||
17991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
17993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17994 | arg2 = (double)SWIG_As_double(obj1); | |
17995 | if (PyErr_Occurred()) SWIG_fail; | |
17996 | arg3 = (double)SWIG_As_double(obj2); | |
17997 | if (PyErr_Occurred()) SWIG_fail; | |
17998 | if (obj3) { | |
17999 | arg4 = (int)SWIG_As_int(obj3); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
18002 | if (obj4) { | |
18003 | arg5 = (int)SWIG_As_int(obj4); | |
18004 | if (PyErr_Occurred()) SWIG_fail; | |
18005 | } | |
18006 | { | |
18007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18008 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
18009 | ||
18010 | wxPyEndAllowThreads(__tstate); | |
18011 | if (PyErr_Occurred()) SWIG_fail; | |
18012 | } | |
18013 | Py_INCREF(Py_None); resultobj = Py_None; | |
18014 | return resultobj; | |
18015 | fail: | |
18016 | return NULL; | |
18017 | } | |
18018 | ||
18019 | ||
18020 | static PyObject *_wrap_PyCompositeShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
18021 | PyObject *resultobj; | |
18022 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18023 | double arg2 ; | |
18024 | double arg3 ; | |
18025 | int arg4 = (int) 0 ; | |
18026 | int arg5 = (int) 0 ; | |
18027 | PyObject * obj0 = 0 ; | |
18028 | PyObject * obj1 = 0 ; | |
18029 | PyObject * obj2 = 0 ; | |
18030 | PyObject * obj3 = 0 ; | |
18031 | PyObject * obj4 = 0 ; | |
18032 | char *kwnames[] = { | |
18033 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18034 | }; | |
18035 | ||
18036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18039 | arg2 = (double)SWIG_As_double(obj1); | |
18040 | if (PyErr_Occurred()) SWIG_fail; | |
18041 | arg3 = (double)SWIG_As_double(obj2); | |
18042 | if (PyErr_Occurred()) SWIG_fail; | |
18043 | if (obj3) { | |
18044 | arg4 = (int)SWIG_As_int(obj3); | |
18045 | if (PyErr_Occurred()) SWIG_fail; | |
18046 | } | |
18047 | if (obj4) { | |
18048 | arg5 = (int)SWIG_As_int(obj4); | |
18049 | if (PyErr_Occurred()) SWIG_fail; | |
18050 | } | |
18051 | { | |
18052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18053 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
18054 | ||
18055 | wxPyEndAllowThreads(__tstate); | |
18056 | if (PyErr_Occurred()) SWIG_fail; | |
18057 | } | |
18058 | Py_INCREF(Py_None); resultobj = Py_None; | |
18059 | return resultobj; | |
18060 | fail: | |
18061 | return NULL; | |
18062 | } | |
18063 | ||
18064 | ||
18065 | static PyObject *_wrap_PyCompositeShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
18066 | PyObject *resultobj; | |
18067 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18068 | double arg2 ; | |
18069 | double arg3 ; | |
18070 | int arg4 = (int) 0 ; | |
18071 | int arg5 = (int) 0 ; | |
18072 | PyObject * obj0 = 0 ; | |
18073 | PyObject * obj1 = 0 ; | |
18074 | PyObject * obj2 = 0 ; | |
18075 | PyObject * obj3 = 0 ; | |
18076 | PyObject * obj4 = 0 ; | |
18077 | char *kwnames[] = { | |
18078 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18079 | }; | |
18080 | ||
18081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18084 | arg2 = (double)SWIG_As_double(obj1); | |
18085 | if (PyErr_Occurred()) SWIG_fail; | |
18086 | arg3 = (double)SWIG_As_double(obj2); | |
18087 | if (PyErr_Occurred()) SWIG_fail; | |
18088 | if (obj3) { | |
18089 | arg4 = (int)SWIG_As_int(obj3); | |
18090 | if (PyErr_Occurred()) SWIG_fail; | |
18091 | } | |
18092 | if (obj4) { | |
18093 | arg5 = (int)SWIG_As_int(obj4); | |
18094 | if (PyErr_Occurred()) SWIG_fail; | |
18095 | } | |
18096 | { | |
18097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18098 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
18099 | ||
18100 | wxPyEndAllowThreads(__tstate); | |
18101 | if (PyErr_Occurred()) SWIG_fail; | |
18102 | } | |
18103 | Py_INCREF(Py_None); resultobj = Py_None; | |
18104 | return resultobj; | |
18105 | fail: | |
18106 | return NULL; | |
18107 | } | |
18108 | ||
18109 | ||
18110 | static PyObject *_wrap_PyCompositeShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
18111 | PyObject *resultobj; | |
18112 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18113 | double arg2 ; | |
18114 | double arg3 ; | |
18115 | PyObject * obj0 = 0 ; | |
18116 | PyObject * obj1 = 0 ; | |
18117 | PyObject * obj2 = 0 ; | |
18118 | char *kwnames[] = { | |
18119 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18120 | }; | |
18121 | ||
18122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCompositeShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18125 | arg2 = (double)SWIG_As_double(obj1); | |
18126 | if (PyErr_Occurred()) SWIG_fail; | |
18127 | arg3 = (double)SWIG_As_double(obj2); | |
18128 | if (PyErr_Occurred()) SWIG_fail; | |
18129 | { | |
18130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18131 | (arg1)->base_OnSize(arg2,arg3); | |
18132 | ||
18133 | wxPyEndAllowThreads(__tstate); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
18136 | Py_INCREF(Py_None); resultobj = Py_None; | |
18137 | return resultobj; | |
18138 | fail: | |
18139 | return NULL; | |
18140 | } | |
18141 | ||
18142 | ||
18143 | static PyObject *_wrap_PyCompositeShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
18144 | PyObject *resultobj; | |
18145 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18146 | wxDC *arg2 = 0 ; | |
18147 | double arg3 ; | |
18148 | double arg4 ; | |
18149 | double arg5 ; | |
18150 | double arg6 ; | |
18151 | bool arg7 = (bool) true ; | |
18152 | bool result; | |
18153 | PyObject * obj0 = 0 ; | |
18154 | PyObject * obj1 = 0 ; | |
18155 | PyObject * obj2 = 0 ; | |
18156 | PyObject * obj3 = 0 ; | |
18157 | PyObject * obj4 = 0 ; | |
18158 | PyObject * obj5 = 0 ; | |
18159 | PyObject * obj6 = 0 ; | |
18160 | char *kwnames[] = { | |
18161 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
18162 | }; | |
18163 | ||
18164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyCompositeShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
18165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18169 | SWIG_fail; | |
18170 | if (arg2 == NULL) { | |
18171 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18172 | SWIG_fail; | |
18173 | } | |
18174 | arg3 = (double)SWIG_As_double(obj2); | |
18175 | if (PyErr_Occurred()) SWIG_fail; | |
18176 | arg4 = (double)SWIG_As_double(obj3); | |
18177 | if (PyErr_Occurred()) SWIG_fail; | |
18178 | arg5 = (double)SWIG_As_double(obj4); | |
18179 | if (PyErr_Occurred()) SWIG_fail; | |
18180 | arg6 = (double)SWIG_As_double(obj5); | |
18181 | if (PyErr_Occurred()) SWIG_fail; | |
18182 | if (obj6) { | |
18183 | arg7 = (bool)SWIG_As_bool(obj6); | |
18184 | if (PyErr_Occurred()) SWIG_fail; | |
18185 | } | |
18186 | { | |
18187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18188 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
18189 | ||
18190 | wxPyEndAllowThreads(__tstate); | |
18191 | if (PyErr_Occurred()) SWIG_fail; | |
18192 | } | |
18193 | { | |
18194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18195 | } | |
18196 | return resultobj; | |
18197 | fail: | |
18198 | return NULL; | |
18199 | } | |
18200 | ||
18201 | ||
18202 | static PyObject *_wrap_PyCompositeShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
18203 | PyObject *resultobj; | |
18204 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18205 | wxDC *arg2 = 0 ; | |
18206 | double arg3 ; | |
18207 | double arg4 ; | |
18208 | double arg5 ; | |
18209 | double arg6 ; | |
18210 | bool arg7 = (bool) true ; | |
18211 | PyObject * obj0 = 0 ; | |
18212 | PyObject * obj1 = 0 ; | |
18213 | PyObject * obj2 = 0 ; | |
18214 | PyObject * obj3 = 0 ; | |
18215 | PyObject * obj4 = 0 ; | |
18216 | PyObject * obj5 = 0 ; | |
18217 | PyObject * obj6 = 0 ; | |
18218 | char *kwnames[] = { | |
18219 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
18220 | }; | |
18221 | ||
18222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyCompositeShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
18223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18225 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18226 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18227 | SWIG_fail; | |
18228 | if (arg2 == NULL) { | |
18229 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18230 | SWIG_fail; | |
18231 | } | |
18232 | arg3 = (double)SWIG_As_double(obj2); | |
18233 | if (PyErr_Occurred()) SWIG_fail; | |
18234 | arg4 = (double)SWIG_As_double(obj3); | |
18235 | if (PyErr_Occurred()) SWIG_fail; | |
18236 | arg5 = (double)SWIG_As_double(obj4); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | arg6 = (double)SWIG_As_double(obj5); | |
18239 | if (PyErr_Occurred()) SWIG_fail; | |
18240 | if (obj6) { | |
18241 | arg7 = (bool)SWIG_As_bool(obj6); | |
18242 | if (PyErr_Occurred()) SWIG_fail; | |
18243 | } | |
18244 | { | |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18246 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
18247 | ||
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
18251 | Py_INCREF(Py_None); resultobj = Py_None; | |
18252 | return resultobj; | |
18253 | fail: | |
18254 | return NULL; | |
18255 | } | |
18256 | ||
18257 | ||
18258 | static PyObject *_wrap_PyCompositeShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
18259 | PyObject *resultobj; | |
18260 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18261 | bool arg2 ; | |
18262 | double arg3 ; | |
18263 | double arg4 ; | |
18264 | int arg5 = (int) 0 ; | |
18265 | int arg6 = (int) 0 ; | |
18266 | PyObject * obj0 = 0 ; | |
18267 | PyObject * obj1 = 0 ; | |
18268 | PyObject * obj2 = 0 ; | |
18269 | PyObject * obj3 = 0 ; | |
18270 | PyObject * obj4 = 0 ; | |
18271 | PyObject * obj5 = 0 ; | |
18272 | char *kwnames[] = { | |
18273 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18274 | }; | |
18275 | ||
18276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCompositeShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18279 | arg2 = (bool)SWIG_As_bool(obj1); | |
18280 | if (PyErr_Occurred()) SWIG_fail; | |
18281 | arg3 = (double)SWIG_As_double(obj2); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
18283 | arg4 = (double)SWIG_As_double(obj3); | |
18284 | if (PyErr_Occurred()) SWIG_fail; | |
18285 | if (obj4) { | |
18286 | arg5 = (int)SWIG_As_int(obj4); | |
18287 | if (PyErr_Occurred()) SWIG_fail; | |
18288 | } | |
18289 | if (obj5) { | |
18290 | arg6 = (int)SWIG_As_int(obj5); | |
18291 | if (PyErr_Occurred()) SWIG_fail; | |
18292 | } | |
18293 | { | |
18294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18295 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18296 | ||
18297 | wxPyEndAllowThreads(__tstate); | |
18298 | if (PyErr_Occurred()) SWIG_fail; | |
18299 | } | |
18300 | Py_INCREF(Py_None); resultobj = Py_None; | |
18301 | return resultobj; | |
18302 | fail: | |
18303 | return NULL; | |
18304 | } | |
18305 | ||
18306 | ||
18307 | static PyObject *_wrap_PyCompositeShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
18308 | PyObject *resultobj; | |
18309 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18310 | double arg2 ; | |
18311 | double arg3 ; | |
18312 | int arg4 = (int) 0 ; | |
18313 | int arg5 = (int) 0 ; | |
18314 | PyObject * obj0 = 0 ; | |
18315 | PyObject * obj1 = 0 ; | |
18316 | PyObject * obj2 = 0 ; | |
18317 | PyObject * obj3 = 0 ; | |
18318 | PyObject * obj4 = 0 ; | |
18319 | char *kwnames[] = { | |
18320 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18321 | }; | |
18322 | ||
18323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18326 | arg2 = (double)SWIG_As_double(obj1); | |
18327 | if (PyErr_Occurred()) SWIG_fail; | |
18328 | arg3 = (double)SWIG_As_double(obj2); | |
18329 | if (PyErr_Occurred()) SWIG_fail; | |
18330 | if (obj3) { | |
18331 | arg4 = (int)SWIG_As_int(obj3); | |
18332 | if (PyErr_Occurred()) SWIG_fail; | |
18333 | } | |
18334 | if (obj4) { | |
18335 | arg5 = (int)SWIG_As_int(obj4); | |
18336 | if (PyErr_Occurred()) SWIG_fail; | |
18337 | } | |
18338 | { | |
18339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18340 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
18341 | ||
18342 | wxPyEndAllowThreads(__tstate); | |
18343 | if (PyErr_Occurred()) SWIG_fail; | |
18344 | } | |
18345 | Py_INCREF(Py_None); resultobj = Py_None; | |
18346 | return resultobj; | |
18347 | fail: | |
18348 | return NULL; | |
18349 | } | |
18350 | ||
18351 | ||
18352 | static PyObject *_wrap_PyCompositeShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
18353 | PyObject *resultobj; | |
18354 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18355 | double arg2 ; | |
18356 | double arg3 ; | |
18357 | int arg4 = (int) 0 ; | |
18358 | int arg5 = (int) 0 ; | |
18359 | PyObject * obj0 = 0 ; | |
18360 | PyObject * obj1 = 0 ; | |
18361 | PyObject * obj2 = 0 ; | |
18362 | PyObject * obj3 = 0 ; | |
18363 | PyObject * obj4 = 0 ; | |
18364 | char *kwnames[] = { | |
18365 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18366 | }; | |
18367 | ||
18368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18371 | arg2 = (double)SWIG_As_double(obj1); | |
18372 | if (PyErr_Occurred()) SWIG_fail; | |
18373 | arg3 = (double)SWIG_As_double(obj2); | |
18374 | if (PyErr_Occurred()) SWIG_fail; | |
18375 | if (obj3) { | |
18376 | arg4 = (int)SWIG_As_int(obj3); | |
18377 | if (PyErr_Occurred()) SWIG_fail; | |
18378 | } | |
18379 | if (obj4) { | |
18380 | arg5 = (int)SWIG_As_int(obj4); | |
18381 | if (PyErr_Occurred()) SWIG_fail; | |
18382 | } | |
18383 | { | |
18384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18385 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
18386 | ||
18387 | wxPyEndAllowThreads(__tstate); | |
18388 | if (PyErr_Occurred()) SWIG_fail; | |
18389 | } | |
18390 | Py_INCREF(Py_None); resultobj = Py_None; | |
18391 | return resultobj; | |
18392 | fail: | |
18393 | return NULL; | |
18394 | } | |
18395 | ||
18396 | ||
18397 | static PyObject *_wrap_PyCompositeShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
18398 | PyObject *resultobj; | |
18399 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18400 | bool arg2 ; | |
18401 | double arg3 ; | |
18402 | double arg4 ; | |
18403 | int arg5 = (int) 0 ; | |
18404 | int arg6 = (int) 0 ; | |
18405 | PyObject * obj0 = 0 ; | |
18406 | PyObject * obj1 = 0 ; | |
18407 | PyObject * obj2 = 0 ; | |
18408 | PyObject * obj3 = 0 ; | |
18409 | PyObject * obj4 = 0 ; | |
18410 | PyObject * obj5 = 0 ; | |
18411 | char *kwnames[] = { | |
18412 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18413 | }; | |
18414 | ||
18415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCompositeShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18418 | arg2 = (bool)SWIG_As_bool(obj1); | |
18419 | if (PyErr_Occurred()) SWIG_fail; | |
18420 | arg3 = (double)SWIG_As_double(obj2); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | arg4 = (double)SWIG_As_double(obj3); | |
18423 | if (PyErr_Occurred()) SWIG_fail; | |
18424 | if (obj4) { | |
18425 | arg5 = (int)SWIG_As_int(obj4); | |
18426 | if (PyErr_Occurred()) SWIG_fail; | |
18427 | } | |
18428 | if (obj5) { | |
18429 | arg6 = (int)SWIG_As_int(obj5); | |
18430 | if (PyErr_Occurred()) SWIG_fail; | |
18431 | } | |
18432 | { | |
18433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18434 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
18435 | ||
18436 | wxPyEndAllowThreads(__tstate); | |
18437 | if (PyErr_Occurred()) SWIG_fail; | |
18438 | } | |
18439 | Py_INCREF(Py_None); resultobj = Py_None; | |
18440 | return resultobj; | |
18441 | fail: | |
18442 | return NULL; | |
18443 | } | |
18444 | ||
18445 | ||
18446 | static PyObject *_wrap_PyCompositeShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
18447 | PyObject *resultobj; | |
18448 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18449 | double arg2 ; | |
18450 | double arg3 ; | |
18451 | int arg4 = (int) 0 ; | |
18452 | int arg5 = (int) 0 ; | |
18453 | PyObject * obj0 = 0 ; | |
18454 | PyObject * obj1 = 0 ; | |
18455 | PyObject * obj2 = 0 ; | |
18456 | PyObject * obj3 = 0 ; | |
18457 | PyObject * obj4 = 0 ; | |
18458 | char *kwnames[] = { | |
18459 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18460 | }; | |
18461 | ||
18462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18465 | arg2 = (double)SWIG_As_double(obj1); | |
18466 | if (PyErr_Occurred()) SWIG_fail; | |
18467 | arg3 = (double)SWIG_As_double(obj2); | |
18468 | if (PyErr_Occurred()) SWIG_fail; | |
18469 | if (obj3) { | |
18470 | arg4 = (int)SWIG_As_int(obj3); | |
18471 | if (PyErr_Occurred()) SWIG_fail; | |
18472 | } | |
18473 | if (obj4) { | |
18474 | arg5 = (int)SWIG_As_int(obj4); | |
18475 | if (PyErr_Occurred()) SWIG_fail; | |
18476 | } | |
18477 | { | |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
18480 | ||
18481 | wxPyEndAllowThreads(__tstate); | |
18482 | if (PyErr_Occurred()) SWIG_fail; | |
18483 | } | |
18484 | Py_INCREF(Py_None); resultobj = Py_None; | |
18485 | return resultobj; | |
18486 | fail: | |
18487 | return NULL; | |
18488 | } | |
18489 | ||
18490 | ||
18491 | static PyObject *_wrap_PyCompositeShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
18492 | PyObject *resultobj; | |
18493 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18494 | double arg2 ; | |
18495 | double arg3 ; | |
18496 | int arg4 = (int) 0 ; | |
18497 | int arg5 = (int) 0 ; | |
18498 | PyObject * obj0 = 0 ; | |
18499 | PyObject * obj1 = 0 ; | |
18500 | PyObject * obj2 = 0 ; | |
18501 | PyObject * obj3 = 0 ; | |
18502 | PyObject * obj4 = 0 ; | |
18503 | char *kwnames[] = { | |
18504 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18505 | }; | |
18506 | ||
18507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18510 | arg2 = (double)SWIG_As_double(obj1); | |
18511 | if (PyErr_Occurred()) SWIG_fail; | |
18512 | arg3 = (double)SWIG_As_double(obj2); | |
18513 | if (PyErr_Occurred()) SWIG_fail; | |
18514 | if (obj3) { | |
18515 | arg4 = (int)SWIG_As_int(obj3); | |
18516 | if (PyErr_Occurred()) SWIG_fail; | |
18517 | } | |
18518 | if (obj4) { | |
18519 | arg5 = (int)SWIG_As_int(obj4); | |
18520 | if (PyErr_Occurred()) SWIG_fail; | |
18521 | } | |
18522 | { | |
18523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18524 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
18525 | ||
18526 | wxPyEndAllowThreads(__tstate); | |
18527 | if (PyErr_Occurred()) SWIG_fail; | |
18528 | } | |
18529 | Py_INCREF(Py_None); resultobj = Py_None; | |
18530 | return resultobj; | |
18531 | fail: | |
18532 | return NULL; | |
18533 | } | |
18534 | ||
18535 | ||
18536 | static PyObject *_wrap_PyCompositeShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
18537 | PyObject *resultobj; | |
18538 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18539 | wxDC *arg2 = 0 ; | |
18540 | double arg3 ; | |
18541 | double arg4 ; | |
18542 | double arg5 ; | |
18543 | double arg6 ; | |
18544 | PyObject * obj0 = 0 ; | |
18545 | PyObject * obj1 = 0 ; | |
18546 | PyObject * obj2 = 0 ; | |
18547 | PyObject * obj3 = 0 ; | |
18548 | PyObject * obj4 = 0 ; | |
18549 | PyObject * obj5 = 0 ; | |
18550 | char *kwnames[] = { | |
18551 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
18552 | }; | |
18553 | ||
18554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyCompositeShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18557 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18558 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18559 | SWIG_fail; | |
18560 | if (arg2 == NULL) { | |
18561 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18562 | SWIG_fail; | |
18563 | } | |
18564 | arg3 = (double)SWIG_As_double(obj2); | |
18565 | if (PyErr_Occurred()) SWIG_fail; | |
18566 | arg4 = (double)SWIG_As_double(obj3); | |
18567 | if (PyErr_Occurred()) SWIG_fail; | |
18568 | arg5 = (double)SWIG_As_double(obj4); | |
18569 | if (PyErr_Occurred()) SWIG_fail; | |
18570 | arg6 = (double)SWIG_As_double(obj5); | |
18571 | if (PyErr_Occurred()) SWIG_fail; | |
18572 | { | |
18573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18574 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
18575 | ||
18576 | wxPyEndAllowThreads(__tstate); | |
18577 | if (PyErr_Occurred()) SWIG_fail; | |
18578 | } | |
18579 | Py_INCREF(Py_None); resultobj = Py_None; | |
18580 | return resultobj; | |
18581 | fail: | |
18582 | return NULL; | |
18583 | } | |
18584 | ||
18585 | ||
18586 | static PyObject *_wrap_PyCompositeShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
18587 | PyObject *resultobj; | |
18588 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18589 | wxDC *arg2 = 0 ; | |
18590 | PyObject * obj0 = 0 ; | |
18591 | PyObject * obj1 = 0 ; | |
18592 | char *kwnames[] = { | |
18593 | (char *) "self",(char *) "dc", NULL | |
18594 | }; | |
18595 | ||
18596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
18597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18599 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18600 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18601 | SWIG_fail; | |
18602 | if (arg2 == NULL) { | |
18603 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18604 | SWIG_fail; | |
18605 | } | |
18606 | { | |
18607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18608 | (arg1)->base_OnDrawControlPoints(*arg2); | |
18609 | ||
18610 | wxPyEndAllowThreads(__tstate); | |
18611 | if (PyErr_Occurred()) SWIG_fail; | |
18612 | } | |
18613 | Py_INCREF(Py_None); resultobj = Py_None; | |
18614 | return resultobj; | |
18615 | fail: | |
18616 | return NULL; | |
18617 | } | |
18618 | ||
18619 | ||
18620 | static PyObject *_wrap_PyCompositeShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
18621 | PyObject *resultobj; | |
18622 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18623 | wxDC *arg2 = 0 ; | |
18624 | PyObject * obj0 = 0 ; | |
18625 | PyObject * obj1 = 0 ; | |
18626 | char *kwnames[] = { | |
18627 | (char *) "self",(char *) "dc", NULL | |
18628 | }; | |
18629 | ||
18630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
18631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18633 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18634 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18635 | SWIG_fail; | |
18636 | if (arg2 == NULL) { | |
18637 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18638 | SWIG_fail; | |
18639 | } | |
18640 | { | |
18641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18642 | (arg1)->base_OnEraseControlPoints(*arg2); | |
18643 | ||
18644 | wxPyEndAllowThreads(__tstate); | |
18645 | if (PyErr_Occurred()) SWIG_fail; | |
18646 | } | |
18647 | Py_INCREF(Py_None); resultobj = Py_None; | |
18648 | return resultobj; | |
18649 | fail: | |
18650 | return NULL; | |
18651 | } | |
18652 | ||
18653 | ||
18654 | static PyObject *_wrap_PyCompositeShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
18655 | PyObject *resultobj; | |
18656 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18657 | wxDC *arg2 = 0 ; | |
18658 | bool arg3 = (bool) true ; | |
18659 | PyObject * obj0 = 0 ; | |
18660 | PyObject * obj1 = 0 ; | |
18661 | PyObject * obj2 = 0 ; | |
18662 | char *kwnames[] = { | |
18663 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
18664 | }; | |
18665 | ||
18666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCompositeShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18671 | SWIG_fail; | |
18672 | if (arg2 == NULL) { | |
18673 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18674 | SWIG_fail; | |
18675 | } | |
18676 | if (obj2) { | |
18677 | arg3 = (bool)SWIG_As_bool(obj2); | |
18678 | if (PyErr_Occurred()) SWIG_fail; | |
18679 | } | |
18680 | { | |
18681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18682 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
18683 | ||
18684 | wxPyEndAllowThreads(__tstate); | |
18685 | if (PyErr_Occurred()) SWIG_fail; | |
18686 | } | |
18687 | Py_INCREF(Py_None); resultobj = Py_None; | |
18688 | return resultobj; | |
18689 | fail: | |
18690 | return NULL; | |
18691 | } | |
18692 | ||
18693 | ||
18694 | static PyObject *_wrap_PyCompositeShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
18695 | PyObject *resultobj; | |
18696 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18697 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18698 | bool arg3 ; | |
18699 | double arg4 ; | |
18700 | double arg5 ; | |
18701 | int arg6 = (int) 0 ; | |
18702 | int arg7 = (int) 0 ; | |
18703 | PyObject * obj0 = 0 ; | |
18704 | PyObject * obj1 = 0 ; | |
18705 | PyObject * obj2 = 0 ; | |
18706 | PyObject * obj3 = 0 ; | |
18707 | PyObject * obj4 = 0 ; | |
18708 | PyObject * obj5 = 0 ; | |
18709 | PyObject * obj6 = 0 ; | |
18710 | char *kwnames[] = { | |
18711 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18712 | }; | |
18713 | ||
18714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyCompositeShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
18715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18717 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
18718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18719 | arg3 = (bool)SWIG_As_bool(obj2); | |
18720 | if (PyErr_Occurred()) SWIG_fail; | |
18721 | arg4 = (double)SWIG_As_double(obj3); | |
18722 | if (PyErr_Occurred()) SWIG_fail; | |
18723 | arg5 = (double)SWIG_As_double(obj4); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | if (obj5) { | |
18726 | arg6 = (int)SWIG_As_int(obj5); | |
18727 | if (PyErr_Occurred()) SWIG_fail; | |
18728 | } | |
18729 | if (obj6) { | |
18730 | arg7 = (int)SWIG_As_int(obj6); | |
18731 | if (PyErr_Occurred()) SWIG_fail; | |
18732 | } | |
18733 | { | |
18734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18735 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
18736 | ||
18737 | wxPyEndAllowThreads(__tstate); | |
18738 | if (PyErr_Occurred()) SWIG_fail; | |
18739 | } | |
18740 | Py_INCREF(Py_None); resultobj = Py_None; | |
18741 | return resultobj; | |
18742 | fail: | |
18743 | return NULL; | |
18744 | } | |
18745 | ||
18746 | ||
18747 | static PyObject *_wrap_PyCompositeShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
18748 | PyObject *resultobj; | |
18749 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18750 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18751 | double arg3 ; | |
18752 | double arg4 ; | |
18753 | int arg5 = (int) 0 ; | |
18754 | int arg6 = (int) 0 ; | |
18755 | PyObject * obj0 = 0 ; | |
18756 | PyObject * obj1 = 0 ; | |
18757 | PyObject * obj2 = 0 ; | |
18758 | PyObject * obj3 = 0 ; | |
18759 | PyObject * obj4 = 0 ; | |
18760 | PyObject * obj5 = 0 ; | |
18761 | char *kwnames[] = { | |
18762 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18763 | }; | |
18764 | ||
18765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCompositeShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18768 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
18769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18770 | arg3 = (double)SWIG_As_double(obj2); | |
18771 | if (PyErr_Occurred()) SWIG_fail; | |
18772 | arg4 = (double)SWIG_As_double(obj3); | |
18773 | if (PyErr_Occurred()) SWIG_fail; | |
18774 | if (obj4) { | |
18775 | arg5 = (int)SWIG_As_int(obj4); | |
18776 | if (PyErr_Occurred()) SWIG_fail; | |
18777 | } | |
18778 | if (obj5) { | |
18779 | arg6 = (int)SWIG_As_int(obj5); | |
18780 | if (PyErr_Occurred()) SWIG_fail; | |
18781 | } | |
18782 | { | |
18783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18784 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18785 | ||
18786 | wxPyEndAllowThreads(__tstate); | |
18787 | if (PyErr_Occurred()) SWIG_fail; | |
18788 | } | |
18789 | Py_INCREF(Py_None); resultobj = Py_None; | |
18790 | return resultobj; | |
18791 | fail: | |
18792 | return NULL; | |
18793 | } | |
18794 | ||
18795 | ||
18796 | static PyObject *_wrap_PyCompositeShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
18797 | PyObject *resultobj; | |
18798 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18799 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18800 | double arg3 ; | |
18801 | double arg4 ; | |
18802 | int arg5 = (int) 0 ; | |
18803 | int arg6 = (int) 0 ; | |
18804 | PyObject * obj0 = 0 ; | |
18805 | PyObject * obj1 = 0 ; | |
18806 | PyObject * obj2 = 0 ; | |
18807 | PyObject * obj3 = 0 ; | |
18808 | PyObject * obj4 = 0 ; | |
18809 | PyObject * obj5 = 0 ; | |
18810 | char *kwnames[] = { | |
18811 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18812 | }; | |
18813 | ||
18814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCompositeShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
18818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18819 | arg3 = (double)SWIG_As_double(obj2); | |
18820 | if (PyErr_Occurred()) SWIG_fail; | |
18821 | arg4 = (double)SWIG_As_double(obj3); | |
18822 | if (PyErr_Occurred()) SWIG_fail; | |
18823 | if (obj4) { | |
18824 | arg5 = (int)SWIG_As_int(obj4); | |
18825 | if (PyErr_Occurred()) SWIG_fail; | |
18826 | } | |
18827 | if (obj5) { | |
18828 | arg6 = (int)SWIG_As_int(obj5); | |
18829 | if (PyErr_Occurred()) SWIG_fail; | |
18830 | } | |
18831 | { | |
18832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18833 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18834 | ||
18835 | wxPyEndAllowThreads(__tstate); | |
18836 | if (PyErr_Occurred()) SWIG_fail; | |
18837 | } | |
18838 | Py_INCREF(Py_None); resultobj = Py_None; | |
18839 | return resultobj; | |
18840 | fail: | |
18841 | return NULL; | |
18842 | } | |
18843 | ||
18844 | ||
18845 | static PyObject *_wrap_PyCompositeShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
18846 | PyObject *resultobj; | |
18847 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18848 | double arg2 ; | |
18849 | double arg3 ; | |
18850 | PyObject * obj0 = 0 ; | |
18851 | PyObject * obj1 = 0 ; | |
18852 | PyObject * obj2 = 0 ; | |
18853 | char *kwnames[] = { | |
18854 | (char *) "self",(char *) "w",(char *) "h", NULL | |
18855 | }; | |
18856 | ||
18857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCompositeShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18860 | arg2 = (double)SWIG_As_double(obj1); | |
18861 | if (PyErr_Occurred()) SWIG_fail; | |
18862 | arg3 = (double)SWIG_As_double(obj2); | |
18863 | if (PyErr_Occurred()) SWIG_fail; | |
18864 | { | |
18865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18866 | (arg1)->base_OnBeginSize(arg2,arg3); | |
18867 | ||
18868 | wxPyEndAllowThreads(__tstate); | |
18869 | if (PyErr_Occurred()) SWIG_fail; | |
18870 | } | |
18871 | Py_INCREF(Py_None); resultobj = Py_None; | |
18872 | return resultobj; | |
18873 | fail: | |
18874 | return NULL; | |
18875 | } | |
18876 | ||
18877 | ||
18878 | static PyObject *_wrap_PyCompositeShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
18879 | PyObject *resultobj; | |
18880 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18881 | double arg2 ; | |
18882 | double arg3 ; | |
18883 | PyObject * obj0 = 0 ; | |
18884 | PyObject * obj1 = 0 ; | |
18885 | PyObject * obj2 = 0 ; | |
18886 | char *kwnames[] = { | |
18887 | (char *) "self",(char *) "w",(char *) "h", NULL | |
18888 | }; | |
18889 | ||
18890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCompositeShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, | |
18892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18893 | arg2 = (double)SWIG_As_double(obj1); | |
18894 | if (PyErr_Occurred()) SWIG_fail; | |
18895 | arg3 = (double)SWIG_As_double(obj2); | |
18896 | if (PyErr_Occurred()) SWIG_fail; | |
18897 | { | |
18898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18899 | (arg1)->base_OnEndSize(arg2,arg3); | |
18900 | ||
18901 | wxPyEndAllowThreads(__tstate); | |
18902 | if (PyErr_Occurred()) SWIG_fail; | |
18903 | } | |
18904 | Py_INCREF(Py_None); resultobj = Py_None; | |
18905 | return resultobj; | |
18906 | fail: | |
18907 | return NULL; | |
18908 | } | |
18909 | ||
18910 | ||
18911 | static PyObject * PyCompositeShape_swigregister(PyObject *, PyObject *args) { | |
18912 | PyObject *obj; | |
18913 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18914 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCompositeShape, obj); | |
18915 | Py_INCREF(obj); | |
18916 | return Py_BuildValue((char *)""); | |
18917 | } | |
18918 | static PyObject *_wrap_new_PyDividedShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
18919 | PyObject *resultobj; | |
18920 | double arg1 = (double) 0.0 ; | |
18921 | double arg2 = (double) 0.0 ; | |
18922 | wxPyDividedShape *result; | |
18923 | PyObject * obj0 = 0 ; | |
18924 | PyObject * obj1 = 0 ; | |
18925 | char *kwnames[] = { | |
18926 | (char *) "width",(char *) "height", NULL | |
18927 | }; | |
18928 | ||
18929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyDividedShape",kwnames,&obj0,&obj1)) goto fail; | |
18930 | if (obj0) { | |
18931 | arg1 = (double)SWIG_As_double(obj0); | |
18932 | if (PyErr_Occurred()) SWIG_fail; | |
18933 | } | |
18934 | if (obj1) { | |
18935 | arg2 = (double)SWIG_As_double(obj1); | |
18936 | if (PyErr_Occurred()) SWIG_fail; | |
18937 | } | |
18938 | { | |
18939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18940 | result = (wxPyDividedShape *)new wxPyDividedShape(arg1,arg2); | |
18941 | ||
18942 | wxPyEndAllowThreads(__tstate); | |
18943 | if (PyErr_Occurred()) SWIG_fail; | |
18944 | } | |
18945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDividedShape, 1); | |
18946 | return resultobj; | |
18947 | fail: | |
18948 | return NULL; | |
18949 | } | |
18950 | ||
18951 | ||
18952 | static PyObject *_wrap_PyDividedShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
18953 | PyObject *resultobj; | |
18954 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
18955 | PyObject *arg2 = (PyObject *) 0 ; | |
18956 | PyObject *arg3 = (PyObject *) 0 ; | |
18957 | PyObject * obj0 = 0 ; | |
18958 | PyObject * obj1 = 0 ; | |
18959 | PyObject * obj2 = 0 ; | |
18960 | char *kwnames[] = { | |
18961 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
18962 | }; | |
18963 | ||
18964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDividedShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
18966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18967 | arg2 = obj1; | |
18968 | arg3 = obj2; | |
18969 | { | |
18970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18971 | (arg1)->_setCallbackInfo(arg2,arg3); | |
18972 | ||
18973 | wxPyEndAllowThreads(__tstate); | |
18974 | if (PyErr_Occurred()) SWIG_fail; | |
18975 | } | |
18976 | Py_INCREF(Py_None); resultobj = Py_None; | |
18977 | return resultobj; | |
18978 | fail: | |
18979 | return NULL; | |
18980 | } | |
18981 | ||
18982 | ||
18983 | static PyObject *_wrap_PyDividedShape_EditRegions(PyObject *, PyObject *args, PyObject *kwargs) { | |
18984 | PyObject *resultobj; | |
18985 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
18986 | PyObject * obj0 = 0 ; | |
18987 | char *kwnames[] = { | |
18988 | (char *) "self", NULL | |
18989 | }; | |
18990 | ||
18991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDividedShape_EditRegions",kwnames,&obj0)) goto fail; | |
18992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
18993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18994 | { | |
18995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18996 | (arg1)->EditRegions(); | |
18997 | ||
18998 | wxPyEndAllowThreads(__tstate); | |
18999 | if (PyErr_Occurred()) SWIG_fail; | |
19000 | } | |
19001 | Py_INCREF(Py_None); resultobj = Py_None; | |
19002 | return resultobj; | |
19003 | fail: | |
19004 | return NULL; | |
19005 | } | |
19006 | ||
19007 | ||
19008 | static PyObject *_wrap_PyDividedShape_SetRegionSizes(PyObject *, PyObject *args, PyObject *kwargs) { | |
19009 | PyObject *resultobj; | |
19010 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19011 | PyObject * obj0 = 0 ; | |
19012 | char *kwnames[] = { | |
19013 | (char *) "self", NULL | |
19014 | }; | |
19015 | ||
19016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDividedShape_SetRegionSizes",kwnames,&obj0)) goto fail; | |
19017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19019 | { | |
19020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19021 | (arg1)->SetRegionSizes(); | |
19022 | ||
19023 | wxPyEndAllowThreads(__tstate); | |
19024 | if (PyErr_Occurred()) SWIG_fail; | |
19025 | } | |
19026 | Py_INCREF(Py_None); resultobj = Py_None; | |
19027 | return resultobj; | |
19028 | fail: | |
19029 | return NULL; | |
19030 | } | |
19031 | ||
19032 | ||
19033 | static PyObject *_wrap_PyDividedShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
19034 | PyObject *resultobj; | |
19035 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19036 | PyObject * obj0 = 0 ; | |
19037 | char *kwnames[] = { | |
19038 | (char *) "self", NULL | |
19039 | }; | |
19040 | ||
19041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDividedShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
19042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19044 | { | |
19045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19046 | (arg1)->base_OnDelete(); | |
19047 | ||
19048 | wxPyEndAllowThreads(__tstate); | |
19049 | if (PyErr_Occurred()) SWIG_fail; | |
19050 | } | |
19051 | Py_INCREF(Py_None); resultobj = Py_None; | |
19052 | return resultobj; | |
19053 | fail: | |
19054 | return NULL; | |
19055 | } | |
19056 | ||
19057 | ||
19058 | static PyObject *_wrap_PyDividedShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
19059 | PyObject *resultobj; | |
19060 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19061 | wxDC *arg2 = 0 ; | |
19062 | PyObject * obj0 = 0 ; | |
19063 | PyObject * obj1 = 0 ; | |
19064 | char *kwnames[] = { | |
19065 | (char *) "self",(char *) "dc", NULL | |
19066 | }; | |
19067 | ||
19068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
19069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19071 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19072 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19073 | SWIG_fail; | |
19074 | if (arg2 == NULL) { | |
19075 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19076 | SWIG_fail; | |
19077 | } | |
19078 | { | |
19079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19080 | (arg1)->base_OnDraw(*arg2); | |
19081 | ||
19082 | wxPyEndAllowThreads(__tstate); | |
19083 | if (PyErr_Occurred()) SWIG_fail; | |
19084 | } | |
19085 | Py_INCREF(Py_None); resultobj = Py_None; | |
19086 | return resultobj; | |
19087 | fail: | |
19088 | return NULL; | |
19089 | } | |
19090 | ||
19091 | ||
19092 | static PyObject *_wrap_PyDividedShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
19093 | PyObject *resultobj; | |
19094 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19095 | wxDC *arg2 = 0 ; | |
19096 | PyObject * obj0 = 0 ; | |
19097 | PyObject * obj1 = 0 ; | |
19098 | char *kwnames[] = { | |
19099 | (char *) "self",(char *) "dc", NULL | |
19100 | }; | |
19101 | ||
19102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
19103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19105 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19106 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19107 | SWIG_fail; | |
19108 | if (arg2 == NULL) { | |
19109 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19110 | SWIG_fail; | |
19111 | } | |
19112 | { | |
19113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19114 | (arg1)->base_OnDrawContents(*arg2); | |
19115 | ||
19116 | wxPyEndAllowThreads(__tstate); | |
19117 | if (PyErr_Occurred()) SWIG_fail; | |
19118 | } | |
19119 | Py_INCREF(Py_None); resultobj = Py_None; | |
19120 | return resultobj; | |
19121 | fail: | |
19122 | return NULL; | |
19123 | } | |
19124 | ||
19125 | ||
19126 | static PyObject *_wrap_PyDividedShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
19127 | PyObject *resultobj; | |
19128 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19129 | wxDC *arg2 = 0 ; | |
19130 | bool arg3 = (bool) FALSE ; | |
19131 | PyObject * obj0 = 0 ; | |
19132 | PyObject * obj1 = 0 ; | |
19133 | PyObject * obj2 = 0 ; | |
19134 | char *kwnames[] = { | |
19135 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
19136 | }; | |
19137 | ||
19138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDividedShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19141 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19142 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19143 | SWIG_fail; | |
19144 | if (arg2 == NULL) { | |
19145 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19146 | SWIG_fail; | |
19147 | } | |
19148 | if (obj2) { | |
19149 | arg3 = (bool)SWIG_As_bool(obj2); | |
19150 | if (PyErr_Occurred()) SWIG_fail; | |
19151 | } | |
19152 | { | |
19153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19154 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
19155 | ||
19156 | wxPyEndAllowThreads(__tstate); | |
19157 | if (PyErr_Occurred()) SWIG_fail; | |
19158 | } | |
19159 | Py_INCREF(Py_None); resultobj = Py_None; | |
19160 | return resultobj; | |
19161 | fail: | |
19162 | return NULL; | |
19163 | } | |
19164 | ||
19165 | ||
19166 | static PyObject *_wrap_PyDividedShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
19167 | PyObject *resultobj; | |
19168 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19169 | wxDC *arg2 = 0 ; | |
19170 | PyObject * obj0 = 0 ; | |
19171 | PyObject * obj1 = 0 ; | |
19172 | char *kwnames[] = { | |
19173 | (char *) "self",(char *) "dc", NULL | |
19174 | }; | |
19175 | ||
19176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
19177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19180 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19181 | SWIG_fail; | |
19182 | if (arg2 == NULL) { | |
19183 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19184 | SWIG_fail; | |
19185 | } | |
19186 | { | |
19187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19188 | (arg1)->base_OnMoveLinks(*arg2); | |
19189 | ||
19190 | wxPyEndAllowThreads(__tstate); | |
19191 | if (PyErr_Occurred()) SWIG_fail; | |
19192 | } | |
19193 | Py_INCREF(Py_None); resultobj = Py_None; | |
19194 | return resultobj; | |
19195 | fail: | |
19196 | return NULL; | |
19197 | } | |
19198 | ||
19199 | ||
19200 | static PyObject *_wrap_PyDividedShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
19201 | PyObject *resultobj; | |
19202 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19203 | wxDC *arg2 = 0 ; | |
19204 | PyObject * obj0 = 0 ; | |
19205 | PyObject * obj1 = 0 ; | |
19206 | char *kwnames[] = { | |
19207 | (char *) "self",(char *) "dc", NULL | |
19208 | }; | |
19209 | ||
19210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
19211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19214 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19215 | SWIG_fail; | |
19216 | if (arg2 == NULL) { | |
19217 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19218 | SWIG_fail; | |
19219 | } | |
19220 | { | |
19221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19222 | (arg1)->base_OnErase(*arg2); | |
19223 | ||
19224 | wxPyEndAllowThreads(__tstate); | |
19225 | if (PyErr_Occurred()) SWIG_fail; | |
19226 | } | |
19227 | Py_INCREF(Py_None); resultobj = Py_None; | |
19228 | return resultobj; | |
19229 | fail: | |
19230 | return NULL; | |
19231 | } | |
19232 | ||
19233 | ||
19234 | static PyObject *_wrap_PyDividedShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
19235 | PyObject *resultobj; | |
19236 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19237 | wxDC *arg2 = 0 ; | |
19238 | PyObject * obj0 = 0 ; | |
19239 | PyObject * obj1 = 0 ; | |
19240 | char *kwnames[] = { | |
19241 | (char *) "self",(char *) "dc", NULL | |
19242 | }; | |
19243 | ||
19244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
19245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19248 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19249 | SWIG_fail; | |
19250 | if (arg2 == NULL) { | |
19251 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19252 | SWIG_fail; | |
19253 | } | |
19254 | { | |
19255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19256 | (arg1)->base_OnEraseContents(*arg2); | |
19257 | ||
19258 | wxPyEndAllowThreads(__tstate); | |
19259 | if (PyErr_Occurred()) SWIG_fail; | |
19260 | } | |
19261 | Py_INCREF(Py_None); resultobj = Py_None; | |
19262 | return resultobj; | |
19263 | fail: | |
19264 | return NULL; | |
19265 | } | |
19266 | ||
19267 | ||
19268 | static PyObject *_wrap_PyDividedShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
19269 | PyObject *resultobj; | |
19270 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19271 | wxDC *arg2 = 0 ; | |
19272 | PyObject * obj0 = 0 ; | |
19273 | PyObject * obj1 = 0 ; | |
19274 | char *kwnames[] = { | |
19275 | (char *) "self",(char *) "dc", NULL | |
19276 | }; | |
19277 | ||
19278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
19279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19281 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19282 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19283 | SWIG_fail; | |
19284 | if (arg2 == NULL) { | |
19285 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19286 | SWIG_fail; | |
19287 | } | |
19288 | { | |
19289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19290 | (arg1)->base_OnHighlight(*arg2); | |
19291 | ||
19292 | wxPyEndAllowThreads(__tstate); | |
19293 | if (PyErr_Occurred()) SWIG_fail; | |
19294 | } | |
19295 | Py_INCREF(Py_None); resultobj = Py_None; | |
19296 | return resultobj; | |
19297 | fail: | |
19298 | return NULL; | |
19299 | } | |
19300 | ||
19301 | ||
19302 | static PyObject *_wrap_PyDividedShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
19303 | PyObject *resultobj; | |
19304 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19305 | double arg2 ; | |
19306 | double arg3 ; | |
19307 | int arg4 = (int) 0 ; | |
19308 | int arg5 = (int) 0 ; | |
19309 | PyObject * obj0 = 0 ; | |
19310 | PyObject * obj1 = 0 ; | |
19311 | PyObject * obj2 = 0 ; | |
19312 | PyObject * obj3 = 0 ; | |
19313 | PyObject * obj4 = 0 ; | |
19314 | char *kwnames[] = { | |
19315 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19316 | }; | |
19317 | ||
19318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19321 | arg2 = (double)SWIG_As_double(obj1); | |
19322 | if (PyErr_Occurred()) SWIG_fail; | |
19323 | arg3 = (double)SWIG_As_double(obj2); | |
19324 | if (PyErr_Occurred()) SWIG_fail; | |
19325 | if (obj3) { | |
19326 | arg4 = (int)SWIG_As_int(obj3); | |
19327 | if (PyErr_Occurred()) SWIG_fail; | |
19328 | } | |
19329 | if (obj4) { | |
19330 | arg5 = (int)SWIG_As_int(obj4); | |
19331 | if (PyErr_Occurred()) SWIG_fail; | |
19332 | } | |
19333 | { | |
19334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19335 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
19336 | ||
19337 | wxPyEndAllowThreads(__tstate); | |
19338 | if (PyErr_Occurred()) SWIG_fail; | |
19339 | } | |
19340 | Py_INCREF(Py_None); resultobj = Py_None; | |
19341 | return resultobj; | |
19342 | fail: | |
19343 | return NULL; | |
19344 | } | |
19345 | ||
19346 | ||
19347 | static PyObject *_wrap_PyDividedShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
19348 | PyObject *resultobj; | |
19349 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19350 | double arg2 ; | |
19351 | double arg3 ; | |
19352 | int arg4 = (int) 0 ; | |
19353 | int arg5 = (int) 0 ; | |
19354 | PyObject * obj0 = 0 ; | |
19355 | PyObject * obj1 = 0 ; | |
19356 | PyObject * obj2 = 0 ; | |
19357 | PyObject * obj3 = 0 ; | |
19358 | PyObject * obj4 = 0 ; | |
19359 | char *kwnames[] = { | |
19360 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19361 | }; | |
19362 | ||
19363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19366 | arg2 = (double)SWIG_As_double(obj1); | |
19367 | if (PyErr_Occurred()) SWIG_fail; | |
19368 | arg3 = (double)SWIG_As_double(obj2); | |
19369 | if (PyErr_Occurred()) SWIG_fail; | |
19370 | if (obj3) { | |
19371 | arg4 = (int)SWIG_As_int(obj3); | |
19372 | if (PyErr_Occurred()) SWIG_fail; | |
19373 | } | |
19374 | if (obj4) { | |
19375 | arg5 = (int)SWIG_As_int(obj4); | |
19376 | if (PyErr_Occurred()) SWIG_fail; | |
19377 | } | |
19378 | { | |
19379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19380 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
19381 | ||
19382 | wxPyEndAllowThreads(__tstate); | |
19383 | if (PyErr_Occurred()) SWIG_fail; | |
19384 | } | |
19385 | Py_INCREF(Py_None); resultobj = Py_None; | |
19386 | return resultobj; | |
19387 | fail: | |
19388 | return NULL; | |
19389 | } | |
19390 | ||
19391 | ||
19392 | static PyObject *_wrap_PyDividedShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
19393 | PyObject *resultobj; | |
19394 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19395 | double arg2 ; | |
19396 | double arg3 ; | |
19397 | int arg4 = (int) 0 ; | |
19398 | int arg5 = (int) 0 ; | |
19399 | PyObject * obj0 = 0 ; | |
19400 | PyObject * obj1 = 0 ; | |
19401 | PyObject * obj2 = 0 ; | |
19402 | PyObject * obj3 = 0 ; | |
19403 | PyObject * obj4 = 0 ; | |
19404 | char *kwnames[] = { | |
19405 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19406 | }; | |
19407 | ||
19408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19411 | arg2 = (double)SWIG_As_double(obj1); | |
19412 | if (PyErr_Occurred()) SWIG_fail; | |
19413 | arg3 = (double)SWIG_As_double(obj2); | |
19414 | if (PyErr_Occurred()) SWIG_fail; | |
19415 | if (obj3) { | |
19416 | arg4 = (int)SWIG_As_int(obj3); | |
19417 | if (PyErr_Occurred()) SWIG_fail; | |
19418 | } | |
19419 | if (obj4) { | |
19420 | arg5 = (int)SWIG_As_int(obj4); | |
19421 | if (PyErr_Occurred()) SWIG_fail; | |
19422 | } | |
19423 | { | |
19424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19425 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
19426 | ||
19427 | wxPyEndAllowThreads(__tstate); | |
19428 | if (PyErr_Occurred()) SWIG_fail; | |
19429 | } | |
19430 | Py_INCREF(Py_None); resultobj = Py_None; | |
19431 | return resultobj; | |
19432 | fail: | |
19433 | return NULL; | |
19434 | } | |
19435 | ||
19436 | ||
19437 | static PyObject *_wrap_PyDividedShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
19438 | PyObject *resultobj; | |
19439 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19440 | double arg2 ; | |
19441 | double arg3 ; | |
19442 | PyObject * obj0 = 0 ; | |
19443 | PyObject * obj1 = 0 ; | |
19444 | PyObject * obj2 = 0 ; | |
19445 | char *kwnames[] = { | |
19446 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19447 | }; | |
19448 | ||
19449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDividedShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19452 | arg2 = (double)SWIG_As_double(obj1); | |
19453 | if (PyErr_Occurred()) SWIG_fail; | |
19454 | arg3 = (double)SWIG_As_double(obj2); | |
19455 | if (PyErr_Occurred()) SWIG_fail; | |
19456 | { | |
19457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19458 | (arg1)->base_OnSize(arg2,arg3); | |
19459 | ||
19460 | wxPyEndAllowThreads(__tstate); | |
19461 | if (PyErr_Occurred()) SWIG_fail; | |
19462 | } | |
19463 | Py_INCREF(Py_None); resultobj = Py_None; | |
19464 | return resultobj; | |
19465 | fail: | |
19466 | return NULL; | |
19467 | } | |
19468 | ||
19469 | ||
19470 | static PyObject *_wrap_PyDividedShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
19471 | PyObject *resultobj; | |
19472 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19473 | wxDC *arg2 = 0 ; | |
19474 | double arg3 ; | |
19475 | double arg4 ; | |
19476 | double arg5 ; | |
19477 | double arg6 ; | |
19478 | bool arg7 = (bool) true ; | |
19479 | bool result; | |
19480 | PyObject * obj0 = 0 ; | |
19481 | PyObject * obj1 = 0 ; | |
19482 | PyObject * obj2 = 0 ; | |
19483 | PyObject * obj3 = 0 ; | |
19484 | PyObject * obj4 = 0 ; | |
19485 | PyObject * obj5 = 0 ; | |
19486 | PyObject * obj6 = 0 ; | |
19487 | char *kwnames[] = { | |
19488 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
19489 | }; | |
19490 | ||
19491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDividedShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
19492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19494 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19495 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19496 | SWIG_fail; | |
19497 | if (arg2 == NULL) { | |
19498 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19499 | SWIG_fail; | |
19500 | } | |
19501 | arg3 = (double)SWIG_As_double(obj2); | |
19502 | if (PyErr_Occurred()) SWIG_fail; | |
19503 | arg4 = (double)SWIG_As_double(obj3); | |
19504 | if (PyErr_Occurred()) SWIG_fail; | |
19505 | arg5 = (double)SWIG_As_double(obj4); | |
19506 | if (PyErr_Occurred()) SWIG_fail; | |
19507 | arg6 = (double)SWIG_As_double(obj5); | |
19508 | if (PyErr_Occurred()) SWIG_fail; | |
19509 | if (obj6) { | |
19510 | arg7 = (bool)SWIG_As_bool(obj6); | |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
19512 | } | |
19513 | { | |
19514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19515 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
19516 | ||
19517 | wxPyEndAllowThreads(__tstate); | |
19518 | if (PyErr_Occurred()) SWIG_fail; | |
19519 | } | |
19520 | { | |
19521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19522 | } | |
19523 | return resultobj; | |
19524 | fail: | |
19525 | return NULL; | |
19526 | } | |
19527 | ||
19528 | ||
19529 | static PyObject *_wrap_PyDividedShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
19530 | PyObject *resultobj; | |
19531 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19532 | wxDC *arg2 = 0 ; | |
19533 | double arg3 ; | |
19534 | double arg4 ; | |
19535 | double arg5 ; | |
19536 | double arg6 ; | |
19537 | bool arg7 = (bool) true ; | |
19538 | PyObject * obj0 = 0 ; | |
19539 | PyObject * obj1 = 0 ; | |
19540 | PyObject * obj2 = 0 ; | |
19541 | PyObject * obj3 = 0 ; | |
19542 | PyObject * obj4 = 0 ; | |
19543 | PyObject * obj5 = 0 ; | |
19544 | PyObject * obj6 = 0 ; | |
19545 | char *kwnames[] = { | |
19546 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
19547 | }; | |
19548 | ||
19549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDividedShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
19550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19552 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19553 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19554 | SWIG_fail; | |
19555 | if (arg2 == NULL) { | |
19556 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19557 | SWIG_fail; | |
19558 | } | |
19559 | arg3 = (double)SWIG_As_double(obj2); | |
19560 | if (PyErr_Occurred()) SWIG_fail; | |
19561 | arg4 = (double)SWIG_As_double(obj3); | |
19562 | if (PyErr_Occurred()) SWIG_fail; | |
19563 | arg5 = (double)SWIG_As_double(obj4); | |
19564 | if (PyErr_Occurred()) SWIG_fail; | |
19565 | arg6 = (double)SWIG_As_double(obj5); | |
19566 | if (PyErr_Occurred()) SWIG_fail; | |
19567 | if (obj6) { | |
19568 | arg7 = (bool)SWIG_As_bool(obj6); | |
19569 | if (PyErr_Occurred()) SWIG_fail; | |
19570 | } | |
19571 | { | |
19572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19573 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
19574 | ||
19575 | wxPyEndAllowThreads(__tstate); | |
19576 | if (PyErr_Occurred()) SWIG_fail; | |
19577 | } | |
19578 | Py_INCREF(Py_None); resultobj = Py_None; | |
19579 | return resultobj; | |
19580 | fail: | |
19581 | return NULL; | |
19582 | } | |
19583 | ||
19584 | ||
19585 | static PyObject *_wrap_PyDividedShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
19586 | PyObject *resultobj; | |
19587 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19588 | bool arg2 ; | |
19589 | double arg3 ; | |
19590 | double arg4 ; | |
19591 | int arg5 = (int) 0 ; | |
19592 | int arg6 = (int) 0 ; | |
19593 | PyObject * obj0 = 0 ; | |
19594 | PyObject * obj1 = 0 ; | |
19595 | PyObject * obj2 = 0 ; | |
19596 | PyObject * obj3 = 0 ; | |
19597 | PyObject * obj4 = 0 ; | |
19598 | PyObject * obj5 = 0 ; | |
19599 | char *kwnames[] = { | |
19600 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19601 | }; | |
19602 | ||
19603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDividedShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
19604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19606 | arg2 = (bool)SWIG_As_bool(obj1); | |
19607 | if (PyErr_Occurred()) SWIG_fail; | |
19608 | arg3 = (double)SWIG_As_double(obj2); | |
19609 | if (PyErr_Occurred()) SWIG_fail; | |
19610 | arg4 = (double)SWIG_As_double(obj3); | |
19611 | if (PyErr_Occurred()) SWIG_fail; | |
19612 | if (obj4) { | |
19613 | arg5 = (int)SWIG_As_int(obj4); | |
19614 | if (PyErr_Occurred()) SWIG_fail; | |
19615 | } | |
19616 | if (obj5) { | |
19617 | arg6 = (int)SWIG_As_int(obj5); | |
19618 | if (PyErr_Occurred()) SWIG_fail; | |
19619 | } | |
19620 | { | |
19621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19622 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
19623 | ||
19624 | wxPyEndAllowThreads(__tstate); | |
19625 | if (PyErr_Occurred()) SWIG_fail; | |
19626 | } | |
19627 | Py_INCREF(Py_None); resultobj = Py_None; | |
19628 | return resultobj; | |
19629 | fail: | |
19630 | return NULL; | |
19631 | } | |
19632 | ||
19633 | ||
19634 | static PyObject *_wrap_PyDividedShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
19635 | PyObject *resultobj; | |
19636 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19637 | double arg2 ; | |
19638 | double arg3 ; | |
19639 | int arg4 = (int) 0 ; | |
19640 | int arg5 = (int) 0 ; | |
19641 | PyObject * obj0 = 0 ; | |
19642 | PyObject * obj1 = 0 ; | |
19643 | PyObject * obj2 = 0 ; | |
19644 | PyObject * obj3 = 0 ; | |
19645 | PyObject * obj4 = 0 ; | |
19646 | char *kwnames[] = { | |
19647 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19648 | }; | |
19649 | ||
19650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19653 | arg2 = (double)SWIG_As_double(obj1); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | arg3 = (double)SWIG_As_double(obj2); | |
19656 | if (PyErr_Occurred()) SWIG_fail; | |
19657 | if (obj3) { | |
19658 | arg4 = (int)SWIG_As_int(obj3); | |
19659 | if (PyErr_Occurred()) SWIG_fail; | |
19660 | } | |
19661 | if (obj4) { | |
19662 | arg5 = (int)SWIG_As_int(obj4); | |
19663 | if (PyErr_Occurred()) SWIG_fail; | |
19664 | } | |
19665 | { | |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
19668 | ||
19669 | wxPyEndAllowThreads(__tstate); | |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
19671 | } | |
19672 | Py_INCREF(Py_None); resultobj = Py_None; | |
19673 | return resultobj; | |
19674 | fail: | |
19675 | return NULL; | |
19676 | } | |
19677 | ||
19678 | ||
19679 | static PyObject *_wrap_PyDividedShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
19680 | PyObject *resultobj; | |
19681 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19682 | double arg2 ; | |
19683 | double arg3 ; | |
19684 | int arg4 = (int) 0 ; | |
19685 | int arg5 = (int) 0 ; | |
19686 | PyObject * obj0 = 0 ; | |
19687 | PyObject * obj1 = 0 ; | |
19688 | PyObject * obj2 = 0 ; | |
19689 | PyObject * obj3 = 0 ; | |
19690 | PyObject * obj4 = 0 ; | |
19691 | char *kwnames[] = { | |
19692 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19693 | }; | |
19694 | ||
19695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19698 | arg2 = (double)SWIG_As_double(obj1); | |
19699 | if (PyErr_Occurred()) SWIG_fail; | |
19700 | arg3 = (double)SWIG_As_double(obj2); | |
19701 | if (PyErr_Occurred()) SWIG_fail; | |
19702 | if (obj3) { | |
19703 | arg4 = (int)SWIG_As_int(obj3); | |
19704 | if (PyErr_Occurred()) SWIG_fail; | |
19705 | } | |
19706 | if (obj4) { | |
19707 | arg5 = (int)SWIG_As_int(obj4); | |
19708 | if (PyErr_Occurred()) SWIG_fail; | |
19709 | } | |
19710 | { | |
19711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19712 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
19713 | ||
19714 | wxPyEndAllowThreads(__tstate); | |
19715 | if (PyErr_Occurred()) SWIG_fail; | |
19716 | } | |
19717 | Py_INCREF(Py_None); resultobj = Py_None; | |
19718 | return resultobj; | |
19719 | fail: | |
19720 | return NULL; | |
19721 | } | |
19722 | ||
19723 | ||
19724 | static PyObject *_wrap_PyDividedShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
19725 | PyObject *resultobj; | |
19726 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19727 | bool arg2 ; | |
19728 | double arg3 ; | |
19729 | double arg4 ; | |
19730 | int arg5 = (int) 0 ; | |
19731 | int arg6 = (int) 0 ; | |
19732 | PyObject * obj0 = 0 ; | |
19733 | PyObject * obj1 = 0 ; | |
19734 | PyObject * obj2 = 0 ; | |
19735 | PyObject * obj3 = 0 ; | |
19736 | PyObject * obj4 = 0 ; | |
19737 | PyObject * obj5 = 0 ; | |
19738 | char *kwnames[] = { | |
19739 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19740 | }; | |
19741 | ||
19742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDividedShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
19743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19745 | arg2 = (bool)SWIG_As_bool(obj1); | |
19746 | if (PyErr_Occurred()) SWIG_fail; | |
19747 | arg3 = (double)SWIG_As_double(obj2); | |
19748 | if (PyErr_Occurred()) SWIG_fail; | |
19749 | arg4 = (double)SWIG_As_double(obj3); | |
19750 | if (PyErr_Occurred()) SWIG_fail; | |
19751 | if (obj4) { | |
19752 | arg5 = (int)SWIG_As_int(obj4); | |
19753 | if (PyErr_Occurred()) SWIG_fail; | |
19754 | } | |
19755 | if (obj5) { | |
19756 | arg6 = (int)SWIG_As_int(obj5); | |
19757 | if (PyErr_Occurred()) SWIG_fail; | |
19758 | } | |
19759 | { | |
19760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19761 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
19762 | ||
19763 | wxPyEndAllowThreads(__tstate); | |
19764 | if (PyErr_Occurred()) SWIG_fail; | |
19765 | } | |
19766 | Py_INCREF(Py_None); resultobj = Py_None; | |
19767 | return resultobj; | |
19768 | fail: | |
19769 | return NULL; | |
19770 | } | |
19771 | ||
19772 | ||
19773 | static PyObject *_wrap_PyDividedShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
19774 | PyObject *resultobj; | |
19775 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19776 | double arg2 ; | |
19777 | double arg3 ; | |
19778 | int arg4 = (int) 0 ; | |
19779 | int arg5 = (int) 0 ; | |
19780 | PyObject * obj0 = 0 ; | |
19781 | PyObject * obj1 = 0 ; | |
19782 | PyObject * obj2 = 0 ; | |
19783 | PyObject * obj3 = 0 ; | |
19784 | PyObject * obj4 = 0 ; | |
19785 | char *kwnames[] = { | |
19786 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19787 | }; | |
19788 | ||
19789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19792 | arg2 = (double)SWIG_As_double(obj1); | |
19793 | if (PyErr_Occurred()) SWIG_fail; | |
19794 | arg3 = (double)SWIG_As_double(obj2); | |
19795 | if (PyErr_Occurred()) SWIG_fail; | |
19796 | if (obj3) { | |
19797 | arg4 = (int)SWIG_As_int(obj3); | |
19798 | if (PyErr_Occurred()) SWIG_fail; | |
19799 | } | |
19800 | if (obj4) { | |
19801 | arg5 = (int)SWIG_As_int(obj4); | |
19802 | if (PyErr_Occurred()) SWIG_fail; | |
19803 | } | |
19804 | { | |
19805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19806 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
19807 | ||
19808 | wxPyEndAllowThreads(__tstate); | |
19809 | if (PyErr_Occurred()) SWIG_fail; | |
19810 | } | |
19811 | Py_INCREF(Py_None); resultobj = Py_None; | |
19812 | return resultobj; | |
19813 | fail: | |
19814 | return NULL; | |
19815 | } | |
19816 | ||
19817 | ||
19818 | static PyObject *_wrap_PyDividedShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
19819 | PyObject *resultobj; | |
19820 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19821 | double arg2 ; | |
19822 | double arg3 ; | |
19823 | int arg4 = (int) 0 ; | |
19824 | int arg5 = (int) 0 ; | |
19825 | PyObject * obj0 = 0 ; | |
19826 | PyObject * obj1 = 0 ; | |
19827 | PyObject * obj2 = 0 ; | |
19828 | PyObject * obj3 = 0 ; | |
19829 | PyObject * obj4 = 0 ; | |
19830 | char *kwnames[] = { | |
19831 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19832 | }; | |
19833 | ||
19834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19837 | arg2 = (double)SWIG_As_double(obj1); | |
19838 | if (PyErr_Occurred()) SWIG_fail; | |
19839 | arg3 = (double)SWIG_As_double(obj2); | |
19840 | if (PyErr_Occurred()) SWIG_fail; | |
19841 | if (obj3) { | |
19842 | arg4 = (int)SWIG_As_int(obj3); | |
19843 | if (PyErr_Occurred()) SWIG_fail; | |
19844 | } | |
19845 | if (obj4) { | |
19846 | arg5 = (int)SWIG_As_int(obj4); | |
19847 | if (PyErr_Occurred()) SWIG_fail; | |
19848 | } | |
19849 | { | |
19850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19851 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
19852 | ||
19853 | wxPyEndAllowThreads(__tstate); | |
19854 | if (PyErr_Occurred()) SWIG_fail; | |
19855 | } | |
19856 | Py_INCREF(Py_None); resultobj = Py_None; | |
19857 | return resultobj; | |
19858 | fail: | |
19859 | return NULL; | |
19860 | } | |
19861 | ||
19862 | ||
19863 | static PyObject *_wrap_PyDividedShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
19864 | PyObject *resultobj; | |
19865 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19866 | wxDC *arg2 = 0 ; | |
19867 | double arg3 ; | |
19868 | double arg4 ; | |
19869 | double arg5 ; | |
19870 | double arg6 ; | |
19871 | PyObject * obj0 = 0 ; | |
19872 | PyObject * obj1 = 0 ; | |
19873 | PyObject * obj2 = 0 ; | |
19874 | PyObject * obj3 = 0 ; | |
19875 | PyObject * obj4 = 0 ; | |
19876 | PyObject * obj5 = 0 ; | |
19877 | char *kwnames[] = { | |
19878 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
19879 | }; | |
19880 | ||
19881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyDividedShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
19882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19884 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19885 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19886 | SWIG_fail; | |
19887 | if (arg2 == NULL) { | |
19888 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19889 | SWIG_fail; | |
19890 | } | |
19891 | arg3 = (double)SWIG_As_double(obj2); | |
19892 | if (PyErr_Occurred()) SWIG_fail; | |
19893 | arg4 = (double)SWIG_As_double(obj3); | |
19894 | if (PyErr_Occurred()) SWIG_fail; | |
19895 | arg5 = (double)SWIG_As_double(obj4); | |
19896 | if (PyErr_Occurred()) SWIG_fail; | |
19897 | arg6 = (double)SWIG_As_double(obj5); | |
19898 | if (PyErr_Occurred()) SWIG_fail; | |
19899 | { | |
19900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19901 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
19902 | ||
19903 | wxPyEndAllowThreads(__tstate); | |
19904 | if (PyErr_Occurred()) SWIG_fail; | |
19905 | } | |
19906 | Py_INCREF(Py_None); resultobj = Py_None; | |
19907 | return resultobj; | |
19908 | fail: | |
19909 | return NULL; | |
19910 | } | |
19911 | ||
19912 | ||
19913 | static PyObject *_wrap_PyDividedShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
19914 | PyObject *resultobj; | |
19915 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19916 | wxDC *arg2 = 0 ; | |
19917 | PyObject * obj0 = 0 ; | |
19918 | PyObject * obj1 = 0 ; | |
19919 | char *kwnames[] = { | |
19920 | (char *) "self",(char *) "dc", NULL | |
19921 | }; | |
19922 | ||
19923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
19924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19927 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19928 | SWIG_fail; | |
19929 | if (arg2 == NULL) { | |
19930 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19931 | SWIG_fail; | |
19932 | } | |
19933 | { | |
19934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19935 | (arg1)->base_OnDrawControlPoints(*arg2); | |
19936 | ||
19937 | wxPyEndAllowThreads(__tstate); | |
19938 | if (PyErr_Occurred()) SWIG_fail; | |
19939 | } | |
19940 | Py_INCREF(Py_None); resultobj = Py_None; | |
19941 | return resultobj; | |
19942 | fail: | |
19943 | return NULL; | |
19944 | } | |
19945 | ||
19946 | ||
19947 | static PyObject *_wrap_PyDividedShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
19948 | PyObject *resultobj; | |
19949 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19950 | wxDC *arg2 = 0 ; | |
19951 | PyObject * obj0 = 0 ; | |
19952 | PyObject * obj1 = 0 ; | |
19953 | char *kwnames[] = { | |
19954 | (char *) "self",(char *) "dc", NULL | |
19955 | }; | |
19956 | ||
19957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
19958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19961 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19962 | SWIG_fail; | |
19963 | if (arg2 == NULL) { | |
19964 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19965 | SWIG_fail; | |
19966 | } | |
19967 | { | |
19968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19969 | (arg1)->base_OnEraseControlPoints(*arg2); | |
19970 | ||
19971 | wxPyEndAllowThreads(__tstate); | |
19972 | if (PyErr_Occurred()) SWIG_fail; | |
19973 | } | |
19974 | Py_INCREF(Py_None); resultobj = Py_None; | |
19975 | return resultobj; | |
19976 | fail: | |
19977 | return NULL; | |
19978 | } | |
19979 | ||
19980 | ||
19981 | static PyObject *_wrap_PyDividedShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
19982 | PyObject *resultobj; | |
19983 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19984 | wxDC *arg2 = 0 ; | |
19985 | bool arg3 = (bool) true ; | |
19986 | PyObject * obj0 = 0 ; | |
19987 | PyObject * obj1 = 0 ; | |
19988 | PyObject * obj2 = 0 ; | |
19989 | char *kwnames[] = { | |
19990 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
19991 | }; | |
19992 | ||
19993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDividedShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
19995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19996 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19997 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19998 | SWIG_fail; | |
19999 | if (arg2 == NULL) { | |
20000 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20001 | SWIG_fail; | |
20002 | } | |
20003 | if (obj2) { | |
20004 | arg3 = (bool)SWIG_As_bool(obj2); | |
20005 | if (PyErr_Occurred()) SWIG_fail; | |
20006 | } | |
20007 | { | |
20008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20009 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
20010 | ||
20011 | wxPyEndAllowThreads(__tstate); | |
20012 | if (PyErr_Occurred()) SWIG_fail; | |
20013 | } | |
20014 | Py_INCREF(Py_None); resultobj = Py_None; | |
20015 | return resultobj; | |
20016 | fail: | |
20017 | return NULL; | |
20018 | } | |
20019 | ||
20020 | ||
20021 | static PyObject *_wrap_PyDividedShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
20022 | PyObject *resultobj; | |
20023 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20024 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
20025 | bool arg3 ; | |
20026 | double arg4 ; | |
20027 | double arg5 ; | |
20028 | int arg6 = (int) 0 ; | |
20029 | int arg7 = (int) 0 ; | |
20030 | PyObject * obj0 = 0 ; | |
20031 | PyObject * obj1 = 0 ; | |
20032 | PyObject * obj2 = 0 ; | |
20033 | PyObject * obj3 = 0 ; | |
20034 | PyObject * obj4 = 0 ; | |
20035 | PyObject * obj5 = 0 ; | |
20036 | PyObject * obj6 = 0 ; | |
20037 | char *kwnames[] = { | |
20038 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
20039 | }; | |
20040 | ||
20041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyDividedShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
20042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
20043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20044 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
20045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20046 | arg3 = (bool)SWIG_As_bool(obj2); | |
20047 | if (PyErr_Occurred()) SWIG_fail; | |
20048 | arg4 = (double)SWIG_As_double(obj3); | |
20049 | if (PyErr_Occurred()) SWIG_fail; | |
20050 | arg5 = (double)SWIG_As_double(obj4); | |
20051 | if (PyErr_Occurred()) SWIG_fail; | |
20052 | if (obj5) { | |
20053 | arg6 = (int)SWIG_As_int(obj5); | |
20054 | if (PyErr_Occurred()) SWIG_fail; | |
20055 | } | |
20056 | if (obj6) { | |
20057 | arg7 = (int)SWIG_As_int(obj6); | |
20058 | if (PyErr_Occurred()) SWIG_fail; | |
20059 | } | |
20060 | { | |
20061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20062 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
20063 | ||
20064 | wxPyEndAllowThreads(__tstate); | |
20065 | if (PyErr_Occurred()) SWIG_fail; | |
20066 | } | |
20067 | Py_INCREF(Py_None); resultobj = Py_None; | |
20068 | return resultobj; | |
20069 | fail: | |
20070 | return NULL; | |
20071 | } | |
20072 | ||
20073 | ||
20074 | static PyObject *_wrap_PyDividedShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
20075 | PyObject *resultobj; | |
20076 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20077 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
20078 | double arg3 ; | |
20079 | double arg4 ; | |
20080 | int arg5 = (int) 0 ; | |
20081 | int arg6 = (int) 0 ; | |
20082 | PyObject * obj0 = 0 ; | |
20083 | PyObject * obj1 = 0 ; | |
20084 | PyObject * obj2 = 0 ; | |
20085 | PyObject * obj3 = 0 ; | |
20086 | PyObject * obj4 = 0 ; | |
20087 | PyObject * obj5 = 0 ; | |
20088 | char *kwnames[] = { | |
20089 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
20090 | }; | |
20091 | ||
20092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDividedShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
20093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
20094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20095 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
20096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20097 | arg3 = (double)SWIG_As_double(obj2); | |
20098 | if (PyErr_Occurred()) SWIG_fail; | |
20099 | arg4 = (double)SWIG_As_double(obj3); | |
20100 | if (PyErr_Occurred()) SWIG_fail; | |
20101 | if (obj4) { | |
20102 | arg5 = (int)SWIG_As_int(obj4); | |
20103 | if (PyErr_Occurred()) SWIG_fail; | |
20104 | } | |
20105 | if (obj5) { | |
20106 | arg6 = (int)SWIG_As_int(obj5); | |
20107 | if (PyErr_Occurred()) SWIG_fail; | |
20108 | } | |
20109 | { | |
20110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20111 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
20112 | ||
20113 | wxPyEndAllowThreads(__tstate); | |
20114 | if (PyErr_Occurred()) SWIG_fail; | |
20115 | } | |
20116 | Py_INCREF(Py_None); resultobj = Py_None; | |
20117 | return resultobj; | |
20118 | fail: | |
20119 | return NULL; | |
20120 | } | |
20121 | ||
20122 | ||
20123 | static PyObject *_wrap_PyDividedShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
20124 | PyObject *resultobj; | |
20125 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20126 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
20127 | double arg3 ; | |
20128 | double arg4 ; | |
20129 | int arg5 = (int) 0 ; | |
20130 | int arg6 = (int) 0 ; | |
20131 | PyObject * obj0 = 0 ; | |
20132 | PyObject * obj1 = 0 ; | |
20133 | PyObject * obj2 = 0 ; | |
20134 | PyObject * obj3 = 0 ; | |
20135 | PyObject * obj4 = 0 ; | |
20136 | PyObject * obj5 = 0 ; | |
20137 | char *kwnames[] = { | |
20138 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
20139 | }; | |
20140 | ||
20141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDividedShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
20142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
20143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20144 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
20145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20146 | arg3 = (double)SWIG_As_double(obj2); | |
20147 | if (PyErr_Occurred()) SWIG_fail; | |
20148 | arg4 = (double)SWIG_As_double(obj3); | |
20149 | if (PyErr_Occurred()) SWIG_fail; | |
20150 | if (obj4) { | |
20151 | arg5 = (int)SWIG_As_int(obj4); | |
20152 | if (PyErr_Occurred()) SWIG_fail; | |
20153 | } | |
20154 | if (obj5) { | |
20155 | arg6 = (int)SWIG_As_int(obj5); | |
20156 | if (PyErr_Occurred()) SWIG_fail; | |
20157 | } | |
20158 | { | |
20159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20160 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
20161 | ||
20162 | wxPyEndAllowThreads(__tstate); | |
20163 | if (PyErr_Occurred()) SWIG_fail; | |
20164 | } | |
20165 | Py_INCREF(Py_None); resultobj = Py_None; | |
20166 | return resultobj; | |
20167 | fail: | |
20168 | return NULL; | |
20169 | } | |
20170 | ||
20171 | ||
20172 | static PyObject *_wrap_PyDividedShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
20173 | PyObject *resultobj; | |
20174 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20175 | double arg2 ; | |
20176 | double arg3 ; | |
20177 | PyObject * obj0 = 0 ; | |
20178 | PyObject * obj1 = 0 ; | |
20179 | PyObject * obj2 = 0 ; | |
20180 | char *kwnames[] = { | |
20181 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20182 | }; | |
20183 | ||
20184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDividedShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
20186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20187 | arg2 = (double)SWIG_As_double(obj1); | |
20188 | if (PyErr_Occurred()) SWIG_fail; | |
20189 | arg3 = (double)SWIG_As_double(obj2); | |
20190 | if (PyErr_Occurred()) SWIG_fail; | |
20191 | { | |
20192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20193 | (arg1)->base_OnBeginSize(arg2,arg3); | |
20194 | ||
20195 | wxPyEndAllowThreads(__tstate); | |
20196 | if (PyErr_Occurred()) SWIG_fail; | |
20197 | } | |
20198 | Py_INCREF(Py_None); resultobj = Py_None; | |
20199 | return resultobj; | |
20200 | fail: | |
20201 | return NULL; | |
20202 | } | |
20203 | ||
20204 | ||
20205 | static PyObject *_wrap_PyDividedShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
20206 | PyObject *resultobj; | |
20207 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20208 | double arg2 ; | |
20209 | double arg3 ; | |
20210 | PyObject * obj0 = 0 ; | |
20211 | PyObject * obj1 = 0 ; | |
20212 | PyObject * obj2 = 0 ; | |
20213 | char *kwnames[] = { | |
20214 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20215 | }; | |
20216 | ||
20217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDividedShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, | |
20219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20220 | arg2 = (double)SWIG_As_double(obj1); | |
20221 | if (PyErr_Occurred()) SWIG_fail; | |
20222 | arg3 = (double)SWIG_As_double(obj2); | |
20223 | if (PyErr_Occurred()) SWIG_fail; | |
20224 | { | |
20225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20226 | (arg1)->base_OnEndSize(arg2,arg3); | |
20227 | ||
20228 | wxPyEndAllowThreads(__tstate); | |
20229 | if (PyErr_Occurred()) SWIG_fail; | |
20230 | } | |
20231 | Py_INCREF(Py_None); resultobj = Py_None; | |
20232 | return resultobj; | |
20233 | fail: | |
20234 | return NULL; | |
20235 | } | |
20236 | ||
20237 | ||
20238 | static PyObject * PyDividedShape_swigregister(PyObject *, PyObject *args) { | |
20239 | PyObject *obj; | |
20240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20241 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDividedShape, obj); | |
20242 | Py_INCREF(obj); | |
20243 | return Py_BuildValue((char *)""); | |
20244 | } | |
20245 | static PyObject *_wrap_new_PyDivisionShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
20246 | PyObject *resultobj; | |
20247 | wxPyDivisionShape *result; | |
20248 | char *kwnames[] = { | |
20249 | NULL | |
20250 | }; | |
20251 | ||
20252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyDivisionShape",kwnames)) goto fail; | |
20253 | { | |
20254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20255 | result = (wxPyDivisionShape *)new wxPyDivisionShape(); | |
20256 | ||
20257 | wxPyEndAllowThreads(__tstate); | |
20258 | if (PyErr_Occurred()) SWIG_fail; | |
20259 | } | |
20260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDivisionShape, 1); | |
20261 | return resultobj; | |
20262 | fail: | |
20263 | return NULL; | |
20264 | } | |
20265 | ||
20266 | ||
20267 | static PyObject *_wrap_PyDivisionShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
20268 | PyObject *resultobj; | |
20269 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20270 | PyObject *arg2 = (PyObject *) 0 ; | |
20271 | PyObject *arg3 = (PyObject *) 0 ; | |
20272 | PyObject * obj0 = 0 ; | |
20273 | PyObject * obj1 = 0 ; | |
20274 | PyObject * obj2 = 0 ; | |
20275 | char *kwnames[] = { | |
20276 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20277 | }; | |
20278 | ||
20279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20282 | arg2 = obj1; | |
20283 | arg3 = obj2; | |
20284 | { | |
20285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20286 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20287 | ||
20288 | wxPyEndAllowThreads(__tstate); | |
20289 | if (PyErr_Occurred()) SWIG_fail; | |
20290 | } | |
20291 | Py_INCREF(Py_None); resultobj = Py_None; | |
20292 | return resultobj; | |
20293 | fail: | |
20294 | return NULL; | |
20295 | } | |
20296 | ||
20297 | ||
20298 | static PyObject *_wrap_PyDivisionShape_AdjustBottom(PyObject *, PyObject *args, PyObject *kwargs) { | |
20299 | PyObject *resultobj; | |
20300 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20301 | double arg2 ; | |
20302 | bool arg3 ; | |
20303 | PyObject * obj0 = 0 ; | |
20304 | PyObject * obj1 = 0 ; | |
20305 | PyObject * obj2 = 0 ; | |
20306 | char *kwnames[] = { | |
20307 | (char *) "self",(char *) "bottom",(char *) "test", NULL | |
20308 | }; | |
20309 | ||
20310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_AdjustBottom",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20313 | arg2 = (double)SWIG_As_double(obj1); | |
20314 | if (PyErr_Occurred()) SWIG_fail; | |
20315 | arg3 = (bool)SWIG_As_bool(obj2); | |
20316 | if (PyErr_Occurred()) SWIG_fail; | |
20317 | { | |
20318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20319 | (arg1)->AdjustBottom(arg2,arg3); | |
20320 | ||
20321 | wxPyEndAllowThreads(__tstate); | |
20322 | if (PyErr_Occurred()) SWIG_fail; | |
20323 | } | |
20324 | Py_INCREF(Py_None); resultobj = Py_None; | |
20325 | return resultobj; | |
20326 | fail: | |
20327 | return NULL; | |
20328 | } | |
20329 | ||
20330 | ||
20331 | static PyObject *_wrap_PyDivisionShape_AdjustLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
20332 | PyObject *resultobj; | |
20333 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20334 | double arg2 ; | |
20335 | bool arg3 ; | |
20336 | PyObject * obj0 = 0 ; | |
20337 | PyObject * obj1 = 0 ; | |
20338 | PyObject * obj2 = 0 ; | |
20339 | char *kwnames[] = { | |
20340 | (char *) "self",(char *) "left",(char *) "test", NULL | |
20341 | }; | |
20342 | ||
20343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_AdjustLeft",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20346 | arg2 = (double)SWIG_As_double(obj1); | |
20347 | if (PyErr_Occurred()) SWIG_fail; | |
20348 | arg3 = (bool)SWIG_As_bool(obj2); | |
20349 | if (PyErr_Occurred()) SWIG_fail; | |
20350 | { | |
20351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20352 | (arg1)->AdjustLeft(arg2,arg3); | |
20353 | ||
20354 | wxPyEndAllowThreads(__tstate); | |
20355 | if (PyErr_Occurred()) SWIG_fail; | |
20356 | } | |
20357 | Py_INCREF(Py_None); resultobj = Py_None; | |
20358 | return resultobj; | |
20359 | fail: | |
20360 | return NULL; | |
20361 | } | |
20362 | ||
20363 | ||
20364 | static PyObject *_wrap_PyDivisionShape_AdjustRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
20365 | PyObject *resultobj; | |
20366 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20367 | double arg2 ; | |
20368 | bool arg3 ; | |
20369 | PyObject * obj0 = 0 ; | |
20370 | PyObject * obj1 = 0 ; | |
20371 | PyObject * obj2 = 0 ; | |
20372 | char *kwnames[] = { | |
20373 | (char *) "self",(char *) "right",(char *) "test", NULL | |
20374 | }; | |
20375 | ||
20376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_AdjustRight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20379 | arg2 = (double)SWIG_As_double(obj1); | |
20380 | if (PyErr_Occurred()) SWIG_fail; | |
20381 | arg3 = (bool)SWIG_As_bool(obj2); | |
20382 | if (PyErr_Occurred()) SWIG_fail; | |
20383 | { | |
20384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20385 | (arg1)->AdjustRight(arg2,arg3); | |
20386 | ||
20387 | wxPyEndAllowThreads(__tstate); | |
20388 | if (PyErr_Occurred()) SWIG_fail; | |
20389 | } | |
20390 | Py_INCREF(Py_None); resultobj = Py_None; | |
20391 | return resultobj; | |
20392 | fail: | |
20393 | return NULL; | |
20394 | } | |
20395 | ||
20396 | ||
20397 | static PyObject *_wrap_PyDivisionShape_AdjustTop(PyObject *, PyObject *args, PyObject *kwargs) { | |
20398 | PyObject *resultobj; | |
20399 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20400 | double arg2 ; | |
20401 | bool arg3 ; | |
20402 | PyObject * obj0 = 0 ; | |
20403 | PyObject * obj1 = 0 ; | |
20404 | PyObject * obj2 = 0 ; | |
20405 | char *kwnames[] = { | |
20406 | (char *) "self",(char *) "top",(char *) "test", NULL | |
20407 | }; | |
20408 | ||
20409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_AdjustTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20412 | arg2 = (double)SWIG_As_double(obj1); | |
20413 | if (PyErr_Occurred()) SWIG_fail; | |
20414 | arg3 = (bool)SWIG_As_bool(obj2); | |
20415 | if (PyErr_Occurred()) SWIG_fail; | |
20416 | { | |
20417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20418 | (arg1)->AdjustTop(arg2,arg3); | |
20419 | ||
20420 | wxPyEndAllowThreads(__tstate); | |
20421 | if (PyErr_Occurred()) SWIG_fail; | |
20422 | } | |
20423 | Py_INCREF(Py_None); resultobj = Py_None; | |
20424 | return resultobj; | |
20425 | fail: | |
20426 | return NULL; | |
20427 | } | |
20428 | ||
20429 | ||
20430 | static PyObject *_wrap_PyDivisionShape_Divide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20431 | PyObject *resultobj; | |
20432 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20433 | int arg2 ; | |
20434 | PyObject * obj0 = 0 ; | |
20435 | PyObject * obj1 = 0 ; | |
20436 | char *kwnames[] = { | |
20437 | (char *) "self",(char *) "direction", NULL | |
20438 | }; | |
20439 | ||
20440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_Divide",kwnames,&obj0,&obj1)) goto fail; | |
20441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20443 | arg2 = (int)SWIG_As_int(obj1); | |
20444 | if (PyErr_Occurred()) SWIG_fail; | |
20445 | { | |
20446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20447 | (arg1)->Divide(arg2); | |
20448 | ||
20449 | wxPyEndAllowThreads(__tstate); | |
20450 | if (PyErr_Occurred()) SWIG_fail; | |
20451 | } | |
20452 | Py_INCREF(Py_None); resultobj = Py_None; | |
20453 | return resultobj; | |
20454 | fail: | |
20455 | return NULL; | |
20456 | } | |
20457 | ||
20458 | ||
20459 | static PyObject *_wrap_PyDivisionShape_EditEdge(PyObject *, PyObject *args, PyObject *kwargs) { | |
20460 | PyObject *resultobj; | |
20461 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20462 | int arg2 ; | |
20463 | PyObject * obj0 = 0 ; | |
20464 | PyObject * obj1 = 0 ; | |
20465 | char *kwnames[] = { | |
20466 | (char *) "self",(char *) "side", NULL | |
20467 | }; | |
20468 | ||
20469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_EditEdge",kwnames,&obj0,&obj1)) goto fail; | |
20470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20472 | arg2 = (int)SWIG_As_int(obj1); | |
20473 | if (PyErr_Occurred()) SWIG_fail; | |
20474 | { | |
20475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20476 | (arg1)->EditEdge(arg2); | |
20477 | ||
20478 | wxPyEndAllowThreads(__tstate); | |
20479 | if (PyErr_Occurred()) SWIG_fail; | |
20480 | } | |
20481 | Py_INCREF(Py_None); resultobj = Py_None; | |
20482 | return resultobj; | |
20483 | fail: | |
20484 | return NULL; | |
20485 | } | |
20486 | ||
20487 | ||
20488 | static PyObject *_wrap_PyDivisionShape_GetBottomSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20489 | PyObject *resultobj; | |
20490 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20491 | wxPyDivisionShape *result; | |
20492 | PyObject * obj0 = 0 ; | |
20493 | char *kwnames[] = { | |
20494 | (char *) "self", NULL | |
20495 | }; | |
20496 | ||
20497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetBottomSide",kwnames,&obj0)) goto fail; | |
20498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20500 | { | |
20501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20502 | result = (wxPyDivisionShape *)(arg1)->GetBottomSide(); | |
20503 | ||
20504 | wxPyEndAllowThreads(__tstate); | |
20505 | if (PyErr_Occurred()) SWIG_fail; | |
20506 | } | |
20507 | { | |
20508 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
20509 | } | |
20510 | return resultobj; | |
20511 | fail: | |
20512 | return NULL; | |
20513 | } | |
20514 | ||
20515 | ||
20516 | static PyObject *_wrap_PyDivisionShape_GetHandleSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20517 | PyObject *resultobj; | |
20518 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20519 | int result; | |
20520 | PyObject * obj0 = 0 ; | |
20521 | char *kwnames[] = { | |
20522 | (char *) "self", NULL | |
20523 | }; | |
20524 | ||
20525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetHandleSide",kwnames,&obj0)) goto fail; | |
20526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20528 | { | |
20529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20530 | result = (int)(arg1)->GetHandleSide(); | |
20531 | ||
20532 | wxPyEndAllowThreads(__tstate); | |
20533 | if (PyErr_Occurred()) SWIG_fail; | |
20534 | } | |
20535 | resultobj = SWIG_From_int((int)result); | |
20536 | return resultobj; | |
20537 | fail: | |
20538 | return NULL; | |
20539 | } | |
20540 | ||
20541 | ||
20542 | static PyObject *_wrap_PyDivisionShape_GetLeftSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20543 | PyObject *resultobj; | |
20544 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20545 | wxPyDivisionShape *result; | |
20546 | PyObject * obj0 = 0 ; | |
20547 | char *kwnames[] = { | |
20548 | (char *) "self", NULL | |
20549 | }; | |
20550 | ||
20551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetLeftSide",kwnames,&obj0)) goto fail; | |
20552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20554 | { | |
20555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20556 | result = (wxPyDivisionShape *)(arg1)->GetLeftSide(); | |
20557 | ||
20558 | wxPyEndAllowThreads(__tstate); | |
20559 | if (PyErr_Occurred()) SWIG_fail; | |
20560 | } | |
20561 | { | |
20562 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
20563 | } | |
20564 | return resultobj; | |
20565 | fail: | |
20566 | return NULL; | |
20567 | } | |
20568 | ||
20569 | ||
20570 | static PyObject *_wrap_PyDivisionShape_GetLeftSideColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
20571 | PyObject *resultobj; | |
20572 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20573 | wxString result; | |
20574 | PyObject * obj0 = 0 ; | |
20575 | char *kwnames[] = { | |
20576 | (char *) "self", NULL | |
20577 | }; | |
20578 | ||
20579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetLeftSideColour",kwnames,&obj0)) goto fail; | |
20580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20582 | { | |
20583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20584 | result = (arg1)->GetLeftSideColour(); | |
20585 | ||
20586 | wxPyEndAllowThreads(__tstate); | |
20587 | if (PyErr_Occurred()) SWIG_fail; | |
20588 | } | |
20589 | { | |
20590 | #if wxUSE_UNICODE | |
20591 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20592 | #else | |
20593 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20594 | #endif | |
20595 | } | |
20596 | return resultobj; | |
20597 | fail: | |
20598 | return NULL; | |
20599 | } | |
20600 | ||
20601 | ||
20602 | static PyObject *_wrap_PyDivisionShape_GetLeftSidePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
20603 | PyObject *resultobj; | |
20604 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20605 | wxPen *result; | |
20606 | PyObject * obj0 = 0 ; | |
20607 | char *kwnames[] = { | |
20608 | (char *) "self", NULL | |
20609 | }; | |
20610 | ||
20611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetLeftSidePen",kwnames,&obj0)) goto fail; | |
20612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20614 | { | |
20615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20616 | result = (wxPen *)(arg1)->GetLeftSidePen(); | |
20617 | ||
20618 | wxPyEndAllowThreads(__tstate); | |
20619 | if (PyErr_Occurred()) SWIG_fail; | |
20620 | } | |
20621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
20622 | return resultobj; | |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
20628 | static PyObject *_wrap_PyDivisionShape_GetRightSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20629 | PyObject *resultobj; | |
20630 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20631 | wxPyDivisionShape *result; | |
20632 | PyObject * obj0 = 0 ; | |
20633 | char *kwnames[] = { | |
20634 | (char *) "self", NULL | |
20635 | }; | |
20636 | ||
20637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetRightSide",kwnames,&obj0)) goto fail; | |
20638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20640 | { | |
20641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20642 | result = (wxPyDivisionShape *)(arg1)->GetRightSide(); | |
20643 | ||
20644 | wxPyEndAllowThreads(__tstate); | |
20645 | if (PyErr_Occurred()) SWIG_fail; | |
20646 | } | |
20647 | { | |
20648 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
20649 | } | |
20650 | return resultobj; | |
20651 | fail: | |
20652 | return NULL; | |
20653 | } | |
20654 | ||
20655 | ||
20656 | static PyObject *_wrap_PyDivisionShape_GetTopSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20657 | PyObject *resultobj; | |
20658 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20659 | wxPyDivisionShape *result; | |
20660 | PyObject * obj0 = 0 ; | |
20661 | char *kwnames[] = { | |
20662 | (char *) "self", NULL | |
20663 | }; | |
20664 | ||
20665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetTopSide",kwnames,&obj0)) goto fail; | |
20666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20668 | { | |
20669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20670 | result = (wxPyDivisionShape *)(arg1)->GetTopSide(); | |
20671 | ||
20672 | wxPyEndAllowThreads(__tstate); | |
20673 | if (PyErr_Occurred()) SWIG_fail; | |
20674 | } | |
20675 | { | |
20676 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
20677 | } | |
20678 | return resultobj; | |
20679 | fail: | |
20680 | return NULL; | |
20681 | } | |
20682 | ||
20683 | ||
20684 | static PyObject *_wrap_PyDivisionShape_GetTopSidePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
20685 | PyObject *resultobj; | |
20686 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20687 | wxPen *result; | |
20688 | PyObject * obj0 = 0 ; | |
20689 | char *kwnames[] = { | |
20690 | (char *) "self", NULL | |
20691 | }; | |
20692 | ||
20693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetTopSidePen",kwnames,&obj0)) goto fail; | |
20694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20696 | { | |
20697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20698 | result = (wxPen *)(arg1)->GetTopSidePen(); | |
20699 | ||
20700 | wxPyEndAllowThreads(__tstate); | |
20701 | if (PyErr_Occurred()) SWIG_fail; | |
20702 | } | |
20703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
20704 | return resultobj; | |
20705 | fail: | |
20706 | return NULL; | |
20707 | } | |
20708 | ||
20709 | ||
20710 | static PyObject *_wrap_PyDivisionShape_ResizeAdjoining(PyObject *, PyObject *args, PyObject *kwargs) { | |
20711 | PyObject *resultobj; | |
20712 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20713 | int arg2 ; | |
20714 | double arg3 ; | |
20715 | bool arg4 ; | |
20716 | PyObject * obj0 = 0 ; | |
20717 | PyObject * obj1 = 0 ; | |
20718 | PyObject * obj2 = 0 ; | |
20719 | PyObject * obj3 = 0 ; | |
20720 | char *kwnames[] = { | |
20721 | (char *) "self",(char *) "side",(char *) "newPos",(char *) "test", NULL | |
20722 | }; | |
20723 | ||
20724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyDivisionShape_ResizeAdjoining",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20727 | arg2 = (int)SWIG_As_int(obj1); | |
20728 | if (PyErr_Occurred()) SWIG_fail; | |
20729 | arg3 = (double)SWIG_As_double(obj2); | |
20730 | if (PyErr_Occurred()) SWIG_fail; | |
20731 | arg4 = (bool)SWIG_As_bool(obj3); | |
20732 | if (PyErr_Occurred()) SWIG_fail; | |
20733 | { | |
20734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20735 | (arg1)->ResizeAdjoining(arg2,arg3,arg4); | |
20736 | ||
20737 | wxPyEndAllowThreads(__tstate); | |
20738 | if (PyErr_Occurred()) SWIG_fail; | |
20739 | } | |
20740 | Py_INCREF(Py_None); resultobj = Py_None; | |
20741 | return resultobj; | |
20742 | fail: | |
20743 | return NULL; | |
20744 | } | |
20745 | ||
20746 | ||
20747 | static PyObject *_wrap_PyDivisionShape_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { | |
20748 | PyObject *resultobj; | |
20749 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20750 | double arg2 ; | |
20751 | double arg3 ; | |
20752 | PyObject * obj0 = 0 ; | |
20753 | PyObject * obj1 = 0 ; | |
20754 | PyObject * obj2 = 0 ; | |
20755 | char *kwnames[] = { | |
20756 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20757 | }; | |
20758 | ||
20759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20762 | arg2 = (double)SWIG_As_double(obj1); | |
20763 | if (PyErr_Occurred()) SWIG_fail; | |
20764 | arg3 = (double)SWIG_As_double(obj2); | |
20765 | if (PyErr_Occurred()) SWIG_fail; | |
20766 | { | |
20767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20768 | (arg1)->PopupMenu(arg2,arg3); | |
20769 | ||
20770 | wxPyEndAllowThreads(__tstate); | |
20771 | if (PyErr_Occurred()) SWIG_fail; | |
20772 | } | |
20773 | Py_INCREF(Py_None); resultobj = Py_None; | |
20774 | return resultobj; | |
20775 | fail: | |
20776 | return NULL; | |
20777 | } | |
20778 | ||
20779 | ||
20780 | static PyObject *_wrap_PyDivisionShape_SetBottomSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20781 | PyObject *resultobj; | |
20782 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20783 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
20784 | PyObject * obj0 = 0 ; | |
20785 | PyObject * obj1 = 0 ; | |
20786 | char *kwnames[] = { | |
20787 | (char *) "self",(char *) "shape", NULL | |
20788 | }; | |
20789 | ||
20790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetBottomSide",kwnames,&obj0,&obj1)) goto fail; | |
20791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
20794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20795 | { | |
20796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20797 | (arg1)->SetBottomSide(arg2); | |
20798 | ||
20799 | wxPyEndAllowThreads(__tstate); | |
20800 | if (PyErr_Occurred()) SWIG_fail; | |
20801 | } | |
20802 | Py_INCREF(Py_None); resultobj = Py_None; | |
20803 | return resultobj; | |
20804 | fail: | |
20805 | return NULL; | |
20806 | } | |
20807 | ||
20808 | ||
20809 | static PyObject *_wrap_PyDivisionShape_SetHandleSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20810 | PyObject *resultobj; | |
20811 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20812 | int arg2 ; | |
20813 | PyObject * obj0 = 0 ; | |
20814 | PyObject * obj1 = 0 ; | |
20815 | char *kwnames[] = { | |
20816 | (char *) "self",(char *) "side", NULL | |
20817 | }; | |
20818 | ||
20819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetHandleSide",kwnames,&obj0,&obj1)) goto fail; | |
20820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20822 | arg2 = (int)SWIG_As_int(obj1); | |
20823 | if (PyErr_Occurred()) SWIG_fail; | |
20824 | { | |
20825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20826 | (arg1)->SetHandleSide(arg2); | |
20827 | ||
20828 | wxPyEndAllowThreads(__tstate); | |
20829 | if (PyErr_Occurred()) SWIG_fail; | |
20830 | } | |
20831 | Py_INCREF(Py_None); resultobj = Py_None; | |
20832 | return resultobj; | |
20833 | fail: | |
20834 | return NULL; | |
20835 | } | |
20836 | ||
20837 | ||
20838 | static PyObject *_wrap_PyDivisionShape_SetLeftSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20839 | PyObject *resultobj; | |
20840 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20841 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
20842 | PyObject * obj0 = 0 ; | |
20843 | PyObject * obj1 = 0 ; | |
20844 | char *kwnames[] = { | |
20845 | (char *) "self",(char *) "shape", NULL | |
20846 | }; | |
20847 | ||
20848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetLeftSide",kwnames,&obj0,&obj1)) goto fail; | |
20849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
20852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20853 | { | |
20854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20855 | (arg1)->SetLeftSide(arg2); | |
20856 | ||
20857 | wxPyEndAllowThreads(__tstate); | |
20858 | if (PyErr_Occurred()) SWIG_fail; | |
20859 | } | |
20860 | Py_INCREF(Py_None); resultobj = Py_None; | |
20861 | return resultobj; | |
20862 | fail: | |
20863 | return NULL; | |
20864 | } | |
20865 | ||
20866 | ||
20867 | static PyObject *_wrap_PyDivisionShape_SetLeftSideColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
20868 | PyObject *resultobj; | |
20869 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20870 | wxString *arg2 = 0 ; | |
20871 | bool temp2 = false ; | |
20872 | PyObject * obj0 = 0 ; | |
20873 | PyObject * obj1 = 0 ; | |
20874 | char *kwnames[] = { | |
20875 | (char *) "self",(char *) "colour", NULL | |
20876 | }; | |
20877 | ||
20878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetLeftSideColour",kwnames,&obj0,&obj1)) goto fail; | |
20879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20881 | { | |
20882 | arg2 = wxString_in_helper(obj1); | |
20883 | if (arg2 == NULL) SWIG_fail; | |
20884 | temp2 = true; | |
20885 | } | |
20886 | { | |
20887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20888 | (arg1)->SetLeftSideColour((wxString const &)*arg2); | |
20889 | ||
20890 | wxPyEndAllowThreads(__tstate); | |
20891 | if (PyErr_Occurred()) SWIG_fail; | |
20892 | } | |
20893 | Py_INCREF(Py_None); resultobj = Py_None; | |
20894 | { | |
20895 | if (temp2) | |
20896 | delete arg2; | |
20897 | } | |
20898 | return resultobj; | |
20899 | fail: | |
20900 | { | |
20901 | if (temp2) | |
20902 | delete arg2; | |
20903 | } | |
20904 | return NULL; | |
20905 | } | |
20906 | ||
20907 | ||
20908 | static PyObject *_wrap_PyDivisionShape_SetLeftSidePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
20909 | PyObject *resultobj; | |
20910 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20911 | wxPen *arg2 = (wxPen *) 0 ; | |
20912 | PyObject * obj0 = 0 ; | |
20913 | PyObject * obj1 = 0 ; | |
20914 | char *kwnames[] = { | |
20915 | (char *) "self",(char *) "pen", NULL | |
20916 | }; | |
20917 | ||
20918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetLeftSidePen",kwnames,&obj0,&obj1)) goto fail; | |
20919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20921 | { | |
20922 | wxPen* temp; | |
20923 | if (obj1) { | |
20924 | if (obj1 == Py_None) { | |
20925 | temp = NULL; | |
20926 | } | |
20927 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
20928 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
20929 | return NULL; | |
20930 | } | |
20931 | } | |
20932 | if (temp) | |
20933 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
20934 | temp->GetWidth(), | |
20935 | temp->GetStyle()); | |
20936 | else | |
20937 | arg2 = NULL; | |
20938 | } | |
20939 | { | |
20940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20941 | (arg1)->SetLeftSidePen(arg2); | |
20942 | ||
20943 | wxPyEndAllowThreads(__tstate); | |
20944 | if (PyErr_Occurred()) SWIG_fail; | |
20945 | } | |
20946 | Py_INCREF(Py_None); resultobj = Py_None; | |
20947 | return resultobj; | |
20948 | fail: | |
20949 | return NULL; | |
20950 | } | |
20951 | ||
20952 | ||
20953 | static PyObject *_wrap_PyDivisionShape_SetRightSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20954 | PyObject *resultobj; | |
20955 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20956 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
20957 | PyObject * obj0 = 0 ; | |
20958 | PyObject * obj1 = 0 ; | |
20959 | char *kwnames[] = { | |
20960 | (char *) "self",(char *) "shape", NULL | |
20961 | }; | |
20962 | ||
20963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetRightSide",kwnames,&obj0,&obj1)) goto fail; | |
20964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20966 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
20967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20968 | { | |
20969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20970 | (arg1)->SetRightSide(arg2); | |
20971 | ||
20972 | wxPyEndAllowThreads(__tstate); | |
20973 | if (PyErr_Occurred()) SWIG_fail; | |
20974 | } | |
20975 | Py_INCREF(Py_None); resultobj = Py_None; | |
20976 | return resultobj; | |
20977 | fail: | |
20978 | return NULL; | |
20979 | } | |
20980 | ||
20981 | ||
20982 | static PyObject *_wrap_PyDivisionShape_SetTopSide(PyObject *, PyObject *args, PyObject *kwargs) { | |
20983 | PyObject *resultobj; | |
20984 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20985 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
20986 | PyObject * obj0 = 0 ; | |
20987 | PyObject * obj1 = 0 ; | |
20988 | char *kwnames[] = { | |
20989 | (char *) "self",(char *) "shape", NULL | |
20990 | }; | |
20991 | ||
20992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetTopSide",kwnames,&obj0,&obj1)) goto fail; | |
20993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
20994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
20996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20997 | { | |
20998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20999 | (arg1)->SetTopSide(arg2); | |
21000 | ||
21001 | wxPyEndAllowThreads(__tstate); | |
21002 | if (PyErr_Occurred()) SWIG_fail; | |
21003 | } | |
21004 | Py_INCREF(Py_None); resultobj = Py_None; | |
21005 | return resultobj; | |
21006 | fail: | |
21007 | return NULL; | |
21008 | } | |
21009 | ||
21010 | ||
21011 | static PyObject *_wrap_PyDivisionShape_SetTopSideColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
21012 | PyObject *resultobj; | |
21013 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21014 | wxString *arg2 = 0 ; | |
21015 | bool temp2 = false ; | |
21016 | PyObject * obj0 = 0 ; | |
21017 | PyObject * obj1 = 0 ; | |
21018 | char *kwnames[] = { | |
21019 | (char *) "self",(char *) "colour", NULL | |
21020 | }; | |
21021 | ||
21022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetTopSideColour",kwnames,&obj0,&obj1)) goto fail; | |
21023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21025 | { | |
21026 | arg2 = wxString_in_helper(obj1); | |
21027 | if (arg2 == NULL) SWIG_fail; | |
21028 | temp2 = true; | |
21029 | } | |
21030 | { | |
21031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21032 | (arg1)->SetTopSideColour((wxString const &)*arg2); | |
21033 | ||
21034 | wxPyEndAllowThreads(__tstate); | |
21035 | if (PyErr_Occurred()) SWIG_fail; | |
21036 | } | |
21037 | Py_INCREF(Py_None); resultobj = Py_None; | |
21038 | { | |
21039 | if (temp2) | |
21040 | delete arg2; | |
21041 | } | |
21042 | return resultobj; | |
21043 | fail: | |
21044 | { | |
21045 | if (temp2) | |
21046 | delete arg2; | |
21047 | } | |
21048 | return NULL; | |
21049 | } | |
21050 | ||
21051 | ||
21052 | static PyObject *_wrap_PyDivisionShape_SetTopSidePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
21053 | PyObject *resultobj; | |
21054 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21055 | wxPen *arg2 = (wxPen *) 0 ; | |
21056 | PyObject * obj0 = 0 ; | |
21057 | PyObject * obj1 = 0 ; | |
21058 | char *kwnames[] = { | |
21059 | (char *) "self",(char *) "pen", NULL | |
21060 | }; | |
21061 | ||
21062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetTopSidePen",kwnames,&obj0,&obj1)) goto fail; | |
21063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21065 | { | |
21066 | wxPen* temp; | |
21067 | if (obj1) { | |
21068 | if (obj1 == Py_None) { | |
21069 | temp = NULL; | |
21070 | } | |
21071 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
21072 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
21073 | return NULL; | |
21074 | } | |
21075 | } | |
21076 | if (temp) | |
21077 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
21078 | temp->GetWidth(), | |
21079 | temp->GetStyle()); | |
21080 | else | |
21081 | arg2 = NULL; | |
21082 | } | |
21083 | { | |
21084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21085 | (arg1)->SetTopSidePen(arg2); | |
21086 | ||
21087 | wxPyEndAllowThreads(__tstate); | |
21088 | if (PyErr_Occurred()) SWIG_fail; | |
21089 | } | |
21090 | Py_INCREF(Py_None); resultobj = Py_None; | |
21091 | return resultobj; | |
21092 | fail: | |
21093 | return NULL; | |
21094 | } | |
21095 | ||
21096 | ||
21097 | static PyObject *_wrap_PyDivisionShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
21098 | PyObject *resultobj; | |
21099 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21100 | PyObject * obj0 = 0 ; | |
21101 | char *kwnames[] = { | |
21102 | (char *) "self", NULL | |
21103 | }; | |
21104 | ||
21105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
21106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21108 | { | |
21109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21110 | (arg1)->base_OnDelete(); | |
21111 | ||
21112 | wxPyEndAllowThreads(__tstate); | |
21113 | if (PyErr_Occurred()) SWIG_fail; | |
21114 | } | |
21115 | Py_INCREF(Py_None); resultobj = Py_None; | |
21116 | return resultobj; | |
21117 | fail: | |
21118 | return NULL; | |
21119 | } | |
21120 | ||
21121 | ||
21122 | static PyObject *_wrap_PyDivisionShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
21123 | PyObject *resultobj; | |
21124 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21125 | wxDC *arg2 = 0 ; | |
21126 | PyObject * obj0 = 0 ; | |
21127 | PyObject * obj1 = 0 ; | |
21128 | char *kwnames[] = { | |
21129 | (char *) "self",(char *) "dc", NULL | |
21130 | }; | |
21131 | ||
21132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
21133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21135 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21136 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21137 | SWIG_fail; | |
21138 | if (arg2 == NULL) { | |
21139 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21140 | SWIG_fail; | |
21141 | } | |
21142 | { | |
21143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21144 | (arg1)->base_OnDraw(*arg2); | |
21145 | ||
21146 | wxPyEndAllowThreads(__tstate); | |
21147 | if (PyErr_Occurred()) SWIG_fail; | |
21148 | } | |
21149 | Py_INCREF(Py_None); resultobj = Py_None; | |
21150 | return resultobj; | |
21151 | fail: | |
21152 | return NULL; | |
21153 | } | |
21154 | ||
21155 | ||
21156 | static PyObject *_wrap_PyDivisionShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
21157 | PyObject *resultobj; | |
21158 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21159 | wxDC *arg2 = 0 ; | |
21160 | PyObject * obj0 = 0 ; | |
21161 | PyObject * obj1 = 0 ; | |
21162 | char *kwnames[] = { | |
21163 | (char *) "self",(char *) "dc", NULL | |
21164 | }; | |
21165 | ||
21166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
21167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21169 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21170 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21171 | SWIG_fail; | |
21172 | if (arg2 == NULL) { | |
21173 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21174 | SWIG_fail; | |
21175 | } | |
21176 | { | |
21177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21178 | (arg1)->base_OnDrawContents(*arg2); | |
21179 | ||
21180 | wxPyEndAllowThreads(__tstate); | |
21181 | if (PyErr_Occurred()) SWIG_fail; | |
21182 | } | |
21183 | Py_INCREF(Py_None); resultobj = Py_None; | |
21184 | return resultobj; | |
21185 | fail: | |
21186 | return NULL; | |
21187 | } | |
21188 | ||
21189 | ||
21190 | static PyObject *_wrap_PyDivisionShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
21191 | PyObject *resultobj; | |
21192 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21193 | wxDC *arg2 = 0 ; | |
21194 | bool arg3 = (bool) FALSE ; | |
21195 | PyObject * obj0 = 0 ; | |
21196 | PyObject * obj1 = 0 ; | |
21197 | PyObject * obj2 = 0 ; | |
21198 | char *kwnames[] = { | |
21199 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
21200 | }; | |
21201 | ||
21202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDivisionShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21205 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21206 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21207 | SWIG_fail; | |
21208 | if (arg2 == NULL) { | |
21209 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21210 | SWIG_fail; | |
21211 | } | |
21212 | if (obj2) { | |
21213 | arg3 = (bool)SWIG_As_bool(obj2); | |
21214 | if (PyErr_Occurred()) SWIG_fail; | |
21215 | } | |
21216 | { | |
21217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21218 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
21219 | ||
21220 | wxPyEndAllowThreads(__tstate); | |
21221 | if (PyErr_Occurred()) SWIG_fail; | |
21222 | } | |
21223 | Py_INCREF(Py_None); resultobj = Py_None; | |
21224 | return resultobj; | |
21225 | fail: | |
21226 | return NULL; | |
21227 | } | |
21228 | ||
21229 | ||
21230 | static PyObject *_wrap_PyDivisionShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
21231 | PyObject *resultobj; | |
21232 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21233 | wxDC *arg2 = 0 ; | |
21234 | PyObject * obj0 = 0 ; | |
21235 | PyObject * obj1 = 0 ; | |
21236 | char *kwnames[] = { | |
21237 | (char *) "self",(char *) "dc", NULL | |
21238 | }; | |
21239 | ||
21240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
21241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21243 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21244 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21245 | SWIG_fail; | |
21246 | if (arg2 == NULL) { | |
21247 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21248 | SWIG_fail; | |
21249 | } | |
21250 | { | |
21251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21252 | (arg1)->base_OnMoveLinks(*arg2); | |
21253 | ||
21254 | wxPyEndAllowThreads(__tstate); | |
21255 | if (PyErr_Occurred()) SWIG_fail; | |
21256 | } | |
21257 | Py_INCREF(Py_None); resultobj = Py_None; | |
21258 | return resultobj; | |
21259 | fail: | |
21260 | return NULL; | |
21261 | } | |
21262 | ||
21263 | ||
21264 | static PyObject *_wrap_PyDivisionShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
21265 | PyObject *resultobj; | |
21266 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21267 | wxDC *arg2 = 0 ; | |
21268 | PyObject * obj0 = 0 ; | |
21269 | PyObject * obj1 = 0 ; | |
21270 | char *kwnames[] = { | |
21271 | (char *) "self",(char *) "dc", NULL | |
21272 | }; | |
21273 | ||
21274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
21275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21277 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21278 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21279 | SWIG_fail; | |
21280 | if (arg2 == NULL) { | |
21281 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21282 | SWIG_fail; | |
21283 | } | |
21284 | { | |
21285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21286 | (arg1)->base_OnErase(*arg2); | |
21287 | ||
21288 | wxPyEndAllowThreads(__tstate); | |
21289 | if (PyErr_Occurred()) SWIG_fail; | |
21290 | } | |
21291 | Py_INCREF(Py_None); resultobj = Py_None; | |
21292 | return resultobj; | |
21293 | fail: | |
21294 | return NULL; | |
21295 | } | |
21296 | ||
21297 | ||
21298 | static PyObject *_wrap_PyDivisionShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
21299 | PyObject *resultobj; | |
21300 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21301 | wxDC *arg2 = 0 ; | |
21302 | PyObject * obj0 = 0 ; | |
21303 | PyObject * obj1 = 0 ; | |
21304 | char *kwnames[] = { | |
21305 | (char *) "self",(char *) "dc", NULL | |
21306 | }; | |
21307 | ||
21308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
21309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21311 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21312 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21313 | SWIG_fail; | |
21314 | if (arg2 == NULL) { | |
21315 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21316 | SWIG_fail; | |
21317 | } | |
21318 | { | |
21319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21320 | (arg1)->base_OnEraseContents(*arg2); | |
21321 | ||
21322 | wxPyEndAllowThreads(__tstate); | |
21323 | if (PyErr_Occurred()) SWIG_fail; | |
21324 | } | |
21325 | Py_INCREF(Py_None); resultobj = Py_None; | |
21326 | return resultobj; | |
21327 | fail: | |
21328 | return NULL; | |
21329 | } | |
21330 | ||
21331 | ||
21332 | static PyObject *_wrap_PyDivisionShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
21333 | PyObject *resultobj; | |
21334 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21335 | wxDC *arg2 = 0 ; | |
21336 | PyObject * obj0 = 0 ; | |
21337 | PyObject * obj1 = 0 ; | |
21338 | char *kwnames[] = { | |
21339 | (char *) "self",(char *) "dc", NULL | |
21340 | }; | |
21341 | ||
21342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
21343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21346 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21347 | SWIG_fail; | |
21348 | if (arg2 == NULL) { | |
21349 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21350 | SWIG_fail; | |
21351 | } | |
21352 | { | |
21353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21354 | (arg1)->base_OnHighlight(*arg2); | |
21355 | ||
21356 | wxPyEndAllowThreads(__tstate); | |
21357 | if (PyErr_Occurred()) SWIG_fail; | |
21358 | } | |
21359 | Py_INCREF(Py_None); resultobj = Py_None; | |
21360 | return resultobj; | |
21361 | fail: | |
21362 | return NULL; | |
21363 | } | |
21364 | ||
21365 | ||
21366 | static PyObject *_wrap_PyDivisionShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
21367 | PyObject *resultobj; | |
21368 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21369 | double arg2 ; | |
21370 | double arg3 ; | |
21371 | int arg4 = (int) 0 ; | |
21372 | int arg5 = (int) 0 ; | |
21373 | PyObject * obj0 = 0 ; | |
21374 | PyObject * obj1 = 0 ; | |
21375 | PyObject * obj2 = 0 ; | |
21376 | PyObject * obj3 = 0 ; | |
21377 | PyObject * obj4 = 0 ; | |
21378 | char *kwnames[] = { | |
21379 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21380 | }; | |
21381 | ||
21382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21385 | arg2 = (double)SWIG_As_double(obj1); | |
21386 | if (PyErr_Occurred()) SWIG_fail; | |
21387 | arg3 = (double)SWIG_As_double(obj2); | |
21388 | if (PyErr_Occurred()) SWIG_fail; | |
21389 | if (obj3) { | |
21390 | arg4 = (int)SWIG_As_int(obj3); | |
21391 | if (PyErr_Occurred()) SWIG_fail; | |
21392 | } | |
21393 | if (obj4) { | |
21394 | arg5 = (int)SWIG_As_int(obj4); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | } | |
21397 | { | |
21398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21399 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
21400 | ||
21401 | wxPyEndAllowThreads(__tstate); | |
21402 | if (PyErr_Occurred()) SWIG_fail; | |
21403 | } | |
21404 | Py_INCREF(Py_None); resultobj = Py_None; | |
21405 | return resultobj; | |
21406 | fail: | |
21407 | return NULL; | |
21408 | } | |
21409 | ||
21410 | ||
21411 | static PyObject *_wrap_PyDivisionShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
21412 | PyObject *resultobj; | |
21413 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21414 | double arg2 ; | |
21415 | double arg3 ; | |
21416 | int arg4 = (int) 0 ; | |
21417 | int arg5 = (int) 0 ; | |
21418 | PyObject * obj0 = 0 ; | |
21419 | PyObject * obj1 = 0 ; | |
21420 | PyObject * obj2 = 0 ; | |
21421 | PyObject * obj3 = 0 ; | |
21422 | PyObject * obj4 = 0 ; | |
21423 | char *kwnames[] = { | |
21424 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21425 | }; | |
21426 | ||
21427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21430 | arg2 = (double)SWIG_As_double(obj1); | |
21431 | if (PyErr_Occurred()) SWIG_fail; | |
21432 | arg3 = (double)SWIG_As_double(obj2); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | if (obj3) { | |
21435 | arg4 = (int)SWIG_As_int(obj3); | |
21436 | if (PyErr_Occurred()) SWIG_fail; | |
21437 | } | |
21438 | if (obj4) { | |
21439 | arg5 = (int)SWIG_As_int(obj4); | |
21440 | if (PyErr_Occurred()) SWIG_fail; | |
21441 | } | |
21442 | { | |
21443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21444 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
21445 | ||
21446 | wxPyEndAllowThreads(__tstate); | |
21447 | if (PyErr_Occurred()) SWIG_fail; | |
21448 | } | |
21449 | Py_INCREF(Py_None); resultobj = Py_None; | |
21450 | return resultobj; | |
21451 | fail: | |
21452 | return NULL; | |
21453 | } | |
21454 | ||
21455 | ||
21456 | static PyObject *_wrap_PyDivisionShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
21457 | PyObject *resultobj; | |
21458 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21459 | double arg2 ; | |
21460 | double arg3 ; | |
21461 | int arg4 = (int) 0 ; | |
21462 | int arg5 = (int) 0 ; | |
21463 | PyObject * obj0 = 0 ; | |
21464 | PyObject * obj1 = 0 ; | |
21465 | PyObject * obj2 = 0 ; | |
21466 | PyObject * obj3 = 0 ; | |
21467 | PyObject * obj4 = 0 ; | |
21468 | char *kwnames[] = { | |
21469 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21470 | }; | |
21471 | ||
21472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21475 | arg2 = (double)SWIG_As_double(obj1); | |
21476 | if (PyErr_Occurred()) SWIG_fail; | |
21477 | arg3 = (double)SWIG_As_double(obj2); | |
21478 | if (PyErr_Occurred()) SWIG_fail; | |
21479 | if (obj3) { | |
21480 | arg4 = (int)SWIG_As_int(obj3); | |
21481 | if (PyErr_Occurred()) SWIG_fail; | |
21482 | } | |
21483 | if (obj4) { | |
21484 | arg5 = (int)SWIG_As_int(obj4); | |
21485 | if (PyErr_Occurred()) SWIG_fail; | |
21486 | } | |
21487 | { | |
21488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21489 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
21490 | ||
21491 | wxPyEndAllowThreads(__tstate); | |
21492 | if (PyErr_Occurred()) SWIG_fail; | |
21493 | } | |
21494 | Py_INCREF(Py_None); resultobj = Py_None; | |
21495 | return resultobj; | |
21496 | fail: | |
21497 | return NULL; | |
21498 | } | |
21499 | ||
21500 | ||
21501 | static PyObject *_wrap_PyDivisionShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
21502 | PyObject *resultobj; | |
21503 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21504 | double arg2 ; | |
21505 | double arg3 ; | |
21506 | PyObject * obj0 = 0 ; | |
21507 | PyObject * obj1 = 0 ; | |
21508 | PyObject * obj2 = 0 ; | |
21509 | char *kwnames[] = { | |
21510 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21511 | }; | |
21512 | ||
21513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21516 | arg2 = (double)SWIG_As_double(obj1); | |
21517 | if (PyErr_Occurred()) SWIG_fail; | |
21518 | arg3 = (double)SWIG_As_double(obj2); | |
21519 | if (PyErr_Occurred()) SWIG_fail; | |
21520 | { | |
21521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21522 | (arg1)->base_OnSize(arg2,arg3); | |
21523 | ||
21524 | wxPyEndAllowThreads(__tstate); | |
21525 | if (PyErr_Occurred()) SWIG_fail; | |
21526 | } | |
21527 | Py_INCREF(Py_None); resultobj = Py_None; | |
21528 | return resultobj; | |
21529 | fail: | |
21530 | return NULL; | |
21531 | } | |
21532 | ||
21533 | ||
21534 | static PyObject *_wrap_PyDivisionShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
21535 | PyObject *resultobj; | |
21536 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21537 | wxDC *arg2 = 0 ; | |
21538 | double arg3 ; | |
21539 | double arg4 ; | |
21540 | double arg5 ; | |
21541 | double arg6 ; | |
21542 | bool arg7 = (bool) true ; | |
21543 | bool result; | |
21544 | PyObject * obj0 = 0 ; | |
21545 | PyObject * obj1 = 0 ; | |
21546 | PyObject * obj2 = 0 ; | |
21547 | PyObject * obj3 = 0 ; | |
21548 | PyObject * obj4 = 0 ; | |
21549 | PyObject * obj5 = 0 ; | |
21550 | PyObject * obj6 = 0 ; | |
21551 | char *kwnames[] = { | |
21552 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
21553 | }; | |
21554 | ||
21555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDivisionShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21560 | SWIG_fail; | |
21561 | if (arg2 == NULL) { | |
21562 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21563 | SWIG_fail; | |
21564 | } | |
21565 | arg3 = (double)SWIG_As_double(obj2); | |
21566 | if (PyErr_Occurred()) SWIG_fail; | |
21567 | arg4 = (double)SWIG_As_double(obj3); | |
21568 | if (PyErr_Occurred()) SWIG_fail; | |
21569 | arg5 = (double)SWIG_As_double(obj4); | |
21570 | if (PyErr_Occurred()) SWIG_fail; | |
21571 | arg6 = (double)SWIG_As_double(obj5); | |
21572 | if (PyErr_Occurred()) SWIG_fail; | |
21573 | if (obj6) { | |
21574 | arg7 = (bool)SWIG_As_bool(obj6); | |
21575 | if (PyErr_Occurred()) SWIG_fail; | |
21576 | } | |
21577 | { | |
21578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21579 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
21580 | ||
21581 | wxPyEndAllowThreads(__tstate); | |
21582 | if (PyErr_Occurred()) SWIG_fail; | |
21583 | } | |
21584 | { | |
21585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21586 | } | |
21587 | return resultobj; | |
21588 | fail: | |
21589 | return NULL; | |
21590 | } | |
21591 | ||
21592 | ||
21593 | static PyObject *_wrap_PyDivisionShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
21594 | PyObject *resultobj; | |
21595 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21596 | wxDC *arg2 = 0 ; | |
21597 | double arg3 ; | |
21598 | double arg4 ; | |
21599 | double arg5 ; | |
21600 | double arg6 ; | |
21601 | bool arg7 = (bool) true ; | |
21602 | PyObject * obj0 = 0 ; | |
21603 | PyObject * obj1 = 0 ; | |
21604 | PyObject * obj2 = 0 ; | |
21605 | PyObject * obj3 = 0 ; | |
21606 | PyObject * obj4 = 0 ; | |
21607 | PyObject * obj5 = 0 ; | |
21608 | PyObject * obj6 = 0 ; | |
21609 | char *kwnames[] = { | |
21610 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
21611 | }; | |
21612 | ||
21613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDivisionShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21616 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21617 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21618 | SWIG_fail; | |
21619 | if (arg2 == NULL) { | |
21620 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21621 | SWIG_fail; | |
21622 | } | |
21623 | arg3 = (double)SWIG_As_double(obj2); | |
21624 | if (PyErr_Occurred()) SWIG_fail; | |
21625 | arg4 = (double)SWIG_As_double(obj3); | |
21626 | if (PyErr_Occurred()) SWIG_fail; | |
21627 | arg5 = (double)SWIG_As_double(obj4); | |
21628 | if (PyErr_Occurred()) SWIG_fail; | |
21629 | arg6 = (double)SWIG_As_double(obj5); | |
21630 | if (PyErr_Occurred()) SWIG_fail; | |
21631 | if (obj6) { | |
21632 | arg7 = (bool)SWIG_As_bool(obj6); | |
21633 | if (PyErr_Occurred()) SWIG_fail; | |
21634 | } | |
21635 | { | |
21636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21637 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
21638 | ||
21639 | wxPyEndAllowThreads(__tstate); | |
21640 | if (PyErr_Occurred()) SWIG_fail; | |
21641 | } | |
21642 | Py_INCREF(Py_None); resultobj = Py_None; | |
21643 | return resultobj; | |
21644 | fail: | |
21645 | return NULL; | |
21646 | } | |
21647 | ||
21648 | ||
21649 | static PyObject *_wrap_PyDivisionShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
21650 | PyObject *resultobj; | |
21651 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21652 | bool arg2 ; | |
21653 | double arg3 ; | |
21654 | double arg4 ; | |
21655 | int arg5 = (int) 0 ; | |
21656 | int arg6 = (int) 0 ; | |
21657 | PyObject * obj0 = 0 ; | |
21658 | PyObject * obj1 = 0 ; | |
21659 | PyObject * obj2 = 0 ; | |
21660 | PyObject * obj3 = 0 ; | |
21661 | PyObject * obj4 = 0 ; | |
21662 | PyObject * obj5 = 0 ; | |
21663 | char *kwnames[] = { | |
21664 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21665 | }; | |
21666 | ||
21667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDivisionShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
21668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21670 | arg2 = (bool)SWIG_As_bool(obj1); | |
21671 | if (PyErr_Occurred()) SWIG_fail; | |
21672 | arg3 = (double)SWIG_As_double(obj2); | |
21673 | if (PyErr_Occurred()) SWIG_fail; | |
21674 | arg4 = (double)SWIG_As_double(obj3); | |
21675 | if (PyErr_Occurred()) SWIG_fail; | |
21676 | if (obj4) { | |
21677 | arg5 = (int)SWIG_As_int(obj4); | |
21678 | if (PyErr_Occurred()) SWIG_fail; | |
21679 | } | |
21680 | if (obj5) { | |
21681 | arg6 = (int)SWIG_As_int(obj5); | |
21682 | if (PyErr_Occurred()) SWIG_fail; | |
21683 | } | |
21684 | { | |
21685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21686 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
21687 | ||
21688 | wxPyEndAllowThreads(__tstate); | |
21689 | if (PyErr_Occurred()) SWIG_fail; | |
21690 | } | |
21691 | Py_INCREF(Py_None); resultobj = Py_None; | |
21692 | return resultobj; | |
21693 | fail: | |
21694 | return NULL; | |
21695 | } | |
21696 | ||
21697 | ||
21698 | static PyObject *_wrap_PyDivisionShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
21699 | PyObject *resultobj; | |
21700 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21701 | double arg2 ; | |
21702 | double arg3 ; | |
21703 | int arg4 = (int) 0 ; | |
21704 | int arg5 = (int) 0 ; | |
21705 | PyObject * obj0 = 0 ; | |
21706 | PyObject * obj1 = 0 ; | |
21707 | PyObject * obj2 = 0 ; | |
21708 | PyObject * obj3 = 0 ; | |
21709 | PyObject * obj4 = 0 ; | |
21710 | char *kwnames[] = { | |
21711 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21712 | }; | |
21713 | ||
21714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21717 | arg2 = (double)SWIG_As_double(obj1); | |
21718 | if (PyErr_Occurred()) SWIG_fail; | |
21719 | arg3 = (double)SWIG_As_double(obj2); | |
21720 | if (PyErr_Occurred()) SWIG_fail; | |
21721 | if (obj3) { | |
21722 | arg4 = (int)SWIG_As_int(obj3); | |
21723 | if (PyErr_Occurred()) SWIG_fail; | |
21724 | } | |
21725 | if (obj4) { | |
21726 | arg5 = (int)SWIG_As_int(obj4); | |
21727 | if (PyErr_Occurred()) SWIG_fail; | |
21728 | } | |
21729 | { | |
21730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21731 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
21732 | ||
21733 | wxPyEndAllowThreads(__tstate); | |
21734 | if (PyErr_Occurred()) SWIG_fail; | |
21735 | } | |
21736 | Py_INCREF(Py_None); resultobj = Py_None; | |
21737 | return resultobj; | |
21738 | fail: | |
21739 | return NULL; | |
21740 | } | |
21741 | ||
21742 | ||
21743 | static PyObject *_wrap_PyDivisionShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
21744 | PyObject *resultobj; | |
21745 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21746 | double arg2 ; | |
21747 | double arg3 ; | |
21748 | int arg4 = (int) 0 ; | |
21749 | int arg5 = (int) 0 ; | |
21750 | PyObject * obj0 = 0 ; | |
21751 | PyObject * obj1 = 0 ; | |
21752 | PyObject * obj2 = 0 ; | |
21753 | PyObject * obj3 = 0 ; | |
21754 | PyObject * obj4 = 0 ; | |
21755 | char *kwnames[] = { | |
21756 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21757 | }; | |
21758 | ||
21759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21762 | arg2 = (double)SWIG_As_double(obj1); | |
21763 | if (PyErr_Occurred()) SWIG_fail; | |
21764 | arg3 = (double)SWIG_As_double(obj2); | |
21765 | if (PyErr_Occurred()) SWIG_fail; | |
21766 | if (obj3) { | |
21767 | arg4 = (int)SWIG_As_int(obj3); | |
21768 | if (PyErr_Occurred()) SWIG_fail; | |
21769 | } | |
21770 | if (obj4) { | |
21771 | arg5 = (int)SWIG_As_int(obj4); | |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
21773 | } | |
21774 | { | |
21775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21776 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
21777 | ||
21778 | wxPyEndAllowThreads(__tstate); | |
21779 | if (PyErr_Occurred()) SWIG_fail; | |
21780 | } | |
21781 | Py_INCREF(Py_None); resultobj = Py_None; | |
21782 | return resultobj; | |
21783 | fail: | |
21784 | return NULL; | |
21785 | } | |
21786 | ||
21787 | ||
21788 | static PyObject *_wrap_PyDivisionShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
21789 | PyObject *resultobj; | |
21790 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21791 | bool arg2 ; | |
21792 | double arg3 ; | |
21793 | double arg4 ; | |
21794 | int arg5 = (int) 0 ; | |
21795 | int arg6 = (int) 0 ; | |
21796 | PyObject * obj0 = 0 ; | |
21797 | PyObject * obj1 = 0 ; | |
21798 | PyObject * obj2 = 0 ; | |
21799 | PyObject * obj3 = 0 ; | |
21800 | PyObject * obj4 = 0 ; | |
21801 | PyObject * obj5 = 0 ; | |
21802 | char *kwnames[] = { | |
21803 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21804 | }; | |
21805 | ||
21806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDivisionShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
21807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21809 | arg2 = (bool)SWIG_As_bool(obj1); | |
21810 | if (PyErr_Occurred()) SWIG_fail; | |
21811 | arg3 = (double)SWIG_As_double(obj2); | |
21812 | if (PyErr_Occurred()) SWIG_fail; | |
21813 | arg4 = (double)SWIG_As_double(obj3); | |
21814 | if (PyErr_Occurred()) SWIG_fail; | |
21815 | if (obj4) { | |
21816 | arg5 = (int)SWIG_As_int(obj4); | |
21817 | if (PyErr_Occurred()) SWIG_fail; | |
21818 | } | |
21819 | if (obj5) { | |
21820 | arg6 = (int)SWIG_As_int(obj5); | |
21821 | if (PyErr_Occurred()) SWIG_fail; | |
21822 | } | |
21823 | { | |
21824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21825 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
21826 | ||
21827 | wxPyEndAllowThreads(__tstate); | |
21828 | if (PyErr_Occurred()) SWIG_fail; | |
21829 | } | |
21830 | Py_INCREF(Py_None); resultobj = Py_None; | |
21831 | return resultobj; | |
21832 | fail: | |
21833 | return NULL; | |
21834 | } | |
21835 | ||
21836 | ||
21837 | static PyObject *_wrap_PyDivisionShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
21838 | PyObject *resultobj; | |
21839 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21840 | double arg2 ; | |
21841 | double arg3 ; | |
21842 | int arg4 = (int) 0 ; | |
21843 | int arg5 = (int) 0 ; | |
21844 | PyObject * obj0 = 0 ; | |
21845 | PyObject * obj1 = 0 ; | |
21846 | PyObject * obj2 = 0 ; | |
21847 | PyObject * obj3 = 0 ; | |
21848 | PyObject * obj4 = 0 ; | |
21849 | char *kwnames[] = { | |
21850 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21851 | }; | |
21852 | ||
21853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21856 | arg2 = (double)SWIG_As_double(obj1); | |
21857 | if (PyErr_Occurred()) SWIG_fail; | |
21858 | arg3 = (double)SWIG_As_double(obj2); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | if (obj3) { | |
21861 | arg4 = (int)SWIG_As_int(obj3); | |
21862 | if (PyErr_Occurred()) SWIG_fail; | |
21863 | } | |
21864 | if (obj4) { | |
21865 | arg5 = (int)SWIG_As_int(obj4); | |
21866 | if (PyErr_Occurred()) SWIG_fail; | |
21867 | } | |
21868 | { | |
21869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21870 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
21871 | ||
21872 | wxPyEndAllowThreads(__tstate); | |
21873 | if (PyErr_Occurred()) SWIG_fail; | |
21874 | } | |
21875 | Py_INCREF(Py_None); resultobj = Py_None; | |
21876 | return resultobj; | |
21877 | fail: | |
21878 | return NULL; | |
21879 | } | |
21880 | ||
21881 | ||
21882 | static PyObject *_wrap_PyDivisionShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
21883 | PyObject *resultobj; | |
21884 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21885 | double arg2 ; | |
21886 | double arg3 ; | |
21887 | int arg4 = (int) 0 ; | |
21888 | int arg5 = (int) 0 ; | |
21889 | PyObject * obj0 = 0 ; | |
21890 | PyObject * obj1 = 0 ; | |
21891 | PyObject * obj2 = 0 ; | |
21892 | PyObject * obj3 = 0 ; | |
21893 | PyObject * obj4 = 0 ; | |
21894 | char *kwnames[] = { | |
21895 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21896 | }; | |
21897 | ||
21898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21901 | arg2 = (double)SWIG_As_double(obj1); | |
21902 | if (PyErr_Occurred()) SWIG_fail; | |
21903 | arg3 = (double)SWIG_As_double(obj2); | |
21904 | if (PyErr_Occurred()) SWIG_fail; | |
21905 | if (obj3) { | |
21906 | arg4 = (int)SWIG_As_int(obj3); | |
21907 | if (PyErr_Occurred()) SWIG_fail; | |
21908 | } | |
21909 | if (obj4) { | |
21910 | arg5 = (int)SWIG_As_int(obj4); | |
21911 | if (PyErr_Occurred()) SWIG_fail; | |
21912 | } | |
21913 | { | |
21914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21915 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
21916 | ||
21917 | wxPyEndAllowThreads(__tstate); | |
21918 | if (PyErr_Occurred()) SWIG_fail; | |
21919 | } | |
21920 | Py_INCREF(Py_None); resultobj = Py_None; | |
21921 | return resultobj; | |
21922 | fail: | |
21923 | return NULL; | |
21924 | } | |
21925 | ||
21926 | ||
21927 | static PyObject *_wrap_PyDivisionShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
21928 | PyObject *resultobj; | |
21929 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21930 | wxDC *arg2 = 0 ; | |
21931 | double arg3 ; | |
21932 | double arg4 ; | |
21933 | double arg5 ; | |
21934 | double arg6 ; | |
21935 | PyObject * obj0 = 0 ; | |
21936 | PyObject * obj1 = 0 ; | |
21937 | PyObject * obj2 = 0 ; | |
21938 | PyObject * obj3 = 0 ; | |
21939 | PyObject * obj4 = 0 ; | |
21940 | PyObject * obj5 = 0 ; | |
21941 | char *kwnames[] = { | |
21942 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
21943 | }; | |
21944 | ||
21945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyDivisionShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
21946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21950 | SWIG_fail; | |
21951 | if (arg2 == NULL) { | |
21952 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21953 | SWIG_fail; | |
21954 | } | |
21955 | arg3 = (double)SWIG_As_double(obj2); | |
21956 | if (PyErr_Occurred()) SWIG_fail; | |
21957 | arg4 = (double)SWIG_As_double(obj3); | |
21958 | if (PyErr_Occurred()) SWIG_fail; | |
21959 | arg5 = (double)SWIG_As_double(obj4); | |
21960 | if (PyErr_Occurred()) SWIG_fail; | |
21961 | arg6 = (double)SWIG_As_double(obj5); | |
21962 | if (PyErr_Occurred()) SWIG_fail; | |
21963 | { | |
21964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21965 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
21966 | ||
21967 | wxPyEndAllowThreads(__tstate); | |
21968 | if (PyErr_Occurred()) SWIG_fail; | |
21969 | } | |
21970 | Py_INCREF(Py_None); resultobj = Py_None; | |
21971 | return resultobj; | |
21972 | fail: | |
21973 | return NULL; | |
21974 | } | |
21975 | ||
21976 | ||
21977 | static PyObject *_wrap_PyDivisionShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
21978 | PyObject *resultobj; | |
21979 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21980 | wxDC *arg2 = 0 ; | |
21981 | PyObject * obj0 = 0 ; | |
21982 | PyObject * obj1 = 0 ; | |
21983 | char *kwnames[] = { | |
21984 | (char *) "self",(char *) "dc", NULL | |
21985 | }; | |
21986 | ||
21987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
21988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
21989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21990 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21991 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21992 | SWIG_fail; | |
21993 | if (arg2 == NULL) { | |
21994 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21995 | SWIG_fail; | |
21996 | } | |
21997 | { | |
21998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21999 | (arg1)->base_OnDrawControlPoints(*arg2); | |
22000 | ||
22001 | wxPyEndAllowThreads(__tstate); | |
22002 | if (PyErr_Occurred()) SWIG_fail; | |
22003 | } | |
22004 | Py_INCREF(Py_None); resultobj = Py_None; | |
22005 | return resultobj; | |
22006 | fail: | |
22007 | return NULL; | |
22008 | } | |
22009 | ||
22010 | ||
22011 | static PyObject *_wrap_PyDivisionShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
22012 | PyObject *resultobj; | |
22013 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22014 | wxDC *arg2 = 0 ; | |
22015 | PyObject * obj0 = 0 ; | |
22016 | PyObject * obj1 = 0 ; | |
22017 | char *kwnames[] = { | |
22018 | (char *) "self",(char *) "dc", NULL | |
22019 | }; | |
22020 | ||
22021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
22022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
22023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22025 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22026 | SWIG_fail; | |
22027 | if (arg2 == NULL) { | |
22028 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22029 | SWIG_fail; | |
22030 | } | |
22031 | { | |
22032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22033 | (arg1)->base_OnEraseControlPoints(*arg2); | |
22034 | ||
22035 | wxPyEndAllowThreads(__tstate); | |
22036 | if (PyErr_Occurred()) SWIG_fail; | |
22037 | } | |
22038 | Py_INCREF(Py_None); resultobj = Py_None; | |
22039 | return resultobj; | |
22040 | fail: | |
22041 | return NULL; | |
22042 | } | |
22043 | ||
22044 | ||
22045 | static PyObject *_wrap_PyDivisionShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
22046 | PyObject *resultobj; | |
22047 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22048 | wxDC *arg2 = 0 ; | |
22049 | bool arg3 = (bool) true ; | |
22050 | PyObject * obj0 = 0 ; | |
22051 | PyObject * obj1 = 0 ; | |
22052 | PyObject * obj2 = 0 ; | |
22053 | char *kwnames[] = { | |
22054 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
22055 | }; | |
22056 | ||
22057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDivisionShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
22059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22060 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22061 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22062 | SWIG_fail; | |
22063 | if (arg2 == NULL) { | |
22064 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22065 | SWIG_fail; | |
22066 | } | |
22067 | if (obj2) { | |
22068 | arg3 = (bool)SWIG_As_bool(obj2); | |
22069 | if (PyErr_Occurred()) SWIG_fail; | |
22070 | } | |
22071 | { | |
22072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22073 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
22074 | ||
22075 | wxPyEndAllowThreads(__tstate); | |
22076 | if (PyErr_Occurred()) SWIG_fail; | |
22077 | } | |
22078 | Py_INCREF(Py_None); resultobj = Py_None; | |
22079 | return resultobj; | |
22080 | fail: | |
22081 | return NULL; | |
22082 | } | |
22083 | ||
22084 | ||
22085 | static PyObject *_wrap_PyDivisionShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
22086 | PyObject *resultobj; | |
22087 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22088 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
22089 | bool arg3 ; | |
22090 | double arg4 ; | |
22091 | double arg5 ; | |
22092 | int arg6 = (int) 0 ; | |
22093 | int arg7 = (int) 0 ; | |
22094 | PyObject * obj0 = 0 ; | |
22095 | PyObject * obj1 = 0 ; | |
22096 | PyObject * obj2 = 0 ; | |
22097 | PyObject * obj3 = 0 ; | |
22098 | PyObject * obj4 = 0 ; | |
22099 | PyObject * obj5 = 0 ; | |
22100 | PyObject * obj6 = 0 ; | |
22101 | char *kwnames[] = { | |
22102 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22103 | }; | |
22104 | ||
22105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyDivisionShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
22107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22108 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
22109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22110 | arg3 = (bool)SWIG_As_bool(obj2); | |
22111 | if (PyErr_Occurred()) SWIG_fail; | |
22112 | arg4 = (double)SWIG_As_double(obj3); | |
22113 | if (PyErr_Occurred()) SWIG_fail; | |
22114 | arg5 = (double)SWIG_As_double(obj4); | |
22115 | if (PyErr_Occurred()) SWIG_fail; | |
22116 | if (obj5) { | |
22117 | arg6 = (int)SWIG_As_int(obj5); | |
22118 | if (PyErr_Occurred()) SWIG_fail; | |
22119 | } | |
22120 | if (obj6) { | |
22121 | arg7 = (int)SWIG_As_int(obj6); | |
22122 | if (PyErr_Occurred()) SWIG_fail; | |
22123 | } | |
22124 | { | |
22125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22126 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
22127 | ||
22128 | wxPyEndAllowThreads(__tstate); | |
22129 | if (PyErr_Occurred()) SWIG_fail; | |
22130 | } | |
22131 | Py_INCREF(Py_None); resultobj = Py_None; | |
22132 | return resultobj; | |
22133 | fail: | |
22134 | return NULL; | |
22135 | } | |
22136 | ||
22137 | ||
22138 | static PyObject *_wrap_PyDivisionShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
22139 | PyObject *resultobj; | |
22140 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22141 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
22142 | double arg3 ; | |
22143 | double arg4 ; | |
22144 | int arg5 = (int) 0 ; | |
22145 | int arg6 = (int) 0 ; | |
22146 | PyObject * obj0 = 0 ; | |
22147 | PyObject * obj1 = 0 ; | |
22148 | PyObject * obj2 = 0 ; | |
22149 | PyObject * obj3 = 0 ; | |
22150 | PyObject * obj4 = 0 ; | |
22151 | PyObject * obj5 = 0 ; | |
22152 | char *kwnames[] = { | |
22153 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22154 | }; | |
22155 | ||
22156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDivisionShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
22158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22159 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
22160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22161 | arg3 = (double)SWIG_As_double(obj2); | |
22162 | if (PyErr_Occurred()) SWIG_fail; | |
22163 | arg4 = (double)SWIG_As_double(obj3); | |
22164 | if (PyErr_Occurred()) SWIG_fail; | |
22165 | if (obj4) { | |
22166 | arg5 = (int)SWIG_As_int(obj4); | |
22167 | if (PyErr_Occurred()) SWIG_fail; | |
22168 | } | |
22169 | if (obj5) { | |
22170 | arg6 = (int)SWIG_As_int(obj5); | |
22171 | if (PyErr_Occurred()) SWIG_fail; | |
22172 | } | |
22173 | { | |
22174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22175 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
22176 | ||
22177 | wxPyEndAllowThreads(__tstate); | |
22178 | if (PyErr_Occurred()) SWIG_fail; | |
22179 | } | |
22180 | Py_INCREF(Py_None); resultobj = Py_None; | |
22181 | return resultobj; | |
22182 | fail: | |
22183 | return NULL; | |
22184 | } | |
22185 | ||
22186 | ||
22187 | static PyObject *_wrap_PyDivisionShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
22188 | PyObject *resultobj; | |
22189 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22190 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
22191 | double arg3 ; | |
22192 | double arg4 ; | |
22193 | int arg5 = (int) 0 ; | |
22194 | int arg6 = (int) 0 ; | |
22195 | PyObject * obj0 = 0 ; | |
22196 | PyObject * obj1 = 0 ; | |
22197 | PyObject * obj2 = 0 ; | |
22198 | PyObject * obj3 = 0 ; | |
22199 | PyObject * obj4 = 0 ; | |
22200 | PyObject * obj5 = 0 ; | |
22201 | char *kwnames[] = { | |
22202 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22203 | }; | |
22204 | ||
22205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDivisionShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
22207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22208 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
22209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22210 | arg3 = (double)SWIG_As_double(obj2); | |
22211 | if (PyErr_Occurred()) SWIG_fail; | |
22212 | arg4 = (double)SWIG_As_double(obj3); | |
22213 | if (PyErr_Occurred()) SWIG_fail; | |
22214 | if (obj4) { | |
22215 | arg5 = (int)SWIG_As_int(obj4); | |
22216 | if (PyErr_Occurred()) SWIG_fail; | |
22217 | } | |
22218 | if (obj5) { | |
22219 | arg6 = (int)SWIG_As_int(obj5); | |
22220 | if (PyErr_Occurred()) SWIG_fail; | |
22221 | } | |
22222 | { | |
22223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22224 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
22225 | ||
22226 | wxPyEndAllowThreads(__tstate); | |
22227 | if (PyErr_Occurred()) SWIG_fail; | |
22228 | } | |
22229 | Py_INCREF(Py_None); resultobj = Py_None; | |
22230 | return resultobj; | |
22231 | fail: | |
22232 | return NULL; | |
22233 | } | |
22234 | ||
22235 | ||
22236 | static PyObject *_wrap_PyDivisionShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
22237 | PyObject *resultobj; | |
22238 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22239 | double arg2 ; | |
22240 | double arg3 ; | |
22241 | PyObject * obj0 = 0 ; | |
22242 | PyObject * obj1 = 0 ; | |
22243 | PyObject * obj2 = 0 ; | |
22244 | char *kwnames[] = { | |
22245 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22246 | }; | |
22247 | ||
22248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
22250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22251 | arg2 = (double)SWIG_As_double(obj1); | |
22252 | if (PyErr_Occurred()) SWIG_fail; | |
22253 | arg3 = (double)SWIG_As_double(obj2); | |
22254 | if (PyErr_Occurred()) SWIG_fail; | |
22255 | { | |
22256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22257 | (arg1)->base_OnBeginSize(arg2,arg3); | |
22258 | ||
22259 | wxPyEndAllowThreads(__tstate); | |
22260 | if (PyErr_Occurred()) SWIG_fail; | |
22261 | } | |
22262 | Py_INCREF(Py_None); resultobj = Py_None; | |
22263 | return resultobj; | |
22264 | fail: | |
22265 | return NULL; | |
22266 | } | |
22267 | ||
22268 | ||
22269 | static PyObject *_wrap_PyDivisionShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
22270 | PyObject *resultobj; | |
22271 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22272 | double arg2 ; | |
22273 | double arg3 ; | |
22274 | PyObject * obj0 = 0 ; | |
22275 | PyObject * obj1 = 0 ; | |
22276 | PyObject * obj2 = 0 ; | |
22277 | char *kwnames[] = { | |
22278 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22279 | }; | |
22280 | ||
22281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, | |
22283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22284 | arg2 = (double)SWIG_As_double(obj1); | |
22285 | if (PyErr_Occurred()) SWIG_fail; | |
22286 | arg3 = (double)SWIG_As_double(obj2); | |
22287 | if (PyErr_Occurred()) SWIG_fail; | |
22288 | { | |
22289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22290 | (arg1)->base_OnEndSize(arg2,arg3); | |
22291 | ||
22292 | wxPyEndAllowThreads(__tstate); | |
22293 | if (PyErr_Occurred()) SWIG_fail; | |
22294 | } | |
22295 | Py_INCREF(Py_None); resultobj = Py_None; | |
22296 | return resultobj; | |
22297 | fail: | |
22298 | return NULL; | |
22299 | } | |
22300 | ||
22301 | ||
22302 | static PyObject * PyDivisionShape_swigregister(PyObject *, PyObject *args) { | |
22303 | PyObject *obj; | |
22304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22305 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDivisionShape, obj); | |
22306 | Py_INCREF(obj); | |
22307 | return Py_BuildValue((char *)""); | |
22308 | } | |
22309 | static PyObject *_wrap_new_PyEllipseShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
22310 | PyObject *resultobj; | |
22311 | double arg1 = (double) 0.0 ; | |
22312 | double arg2 = (double) 0.0 ; | |
22313 | wxPyEllipseShape *result; | |
22314 | PyObject * obj0 = 0 ; | |
22315 | PyObject * obj1 = 0 ; | |
22316 | char *kwnames[] = { | |
22317 | (char *) "width",(char *) "height", NULL | |
22318 | }; | |
22319 | ||
22320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEllipseShape",kwnames,&obj0,&obj1)) goto fail; | |
22321 | if (obj0) { | |
22322 | arg1 = (double)SWIG_As_double(obj0); | |
22323 | if (PyErr_Occurred()) SWIG_fail; | |
22324 | } | |
22325 | if (obj1) { | |
22326 | arg2 = (double)SWIG_As_double(obj1); | |
22327 | if (PyErr_Occurred()) SWIG_fail; | |
22328 | } | |
22329 | { | |
22330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22331 | result = (wxPyEllipseShape *)new wxPyEllipseShape(arg1,arg2); | |
22332 | ||
22333 | wxPyEndAllowThreads(__tstate); | |
22334 | if (PyErr_Occurred()) SWIG_fail; | |
22335 | } | |
22336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEllipseShape, 1); | |
22337 | return resultobj; | |
22338 | fail: | |
22339 | return NULL; | |
22340 | } | |
22341 | ||
22342 | ||
22343 | static PyObject *_wrap_PyEllipseShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
22344 | PyObject *resultobj; | |
22345 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22346 | PyObject *arg2 = (PyObject *) 0 ; | |
22347 | PyObject *arg3 = (PyObject *) 0 ; | |
22348 | PyObject * obj0 = 0 ; | |
22349 | PyObject * obj1 = 0 ; | |
22350 | PyObject * obj2 = 0 ; | |
22351 | char *kwnames[] = { | |
22352 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22353 | }; | |
22354 | ||
22355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyEllipseShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22358 | arg2 = obj1; | |
22359 | arg3 = obj2; | |
22360 | { | |
22361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22362 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22363 | ||
22364 | wxPyEndAllowThreads(__tstate); | |
22365 | if (PyErr_Occurred()) SWIG_fail; | |
22366 | } | |
22367 | Py_INCREF(Py_None); resultobj = Py_None; | |
22368 | return resultobj; | |
22369 | fail: | |
22370 | return NULL; | |
22371 | } | |
22372 | ||
22373 | ||
22374 | static PyObject *_wrap_PyEllipseShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
22375 | PyObject *resultobj; | |
22376 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22377 | wxDC *arg2 = 0 ; | |
22378 | PyObject * obj0 = 0 ; | |
22379 | PyObject * obj1 = 0 ; | |
22380 | char *kwnames[] = { | |
22381 | (char *) "self",(char *) "dc", NULL | |
22382 | }; | |
22383 | ||
22384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
22385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22389 | SWIG_fail; | |
22390 | if (arg2 == NULL) { | |
22391 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22392 | SWIG_fail; | |
22393 | } | |
22394 | { | |
22395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22396 | (arg1)->base_OnDraw(*arg2); | |
22397 | ||
22398 | wxPyEndAllowThreads(__tstate); | |
22399 | if (PyErr_Occurred()) SWIG_fail; | |
22400 | } | |
22401 | Py_INCREF(Py_None); resultobj = Py_None; | |
22402 | return resultobj; | |
22403 | fail: | |
22404 | return NULL; | |
22405 | } | |
22406 | ||
22407 | ||
22408 | static PyObject *_wrap_PyEllipseShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
22409 | PyObject *resultobj; | |
22410 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22411 | wxDC *arg2 = 0 ; | |
22412 | PyObject * obj0 = 0 ; | |
22413 | PyObject * obj1 = 0 ; | |
22414 | char *kwnames[] = { | |
22415 | (char *) "self",(char *) "dc", NULL | |
22416 | }; | |
22417 | ||
22418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
22419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22421 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22422 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22423 | SWIG_fail; | |
22424 | if (arg2 == NULL) { | |
22425 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22426 | SWIG_fail; | |
22427 | } | |
22428 | { | |
22429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22430 | (arg1)->base_OnDrawContents(*arg2); | |
22431 | ||
22432 | wxPyEndAllowThreads(__tstate); | |
22433 | if (PyErr_Occurred()) SWIG_fail; | |
22434 | } | |
22435 | Py_INCREF(Py_None); resultobj = Py_None; | |
22436 | return resultobj; | |
22437 | fail: | |
22438 | return NULL; | |
22439 | } | |
22440 | ||
22441 | ||
22442 | static PyObject *_wrap_PyEllipseShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
22443 | PyObject *resultobj; | |
22444 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22445 | wxDC *arg2 = 0 ; | |
22446 | bool arg3 = (bool) FALSE ; | |
22447 | PyObject * obj0 = 0 ; | |
22448 | PyObject * obj1 = 0 ; | |
22449 | PyObject * obj2 = 0 ; | |
22450 | char *kwnames[] = { | |
22451 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
22452 | }; | |
22453 | ||
22454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyEllipseShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22457 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22458 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22459 | SWIG_fail; | |
22460 | if (arg2 == NULL) { | |
22461 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22462 | SWIG_fail; | |
22463 | } | |
22464 | if (obj2) { | |
22465 | arg3 = (bool)SWIG_As_bool(obj2); | |
22466 | if (PyErr_Occurred()) SWIG_fail; | |
22467 | } | |
22468 | { | |
22469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22470 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
22471 | ||
22472 | wxPyEndAllowThreads(__tstate); | |
22473 | if (PyErr_Occurred()) SWIG_fail; | |
22474 | } | |
22475 | Py_INCREF(Py_None); resultobj = Py_None; | |
22476 | return resultobj; | |
22477 | fail: | |
22478 | return NULL; | |
22479 | } | |
22480 | ||
22481 | ||
22482 | static PyObject *_wrap_PyEllipseShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
22483 | PyObject *resultobj; | |
22484 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22485 | wxDC *arg2 = 0 ; | |
22486 | PyObject * obj0 = 0 ; | |
22487 | PyObject * obj1 = 0 ; | |
22488 | char *kwnames[] = { | |
22489 | (char *) "self",(char *) "dc", NULL | |
22490 | }; | |
22491 | ||
22492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
22493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22495 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22496 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22497 | SWIG_fail; | |
22498 | if (arg2 == NULL) { | |
22499 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22500 | SWIG_fail; | |
22501 | } | |
22502 | { | |
22503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22504 | (arg1)->base_OnMoveLinks(*arg2); | |
22505 | ||
22506 | wxPyEndAllowThreads(__tstate); | |
22507 | if (PyErr_Occurred()) SWIG_fail; | |
22508 | } | |
22509 | Py_INCREF(Py_None); resultobj = Py_None; | |
22510 | return resultobj; | |
22511 | fail: | |
22512 | return NULL; | |
22513 | } | |
22514 | ||
22515 | ||
22516 | static PyObject *_wrap_PyEllipseShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
22517 | PyObject *resultobj; | |
22518 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22519 | wxDC *arg2 = 0 ; | |
22520 | PyObject * obj0 = 0 ; | |
22521 | PyObject * obj1 = 0 ; | |
22522 | char *kwnames[] = { | |
22523 | (char *) "self",(char *) "dc", NULL | |
22524 | }; | |
22525 | ||
22526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
22527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22529 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22530 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22531 | SWIG_fail; | |
22532 | if (arg2 == NULL) { | |
22533 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22534 | SWIG_fail; | |
22535 | } | |
22536 | { | |
22537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22538 | (arg1)->base_OnErase(*arg2); | |
22539 | ||
22540 | wxPyEndAllowThreads(__tstate); | |
22541 | if (PyErr_Occurred()) SWIG_fail; | |
22542 | } | |
22543 | Py_INCREF(Py_None); resultobj = Py_None; | |
22544 | return resultobj; | |
22545 | fail: | |
22546 | return NULL; | |
22547 | } | |
22548 | ||
22549 | ||
22550 | static PyObject *_wrap_PyEllipseShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
22551 | PyObject *resultobj; | |
22552 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22553 | wxDC *arg2 = 0 ; | |
22554 | PyObject * obj0 = 0 ; | |
22555 | PyObject * obj1 = 0 ; | |
22556 | char *kwnames[] = { | |
22557 | (char *) "self",(char *) "dc", NULL | |
22558 | }; | |
22559 | ||
22560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
22561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22563 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22564 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22565 | SWIG_fail; | |
22566 | if (arg2 == NULL) { | |
22567 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22568 | SWIG_fail; | |
22569 | } | |
22570 | { | |
22571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22572 | (arg1)->base_OnEraseContents(*arg2); | |
22573 | ||
22574 | wxPyEndAllowThreads(__tstate); | |
22575 | if (PyErr_Occurred()) SWIG_fail; | |
22576 | } | |
22577 | Py_INCREF(Py_None); resultobj = Py_None; | |
22578 | return resultobj; | |
22579 | fail: | |
22580 | return NULL; | |
22581 | } | |
22582 | ||
22583 | ||
22584 | static PyObject *_wrap_PyEllipseShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
22585 | PyObject *resultobj; | |
22586 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22587 | wxDC *arg2 = 0 ; | |
22588 | PyObject * obj0 = 0 ; | |
22589 | PyObject * obj1 = 0 ; | |
22590 | char *kwnames[] = { | |
22591 | (char *) "self",(char *) "dc", NULL | |
22592 | }; | |
22593 | ||
22594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
22595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22598 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22599 | SWIG_fail; | |
22600 | if (arg2 == NULL) { | |
22601 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22602 | SWIG_fail; | |
22603 | } | |
22604 | { | |
22605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22606 | (arg1)->base_OnHighlight(*arg2); | |
22607 | ||
22608 | wxPyEndAllowThreads(__tstate); | |
22609 | if (PyErr_Occurred()) SWIG_fail; | |
22610 | } | |
22611 | Py_INCREF(Py_None); resultobj = Py_None; | |
22612 | return resultobj; | |
22613 | fail: | |
22614 | return NULL; | |
22615 | } | |
22616 | ||
22617 | ||
22618 | static PyObject *_wrap_PyEllipseShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
22619 | PyObject *resultobj; | |
22620 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22621 | double arg2 ; | |
22622 | double arg3 ; | |
22623 | int arg4 = (int) 0 ; | |
22624 | int arg5 = (int) 0 ; | |
22625 | PyObject * obj0 = 0 ; | |
22626 | PyObject * obj1 = 0 ; | |
22627 | PyObject * obj2 = 0 ; | |
22628 | PyObject * obj3 = 0 ; | |
22629 | PyObject * obj4 = 0 ; | |
22630 | char *kwnames[] = { | |
22631 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22632 | }; | |
22633 | ||
22634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
22635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22637 | arg2 = (double)SWIG_As_double(obj1); | |
22638 | if (PyErr_Occurred()) SWIG_fail; | |
22639 | arg3 = (double)SWIG_As_double(obj2); | |
22640 | if (PyErr_Occurred()) SWIG_fail; | |
22641 | if (obj3) { | |
22642 | arg4 = (int)SWIG_As_int(obj3); | |
22643 | if (PyErr_Occurred()) SWIG_fail; | |
22644 | } | |
22645 | if (obj4) { | |
22646 | arg5 = (int)SWIG_As_int(obj4); | |
22647 | if (PyErr_Occurred()) SWIG_fail; | |
22648 | } | |
22649 | { | |
22650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22651 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
22652 | ||
22653 | wxPyEndAllowThreads(__tstate); | |
22654 | if (PyErr_Occurred()) SWIG_fail; | |
22655 | } | |
22656 | Py_INCREF(Py_None); resultobj = Py_None; | |
22657 | return resultobj; | |
22658 | fail: | |
22659 | return NULL; | |
22660 | } | |
22661 | ||
22662 | ||
22663 | static PyObject *_wrap_PyEllipseShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
22664 | PyObject *resultobj; | |
22665 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22666 | double arg2 ; | |
22667 | double arg3 ; | |
22668 | int arg4 = (int) 0 ; | |
22669 | int arg5 = (int) 0 ; | |
22670 | PyObject * obj0 = 0 ; | |
22671 | PyObject * obj1 = 0 ; | |
22672 | PyObject * obj2 = 0 ; | |
22673 | PyObject * obj3 = 0 ; | |
22674 | PyObject * obj4 = 0 ; | |
22675 | char *kwnames[] = { | |
22676 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22677 | }; | |
22678 | ||
22679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
22680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22682 | arg2 = (double)SWIG_As_double(obj1); | |
22683 | if (PyErr_Occurred()) SWIG_fail; | |
22684 | arg3 = (double)SWIG_As_double(obj2); | |
22685 | if (PyErr_Occurred()) SWIG_fail; | |
22686 | if (obj3) { | |
22687 | arg4 = (int)SWIG_As_int(obj3); | |
22688 | if (PyErr_Occurred()) SWIG_fail; | |
22689 | } | |
22690 | if (obj4) { | |
22691 | arg5 = (int)SWIG_As_int(obj4); | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
22693 | } | |
22694 | { | |
22695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22696 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
22697 | ||
22698 | wxPyEndAllowThreads(__tstate); | |
22699 | if (PyErr_Occurred()) SWIG_fail; | |
22700 | } | |
22701 | Py_INCREF(Py_None); resultobj = Py_None; | |
22702 | return resultobj; | |
22703 | fail: | |
22704 | return NULL; | |
22705 | } | |
22706 | ||
22707 | ||
22708 | static PyObject *_wrap_PyEllipseShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
22709 | PyObject *resultobj; | |
22710 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22711 | double arg2 ; | |
22712 | double arg3 ; | |
22713 | int arg4 = (int) 0 ; | |
22714 | int arg5 = (int) 0 ; | |
22715 | PyObject * obj0 = 0 ; | |
22716 | PyObject * obj1 = 0 ; | |
22717 | PyObject * obj2 = 0 ; | |
22718 | PyObject * obj3 = 0 ; | |
22719 | PyObject * obj4 = 0 ; | |
22720 | char *kwnames[] = { | |
22721 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22722 | }; | |
22723 | ||
22724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
22725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22727 | arg2 = (double)SWIG_As_double(obj1); | |
22728 | if (PyErr_Occurred()) SWIG_fail; | |
22729 | arg3 = (double)SWIG_As_double(obj2); | |
22730 | if (PyErr_Occurred()) SWIG_fail; | |
22731 | if (obj3) { | |
22732 | arg4 = (int)SWIG_As_int(obj3); | |
22733 | if (PyErr_Occurred()) SWIG_fail; | |
22734 | } | |
22735 | if (obj4) { | |
22736 | arg5 = (int)SWIG_As_int(obj4); | |
22737 | if (PyErr_Occurred()) SWIG_fail; | |
22738 | } | |
22739 | { | |
22740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22741 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
22742 | ||
22743 | wxPyEndAllowThreads(__tstate); | |
22744 | if (PyErr_Occurred()) SWIG_fail; | |
22745 | } | |
22746 | Py_INCREF(Py_None); resultobj = Py_None; | |
22747 | return resultobj; | |
22748 | fail: | |
22749 | return NULL; | |
22750 | } | |
22751 | ||
22752 | ||
22753 | static PyObject *_wrap_PyEllipseShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
22754 | PyObject *resultobj; | |
22755 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22756 | double arg2 ; | |
22757 | double arg3 ; | |
22758 | PyObject * obj0 = 0 ; | |
22759 | PyObject * obj1 = 0 ; | |
22760 | PyObject * obj2 = 0 ; | |
22761 | char *kwnames[] = { | |
22762 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22763 | }; | |
22764 | ||
22765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyEllipseShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22768 | arg2 = (double)SWIG_As_double(obj1); | |
22769 | if (PyErr_Occurred()) SWIG_fail; | |
22770 | arg3 = (double)SWIG_As_double(obj2); | |
22771 | if (PyErr_Occurred()) SWIG_fail; | |
22772 | { | |
22773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22774 | (arg1)->base_OnSize(arg2,arg3); | |
22775 | ||
22776 | wxPyEndAllowThreads(__tstate); | |
22777 | if (PyErr_Occurred()) SWIG_fail; | |
22778 | } | |
22779 | Py_INCREF(Py_None); resultobj = Py_None; | |
22780 | return resultobj; | |
22781 | fail: | |
22782 | return NULL; | |
22783 | } | |
22784 | ||
22785 | ||
22786 | static PyObject *_wrap_PyEllipseShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
22787 | PyObject *resultobj; | |
22788 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22789 | wxDC *arg2 = 0 ; | |
22790 | double arg3 ; | |
22791 | double arg4 ; | |
22792 | double arg5 ; | |
22793 | double arg6 ; | |
22794 | bool arg7 = (bool) true ; | |
22795 | bool result; | |
22796 | PyObject * obj0 = 0 ; | |
22797 | PyObject * obj1 = 0 ; | |
22798 | PyObject * obj2 = 0 ; | |
22799 | PyObject * obj3 = 0 ; | |
22800 | PyObject * obj4 = 0 ; | |
22801 | PyObject * obj5 = 0 ; | |
22802 | PyObject * obj6 = 0 ; | |
22803 | char *kwnames[] = { | |
22804 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
22805 | }; | |
22806 | ||
22807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyEllipseShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22810 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22811 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22812 | SWIG_fail; | |
22813 | if (arg2 == NULL) { | |
22814 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22815 | SWIG_fail; | |
22816 | } | |
22817 | arg3 = (double)SWIG_As_double(obj2); | |
22818 | if (PyErr_Occurred()) SWIG_fail; | |
22819 | arg4 = (double)SWIG_As_double(obj3); | |
22820 | if (PyErr_Occurred()) SWIG_fail; | |
22821 | arg5 = (double)SWIG_As_double(obj4); | |
22822 | if (PyErr_Occurred()) SWIG_fail; | |
22823 | arg6 = (double)SWIG_As_double(obj5); | |
22824 | if (PyErr_Occurred()) SWIG_fail; | |
22825 | if (obj6) { | |
22826 | arg7 = (bool)SWIG_As_bool(obj6); | |
22827 | if (PyErr_Occurred()) SWIG_fail; | |
22828 | } | |
22829 | { | |
22830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22831 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
22832 | ||
22833 | wxPyEndAllowThreads(__tstate); | |
22834 | if (PyErr_Occurred()) SWIG_fail; | |
22835 | } | |
22836 | { | |
22837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22838 | } | |
22839 | return resultobj; | |
22840 | fail: | |
22841 | return NULL; | |
22842 | } | |
22843 | ||
22844 | ||
22845 | static PyObject *_wrap_PyEllipseShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
22846 | PyObject *resultobj; | |
22847 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22848 | wxDC *arg2 = 0 ; | |
22849 | double arg3 ; | |
22850 | double arg4 ; | |
22851 | double arg5 ; | |
22852 | double arg6 ; | |
22853 | bool arg7 = (bool) true ; | |
22854 | PyObject * obj0 = 0 ; | |
22855 | PyObject * obj1 = 0 ; | |
22856 | PyObject * obj2 = 0 ; | |
22857 | PyObject * obj3 = 0 ; | |
22858 | PyObject * obj4 = 0 ; | |
22859 | PyObject * obj5 = 0 ; | |
22860 | PyObject * obj6 = 0 ; | |
22861 | char *kwnames[] = { | |
22862 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
22863 | }; | |
22864 | ||
22865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyEllipseShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22870 | SWIG_fail; | |
22871 | if (arg2 == NULL) { | |
22872 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22873 | SWIG_fail; | |
22874 | } | |
22875 | arg3 = (double)SWIG_As_double(obj2); | |
22876 | if (PyErr_Occurred()) SWIG_fail; | |
22877 | arg4 = (double)SWIG_As_double(obj3); | |
22878 | if (PyErr_Occurred()) SWIG_fail; | |
22879 | arg5 = (double)SWIG_As_double(obj4); | |
22880 | if (PyErr_Occurred()) SWIG_fail; | |
22881 | arg6 = (double)SWIG_As_double(obj5); | |
22882 | if (PyErr_Occurred()) SWIG_fail; | |
22883 | if (obj6) { | |
22884 | arg7 = (bool)SWIG_As_bool(obj6); | |
22885 | if (PyErr_Occurred()) SWIG_fail; | |
22886 | } | |
22887 | { | |
22888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22889 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
22890 | ||
22891 | wxPyEndAllowThreads(__tstate); | |
22892 | if (PyErr_Occurred()) SWIG_fail; | |
22893 | } | |
22894 | Py_INCREF(Py_None); resultobj = Py_None; | |
22895 | return resultobj; | |
22896 | fail: | |
22897 | return NULL; | |
22898 | } | |
22899 | ||
22900 | ||
22901 | static PyObject *_wrap_PyEllipseShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
22902 | PyObject *resultobj; | |
22903 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22904 | bool arg2 ; | |
22905 | double arg3 ; | |
22906 | double arg4 ; | |
22907 | int arg5 = (int) 0 ; | |
22908 | int arg6 = (int) 0 ; | |
22909 | PyObject * obj0 = 0 ; | |
22910 | PyObject * obj1 = 0 ; | |
22911 | PyObject * obj2 = 0 ; | |
22912 | PyObject * obj3 = 0 ; | |
22913 | PyObject * obj4 = 0 ; | |
22914 | PyObject * obj5 = 0 ; | |
22915 | char *kwnames[] = { | |
22916 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22917 | }; | |
22918 | ||
22919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyEllipseShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22922 | arg2 = (bool)SWIG_As_bool(obj1); | |
22923 | if (PyErr_Occurred()) SWIG_fail; | |
22924 | arg3 = (double)SWIG_As_double(obj2); | |
22925 | if (PyErr_Occurred()) SWIG_fail; | |
22926 | arg4 = (double)SWIG_As_double(obj3); | |
22927 | if (PyErr_Occurred()) SWIG_fail; | |
22928 | if (obj4) { | |
22929 | arg5 = (int)SWIG_As_int(obj4); | |
22930 | if (PyErr_Occurred()) SWIG_fail; | |
22931 | } | |
22932 | if (obj5) { | |
22933 | arg6 = (int)SWIG_As_int(obj5); | |
22934 | if (PyErr_Occurred()) SWIG_fail; | |
22935 | } | |
22936 | { | |
22937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22938 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
22939 | ||
22940 | wxPyEndAllowThreads(__tstate); | |
22941 | if (PyErr_Occurred()) SWIG_fail; | |
22942 | } | |
22943 | Py_INCREF(Py_None); resultobj = Py_None; | |
22944 | return resultobj; | |
22945 | fail: | |
22946 | return NULL; | |
22947 | } | |
22948 | ||
22949 | ||
22950 | static PyObject *_wrap_PyEllipseShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
22951 | PyObject *resultobj; | |
22952 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22953 | double arg2 ; | |
22954 | double arg3 ; | |
22955 | int arg4 = (int) 0 ; | |
22956 | int arg5 = (int) 0 ; | |
22957 | PyObject * obj0 = 0 ; | |
22958 | PyObject * obj1 = 0 ; | |
22959 | PyObject * obj2 = 0 ; | |
22960 | PyObject * obj3 = 0 ; | |
22961 | PyObject * obj4 = 0 ; | |
22962 | char *kwnames[] = { | |
22963 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22964 | }; | |
22965 | ||
22966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
22967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
22968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22969 | arg2 = (double)SWIG_As_double(obj1); | |
22970 | if (PyErr_Occurred()) SWIG_fail; | |
22971 | arg3 = (double)SWIG_As_double(obj2); | |
22972 | if (PyErr_Occurred()) SWIG_fail; | |
22973 | if (obj3) { | |
22974 | arg4 = (int)SWIG_As_int(obj3); | |
22975 | if (PyErr_Occurred()) SWIG_fail; | |
22976 | } | |
22977 | if (obj4) { | |
22978 | arg5 = (int)SWIG_As_int(obj4); | |
22979 | if (PyErr_Occurred()) SWIG_fail; | |
22980 | } | |
22981 | { | |
22982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22983 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
22984 | ||
22985 | wxPyEndAllowThreads(__tstate); | |
22986 | if (PyErr_Occurred()) SWIG_fail; | |
22987 | } | |
22988 | Py_INCREF(Py_None); resultobj = Py_None; | |
22989 | return resultobj; | |
22990 | fail: | |
22991 | return NULL; | |
22992 | } | |
22993 | ||
22994 | ||
22995 | static PyObject *_wrap_PyEllipseShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
22996 | PyObject *resultobj; | |
22997 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22998 | double arg2 ; | |
22999 | double arg3 ; | |
23000 | int arg4 = (int) 0 ; | |
23001 | int arg5 = (int) 0 ; | |
23002 | PyObject * obj0 = 0 ; | |
23003 | PyObject * obj1 = 0 ; | |
23004 | PyObject * obj2 = 0 ; | |
23005 | PyObject * obj3 = 0 ; | |
23006 | PyObject * obj4 = 0 ; | |
23007 | char *kwnames[] = { | |
23008 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23009 | }; | |
23010 | ||
23011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23014 | arg2 = (double)SWIG_As_double(obj1); | |
23015 | if (PyErr_Occurred()) SWIG_fail; | |
23016 | arg3 = (double)SWIG_As_double(obj2); | |
23017 | if (PyErr_Occurred()) SWIG_fail; | |
23018 | if (obj3) { | |
23019 | arg4 = (int)SWIG_As_int(obj3); | |
23020 | if (PyErr_Occurred()) SWIG_fail; | |
23021 | } | |
23022 | if (obj4) { | |
23023 | arg5 = (int)SWIG_As_int(obj4); | |
23024 | if (PyErr_Occurred()) SWIG_fail; | |
23025 | } | |
23026 | { | |
23027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23028 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
23029 | ||
23030 | wxPyEndAllowThreads(__tstate); | |
23031 | if (PyErr_Occurred()) SWIG_fail; | |
23032 | } | |
23033 | Py_INCREF(Py_None); resultobj = Py_None; | |
23034 | return resultobj; | |
23035 | fail: | |
23036 | return NULL; | |
23037 | } | |
23038 | ||
23039 | ||
23040 | static PyObject *_wrap_PyEllipseShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
23041 | PyObject *resultobj; | |
23042 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23043 | bool arg2 ; | |
23044 | double arg3 ; | |
23045 | double arg4 ; | |
23046 | int arg5 = (int) 0 ; | |
23047 | int arg6 = (int) 0 ; | |
23048 | PyObject * obj0 = 0 ; | |
23049 | PyObject * obj1 = 0 ; | |
23050 | PyObject * obj2 = 0 ; | |
23051 | PyObject * obj3 = 0 ; | |
23052 | PyObject * obj4 = 0 ; | |
23053 | PyObject * obj5 = 0 ; | |
23054 | char *kwnames[] = { | |
23055 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23056 | }; | |
23057 | ||
23058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyEllipseShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
23059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23061 | arg2 = (bool)SWIG_As_bool(obj1); | |
23062 | if (PyErr_Occurred()) SWIG_fail; | |
23063 | arg3 = (double)SWIG_As_double(obj2); | |
23064 | if (PyErr_Occurred()) SWIG_fail; | |
23065 | arg4 = (double)SWIG_As_double(obj3); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | if (obj4) { | |
23068 | arg5 = (int)SWIG_As_int(obj4); | |
23069 | if (PyErr_Occurred()) SWIG_fail; | |
23070 | } | |
23071 | if (obj5) { | |
23072 | arg6 = (int)SWIG_As_int(obj5); | |
23073 | if (PyErr_Occurred()) SWIG_fail; | |
23074 | } | |
23075 | { | |
23076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23077 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
23078 | ||
23079 | wxPyEndAllowThreads(__tstate); | |
23080 | if (PyErr_Occurred()) SWIG_fail; | |
23081 | } | |
23082 | Py_INCREF(Py_None); resultobj = Py_None; | |
23083 | return resultobj; | |
23084 | fail: | |
23085 | return NULL; | |
23086 | } | |
23087 | ||
23088 | ||
23089 | static PyObject *_wrap_PyEllipseShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
23090 | PyObject *resultobj; | |
23091 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23092 | double arg2 ; | |
23093 | double arg3 ; | |
23094 | int arg4 = (int) 0 ; | |
23095 | int arg5 = (int) 0 ; | |
23096 | PyObject * obj0 = 0 ; | |
23097 | PyObject * obj1 = 0 ; | |
23098 | PyObject * obj2 = 0 ; | |
23099 | PyObject * obj3 = 0 ; | |
23100 | PyObject * obj4 = 0 ; | |
23101 | char *kwnames[] = { | |
23102 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23103 | }; | |
23104 | ||
23105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23108 | arg2 = (double)SWIG_As_double(obj1); | |
23109 | if (PyErr_Occurred()) SWIG_fail; | |
23110 | arg3 = (double)SWIG_As_double(obj2); | |
23111 | if (PyErr_Occurred()) SWIG_fail; | |
23112 | if (obj3) { | |
23113 | arg4 = (int)SWIG_As_int(obj3); | |
23114 | if (PyErr_Occurred()) SWIG_fail; | |
23115 | } | |
23116 | if (obj4) { | |
23117 | arg5 = (int)SWIG_As_int(obj4); | |
23118 | if (PyErr_Occurred()) SWIG_fail; | |
23119 | } | |
23120 | { | |
23121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23122 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
23123 | ||
23124 | wxPyEndAllowThreads(__tstate); | |
23125 | if (PyErr_Occurred()) SWIG_fail; | |
23126 | } | |
23127 | Py_INCREF(Py_None); resultobj = Py_None; | |
23128 | return resultobj; | |
23129 | fail: | |
23130 | return NULL; | |
23131 | } | |
23132 | ||
23133 | ||
23134 | static PyObject *_wrap_PyEllipseShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
23135 | PyObject *resultobj; | |
23136 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23137 | double arg2 ; | |
23138 | double arg3 ; | |
23139 | int arg4 = (int) 0 ; | |
23140 | int arg5 = (int) 0 ; | |
23141 | PyObject * obj0 = 0 ; | |
23142 | PyObject * obj1 = 0 ; | |
23143 | PyObject * obj2 = 0 ; | |
23144 | PyObject * obj3 = 0 ; | |
23145 | PyObject * obj4 = 0 ; | |
23146 | char *kwnames[] = { | |
23147 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23148 | }; | |
23149 | ||
23150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23153 | arg2 = (double)SWIG_As_double(obj1); | |
23154 | if (PyErr_Occurred()) SWIG_fail; | |
23155 | arg3 = (double)SWIG_As_double(obj2); | |
23156 | if (PyErr_Occurred()) SWIG_fail; | |
23157 | if (obj3) { | |
23158 | arg4 = (int)SWIG_As_int(obj3); | |
23159 | if (PyErr_Occurred()) SWIG_fail; | |
23160 | } | |
23161 | if (obj4) { | |
23162 | arg5 = (int)SWIG_As_int(obj4); | |
23163 | if (PyErr_Occurred()) SWIG_fail; | |
23164 | } | |
23165 | { | |
23166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23167 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
23168 | ||
23169 | wxPyEndAllowThreads(__tstate); | |
23170 | if (PyErr_Occurred()) SWIG_fail; | |
23171 | } | |
23172 | Py_INCREF(Py_None); resultobj = Py_None; | |
23173 | return resultobj; | |
23174 | fail: | |
23175 | return NULL; | |
23176 | } | |
23177 | ||
23178 | ||
23179 | static PyObject *_wrap_PyEllipseShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
23180 | PyObject *resultobj; | |
23181 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23182 | wxDC *arg2 = 0 ; | |
23183 | double arg3 ; | |
23184 | double arg4 ; | |
23185 | double arg5 ; | |
23186 | double arg6 ; | |
23187 | PyObject * obj0 = 0 ; | |
23188 | PyObject * obj1 = 0 ; | |
23189 | PyObject * obj2 = 0 ; | |
23190 | PyObject * obj3 = 0 ; | |
23191 | PyObject * obj4 = 0 ; | |
23192 | PyObject * obj5 = 0 ; | |
23193 | char *kwnames[] = { | |
23194 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
23195 | }; | |
23196 | ||
23197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyEllipseShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
23198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23201 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23202 | SWIG_fail; | |
23203 | if (arg2 == NULL) { | |
23204 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23205 | SWIG_fail; | |
23206 | } | |
23207 | arg3 = (double)SWIG_As_double(obj2); | |
23208 | if (PyErr_Occurred()) SWIG_fail; | |
23209 | arg4 = (double)SWIG_As_double(obj3); | |
23210 | if (PyErr_Occurred()) SWIG_fail; | |
23211 | arg5 = (double)SWIG_As_double(obj4); | |
23212 | if (PyErr_Occurred()) SWIG_fail; | |
23213 | arg6 = (double)SWIG_As_double(obj5); | |
23214 | if (PyErr_Occurred()) SWIG_fail; | |
23215 | { | |
23216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23217 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
23218 | ||
23219 | wxPyEndAllowThreads(__tstate); | |
23220 | if (PyErr_Occurred()) SWIG_fail; | |
23221 | } | |
23222 | Py_INCREF(Py_None); resultobj = Py_None; | |
23223 | return resultobj; | |
23224 | fail: | |
23225 | return NULL; | |
23226 | } | |
23227 | ||
23228 | ||
23229 | static PyObject *_wrap_PyEllipseShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
23230 | PyObject *resultobj; | |
23231 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23232 | wxDC *arg2 = 0 ; | |
23233 | PyObject * obj0 = 0 ; | |
23234 | PyObject * obj1 = 0 ; | |
23235 | char *kwnames[] = { | |
23236 | (char *) "self",(char *) "dc", NULL | |
23237 | }; | |
23238 | ||
23239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
23240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23242 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23243 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23244 | SWIG_fail; | |
23245 | if (arg2 == NULL) { | |
23246 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23247 | SWIG_fail; | |
23248 | } | |
23249 | { | |
23250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23251 | (arg1)->base_OnDrawControlPoints(*arg2); | |
23252 | ||
23253 | wxPyEndAllowThreads(__tstate); | |
23254 | if (PyErr_Occurred()) SWIG_fail; | |
23255 | } | |
23256 | Py_INCREF(Py_None); resultobj = Py_None; | |
23257 | return resultobj; | |
23258 | fail: | |
23259 | return NULL; | |
23260 | } | |
23261 | ||
23262 | ||
23263 | static PyObject *_wrap_PyEllipseShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
23264 | PyObject *resultobj; | |
23265 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23266 | wxDC *arg2 = 0 ; | |
23267 | PyObject * obj0 = 0 ; | |
23268 | PyObject * obj1 = 0 ; | |
23269 | char *kwnames[] = { | |
23270 | (char *) "self",(char *) "dc", NULL | |
23271 | }; | |
23272 | ||
23273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
23274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23276 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23277 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23278 | SWIG_fail; | |
23279 | if (arg2 == NULL) { | |
23280 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23281 | SWIG_fail; | |
23282 | } | |
23283 | { | |
23284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23285 | (arg1)->base_OnEraseControlPoints(*arg2); | |
23286 | ||
23287 | wxPyEndAllowThreads(__tstate); | |
23288 | if (PyErr_Occurred()) SWIG_fail; | |
23289 | } | |
23290 | Py_INCREF(Py_None); resultobj = Py_None; | |
23291 | return resultobj; | |
23292 | fail: | |
23293 | return NULL; | |
23294 | } | |
23295 | ||
23296 | ||
23297 | static PyObject *_wrap_PyEllipseShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
23298 | PyObject *resultobj; | |
23299 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23300 | wxDC *arg2 = 0 ; | |
23301 | bool arg3 = (bool) true ; | |
23302 | PyObject * obj0 = 0 ; | |
23303 | PyObject * obj1 = 0 ; | |
23304 | PyObject * obj2 = 0 ; | |
23305 | char *kwnames[] = { | |
23306 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
23307 | }; | |
23308 | ||
23309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyEllipseShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23312 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23313 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23314 | SWIG_fail; | |
23315 | if (arg2 == NULL) { | |
23316 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23317 | SWIG_fail; | |
23318 | } | |
23319 | if (obj2) { | |
23320 | arg3 = (bool)SWIG_As_bool(obj2); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
23323 | { | |
23324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23325 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
23326 | ||
23327 | wxPyEndAllowThreads(__tstate); | |
23328 | if (PyErr_Occurred()) SWIG_fail; | |
23329 | } | |
23330 | Py_INCREF(Py_None); resultobj = Py_None; | |
23331 | return resultobj; | |
23332 | fail: | |
23333 | return NULL; | |
23334 | } | |
23335 | ||
23336 | ||
23337 | static PyObject *_wrap_PyEllipseShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
23338 | PyObject *resultobj; | |
23339 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23340 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
23341 | bool arg3 ; | |
23342 | double arg4 ; | |
23343 | double arg5 ; | |
23344 | int arg6 = (int) 0 ; | |
23345 | int arg7 = (int) 0 ; | |
23346 | PyObject * obj0 = 0 ; | |
23347 | PyObject * obj1 = 0 ; | |
23348 | PyObject * obj2 = 0 ; | |
23349 | PyObject * obj3 = 0 ; | |
23350 | PyObject * obj4 = 0 ; | |
23351 | PyObject * obj5 = 0 ; | |
23352 | PyObject * obj6 = 0 ; | |
23353 | char *kwnames[] = { | |
23354 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23355 | }; | |
23356 | ||
23357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyEllipseShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23360 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
23361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23362 | arg3 = (bool)SWIG_As_bool(obj2); | |
23363 | if (PyErr_Occurred()) SWIG_fail; | |
23364 | arg4 = (double)SWIG_As_double(obj3); | |
23365 | if (PyErr_Occurred()) SWIG_fail; | |
23366 | arg5 = (double)SWIG_As_double(obj4); | |
23367 | if (PyErr_Occurred()) SWIG_fail; | |
23368 | if (obj5) { | |
23369 | arg6 = (int)SWIG_As_int(obj5); | |
23370 | if (PyErr_Occurred()) SWIG_fail; | |
23371 | } | |
23372 | if (obj6) { | |
23373 | arg7 = (int)SWIG_As_int(obj6); | |
23374 | if (PyErr_Occurred()) SWIG_fail; | |
23375 | } | |
23376 | { | |
23377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23378 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
23379 | ||
23380 | wxPyEndAllowThreads(__tstate); | |
23381 | if (PyErr_Occurred()) SWIG_fail; | |
23382 | } | |
23383 | Py_INCREF(Py_None); resultobj = Py_None; | |
23384 | return resultobj; | |
23385 | fail: | |
23386 | return NULL; | |
23387 | } | |
23388 | ||
23389 | ||
23390 | static PyObject *_wrap_PyEllipseShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
23391 | PyObject *resultobj; | |
23392 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23393 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
23394 | double arg3 ; | |
23395 | double arg4 ; | |
23396 | int arg5 = (int) 0 ; | |
23397 | int arg6 = (int) 0 ; | |
23398 | PyObject * obj0 = 0 ; | |
23399 | PyObject * obj1 = 0 ; | |
23400 | PyObject * obj2 = 0 ; | |
23401 | PyObject * obj3 = 0 ; | |
23402 | PyObject * obj4 = 0 ; | |
23403 | PyObject * obj5 = 0 ; | |
23404 | char *kwnames[] = { | |
23405 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23406 | }; | |
23407 | ||
23408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyEllipseShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
23409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
23412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23413 | arg3 = (double)SWIG_As_double(obj2); | |
23414 | if (PyErr_Occurred()) SWIG_fail; | |
23415 | arg4 = (double)SWIG_As_double(obj3); | |
23416 | if (PyErr_Occurred()) SWIG_fail; | |
23417 | if (obj4) { | |
23418 | arg5 = (int)SWIG_As_int(obj4); | |
23419 | if (PyErr_Occurred()) SWIG_fail; | |
23420 | } | |
23421 | if (obj5) { | |
23422 | arg6 = (int)SWIG_As_int(obj5); | |
23423 | if (PyErr_Occurred()) SWIG_fail; | |
23424 | } | |
23425 | { | |
23426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23427 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
23428 | ||
23429 | wxPyEndAllowThreads(__tstate); | |
23430 | if (PyErr_Occurred()) SWIG_fail; | |
23431 | } | |
23432 | Py_INCREF(Py_None); resultobj = Py_None; | |
23433 | return resultobj; | |
23434 | fail: | |
23435 | return NULL; | |
23436 | } | |
23437 | ||
23438 | ||
23439 | static PyObject *_wrap_PyEllipseShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
23440 | PyObject *resultobj; | |
23441 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23442 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
23443 | double arg3 ; | |
23444 | double arg4 ; | |
23445 | int arg5 = (int) 0 ; | |
23446 | int arg6 = (int) 0 ; | |
23447 | PyObject * obj0 = 0 ; | |
23448 | PyObject * obj1 = 0 ; | |
23449 | PyObject * obj2 = 0 ; | |
23450 | PyObject * obj3 = 0 ; | |
23451 | PyObject * obj4 = 0 ; | |
23452 | PyObject * obj5 = 0 ; | |
23453 | char *kwnames[] = { | |
23454 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23455 | }; | |
23456 | ||
23457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyEllipseShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
23458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23460 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
23461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23462 | arg3 = (double)SWIG_As_double(obj2); | |
23463 | if (PyErr_Occurred()) SWIG_fail; | |
23464 | arg4 = (double)SWIG_As_double(obj3); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | if (obj4) { | |
23467 | arg5 = (int)SWIG_As_int(obj4); | |
23468 | if (PyErr_Occurred()) SWIG_fail; | |
23469 | } | |
23470 | if (obj5) { | |
23471 | arg6 = (int)SWIG_As_int(obj5); | |
23472 | if (PyErr_Occurred()) SWIG_fail; | |
23473 | } | |
23474 | { | |
23475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23476 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
23477 | ||
23478 | wxPyEndAllowThreads(__tstate); | |
23479 | if (PyErr_Occurred()) SWIG_fail; | |
23480 | } | |
23481 | Py_INCREF(Py_None); resultobj = Py_None; | |
23482 | return resultobj; | |
23483 | fail: | |
23484 | return NULL; | |
23485 | } | |
23486 | ||
23487 | ||
23488 | static PyObject *_wrap_PyEllipseShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
23489 | PyObject *resultobj; | |
23490 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23491 | double arg2 ; | |
23492 | double arg3 ; | |
23493 | PyObject * obj0 = 0 ; | |
23494 | PyObject * obj1 = 0 ; | |
23495 | PyObject * obj2 = 0 ; | |
23496 | char *kwnames[] = { | |
23497 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23498 | }; | |
23499 | ||
23500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyEllipseShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23503 | arg2 = (double)SWIG_As_double(obj1); | |
23504 | if (PyErr_Occurred()) SWIG_fail; | |
23505 | arg3 = (double)SWIG_As_double(obj2); | |
23506 | if (PyErr_Occurred()) SWIG_fail; | |
23507 | { | |
23508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23509 | (arg1)->base_OnBeginSize(arg2,arg3); | |
23510 | ||
23511 | wxPyEndAllowThreads(__tstate); | |
23512 | if (PyErr_Occurred()) SWIG_fail; | |
23513 | } | |
23514 | Py_INCREF(Py_None); resultobj = Py_None; | |
23515 | return resultobj; | |
23516 | fail: | |
23517 | return NULL; | |
23518 | } | |
23519 | ||
23520 | ||
23521 | static PyObject *_wrap_PyEllipseShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
23522 | PyObject *resultobj; | |
23523 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23524 | double arg2 ; | |
23525 | double arg3 ; | |
23526 | PyObject * obj0 = 0 ; | |
23527 | PyObject * obj1 = 0 ; | |
23528 | PyObject * obj2 = 0 ; | |
23529 | char *kwnames[] = { | |
23530 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23531 | }; | |
23532 | ||
23533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyEllipseShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, | |
23535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23536 | arg2 = (double)SWIG_As_double(obj1); | |
23537 | if (PyErr_Occurred()) SWIG_fail; | |
23538 | arg3 = (double)SWIG_As_double(obj2); | |
23539 | if (PyErr_Occurred()) SWIG_fail; | |
23540 | { | |
23541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23542 | (arg1)->base_OnEndSize(arg2,arg3); | |
23543 | ||
23544 | wxPyEndAllowThreads(__tstate); | |
23545 | if (PyErr_Occurred()) SWIG_fail; | |
23546 | } | |
23547 | Py_INCREF(Py_None); resultobj = Py_None; | |
23548 | return resultobj; | |
23549 | fail: | |
23550 | return NULL; | |
23551 | } | |
23552 | ||
23553 | ||
23554 | static PyObject * PyEllipseShape_swigregister(PyObject *, PyObject *args) { | |
23555 | PyObject *obj; | |
23556 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23557 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEllipseShape, obj); | |
23558 | Py_INCREF(obj); | |
23559 | return Py_BuildValue((char *)""); | |
23560 | } | |
23561 | static PyObject *_wrap_new_PyCircleShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
23562 | PyObject *resultobj; | |
23563 | double arg1 = (double) 0.0 ; | |
23564 | wxPyCircleShape *result; | |
23565 | PyObject * obj0 = 0 ; | |
23566 | char *kwnames[] = { | |
23567 | (char *) "width", NULL | |
23568 | }; | |
23569 | ||
23570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyCircleShape",kwnames,&obj0)) goto fail; | |
23571 | if (obj0) { | |
23572 | arg1 = (double)SWIG_As_double(obj0); | |
23573 | if (PyErr_Occurred()) SWIG_fail; | |
23574 | } | |
23575 | { | |
23576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23577 | result = (wxPyCircleShape *)new wxPyCircleShape(arg1); | |
23578 | ||
23579 | wxPyEndAllowThreads(__tstate); | |
23580 | if (PyErr_Occurred()) SWIG_fail; | |
23581 | } | |
23582 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCircleShape, 1); | |
23583 | return resultobj; | |
23584 | fail: | |
23585 | return NULL; | |
23586 | } | |
23587 | ||
23588 | ||
23589 | static PyObject *_wrap_PyCircleShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
23590 | PyObject *resultobj; | |
23591 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23592 | PyObject *arg2 = (PyObject *) 0 ; | |
23593 | PyObject *arg3 = (PyObject *) 0 ; | |
23594 | PyObject * obj0 = 0 ; | |
23595 | PyObject * obj1 = 0 ; | |
23596 | PyObject * obj2 = 0 ; | |
23597 | char *kwnames[] = { | |
23598 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23599 | }; | |
23600 | ||
23601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCircleShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23604 | arg2 = obj1; | |
23605 | arg3 = obj2; | |
23606 | { | |
23607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23608 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23609 | ||
23610 | wxPyEndAllowThreads(__tstate); | |
23611 | if (PyErr_Occurred()) SWIG_fail; | |
23612 | } | |
23613 | Py_INCREF(Py_None); resultobj = Py_None; | |
23614 | return resultobj; | |
23615 | fail: | |
23616 | return NULL; | |
23617 | } | |
23618 | ||
23619 | ||
23620 | static PyObject *_wrap_PyCircleShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
23621 | PyObject *resultobj; | |
23622 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23623 | wxDC *arg2 = 0 ; | |
23624 | PyObject * obj0 = 0 ; | |
23625 | PyObject * obj1 = 0 ; | |
23626 | char *kwnames[] = { | |
23627 | (char *) "self",(char *) "dc", NULL | |
23628 | }; | |
23629 | ||
23630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
23631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23633 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23634 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23635 | SWIG_fail; | |
23636 | if (arg2 == NULL) { | |
23637 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23638 | SWIG_fail; | |
23639 | } | |
23640 | { | |
23641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23642 | (arg1)->base_OnDraw(*arg2); | |
23643 | ||
23644 | wxPyEndAllowThreads(__tstate); | |
23645 | if (PyErr_Occurred()) SWIG_fail; | |
23646 | } | |
23647 | Py_INCREF(Py_None); resultobj = Py_None; | |
23648 | return resultobj; | |
23649 | fail: | |
23650 | return NULL; | |
23651 | } | |
23652 | ||
23653 | ||
23654 | static PyObject *_wrap_PyCircleShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
23655 | PyObject *resultobj; | |
23656 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23657 | wxDC *arg2 = 0 ; | |
23658 | PyObject * obj0 = 0 ; | |
23659 | PyObject * obj1 = 0 ; | |
23660 | char *kwnames[] = { | |
23661 | (char *) "self",(char *) "dc", NULL | |
23662 | }; | |
23663 | ||
23664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
23665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23668 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23669 | SWIG_fail; | |
23670 | if (arg2 == NULL) { | |
23671 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23672 | SWIG_fail; | |
23673 | } | |
23674 | { | |
23675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23676 | (arg1)->base_OnDrawContents(*arg2); | |
23677 | ||
23678 | wxPyEndAllowThreads(__tstate); | |
23679 | if (PyErr_Occurred()) SWIG_fail; | |
23680 | } | |
23681 | Py_INCREF(Py_None); resultobj = Py_None; | |
23682 | return resultobj; | |
23683 | fail: | |
23684 | return NULL; | |
23685 | } | |
23686 | ||
23687 | ||
23688 | static PyObject *_wrap_PyCircleShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
23689 | PyObject *resultobj; | |
23690 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23691 | wxDC *arg2 = 0 ; | |
23692 | bool arg3 = (bool) FALSE ; | |
23693 | PyObject * obj0 = 0 ; | |
23694 | PyObject * obj1 = 0 ; | |
23695 | PyObject * obj2 = 0 ; | |
23696 | char *kwnames[] = { | |
23697 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
23698 | }; | |
23699 | ||
23700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCircleShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23705 | SWIG_fail; | |
23706 | if (arg2 == NULL) { | |
23707 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23708 | SWIG_fail; | |
23709 | } | |
23710 | if (obj2) { | |
23711 | arg3 = (bool)SWIG_As_bool(obj2); | |
23712 | if (PyErr_Occurred()) SWIG_fail; | |
23713 | } | |
23714 | { | |
23715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23716 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
23717 | ||
23718 | wxPyEndAllowThreads(__tstate); | |
23719 | if (PyErr_Occurred()) SWIG_fail; | |
23720 | } | |
23721 | Py_INCREF(Py_None); resultobj = Py_None; | |
23722 | return resultobj; | |
23723 | fail: | |
23724 | return NULL; | |
23725 | } | |
23726 | ||
23727 | ||
23728 | static PyObject *_wrap_PyCircleShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
23729 | PyObject *resultobj; | |
23730 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23731 | wxDC *arg2 = 0 ; | |
23732 | PyObject * obj0 = 0 ; | |
23733 | PyObject * obj1 = 0 ; | |
23734 | char *kwnames[] = { | |
23735 | (char *) "self",(char *) "dc", NULL | |
23736 | }; | |
23737 | ||
23738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
23739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23742 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23743 | SWIG_fail; | |
23744 | if (arg2 == NULL) { | |
23745 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23746 | SWIG_fail; | |
23747 | } | |
23748 | { | |
23749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23750 | (arg1)->base_OnMoveLinks(*arg2); | |
23751 | ||
23752 | wxPyEndAllowThreads(__tstate); | |
23753 | if (PyErr_Occurred()) SWIG_fail; | |
23754 | } | |
23755 | Py_INCREF(Py_None); resultobj = Py_None; | |
23756 | return resultobj; | |
23757 | fail: | |
23758 | return NULL; | |
23759 | } | |
23760 | ||
23761 | ||
23762 | static PyObject *_wrap_PyCircleShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
23763 | PyObject *resultobj; | |
23764 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23765 | wxDC *arg2 = 0 ; | |
23766 | PyObject * obj0 = 0 ; | |
23767 | PyObject * obj1 = 0 ; | |
23768 | char *kwnames[] = { | |
23769 | (char *) "self",(char *) "dc", NULL | |
23770 | }; | |
23771 | ||
23772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
23773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23776 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23777 | SWIG_fail; | |
23778 | if (arg2 == NULL) { | |
23779 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23780 | SWIG_fail; | |
23781 | } | |
23782 | { | |
23783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23784 | (arg1)->base_OnErase(*arg2); | |
23785 | ||
23786 | wxPyEndAllowThreads(__tstate); | |
23787 | if (PyErr_Occurred()) SWIG_fail; | |
23788 | } | |
23789 | Py_INCREF(Py_None); resultobj = Py_None; | |
23790 | return resultobj; | |
23791 | fail: | |
23792 | return NULL; | |
23793 | } | |
23794 | ||
23795 | ||
23796 | static PyObject *_wrap_PyCircleShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
23797 | PyObject *resultobj; | |
23798 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23799 | wxDC *arg2 = 0 ; | |
23800 | PyObject * obj0 = 0 ; | |
23801 | PyObject * obj1 = 0 ; | |
23802 | char *kwnames[] = { | |
23803 | (char *) "self",(char *) "dc", NULL | |
23804 | }; | |
23805 | ||
23806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
23807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23809 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23810 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23811 | SWIG_fail; | |
23812 | if (arg2 == NULL) { | |
23813 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23814 | SWIG_fail; | |
23815 | } | |
23816 | { | |
23817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23818 | (arg1)->base_OnEraseContents(*arg2); | |
23819 | ||
23820 | wxPyEndAllowThreads(__tstate); | |
23821 | if (PyErr_Occurred()) SWIG_fail; | |
23822 | } | |
23823 | Py_INCREF(Py_None); resultobj = Py_None; | |
23824 | return resultobj; | |
23825 | fail: | |
23826 | return NULL; | |
23827 | } | |
23828 | ||
23829 | ||
23830 | static PyObject *_wrap_PyCircleShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
23831 | PyObject *resultobj; | |
23832 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23833 | wxDC *arg2 = 0 ; | |
23834 | PyObject * obj0 = 0 ; | |
23835 | PyObject * obj1 = 0 ; | |
23836 | char *kwnames[] = { | |
23837 | (char *) "self",(char *) "dc", NULL | |
23838 | }; | |
23839 | ||
23840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
23841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23843 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23844 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23845 | SWIG_fail; | |
23846 | if (arg2 == NULL) { | |
23847 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23848 | SWIG_fail; | |
23849 | } | |
23850 | { | |
23851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23852 | (arg1)->base_OnHighlight(*arg2); | |
23853 | ||
23854 | wxPyEndAllowThreads(__tstate); | |
23855 | if (PyErr_Occurred()) SWIG_fail; | |
23856 | } | |
23857 | Py_INCREF(Py_None); resultobj = Py_None; | |
23858 | return resultobj; | |
23859 | fail: | |
23860 | return NULL; | |
23861 | } | |
23862 | ||
23863 | ||
23864 | static PyObject *_wrap_PyCircleShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
23865 | PyObject *resultobj; | |
23866 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23867 | double arg2 ; | |
23868 | double arg3 ; | |
23869 | int arg4 = (int) 0 ; | |
23870 | int arg5 = (int) 0 ; | |
23871 | PyObject * obj0 = 0 ; | |
23872 | PyObject * obj1 = 0 ; | |
23873 | PyObject * obj2 = 0 ; | |
23874 | PyObject * obj3 = 0 ; | |
23875 | PyObject * obj4 = 0 ; | |
23876 | char *kwnames[] = { | |
23877 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23878 | }; | |
23879 | ||
23880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23883 | arg2 = (double)SWIG_As_double(obj1); | |
23884 | if (PyErr_Occurred()) SWIG_fail; | |
23885 | arg3 = (double)SWIG_As_double(obj2); | |
23886 | if (PyErr_Occurred()) SWIG_fail; | |
23887 | if (obj3) { | |
23888 | arg4 = (int)SWIG_As_int(obj3); | |
23889 | if (PyErr_Occurred()) SWIG_fail; | |
23890 | } | |
23891 | if (obj4) { | |
23892 | arg5 = (int)SWIG_As_int(obj4); | |
23893 | if (PyErr_Occurred()) SWIG_fail; | |
23894 | } | |
23895 | { | |
23896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23897 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
23898 | ||
23899 | wxPyEndAllowThreads(__tstate); | |
23900 | if (PyErr_Occurred()) SWIG_fail; | |
23901 | } | |
23902 | Py_INCREF(Py_None); resultobj = Py_None; | |
23903 | return resultobj; | |
23904 | fail: | |
23905 | return NULL; | |
23906 | } | |
23907 | ||
23908 | ||
23909 | static PyObject *_wrap_PyCircleShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
23910 | PyObject *resultobj; | |
23911 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23912 | double arg2 ; | |
23913 | double arg3 ; | |
23914 | int arg4 = (int) 0 ; | |
23915 | int arg5 = (int) 0 ; | |
23916 | PyObject * obj0 = 0 ; | |
23917 | PyObject * obj1 = 0 ; | |
23918 | PyObject * obj2 = 0 ; | |
23919 | PyObject * obj3 = 0 ; | |
23920 | PyObject * obj4 = 0 ; | |
23921 | char *kwnames[] = { | |
23922 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23923 | }; | |
23924 | ||
23925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23928 | arg2 = (double)SWIG_As_double(obj1); | |
23929 | if (PyErr_Occurred()) SWIG_fail; | |
23930 | arg3 = (double)SWIG_As_double(obj2); | |
23931 | if (PyErr_Occurred()) SWIG_fail; | |
23932 | if (obj3) { | |
23933 | arg4 = (int)SWIG_As_int(obj3); | |
23934 | if (PyErr_Occurred()) SWIG_fail; | |
23935 | } | |
23936 | if (obj4) { | |
23937 | arg5 = (int)SWIG_As_int(obj4); | |
23938 | if (PyErr_Occurred()) SWIG_fail; | |
23939 | } | |
23940 | { | |
23941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23942 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
23943 | ||
23944 | wxPyEndAllowThreads(__tstate); | |
23945 | if (PyErr_Occurred()) SWIG_fail; | |
23946 | } | |
23947 | Py_INCREF(Py_None); resultobj = Py_None; | |
23948 | return resultobj; | |
23949 | fail: | |
23950 | return NULL; | |
23951 | } | |
23952 | ||
23953 | ||
23954 | static PyObject *_wrap_PyCircleShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
23955 | PyObject *resultobj; | |
23956 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23957 | double arg2 ; | |
23958 | double arg3 ; | |
23959 | int arg4 = (int) 0 ; | |
23960 | int arg5 = (int) 0 ; | |
23961 | PyObject * obj0 = 0 ; | |
23962 | PyObject * obj1 = 0 ; | |
23963 | PyObject * obj2 = 0 ; | |
23964 | PyObject * obj3 = 0 ; | |
23965 | PyObject * obj4 = 0 ; | |
23966 | char *kwnames[] = { | |
23967 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23968 | }; | |
23969 | ||
23970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
23972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23973 | arg2 = (double)SWIG_As_double(obj1); | |
23974 | if (PyErr_Occurred()) SWIG_fail; | |
23975 | arg3 = (double)SWIG_As_double(obj2); | |
23976 | if (PyErr_Occurred()) SWIG_fail; | |
23977 | if (obj3) { | |
23978 | arg4 = (int)SWIG_As_int(obj3); | |
23979 | if (PyErr_Occurred()) SWIG_fail; | |
23980 | } | |
23981 | if (obj4) { | |
23982 | arg5 = (int)SWIG_As_int(obj4); | |
23983 | if (PyErr_Occurred()) SWIG_fail; | |
23984 | } | |
23985 | { | |
23986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23987 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
23988 | ||
23989 | wxPyEndAllowThreads(__tstate); | |
23990 | if (PyErr_Occurred()) SWIG_fail; | |
23991 | } | |
23992 | Py_INCREF(Py_None); resultobj = Py_None; | |
23993 | return resultobj; | |
23994 | fail: | |
23995 | return NULL; | |
23996 | } | |
23997 | ||
23998 | ||
23999 | static PyObject *_wrap_PyCircleShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
24000 | PyObject *resultobj; | |
24001 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24002 | double arg2 ; | |
24003 | double arg3 ; | |
24004 | PyObject * obj0 = 0 ; | |
24005 | PyObject * obj1 = 0 ; | |
24006 | PyObject * obj2 = 0 ; | |
24007 | char *kwnames[] = { | |
24008 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24009 | }; | |
24010 | ||
24011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCircleShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24014 | arg2 = (double)SWIG_As_double(obj1); | |
24015 | if (PyErr_Occurred()) SWIG_fail; | |
24016 | arg3 = (double)SWIG_As_double(obj2); | |
24017 | if (PyErr_Occurred()) SWIG_fail; | |
24018 | { | |
24019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24020 | (arg1)->base_OnSize(arg2,arg3); | |
24021 | ||
24022 | wxPyEndAllowThreads(__tstate); | |
24023 | if (PyErr_Occurred()) SWIG_fail; | |
24024 | } | |
24025 | Py_INCREF(Py_None); resultobj = Py_None; | |
24026 | return resultobj; | |
24027 | fail: | |
24028 | return NULL; | |
24029 | } | |
24030 | ||
24031 | ||
24032 | static PyObject *_wrap_PyCircleShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
24033 | PyObject *resultobj; | |
24034 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24035 | wxDC *arg2 = 0 ; | |
24036 | double arg3 ; | |
24037 | double arg4 ; | |
24038 | double arg5 ; | |
24039 | double arg6 ; | |
24040 | bool arg7 = (bool) true ; | |
24041 | bool result; | |
24042 | PyObject * obj0 = 0 ; | |
24043 | PyObject * obj1 = 0 ; | |
24044 | PyObject * obj2 = 0 ; | |
24045 | PyObject * obj3 = 0 ; | |
24046 | PyObject * obj4 = 0 ; | |
24047 | PyObject * obj5 = 0 ; | |
24048 | PyObject * obj6 = 0 ; | |
24049 | char *kwnames[] = { | |
24050 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
24051 | }; | |
24052 | ||
24053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyCircleShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24056 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24057 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24058 | SWIG_fail; | |
24059 | if (arg2 == NULL) { | |
24060 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24061 | SWIG_fail; | |
24062 | } | |
24063 | arg3 = (double)SWIG_As_double(obj2); | |
24064 | if (PyErr_Occurred()) SWIG_fail; | |
24065 | arg4 = (double)SWIG_As_double(obj3); | |
24066 | if (PyErr_Occurred()) SWIG_fail; | |
24067 | arg5 = (double)SWIG_As_double(obj4); | |
24068 | if (PyErr_Occurred()) SWIG_fail; | |
24069 | arg6 = (double)SWIG_As_double(obj5); | |
24070 | if (PyErr_Occurred()) SWIG_fail; | |
24071 | if (obj6) { | |
24072 | arg7 = (bool)SWIG_As_bool(obj6); | |
24073 | if (PyErr_Occurred()) SWIG_fail; | |
24074 | } | |
24075 | { | |
24076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24077 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
24078 | ||
24079 | wxPyEndAllowThreads(__tstate); | |
24080 | if (PyErr_Occurred()) SWIG_fail; | |
24081 | } | |
24082 | { | |
24083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24084 | } | |
24085 | return resultobj; | |
24086 | fail: | |
24087 | return NULL; | |
24088 | } | |
24089 | ||
24090 | ||
24091 | static PyObject *_wrap_PyCircleShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
24092 | PyObject *resultobj; | |
24093 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24094 | wxDC *arg2 = 0 ; | |
24095 | double arg3 ; | |
24096 | double arg4 ; | |
24097 | double arg5 ; | |
24098 | double arg6 ; | |
24099 | bool arg7 = (bool) true ; | |
24100 | PyObject * obj0 = 0 ; | |
24101 | PyObject * obj1 = 0 ; | |
24102 | PyObject * obj2 = 0 ; | |
24103 | PyObject * obj3 = 0 ; | |
24104 | PyObject * obj4 = 0 ; | |
24105 | PyObject * obj5 = 0 ; | |
24106 | PyObject * obj6 = 0 ; | |
24107 | char *kwnames[] = { | |
24108 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
24109 | }; | |
24110 | ||
24111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyCircleShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24114 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24116 | SWIG_fail; | |
24117 | if (arg2 == NULL) { | |
24118 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24119 | SWIG_fail; | |
24120 | } | |
24121 | arg3 = (double)SWIG_As_double(obj2); | |
24122 | if (PyErr_Occurred()) SWIG_fail; | |
24123 | arg4 = (double)SWIG_As_double(obj3); | |
24124 | if (PyErr_Occurred()) SWIG_fail; | |
24125 | arg5 = (double)SWIG_As_double(obj4); | |
24126 | if (PyErr_Occurred()) SWIG_fail; | |
24127 | arg6 = (double)SWIG_As_double(obj5); | |
24128 | if (PyErr_Occurred()) SWIG_fail; | |
24129 | if (obj6) { | |
24130 | arg7 = (bool)SWIG_As_bool(obj6); | |
24131 | if (PyErr_Occurred()) SWIG_fail; | |
24132 | } | |
24133 | { | |
24134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24135 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
24136 | ||
24137 | wxPyEndAllowThreads(__tstate); | |
24138 | if (PyErr_Occurred()) SWIG_fail; | |
24139 | } | |
24140 | Py_INCREF(Py_None); resultobj = Py_None; | |
24141 | return resultobj; | |
24142 | fail: | |
24143 | return NULL; | |
24144 | } | |
24145 | ||
24146 | ||
24147 | static PyObject *_wrap_PyCircleShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
24148 | PyObject *resultobj; | |
24149 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24150 | bool arg2 ; | |
24151 | double arg3 ; | |
24152 | double arg4 ; | |
24153 | int arg5 = (int) 0 ; | |
24154 | int arg6 = (int) 0 ; | |
24155 | PyObject * obj0 = 0 ; | |
24156 | PyObject * obj1 = 0 ; | |
24157 | PyObject * obj2 = 0 ; | |
24158 | PyObject * obj3 = 0 ; | |
24159 | PyObject * obj4 = 0 ; | |
24160 | PyObject * obj5 = 0 ; | |
24161 | char *kwnames[] = { | |
24162 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24163 | }; | |
24164 | ||
24165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCircleShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
24166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24168 | arg2 = (bool)SWIG_As_bool(obj1); | |
24169 | if (PyErr_Occurred()) SWIG_fail; | |
24170 | arg3 = (double)SWIG_As_double(obj2); | |
24171 | if (PyErr_Occurred()) SWIG_fail; | |
24172 | arg4 = (double)SWIG_As_double(obj3); | |
24173 | if (PyErr_Occurred()) SWIG_fail; | |
24174 | if (obj4) { | |
24175 | arg5 = (int)SWIG_As_int(obj4); | |
24176 | if (PyErr_Occurred()) SWIG_fail; | |
24177 | } | |
24178 | if (obj5) { | |
24179 | arg6 = (int)SWIG_As_int(obj5); | |
24180 | if (PyErr_Occurred()) SWIG_fail; | |
24181 | } | |
24182 | { | |
24183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24184 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
24185 | ||
24186 | wxPyEndAllowThreads(__tstate); | |
24187 | if (PyErr_Occurred()) SWIG_fail; | |
24188 | } | |
24189 | Py_INCREF(Py_None); resultobj = Py_None; | |
24190 | return resultobj; | |
24191 | fail: | |
24192 | return NULL; | |
24193 | } | |
24194 | ||
24195 | ||
24196 | static PyObject *_wrap_PyCircleShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
24197 | PyObject *resultobj; | |
24198 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24199 | double arg2 ; | |
24200 | double arg3 ; | |
24201 | int arg4 = (int) 0 ; | |
24202 | int arg5 = (int) 0 ; | |
24203 | PyObject * obj0 = 0 ; | |
24204 | PyObject * obj1 = 0 ; | |
24205 | PyObject * obj2 = 0 ; | |
24206 | PyObject * obj3 = 0 ; | |
24207 | PyObject * obj4 = 0 ; | |
24208 | char *kwnames[] = { | |
24209 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24210 | }; | |
24211 | ||
24212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
24213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24215 | arg2 = (double)SWIG_As_double(obj1); | |
24216 | if (PyErr_Occurred()) SWIG_fail; | |
24217 | arg3 = (double)SWIG_As_double(obj2); | |
24218 | if (PyErr_Occurred()) SWIG_fail; | |
24219 | if (obj3) { | |
24220 | arg4 = (int)SWIG_As_int(obj3); | |
24221 | if (PyErr_Occurred()) SWIG_fail; | |
24222 | } | |
24223 | if (obj4) { | |
24224 | arg5 = (int)SWIG_As_int(obj4); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
24227 | { | |
24228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24229 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
24230 | ||
24231 | wxPyEndAllowThreads(__tstate); | |
24232 | if (PyErr_Occurred()) SWIG_fail; | |
24233 | } | |
24234 | Py_INCREF(Py_None); resultobj = Py_None; | |
24235 | return resultobj; | |
24236 | fail: | |
24237 | return NULL; | |
24238 | } | |
24239 | ||
24240 | ||
24241 | static PyObject *_wrap_PyCircleShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
24242 | PyObject *resultobj; | |
24243 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24244 | double arg2 ; | |
24245 | double arg3 ; | |
24246 | int arg4 = (int) 0 ; | |
24247 | int arg5 = (int) 0 ; | |
24248 | PyObject * obj0 = 0 ; | |
24249 | PyObject * obj1 = 0 ; | |
24250 | PyObject * obj2 = 0 ; | |
24251 | PyObject * obj3 = 0 ; | |
24252 | PyObject * obj4 = 0 ; | |
24253 | char *kwnames[] = { | |
24254 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24255 | }; | |
24256 | ||
24257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
24258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24260 | arg2 = (double)SWIG_As_double(obj1); | |
24261 | if (PyErr_Occurred()) SWIG_fail; | |
24262 | arg3 = (double)SWIG_As_double(obj2); | |
24263 | if (PyErr_Occurred()) SWIG_fail; | |
24264 | if (obj3) { | |
24265 | arg4 = (int)SWIG_As_int(obj3); | |
24266 | if (PyErr_Occurred()) SWIG_fail; | |
24267 | } | |
24268 | if (obj4) { | |
24269 | arg5 = (int)SWIG_As_int(obj4); | |
24270 | if (PyErr_Occurred()) SWIG_fail; | |
24271 | } | |
24272 | { | |
24273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24274 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
24275 | ||
24276 | wxPyEndAllowThreads(__tstate); | |
24277 | if (PyErr_Occurred()) SWIG_fail; | |
24278 | } | |
24279 | Py_INCREF(Py_None); resultobj = Py_None; | |
24280 | return resultobj; | |
24281 | fail: | |
24282 | return NULL; | |
24283 | } | |
24284 | ||
24285 | ||
24286 | static PyObject *_wrap_PyCircleShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
24287 | PyObject *resultobj; | |
24288 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24289 | bool arg2 ; | |
24290 | double arg3 ; | |
24291 | double arg4 ; | |
24292 | int arg5 = (int) 0 ; | |
24293 | int arg6 = (int) 0 ; | |
24294 | PyObject * obj0 = 0 ; | |
24295 | PyObject * obj1 = 0 ; | |
24296 | PyObject * obj2 = 0 ; | |
24297 | PyObject * obj3 = 0 ; | |
24298 | PyObject * obj4 = 0 ; | |
24299 | PyObject * obj5 = 0 ; | |
24300 | char *kwnames[] = { | |
24301 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24302 | }; | |
24303 | ||
24304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCircleShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
24305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24307 | arg2 = (bool)SWIG_As_bool(obj1); | |
24308 | if (PyErr_Occurred()) SWIG_fail; | |
24309 | arg3 = (double)SWIG_As_double(obj2); | |
24310 | if (PyErr_Occurred()) SWIG_fail; | |
24311 | arg4 = (double)SWIG_As_double(obj3); | |
24312 | if (PyErr_Occurred()) SWIG_fail; | |
24313 | if (obj4) { | |
24314 | arg5 = (int)SWIG_As_int(obj4); | |
24315 | if (PyErr_Occurred()) SWIG_fail; | |
24316 | } | |
24317 | if (obj5) { | |
24318 | arg6 = (int)SWIG_As_int(obj5); | |
24319 | if (PyErr_Occurred()) SWIG_fail; | |
24320 | } | |
24321 | { | |
24322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24323 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
24324 | ||
24325 | wxPyEndAllowThreads(__tstate); | |
24326 | if (PyErr_Occurred()) SWIG_fail; | |
24327 | } | |
24328 | Py_INCREF(Py_None); resultobj = Py_None; | |
24329 | return resultobj; | |
24330 | fail: | |
24331 | return NULL; | |
24332 | } | |
24333 | ||
24334 | ||
24335 | static PyObject *_wrap_PyCircleShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
24336 | PyObject *resultobj; | |
24337 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24338 | double arg2 ; | |
24339 | double arg3 ; | |
24340 | int arg4 = (int) 0 ; | |
24341 | int arg5 = (int) 0 ; | |
24342 | PyObject * obj0 = 0 ; | |
24343 | PyObject * obj1 = 0 ; | |
24344 | PyObject * obj2 = 0 ; | |
24345 | PyObject * obj3 = 0 ; | |
24346 | PyObject * obj4 = 0 ; | |
24347 | char *kwnames[] = { | |
24348 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24349 | }; | |
24350 | ||
24351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
24352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24354 | arg2 = (double)SWIG_As_double(obj1); | |
24355 | if (PyErr_Occurred()) SWIG_fail; | |
24356 | arg3 = (double)SWIG_As_double(obj2); | |
24357 | if (PyErr_Occurred()) SWIG_fail; | |
24358 | if (obj3) { | |
24359 | arg4 = (int)SWIG_As_int(obj3); | |
24360 | if (PyErr_Occurred()) SWIG_fail; | |
24361 | } | |
24362 | if (obj4) { | |
24363 | arg5 = (int)SWIG_As_int(obj4); | |
24364 | if (PyErr_Occurred()) SWIG_fail; | |
24365 | } | |
24366 | { | |
24367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24368 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
24369 | ||
24370 | wxPyEndAllowThreads(__tstate); | |
24371 | if (PyErr_Occurred()) SWIG_fail; | |
24372 | } | |
24373 | Py_INCREF(Py_None); resultobj = Py_None; | |
24374 | return resultobj; | |
24375 | fail: | |
24376 | return NULL; | |
24377 | } | |
24378 | ||
24379 | ||
24380 | static PyObject *_wrap_PyCircleShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
24381 | PyObject *resultobj; | |
24382 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24383 | double arg2 ; | |
24384 | double arg3 ; | |
24385 | int arg4 = (int) 0 ; | |
24386 | int arg5 = (int) 0 ; | |
24387 | PyObject * obj0 = 0 ; | |
24388 | PyObject * obj1 = 0 ; | |
24389 | PyObject * obj2 = 0 ; | |
24390 | PyObject * obj3 = 0 ; | |
24391 | PyObject * obj4 = 0 ; | |
24392 | char *kwnames[] = { | |
24393 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24394 | }; | |
24395 | ||
24396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
24397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24399 | arg2 = (double)SWIG_As_double(obj1); | |
24400 | if (PyErr_Occurred()) SWIG_fail; | |
24401 | arg3 = (double)SWIG_As_double(obj2); | |
24402 | if (PyErr_Occurred()) SWIG_fail; | |
24403 | if (obj3) { | |
24404 | arg4 = (int)SWIG_As_int(obj3); | |
24405 | if (PyErr_Occurred()) SWIG_fail; | |
24406 | } | |
24407 | if (obj4) { | |
24408 | arg5 = (int)SWIG_As_int(obj4); | |
24409 | if (PyErr_Occurred()) SWIG_fail; | |
24410 | } | |
24411 | { | |
24412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24413 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
24414 | ||
24415 | wxPyEndAllowThreads(__tstate); | |
24416 | if (PyErr_Occurred()) SWIG_fail; | |
24417 | } | |
24418 | Py_INCREF(Py_None); resultobj = Py_None; | |
24419 | return resultobj; | |
24420 | fail: | |
24421 | return NULL; | |
24422 | } | |
24423 | ||
24424 | ||
24425 | static PyObject *_wrap_PyCircleShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
24426 | PyObject *resultobj; | |
24427 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24428 | wxDC *arg2 = 0 ; | |
24429 | double arg3 ; | |
24430 | double arg4 ; | |
24431 | double arg5 ; | |
24432 | double arg6 ; | |
24433 | PyObject * obj0 = 0 ; | |
24434 | PyObject * obj1 = 0 ; | |
24435 | PyObject * obj2 = 0 ; | |
24436 | PyObject * obj3 = 0 ; | |
24437 | PyObject * obj4 = 0 ; | |
24438 | PyObject * obj5 = 0 ; | |
24439 | char *kwnames[] = { | |
24440 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
24441 | }; | |
24442 | ||
24443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyCircleShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
24444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24446 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24447 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24448 | SWIG_fail; | |
24449 | if (arg2 == NULL) { | |
24450 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24451 | SWIG_fail; | |
24452 | } | |
24453 | arg3 = (double)SWIG_As_double(obj2); | |
24454 | if (PyErr_Occurred()) SWIG_fail; | |
24455 | arg4 = (double)SWIG_As_double(obj3); | |
24456 | if (PyErr_Occurred()) SWIG_fail; | |
24457 | arg5 = (double)SWIG_As_double(obj4); | |
24458 | if (PyErr_Occurred()) SWIG_fail; | |
24459 | arg6 = (double)SWIG_As_double(obj5); | |
24460 | if (PyErr_Occurred()) SWIG_fail; | |
24461 | { | |
24462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24463 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
24464 | ||
24465 | wxPyEndAllowThreads(__tstate); | |
24466 | if (PyErr_Occurred()) SWIG_fail; | |
24467 | } | |
24468 | Py_INCREF(Py_None); resultobj = Py_None; | |
24469 | return resultobj; | |
24470 | fail: | |
24471 | return NULL; | |
24472 | } | |
24473 | ||
24474 | ||
24475 | static PyObject *_wrap_PyCircleShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
24476 | PyObject *resultobj; | |
24477 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24478 | wxDC *arg2 = 0 ; | |
24479 | PyObject * obj0 = 0 ; | |
24480 | PyObject * obj1 = 0 ; | |
24481 | char *kwnames[] = { | |
24482 | (char *) "self",(char *) "dc", NULL | |
24483 | }; | |
24484 | ||
24485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
24486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24488 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24489 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24490 | SWIG_fail; | |
24491 | if (arg2 == NULL) { | |
24492 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24493 | SWIG_fail; | |
24494 | } | |
24495 | { | |
24496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24497 | (arg1)->base_OnDrawControlPoints(*arg2); | |
24498 | ||
24499 | wxPyEndAllowThreads(__tstate); | |
24500 | if (PyErr_Occurred()) SWIG_fail; | |
24501 | } | |
24502 | Py_INCREF(Py_None); resultobj = Py_None; | |
24503 | return resultobj; | |
24504 | fail: | |
24505 | return NULL; | |
24506 | } | |
24507 | ||
24508 | ||
24509 | static PyObject *_wrap_PyCircleShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
24510 | PyObject *resultobj; | |
24511 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24512 | wxDC *arg2 = 0 ; | |
24513 | PyObject * obj0 = 0 ; | |
24514 | PyObject * obj1 = 0 ; | |
24515 | char *kwnames[] = { | |
24516 | (char *) "self",(char *) "dc", NULL | |
24517 | }; | |
24518 | ||
24519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
24520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24523 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24524 | SWIG_fail; | |
24525 | if (arg2 == NULL) { | |
24526 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24527 | SWIG_fail; | |
24528 | } | |
24529 | { | |
24530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24531 | (arg1)->base_OnEraseControlPoints(*arg2); | |
24532 | ||
24533 | wxPyEndAllowThreads(__tstate); | |
24534 | if (PyErr_Occurred()) SWIG_fail; | |
24535 | } | |
24536 | Py_INCREF(Py_None); resultobj = Py_None; | |
24537 | return resultobj; | |
24538 | fail: | |
24539 | return NULL; | |
24540 | } | |
24541 | ||
24542 | ||
24543 | static PyObject *_wrap_PyCircleShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
24544 | PyObject *resultobj; | |
24545 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24546 | wxDC *arg2 = 0 ; | |
24547 | bool arg3 = (bool) true ; | |
24548 | PyObject * obj0 = 0 ; | |
24549 | PyObject * obj1 = 0 ; | |
24550 | PyObject * obj2 = 0 ; | |
24551 | char *kwnames[] = { | |
24552 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
24553 | }; | |
24554 | ||
24555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCircleShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24560 | SWIG_fail; | |
24561 | if (arg2 == NULL) { | |
24562 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24563 | SWIG_fail; | |
24564 | } | |
24565 | if (obj2) { | |
24566 | arg3 = (bool)SWIG_As_bool(obj2); | |
24567 | if (PyErr_Occurred()) SWIG_fail; | |
24568 | } | |
24569 | { | |
24570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24571 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
24572 | ||
24573 | wxPyEndAllowThreads(__tstate); | |
24574 | if (PyErr_Occurred()) SWIG_fail; | |
24575 | } | |
24576 | Py_INCREF(Py_None); resultobj = Py_None; | |
24577 | return resultobj; | |
24578 | fail: | |
24579 | return NULL; | |
24580 | } | |
24581 | ||
24582 | ||
24583 | static PyObject *_wrap_PyCircleShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
24584 | PyObject *resultobj; | |
24585 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24586 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
24587 | bool arg3 ; | |
24588 | double arg4 ; | |
24589 | double arg5 ; | |
24590 | int arg6 = (int) 0 ; | |
24591 | int arg7 = (int) 0 ; | |
24592 | PyObject * obj0 = 0 ; | |
24593 | PyObject * obj1 = 0 ; | |
24594 | PyObject * obj2 = 0 ; | |
24595 | PyObject * obj3 = 0 ; | |
24596 | PyObject * obj4 = 0 ; | |
24597 | PyObject * obj5 = 0 ; | |
24598 | PyObject * obj6 = 0 ; | |
24599 | char *kwnames[] = { | |
24600 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24601 | }; | |
24602 | ||
24603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyCircleShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
24607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24608 | arg3 = (bool)SWIG_As_bool(obj2); | |
24609 | if (PyErr_Occurred()) SWIG_fail; | |
24610 | arg4 = (double)SWIG_As_double(obj3); | |
24611 | if (PyErr_Occurred()) SWIG_fail; | |
24612 | arg5 = (double)SWIG_As_double(obj4); | |
24613 | if (PyErr_Occurred()) SWIG_fail; | |
24614 | if (obj5) { | |
24615 | arg6 = (int)SWIG_As_int(obj5); | |
24616 | if (PyErr_Occurred()) SWIG_fail; | |
24617 | } | |
24618 | if (obj6) { | |
24619 | arg7 = (int)SWIG_As_int(obj6); | |
24620 | if (PyErr_Occurred()) SWIG_fail; | |
24621 | } | |
24622 | { | |
24623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24624 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
24625 | ||
24626 | wxPyEndAllowThreads(__tstate); | |
24627 | if (PyErr_Occurred()) SWIG_fail; | |
24628 | } | |
24629 | Py_INCREF(Py_None); resultobj = Py_None; | |
24630 | return resultobj; | |
24631 | fail: | |
24632 | return NULL; | |
24633 | } | |
24634 | ||
24635 | ||
24636 | static PyObject *_wrap_PyCircleShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
24637 | PyObject *resultobj; | |
24638 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24639 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
24640 | double arg3 ; | |
24641 | double arg4 ; | |
24642 | int arg5 = (int) 0 ; | |
24643 | int arg6 = (int) 0 ; | |
24644 | PyObject * obj0 = 0 ; | |
24645 | PyObject * obj1 = 0 ; | |
24646 | PyObject * obj2 = 0 ; | |
24647 | PyObject * obj3 = 0 ; | |
24648 | PyObject * obj4 = 0 ; | |
24649 | PyObject * obj5 = 0 ; | |
24650 | char *kwnames[] = { | |
24651 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24652 | }; | |
24653 | ||
24654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCircleShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
24655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
24658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24659 | arg3 = (double)SWIG_As_double(obj2); | |
24660 | if (PyErr_Occurred()) SWIG_fail; | |
24661 | arg4 = (double)SWIG_As_double(obj3); | |
24662 | if (PyErr_Occurred()) SWIG_fail; | |
24663 | if (obj4) { | |
24664 | arg5 = (int)SWIG_As_int(obj4); | |
24665 | if (PyErr_Occurred()) SWIG_fail; | |
24666 | } | |
24667 | if (obj5) { | |
24668 | arg6 = (int)SWIG_As_int(obj5); | |
24669 | if (PyErr_Occurred()) SWIG_fail; | |
24670 | } | |
24671 | { | |
24672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24673 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
24674 | ||
24675 | wxPyEndAllowThreads(__tstate); | |
24676 | if (PyErr_Occurred()) SWIG_fail; | |
24677 | } | |
24678 | Py_INCREF(Py_None); resultobj = Py_None; | |
24679 | return resultobj; | |
24680 | fail: | |
24681 | return NULL; | |
24682 | } | |
24683 | ||
24684 | ||
24685 | static PyObject *_wrap_PyCircleShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
24686 | PyObject *resultobj; | |
24687 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24688 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
24689 | double arg3 ; | |
24690 | double arg4 ; | |
24691 | int arg5 = (int) 0 ; | |
24692 | int arg6 = (int) 0 ; | |
24693 | PyObject * obj0 = 0 ; | |
24694 | PyObject * obj1 = 0 ; | |
24695 | PyObject * obj2 = 0 ; | |
24696 | PyObject * obj3 = 0 ; | |
24697 | PyObject * obj4 = 0 ; | |
24698 | PyObject * obj5 = 0 ; | |
24699 | char *kwnames[] = { | |
24700 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24701 | }; | |
24702 | ||
24703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCircleShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
24704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
24707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24708 | arg3 = (double)SWIG_As_double(obj2); | |
24709 | if (PyErr_Occurred()) SWIG_fail; | |
24710 | arg4 = (double)SWIG_As_double(obj3); | |
24711 | if (PyErr_Occurred()) SWIG_fail; | |
24712 | if (obj4) { | |
24713 | arg5 = (int)SWIG_As_int(obj4); | |
24714 | if (PyErr_Occurred()) SWIG_fail; | |
24715 | } | |
24716 | if (obj5) { | |
24717 | arg6 = (int)SWIG_As_int(obj5); | |
24718 | if (PyErr_Occurred()) SWIG_fail; | |
24719 | } | |
24720 | { | |
24721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24722 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
24723 | ||
24724 | wxPyEndAllowThreads(__tstate); | |
24725 | if (PyErr_Occurred()) SWIG_fail; | |
24726 | } | |
24727 | Py_INCREF(Py_None); resultobj = Py_None; | |
24728 | return resultobj; | |
24729 | fail: | |
24730 | return NULL; | |
24731 | } | |
24732 | ||
24733 | ||
24734 | static PyObject *_wrap_PyCircleShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
24735 | PyObject *resultobj; | |
24736 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24737 | double arg2 ; | |
24738 | double arg3 ; | |
24739 | PyObject * obj0 = 0 ; | |
24740 | PyObject * obj1 = 0 ; | |
24741 | PyObject * obj2 = 0 ; | |
24742 | char *kwnames[] = { | |
24743 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24744 | }; | |
24745 | ||
24746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCircleShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24749 | arg2 = (double)SWIG_As_double(obj1); | |
24750 | if (PyErr_Occurred()) SWIG_fail; | |
24751 | arg3 = (double)SWIG_As_double(obj2); | |
24752 | if (PyErr_Occurred()) SWIG_fail; | |
24753 | { | |
24754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24755 | (arg1)->base_OnBeginSize(arg2,arg3); | |
24756 | ||
24757 | wxPyEndAllowThreads(__tstate); | |
24758 | if (PyErr_Occurred()) SWIG_fail; | |
24759 | } | |
24760 | Py_INCREF(Py_None); resultobj = Py_None; | |
24761 | return resultobj; | |
24762 | fail: | |
24763 | return NULL; | |
24764 | } | |
24765 | ||
24766 | ||
24767 | static PyObject *_wrap_PyCircleShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
24768 | PyObject *resultobj; | |
24769 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24770 | double arg2 ; | |
24771 | double arg3 ; | |
24772 | PyObject * obj0 = 0 ; | |
24773 | PyObject * obj1 = 0 ; | |
24774 | PyObject * obj2 = 0 ; | |
24775 | char *kwnames[] = { | |
24776 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24777 | }; | |
24778 | ||
24779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCircleShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, | |
24781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24782 | arg2 = (double)SWIG_As_double(obj1); | |
24783 | if (PyErr_Occurred()) SWIG_fail; | |
24784 | arg3 = (double)SWIG_As_double(obj2); | |
24785 | if (PyErr_Occurred()) SWIG_fail; | |
24786 | { | |
24787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24788 | (arg1)->base_OnEndSize(arg2,arg3); | |
24789 | ||
24790 | wxPyEndAllowThreads(__tstate); | |
24791 | if (PyErr_Occurred()) SWIG_fail; | |
24792 | } | |
24793 | Py_INCREF(Py_None); resultobj = Py_None; | |
24794 | return resultobj; | |
24795 | fail: | |
24796 | return NULL; | |
24797 | } | |
24798 | ||
24799 | ||
24800 | static PyObject * PyCircleShape_swigregister(PyObject *, PyObject *args) { | |
24801 | PyObject *obj; | |
24802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24803 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCircleShape, obj); | |
24804 | Py_INCREF(obj); | |
24805 | return Py_BuildValue((char *)""); | |
24806 | } | |
24807 | static PyObject *_wrap_new_ArrowHead(PyObject *, PyObject *args, PyObject *kwargs) { | |
24808 | PyObject *resultobj; | |
24809 | int arg1 = (int) 0 ; | |
24810 | int arg2 = (int) 0 ; | |
24811 | double arg3 = (double) 0.0 ; | |
24812 | double arg4 = (double) 0.0 ; | |
24813 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
24814 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
24815 | wxPseudoMetaFile *arg6 = (wxPseudoMetaFile *) NULL ; | |
24816 | long arg7 = (long) -1 ; | |
24817 | wxArrowHead *result; | |
24818 | bool temp5 = false ; | |
24819 | PyObject * obj0 = 0 ; | |
24820 | PyObject * obj1 = 0 ; | |
24821 | PyObject * obj2 = 0 ; | |
24822 | PyObject * obj3 = 0 ; | |
24823 | PyObject * obj4 = 0 ; | |
24824 | PyObject * obj5 = 0 ; | |
24825 | PyObject * obj6 = 0 ; | |
24826 | char *kwnames[] = { | |
24827 | (char *) "type",(char *) "end",(char *) "size",(char *) "dist",(char *) "name",(char *) "mf",(char *) "arrowId", NULL | |
24828 | }; | |
24829 | ||
24830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOO:new_ArrowHead",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24831 | if (obj0) { | |
24832 | arg1 = (int)SWIG_As_int(obj0); | |
24833 | if (PyErr_Occurred()) SWIG_fail; | |
24834 | } | |
24835 | if (obj1) { | |
24836 | arg2 = (int)SWIG_As_int(obj1); | |
24837 | if (PyErr_Occurred()) SWIG_fail; | |
24838 | } | |
24839 | if (obj2) { | |
24840 | arg3 = (double)SWIG_As_double(obj2); | |
24841 | if (PyErr_Occurred()) SWIG_fail; | |
24842 | } | |
24843 | if (obj3) { | |
24844 | arg4 = (double)SWIG_As_double(obj3); | |
24845 | if (PyErr_Occurred()) SWIG_fail; | |
24846 | } | |
24847 | if (obj4) { | |
24848 | { | |
24849 | arg5 = wxString_in_helper(obj4); | |
24850 | if (arg5 == NULL) SWIG_fail; | |
24851 | temp5 = true; | |
24852 | } | |
24853 | } | |
24854 | if (obj5) { | |
24855 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPseudoMetaFile, | |
24856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24857 | } | |
24858 | if (obj6) { | |
24859 | arg7 = (long)SWIG_As_long(obj6); | |
24860 | if (PyErr_Occurred()) SWIG_fail; | |
24861 | } | |
24862 | { | |
24863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24864 | result = (wxArrowHead *)new wxArrowHead(arg1,arg2,arg3,arg4,(wxString const &)*arg5,arg6,arg7); | |
24865 | ||
24866 | wxPyEndAllowThreads(__tstate); | |
24867 | if (PyErr_Occurred()) SWIG_fail; | |
24868 | } | |
24869 | { | |
24870 | resultobj = wxPyMake_wxObject(result, 1); | |
24871 | } | |
24872 | { | |
24873 | if (temp5) | |
24874 | delete arg5; | |
24875 | } | |
24876 | return resultobj; | |
24877 | fail: | |
24878 | { | |
24879 | if (temp5) | |
24880 | delete arg5; | |
24881 | } | |
24882 | return NULL; | |
24883 | } | |
24884 | ||
24885 | ||
24886 | static PyObject *_wrap_delete_ArrowHead(PyObject *, PyObject *args, PyObject *kwargs) { | |
24887 | PyObject *resultobj; | |
24888 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24889 | PyObject * obj0 = 0 ; | |
24890 | char *kwnames[] = { | |
24891 | (char *) "self", NULL | |
24892 | }; | |
24893 | ||
24894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ArrowHead",kwnames,&obj0)) goto fail; | |
24895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
24896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24897 | { | |
24898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24899 | delete arg1; | |
24900 | ||
24901 | wxPyEndAllowThreads(__tstate); | |
24902 | if (PyErr_Occurred()) SWIG_fail; | |
24903 | } | |
24904 | Py_INCREF(Py_None); resultobj = Py_None; | |
24905 | return resultobj; | |
24906 | fail: | |
24907 | return NULL; | |
24908 | } | |
24909 | ||
24910 | ||
24911 | static PyObject *_wrap_ArrowHead__GetType(PyObject *, PyObject *args, PyObject *kwargs) { | |
24912 | PyObject *resultobj; | |
24913 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24914 | int result; | |
24915 | PyObject * obj0 = 0 ; | |
24916 | char *kwnames[] = { | |
24917 | (char *) "self", NULL | |
24918 | }; | |
24919 | ||
24920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead__GetType",kwnames,&obj0)) goto fail; | |
24921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
24922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24923 | { | |
24924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24925 | result = (int)(arg1)->_GetType(); | |
24926 | ||
24927 | wxPyEndAllowThreads(__tstate); | |
24928 | if (PyErr_Occurred()) SWIG_fail; | |
24929 | } | |
24930 | resultobj = SWIG_From_int((int)result); | |
24931 | return resultobj; | |
24932 | fail: | |
24933 | return NULL; | |
24934 | } | |
24935 | ||
24936 | ||
24937 | static PyObject *_wrap_ArrowHead_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
24938 | PyObject *resultobj; | |
24939 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24940 | int result; | |
24941 | PyObject * obj0 = 0 ; | |
24942 | char *kwnames[] = { | |
24943 | (char *) "self", NULL | |
24944 | }; | |
24945 | ||
24946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetPosition",kwnames,&obj0)) goto fail; | |
24947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
24948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24949 | { | |
24950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24951 | result = (int)(arg1)->GetPosition(); | |
24952 | ||
24953 | wxPyEndAllowThreads(__tstate); | |
24954 | if (PyErr_Occurred()) SWIG_fail; | |
24955 | } | |
24956 | resultobj = SWIG_From_int((int)result); | |
24957 | return resultobj; | |
24958 | fail: | |
24959 | return NULL; | |
24960 | } | |
24961 | ||
24962 | ||
24963 | static PyObject *_wrap_ArrowHead_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
24964 | PyObject *resultobj; | |
24965 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24966 | int arg2 ; | |
24967 | PyObject * obj0 = 0 ; | |
24968 | PyObject * obj1 = 0 ; | |
24969 | char *kwnames[] = { | |
24970 | (char *) "self",(char *) "pos", NULL | |
24971 | }; | |
24972 | ||
24973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
24974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
24975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24976 | arg2 = (int)SWIG_As_int(obj1); | |
24977 | if (PyErr_Occurred()) SWIG_fail; | |
24978 | { | |
24979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24980 | (arg1)->SetPosition(arg2); | |
24981 | ||
24982 | wxPyEndAllowThreads(__tstate); | |
24983 | if (PyErr_Occurred()) SWIG_fail; | |
24984 | } | |
24985 | Py_INCREF(Py_None); resultobj = Py_None; | |
24986 | return resultobj; | |
24987 | fail: | |
24988 | return NULL; | |
24989 | } | |
24990 | ||
24991 | ||
24992 | static PyObject *_wrap_ArrowHead_GetXOffset(PyObject *, PyObject *args, PyObject *kwargs) { | |
24993 | PyObject *resultobj; | |
24994 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24995 | double result; | |
24996 | PyObject * obj0 = 0 ; | |
24997 | char *kwnames[] = { | |
24998 | (char *) "self", NULL | |
24999 | }; | |
25000 | ||
25001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetXOffset",kwnames,&obj0)) goto fail; | |
25002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25004 | { | |
25005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25006 | result = (double)(arg1)->GetXOffset(); | |
25007 | ||
25008 | wxPyEndAllowThreads(__tstate); | |
25009 | if (PyErr_Occurred()) SWIG_fail; | |
25010 | } | |
25011 | resultobj = SWIG_From_double((double)result); | |
25012 | return resultobj; | |
25013 | fail: | |
25014 | return NULL; | |
25015 | } | |
25016 | ||
25017 | ||
25018 | static PyObject *_wrap_ArrowHead_GetYOffset(PyObject *, PyObject *args, PyObject *kwargs) { | |
25019 | PyObject *resultobj; | |
25020 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25021 | double result; | |
25022 | PyObject * obj0 = 0 ; | |
25023 | char *kwnames[] = { | |
25024 | (char *) "self", NULL | |
25025 | }; | |
25026 | ||
25027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetYOffset",kwnames,&obj0)) goto fail; | |
25028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25030 | { | |
25031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25032 | result = (double)(arg1)->GetYOffset(); | |
25033 | ||
25034 | wxPyEndAllowThreads(__tstate); | |
25035 | if (PyErr_Occurred()) SWIG_fail; | |
25036 | } | |
25037 | resultobj = SWIG_From_double((double)result); | |
25038 | return resultobj; | |
25039 | fail: | |
25040 | return NULL; | |
25041 | } | |
25042 | ||
25043 | ||
25044 | static PyObject *_wrap_ArrowHead_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
25045 | PyObject *resultobj; | |
25046 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25047 | double result; | |
25048 | PyObject * obj0 = 0 ; | |
25049 | char *kwnames[] = { | |
25050 | (char *) "self", NULL | |
25051 | }; | |
25052 | ||
25053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetSpacing",kwnames,&obj0)) goto fail; | |
25054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25056 | { | |
25057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25058 | result = (double)(arg1)->GetSpacing(); | |
25059 | ||
25060 | wxPyEndAllowThreads(__tstate); | |
25061 | if (PyErr_Occurred()) SWIG_fail; | |
25062 | } | |
25063 | resultobj = SWIG_From_double((double)result); | |
25064 | return resultobj; | |
25065 | fail: | |
25066 | return NULL; | |
25067 | } | |
25068 | ||
25069 | ||
25070 | static PyObject *_wrap_ArrowHead_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
25071 | PyObject *resultobj; | |
25072 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25073 | double result; | |
25074 | PyObject * obj0 = 0 ; | |
25075 | char *kwnames[] = { | |
25076 | (char *) "self", NULL | |
25077 | }; | |
25078 | ||
25079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetSize",kwnames,&obj0)) goto fail; | |
25080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25082 | { | |
25083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25084 | result = (double)(arg1)->GetSize(); | |
25085 | ||
25086 | wxPyEndAllowThreads(__tstate); | |
25087 | if (PyErr_Occurred()) SWIG_fail; | |
25088 | } | |
25089 | resultobj = SWIG_From_double((double)result); | |
25090 | return resultobj; | |
25091 | fail: | |
25092 | return NULL; | |
25093 | } | |
25094 | ||
25095 | ||
25096 | static PyObject *_wrap_ArrowHead_GetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
25097 | PyObject *resultobj; | |
25098 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25099 | wxString result; | |
25100 | PyObject * obj0 = 0 ; | |
25101 | char *kwnames[] = { | |
25102 | (char *) "self", NULL | |
25103 | }; | |
25104 | ||
25105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetName",kwnames,&obj0)) goto fail; | |
25106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25108 | { | |
25109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25110 | result = (arg1)->GetName(); | |
25111 | ||
25112 | wxPyEndAllowThreads(__tstate); | |
25113 | if (PyErr_Occurred()) SWIG_fail; | |
25114 | } | |
25115 | { | |
25116 | #if wxUSE_UNICODE | |
25117 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25118 | #else | |
25119 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25120 | #endif | |
25121 | } | |
25122 | return resultobj; | |
25123 | fail: | |
25124 | return NULL; | |
25125 | } | |
25126 | ||
25127 | ||
25128 | static PyObject *_wrap_ArrowHead_SetXOffset(PyObject *, PyObject *args, PyObject *kwargs) { | |
25129 | PyObject *resultobj; | |
25130 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25131 | double arg2 ; | |
25132 | PyObject * obj0 = 0 ; | |
25133 | PyObject * obj1 = 0 ; | |
25134 | char *kwnames[] = { | |
25135 | (char *) "self",(char *) "x", NULL | |
25136 | }; | |
25137 | ||
25138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetXOffset",kwnames,&obj0,&obj1)) goto fail; | |
25139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25141 | arg2 = (double)SWIG_As_double(obj1); | |
25142 | if (PyErr_Occurred()) SWIG_fail; | |
25143 | { | |
25144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25145 | (arg1)->SetXOffset(arg2); | |
25146 | ||
25147 | wxPyEndAllowThreads(__tstate); | |
25148 | if (PyErr_Occurred()) SWIG_fail; | |
25149 | } | |
25150 | Py_INCREF(Py_None); resultobj = Py_None; | |
25151 | return resultobj; | |
25152 | fail: | |
25153 | return NULL; | |
25154 | } | |
25155 | ||
25156 | ||
25157 | static PyObject *_wrap_ArrowHead_SetYOffset(PyObject *, PyObject *args, PyObject *kwargs) { | |
25158 | PyObject *resultobj; | |
25159 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25160 | double arg2 ; | |
25161 | PyObject * obj0 = 0 ; | |
25162 | PyObject * obj1 = 0 ; | |
25163 | char *kwnames[] = { | |
25164 | (char *) "self",(char *) "y", NULL | |
25165 | }; | |
25166 | ||
25167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetYOffset",kwnames,&obj0,&obj1)) goto fail; | |
25168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25170 | arg2 = (double)SWIG_As_double(obj1); | |
25171 | if (PyErr_Occurred()) SWIG_fail; | |
25172 | { | |
25173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25174 | (arg1)->SetYOffset(arg2); | |
25175 | ||
25176 | wxPyEndAllowThreads(__tstate); | |
25177 | if (PyErr_Occurred()) SWIG_fail; | |
25178 | } | |
25179 | Py_INCREF(Py_None); resultobj = Py_None; | |
25180 | return resultobj; | |
25181 | fail: | |
25182 | return NULL; | |
25183 | } | |
25184 | ||
25185 | ||
25186 | static PyObject *_wrap_ArrowHead_GetMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
25187 | PyObject *resultobj; | |
25188 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25189 | wxPseudoMetaFile *result; | |
25190 | PyObject * obj0 = 0 ; | |
25191 | char *kwnames[] = { | |
25192 | (char *) "self", NULL | |
25193 | }; | |
25194 | ||
25195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetMetaFile",kwnames,&obj0)) goto fail; | |
25196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25198 | { | |
25199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25200 | result = (wxPseudoMetaFile *)(arg1)->GetMetaFile(); | |
25201 | ||
25202 | wxPyEndAllowThreads(__tstate); | |
25203 | if (PyErr_Occurred()) SWIG_fail; | |
25204 | } | |
25205 | { | |
25206 | resultobj = wxPyMake_wxObject(result, 0); | |
25207 | } | |
25208 | return resultobj; | |
25209 | fail: | |
25210 | return NULL; | |
25211 | } | |
25212 | ||
25213 | ||
25214 | static PyObject *_wrap_ArrowHead_GetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
25215 | PyObject *resultobj; | |
25216 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25217 | long result; | |
25218 | PyObject * obj0 = 0 ; | |
25219 | char *kwnames[] = { | |
25220 | (char *) "self", NULL | |
25221 | }; | |
25222 | ||
25223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetId",kwnames,&obj0)) goto fail; | |
25224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25226 | { | |
25227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25228 | result = (long)(arg1)->GetId(); | |
25229 | ||
25230 | wxPyEndAllowThreads(__tstate); | |
25231 | if (PyErr_Occurred()) SWIG_fail; | |
25232 | } | |
25233 | resultobj = SWIG_From_long((long)result); | |
25234 | return resultobj; | |
25235 | fail: | |
25236 | return NULL; | |
25237 | } | |
25238 | ||
25239 | ||
25240 | static PyObject *_wrap_ArrowHead_GetArrowEnd(PyObject *, PyObject *args, PyObject *kwargs) { | |
25241 | PyObject *resultobj; | |
25242 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25243 | int result; | |
25244 | PyObject * obj0 = 0 ; | |
25245 | char *kwnames[] = { | |
25246 | (char *) "self", NULL | |
25247 | }; | |
25248 | ||
25249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetArrowEnd",kwnames,&obj0)) goto fail; | |
25250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25252 | { | |
25253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25254 | result = (int)(arg1)->GetArrowEnd(); | |
25255 | ||
25256 | wxPyEndAllowThreads(__tstate); | |
25257 | if (PyErr_Occurred()) SWIG_fail; | |
25258 | } | |
25259 | resultobj = SWIG_From_int((int)result); | |
25260 | return resultobj; | |
25261 | fail: | |
25262 | return NULL; | |
25263 | } | |
25264 | ||
25265 | ||
25266 | static PyObject *_wrap_ArrowHead_GetArrowSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
25267 | PyObject *resultobj; | |
25268 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25269 | double result; | |
25270 | PyObject * obj0 = 0 ; | |
25271 | char *kwnames[] = { | |
25272 | (char *) "self", NULL | |
25273 | }; | |
25274 | ||
25275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetArrowSize",kwnames,&obj0)) goto fail; | |
25276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25278 | { | |
25279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25280 | result = (double)(arg1)->GetArrowSize(); | |
25281 | ||
25282 | wxPyEndAllowThreads(__tstate); | |
25283 | if (PyErr_Occurred()) SWIG_fail; | |
25284 | } | |
25285 | resultobj = SWIG_From_double((double)result); | |
25286 | return resultobj; | |
25287 | fail: | |
25288 | return NULL; | |
25289 | } | |
25290 | ||
25291 | ||
25292 | static PyObject *_wrap_ArrowHead_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
25293 | PyObject *resultobj; | |
25294 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25295 | double arg2 ; | |
25296 | PyObject * obj0 = 0 ; | |
25297 | PyObject * obj1 = 0 ; | |
25298 | char *kwnames[] = { | |
25299 | (char *) "self",(char *) "size", NULL | |
25300 | }; | |
25301 | ||
25302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
25303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25305 | arg2 = (double)SWIG_As_double(obj1); | |
25306 | if (PyErr_Occurred()) SWIG_fail; | |
25307 | { | |
25308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25309 | (arg1)->SetSize(arg2); | |
25310 | ||
25311 | wxPyEndAllowThreads(__tstate); | |
25312 | if (PyErr_Occurred()) SWIG_fail; | |
25313 | } | |
25314 | Py_INCREF(Py_None); resultobj = Py_None; | |
25315 | return resultobj; | |
25316 | fail: | |
25317 | return NULL; | |
25318 | } | |
25319 | ||
25320 | ||
25321 | static PyObject *_wrap_ArrowHead_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
25322 | PyObject *resultobj; | |
25323 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25324 | double arg2 ; | |
25325 | PyObject * obj0 = 0 ; | |
25326 | PyObject * obj1 = 0 ; | |
25327 | char *kwnames[] = { | |
25328 | (char *) "self",(char *) "sp", NULL | |
25329 | }; | |
25330 | ||
25331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
25332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, | |
25333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25334 | arg2 = (double)SWIG_As_double(obj1); | |
25335 | if (PyErr_Occurred()) SWIG_fail; | |
25336 | { | |
25337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25338 | (arg1)->SetSpacing(arg2); | |
25339 | ||
25340 | wxPyEndAllowThreads(__tstate); | |
25341 | if (PyErr_Occurred()) SWIG_fail; | |
25342 | } | |
25343 | Py_INCREF(Py_None); resultobj = Py_None; | |
25344 | return resultobj; | |
25345 | fail: | |
25346 | return NULL; | |
25347 | } | |
25348 | ||
25349 | ||
25350 | static PyObject * ArrowHead_swigregister(PyObject *, PyObject *args) { | |
25351 | PyObject *obj; | |
25352 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25353 | SWIG_TypeClientData(SWIGTYPE_p_wxArrowHead, obj); | |
25354 | Py_INCREF(obj); | |
25355 | return Py_BuildValue((char *)""); | |
25356 | } | |
25357 | static PyObject *_wrap_new_PyLineShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
25358 | PyObject *resultobj; | |
25359 | wxPyLineShape *result; | |
25360 | char *kwnames[] = { | |
25361 | NULL | |
25362 | }; | |
25363 | ||
25364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLineShape",kwnames)) goto fail; | |
25365 | { | |
25366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25367 | result = (wxPyLineShape *)new wxPyLineShape(); | |
25368 | ||
25369 | wxPyEndAllowThreads(__tstate); | |
25370 | if (PyErr_Occurred()) SWIG_fail; | |
25371 | } | |
25372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLineShape, 1); | |
25373 | return resultobj; | |
25374 | fail: | |
25375 | return NULL; | |
25376 | } | |
25377 | ||
25378 | ||
25379 | static PyObject *_wrap_PyLineShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
25380 | PyObject *resultobj; | |
25381 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25382 | PyObject *arg2 = (PyObject *) 0 ; | |
25383 | PyObject *arg3 = (PyObject *) 0 ; | |
25384 | PyObject * obj0 = 0 ; | |
25385 | PyObject * obj1 = 0 ; | |
25386 | PyObject * obj2 = 0 ; | |
25387 | char *kwnames[] = { | |
25388 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25389 | }; | |
25390 | ||
25391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25394 | arg2 = obj1; | |
25395 | arg3 = obj2; | |
25396 | { | |
25397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25398 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25399 | ||
25400 | wxPyEndAllowThreads(__tstate); | |
25401 | if (PyErr_Occurred()) SWIG_fail; | |
25402 | } | |
25403 | Py_INCREF(Py_None); resultobj = Py_None; | |
25404 | return resultobj; | |
25405 | fail: | |
25406 | return NULL; | |
25407 | } | |
25408 | ||
25409 | ||
25410 | static PyObject *_wrap_PyLineShape_AddArrow(PyObject *, PyObject *args, PyObject *kwargs) { | |
25411 | PyObject *resultobj; | |
25412 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25413 | int arg2 ; | |
25414 | int arg3 = (int) ARROW_POSITION_END ; | |
25415 | double arg4 = (double) 10.0 ; | |
25416 | double arg5 = (double) 0.0 ; | |
25417 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
25418 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25419 | wxPseudoMetaFile *arg7 = (wxPseudoMetaFile *) NULL ; | |
25420 | long arg8 = (long) -1 ; | |
25421 | bool temp6 = false ; | |
25422 | PyObject * obj0 = 0 ; | |
25423 | PyObject * obj1 = 0 ; | |
25424 | PyObject * obj2 = 0 ; | |
25425 | PyObject * obj3 = 0 ; | |
25426 | PyObject * obj4 = 0 ; | |
25427 | PyObject * obj5 = 0 ; | |
25428 | PyObject * obj6 = 0 ; | |
25429 | PyObject * obj7 = 0 ; | |
25430 | char *kwnames[] = { | |
25431 | (char *) "self",(char *) "type",(char *) "end",(char *) "arrowSize",(char *) "xOffset",(char *) "name",(char *) "mf",(char *) "arrowId", NULL | |
25432 | }; | |
25433 | ||
25434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:PyLineShape_AddArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
25435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25437 | arg2 = (int)SWIG_As_int(obj1); | |
25438 | if (PyErr_Occurred()) SWIG_fail; | |
25439 | if (obj2) { | |
25440 | arg3 = (int)SWIG_As_int(obj2); | |
25441 | if (PyErr_Occurred()) SWIG_fail; | |
25442 | } | |
25443 | if (obj3) { | |
25444 | arg4 = (double)SWIG_As_double(obj3); | |
25445 | if (PyErr_Occurred()) SWIG_fail; | |
25446 | } | |
25447 | if (obj4) { | |
25448 | arg5 = (double)SWIG_As_double(obj4); | |
25449 | if (PyErr_Occurred()) SWIG_fail; | |
25450 | } | |
25451 | if (obj5) { | |
25452 | { | |
25453 | arg6 = wxString_in_helper(obj5); | |
25454 | if (arg6 == NULL) SWIG_fail; | |
25455 | temp6 = true; | |
25456 | } | |
25457 | } | |
25458 | if (obj6) { | |
25459 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPseudoMetaFile, | |
25460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25461 | } | |
25462 | if (obj7) { | |
25463 | arg8 = (long)SWIG_As_long(obj7); | |
25464 | if (PyErr_Occurred()) SWIG_fail; | |
25465 | } | |
25466 | { | |
25467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25468 | (arg1)->AddArrow(arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7,arg8); | |
25469 | ||
25470 | wxPyEndAllowThreads(__tstate); | |
25471 | if (PyErr_Occurred()) SWIG_fail; | |
25472 | } | |
25473 | Py_INCREF(Py_None); resultobj = Py_None; | |
25474 | { | |
25475 | if (temp6) | |
25476 | delete arg6; | |
25477 | } | |
25478 | return resultobj; | |
25479 | fail: | |
25480 | { | |
25481 | if (temp6) | |
25482 | delete arg6; | |
25483 | } | |
25484 | return NULL; | |
25485 | } | |
25486 | ||
25487 | ||
25488 | static PyObject *_wrap_PyLineShape_AddArrowOrdered(PyObject *, PyObject *args, PyObject *kwargs) { | |
25489 | PyObject *resultobj; | |
25490 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25491 | wxArrowHead *arg2 = (wxArrowHead *) 0 ; | |
25492 | PyObject *arg3 = (PyObject *) 0 ; | |
25493 | int arg4 ; | |
25494 | PyObject * obj0 = 0 ; | |
25495 | PyObject * obj1 = 0 ; | |
25496 | PyObject * obj2 = 0 ; | |
25497 | PyObject * obj3 = 0 ; | |
25498 | char *kwnames[] = { | |
25499 | (char *) "self",(char *) "arrow",(char *) "referenceList",(char *) "end", NULL | |
25500 | }; | |
25501 | ||
25502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyLineShape_AddArrowOrdered",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25505 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxArrowHead, | |
25506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25507 | arg3 = obj2; | |
25508 | arg4 = (int)SWIG_As_int(obj3); | |
25509 | if (PyErr_Occurred()) SWIG_fail; | |
25510 | { | |
25511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25512 | wxPyLineShape_AddArrowOrdered(arg1,arg2,arg3,arg4); | |
25513 | ||
25514 | wxPyEndAllowThreads(__tstate); | |
25515 | if (PyErr_Occurred()) SWIG_fail; | |
25516 | } | |
25517 | Py_INCREF(Py_None); resultobj = Py_None; | |
25518 | return resultobj; | |
25519 | fail: | |
25520 | return NULL; | |
25521 | } | |
25522 | ||
25523 | ||
25524 | static PyObject *_wrap_PyLineShape_ClearArrow(PyObject *, PyObject *args, PyObject *kwargs) { | |
25525 | PyObject *resultobj; | |
25526 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25527 | wxString *arg2 = 0 ; | |
25528 | bool result; | |
25529 | bool temp2 = false ; | |
25530 | PyObject * obj0 = 0 ; | |
25531 | PyObject * obj1 = 0 ; | |
25532 | char *kwnames[] = { | |
25533 | (char *) "self",(char *) "name", NULL | |
25534 | }; | |
25535 | ||
25536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_ClearArrow",kwnames,&obj0,&obj1)) goto fail; | |
25537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25539 | { | |
25540 | arg2 = wxString_in_helper(obj1); | |
25541 | if (arg2 == NULL) SWIG_fail; | |
25542 | temp2 = true; | |
25543 | } | |
25544 | { | |
25545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25546 | result = (bool)(arg1)->ClearArrow((wxString const &)*arg2); | |
25547 | ||
25548 | wxPyEndAllowThreads(__tstate); | |
25549 | if (PyErr_Occurred()) SWIG_fail; | |
25550 | } | |
25551 | { | |
25552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25553 | } | |
25554 | { | |
25555 | if (temp2) | |
25556 | delete arg2; | |
25557 | } | |
25558 | return resultobj; | |
25559 | fail: | |
25560 | { | |
25561 | if (temp2) | |
25562 | delete arg2; | |
25563 | } | |
25564 | return NULL; | |
25565 | } | |
25566 | ||
25567 | ||
25568 | static PyObject *_wrap_PyLineShape_ClearArrowsAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
25569 | PyObject *resultobj; | |
25570 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25571 | int arg2 = (int) -1 ; | |
25572 | PyObject * obj0 = 0 ; | |
25573 | PyObject * obj1 = 0 ; | |
25574 | char *kwnames[] = { | |
25575 | (char *) "self",(char *) "position", NULL | |
25576 | }; | |
25577 | ||
25578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyLineShape_ClearArrowsAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
25579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25581 | if (obj1) { | |
25582 | arg2 = (int)SWIG_As_int(obj1); | |
25583 | if (PyErr_Occurred()) SWIG_fail; | |
25584 | } | |
25585 | { | |
25586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25587 | (arg1)->ClearArrowsAtPosition(arg2); | |
25588 | ||
25589 | wxPyEndAllowThreads(__tstate); | |
25590 | if (PyErr_Occurred()) SWIG_fail; | |
25591 | } | |
25592 | Py_INCREF(Py_None); resultobj = Py_None; | |
25593 | return resultobj; | |
25594 | fail: | |
25595 | return NULL; | |
25596 | } | |
25597 | ||
25598 | ||
25599 | static PyObject *_wrap_PyLineShape_DrawArrow(PyObject *, PyObject *args, PyObject *kwargs) { | |
25600 | PyObject *resultobj; | |
25601 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25602 | wxDC *arg2 = 0 ; | |
25603 | wxArrowHead *arg3 = (wxArrowHead *) 0 ; | |
25604 | double arg4 ; | |
25605 | bool arg5 ; | |
25606 | PyObject * obj0 = 0 ; | |
25607 | PyObject * obj1 = 0 ; | |
25608 | PyObject * obj2 = 0 ; | |
25609 | PyObject * obj3 = 0 ; | |
25610 | PyObject * obj4 = 0 ; | |
25611 | char *kwnames[] = { | |
25612 | (char *) "self",(char *) "dc",(char *) "arrow",(char *) "xOffset",(char *) "proportionalOffset", NULL | |
25613 | }; | |
25614 | ||
25615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyLineShape_DrawArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25619 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25620 | SWIG_fail; | |
25621 | if (arg2 == NULL) { | |
25622 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25623 | SWIG_fail; | |
25624 | } | |
25625 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxArrowHead, | |
25626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25627 | arg4 = (double)SWIG_As_double(obj3); | |
25628 | if (PyErr_Occurred()) SWIG_fail; | |
25629 | arg5 = (bool)SWIG_As_bool(obj4); | |
25630 | if (PyErr_Occurred()) SWIG_fail; | |
25631 | { | |
25632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25633 | (arg1)->DrawArrow(*arg2,arg3,arg4,arg5); | |
25634 | ||
25635 | wxPyEndAllowThreads(__tstate); | |
25636 | if (PyErr_Occurred()) SWIG_fail; | |
25637 | } | |
25638 | Py_INCREF(Py_None); resultobj = Py_None; | |
25639 | return resultobj; | |
25640 | fail: | |
25641 | return NULL; | |
25642 | } | |
25643 | ||
25644 | ||
25645 | static PyObject *_wrap_PyLineShape_DeleteArrowHeadId(PyObject *, PyObject *args, PyObject *kwargs) { | |
25646 | PyObject *resultobj; | |
25647 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25648 | long arg2 ; | |
25649 | bool result; | |
25650 | PyObject * obj0 = 0 ; | |
25651 | PyObject * obj1 = 0 ; | |
25652 | char *kwnames[] = { | |
25653 | (char *) "self",(char *) "arrowId", NULL | |
25654 | }; | |
25655 | ||
25656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_DeleteArrowHeadId",kwnames,&obj0,&obj1)) goto fail; | |
25657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25659 | arg2 = (long)SWIG_As_long(obj1); | |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
25661 | { | |
25662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25663 | result = (bool)(arg1)->DeleteArrowHead(arg2); | |
25664 | ||
25665 | wxPyEndAllowThreads(__tstate); | |
25666 | if (PyErr_Occurred()) SWIG_fail; | |
25667 | } | |
25668 | { | |
25669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25670 | } | |
25671 | return resultobj; | |
25672 | fail: | |
25673 | return NULL; | |
25674 | } | |
25675 | ||
25676 | ||
25677 | static PyObject *_wrap_PyLineShape_DeleteArrowHead(PyObject *, PyObject *args, PyObject *kwargs) { | |
25678 | PyObject *resultobj; | |
25679 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25680 | int arg2 ; | |
25681 | wxString *arg3 = 0 ; | |
25682 | bool result; | |
25683 | bool temp3 = false ; | |
25684 | PyObject * obj0 = 0 ; | |
25685 | PyObject * obj1 = 0 ; | |
25686 | PyObject * obj2 = 0 ; | |
25687 | char *kwnames[] = { | |
25688 | (char *) "self",(char *) "position",(char *) "name", NULL | |
25689 | }; | |
25690 | ||
25691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_DeleteArrowHead",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25694 | arg2 = (int)SWIG_As_int(obj1); | |
25695 | if (PyErr_Occurred()) SWIG_fail; | |
25696 | { | |
25697 | arg3 = wxString_in_helper(obj2); | |
25698 | if (arg3 == NULL) SWIG_fail; | |
25699 | temp3 = true; | |
25700 | } | |
25701 | { | |
25702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25703 | result = (bool)(arg1)->DeleteArrowHead(arg2,(wxString const &)*arg3); | |
25704 | ||
25705 | wxPyEndAllowThreads(__tstate); | |
25706 | if (PyErr_Occurred()) SWIG_fail; | |
25707 | } | |
25708 | { | |
25709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25710 | } | |
25711 | { | |
25712 | if (temp3) | |
25713 | delete arg3; | |
25714 | } | |
25715 | return resultobj; | |
25716 | fail: | |
25717 | { | |
25718 | if (temp3) | |
25719 | delete arg3; | |
25720 | } | |
25721 | return NULL; | |
25722 | } | |
25723 | ||
25724 | ||
25725 | static PyObject *_wrap_PyLineShape_DeleteLineControlPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
25726 | PyObject *resultobj; | |
25727 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25728 | bool result; | |
25729 | PyObject * obj0 = 0 ; | |
25730 | char *kwnames[] = { | |
25731 | (char *) "self", NULL | |
25732 | }; | |
25733 | ||
25734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_DeleteLineControlPoint",kwnames,&obj0)) goto fail; | |
25735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25737 | { | |
25738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25739 | result = (bool)(arg1)->DeleteLineControlPoint(); | |
25740 | ||
25741 | wxPyEndAllowThreads(__tstate); | |
25742 | if (PyErr_Occurred()) SWIG_fail; | |
25743 | } | |
25744 | { | |
25745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25746 | } | |
25747 | return resultobj; | |
25748 | fail: | |
25749 | return NULL; | |
25750 | } | |
25751 | ||
25752 | ||
25753 | static PyObject *_wrap_PyLineShape_DrawArrows(PyObject *, PyObject *args, PyObject *kwargs) { | |
25754 | PyObject *resultobj; | |
25755 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25756 | wxDC *arg2 = 0 ; | |
25757 | PyObject * obj0 = 0 ; | |
25758 | PyObject * obj1 = 0 ; | |
25759 | char *kwnames[] = { | |
25760 | (char *) "self",(char *) "dc", NULL | |
25761 | }; | |
25762 | ||
25763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_DrawArrows",kwnames,&obj0,&obj1)) goto fail; | |
25764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25766 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25767 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25768 | SWIG_fail; | |
25769 | if (arg2 == NULL) { | |
25770 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25771 | SWIG_fail; | |
25772 | } | |
25773 | { | |
25774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25775 | (arg1)->DrawArrows(*arg2); | |
25776 | ||
25777 | wxPyEndAllowThreads(__tstate); | |
25778 | if (PyErr_Occurred()) SWIG_fail; | |
25779 | } | |
25780 | Py_INCREF(Py_None); resultobj = Py_None; | |
25781 | return resultobj; | |
25782 | fail: | |
25783 | return NULL; | |
25784 | } | |
25785 | ||
25786 | ||
25787 | static PyObject *_wrap_PyLineShape_DrawRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
25788 | PyObject *resultobj; | |
25789 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25790 | wxDC *arg2 = 0 ; | |
25791 | wxShapeRegion *arg3 = (wxShapeRegion *) 0 ; | |
25792 | double arg4 ; | |
25793 | double arg5 ; | |
25794 | PyObject * obj0 = 0 ; | |
25795 | PyObject * obj1 = 0 ; | |
25796 | PyObject * obj2 = 0 ; | |
25797 | PyObject * obj3 = 0 ; | |
25798 | PyObject * obj4 = 0 ; | |
25799 | char *kwnames[] = { | |
25800 | (char *) "self",(char *) "dc",(char *) "region",(char *) "x",(char *) "y", NULL | |
25801 | }; | |
25802 | ||
25803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyLineShape_DrawRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25807 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25808 | SWIG_fail; | |
25809 | if (arg2 == NULL) { | |
25810 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25811 | SWIG_fail; | |
25812 | } | |
25813 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxShapeRegion, | |
25814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25815 | arg4 = (double)SWIG_As_double(obj3); | |
25816 | if (PyErr_Occurred()) SWIG_fail; | |
25817 | arg5 = (double)SWIG_As_double(obj4); | |
25818 | if (PyErr_Occurred()) SWIG_fail; | |
25819 | { | |
25820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25821 | (arg1)->DrawRegion(*arg2,arg3,arg4,arg5); | |
25822 | ||
25823 | wxPyEndAllowThreads(__tstate); | |
25824 | if (PyErr_Occurred()) SWIG_fail; | |
25825 | } | |
25826 | Py_INCREF(Py_None); resultobj = Py_None; | |
25827 | return resultobj; | |
25828 | fail: | |
25829 | return NULL; | |
25830 | } | |
25831 | ||
25832 | ||
25833 | static PyObject *_wrap_PyLineShape_EraseRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
25834 | PyObject *resultobj; | |
25835 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25836 | wxDC *arg2 = 0 ; | |
25837 | wxShapeRegion *arg3 = (wxShapeRegion *) 0 ; | |
25838 | double arg4 ; | |
25839 | double arg5 ; | |
25840 | PyObject * obj0 = 0 ; | |
25841 | PyObject * obj1 = 0 ; | |
25842 | PyObject * obj2 = 0 ; | |
25843 | PyObject * obj3 = 0 ; | |
25844 | PyObject * obj4 = 0 ; | |
25845 | char *kwnames[] = { | |
25846 | (char *) "self",(char *) "dc",(char *) "region",(char *) "x",(char *) "y", NULL | |
25847 | }; | |
25848 | ||
25849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyLineShape_EraseRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25854 | SWIG_fail; | |
25855 | if (arg2 == NULL) { | |
25856 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25857 | SWIG_fail; | |
25858 | } | |
25859 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxShapeRegion, | |
25860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25861 | arg4 = (double)SWIG_As_double(obj3); | |
25862 | if (PyErr_Occurred()) SWIG_fail; | |
25863 | arg5 = (double)SWIG_As_double(obj4); | |
25864 | if (PyErr_Occurred()) SWIG_fail; | |
25865 | { | |
25866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25867 | (arg1)->EraseRegion(*arg2,arg3,arg4,arg5); | |
25868 | ||
25869 | wxPyEndAllowThreads(__tstate); | |
25870 | if (PyErr_Occurred()) SWIG_fail; | |
25871 | } | |
25872 | Py_INCREF(Py_None); resultobj = Py_None; | |
25873 | return resultobj; | |
25874 | fail: | |
25875 | return NULL; | |
25876 | } | |
25877 | ||
25878 | ||
25879 | static PyObject *_wrap_PyLineShape_FindArrowHeadId(PyObject *, PyObject *args, PyObject *kwargs) { | |
25880 | PyObject *resultobj; | |
25881 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25882 | long arg2 ; | |
25883 | wxArrowHead *result; | |
25884 | PyObject * obj0 = 0 ; | |
25885 | PyObject * obj1 = 0 ; | |
25886 | char *kwnames[] = { | |
25887 | (char *) "self",(char *) "arrowId", NULL | |
25888 | }; | |
25889 | ||
25890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_FindArrowHeadId",kwnames,&obj0,&obj1)) goto fail; | |
25891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25893 | arg2 = (long)SWIG_As_long(obj1); | |
25894 | if (PyErr_Occurred()) SWIG_fail; | |
25895 | { | |
25896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25897 | result = (wxArrowHead *)(arg1)->FindArrowHead(arg2); | |
25898 | ||
25899 | wxPyEndAllowThreads(__tstate); | |
25900 | if (PyErr_Occurred()) SWIG_fail; | |
25901 | } | |
25902 | { | |
25903 | resultobj = wxPyMake_wxObject(result, 0); | |
25904 | } | |
25905 | return resultobj; | |
25906 | fail: | |
25907 | return NULL; | |
25908 | } | |
25909 | ||
25910 | ||
25911 | static PyObject *_wrap_PyLineShape_FindArrowHead(PyObject *, PyObject *args, PyObject *kwargs) { | |
25912 | PyObject *resultobj; | |
25913 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25914 | int arg2 ; | |
25915 | wxString *arg3 = 0 ; | |
25916 | wxArrowHead *result; | |
25917 | bool temp3 = false ; | |
25918 | PyObject * obj0 = 0 ; | |
25919 | PyObject * obj1 = 0 ; | |
25920 | PyObject * obj2 = 0 ; | |
25921 | char *kwnames[] = { | |
25922 | (char *) "self",(char *) "position",(char *) "name", NULL | |
25923 | }; | |
25924 | ||
25925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_FindArrowHead",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25928 | arg2 = (int)SWIG_As_int(obj1); | |
25929 | if (PyErr_Occurred()) SWIG_fail; | |
25930 | { | |
25931 | arg3 = wxString_in_helper(obj2); | |
25932 | if (arg3 == NULL) SWIG_fail; | |
25933 | temp3 = true; | |
25934 | } | |
25935 | { | |
25936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25937 | result = (wxArrowHead *)(arg1)->FindArrowHead(arg2,(wxString const &)*arg3); | |
25938 | ||
25939 | wxPyEndAllowThreads(__tstate); | |
25940 | if (PyErr_Occurred()) SWIG_fail; | |
25941 | } | |
25942 | { | |
25943 | resultobj = wxPyMake_wxObject(result, 0); | |
25944 | } | |
25945 | { | |
25946 | if (temp3) | |
25947 | delete arg3; | |
25948 | } | |
25949 | return resultobj; | |
25950 | fail: | |
25951 | { | |
25952 | if (temp3) | |
25953 | delete arg3; | |
25954 | } | |
25955 | return NULL; | |
25956 | } | |
25957 | ||
25958 | ||
25959 | static PyObject *_wrap_PyLineShape_FindLineEndPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
25960 | PyObject *resultobj; | |
25961 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25962 | double *arg2 = (double *) 0 ; | |
25963 | double *arg3 = (double *) 0 ; | |
25964 | double *arg4 = (double *) 0 ; | |
25965 | double *arg5 = (double *) 0 ; | |
25966 | double temp2 ; | |
25967 | int res2 = 0 ; | |
25968 | double temp3 ; | |
25969 | int res3 = 0 ; | |
25970 | double temp4 ; | |
25971 | int res4 = 0 ; | |
25972 | double temp5 ; | |
25973 | int res5 = 0 ; | |
25974 | PyObject * obj0 = 0 ; | |
25975 | char *kwnames[] = { | |
25976 | (char *) "self", NULL | |
25977 | }; | |
25978 | ||
25979 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
25980 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
25981 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
25982 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
25983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_FindLineEndPoints",kwnames,&obj0)) goto fail; | |
25984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
25985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25986 | { | |
25987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25988 | (arg1)->FindLineEndPoints(arg2,arg3,arg4,arg5); | |
25989 | ||
25990 | wxPyEndAllowThreads(__tstate); | |
25991 | if (PyErr_Occurred()) SWIG_fail; | |
25992 | } | |
25993 | Py_INCREF(Py_None); resultobj = Py_None; | |
25994 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
25995 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
25996 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
25997 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
25998 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
25999 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
26000 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
26001 | SWIG_From_double((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, 0))); | |
26002 | return resultobj; | |
26003 | fail: | |
26004 | return NULL; | |
26005 | } | |
26006 | ||
26007 | ||
26008 | static PyObject *_wrap_PyLineShape_FindLinePosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
26009 | PyObject *resultobj; | |
26010 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26011 | double arg2 ; | |
26012 | double arg3 ; | |
26013 | int result; | |
26014 | PyObject * obj0 = 0 ; | |
26015 | PyObject * obj1 = 0 ; | |
26016 | PyObject * obj2 = 0 ; | |
26017 | char *kwnames[] = { | |
26018 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26019 | }; | |
26020 | ||
26021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_FindLinePosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26024 | arg2 = (double)SWIG_As_double(obj1); | |
26025 | if (PyErr_Occurred()) SWIG_fail; | |
26026 | arg3 = (double)SWIG_As_double(obj2); | |
26027 | if (PyErr_Occurred()) SWIG_fail; | |
26028 | { | |
26029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26030 | result = (int)(arg1)->FindLinePosition(arg2,arg3); | |
26031 | ||
26032 | wxPyEndAllowThreads(__tstate); | |
26033 | if (PyErr_Occurred()) SWIG_fail; | |
26034 | } | |
26035 | resultobj = SWIG_From_int((int)result); | |
26036 | return resultobj; | |
26037 | fail: | |
26038 | return NULL; | |
26039 | } | |
26040 | ||
26041 | ||
26042 | static PyObject *_wrap_PyLineShape_FindMinimumWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
26043 | PyObject *resultobj; | |
26044 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26045 | double result; | |
26046 | PyObject * obj0 = 0 ; | |
26047 | char *kwnames[] = { | |
26048 | (char *) "self", NULL | |
26049 | }; | |
26050 | ||
26051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_FindMinimumWidth",kwnames,&obj0)) goto fail; | |
26052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26054 | { | |
26055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26056 | result = (double)(arg1)->FindMinimumWidth(); | |
26057 | ||
26058 | wxPyEndAllowThreads(__tstate); | |
26059 | if (PyErr_Occurred()) SWIG_fail; | |
26060 | } | |
26061 | resultobj = SWIG_From_double((double)result); | |
26062 | return resultobj; | |
26063 | fail: | |
26064 | return NULL; | |
26065 | } | |
26066 | ||
26067 | ||
26068 | static PyObject *_wrap_PyLineShape_FindNth(PyObject *, PyObject *args, PyObject *kwargs) { | |
26069 | PyObject *resultobj; | |
26070 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26071 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26072 | int *arg3 = (int *) 0 ; | |
26073 | int *arg4 = (int *) 0 ; | |
26074 | bool arg5 ; | |
26075 | int temp3 ; | |
26076 | int res3 = 0 ; | |
26077 | int temp4 ; | |
26078 | int res4 = 0 ; | |
26079 | PyObject * obj0 = 0 ; | |
26080 | PyObject * obj1 = 0 ; | |
26081 | PyObject * obj2 = 0 ; | |
26082 | char *kwnames[] = { | |
26083 | (char *) "self",(char *) "image",(char *) "incoming", NULL | |
26084 | }; | |
26085 | ||
26086 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
26087 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
26088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_FindNth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26091 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26093 | arg5 = (bool)SWIG_As_bool(obj2); | |
26094 | if (PyErr_Occurred()) SWIG_fail; | |
26095 | { | |
26096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26097 | (arg1)->FindNth(arg2,arg3,arg4,arg5); | |
26098 | ||
26099 | wxPyEndAllowThreads(__tstate); | |
26100 | if (PyErr_Occurred()) SWIG_fail; | |
26101 | } | |
26102 | Py_INCREF(Py_None); resultobj = Py_None; | |
26103 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26104 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
26105 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
26106 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
26107 | return resultobj; | |
26108 | fail: | |
26109 | return NULL; | |
26110 | } | |
26111 | ||
26112 | ||
26113 | static PyObject *_wrap_PyLineShape_GetAttachmentFrom(PyObject *, PyObject *args, PyObject *kwargs) { | |
26114 | PyObject *resultobj; | |
26115 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26116 | int result; | |
26117 | PyObject * obj0 = 0 ; | |
26118 | char *kwnames[] = { | |
26119 | (char *) "self", NULL | |
26120 | }; | |
26121 | ||
26122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAttachmentFrom",kwnames,&obj0)) goto fail; | |
26123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26125 | { | |
26126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26127 | result = (int)(arg1)->GetAttachmentFrom(); | |
26128 | ||
26129 | wxPyEndAllowThreads(__tstate); | |
26130 | if (PyErr_Occurred()) SWIG_fail; | |
26131 | } | |
26132 | resultobj = SWIG_From_int((int)result); | |
26133 | return resultobj; | |
26134 | fail: | |
26135 | return NULL; | |
26136 | } | |
26137 | ||
26138 | ||
26139 | static PyObject *_wrap_PyLineShape_GetAttachmentTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
26140 | PyObject *resultobj; | |
26141 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26142 | int result; | |
26143 | PyObject * obj0 = 0 ; | |
26144 | char *kwnames[] = { | |
26145 | (char *) "self", NULL | |
26146 | }; | |
26147 | ||
26148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAttachmentTo",kwnames,&obj0)) goto fail; | |
26149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26151 | { | |
26152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26153 | result = (int)(arg1)->GetAttachmentTo(); | |
26154 | ||
26155 | wxPyEndAllowThreads(__tstate); | |
26156 | if (PyErr_Occurred()) SWIG_fail; | |
26157 | } | |
26158 | resultobj = SWIG_From_int((int)result); | |
26159 | return resultobj; | |
26160 | fail: | |
26161 | return NULL; | |
26162 | } | |
26163 | ||
26164 | ||
26165 | static PyObject *_wrap_PyLineShape_GetEnds(PyObject *, PyObject *args, PyObject *kwargs) { | |
26166 | PyObject *resultobj; | |
26167 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26168 | double *arg2 = (double *) 0 ; | |
26169 | double *arg3 = (double *) 0 ; | |
26170 | double *arg4 = (double *) 0 ; | |
26171 | double *arg5 = (double *) 0 ; | |
26172 | double temp2 ; | |
26173 | int res2 = 0 ; | |
26174 | double temp3 ; | |
26175 | int res3 = 0 ; | |
26176 | double temp4 ; | |
26177 | int res4 = 0 ; | |
26178 | double temp5 ; | |
26179 | int res5 = 0 ; | |
26180 | PyObject * obj0 = 0 ; | |
26181 | char *kwnames[] = { | |
26182 | (char *) "self", NULL | |
26183 | }; | |
26184 | ||
26185 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
26186 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
26187 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
26188 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
26189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetEnds",kwnames,&obj0)) goto fail; | |
26190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26192 | { | |
26193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26194 | (arg1)->GetEnds(arg2,arg3,arg4,arg5); | |
26195 | ||
26196 | wxPyEndAllowThreads(__tstate); | |
26197 | if (PyErr_Occurred()) SWIG_fail; | |
26198 | } | |
26199 | Py_INCREF(Py_None); resultobj = Py_None; | |
26200 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
26201 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
26202 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26203 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
26204 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
26205 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
26206 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
26207 | SWIG_From_double((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, 0))); | |
26208 | return resultobj; | |
26209 | fail: | |
26210 | return NULL; | |
26211 | } | |
26212 | ||
26213 | ||
26214 | static PyObject *_wrap_PyLineShape_GetFrom(PyObject *, PyObject *args, PyObject *kwargs) { | |
26215 | PyObject *resultobj; | |
26216 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26217 | wxPyShape *result; | |
26218 | PyObject * obj0 = 0 ; | |
26219 | char *kwnames[] = { | |
26220 | (char *) "self", NULL | |
26221 | }; | |
26222 | ||
26223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetFrom",kwnames,&obj0)) goto fail; | |
26224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26226 | { | |
26227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26228 | result = (wxPyShape *)(arg1)->GetFrom(); | |
26229 | ||
26230 | wxPyEndAllowThreads(__tstate); | |
26231 | if (PyErr_Occurred()) SWIG_fail; | |
26232 | } | |
26233 | { | |
26234 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
26235 | } | |
26236 | return resultobj; | |
26237 | fail: | |
26238 | return NULL; | |
26239 | } | |
26240 | ||
26241 | ||
26242 | static PyObject *_wrap_PyLineShape_GetLabelPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
26243 | PyObject *resultobj; | |
26244 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26245 | int arg2 ; | |
26246 | double *arg3 = (double *) 0 ; | |
26247 | double *arg4 = (double *) 0 ; | |
26248 | double temp3 ; | |
26249 | int res3 = 0 ; | |
26250 | double temp4 ; | |
26251 | int res4 = 0 ; | |
26252 | PyObject * obj0 = 0 ; | |
26253 | PyObject * obj1 = 0 ; | |
26254 | char *kwnames[] = { | |
26255 | (char *) "self",(char *) "position", NULL | |
26256 | }; | |
26257 | ||
26258 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
26259 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
26260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetLabelPosition",kwnames,&obj0,&obj1)) goto fail; | |
26261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26263 | arg2 = (int)SWIG_As_int(obj1); | |
26264 | if (PyErr_Occurred()) SWIG_fail; | |
26265 | { | |
26266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26267 | (arg1)->GetLabelPosition(arg2,arg3,arg4); | |
26268 | ||
26269 | wxPyEndAllowThreads(__tstate); | |
26270 | if (PyErr_Occurred()) SWIG_fail; | |
26271 | } | |
26272 | Py_INCREF(Py_None); resultobj = Py_None; | |
26273 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26274 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
26275 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
26276 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
26277 | return resultobj; | |
26278 | fail: | |
26279 | return NULL; | |
26280 | } | |
26281 | ||
26282 | ||
26283 | static PyObject *_wrap_PyLineShape_GetNextControlPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
26284 | PyObject *resultobj; | |
26285 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26286 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26287 | wxRealPoint *result; | |
26288 | PyObject * obj0 = 0 ; | |
26289 | PyObject * obj1 = 0 ; | |
26290 | char *kwnames[] = { | |
26291 | (char *) "self",(char *) "shape", NULL | |
26292 | }; | |
26293 | ||
26294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetNextControlPoint",kwnames,&obj0,&obj1)) goto fail; | |
26295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26297 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26299 | { | |
26300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26301 | result = (wxRealPoint *)(arg1)->GetNextControlPoint(arg2); | |
26302 | ||
26303 | wxPyEndAllowThreads(__tstate); | |
26304 | if (PyErr_Occurred()) SWIG_fail; | |
26305 | } | |
26306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 0); | |
26307 | return resultobj; | |
26308 | fail: | |
26309 | return NULL; | |
26310 | } | |
26311 | ||
26312 | ||
26313 | static PyObject *_wrap_PyLineShape_GetTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
26314 | PyObject *resultobj; | |
26315 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26316 | wxPyShape *result; | |
26317 | PyObject * obj0 = 0 ; | |
26318 | char *kwnames[] = { | |
26319 | (char *) "self", NULL | |
26320 | }; | |
26321 | ||
26322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetTo",kwnames,&obj0)) goto fail; | |
26323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26325 | { | |
26326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26327 | result = (wxPyShape *)(arg1)->GetTo(); | |
26328 | ||
26329 | wxPyEndAllowThreads(__tstate); | |
26330 | if (PyErr_Occurred()) SWIG_fail; | |
26331 | } | |
26332 | { | |
26333 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
26334 | } | |
26335 | return resultobj; | |
26336 | fail: | |
26337 | return NULL; | |
26338 | } | |
26339 | ||
26340 | ||
26341 | static PyObject *_wrap_PyLineShape_Initialise(PyObject *, PyObject *args, PyObject *kwargs) { | |
26342 | PyObject *resultobj; | |
26343 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26344 | PyObject * obj0 = 0 ; | |
26345 | char *kwnames[] = { | |
26346 | (char *) "self", NULL | |
26347 | }; | |
26348 | ||
26349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_Initialise",kwnames,&obj0)) goto fail; | |
26350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26352 | { | |
26353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26354 | (arg1)->Initialise(); | |
26355 | ||
26356 | wxPyEndAllowThreads(__tstate); | |
26357 | if (PyErr_Occurred()) SWIG_fail; | |
26358 | } | |
26359 | Py_INCREF(Py_None); resultobj = Py_None; | |
26360 | return resultobj; | |
26361 | fail: | |
26362 | return NULL; | |
26363 | } | |
26364 | ||
26365 | ||
26366 | static PyObject *_wrap_PyLineShape_InsertLineControlPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
26367 | PyObject *resultobj; | |
26368 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26369 | wxDC *arg2 = (wxDC *) 0 ; | |
26370 | PyObject * obj0 = 0 ; | |
26371 | PyObject * obj1 = 0 ; | |
26372 | char *kwnames[] = { | |
26373 | (char *) "self",(char *) "dc", NULL | |
26374 | }; | |
26375 | ||
26376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_InsertLineControlPoint",kwnames,&obj0,&obj1)) goto fail; | |
26377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26379 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26381 | { | |
26382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26383 | (arg1)->InsertLineControlPoint(arg2); | |
26384 | ||
26385 | wxPyEndAllowThreads(__tstate); | |
26386 | if (PyErr_Occurred()) SWIG_fail; | |
26387 | } | |
26388 | Py_INCREF(Py_None); resultobj = Py_None; | |
26389 | return resultobj; | |
26390 | fail: | |
26391 | return NULL; | |
26392 | } | |
26393 | ||
26394 | ||
26395 | static PyObject *_wrap_PyLineShape_IsEnd(PyObject *, PyObject *args, PyObject *kwargs) { | |
26396 | PyObject *resultobj; | |
26397 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26398 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26399 | bool result; | |
26400 | PyObject * obj0 = 0 ; | |
26401 | PyObject * obj1 = 0 ; | |
26402 | char *kwnames[] = { | |
26403 | (char *) "self",(char *) "shape", NULL | |
26404 | }; | |
26405 | ||
26406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_IsEnd",kwnames,&obj0,&obj1)) goto fail; | |
26407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26411 | { | |
26412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26413 | result = (bool)(arg1)->IsEnd(arg2); | |
26414 | ||
26415 | wxPyEndAllowThreads(__tstate); | |
26416 | if (PyErr_Occurred()) SWIG_fail; | |
26417 | } | |
26418 | { | |
26419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26420 | } | |
26421 | return resultobj; | |
26422 | fail: | |
26423 | return NULL; | |
26424 | } | |
26425 | ||
26426 | ||
26427 | static PyObject *_wrap_PyLineShape_IsSpline(PyObject *, PyObject *args, PyObject *kwargs) { | |
26428 | PyObject *resultobj; | |
26429 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26430 | bool result; | |
26431 | PyObject * obj0 = 0 ; | |
26432 | char *kwnames[] = { | |
26433 | (char *) "self", NULL | |
26434 | }; | |
26435 | ||
26436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_IsSpline",kwnames,&obj0)) goto fail; | |
26437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26439 | { | |
26440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26441 | result = (bool)(arg1)->IsSpline(); | |
26442 | ||
26443 | wxPyEndAllowThreads(__tstate); | |
26444 | if (PyErr_Occurred()) SWIG_fail; | |
26445 | } | |
26446 | { | |
26447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26448 | } | |
26449 | return resultobj; | |
26450 | fail: | |
26451 | return NULL; | |
26452 | } | |
26453 | ||
26454 | ||
26455 | static PyObject *_wrap_PyLineShape_MakeLineControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
26456 | PyObject *resultobj; | |
26457 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26458 | int arg2 ; | |
26459 | PyObject * obj0 = 0 ; | |
26460 | PyObject * obj1 = 0 ; | |
26461 | char *kwnames[] = { | |
26462 | (char *) "self",(char *) "n", NULL | |
26463 | }; | |
26464 | ||
26465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_MakeLineControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
26466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26468 | arg2 = (int)SWIG_As_int(obj1); | |
26469 | if (PyErr_Occurred()) SWIG_fail; | |
26470 | { | |
26471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26472 | (arg1)->MakeLineControlPoints(arg2); | |
26473 | ||
26474 | wxPyEndAllowThreads(__tstate); | |
26475 | if (PyErr_Occurred()) SWIG_fail; | |
26476 | } | |
26477 | Py_INCREF(Py_None); resultobj = Py_None; | |
26478 | return resultobj; | |
26479 | fail: | |
26480 | return NULL; | |
26481 | } | |
26482 | ||
26483 | ||
26484 | static PyObject *_wrap_PyLineShape_GetLineControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
26485 | PyObject *resultobj; | |
26486 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26487 | PyObject *result; | |
26488 | PyObject * obj0 = 0 ; | |
26489 | char *kwnames[] = { | |
26490 | (char *) "self", NULL | |
26491 | }; | |
26492 | ||
26493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetLineControlPoints",kwnames,&obj0)) goto fail; | |
26494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26496 | { | |
26497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26498 | result = (PyObject *)wxPyLineShape_GetLineControlPoints(arg1); | |
26499 | ||
26500 | wxPyEndAllowThreads(__tstate); | |
26501 | if (PyErr_Occurred()) SWIG_fail; | |
26502 | } | |
26503 | resultobj = result; | |
26504 | return resultobj; | |
26505 | fail: | |
26506 | return NULL; | |
26507 | } | |
26508 | ||
26509 | ||
26510 | static PyObject *_wrap_PyLineShape_SetLineControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
26511 | PyObject *resultobj; | |
26512 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26513 | PyObject *arg2 = (PyObject *) 0 ; | |
26514 | PyObject * obj0 = 0 ; | |
26515 | PyObject * obj1 = 0 ; | |
26516 | char *kwnames[] = { | |
26517 | (char *) "self",(char *) "list", NULL | |
26518 | }; | |
26519 | ||
26520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetLineControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
26521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26523 | arg2 = obj1; | |
26524 | { | |
26525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26526 | wxPyLineShape_SetLineControlPoints(arg1,arg2); | |
26527 | ||
26528 | wxPyEndAllowThreads(__tstate); | |
26529 | if (PyErr_Occurred()) SWIG_fail; | |
26530 | } | |
26531 | Py_INCREF(Py_None); resultobj = Py_None; | |
26532 | return resultobj; | |
26533 | fail: | |
26534 | return NULL; | |
26535 | } | |
26536 | ||
26537 | ||
26538 | static PyObject *_wrap_PyLineShape_SetAttachmentFrom(PyObject *, PyObject *args, PyObject *kwargs) { | |
26539 | PyObject *resultobj; | |
26540 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26541 | int arg2 ; | |
26542 | PyObject * obj0 = 0 ; | |
26543 | PyObject * obj1 = 0 ; | |
26544 | char *kwnames[] = { | |
26545 | (char *) "self",(char *) "fromAttach", NULL | |
26546 | }; | |
26547 | ||
26548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetAttachmentFrom",kwnames,&obj0,&obj1)) goto fail; | |
26549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26551 | arg2 = (int)SWIG_As_int(obj1); | |
26552 | if (PyErr_Occurred()) SWIG_fail; | |
26553 | { | |
26554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26555 | (arg1)->SetAttachmentFrom(arg2); | |
26556 | ||
26557 | wxPyEndAllowThreads(__tstate); | |
26558 | if (PyErr_Occurred()) SWIG_fail; | |
26559 | } | |
26560 | Py_INCREF(Py_None); resultobj = Py_None; | |
26561 | return resultobj; | |
26562 | fail: | |
26563 | return NULL; | |
26564 | } | |
26565 | ||
26566 | ||
26567 | static PyObject *_wrap_PyLineShape_SetAttachments(PyObject *, PyObject *args, PyObject *kwargs) { | |
26568 | PyObject *resultobj; | |
26569 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26570 | int arg2 ; | |
26571 | int arg3 ; | |
26572 | PyObject * obj0 = 0 ; | |
26573 | PyObject * obj1 = 0 ; | |
26574 | PyObject * obj2 = 0 ; | |
26575 | char *kwnames[] = { | |
26576 | (char *) "self",(char *) "fromAttach",(char *) "toAttach", NULL | |
26577 | }; | |
26578 | ||
26579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_SetAttachments",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26582 | arg2 = (int)SWIG_As_int(obj1); | |
26583 | if (PyErr_Occurred()) SWIG_fail; | |
26584 | arg3 = (int)SWIG_As_int(obj2); | |
26585 | if (PyErr_Occurred()) SWIG_fail; | |
26586 | { | |
26587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26588 | (arg1)->SetAttachments(arg2,arg3); | |
26589 | ||
26590 | wxPyEndAllowThreads(__tstate); | |
26591 | if (PyErr_Occurred()) SWIG_fail; | |
26592 | } | |
26593 | Py_INCREF(Py_None); resultobj = Py_None; | |
26594 | return resultobj; | |
26595 | fail: | |
26596 | return NULL; | |
26597 | } | |
26598 | ||
26599 | ||
26600 | static PyObject *_wrap_PyLineShape_SetAttachmentTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
26601 | PyObject *resultobj; | |
26602 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26603 | int arg2 ; | |
26604 | PyObject * obj0 = 0 ; | |
26605 | PyObject * obj1 = 0 ; | |
26606 | char *kwnames[] = { | |
26607 | (char *) "self",(char *) "toAttach", NULL | |
26608 | }; | |
26609 | ||
26610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetAttachmentTo",kwnames,&obj0,&obj1)) goto fail; | |
26611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26613 | arg2 = (int)SWIG_As_int(obj1); | |
26614 | if (PyErr_Occurred()) SWIG_fail; | |
26615 | { | |
26616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26617 | (arg1)->SetAttachmentTo(arg2); | |
26618 | ||
26619 | wxPyEndAllowThreads(__tstate); | |
26620 | if (PyErr_Occurred()) SWIG_fail; | |
26621 | } | |
26622 | Py_INCREF(Py_None); resultobj = Py_None; | |
26623 | return resultobj; | |
26624 | fail: | |
26625 | return NULL; | |
26626 | } | |
26627 | ||
26628 | ||
26629 | static PyObject *_wrap_PyLineShape_SetEnds(PyObject *, PyObject *args, PyObject *kwargs) { | |
26630 | PyObject *resultobj; | |
26631 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26632 | double arg2 ; | |
26633 | double arg3 ; | |
26634 | double arg4 ; | |
26635 | double arg5 ; | |
26636 | PyObject * obj0 = 0 ; | |
26637 | PyObject * obj1 = 0 ; | |
26638 | PyObject * obj2 = 0 ; | |
26639 | PyObject * obj3 = 0 ; | |
26640 | PyObject * obj4 = 0 ; | |
26641 | char *kwnames[] = { | |
26642 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
26643 | }; | |
26644 | ||
26645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyLineShape_SetEnds",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26648 | arg2 = (double)SWIG_As_double(obj1); | |
26649 | if (PyErr_Occurred()) SWIG_fail; | |
26650 | arg3 = (double)SWIG_As_double(obj2); | |
26651 | if (PyErr_Occurred()) SWIG_fail; | |
26652 | arg4 = (double)SWIG_As_double(obj3); | |
26653 | if (PyErr_Occurred()) SWIG_fail; | |
26654 | arg5 = (double)SWIG_As_double(obj4); | |
26655 | if (PyErr_Occurred()) SWIG_fail; | |
26656 | { | |
26657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26658 | (arg1)->SetEnds(arg2,arg3,arg4,arg5); | |
26659 | ||
26660 | wxPyEndAllowThreads(__tstate); | |
26661 | if (PyErr_Occurred()) SWIG_fail; | |
26662 | } | |
26663 | Py_INCREF(Py_None); resultobj = Py_None; | |
26664 | return resultobj; | |
26665 | fail: | |
26666 | return NULL; | |
26667 | } | |
26668 | ||
26669 | ||
26670 | static PyObject *_wrap_PyLineShape_SetFrom(PyObject *, PyObject *args, PyObject *kwargs) { | |
26671 | PyObject *resultobj; | |
26672 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26673 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26674 | PyObject * obj0 = 0 ; | |
26675 | PyObject * obj1 = 0 ; | |
26676 | char *kwnames[] = { | |
26677 | (char *) "self",(char *) "object", NULL | |
26678 | }; | |
26679 | ||
26680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetFrom",kwnames,&obj0,&obj1)) goto fail; | |
26681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26685 | { | |
26686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26687 | (arg1)->SetFrom(arg2); | |
26688 | ||
26689 | wxPyEndAllowThreads(__tstate); | |
26690 | if (PyErr_Occurred()) SWIG_fail; | |
26691 | } | |
26692 | Py_INCREF(Py_None); resultobj = Py_None; | |
26693 | return resultobj; | |
26694 | fail: | |
26695 | return NULL; | |
26696 | } | |
26697 | ||
26698 | ||
26699 | static PyObject *_wrap_PyLineShape_SetIgnoreOffsets(PyObject *, PyObject *args, PyObject *kwargs) { | |
26700 | PyObject *resultobj; | |
26701 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26702 | bool arg2 ; | |
26703 | PyObject * obj0 = 0 ; | |
26704 | PyObject * obj1 = 0 ; | |
26705 | char *kwnames[] = { | |
26706 | (char *) "self",(char *) "ignore", NULL | |
26707 | }; | |
26708 | ||
26709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetIgnoreOffsets",kwnames,&obj0,&obj1)) goto fail; | |
26710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26712 | arg2 = (bool)SWIG_As_bool(obj1); | |
26713 | if (PyErr_Occurred()) SWIG_fail; | |
26714 | { | |
26715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26716 | (arg1)->SetIgnoreOffsets(arg2); | |
26717 | ||
26718 | wxPyEndAllowThreads(__tstate); | |
26719 | if (PyErr_Occurred()) SWIG_fail; | |
26720 | } | |
26721 | Py_INCREF(Py_None); resultobj = Py_None; | |
26722 | return resultobj; | |
26723 | fail: | |
26724 | return NULL; | |
26725 | } | |
26726 | ||
26727 | ||
26728 | static PyObject *_wrap_PyLineShape_SetSpline(PyObject *, PyObject *args, PyObject *kwargs) { | |
26729 | PyObject *resultobj; | |
26730 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26731 | bool arg2 ; | |
26732 | PyObject * obj0 = 0 ; | |
26733 | PyObject * obj1 = 0 ; | |
26734 | char *kwnames[] = { | |
26735 | (char *) "self",(char *) "spline", NULL | |
26736 | }; | |
26737 | ||
26738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetSpline",kwnames,&obj0,&obj1)) goto fail; | |
26739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26741 | arg2 = (bool)SWIG_As_bool(obj1); | |
26742 | if (PyErr_Occurred()) SWIG_fail; | |
26743 | { | |
26744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26745 | (arg1)->SetSpline(arg2); | |
26746 | ||
26747 | wxPyEndAllowThreads(__tstate); | |
26748 | if (PyErr_Occurred()) SWIG_fail; | |
26749 | } | |
26750 | Py_INCREF(Py_None); resultobj = Py_None; | |
26751 | return resultobj; | |
26752 | fail: | |
26753 | return NULL; | |
26754 | } | |
26755 | ||
26756 | ||
26757 | static PyObject *_wrap_PyLineShape_SetTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
26758 | PyObject *resultobj; | |
26759 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26760 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26761 | PyObject * obj0 = 0 ; | |
26762 | PyObject * obj1 = 0 ; | |
26763 | char *kwnames[] = { | |
26764 | (char *) "self",(char *) "object", NULL | |
26765 | }; | |
26766 | ||
26767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetTo",kwnames,&obj0,&obj1)) goto fail; | |
26768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26770 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26772 | { | |
26773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26774 | (arg1)->SetTo(arg2); | |
26775 | ||
26776 | wxPyEndAllowThreads(__tstate); | |
26777 | if (PyErr_Occurred()) SWIG_fail; | |
26778 | } | |
26779 | Py_INCREF(Py_None); resultobj = Py_None; | |
26780 | return resultobj; | |
26781 | fail: | |
26782 | return NULL; | |
26783 | } | |
26784 | ||
26785 | ||
26786 | static PyObject *_wrap_PyLineShape_Straighten(PyObject *, PyObject *args, PyObject *kwargs) { | |
26787 | PyObject *resultobj; | |
26788 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26789 | wxDC *arg2 = (wxDC *) NULL ; | |
26790 | PyObject * obj0 = 0 ; | |
26791 | PyObject * obj1 = 0 ; | |
26792 | char *kwnames[] = { | |
26793 | (char *) "self",(char *) "dc", NULL | |
26794 | }; | |
26795 | ||
26796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyLineShape_Straighten",kwnames,&obj0,&obj1)) goto fail; | |
26797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26799 | if (obj1) { | |
26800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26802 | } | |
26803 | { | |
26804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26805 | (arg1)->Straighten(arg2); | |
26806 | ||
26807 | wxPyEndAllowThreads(__tstate); | |
26808 | if (PyErr_Occurred()) SWIG_fail; | |
26809 | } | |
26810 | Py_INCREF(Py_None); resultobj = Py_None; | |
26811 | return resultobj; | |
26812 | fail: | |
26813 | return NULL; | |
26814 | } | |
26815 | ||
26816 | ||
26817 | static PyObject *_wrap_PyLineShape_Unlink(PyObject *, PyObject *args, PyObject *kwargs) { | |
26818 | PyObject *resultobj; | |
26819 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26820 | PyObject * obj0 = 0 ; | |
26821 | char *kwnames[] = { | |
26822 | (char *) "self", NULL | |
26823 | }; | |
26824 | ||
26825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_Unlink",kwnames,&obj0)) goto fail; | |
26826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26828 | { | |
26829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26830 | (arg1)->Unlink(); | |
26831 | ||
26832 | wxPyEndAllowThreads(__tstate); | |
26833 | if (PyErr_Occurred()) SWIG_fail; | |
26834 | } | |
26835 | Py_INCREF(Py_None); resultobj = Py_None; | |
26836 | return resultobj; | |
26837 | fail: | |
26838 | return NULL; | |
26839 | } | |
26840 | ||
26841 | ||
26842 | static PyObject *_wrap_PyLineShape_SetAlignmentOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
26843 | PyObject *resultobj; | |
26844 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26845 | bool arg2 ; | |
26846 | bool arg3 ; | |
26847 | PyObject * obj0 = 0 ; | |
26848 | PyObject * obj1 = 0 ; | |
26849 | PyObject * obj2 = 0 ; | |
26850 | char *kwnames[] = { | |
26851 | (char *) "self",(char *) "isEnd",(char *) "isHoriz", NULL | |
26852 | }; | |
26853 | ||
26854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_SetAlignmentOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26857 | arg2 = (bool)SWIG_As_bool(obj1); | |
26858 | if (PyErr_Occurred()) SWIG_fail; | |
26859 | arg3 = (bool)SWIG_As_bool(obj2); | |
26860 | if (PyErr_Occurred()) SWIG_fail; | |
26861 | { | |
26862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26863 | (arg1)->SetAlignmentOrientation(arg2,arg3); | |
26864 | ||
26865 | wxPyEndAllowThreads(__tstate); | |
26866 | if (PyErr_Occurred()) SWIG_fail; | |
26867 | } | |
26868 | Py_INCREF(Py_None); resultobj = Py_None; | |
26869 | return resultobj; | |
26870 | fail: | |
26871 | return NULL; | |
26872 | } | |
26873 | ||
26874 | ||
26875 | static PyObject *_wrap_PyLineShape_SetAlignmentType(PyObject *, PyObject *args, PyObject *kwargs) { | |
26876 | PyObject *resultobj; | |
26877 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26878 | bool arg2 ; | |
26879 | int arg3 ; | |
26880 | PyObject * obj0 = 0 ; | |
26881 | PyObject * obj1 = 0 ; | |
26882 | PyObject * obj2 = 0 ; | |
26883 | char *kwnames[] = { | |
26884 | (char *) "self",(char *) "isEnd",(char *) "alignType", NULL | |
26885 | }; | |
26886 | ||
26887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_SetAlignmentType",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26890 | arg2 = (bool)SWIG_As_bool(obj1); | |
26891 | if (PyErr_Occurred()) SWIG_fail; | |
26892 | arg3 = (int)SWIG_As_int(obj2); | |
26893 | if (PyErr_Occurred()) SWIG_fail; | |
26894 | { | |
26895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26896 | (arg1)->SetAlignmentType(arg2,arg3); | |
26897 | ||
26898 | wxPyEndAllowThreads(__tstate); | |
26899 | if (PyErr_Occurred()) SWIG_fail; | |
26900 | } | |
26901 | Py_INCREF(Py_None); resultobj = Py_None; | |
26902 | return resultobj; | |
26903 | fail: | |
26904 | return NULL; | |
26905 | } | |
26906 | ||
26907 | ||
26908 | static PyObject *_wrap_PyLineShape_GetAlignmentOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
26909 | PyObject *resultobj; | |
26910 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26911 | bool arg2 ; | |
26912 | bool result; | |
26913 | PyObject * obj0 = 0 ; | |
26914 | PyObject * obj1 = 0 ; | |
26915 | char *kwnames[] = { | |
26916 | (char *) "self",(char *) "isEnd", NULL | |
26917 | }; | |
26918 | ||
26919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetAlignmentOrientation",kwnames,&obj0,&obj1)) goto fail; | |
26920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26922 | arg2 = (bool)SWIG_As_bool(obj1); | |
26923 | if (PyErr_Occurred()) SWIG_fail; | |
26924 | { | |
26925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26926 | result = (bool)(arg1)->GetAlignmentOrientation(arg2); | |
26927 | ||
26928 | wxPyEndAllowThreads(__tstate); | |
26929 | if (PyErr_Occurred()) SWIG_fail; | |
26930 | } | |
26931 | { | |
26932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26933 | } | |
26934 | return resultobj; | |
26935 | fail: | |
26936 | return NULL; | |
26937 | } | |
26938 | ||
26939 | ||
26940 | static PyObject *_wrap_PyLineShape_GetAlignmentType(PyObject *, PyObject *args, PyObject *kwargs) { | |
26941 | PyObject *resultobj; | |
26942 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26943 | bool arg2 ; | |
26944 | int result; | |
26945 | PyObject * obj0 = 0 ; | |
26946 | PyObject * obj1 = 0 ; | |
26947 | char *kwnames[] = { | |
26948 | (char *) "self",(char *) "isEnd", NULL | |
26949 | }; | |
26950 | ||
26951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetAlignmentType",kwnames,&obj0,&obj1)) goto fail; | |
26952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26954 | arg2 = (bool)SWIG_As_bool(obj1); | |
26955 | if (PyErr_Occurred()) SWIG_fail; | |
26956 | { | |
26957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26958 | result = (int)(arg1)->GetAlignmentType(arg2); | |
26959 | ||
26960 | wxPyEndAllowThreads(__tstate); | |
26961 | if (PyErr_Occurred()) SWIG_fail; | |
26962 | } | |
26963 | resultobj = SWIG_From_int((int)result); | |
26964 | return resultobj; | |
26965 | fail: | |
26966 | return NULL; | |
26967 | } | |
26968 | ||
26969 | ||
26970 | static PyObject *_wrap_PyLineShape_GetAlignmentStart(PyObject *, PyObject *args, PyObject *kwargs) { | |
26971 | PyObject *resultobj; | |
26972 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26973 | int result; | |
26974 | PyObject * obj0 = 0 ; | |
26975 | char *kwnames[] = { | |
26976 | (char *) "self", NULL | |
26977 | }; | |
26978 | ||
26979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAlignmentStart",kwnames,&obj0)) goto fail; | |
26980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26982 | { | |
26983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26984 | result = (int)((wxPyLineShape const *)arg1)->GetAlignmentStart(); | |
26985 | ||
26986 | wxPyEndAllowThreads(__tstate); | |
26987 | if (PyErr_Occurred()) SWIG_fail; | |
26988 | } | |
26989 | resultobj = SWIG_From_int((int)result); | |
26990 | return resultobj; | |
26991 | fail: | |
26992 | return NULL; | |
26993 | } | |
26994 | ||
26995 | ||
26996 | static PyObject *_wrap_PyLineShape_GetAlignmentEnd(PyObject *, PyObject *args, PyObject *kwargs) { | |
26997 | PyObject *resultobj; | |
26998 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26999 | int result; | |
27000 | PyObject * obj0 = 0 ; | |
27001 | char *kwnames[] = { | |
27002 | (char *) "self", NULL | |
27003 | }; | |
27004 | ||
27005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAlignmentEnd",kwnames,&obj0)) goto fail; | |
27006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27008 | { | |
27009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27010 | result = (int)((wxPyLineShape const *)arg1)->GetAlignmentEnd(); | |
27011 | ||
27012 | wxPyEndAllowThreads(__tstate); | |
27013 | if (PyErr_Occurred()) SWIG_fail; | |
27014 | } | |
27015 | resultobj = SWIG_From_int((int)result); | |
27016 | return resultobj; | |
27017 | fail: | |
27018 | return NULL; | |
27019 | } | |
27020 | ||
27021 | ||
27022 | static PyObject *_wrap_PyLineShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
27023 | PyObject *resultobj; | |
27024 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27025 | wxDC *arg2 = 0 ; | |
27026 | PyObject * obj0 = 0 ; | |
27027 | PyObject * obj1 = 0 ; | |
27028 | char *kwnames[] = { | |
27029 | (char *) "self",(char *) "dc", NULL | |
27030 | }; | |
27031 | ||
27032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
27033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27036 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27037 | SWIG_fail; | |
27038 | if (arg2 == NULL) { | |
27039 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27040 | SWIG_fail; | |
27041 | } | |
27042 | { | |
27043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27044 | (arg1)->base_OnDraw(*arg2); | |
27045 | ||
27046 | wxPyEndAllowThreads(__tstate); | |
27047 | if (PyErr_Occurred()) SWIG_fail; | |
27048 | } | |
27049 | Py_INCREF(Py_None); resultobj = Py_None; | |
27050 | return resultobj; | |
27051 | fail: | |
27052 | return NULL; | |
27053 | } | |
27054 | ||
27055 | ||
27056 | static PyObject *_wrap_PyLineShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
27057 | PyObject *resultobj; | |
27058 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27059 | wxDC *arg2 = 0 ; | |
27060 | PyObject * obj0 = 0 ; | |
27061 | PyObject * obj1 = 0 ; | |
27062 | char *kwnames[] = { | |
27063 | (char *) "self",(char *) "dc", NULL | |
27064 | }; | |
27065 | ||
27066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
27067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27069 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27070 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27071 | SWIG_fail; | |
27072 | if (arg2 == NULL) { | |
27073 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27074 | SWIG_fail; | |
27075 | } | |
27076 | { | |
27077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27078 | (arg1)->base_OnDrawContents(*arg2); | |
27079 | ||
27080 | wxPyEndAllowThreads(__tstate); | |
27081 | if (PyErr_Occurred()) SWIG_fail; | |
27082 | } | |
27083 | Py_INCREF(Py_None); resultobj = Py_None; | |
27084 | return resultobj; | |
27085 | fail: | |
27086 | return NULL; | |
27087 | } | |
27088 | ||
27089 | ||
27090 | static PyObject *_wrap_PyLineShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
27091 | PyObject *resultobj; | |
27092 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27093 | wxDC *arg2 = 0 ; | |
27094 | bool arg3 = (bool) FALSE ; | |
27095 | PyObject * obj0 = 0 ; | |
27096 | PyObject * obj1 = 0 ; | |
27097 | PyObject * obj2 = 0 ; | |
27098 | char *kwnames[] = { | |
27099 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
27100 | }; | |
27101 | ||
27102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLineShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27105 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27106 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27107 | SWIG_fail; | |
27108 | if (arg2 == NULL) { | |
27109 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27110 | SWIG_fail; | |
27111 | } | |
27112 | if (obj2) { | |
27113 | arg3 = (bool)SWIG_As_bool(obj2); | |
27114 | if (PyErr_Occurred()) SWIG_fail; | |
27115 | } | |
27116 | { | |
27117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27118 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
27119 | ||
27120 | wxPyEndAllowThreads(__tstate); | |
27121 | if (PyErr_Occurred()) SWIG_fail; | |
27122 | } | |
27123 | Py_INCREF(Py_None); resultobj = Py_None; | |
27124 | return resultobj; | |
27125 | fail: | |
27126 | return NULL; | |
27127 | } | |
27128 | ||
27129 | ||
27130 | static PyObject *_wrap_PyLineShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
27131 | PyObject *resultobj; | |
27132 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27133 | wxDC *arg2 = 0 ; | |
27134 | PyObject * obj0 = 0 ; | |
27135 | PyObject * obj1 = 0 ; | |
27136 | char *kwnames[] = { | |
27137 | (char *) "self",(char *) "dc", NULL | |
27138 | }; | |
27139 | ||
27140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
27141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27144 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27145 | SWIG_fail; | |
27146 | if (arg2 == NULL) { | |
27147 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27148 | SWIG_fail; | |
27149 | } | |
27150 | { | |
27151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27152 | (arg1)->base_OnMoveLinks(*arg2); | |
27153 | ||
27154 | wxPyEndAllowThreads(__tstate); | |
27155 | if (PyErr_Occurred()) SWIG_fail; | |
27156 | } | |
27157 | Py_INCREF(Py_None); resultobj = Py_None; | |
27158 | return resultobj; | |
27159 | fail: | |
27160 | return NULL; | |
27161 | } | |
27162 | ||
27163 | ||
27164 | static PyObject *_wrap_PyLineShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
27165 | PyObject *resultobj; | |
27166 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27167 | wxDC *arg2 = 0 ; | |
27168 | PyObject * obj0 = 0 ; | |
27169 | PyObject * obj1 = 0 ; | |
27170 | char *kwnames[] = { | |
27171 | (char *) "self",(char *) "dc", NULL | |
27172 | }; | |
27173 | ||
27174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
27175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27178 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27179 | SWIG_fail; | |
27180 | if (arg2 == NULL) { | |
27181 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27182 | SWIG_fail; | |
27183 | } | |
27184 | { | |
27185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27186 | (arg1)->base_OnErase(*arg2); | |
27187 | ||
27188 | wxPyEndAllowThreads(__tstate); | |
27189 | if (PyErr_Occurred()) SWIG_fail; | |
27190 | } | |
27191 | Py_INCREF(Py_None); resultobj = Py_None; | |
27192 | return resultobj; | |
27193 | fail: | |
27194 | return NULL; | |
27195 | } | |
27196 | ||
27197 | ||
27198 | static PyObject *_wrap_PyLineShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
27199 | PyObject *resultobj; | |
27200 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27201 | wxDC *arg2 = 0 ; | |
27202 | PyObject * obj0 = 0 ; | |
27203 | PyObject * obj1 = 0 ; | |
27204 | char *kwnames[] = { | |
27205 | (char *) "self",(char *) "dc", NULL | |
27206 | }; | |
27207 | ||
27208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
27209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27212 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27213 | SWIG_fail; | |
27214 | if (arg2 == NULL) { | |
27215 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27216 | SWIG_fail; | |
27217 | } | |
27218 | { | |
27219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27220 | (arg1)->base_OnEraseContents(*arg2); | |
27221 | ||
27222 | wxPyEndAllowThreads(__tstate); | |
27223 | if (PyErr_Occurred()) SWIG_fail; | |
27224 | } | |
27225 | Py_INCREF(Py_None); resultobj = Py_None; | |
27226 | return resultobj; | |
27227 | fail: | |
27228 | return NULL; | |
27229 | } | |
27230 | ||
27231 | ||
27232 | static PyObject *_wrap_PyLineShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
27233 | PyObject *resultobj; | |
27234 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27235 | wxDC *arg2 = 0 ; | |
27236 | PyObject * obj0 = 0 ; | |
27237 | PyObject * obj1 = 0 ; | |
27238 | char *kwnames[] = { | |
27239 | (char *) "self",(char *) "dc", NULL | |
27240 | }; | |
27241 | ||
27242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
27243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27245 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27246 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27247 | SWIG_fail; | |
27248 | if (arg2 == NULL) { | |
27249 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27250 | SWIG_fail; | |
27251 | } | |
27252 | { | |
27253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27254 | (arg1)->base_OnHighlight(*arg2); | |
27255 | ||
27256 | wxPyEndAllowThreads(__tstate); | |
27257 | if (PyErr_Occurred()) SWIG_fail; | |
27258 | } | |
27259 | Py_INCREF(Py_None); resultobj = Py_None; | |
27260 | return resultobj; | |
27261 | fail: | |
27262 | return NULL; | |
27263 | } | |
27264 | ||
27265 | ||
27266 | static PyObject *_wrap_PyLineShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
27267 | PyObject *resultobj; | |
27268 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27269 | double arg2 ; | |
27270 | double arg3 ; | |
27271 | int arg4 = (int) 0 ; | |
27272 | int arg5 = (int) 0 ; | |
27273 | PyObject * obj0 = 0 ; | |
27274 | PyObject * obj1 = 0 ; | |
27275 | PyObject * obj2 = 0 ; | |
27276 | PyObject * obj3 = 0 ; | |
27277 | PyObject * obj4 = 0 ; | |
27278 | char *kwnames[] = { | |
27279 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27280 | }; | |
27281 | ||
27282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27285 | arg2 = (double)SWIG_As_double(obj1); | |
27286 | if (PyErr_Occurred()) SWIG_fail; | |
27287 | arg3 = (double)SWIG_As_double(obj2); | |
27288 | if (PyErr_Occurred()) SWIG_fail; | |
27289 | if (obj3) { | |
27290 | arg4 = (int)SWIG_As_int(obj3); | |
27291 | if (PyErr_Occurred()) SWIG_fail; | |
27292 | } | |
27293 | if (obj4) { | |
27294 | arg5 = (int)SWIG_As_int(obj4); | |
27295 | if (PyErr_Occurred()) SWIG_fail; | |
27296 | } | |
27297 | { | |
27298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27299 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
27300 | ||
27301 | wxPyEndAllowThreads(__tstate); | |
27302 | if (PyErr_Occurred()) SWIG_fail; | |
27303 | } | |
27304 | Py_INCREF(Py_None); resultobj = Py_None; | |
27305 | return resultobj; | |
27306 | fail: | |
27307 | return NULL; | |
27308 | } | |
27309 | ||
27310 | ||
27311 | static PyObject *_wrap_PyLineShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
27312 | PyObject *resultobj; | |
27313 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27314 | double arg2 ; | |
27315 | double arg3 ; | |
27316 | int arg4 = (int) 0 ; | |
27317 | int arg5 = (int) 0 ; | |
27318 | PyObject * obj0 = 0 ; | |
27319 | PyObject * obj1 = 0 ; | |
27320 | PyObject * obj2 = 0 ; | |
27321 | PyObject * obj3 = 0 ; | |
27322 | PyObject * obj4 = 0 ; | |
27323 | char *kwnames[] = { | |
27324 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27325 | }; | |
27326 | ||
27327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27330 | arg2 = (double)SWIG_As_double(obj1); | |
27331 | if (PyErr_Occurred()) SWIG_fail; | |
27332 | arg3 = (double)SWIG_As_double(obj2); | |
27333 | if (PyErr_Occurred()) SWIG_fail; | |
27334 | if (obj3) { | |
27335 | arg4 = (int)SWIG_As_int(obj3); | |
27336 | if (PyErr_Occurred()) SWIG_fail; | |
27337 | } | |
27338 | if (obj4) { | |
27339 | arg5 = (int)SWIG_As_int(obj4); | |
27340 | if (PyErr_Occurred()) SWIG_fail; | |
27341 | } | |
27342 | { | |
27343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27344 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
27345 | ||
27346 | wxPyEndAllowThreads(__tstate); | |
27347 | if (PyErr_Occurred()) SWIG_fail; | |
27348 | } | |
27349 | Py_INCREF(Py_None); resultobj = Py_None; | |
27350 | return resultobj; | |
27351 | fail: | |
27352 | return NULL; | |
27353 | } | |
27354 | ||
27355 | ||
27356 | static PyObject *_wrap_PyLineShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
27357 | PyObject *resultobj; | |
27358 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27359 | double arg2 ; | |
27360 | double arg3 ; | |
27361 | int arg4 = (int) 0 ; | |
27362 | int arg5 = (int) 0 ; | |
27363 | PyObject * obj0 = 0 ; | |
27364 | PyObject * obj1 = 0 ; | |
27365 | PyObject * obj2 = 0 ; | |
27366 | PyObject * obj3 = 0 ; | |
27367 | PyObject * obj4 = 0 ; | |
27368 | char *kwnames[] = { | |
27369 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27370 | }; | |
27371 | ||
27372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27375 | arg2 = (double)SWIG_As_double(obj1); | |
27376 | if (PyErr_Occurred()) SWIG_fail; | |
27377 | arg3 = (double)SWIG_As_double(obj2); | |
27378 | if (PyErr_Occurred()) SWIG_fail; | |
27379 | if (obj3) { | |
27380 | arg4 = (int)SWIG_As_int(obj3); | |
27381 | if (PyErr_Occurred()) SWIG_fail; | |
27382 | } | |
27383 | if (obj4) { | |
27384 | arg5 = (int)SWIG_As_int(obj4); | |
27385 | if (PyErr_Occurred()) SWIG_fail; | |
27386 | } | |
27387 | { | |
27388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27389 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
27390 | ||
27391 | wxPyEndAllowThreads(__tstate); | |
27392 | if (PyErr_Occurred()) SWIG_fail; | |
27393 | } | |
27394 | Py_INCREF(Py_None); resultobj = Py_None; | |
27395 | return resultobj; | |
27396 | fail: | |
27397 | return NULL; | |
27398 | } | |
27399 | ||
27400 | ||
27401 | static PyObject *_wrap_PyLineShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
27402 | PyObject *resultobj; | |
27403 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27404 | double arg2 ; | |
27405 | double arg3 ; | |
27406 | PyObject * obj0 = 0 ; | |
27407 | PyObject * obj1 = 0 ; | |
27408 | PyObject * obj2 = 0 ; | |
27409 | char *kwnames[] = { | |
27410 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27411 | }; | |
27412 | ||
27413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27416 | arg2 = (double)SWIG_As_double(obj1); | |
27417 | if (PyErr_Occurred()) SWIG_fail; | |
27418 | arg3 = (double)SWIG_As_double(obj2); | |
27419 | if (PyErr_Occurred()) SWIG_fail; | |
27420 | { | |
27421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27422 | (arg1)->base_OnSize(arg2,arg3); | |
27423 | ||
27424 | wxPyEndAllowThreads(__tstate); | |
27425 | if (PyErr_Occurred()) SWIG_fail; | |
27426 | } | |
27427 | Py_INCREF(Py_None); resultobj = Py_None; | |
27428 | return resultobj; | |
27429 | fail: | |
27430 | return NULL; | |
27431 | } | |
27432 | ||
27433 | ||
27434 | static PyObject *_wrap_PyLineShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
27435 | PyObject *resultobj; | |
27436 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27437 | wxDC *arg2 = 0 ; | |
27438 | double arg3 ; | |
27439 | double arg4 ; | |
27440 | double arg5 ; | |
27441 | double arg6 ; | |
27442 | bool arg7 = (bool) true ; | |
27443 | bool result; | |
27444 | PyObject * obj0 = 0 ; | |
27445 | PyObject * obj1 = 0 ; | |
27446 | PyObject * obj2 = 0 ; | |
27447 | PyObject * obj3 = 0 ; | |
27448 | PyObject * obj4 = 0 ; | |
27449 | PyObject * obj5 = 0 ; | |
27450 | PyObject * obj6 = 0 ; | |
27451 | char *kwnames[] = { | |
27452 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
27453 | }; | |
27454 | ||
27455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyLineShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27458 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27459 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27460 | SWIG_fail; | |
27461 | if (arg2 == NULL) { | |
27462 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27463 | SWIG_fail; | |
27464 | } | |
27465 | arg3 = (double)SWIG_As_double(obj2); | |
27466 | if (PyErr_Occurred()) SWIG_fail; | |
27467 | arg4 = (double)SWIG_As_double(obj3); | |
27468 | if (PyErr_Occurred()) SWIG_fail; | |
27469 | arg5 = (double)SWIG_As_double(obj4); | |
27470 | if (PyErr_Occurred()) SWIG_fail; | |
27471 | arg6 = (double)SWIG_As_double(obj5); | |
27472 | if (PyErr_Occurred()) SWIG_fail; | |
27473 | if (obj6) { | |
27474 | arg7 = (bool)SWIG_As_bool(obj6); | |
27475 | if (PyErr_Occurred()) SWIG_fail; | |
27476 | } | |
27477 | { | |
27478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27479 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
27480 | ||
27481 | wxPyEndAllowThreads(__tstate); | |
27482 | if (PyErr_Occurred()) SWIG_fail; | |
27483 | } | |
27484 | { | |
27485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27486 | } | |
27487 | return resultobj; | |
27488 | fail: | |
27489 | return NULL; | |
27490 | } | |
27491 | ||
27492 | ||
27493 | static PyObject *_wrap_PyLineShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
27494 | PyObject *resultobj; | |
27495 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27496 | wxDC *arg2 = 0 ; | |
27497 | double arg3 ; | |
27498 | double arg4 ; | |
27499 | double arg5 ; | |
27500 | double arg6 ; | |
27501 | bool arg7 = (bool) true ; | |
27502 | PyObject * obj0 = 0 ; | |
27503 | PyObject * obj1 = 0 ; | |
27504 | PyObject * obj2 = 0 ; | |
27505 | PyObject * obj3 = 0 ; | |
27506 | PyObject * obj4 = 0 ; | |
27507 | PyObject * obj5 = 0 ; | |
27508 | PyObject * obj6 = 0 ; | |
27509 | char *kwnames[] = { | |
27510 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
27511 | }; | |
27512 | ||
27513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyLineShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27517 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27518 | SWIG_fail; | |
27519 | if (arg2 == NULL) { | |
27520 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27521 | SWIG_fail; | |
27522 | } | |
27523 | arg3 = (double)SWIG_As_double(obj2); | |
27524 | if (PyErr_Occurred()) SWIG_fail; | |
27525 | arg4 = (double)SWIG_As_double(obj3); | |
27526 | if (PyErr_Occurred()) SWIG_fail; | |
27527 | arg5 = (double)SWIG_As_double(obj4); | |
27528 | if (PyErr_Occurred()) SWIG_fail; | |
27529 | arg6 = (double)SWIG_As_double(obj5); | |
27530 | if (PyErr_Occurred()) SWIG_fail; | |
27531 | if (obj6) { | |
27532 | arg7 = (bool)SWIG_As_bool(obj6); | |
27533 | if (PyErr_Occurred()) SWIG_fail; | |
27534 | } | |
27535 | { | |
27536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27537 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
27538 | ||
27539 | wxPyEndAllowThreads(__tstate); | |
27540 | if (PyErr_Occurred()) SWIG_fail; | |
27541 | } | |
27542 | Py_INCREF(Py_None); resultobj = Py_None; | |
27543 | return resultobj; | |
27544 | fail: | |
27545 | return NULL; | |
27546 | } | |
27547 | ||
27548 | ||
27549 | static PyObject *_wrap_PyLineShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
27550 | PyObject *resultobj; | |
27551 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27552 | bool arg2 ; | |
27553 | double arg3 ; | |
27554 | double arg4 ; | |
27555 | int arg5 = (int) 0 ; | |
27556 | int arg6 = (int) 0 ; | |
27557 | PyObject * obj0 = 0 ; | |
27558 | PyObject * obj1 = 0 ; | |
27559 | PyObject * obj2 = 0 ; | |
27560 | PyObject * obj3 = 0 ; | |
27561 | PyObject * obj4 = 0 ; | |
27562 | PyObject * obj5 = 0 ; | |
27563 | char *kwnames[] = { | |
27564 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27565 | }; | |
27566 | ||
27567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyLineShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27570 | arg2 = (bool)SWIG_As_bool(obj1); | |
27571 | if (PyErr_Occurred()) SWIG_fail; | |
27572 | arg3 = (double)SWIG_As_double(obj2); | |
27573 | if (PyErr_Occurred()) SWIG_fail; | |
27574 | arg4 = (double)SWIG_As_double(obj3); | |
27575 | if (PyErr_Occurred()) SWIG_fail; | |
27576 | if (obj4) { | |
27577 | arg5 = (int)SWIG_As_int(obj4); | |
27578 | if (PyErr_Occurred()) SWIG_fail; | |
27579 | } | |
27580 | if (obj5) { | |
27581 | arg6 = (int)SWIG_As_int(obj5); | |
27582 | if (PyErr_Occurred()) SWIG_fail; | |
27583 | } | |
27584 | { | |
27585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27586 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
27587 | ||
27588 | wxPyEndAllowThreads(__tstate); | |
27589 | if (PyErr_Occurred()) SWIG_fail; | |
27590 | } | |
27591 | Py_INCREF(Py_None); resultobj = Py_None; | |
27592 | return resultobj; | |
27593 | fail: | |
27594 | return NULL; | |
27595 | } | |
27596 | ||
27597 | ||
27598 | static PyObject *_wrap_PyLineShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
27599 | PyObject *resultobj; | |
27600 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27601 | double arg2 ; | |
27602 | double arg3 ; | |
27603 | int arg4 = (int) 0 ; | |
27604 | int arg5 = (int) 0 ; | |
27605 | PyObject * obj0 = 0 ; | |
27606 | PyObject * obj1 = 0 ; | |
27607 | PyObject * obj2 = 0 ; | |
27608 | PyObject * obj3 = 0 ; | |
27609 | PyObject * obj4 = 0 ; | |
27610 | char *kwnames[] = { | |
27611 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27612 | }; | |
27613 | ||
27614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27617 | arg2 = (double)SWIG_As_double(obj1); | |
27618 | if (PyErr_Occurred()) SWIG_fail; | |
27619 | arg3 = (double)SWIG_As_double(obj2); | |
27620 | if (PyErr_Occurred()) SWIG_fail; | |
27621 | if (obj3) { | |
27622 | arg4 = (int)SWIG_As_int(obj3); | |
27623 | if (PyErr_Occurred()) SWIG_fail; | |
27624 | } | |
27625 | if (obj4) { | |
27626 | arg5 = (int)SWIG_As_int(obj4); | |
27627 | if (PyErr_Occurred()) SWIG_fail; | |
27628 | } | |
27629 | { | |
27630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27631 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
27632 | ||
27633 | wxPyEndAllowThreads(__tstate); | |
27634 | if (PyErr_Occurred()) SWIG_fail; | |
27635 | } | |
27636 | Py_INCREF(Py_None); resultobj = Py_None; | |
27637 | return resultobj; | |
27638 | fail: | |
27639 | return NULL; | |
27640 | } | |
27641 | ||
27642 | ||
27643 | static PyObject *_wrap_PyLineShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
27644 | PyObject *resultobj; | |
27645 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27646 | double arg2 ; | |
27647 | double arg3 ; | |
27648 | int arg4 = (int) 0 ; | |
27649 | int arg5 = (int) 0 ; | |
27650 | PyObject * obj0 = 0 ; | |
27651 | PyObject * obj1 = 0 ; | |
27652 | PyObject * obj2 = 0 ; | |
27653 | PyObject * obj3 = 0 ; | |
27654 | PyObject * obj4 = 0 ; | |
27655 | char *kwnames[] = { | |
27656 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27657 | }; | |
27658 | ||
27659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27662 | arg2 = (double)SWIG_As_double(obj1); | |
27663 | if (PyErr_Occurred()) SWIG_fail; | |
27664 | arg3 = (double)SWIG_As_double(obj2); | |
27665 | if (PyErr_Occurred()) SWIG_fail; | |
27666 | if (obj3) { | |
27667 | arg4 = (int)SWIG_As_int(obj3); | |
27668 | if (PyErr_Occurred()) SWIG_fail; | |
27669 | } | |
27670 | if (obj4) { | |
27671 | arg5 = (int)SWIG_As_int(obj4); | |
27672 | if (PyErr_Occurred()) SWIG_fail; | |
27673 | } | |
27674 | { | |
27675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27676 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
27677 | ||
27678 | wxPyEndAllowThreads(__tstate); | |
27679 | if (PyErr_Occurred()) SWIG_fail; | |
27680 | } | |
27681 | Py_INCREF(Py_None); resultobj = Py_None; | |
27682 | return resultobj; | |
27683 | fail: | |
27684 | return NULL; | |
27685 | } | |
27686 | ||
27687 | ||
27688 | static PyObject *_wrap_PyLineShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
27689 | PyObject *resultobj; | |
27690 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27691 | bool arg2 ; | |
27692 | double arg3 ; | |
27693 | double arg4 ; | |
27694 | int arg5 = (int) 0 ; | |
27695 | int arg6 = (int) 0 ; | |
27696 | PyObject * obj0 = 0 ; | |
27697 | PyObject * obj1 = 0 ; | |
27698 | PyObject * obj2 = 0 ; | |
27699 | PyObject * obj3 = 0 ; | |
27700 | PyObject * obj4 = 0 ; | |
27701 | PyObject * obj5 = 0 ; | |
27702 | char *kwnames[] = { | |
27703 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27704 | }; | |
27705 | ||
27706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyLineShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27709 | arg2 = (bool)SWIG_As_bool(obj1); | |
27710 | if (PyErr_Occurred()) SWIG_fail; | |
27711 | arg3 = (double)SWIG_As_double(obj2); | |
27712 | if (PyErr_Occurred()) SWIG_fail; | |
27713 | arg4 = (double)SWIG_As_double(obj3); | |
27714 | if (PyErr_Occurred()) SWIG_fail; | |
27715 | if (obj4) { | |
27716 | arg5 = (int)SWIG_As_int(obj4); | |
27717 | if (PyErr_Occurred()) SWIG_fail; | |
27718 | } | |
27719 | if (obj5) { | |
27720 | arg6 = (int)SWIG_As_int(obj5); | |
27721 | if (PyErr_Occurred()) SWIG_fail; | |
27722 | } | |
27723 | { | |
27724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27725 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
27726 | ||
27727 | wxPyEndAllowThreads(__tstate); | |
27728 | if (PyErr_Occurred()) SWIG_fail; | |
27729 | } | |
27730 | Py_INCREF(Py_None); resultobj = Py_None; | |
27731 | return resultobj; | |
27732 | fail: | |
27733 | return NULL; | |
27734 | } | |
27735 | ||
27736 | ||
27737 | static PyObject *_wrap_PyLineShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
27738 | PyObject *resultobj; | |
27739 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27740 | double arg2 ; | |
27741 | double arg3 ; | |
27742 | int arg4 = (int) 0 ; | |
27743 | int arg5 = (int) 0 ; | |
27744 | PyObject * obj0 = 0 ; | |
27745 | PyObject * obj1 = 0 ; | |
27746 | PyObject * obj2 = 0 ; | |
27747 | PyObject * obj3 = 0 ; | |
27748 | PyObject * obj4 = 0 ; | |
27749 | char *kwnames[] = { | |
27750 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27751 | }; | |
27752 | ||
27753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27756 | arg2 = (double)SWIG_As_double(obj1); | |
27757 | if (PyErr_Occurred()) SWIG_fail; | |
27758 | arg3 = (double)SWIG_As_double(obj2); | |
27759 | if (PyErr_Occurred()) SWIG_fail; | |
27760 | if (obj3) { | |
27761 | arg4 = (int)SWIG_As_int(obj3); | |
27762 | if (PyErr_Occurred()) SWIG_fail; | |
27763 | } | |
27764 | if (obj4) { | |
27765 | arg5 = (int)SWIG_As_int(obj4); | |
27766 | if (PyErr_Occurred()) SWIG_fail; | |
27767 | } | |
27768 | { | |
27769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27770 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
27771 | ||
27772 | wxPyEndAllowThreads(__tstate); | |
27773 | if (PyErr_Occurred()) SWIG_fail; | |
27774 | } | |
27775 | Py_INCREF(Py_None); resultobj = Py_None; | |
27776 | return resultobj; | |
27777 | fail: | |
27778 | return NULL; | |
27779 | } | |
27780 | ||
27781 | ||
27782 | static PyObject *_wrap_PyLineShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
27783 | PyObject *resultobj; | |
27784 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27785 | double arg2 ; | |
27786 | double arg3 ; | |
27787 | int arg4 = (int) 0 ; | |
27788 | int arg5 = (int) 0 ; | |
27789 | PyObject * obj0 = 0 ; | |
27790 | PyObject * obj1 = 0 ; | |
27791 | PyObject * obj2 = 0 ; | |
27792 | PyObject * obj3 = 0 ; | |
27793 | PyObject * obj4 = 0 ; | |
27794 | char *kwnames[] = { | |
27795 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27796 | }; | |
27797 | ||
27798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27801 | arg2 = (double)SWIG_As_double(obj1); | |
27802 | if (PyErr_Occurred()) SWIG_fail; | |
27803 | arg3 = (double)SWIG_As_double(obj2); | |
27804 | if (PyErr_Occurred()) SWIG_fail; | |
27805 | if (obj3) { | |
27806 | arg4 = (int)SWIG_As_int(obj3); | |
27807 | if (PyErr_Occurred()) SWIG_fail; | |
27808 | } | |
27809 | if (obj4) { | |
27810 | arg5 = (int)SWIG_As_int(obj4); | |
27811 | if (PyErr_Occurred()) SWIG_fail; | |
27812 | } | |
27813 | { | |
27814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27815 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
27816 | ||
27817 | wxPyEndAllowThreads(__tstate); | |
27818 | if (PyErr_Occurred()) SWIG_fail; | |
27819 | } | |
27820 | Py_INCREF(Py_None); resultobj = Py_None; | |
27821 | return resultobj; | |
27822 | fail: | |
27823 | return NULL; | |
27824 | } | |
27825 | ||
27826 | ||
27827 | static PyObject *_wrap_PyLineShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
27828 | PyObject *resultobj; | |
27829 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27830 | wxDC *arg2 = 0 ; | |
27831 | double arg3 ; | |
27832 | double arg4 ; | |
27833 | double arg5 ; | |
27834 | double arg6 ; | |
27835 | PyObject * obj0 = 0 ; | |
27836 | PyObject * obj1 = 0 ; | |
27837 | PyObject * obj2 = 0 ; | |
27838 | PyObject * obj3 = 0 ; | |
27839 | PyObject * obj4 = 0 ; | |
27840 | PyObject * obj5 = 0 ; | |
27841 | char *kwnames[] = { | |
27842 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27843 | }; | |
27844 | ||
27845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyLineShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27848 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27849 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27850 | SWIG_fail; | |
27851 | if (arg2 == NULL) { | |
27852 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27853 | SWIG_fail; | |
27854 | } | |
27855 | arg3 = (double)SWIG_As_double(obj2); | |
27856 | if (PyErr_Occurred()) SWIG_fail; | |
27857 | arg4 = (double)SWIG_As_double(obj3); | |
27858 | if (PyErr_Occurred()) SWIG_fail; | |
27859 | arg5 = (double)SWIG_As_double(obj4); | |
27860 | if (PyErr_Occurred()) SWIG_fail; | |
27861 | arg6 = (double)SWIG_As_double(obj5); | |
27862 | if (PyErr_Occurred()) SWIG_fail; | |
27863 | { | |
27864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27865 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
27866 | ||
27867 | wxPyEndAllowThreads(__tstate); | |
27868 | if (PyErr_Occurred()) SWIG_fail; | |
27869 | } | |
27870 | Py_INCREF(Py_None); resultobj = Py_None; | |
27871 | return resultobj; | |
27872 | fail: | |
27873 | return NULL; | |
27874 | } | |
27875 | ||
27876 | ||
27877 | static PyObject *_wrap_PyLineShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
27878 | PyObject *resultobj; | |
27879 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27880 | wxDC *arg2 = 0 ; | |
27881 | PyObject * obj0 = 0 ; | |
27882 | PyObject * obj1 = 0 ; | |
27883 | char *kwnames[] = { | |
27884 | (char *) "self",(char *) "dc", NULL | |
27885 | }; | |
27886 | ||
27887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
27888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27890 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27891 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27892 | SWIG_fail; | |
27893 | if (arg2 == NULL) { | |
27894 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27895 | SWIG_fail; | |
27896 | } | |
27897 | { | |
27898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27899 | (arg1)->base_OnDrawControlPoints(*arg2); | |
27900 | ||
27901 | wxPyEndAllowThreads(__tstate); | |
27902 | if (PyErr_Occurred()) SWIG_fail; | |
27903 | } | |
27904 | Py_INCREF(Py_None); resultobj = Py_None; | |
27905 | return resultobj; | |
27906 | fail: | |
27907 | return NULL; | |
27908 | } | |
27909 | ||
27910 | ||
27911 | static PyObject *_wrap_PyLineShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
27912 | PyObject *resultobj; | |
27913 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27914 | wxDC *arg2 = 0 ; | |
27915 | PyObject * obj0 = 0 ; | |
27916 | PyObject * obj1 = 0 ; | |
27917 | char *kwnames[] = { | |
27918 | (char *) "self",(char *) "dc", NULL | |
27919 | }; | |
27920 | ||
27921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
27922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27924 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27925 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27926 | SWIG_fail; | |
27927 | if (arg2 == NULL) { | |
27928 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27929 | SWIG_fail; | |
27930 | } | |
27931 | { | |
27932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27933 | (arg1)->base_OnEraseControlPoints(*arg2); | |
27934 | ||
27935 | wxPyEndAllowThreads(__tstate); | |
27936 | if (PyErr_Occurred()) SWIG_fail; | |
27937 | } | |
27938 | Py_INCREF(Py_None); resultobj = Py_None; | |
27939 | return resultobj; | |
27940 | fail: | |
27941 | return NULL; | |
27942 | } | |
27943 | ||
27944 | ||
27945 | static PyObject *_wrap_PyLineShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
27946 | PyObject *resultobj; | |
27947 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27948 | wxDC *arg2 = 0 ; | |
27949 | bool arg3 = (bool) true ; | |
27950 | PyObject * obj0 = 0 ; | |
27951 | PyObject * obj1 = 0 ; | |
27952 | PyObject * obj2 = 0 ; | |
27953 | char *kwnames[] = { | |
27954 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
27955 | }; | |
27956 | ||
27957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLineShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
27959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27961 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27962 | SWIG_fail; | |
27963 | if (arg2 == NULL) { | |
27964 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27965 | SWIG_fail; | |
27966 | } | |
27967 | if (obj2) { | |
27968 | arg3 = (bool)SWIG_As_bool(obj2); | |
27969 | if (PyErr_Occurred()) SWIG_fail; | |
27970 | } | |
27971 | { | |
27972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27973 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
27974 | ||
27975 | wxPyEndAllowThreads(__tstate); | |
27976 | if (PyErr_Occurred()) SWIG_fail; | |
27977 | } | |
27978 | Py_INCREF(Py_None); resultobj = Py_None; | |
27979 | return resultobj; | |
27980 | fail: | |
27981 | return NULL; | |
27982 | } | |
27983 | ||
27984 | ||
27985 | static PyObject *_wrap_PyLineShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
27986 | PyObject *resultobj; | |
27987 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27988 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
27989 | bool arg3 ; | |
27990 | double arg4 ; | |
27991 | double arg5 ; | |
27992 | int arg6 = (int) 0 ; | |
27993 | int arg7 = (int) 0 ; | |
27994 | PyObject * obj0 = 0 ; | |
27995 | PyObject * obj1 = 0 ; | |
27996 | PyObject * obj2 = 0 ; | |
27997 | PyObject * obj3 = 0 ; | |
27998 | PyObject * obj4 = 0 ; | |
27999 | PyObject * obj5 = 0 ; | |
28000 | PyObject * obj6 = 0 ; | |
28001 | char *kwnames[] = { | |
28002 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28003 | }; | |
28004 | ||
28005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyLineShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
28006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
28007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
28009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28010 | arg3 = (bool)SWIG_As_bool(obj2); | |
28011 | if (PyErr_Occurred()) SWIG_fail; | |
28012 | arg4 = (double)SWIG_As_double(obj3); | |
28013 | if (PyErr_Occurred()) SWIG_fail; | |
28014 | arg5 = (double)SWIG_As_double(obj4); | |
28015 | if (PyErr_Occurred()) SWIG_fail; | |
28016 | if (obj5) { | |
28017 | arg6 = (int)SWIG_As_int(obj5); | |
28018 | if (PyErr_Occurred()) SWIG_fail; | |
28019 | } | |
28020 | if (obj6) { | |
28021 | arg7 = (int)SWIG_As_int(obj6); | |
28022 | if (PyErr_Occurred()) SWIG_fail; | |
28023 | } | |
28024 | { | |
28025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28026 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
28027 | ||
28028 | wxPyEndAllowThreads(__tstate); | |
28029 | if (PyErr_Occurred()) SWIG_fail; | |
28030 | } | |
28031 | Py_INCREF(Py_None); resultobj = Py_None; | |
28032 | return resultobj; | |
28033 | fail: | |
28034 | return NULL; | |
28035 | } | |
28036 | ||
28037 | ||
28038 | static PyObject *_wrap_PyLineShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
28039 | PyObject *resultobj; | |
28040 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
28041 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
28042 | double arg3 ; | |
28043 | double arg4 ; | |
28044 | int arg5 = (int) 0 ; | |
28045 | int arg6 = (int) 0 ; | |
28046 | PyObject * obj0 = 0 ; | |
28047 | PyObject * obj1 = 0 ; | |
28048 | PyObject * obj2 = 0 ; | |
28049 | PyObject * obj3 = 0 ; | |
28050 | PyObject * obj4 = 0 ; | |
28051 | PyObject * obj5 = 0 ; | |
28052 | char *kwnames[] = { | |
28053 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28054 | }; | |
28055 | ||
28056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyLineShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
28058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28059 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
28060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28061 | arg3 = (double)SWIG_As_double(obj2); | |
28062 | if (PyErr_Occurred()) SWIG_fail; | |
28063 | arg4 = (double)SWIG_As_double(obj3); | |
28064 | if (PyErr_Occurred()) SWIG_fail; | |
28065 | if (obj4) { | |
28066 | arg5 = (int)SWIG_As_int(obj4); | |
28067 | if (PyErr_Occurred()) SWIG_fail; | |
28068 | } | |
28069 | if (obj5) { | |
28070 | arg6 = (int)SWIG_As_int(obj5); | |
28071 | if (PyErr_Occurred()) SWIG_fail; | |
28072 | } | |
28073 | { | |
28074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28075 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
28076 | ||
28077 | wxPyEndAllowThreads(__tstate); | |
28078 | if (PyErr_Occurred()) SWIG_fail; | |
28079 | } | |
28080 | Py_INCREF(Py_None); resultobj = Py_None; | |
28081 | return resultobj; | |
28082 | fail: | |
28083 | return NULL; | |
28084 | } | |
28085 | ||
28086 | ||
28087 | static PyObject *_wrap_PyLineShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
28088 | PyObject *resultobj; | |
28089 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
28090 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
28091 | double arg3 ; | |
28092 | double arg4 ; | |
28093 | int arg5 = (int) 0 ; | |
28094 | int arg6 = (int) 0 ; | |
28095 | PyObject * obj0 = 0 ; | |
28096 | PyObject * obj1 = 0 ; | |
28097 | PyObject * obj2 = 0 ; | |
28098 | PyObject * obj3 = 0 ; | |
28099 | PyObject * obj4 = 0 ; | |
28100 | PyObject * obj5 = 0 ; | |
28101 | char *kwnames[] = { | |
28102 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28103 | }; | |
28104 | ||
28105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyLineShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
28107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28108 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
28109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28110 | arg3 = (double)SWIG_As_double(obj2); | |
28111 | if (PyErr_Occurred()) SWIG_fail; | |
28112 | arg4 = (double)SWIG_As_double(obj3); | |
28113 | if (PyErr_Occurred()) SWIG_fail; | |
28114 | if (obj4) { | |
28115 | arg5 = (int)SWIG_As_int(obj4); | |
28116 | if (PyErr_Occurred()) SWIG_fail; | |
28117 | } | |
28118 | if (obj5) { | |
28119 | arg6 = (int)SWIG_As_int(obj5); | |
28120 | if (PyErr_Occurred()) SWIG_fail; | |
28121 | } | |
28122 | { | |
28123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28124 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
28125 | ||
28126 | wxPyEndAllowThreads(__tstate); | |
28127 | if (PyErr_Occurred()) SWIG_fail; | |
28128 | } | |
28129 | Py_INCREF(Py_None); resultobj = Py_None; | |
28130 | return resultobj; | |
28131 | fail: | |
28132 | return NULL; | |
28133 | } | |
28134 | ||
28135 | ||
28136 | static PyObject *_wrap_PyLineShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
28137 | PyObject *resultobj; | |
28138 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
28139 | double arg2 ; | |
28140 | double arg3 ; | |
28141 | PyObject * obj0 = 0 ; | |
28142 | PyObject * obj1 = 0 ; | |
28143 | PyObject * obj2 = 0 ; | |
28144 | char *kwnames[] = { | |
28145 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28146 | }; | |
28147 | ||
28148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
28150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28151 | arg2 = (double)SWIG_As_double(obj1); | |
28152 | if (PyErr_Occurred()) SWIG_fail; | |
28153 | arg3 = (double)SWIG_As_double(obj2); | |
28154 | if (PyErr_Occurred()) SWIG_fail; | |
28155 | { | |
28156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28157 | (arg1)->base_OnBeginSize(arg2,arg3); | |
28158 | ||
28159 | wxPyEndAllowThreads(__tstate); | |
28160 | if (PyErr_Occurred()) SWIG_fail; | |
28161 | } | |
28162 | Py_INCREF(Py_None); resultobj = Py_None; | |
28163 | return resultobj; | |
28164 | fail: | |
28165 | return NULL; | |
28166 | } | |
28167 | ||
28168 | ||
28169 | static PyObject *_wrap_PyLineShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
28170 | PyObject *resultobj; | |
28171 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
28172 | double arg2 ; | |
28173 | double arg3 ; | |
28174 | PyObject * obj0 = 0 ; | |
28175 | PyObject * obj1 = 0 ; | |
28176 | PyObject * obj2 = 0 ; | |
28177 | char *kwnames[] = { | |
28178 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28179 | }; | |
28180 | ||
28181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
28183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28184 | arg2 = (double)SWIG_As_double(obj1); | |
28185 | if (PyErr_Occurred()) SWIG_fail; | |
28186 | arg3 = (double)SWIG_As_double(obj2); | |
28187 | if (PyErr_Occurred()) SWIG_fail; | |
28188 | { | |
28189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28190 | (arg1)->base_OnEndSize(arg2,arg3); | |
28191 | ||
28192 | wxPyEndAllowThreads(__tstate); | |
28193 | if (PyErr_Occurred()) SWIG_fail; | |
28194 | } | |
28195 | Py_INCREF(Py_None); resultobj = Py_None; | |
28196 | return resultobj; | |
28197 | fail: | |
28198 | return NULL; | |
28199 | } | |
28200 | ||
28201 | ||
28202 | static PyObject * PyLineShape_swigregister(PyObject *, PyObject *args) { | |
28203 | PyObject *obj; | |
28204 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28205 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLineShape, obj); | |
28206 | Py_INCREF(obj); | |
28207 | return Py_BuildValue((char *)""); | |
28208 | } | |
28209 | static PyObject *_wrap_new_PyPolygonShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
28210 | PyObject *resultobj; | |
28211 | wxPyPolygonShape *result; | |
28212 | char *kwnames[] = { | |
28213 | NULL | |
28214 | }; | |
28215 | ||
28216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyPolygonShape",kwnames)) goto fail; | |
28217 | { | |
28218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28219 | result = (wxPyPolygonShape *)new wxPyPolygonShape(); | |
28220 | ||
28221 | wxPyEndAllowThreads(__tstate); | |
28222 | if (PyErr_Occurred()) SWIG_fail; | |
28223 | } | |
28224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPolygonShape, 1); | |
28225 | return resultobj; | |
28226 | fail: | |
28227 | return NULL; | |
28228 | } | |
28229 | ||
28230 | ||
28231 | static PyObject *_wrap_PyPolygonShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
28232 | PyObject *resultobj; | |
28233 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28234 | PyObject *arg2 = (PyObject *) 0 ; | |
28235 | PyObject *arg3 = (PyObject *) 0 ; | |
28236 | PyObject * obj0 = 0 ; | |
28237 | PyObject * obj1 = 0 ; | |
28238 | PyObject * obj2 = 0 ; | |
28239 | char *kwnames[] = { | |
28240 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28241 | }; | |
28242 | ||
28243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPolygonShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28246 | arg2 = obj1; | |
28247 | arg3 = obj2; | |
28248 | { | |
28249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28250 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28251 | ||
28252 | wxPyEndAllowThreads(__tstate); | |
28253 | if (PyErr_Occurred()) SWIG_fail; | |
28254 | } | |
28255 | Py_INCREF(Py_None); resultobj = Py_None; | |
28256 | return resultobj; | |
28257 | fail: | |
28258 | return NULL; | |
28259 | } | |
28260 | ||
28261 | ||
28262 | static PyObject *_wrap_PyPolygonShape_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
28263 | PyObject *resultobj; | |
28264 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28265 | PyObject *arg2 = (PyObject *) 0 ; | |
28266 | PyObject *result; | |
28267 | PyObject * obj0 = 0 ; | |
28268 | PyObject * obj1 = 0 ; | |
28269 | char *kwnames[] = { | |
28270 | (char *) "self",(char *) "points", NULL | |
28271 | }; | |
28272 | ||
28273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_Create",kwnames,&obj0,&obj1)) goto fail; | |
28274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28276 | arg2 = obj1; | |
28277 | { | |
28278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28279 | result = (PyObject *)wxPyPolygonShape_Create(arg1,arg2); | |
28280 | ||
28281 | wxPyEndAllowThreads(__tstate); | |
28282 | if (PyErr_Occurred()) SWIG_fail; | |
28283 | } | |
28284 | resultobj = result; | |
28285 | return resultobj; | |
28286 | fail: | |
28287 | return NULL; | |
28288 | } | |
28289 | ||
28290 | ||
28291 | static PyObject *_wrap_PyPolygonShape_AddPolygonPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
28292 | PyObject *resultobj; | |
28293 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28294 | int arg2 = (int) 0 ; | |
28295 | PyObject * obj0 = 0 ; | |
28296 | PyObject * obj1 = 0 ; | |
28297 | char *kwnames[] = { | |
28298 | (char *) "self",(char *) "pos", NULL | |
28299 | }; | |
28300 | ||
28301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyPolygonShape_AddPolygonPoint",kwnames,&obj0,&obj1)) goto fail; | |
28302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28304 | if (obj1) { | |
28305 | arg2 = (int)SWIG_As_int(obj1); | |
28306 | if (PyErr_Occurred()) SWIG_fail; | |
28307 | } | |
28308 | { | |
28309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28310 | (arg1)->AddPolygonPoint(arg2); | |
28311 | ||
28312 | wxPyEndAllowThreads(__tstate); | |
28313 | if (PyErr_Occurred()) SWIG_fail; | |
28314 | } | |
28315 | Py_INCREF(Py_None); resultobj = Py_None; | |
28316 | return resultobj; | |
28317 | fail: | |
28318 | return NULL; | |
28319 | } | |
28320 | ||
28321 | ||
28322 | static PyObject *_wrap_PyPolygonShape_CalculatePolygonCentre(PyObject *, PyObject *args, PyObject *kwargs) { | |
28323 | PyObject *resultobj; | |
28324 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28325 | PyObject * obj0 = 0 ; | |
28326 | char *kwnames[] = { | |
28327 | (char *) "self", NULL | |
28328 | }; | |
28329 | ||
28330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_CalculatePolygonCentre",kwnames,&obj0)) goto fail; | |
28331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28333 | { | |
28334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28335 | (arg1)->CalculatePolygonCentre(); | |
28336 | ||
28337 | wxPyEndAllowThreads(__tstate); | |
28338 | if (PyErr_Occurred()) SWIG_fail; | |
28339 | } | |
28340 | Py_INCREF(Py_None); resultobj = Py_None; | |
28341 | return resultobj; | |
28342 | fail: | |
28343 | return NULL; | |
28344 | } | |
28345 | ||
28346 | ||
28347 | static PyObject *_wrap_PyPolygonShape_DeletePolygonPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
28348 | PyObject *resultobj; | |
28349 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28350 | int arg2 = (int) 0 ; | |
28351 | PyObject * obj0 = 0 ; | |
28352 | PyObject * obj1 = 0 ; | |
28353 | char *kwnames[] = { | |
28354 | (char *) "self",(char *) "pos", NULL | |
28355 | }; | |
28356 | ||
28357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyPolygonShape_DeletePolygonPoint",kwnames,&obj0,&obj1)) goto fail; | |
28358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28360 | if (obj1) { | |
28361 | arg2 = (int)SWIG_As_int(obj1); | |
28362 | if (PyErr_Occurred()) SWIG_fail; | |
28363 | } | |
28364 | { | |
28365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28366 | (arg1)->DeletePolygonPoint(arg2); | |
28367 | ||
28368 | wxPyEndAllowThreads(__tstate); | |
28369 | if (PyErr_Occurred()) SWIG_fail; | |
28370 | } | |
28371 | Py_INCREF(Py_None); resultobj = Py_None; | |
28372 | return resultobj; | |
28373 | fail: | |
28374 | return NULL; | |
28375 | } | |
28376 | ||
28377 | ||
28378 | static PyObject *_wrap_PyPolygonShape_GetPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
28379 | PyObject *resultobj; | |
28380 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28381 | PyObject *result; | |
28382 | PyObject * obj0 = 0 ; | |
28383 | char *kwnames[] = { | |
28384 | (char *) "self", NULL | |
28385 | }; | |
28386 | ||
28387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetPoints",kwnames,&obj0)) goto fail; | |
28388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28390 | { | |
28391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28392 | result = (PyObject *)wxPyPolygonShape_GetPoints(arg1); | |
28393 | ||
28394 | wxPyEndAllowThreads(__tstate); | |
28395 | if (PyErr_Occurred()) SWIG_fail; | |
28396 | } | |
28397 | resultobj = result; | |
28398 | return resultobj; | |
28399 | fail: | |
28400 | return NULL; | |
28401 | } | |
28402 | ||
28403 | ||
28404 | static PyObject *_wrap_PyPolygonShape_GetOriginalPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
28405 | PyObject *resultobj; | |
28406 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28407 | PyObject *result; | |
28408 | PyObject * obj0 = 0 ; | |
28409 | char *kwnames[] = { | |
28410 | (char *) "self", NULL | |
28411 | }; | |
28412 | ||
28413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetOriginalPoints",kwnames,&obj0)) goto fail; | |
28414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28416 | { | |
28417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28418 | result = (PyObject *)wxPyPolygonShape_GetOriginalPoints(arg1); | |
28419 | ||
28420 | wxPyEndAllowThreads(__tstate); | |
28421 | if (PyErr_Occurred()) SWIG_fail; | |
28422 | } | |
28423 | resultobj = result; | |
28424 | return resultobj; | |
28425 | fail: | |
28426 | return NULL; | |
28427 | } | |
28428 | ||
28429 | ||
28430 | static PyObject *_wrap_PyPolygonShape_GetOriginalWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
28431 | PyObject *resultobj; | |
28432 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28433 | double result; | |
28434 | PyObject * obj0 = 0 ; | |
28435 | char *kwnames[] = { | |
28436 | (char *) "self", NULL | |
28437 | }; | |
28438 | ||
28439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetOriginalWidth",kwnames,&obj0)) goto fail; | |
28440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28442 | { | |
28443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28444 | result = (double)((wxPyPolygonShape const *)arg1)->GetOriginalWidth(); | |
28445 | ||
28446 | wxPyEndAllowThreads(__tstate); | |
28447 | if (PyErr_Occurred()) SWIG_fail; | |
28448 | } | |
28449 | resultobj = SWIG_From_double((double)result); | |
28450 | return resultobj; | |
28451 | fail: | |
28452 | return NULL; | |
28453 | } | |
28454 | ||
28455 | ||
28456 | static PyObject *_wrap_PyPolygonShape_GetOriginalHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
28457 | PyObject *resultobj; | |
28458 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28459 | double result; | |
28460 | PyObject * obj0 = 0 ; | |
28461 | char *kwnames[] = { | |
28462 | (char *) "self", NULL | |
28463 | }; | |
28464 | ||
28465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetOriginalHeight",kwnames,&obj0)) goto fail; | |
28466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28468 | { | |
28469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28470 | result = (double)((wxPyPolygonShape const *)arg1)->GetOriginalHeight(); | |
28471 | ||
28472 | wxPyEndAllowThreads(__tstate); | |
28473 | if (PyErr_Occurred()) SWIG_fail; | |
28474 | } | |
28475 | resultobj = SWIG_From_double((double)result); | |
28476 | return resultobj; | |
28477 | fail: | |
28478 | return NULL; | |
28479 | } | |
28480 | ||
28481 | ||
28482 | static PyObject *_wrap_PyPolygonShape_SetOriginalWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
28483 | PyObject *resultobj; | |
28484 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28485 | double arg2 ; | |
28486 | PyObject * obj0 = 0 ; | |
28487 | PyObject * obj1 = 0 ; | |
28488 | char *kwnames[] = { | |
28489 | (char *) "self",(char *) "w", NULL | |
28490 | }; | |
28491 | ||
28492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_SetOriginalWidth",kwnames,&obj0,&obj1)) goto fail; | |
28493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28495 | arg2 = (double)SWIG_As_double(obj1); | |
28496 | if (PyErr_Occurred()) SWIG_fail; | |
28497 | { | |
28498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28499 | (arg1)->SetOriginalWidth(arg2); | |
28500 | ||
28501 | wxPyEndAllowThreads(__tstate); | |
28502 | if (PyErr_Occurred()) SWIG_fail; | |
28503 | } | |
28504 | Py_INCREF(Py_None); resultobj = Py_None; | |
28505 | return resultobj; | |
28506 | fail: | |
28507 | return NULL; | |
28508 | } | |
28509 | ||
28510 | ||
28511 | static PyObject *_wrap_PyPolygonShape_SetOriginalHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
28512 | PyObject *resultobj; | |
28513 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28514 | double arg2 ; | |
28515 | PyObject * obj0 = 0 ; | |
28516 | PyObject * obj1 = 0 ; | |
28517 | char *kwnames[] = { | |
28518 | (char *) "self",(char *) "h", NULL | |
28519 | }; | |
28520 | ||
28521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_SetOriginalHeight",kwnames,&obj0,&obj1)) goto fail; | |
28522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28524 | arg2 = (double)SWIG_As_double(obj1); | |
28525 | if (PyErr_Occurred()) SWIG_fail; | |
28526 | { | |
28527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28528 | (arg1)->SetOriginalHeight(arg2); | |
28529 | ||
28530 | wxPyEndAllowThreads(__tstate); | |
28531 | if (PyErr_Occurred()) SWIG_fail; | |
28532 | } | |
28533 | Py_INCREF(Py_None); resultobj = Py_None; | |
28534 | return resultobj; | |
28535 | fail: | |
28536 | return NULL; | |
28537 | } | |
28538 | ||
28539 | ||
28540 | static PyObject *_wrap_PyPolygonShape_UpdateOriginalPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
28541 | PyObject *resultobj; | |
28542 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28543 | PyObject * obj0 = 0 ; | |
28544 | char *kwnames[] = { | |
28545 | (char *) "self", NULL | |
28546 | }; | |
28547 | ||
28548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_UpdateOriginalPoints",kwnames,&obj0)) goto fail; | |
28549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28551 | { | |
28552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28553 | (arg1)->UpdateOriginalPoints(); | |
28554 | ||
28555 | wxPyEndAllowThreads(__tstate); | |
28556 | if (PyErr_Occurred()) SWIG_fail; | |
28557 | } | |
28558 | Py_INCREF(Py_None); resultobj = Py_None; | |
28559 | return resultobj; | |
28560 | fail: | |
28561 | return NULL; | |
28562 | } | |
28563 | ||
28564 | ||
28565 | static PyObject *_wrap_PyPolygonShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
28566 | PyObject *resultobj; | |
28567 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28568 | wxDC *arg2 = 0 ; | |
28569 | PyObject * obj0 = 0 ; | |
28570 | PyObject * obj1 = 0 ; | |
28571 | char *kwnames[] = { | |
28572 | (char *) "self",(char *) "dc", NULL | |
28573 | }; | |
28574 | ||
28575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
28576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28578 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28579 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28580 | SWIG_fail; | |
28581 | if (arg2 == NULL) { | |
28582 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28583 | SWIG_fail; | |
28584 | } | |
28585 | { | |
28586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28587 | (arg1)->base_OnDraw(*arg2); | |
28588 | ||
28589 | wxPyEndAllowThreads(__tstate); | |
28590 | if (PyErr_Occurred()) SWIG_fail; | |
28591 | } | |
28592 | Py_INCREF(Py_None); resultobj = Py_None; | |
28593 | return resultobj; | |
28594 | fail: | |
28595 | return NULL; | |
28596 | } | |
28597 | ||
28598 | ||
28599 | static PyObject *_wrap_PyPolygonShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
28600 | PyObject *resultobj; | |
28601 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28602 | wxDC *arg2 = 0 ; | |
28603 | PyObject * obj0 = 0 ; | |
28604 | PyObject * obj1 = 0 ; | |
28605 | char *kwnames[] = { | |
28606 | (char *) "self",(char *) "dc", NULL | |
28607 | }; | |
28608 | ||
28609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
28610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28613 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28614 | SWIG_fail; | |
28615 | if (arg2 == NULL) { | |
28616 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28617 | SWIG_fail; | |
28618 | } | |
28619 | { | |
28620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28621 | (arg1)->base_OnDrawContents(*arg2); | |
28622 | ||
28623 | wxPyEndAllowThreads(__tstate); | |
28624 | if (PyErr_Occurred()) SWIG_fail; | |
28625 | } | |
28626 | Py_INCREF(Py_None); resultobj = Py_None; | |
28627 | return resultobj; | |
28628 | fail: | |
28629 | return NULL; | |
28630 | } | |
28631 | ||
28632 | ||
28633 | static PyObject *_wrap_PyPolygonShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
28634 | PyObject *resultobj; | |
28635 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28636 | wxDC *arg2 = 0 ; | |
28637 | bool arg3 = (bool) FALSE ; | |
28638 | PyObject * obj0 = 0 ; | |
28639 | PyObject * obj1 = 0 ; | |
28640 | PyObject * obj2 = 0 ; | |
28641 | char *kwnames[] = { | |
28642 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
28643 | }; | |
28644 | ||
28645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyPolygonShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28649 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28650 | SWIG_fail; | |
28651 | if (arg2 == NULL) { | |
28652 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28653 | SWIG_fail; | |
28654 | } | |
28655 | if (obj2) { | |
28656 | arg3 = (bool)SWIG_As_bool(obj2); | |
28657 | if (PyErr_Occurred()) SWIG_fail; | |
28658 | } | |
28659 | { | |
28660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28661 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
28662 | ||
28663 | wxPyEndAllowThreads(__tstate); | |
28664 | if (PyErr_Occurred()) SWIG_fail; | |
28665 | } | |
28666 | Py_INCREF(Py_None); resultobj = Py_None; | |
28667 | return resultobj; | |
28668 | fail: | |
28669 | return NULL; | |
28670 | } | |
28671 | ||
28672 | ||
28673 | static PyObject *_wrap_PyPolygonShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
28674 | PyObject *resultobj; | |
28675 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28676 | wxDC *arg2 = 0 ; | |
28677 | PyObject * obj0 = 0 ; | |
28678 | PyObject * obj1 = 0 ; | |
28679 | char *kwnames[] = { | |
28680 | (char *) "self",(char *) "dc", NULL | |
28681 | }; | |
28682 | ||
28683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
28684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28686 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28687 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28688 | SWIG_fail; | |
28689 | if (arg2 == NULL) { | |
28690 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28691 | SWIG_fail; | |
28692 | } | |
28693 | { | |
28694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28695 | (arg1)->base_OnMoveLinks(*arg2); | |
28696 | ||
28697 | wxPyEndAllowThreads(__tstate); | |
28698 | if (PyErr_Occurred()) SWIG_fail; | |
28699 | } | |
28700 | Py_INCREF(Py_None); resultobj = Py_None; | |
28701 | return resultobj; | |
28702 | fail: | |
28703 | return NULL; | |
28704 | } | |
28705 | ||
28706 | ||
28707 | static PyObject *_wrap_PyPolygonShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
28708 | PyObject *resultobj; | |
28709 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28710 | wxDC *arg2 = 0 ; | |
28711 | PyObject * obj0 = 0 ; | |
28712 | PyObject * obj1 = 0 ; | |
28713 | char *kwnames[] = { | |
28714 | (char *) "self",(char *) "dc", NULL | |
28715 | }; | |
28716 | ||
28717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
28718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28720 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28721 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28722 | SWIG_fail; | |
28723 | if (arg2 == NULL) { | |
28724 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28725 | SWIG_fail; | |
28726 | } | |
28727 | { | |
28728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28729 | (arg1)->base_OnErase(*arg2); | |
28730 | ||
28731 | wxPyEndAllowThreads(__tstate); | |
28732 | if (PyErr_Occurred()) SWIG_fail; | |
28733 | } | |
28734 | Py_INCREF(Py_None); resultobj = Py_None; | |
28735 | return resultobj; | |
28736 | fail: | |
28737 | return NULL; | |
28738 | } | |
28739 | ||
28740 | ||
28741 | static PyObject *_wrap_PyPolygonShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
28742 | PyObject *resultobj; | |
28743 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28744 | wxDC *arg2 = 0 ; | |
28745 | PyObject * obj0 = 0 ; | |
28746 | PyObject * obj1 = 0 ; | |
28747 | char *kwnames[] = { | |
28748 | (char *) "self",(char *) "dc", NULL | |
28749 | }; | |
28750 | ||
28751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
28752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28756 | SWIG_fail; | |
28757 | if (arg2 == NULL) { | |
28758 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28759 | SWIG_fail; | |
28760 | } | |
28761 | { | |
28762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28763 | (arg1)->base_OnEraseContents(*arg2); | |
28764 | ||
28765 | wxPyEndAllowThreads(__tstate); | |
28766 | if (PyErr_Occurred()) SWIG_fail; | |
28767 | } | |
28768 | Py_INCREF(Py_None); resultobj = Py_None; | |
28769 | return resultobj; | |
28770 | fail: | |
28771 | return NULL; | |
28772 | } | |
28773 | ||
28774 | ||
28775 | static PyObject *_wrap_PyPolygonShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
28776 | PyObject *resultobj; | |
28777 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28778 | wxDC *arg2 = 0 ; | |
28779 | PyObject * obj0 = 0 ; | |
28780 | PyObject * obj1 = 0 ; | |
28781 | char *kwnames[] = { | |
28782 | (char *) "self",(char *) "dc", NULL | |
28783 | }; | |
28784 | ||
28785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
28786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28788 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28789 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28790 | SWIG_fail; | |
28791 | if (arg2 == NULL) { | |
28792 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28793 | SWIG_fail; | |
28794 | } | |
28795 | { | |
28796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28797 | (arg1)->base_OnHighlight(*arg2); | |
28798 | ||
28799 | wxPyEndAllowThreads(__tstate); | |
28800 | if (PyErr_Occurred()) SWIG_fail; | |
28801 | } | |
28802 | Py_INCREF(Py_None); resultobj = Py_None; | |
28803 | return resultobj; | |
28804 | fail: | |
28805 | return NULL; | |
28806 | } | |
28807 | ||
28808 | ||
28809 | static PyObject *_wrap_PyPolygonShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
28810 | PyObject *resultobj; | |
28811 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28812 | double arg2 ; | |
28813 | double arg3 ; | |
28814 | int arg4 = (int) 0 ; | |
28815 | int arg5 = (int) 0 ; | |
28816 | PyObject * obj0 = 0 ; | |
28817 | PyObject * obj1 = 0 ; | |
28818 | PyObject * obj2 = 0 ; | |
28819 | PyObject * obj3 = 0 ; | |
28820 | PyObject * obj4 = 0 ; | |
28821 | char *kwnames[] = { | |
28822 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28823 | }; | |
28824 | ||
28825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28828 | arg2 = (double)SWIG_As_double(obj1); | |
28829 | if (PyErr_Occurred()) SWIG_fail; | |
28830 | arg3 = (double)SWIG_As_double(obj2); | |
28831 | if (PyErr_Occurred()) SWIG_fail; | |
28832 | if (obj3) { | |
28833 | arg4 = (int)SWIG_As_int(obj3); | |
28834 | if (PyErr_Occurred()) SWIG_fail; | |
28835 | } | |
28836 | if (obj4) { | |
28837 | arg5 = (int)SWIG_As_int(obj4); | |
28838 | if (PyErr_Occurred()) SWIG_fail; | |
28839 | } | |
28840 | { | |
28841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28842 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
28843 | ||
28844 | wxPyEndAllowThreads(__tstate); | |
28845 | if (PyErr_Occurred()) SWIG_fail; | |
28846 | } | |
28847 | Py_INCREF(Py_None); resultobj = Py_None; | |
28848 | return resultobj; | |
28849 | fail: | |
28850 | return NULL; | |
28851 | } | |
28852 | ||
28853 | ||
28854 | static PyObject *_wrap_PyPolygonShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
28855 | PyObject *resultobj; | |
28856 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28857 | double arg2 ; | |
28858 | double arg3 ; | |
28859 | int arg4 = (int) 0 ; | |
28860 | int arg5 = (int) 0 ; | |
28861 | PyObject * obj0 = 0 ; | |
28862 | PyObject * obj1 = 0 ; | |
28863 | PyObject * obj2 = 0 ; | |
28864 | PyObject * obj3 = 0 ; | |
28865 | PyObject * obj4 = 0 ; | |
28866 | char *kwnames[] = { | |
28867 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28868 | }; | |
28869 | ||
28870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28873 | arg2 = (double)SWIG_As_double(obj1); | |
28874 | if (PyErr_Occurred()) SWIG_fail; | |
28875 | arg3 = (double)SWIG_As_double(obj2); | |
28876 | if (PyErr_Occurred()) SWIG_fail; | |
28877 | if (obj3) { | |
28878 | arg4 = (int)SWIG_As_int(obj3); | |
28879 | if (PyErr_Occurred()) SWIG_fail; | |
28880 | } | |
28881 | if (obj4) { | |
28882 | arg5 = (int)SWIG_As_int(obj4); | |
28883 | if (PyErr_Occurred()) SWIG_fail; | |
28884 | } | |
28885 | { | |
28886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28887 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
28888 | ||
28889 | wxPyEndAllowThreads(__tstate); | |
28890 | if (PyErr_Occurred()) SWIG_fail; | |
28891 | } | |
28892 | Py_INCREF(Py_None); resultobj = Py_None; | |
28893 | return resultobj; | |
28894 | fail: | |
28895 | return NULL; | |
28896 | } | |
28897 | ||
28898 | ||
28899 | static PyObject *_wrap_PyPolygonShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
28900 | PyObject *resultobj; | |
28901 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28902 | double arg2 ; | |
28903 | double arg3 ; | |
28904 | int arg4 = (int) 0 ; | |
28905 | int arg5 = (int) 0 ; | |
28906 | PyObject * obj0 = 0 ; | |
28907 | PyObject * obj1 = 0 ; | |
28908 | PyObject * obj2 = 0 ; | |
28909 | PyObject * obj3 = 0 ; | |
28910 | PyObject * obj4 = 0 ; | |
28911 | char *kwnames[] = { | |
28912 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28913 | }; | |
28914 | ||
28915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28918 | arg2 = (double)SWIG_As_double(obj1); | |
28919 | if (PyErr_Occurred()) SWIG_fail; | |
28920 | arg3 = (double)SWIG_As_double(obj2); | |
28921 | if (PyErr_Occurred()) SWIG_fail; | |
28922 | if (obj3) { | |
28923 | arg4 = (int)SWIG_As_int(obj3); | |
28924 | if (PyErr_Occurred()) SWIG_fail; | |
28925 | } | |
28926 | if (obj4) { | |
28927 | arg5 = (int)SWIG_As_int(obj4); | |
28928 | if (PyErr_Occurred()) SWIG_fail; | |
28929 | } | |
28930 | { | |
28931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28932 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
28933 | ||
28934 | wxPyEndAllowThreads(__tstate); | |
28935 | if (PyErr_Occurred()) SWIG_fail; | |
28936 | } | |
28937 | Py_INCREF(Py_None); resultobj = Py_None; | |
28938 | return resultobj; | |
28939 | fail: | |
28940 | return NULL; | |
28941 | } | |
28942 | ||
28943 | ||
28944 | static PyObject *_wrap_PyPolygonShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
28945 | PyObject *resultobj; | |
28946 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28947 | double arg2 ; | |
28948 | double arg3 ; | |
28949 | PyObject * obj0 = 0 ; | |
28950 | PyObject * obj1 = 0 ; | |
28951 | PyObject * obj2 = 0 ; | |
28952 | char *kwnames[] = { | |
28953 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28954 | }; | |
28955 | ||
28956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPolygonShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
28958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28959 | arg2 = (double)SWIG_As_double(obj1); | |
28960 | if (PyErr_Occurred()) SWIG_fail; | |
28961 | arg3 = (double)SWIG_As_double(obj2); | |
28962 | if (PyErr_Occurred()) SWIG_fail; | |
28963 | { | |
28964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28965 | (arg1)->base_OnSize(arg2,arg3); | |
28966 | ||
28967 | wxPyEndAllowThreads(__tstate); | |
28968 | if (PyErr_Occurred()) SWIG_fail; | |
28969 | } | |
28970 | Py_INCREF(Py_None); resultobj = Py_None; | |
28971 | return resultobj; | |
28972 | fail: | |
28973 | return NULL; | |
28974 | } | |
28975 | ||
28976 | ||
28977 | static PyObject *_wrap_PyPolygonShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
28978 | PyObject *resultobj; | |
28979 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28980 | wxDC *arg2 = 0 ; | |
28981 | double arg3 ; | |
28982 | double arg4 ; | |
28983 | double arg5 ; | |
28984 | double arg6 ; | |
28985 | bool arg7 = (bool) true ; | |
28986 | bool result; | |
28987 | PyObject * obj0 = 0 ; | |
28988 | PyObject * obj1 = 0 ; | |
28989 | PyObject * obj2 = 0 ; | |
28990 | PyObject * obj3 = 0 ; | |
28991 | PyObject * obj4 = 0 ; | |
28992 | PyObject * obj5 = 0 ; | |
28993 | PyObject * obj6 = 0 ; | |
28994 | char *kwnames[] = { | |
28995 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
28996 | }; | |
28997 | ||
28998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyPolygonShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
28999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29001 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29002 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29003 | SWIG_fail; | |
29004 | if (arg2 == NULL) { | |
29005 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29006 | SWIG_fail; | |
29007 | } | |
29008 | arg3 = (double)SWIG_As_double(obj2); | |
29009 | if (PyErr_Occurred()) SWIG_fail; | |
29010 | arg4 = (double)SWIG_As_double(obj3); | |
29011 | if (PyErr_Occurred()) SWIG_fail; | |
29012 | arg5 = (double)SWIG_As_double(obj4); | |
29013 | if (PyErr_Occurred()) SWIG_fail; | |
29014 | arg6 = (double)SWIG_As_double(obj5); | |
29015 | if (PyErr_Occurred()) SWIG_fail; | |
29016 | if (obj6) { | |
29017 | arg7 = (bool)SWIG_As_bool(obj6); | |
29018 | if (PyErr_Occurred()) SWIG_fail; | |
29019 | } | |
29020 | { | |
29021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29022 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
29023 | ||
29024 | wxPyEndAllowThreads(__tstate); | |
29025 | if (PyErr_Occurred()) SWIG_fail; | |
29026 | } | |
29027 | { | |
29028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29029 | } | |
29030 | return resultobj; | |
29031 | fail: | |
29032 | return NULL; | |
29033 | } | |
29034 | ||
29035 | ||
29036 | static PyObject *_wrap_PyPolygonShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
29037 | PyObject *resultobj; | |
29038 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29039 | wxDC *arg2 = 0 ; | |
29040 | double arg3 ; | |
29041 | double arg4 ; | |
29042 | double arg5 ; | |
29043 | double arg6 ; | |
29044 | bool arg7 = (bool) true ; | |
29045 | PyObject * obj0 = 0 ; | |
29046 | PyObject * obj1 = 0 ; | |
29047 | PyObject * obj2 = 0 ; | |
29048 | PyObject * obj3 = 0 ; | |
29049 | PyObject * obj4 = 0 ; | |
29050 | PyObject * obj5 = 0 ; | |
29051 | PyObject * obj6 = 0 ; | |
29052 | char *kwnames[] = { | |
29053 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
29054 | }; | |
29055 | ||
29056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyPolygonShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
29057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29059 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29060 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29061 | SWIG_fail; | |
29062 | if (arg2 == NULL) { | |
29063 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29064 | SWIG_fail; | |
29065 | } | |
29066 | arg3 = (double)SWIG_As_double(obj2); | |
29067 | if (PyErr_Occurred()) SWIG_fail; | |
29068 | arg4 = (double)SWIG_As_double(obj3); | |
29069 | if (PyErr_Occurred()) SWIG_fail; | |
29070 | arg5 = (double)SWIG_As_double(obj4); | |
29071 | if (PyErr_Occurred()) SWIG_fail; | |
29072 | arg6 = (double)SWIG_As_double(obj5); | |
29073 | if (PyErr_Occurred()) SWIG_fail; | |
29074 | if (obj6) { | |
29075 | arg7 = (bool)SWIG_As_bool(obj6); | |
29076 | if (PyErr_Occurred()) SWIG_fail; | |
29077 | } | |
29078 | { | |
29079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29080 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
29081 | ||
29082 | wxPyEndAllowThreads(__tstate); | |
29083 | if (PyErr_Occurred()) SWIG_fail; | |
29084 | } | |
29085 | Py_INCREF(Py_None); resultobj = Py_None; | |
29086 | return resultobj; | |
29087 | fail: | |
29088 | return NULL; | |
29089 | } | |
29090 | ||
29091 | ||
29092 | static PyObject *_wrap_PyPolygonShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
29093 | PyObject *resultobj; | |
29094 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29095 | bool arg2 ; | |
29096 | double arg3 ; | |
29097 | double arg4 ; | |
29098 | int arg5 = (int) 0 ; | |
29099 | int arg6 = (int) 0 ; | |
29100 | PyObject * obj0 = 0 ; | |
29101 | PyObject * obj1 = 0 ; | |
29102 | PyObject * obj2 = 0 ; | |
29103 | PyObject * obj3 = 0 ; | |
29104 | PyObject * obj4 = 0 ; | |
29105 | PyObject * obj5 = 0 ; | |
29106 | char *kwnames[] = { | |
29107 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29108 | }; | |
29109 | ||
29110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyPolygonShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29113 | arg2 = (bool)SWIG_As_bool(obj1); | |
29114 | if (PyErr_Occurred()) SWIG_fail; | |
29115 | arg3 = (double)SWIG_As_double(obj2); | |
29116 | if (PyErr_Occurred()) SWIG_fail; | |
29117 | arg4 = (double)SWIG_As_double(obj3); | |
29118 | if (PyErr_Occurred()) SWIG_fail; | |
29119 | if (obj4) { | |
29120 | arg5 = (int)SWIG_As_int(obj4); | |
29121 | if (PyErr_Occurred()) SWIG_fail; | |
29122 | } | |
29123 | if (obj5) { | |
29124 | arg6 = (int)SWIG_As_int(obj5); | |
29125 | if (PyErr_Occurred()) SWIG_fail; | |
29126 | } | |
29127 | { | |
29128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29129 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
29130 | ||
29131 | wxPyEndAllowThreads(__tstate); | |
29132 | if (PyErr_Occurred()) SWIG_fail; | |
29133 | } | |
29134 | Py_INCREF(Py_None); resultobj = Py_None; | |
29135 | return resultobj; | |
29136 | fail: | |
29137 | return NULL; | |
29138 | } | |
29139 | ||
29140 | ||
29141 | static PyObject *_wrap_PyPolygonShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
29142 | PyObject *resultobj; | |
29143 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29144 | double arg2 ; | |
29145 | double arg3 ; | |
29146 | int arg4 = (int) 0 ; | |
29147 | int arg5 = (int) 0 ; | |
29148 | PyObject * obj0 = 0 ; | |
29149 | PyObject * obj1 = 0 ; | |
29150 | PyObject * obj2 = 0 ; | |
29151 | PyObject * obj3 = 0 ; | |
29152 | PyObject * obj4 = 0 ; | |
29153 | char *kwnames[] = { | |
29154 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29155 | }; | |
29156 | ||
29157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29160 | arg2 = (double)SWIG_As_double(obj1); | |
29161 | if (PyErr_Occurred()) SWIG_fail; | |
29162 | arg3 = (double)SWIG_As_double(obj2); | |
29163 | if (PyErr_Occurred()) SWIG_fail; | |
29164 | if (obj3) { | |
29165 | arg4 = (int)SWIG_As_int(obj3); | |
29166 | if (PyErr_Occurred()) SWIG_fail; | |
29167 | } | |
29168 | if (obj4) { | |
29169 | arg5 = (int)SWIG_As_int(obj4); | |
29170 | if (PyErr_Occurred()) SWIG_fail; | |
29171 | } | |
29172 | { | |
29173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29174 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
29175 | ||
29176 | wxPyEndAllowThreads(__tstate); | |
29177 | if (PyErr_Occurred()) SWIG_fail; | |
29178 | } | |
29179 | Py_INCREF(Py_None); resultobj = Py_None; | |
29180 | return resultobj; | |
29181 | fail: | |
29182 | return NULL; | |
29183 | } | |
29184 | ||
29185 | ||
29186 | static PyObject *_wrap_PyPolygonShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
29187 | PyObject *resultobj; | |
29188 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29189 | double arg2 ; | |
29190 | double arg3 ; | |
29191 | int arg4 = (int) 0 ; | |
29192 | int arg5 = (int) 0 ; | |
29193 | PyObject * obj0 = 0 ; | |
29194 | PyObject * obj1 = 0 ; | |
29195 | PyObject * obj2 = 0 ; | |
29196 | PyObject * obj3 = 0 ; | |
29197 | PyObject * obj4 = 0 ; | |
29198 | char *kwnames[] = { | |
29199 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29200 | }; | |
29201 | ||
29202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29205 | arg2 = (double)SWIG_As_double(obj1); | |
29206 | if (PyErr_Occurred()) SWIG_fail; | |
29207 | arg3 = (double)SWIG_As_double(obj2); | |
29208 | if (PyErr_Occurred()) SWIG_fail; | |
29209 | if (obj3) { | |
29210 | arg4 = (int)SWIG_As_int(obj3); | |
29211 | if (PyErr_Occurred()) SWIG_fail; | |
29212 | } | |
29213 | if (obj4) { | |
29214 | arg5 = (int)SWIG_As_int(obj4); | |
29215 | if (PyErr_Occurred()) SWIG_fail; | |
29216 | } | |
29217 | { | |
29218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29219 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
29220 | ||
29221 | wxPyEndAllowThreads(__tstate); | |
29222 | if (PyErr_Occurred()) SWIG_fail; | |
29223 | } | |
29224 | Py_INCREF(Py_None); resultobj = Py_None; | |
29225 | return resultobj; | |
29226 | fail: | |
29227 | return NULL; | |
29228 | } | |
29229 | ||
29230 | ||
29231 | static PyObject *_wrap_PyPolygonShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
29232 | PyObject *resultobj; | |
29233 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29234 | bool arg2 ; | |
29235 | double arg3 ; | |
29236 | double arg4 ; | |
29237 | int arg5 = (int) 0 ; | |
29238 | int arg6 = (int) 0 ; | |
29239 | PyObject * obj0 = 0 ; | |
29240 | PyObject * obj1 = 0 ; | |
29241 | PyObject * obj2 = 0 ; | |
29242 | PyObject * obj3 = 0 ; | |
29243 | PyObject * obj4 = 0 ; | |
29244 | PyObject * obj5 = 0 ; | |
29245 | char *kwnames[] = { | |
29246 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29247 | }; | |
29248 | ||
29249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyPolygonShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29252 | arg2 = (bool)SWIG_As_bool(obj1); | |
29253 | if (PyErr_Occurred()) SWIG_fail; | |
29254 | arg3 = (double)SWIG_As_double(obj2); | |
29255 | if (PyErr_Occurred()) SWIG_fail; | |
29256 | arg4 = (double)SWIG_As_double(obj3); | |
29257 | if (PyErr_Occurred()) SWIG_fail; | |
29258 | if (obj4) { | |
29259 | arg5 = (int)SWIG_As_int(obj4); | |
29260 | if (PyErr_Occurred()) SWIG_fail; | |
29261 | } | |
29262 | if (obj5) { | |
29263 | arg6 = (int)SWIG_As_int(obj5); | |
29264 | if (PyErr_Occurred()) SWIG_fail; | |
29265 | } | |
29266 | { | |
29267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29268 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
29269 | ||
29270 | wxPyEndAllowThreads(__tstate); | |
29271 | if (PyErr_Occurred()) SWIG_fail; | |
29272 | } | |
29273 | Py_INCREF(Py_None); resultobj = Py_None; | |
29274 | return resultobj; | |
29275 | fail: | |
29276 | return NULL; | |
29277 | } | |
29278 | ||
29279 | ||
29280 | static PyObject *_wrap_PyPolygonShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
29281 | PyObject *resultobj; | |
29282 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29283 | double arg2 ; | |
29284 | double arg3 ; | |
29285 | int arg4 = (int) 0 ; | |
29286 | int arg5 = (int) 0 ; | |
29287 | PyObject * obj0 = 0 ; | |
29288 | PyObject * obj1 = 0 ; | |
29289 | PyObject * obj2 = 0 ; | |
29290 | PyObject * obj3 = 0 ; | |
29291 | PyObject * obj4 = 0 ; | |
29292 | char *kwnames[] = { | |
29293 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29294 | }; | |
29295 | ||
29296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29299 | arg2 = (double)SWIG_As_double(obj1); | |
29300 | if (PyErr_Occurred()) SWIG_fail; | |
29301 | arg3 = (double)SWIG_As_double(obj2); | |
29302 | if (PyErr_Occurred()) SWIG_fail; | |
29303 | if (obj3) { | |
29304 | arg4 = (int)SWIG_As_int(obj3); | |
29305 | if (PyErr_Occurred()) SWIG_fail; | |
29306 | } | |
29307 | if (obj4) { | |
29308 | arg5 = (int)SWIG_As_int(obj4); | |
29309 | if (PyErr_Occurred()) SWIG_fail; | |
29310 | } | |
29311 | { | |
29312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29313 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
29314 | ||
29315 | wxPyEndAllowThreads(__tstate); | |
29316 | if (PyErr_Occurred()) SWIG_fail; | |
29317 | } | |
29318 | Py_INCREF(Py_None); resultobj = Py_None; | |
29319 | return resultobj; | |
29320 | fail: | |
29321 | return NULL; | |
29322 | } | |
29323 | ||
29324 | ||
29325 | static PyObject *_wrap_PyPolygonShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
29326 | PyObject *resultobj; | |
29327 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29328 | double arg2 ; | |
29329 | double arg3 ; | |
29330 | int arg4 = (int) 0 ; | |
29331 | int arg5 = (int) 0 ; | |
29332 | PyObject * obj0 = 0 ; | |
29333 | PyObject * obj1 = 0 ; | |
29334 | PyObject * obj2 = 0 ; | |
29335 | PyObject * obj3 = 0 ; | |
29336 | PyObject * obj4 = 0 ; | |
29337 | char *kwnames[] = { | |
29338 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29339 | }; | |
29340 | ||
29341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29344 | arg2 = (double)SWIG_As_double(obj1); | |
29345 | if (PyErr_Occurred()) SWIG_fail; | |
29346 | arg3 = (double)SWIG_As_double(obj2); | |
29347 | if (PyErr_Occurred()) SWIG_fail; | |
29348 | if (obj3) { | |
29349 | arg4 = (int)SWIG_As_int(obj3); | |
29350 | if (PyErr_Occurred()) SWIG_fail; | |
29351 | } | |
29352 | if (obj4) { | |
29353 | arg5 = (int)SWIG_As_int(obj4); | |
29354 | if (PyErr_Occurred()) SWIG_fail; | |
29355 | } | |
29356 | { | |
29357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29358 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
29359 | ||
29360 | wxPyEndAllowThreads(__tstate); | |
29361 | if (PyErr_Occurred()) SWIG_fail; | |
29362 | } | |
29363 | Py_INCREF(Py_None); resultobj = Py_None; | |
29364 | return resultobj; | |
29365 | fail: | |
29366 | return NULL; | |
29367 | } | |
29368 | ||
29369 | ||
29370 | static PyObject *_wrap_PyPolygonShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
29371 | PyObject *resultobj; | |
29372 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29373 | wxDC *arg2 = 0 ; | |
29374 | double arg3 ; | |
29375 | double arg4 ; | |
29376 | double arg5 ; | |
29377 | double arg6 ; | |
29378 | PyObject * obj0 = 0 ; | |
29379 | PyObject * obj1 = 0 ; | |
29380 | PyObject * obj2 = 0 ; | |
29381 | PyObject * obj3 = 0 ; | |
29382 | PyObject * obj4 = 0 ; | |
29383 | PyObject * obj5 = 0 ; | |
29384 | char *kwnames[] = { | |
29385 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29386 | }; | |
29387 | ||
29388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyPolygonShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29393 | SWIG_fail; | |
29394 | if (arg2 == NULL) { | |
29395 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29396 | SWIG_fail; | |
29397 | } | |
29398 | arg3 = (double)SWIG_As_double(obj2); | |
29399 | if (PyErr_Occurred()) SWIG_fail; | |
29400 | arg4 = (double)SWIG_As_double(obj3); | |
29401 | if (PyErr_Occurred()) SWIG_fail; | |
29402 | arg5 = (double)SWIG_As_double(obj4); | |
29403 | if (PyErr_Occurred()) SWIG_fail; | |
29404 | arg6 = (double)SWIG_As_double(obj5); | |
29405 | if (PyErr_Occurred()) SWIG_fail; | |
29406 | { | |
29407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29408 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
29409 | ||
29410 | wxPyEndAllowThreads(__tstate); | |
29411 | if (PyErr_Occurred()) SWIG_fail; | |
29412 | } | |
29413 | Py_INCREF(Py_None); resultobj = Py_None; | |
29414 | return resultobj; | |
29415 | fail: | |
29416 | return NULL; | |
29417 | } | |
29418 | ||
29419 | ||
29420 | static PyObject *_wrap_PyPolygonShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
29421 | PyObject *resultobj; | |
29422 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29423 | wxDC *arg2 = 0 ; | |
29424 | PyObject * obj0 = 0 ; | |
29425 | PyObject * obj1 = 0 ; | |
29426 | char *kwnames[] = { | |
29427 | (char *) "self",(char *) "dc", NULL | |
29428 | }; | |
29429 | ||
29430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
29431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29433 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29434 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29435 | SWIG_fail; | |
29436 | if (arg2 == NULL) { | |
29437 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29438 | SWIG_fail; | |
29439 | } | |
29440 | { | |
29441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29442 | (arg1)->base_OnDrawControlPoints(*arg2); | |
29443 | ||
29444 | wxPyEndAllowThreads(__tstate); | |
29445 | if (PyErr_Occurred()) SWIG_fail; | |
29446 | } | |
29447 | Py_INCREF(Py_None); resultobj = Py_None; | |
29448 | return resultobj; | |
29449 | fail: | |
29450 | return NULL; | |
29451 | } | |
29452 | ||
29453 | ||
29454 | static PyObject *_wrap_PyPolygonShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
29455 | PyObject *resultobj; | |
29456 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29457 | wxDC *arg2 = 0 ; | |
29458 | PyObject * obj0 = 0 ; | |
29459 | PyObject * obj1 = 0 ; | |
29460 | char *kwnames[] = { | |
29461 | (char *) "self",(char *) "dc", NULL | |
29462 | }; | |
29463 | ||
29464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
29465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29468 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29469 | SWIG_fail; | |
29470 | if (arg2 == NULL) { | |
29471 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29472 | SWIG_fail; | |
29473 | } | |
29474 | { | |
29475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29476 | (arg1)->base_OnEraseControlPoints(*arg2); | |
29477 | ||
29478 | wxPyEndAllowThreads(__tstate); | |
29479 | if (PyErr_Occurred()) SWIG_fail; | |
29480 | } | |
29481 | Py_INCREF(Py_None); resultobj = Py_None; | |
29482 | return resultobj; | |
29483 | fail: | |
29484 | return NULL; | |
29485 | } | |
29486 | ||
29487 | ||
29488 | static PyObject *_wrap_PyPolygonShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
29489 | PyObject *resultobj; | |
29490 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29491 | wxDC *arg2 = 0 ; | |
29492 | bool arg3 = (bool) true ; | |
29493 | PyObject * obj0 = 0 ; | |
29494 | PyObject * obj1 = 0 ; | |
29495 | PyObject * obj2 = 0 ; | |
29496 | char *kwnames[] = { | |
29497 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
29498 | }; | |
29499 | ||
29500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyPolygonShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29505 | SWIG_fail; | |
29506 | if (arg2 == NULL) { | |
29507 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29508 | SWIG_fail; | |
29509 | } | |
29510 | if (obj2) { | |
29511 | arg3 = (bool)SWIG_As_bool(obj2); | |
29512 | if (PyErr_Occurred()) SWIG_fail; | |
29513 | } | |
29514 | { | |
29515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29516 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
29517 | ||
29518 | wxPyEndAllowThreads(__tstate); | |
29519 | if (PyErr_Occurred()) SWIG_fail; | |
29520 | } | |
29521 | Py_INCREF(Py_None); resultobj = Py_None; | |
29522 | return resultobj; | |
29523 | fail: | |
29524 | return NULL; | |
29525 | } | |
29526 | ||
29527 | ||
29528 | static PyObject *_wrap_PyPolygonShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
29529 | PyObject *resultobj; | |
29530 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29531 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
29532 | bool arg3 ; | |
29533 | double arg4 ; | |
29534 | double arg5 ; | |
29535 | int arg6 = (int) 0 ; | |
29536 | int arg7 = (int) 0 ; | |
29537 | PyObject * obj0 = 0 ; | |
29538 | PyObject * obj1 = 0 ; | |
29539 | PyObject * obj2 = 0 ; | |
29540 | PyObject * obj3 = 0 ; | |
29541 | PyObject * obj4 = 0 ; | |
29542 | PyObject * obj5 = 0 ; | |
29543 | PyObject * obj6 = 0 ; | |
29544 | char *kwnames[] = { | |
29545 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29546 | }; | |
29547 | ||
29548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyPolygonShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
29549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
29552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29553 | arg3 = (bool)SWIG_As_bool(obj2); | |
29554 | if (PyErr_Occurred()) SWIG_fail; | |
29555 | arg4 = (double)SWIG_As_double(obj3); | |
29556 | if (PyErr_Occurred()) SWIG_fail; | |
29557 | arg5 = (double)SWIG_As_double(obj4); | |
29558 | if (PyErr_Occurred()) SWIG_fail; | |
29559 | if (obj5) { | |
29560 | arg6 = (int)SWIG_As_int(obj5); | |
29561 | if (PyErr_Occurred()) SWIG_fail; | |
29562 | } | |
29563 | if (obj6) { | |
29564 | arg7 = (int)SWIG_As_int(obj6); | |
29565 | if (PyErr_Occurred()) SWIG_fail; | |
29566 | } | |
29567 | { | |
29568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29569 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
29570 | ||
29571 | wxPyEndAllowThreads(__tstate); | |
29572 | if (PyErr_Occurred()) SWIG_fail; | |
29573 | } | |
29574 | Py_INCREF(Py_None); resultobj = Py_None; | |
29575 | return resultobj; | |
29576 | fail: | |
29577 | return NULL; | |
29578 | } | |
29579 | ||
29580 | ||
29581 | static PyObject *_wrap_PyPolygonShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
29582 | PyObject *resultobj; | |
29583 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29584 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
29585 | double arg3 ; | |
29586 | double arg4 ; | |
29587 | int arg5 = (int) 0 ; | |
29588 | int arg6 = (int) 0 ; | |
29589 | PyObject * obj0 = 0 ; | |
29590 | PyObject * obj1 = 0 ; | |
29591 | PyObject * obj2 = 0 ; | |
29592 | PyObject * obj3 = 0 ; | |
29593 | PyObject * obj4 = 0 ; | |
29594 | PyObject * obj5 = 0 ; | |
29595 | char *kwnames[] = { | |
29596 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29597 | }; | |
29598 | ||
29599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyPolygonShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29602 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
29603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29604 | arg3 = (double)SWIG_As_double(obj2); | |
29605 | if (PyErr_Occurred()) SWIG_fail; | |
29606 | arg4 = (double)SWIG_As_double(obj3); | |
29607 | if (PyErr_Occurred()) SWIG_fail; | |
29608 | if (obj4) { | |
29609 | arg5 = (int)SWIG_As_int(obj4); | |
29610 | if (PyErr_Occurred()) SWIG_fail; | |
29611 | } | |
29612 | if (obj5) { | |
29613 | arg6 = (int)SWIG_As_int(obj5); | |
29614 | if (PyErr_Occurred()) SWIG_fail; | |
29615 | } | |
29616 | { | |
29617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29618 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
29619 | ||
29620 | wxPyEndAllowThreads(__tstate); | |
29621 | if (PyErr_Occurred()) SWIG_fail; | |
29622 | } | |
29623 | Py_INCREF(Py_None); resultobj = Py_None; | |
29624 | return resultobj; | |
29625 | fail: | |
29626 | return NULL; | |
29627 | } | |
29628 | ||
29629 | ||
29630 | static PyObject *_wrap_PyPolygonShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
29631 | PyObject *resultobj; | |
29632 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29633 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
29634 | double arg3 ; | |
29635 | double arg4 ; | |
29636 | int arg5 = (int) 0 ; | |
29637 | int arg6 = (int) 0 ; | |
29638 | PyObject * obj0 = 0 ; | |
29639 | PyObject * obj1 = 0 ; | |
29640 | PyObject * obj2 = 0 ; | |
29641 | PyObject * obj3 = 0 ; | |
29642 | PyObject * obj4 = 0 ; | |
29643 | PyObject * obj5 = 0 ; | |
29644 | char *kwnames[] = { | |
29645 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29646 | }; | |
29647 | ||
29648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyPolygonShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29651 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
29652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29653 | arg3 = (double)SWIG_As_double(obj2); | |
29654 | if (PyErr_Occurred()) SWIG_fail; | |
29655 | arg4 = (double)SWIG_As_double(obj3); | |
29656 | if (PyErr_Occurred()) SWIG_fail; | |
29657 | if (obj4) { | |
29658 | arg5 = (int)SWIG_As_int(obj4); | |
29659 | if (PyErr_Occurred()) SWIG_fail; | |
29660 | } | |
29661 | if (obj5) { | |
29662 | arg6 = (int)SWIG_As_int(obj5); | |
29663 | if (PyErr_Occurred()) SWIG_fail; | |
29664 | } | |
29665 | { | |
29666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29667 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
29668 | ||
29669 | wxPyEndAllowThreads(__tstate); | |
29670 | if (PyErr_Occurred()) SWIG_fail; | |
29671 | } | |
29672 | Py_INCREF(Py_None); resultobj = Py_None; | |
29673 | return resultobj; | |
29674 | fail: | |
29675 | return NULL; | |
29676 | } | |
29677 | ||
29678 | ||
29679 | static PyObject *_wrap_PyPolygonShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
29680 | PyObject *resultobj; | |
29681 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29682 | double arg2 ; | |
29683 | double arg3 ; | |
29684 | PyObject * obj0 = 0 ; | |
29685 | PyObject * obj1 = 0 ; | |
29686 | PyObject * obj2 = 0 ; | |
29687 | char *kwnames[] = { | |
29688 | (char *) "self",(char *) "w",(char *) "h", NULL | |
29689 | }; | |
29690 | ||
29691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPolygonShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29694 | arg2 = (double)SWIG_As_double(obj1); | |
29695 | if (PyErr_Occurred()) SWIG_fail; | |
29696 | arg3 = (double)SWIG_As_double(obj2); | |
29697 | if (PyErr_Occurred()) SWIG_fail; | |
29698 | { | |
29699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29700 | (arg1)->base_OnBeginSize(arg2,arg3); | |
29701 | ||
29702 | wxPyEndAllowThreads(__tstate); | |
29703 | if (PyErr_Occurred()) SWIG_fail; | |
29704 | } | |
29705 | Py_INCREF(Py_None); resultobj = Py_None; | |
29706 | return resultobj; | |
29707 | fail: | |
29708 | return NULL; | |
29709 | } | |
29710 | ||
29711 | ||
29712 | static PyObject *_wrap_PyPolygonShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
29713 | PyObject *resultobj; | |
29714 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29715 | double arg2 ; | |
29716 | double arg3 ; | |
29717 | PyObject * obj0 = 0 ; | |
29718 | PyObject * obj1 = 0 ; | |
29719 | PyObject * obj2 = 0 ; | |
29720 | char *kwnames[] = { | |
29721 | (char *) "self",(char *) "w",(char *) "h", NULL | |
29722 | }; | |
29723 | ||
29724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPolygonShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, | |
29726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29727 | arg2 = (double)SWIG_As_double(obj1); | |
29728 | if (PyErr_Occurred()) SWIG_fail; | |
29729 | arg3 = (double)SWIG_As_double(obj2); | |
29730 | if (PyErr_Occurred()) SWIG_fail; | |
29731 | { | |
29732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29733 | (arg1)->base_OnEndSize(arg2,arg3); | |
29734 | ||
29735 | wxPyEndAllowThreads(__tstate); | |
29736 | if (PyErr_Occurred()) SWIG_fail; | |
29737 | } | |
29738 | Py_INCREF(Py_None); resultobj = Py_None; | |
29739 | return resultobj; | |
29740 | fail: | |
29741 | return NULL; | |
29742 | } | |
29743 | ||
29744 | ||
29745 | static PyObject * PyPolygonShape_swigregister(PyObject *, PyObject *args) { | |
29746 | PyObject *obj; | |
29747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29748 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPolygonShape, obj); | |
29749 | Py_INCREF(obj); | |
29750 | return Py_BuildValue((char *)""); | |
29751 | } | |
29752 | static PyObject *_wrap_new_PyTextShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
29753 | PyObject *resultobj; | |
29754 | double arg1 = (double) 0.0 ; | |
29755 | double arg2 = (double) 0.0 ; | |
29756 | wxPyTextShape *result; | |
29757 | PyObject * obj0 = 0 ; | |
29758 | PyObject * obj1 = 0 ; | |
29759 | char *kwnames[] = { | |
29760 | (char *) "width",(char *) "height", NULL | |
29761 | }; | |
29762 | ||
29763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyTextShape",kwnames,&obj0,&obj1)) goto fail; | |
29764 | if (obj0) { | |
29765 | arg1 = (double)SWIG_As_double(obj0); | |
29766 | if (PyErr_Occurred()) SWIG_fail; | |
29767 | } | |
29768 | if (obj1) { | |
29769 | arg2 = (double)SWIG_As_double(obj1); | |
29770 | if (PyErr_Occurred()) SWIG_fail; | |
29771 | } | |
29772 | { | |
29773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29774 | result = (wxPyTextShape *)new wxPyTextShape(arg1,arg2); | |
29775 | ||
29776 | wxPyEndAllowThreads(__tstate); | |
29777 | if (PyErr_Occurred()) SWIG_fail; | |
29778 | } | |
29779 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextShape, 1); | |
29780 | return resultobj; | |
29781 | fail: | |
29782 | return NULL; | |
29783 | } | |
29784 | ||
29785 | ||
29786 | static PyObject *_wrap_PyTextShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
29787 | PyObject *resultobj; | |
29788 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29789 | PyObject *arg2 = (PyObject *) 0 ; | |
29790 | PyObject *arg3 = (PyObject *) 0 ; | |
29791 | PyObject * obj0 = 0 ; | |
29792 | PyObject * obj1 = 0 ; | |
29793 | PyObject * obj2 = 0 ; | |
29794 | char *kwnames[] = { | |
29795 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29796 | }; | |
29797 | ||
29798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
29800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29801 | arg2 = obj1; | |
29802 | arg3 = obj2; | |
29803 | { | |
29804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29805 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29806 | ||
29807 | wxPyEndAllowThreads(__tstate); | |
29808 | if (PyErr_Occurred()) SWIG_fail; | |
29809 | } | |
29810 | Py_INCREF(Py_None); resultobj = Py_None; | |
29811 | return resultobj; | |
29812 | fail: | |
29813 | return NULL; | |
29814 | } | |
29815 | ||
29816 | ||
29817 | static PyObject *_wrap_PyTextShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { | |
29818 | PyObject *resultobj; | |
29819 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29820 | PyObject * obj0 = 0 ; | |
29821 | char *kwnames[] = { | |
29822 | (char *) "self", NULL | |
29823 | }; | |
29824 | ||
29825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyTextShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
29826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
29827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29828 | { | |
29829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29830 | (arg1)->base_OnDelete(); | |
29831 | ||
29832 | wxPyEndAllowThreads(__tstate); | |
29833 | if (PyErr_Occurred()) SWIG_fail; | |
29834 | } | |
29835 | Py_INCREF(Py_None); resultobj = Py_None; | |
29836 | return resultobj; | |
29837 | fail: | |
29838 | return NULL; | |
29839 | } | |
29840 | ||
29841 | ||
29842 | static PyObject *_wrap_PyTextShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
29843 | PyObject *resultobj; | |
29844 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29845 | wxDC *arg2 = 0 ; | |
29846 | PyObject * obj0 = 0 ; | |
29847 | PyObject * obj1 = 0 ; | |
29848 | char *kwnames[] = { | |
29849 | (char *) "self",(char *) "dc", NULL | |
29850 | }; | |
29851 | ||
29852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
29853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
29854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29855 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29856 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29857 | SWIG_fail; | |
29858 | if (arg2 == NULL) { | |
29859 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29860 | SWIG_fail; | |
29861 | } | |
29862 | { | |
29863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29864 | (arg1)->base_OnDraw(*arg2); | |
29865 | ||
29866 | wxPyEndAllowThreads(__tstate); | |
29867 | if (PyErr_Occurred()) SWIG_fail; | |
29868 | } | |
29869 | Py_INCREF(Py_None); resultobj = Py_None; | |
29870 | return resultobj; | |
29871 | fail: | |
29872 | return NULL; | |
29873 | } | |
29874 | ||
29875 | ||
29876 | static PyObject *_wrap_PyTextShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
29877 | PyObject *resultobj; | |
29878 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29879 | wxDC *arg2 = 0 ; | |
29880 | PyObject * obj0 = 0 ; | |
29881 | PyObject * obj1 = 0 ; | |
29882 | char *kwnames[] = { | |
29883 | (char *) "self",(char *) "dc", NULL | |
29884 | }; | |
29885 | ||
29886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
29887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
29888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29891 | SWIG_fail; | |
29892 | if (arg2 == NULL) { | |
29893 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29894 | SWIG_fail; | |
29895 | } | |
29896 | { | |
29897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29898 | (arg1)->base_OnDrawContents(*arg2); | |
29899 | ||
29900 | wxPyEndAllowThreads(__tstate); | |
29901 | if (PyErr_Occurred()) SWIG_fail; | |
29902 | } | |
29903 | Py_INCREF(Py_None); resultobj = Py_None; | |
29904 | return resultobj; | |
29905 | fail: | |
29906 | return NULL; | |
29907 | } | |
29908 | ||
29909 | ||
29910 | static PyObject *_wrap_PyTextShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { | |
29911 | PyObject *resultobj; | |
29912 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29913 | wxDC *arg2 = 0 ; | |
29914 | bool arg3 = (bool) FALSE ; | |
29915 | PyObject * obj0 = 0 ; | |
29916 | PyObject * obj1 = 0 ; | |
29917 | PyObject * obj2 = 0 ; | |
29918 | char *kwnames[] = { | |
29919 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
29920 | }; | |
29921 | ||
29922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyTextShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
29924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29927 | SWIG_fail; | |
29928 | if (arg2 == NULL) { | |
29929 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29930 | SWIG_fail; | |
29931 | } | |
29932 | if (obj2) { | |
29933 | arg3 = (bool)SWIG_As_bool(obj2); | |
29934 | if (PyErr_Occurred()) SWIG_fail; | |
29935 | } | |
29936 | { | |
29937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29938 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
29939 | ||
29940 | wxPyEndAllowThreads(__tstate); | |
29941 | if (PyErr_Occurred()) SWIG_fail; | |
29942 | } | |
29943 | Py_INCREF(Py_None); resultobj = Py_None; | |
29944 | return resultobj; | |
29945 | fail: | |
29946 | return NULL; | |
29947 | } | |
29948 | ||
29949 | ||
29950 | static PyObject *_wrap_PyTextShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { | |
29951 | PyObject *resultobj; | |
29952 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29953 | wxDC *arg2 = 0 ; | |
29954 | PyObject * obj0 = 0 ; | |
29955 | PyObject * obj1 = 0 ; | |
29956 | char *kwnames[] = { | |
29957 | (char *) "self",(char *) "dc", NULL | |
29958 | }; | |
29959 | ||
29960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
29961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
29962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29963 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29964 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29965 | SWIG_fail; | |
29966 | if (arg2 == NULL) { | |
29967 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29968 | SWIG_fail; | |
29969 | } | |
29970 | { | |
29971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29972 | (arg1)->base_OnMoveLinks(*arg2); | |
29973 | ||
29974 | wxPyEndAllowThreads(__tstate); | |
29975 | if (PyErr_Occurred()) SWIG_fail; | |
29976 | } | |
29977 | Py_INCREF(Py_None); resultobj = Py_None; | |
29978 | return resultobj; | |
29979 | fail: | |
29980 | return NULL; | |
29981 | } | |
29982 | ||
29983 | ||
29984 | static PyObject *_wrap_PyTextShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { | |
29985 | PyObject *resultobj; | |
29986 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29987 | wxDC *arg2 = 0 ; | |
29988 | PyObject * obj0 = 0 ; | |
29989 | PyObject * obj1 = 0 ; | |
29990 | char *kwnames[] = { | |
29991 | (char *) "self",(char *) "dc", NULL | |
29992 | }; | |
29993 | ||
29994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
29995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
29996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29998 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29999 | SWIG_fail; | |
30000 | if (arg2 == NULL) { | |
30001 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30002 | SWIG_fail; | |
30003 | } | |
30004 | { | |
30005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30006 | (arg1)->base_OnErase(*arg2); | |
30007 | ||
30008 | wxPyEndAllowThreads(__tstate); | |
30009 | if (PyErr_Occurred()) SWIG_fail; | |
30010 | } | |
30011 | Py_INCREF(Py_None); resultobj = Py_None; | |
30012 | return resultobj; | |
30013 | fail: | |
30014 | return NULL; | |
30015 | } | |
30016 | ||
30017 | ||
30018 | static PyObject *_wrap_PyTextShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { | |
30019 | PyObject *resultobj; | |
30020 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30021 | wxDC *arg2 = 0 ; | |
30022 | PyObject * obj0 = 0 ; | |
30023 | PyObject * obj1 = 0 ; | |
30024 | char *kwnames[] = { | |
30025 | (char *) "self",(char *) "dc", NULL | |
30026 | }; | |
30027 | ||
30028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
30029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30031 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30032 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30033 | SWIG_fail; | |
30034 | if (arg2 == NULL) { | |
30035 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30036 | SWIG_fail; | |
30037 | } | |
30038 | { | |
30039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30040 | (arg1)->base_OnEraseContents(*arg2); | |
30041 | ||
30042 | wxPyEndAllowThreads(__tstate); | |
30043 | if (PyErr_Occurred()) SWIG_fail; | |
30044 | } | |
30045 | Py_INCREF(Py_None); resultobj = Py_None; | |
30046 | return resultobj; | |
30047 | fail: | |
30048 | return NULL; | |
30049 | } | |
30050 | ||
30051 | ||
30052 | static PyObject *_wrap_PyTextShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
30053 | PyObject *resultobj; | |
30054 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30055 | wxDC *arg2 = 0 ; | |
30056 | PyObject * obj0 = 0 ; | |
30057 | PyObject * obj1 = 0 ; | |
30058 | char *kwnames[] = { | |
30059 | (char *) "self",(char *) "dc", NULL | |
30060 | }; | |
30061 | ||
30062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
30063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30065 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30066 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30067 | SWIG_fail; | |
30068 | if (arg2 == NULL) { | |
30069 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30070 | SWIG_fail; | |
30071 | } | |
30072 | { | |
30073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30074 | (arg1)->base_OnHighlight(*arg2); | |
30075 | ||
30076 | wxPyEndAllowThreads(__tstate); | |
30077 | if (PyErr_Occurred()) SWIG_fail; | |
30078 | } | |
30079 | Py_INCREF(Py_None); resultobj = Py_None; | |
30080 | return resultobj; | |
30081 | fail: | |
30082 | return NULL; | |
30083 | } | |
30084 | ||
30085 | ||
30086 | static PyObject *_wrap_PyTextShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
30087 | PyObject *resultobj; | |
30088 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30089 | double arg2 ; | |
30090 | double arg3 ; | |
30091 | int arg4 = (int) 0 ; | |
30092 | int arg5 = (int) 0 ; | |
30093 | PyObject * obj0 = 0 ; | |
30094 | PyObject * obj1 = 0 ; | |
30095 | PyObject * obj2 = 0 ; | |
30096 | PyObject * obj3 = 0 ; | |
30097 | PyObject * obj4 = 0 ; | |
30098 | char *kwnames[] = { | |
30099 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30100 | }; | |
30101 | ||
30102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30105 | arg2 = (double)SWIG_As_double(obj1); | |
30106 | if (PyErr_Occurred()) SWIG_fail; | |
30107 | arg3 = (double)SWIG_As_double(obj2); | |
30108 | if (PyErr_Occurred()) SWIG_fail; | |
30109 | if (obj3) { | |
30110 | arg4 = (int)SWIG_As_int(obj3); | |
30111 | if (PyErr_Occurred()) SWIG_fail; | |
30112 | } | |
30113 | if (obj4) { | |
30114 | arg5 = (int)SWIG_As_int(obj4); | |
30115 | if (PyErr_Occurred()) SWIG_fail; | |
30116 | } | |
30117 | { | |
30118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30119 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
30120 | ||
30121 | wxPyEndAllowThreads(__tstate); | |
30122 | if (PyErr_Occurred()) SWIG_fail; | |
30123 | } | |
30124 | Py_INCREF(Py_None); resultobj = Py_None; | |
30125 | return resultobj; | |
30126 | fail: | |
30127 | return NULL; | |
30128 | } | |
30129 | ||
30130 | ||
30131 | static PyObject *_wrap_PyTextShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
30132 | PyObject *resultobj; | |
30133 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30134 | double arg2 ; | |
30135 | double arg3 ; | |
30136 | int arg4 = (int) 0 ; | |
30137 | int arg5 = (int) 0 ; | |
30138 | PyObject * obj0 = 0 ; | |
30139 | PyObject * obj1 = 0 ; | |
30140 | PyObject * obj2 = 0 ; | |
30141 | PyObject * obj3 = 0 ; | |
30142 | PyObject * obj4 = 0 ; | |
30143 | char *kwnames[] = { | |
30144 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30145 | }; | |
30146 | ||
30147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30150 | arg2 = (double)SWIG_As_double(obj1); | |
30151 | if (PyErr_Occurred()) SWIG_fail; | |
30152 | arg3 = (double)SWIG_As_double(obj2); | |
30153 | if (PyErr_Occurred()) SWIG_fail; | |
30154 | if (obj3) { | |
30155 | arg4 = (int)SWIG_As_int(obj3); | |
30156 | if (PyErr_Occurred()) SWIG_fail; | |
30157 | } | |
30158 | if (obj4) { | |
30159 | arg5 = (int)SWIG_As_int(obj4); | |
30160 | if (PyErr_Occurred()) SWIG_fail; | |
30161 | } | |
30162 | { | |
30163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30164 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
30165 | ||
30166 | wxPyEndAllowThreads(__tstate); | |
30167 | if (PyErr_Occurred()) SWIG_fail; | |
30168 | } | |
30169 | Py_INCREF(Py_None); resultobj = Py_None; | |
30170 | return resultobj; | |
30171 | fail: | |
30172 | return NULL; | |
30173 | } | |
30174 | ||
30175 | ||
30176 | static PyObject *_wrap_PyTextShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
30177 | PyObject *resultobj; | |
30178 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30179 | double arg2 ; | |
30180 | double arg3 ; | |
30181 | int arg4 = (int) 0 ; | |
30182 | int arg5 = (int) 0 ; | |
30183 | PyObject * obj0 = 0 ; | |
30184 | PyObject * obj1 = 0 ; | |
30185 | PyObject * obj2 = 0 ; | |
30186 | PyObject * obj3 = 0 ; | |
30187 | PyObject * obj4 = 0 ; | |
30188 | char *kwnames[] = { | |
30189 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30190 | }; | |
30191 | ||
30192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30195 | arg2 = (double)SWIG_As_double(obj1); | |
30196 | if (PyErr_Occurred()) SWIG_fail; | |
30197 | arg3 = (double)SWIG_As_double(obj2); | |
30198 | if (PyErr_Occurred()) SWIG_fail; | |
30199 | if (obj3) { | |
30200 | arg4 = (int)SWIG_As_int(obj3); | |
30201 | if (PyErr_Occurred()) SWIG_fail; | |
30202 | } | |
30203 | if (obj4) { | |
30204 | arg5 = (int)SWIG_As_int(obj4); | |
30205 | if (PyErr_Occurred()) SWIG_fail; | |
30206 | } | |
30207 | { | |
30208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30209 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
30210 | ||
30211 | wxPyEndAllowThreads(__tstate); | |
30212 | if (PyErr_Occurred()) SWIG_fail; | |
30213 | } | |
30214 | Py_INCREF(Py_None); resultobj = Py_None; | |
30215 | return resultobj; | |
30216 | fail: | |
30217 | return NULL; | |
30218 | } | |
30219 | ||
30220 | ||
30221 | static PyObject *_wrap_PyTextShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
30222 | PyObject *resultobj; | |
30223 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30224 | double arg2 ; | |
30225 | double arg3 ; | |
30226 | PyObject * obj0 = 0 ; | |
30227 | PyObject * obj1 = 0 ; | |
30228 | PyObject * obj2 = 0 ; | |
30229 | char *kwnames[] = { | |
30230 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30231 | }; | |
30232 | ||
30233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30236 | arg2 = (double)SWIG_As_double(obj1); | |
30237 | if (PyErr_Occurred()) SWIG_fail; | |
30238 | arg3 = (double)SWIG_As_double(obj2); | |
30239 | if (PyErr_Occurred()) SWIG_fail; | |
30240 | { | |
30241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30242 | (arg1)->base_OnSize(arg2,arg3); | |
30243 | ||
30244 | wxPyEndAllowThreads(__tstate); | |
30245 | if (PyErr_Occurred()) SWIG_fail; | |
30246 | } | |
30247 | Py_INCREF(Py_None); resultobj = Py_None; | |
30248 | return resultobj; | |
30249 | fail: | |
30250 | return NULL; | |
30251 | } | |
30252 | ||
30253 | ||
30254 | static PyObject *_wrap_PyTextShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { | |
30255 | PyObject *resultobj; | |
30256 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30257 | wxDC *arg2 = 0 ; | |
30258 | double arg3 ; | |
30259 | double arg4 ; | |
30260 | double arg5 ; | |
30261 | double arg6 ; | |
30262 | bool arg7 = (bool) true ; | |
30263 | bool result; | |
30264 | PyObject * obj0 = 0 ; | |
30265 | PyObject * obj1 = 0 ; | |
30266 | PyObject * obj2 = 0 ; | |
30267 | PyObject * obj3 = 0 ; | |
30268 | PyObject * obj4 = 0 ; | |
30269 | PyObject * obj5 = 0 ; | |
30270 | PyObject * obj6 = 0 ; | |
30271 | char *kwnames[] = { | |
30272 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
30273 | }; | |
30274 | ||
30275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyTextShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
30276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30278 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30279 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30280 | SWIG_fail; | |
30281 | if (arg2 == NULL) { | |
30282 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30283 | SWIG_fail; | |
30284 | } | |
30285 | arg3 = (double)SWIG_As_double(obj2); | |
30286 | if (PyErr_Occurred()) SWIG_fail; | |
30287 | arg4 = (double)SWIG_As_double(obj3); | |
30288 | if (PyErr_Occurred()) SWIG_fail; | |
30289 | arg5 = (double)SWIG_As_double(obj4); | |
30290 | if (PyErr_Occurred()) SWIG_fail; | |
30291 | arg6 = (double)SWIG_As_double(obj5); | |
30292 | if (PyErr_Occurred()) SWIG_fail; | |
30293 | if (obj6) { | |
30294 | arg7 = (bool)SWIG_As_bool(obj6); | |
30295 | if (PyErr_Occurred()) SWIG_fail; | |
30296 | } | |
30297 | { | |
30298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30299 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
30300 | ||
30301 | wxPyEndAllowThreads(__tstate); | |
30302 | if (PyErr_Occurred()) SWIG_fail; | |
30303 | } | |
30304 | { | |
30305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30306 | } | |
30307 | return resultobj; | |
30308 | fail: | |
30309 | return NULL; | |
30310 | } | |
30311 | ||
30312 | ||
30313 | static PyObject *_wrap_PyTextShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { | |
30314 | PyObject *resultobj; | |
30315 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30316 | wxDC *arg2 = 0 ; | |
30317 | double arg3 ; | |
30318 | double arg4 ; | |
30319 | double arg5 ; | |
30320 | double arg6 ; | |
30321 | bool arg7 = (bool) true ; | |
30322 | PyObject * obj0 = 0 ; | |
30323 | PyObject * obj1 = 0 ; | |
30324 | PyObject * obj2 = 0 ; | |
30325 | PyObject * obj3 = 0 ; | |
30326 | PyObject * obj4 = 0 ; | |
30327 | PyObject * obj5 = 0 ; | |
30328 | PyObject * obj6 = 0 ; | |
30329 | char *kwnames[] = { | |
30330 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
30331 | }; | |
30332 | ||
30333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyTextShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
30334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30336 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30337 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30338 | SWIG_fail; | |
30339 | if (arg2 == NULL) { | |
30340 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30341 | SWIG_fail; | |
30342 | } | |
30343 | arg3 = (double)SWIG_As_double(obj2); | |
30344 | if (PyErr_Occurred()) SWIG_fail; | |
30345 | arg4 = (double)SWIG_As_double(obj3); | |
30346 | if (PyErr_Occurred()) SWIG_fail; | |
30347 | arg5 = (double)SWIG_As_double(obj4); | |
30348 | if (PyErr_Occurred()) SWIG_fail; | |
30349 | arg6 = (double)SWIG_As_double(obj5); | |
30350 | if (PyErr_Occurred()) SWIG_fail; | |
30351 | if (obj6) { | |
30352 | arg7 = (bool)SWIG_As_bool(obj6); | |
30353 | if (PyErr_Occurred()) SWIG_fail; | |
30354 | } | |
30355 | { | |
30356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30357 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
30358 | ||
30359 | wxPyEndAllowThreads(__tstate); | |
30360 | if (PyErr_Occurred()) SWIG_fail; | |
30361 | } | |
30362 | Py_INCREF(Py_None); resultobj = Py_None; | |
30363 | return resultobj; | |
30364 | fail: | |
30365 | return NULL; | |
30366 | } | |
30367 | ||
30368 | ||
30369 | static PyObject *_wrap_PyTextShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
30370 | PyObject *resultobj; | |
30371 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30372 | bool arg2 ; | |
30373 | double arg3 ; | |
30374 | double arg4 ; | |
30375 | int arg5 = (int) 0 ; | |
30376 | int arg6 = (int) 0 ; | |
30377 | PyObject * obj0 = 0 ; | |
30378 | PyObject * obj1 = 0 ; | |
30379 | PyObject * obj2 = 0 ; | |
30380 | PyObject * obj3 = 0 ; | |
30381 | PyObject * obj4 = 0 ; | |
30382 | PyObject * obj5 = 0 ; | |
30383 | char *kwnames[] = { | |
30384 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30385 | }; | |
30386 | ||
30387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyTextShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30390 | arg2 = (bool)SWIG_As_bool(obj1); | |
30391 | if (PyErr_Occurred()) SWIG_fail; | |
30392 | arg3 = (double)SWIG_As_double(obj2); | |
30393 | if (PyErr_Occurred()) SWIG_fail; | |
30394 | arg4 = (double)SWIG_As_double(obj3); | |
30395 | if (PyErr_Occurred()) SWIG_fail; | |
30396 | if (obj4) { | |
30397 | arg5 = (int)SWIG_As_int(obj4); | |
30398 | if (PyErr_Occurred()) SWIG_fail; | |
30399 | } | |
30400 | if (obj5) { | |
30401 | arg6 = (int)SWIG_As_int(obj5); | |
30402 | if (PyErr_Occurred()) SWIG_fail; | |
30403 | } | |
30404 | { | |
30405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30406 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
30407 | ||
30408 | wxPyEndAllowThreads(__tstate); | |
30409 | if (PyErr_Occurred()) SWIG_fail; | |
30410 | } | |
30411 | Py_INCREF(Py_None); resultobj = Py_None; | |
30412 | return resultobj; | |
30413 | fail: | |
30414 | return NULL; | |
30415 | } | |
30416 | ||
30417 | ||
30418 | static PyObject *_wrap_PyTextShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
30419 | PyObject *resultobj; | |
30420 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30421 | double arg2 ; | |
30422 | double arg3 ; | |
30423 | int arg4 = (int) 0 ; | |
30424 | int arg5 = (int) 0 ; | |
30425 | PyObject * obj0 = 0 ; | |
30426 | PyObject * obj1 = 0 ; | |
30427 | PyObject * obj2 = 0 ; | |
30428 | PyObject * obj3 = 0 ; | |
30429 | PyObject * obj4 = 0 ; | |
30430 | char *kwnames[] = { | |
30431 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30432 | }; | |
30433 | ||
30434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30437 | arg2 = (double)SWIG_As_double(obj1); | |
30438 | if (PyErr_Occurred()) SWIG_fail; | |
30439 | arg3 = (double)SWIG_As_double(obj2); | |
30440 | if (PyErr_Occurred()) SWIG_fail; | |
30441 | if (obj3) { | |
30442 | arg4 = (int)SWIG_As_int(obj3); | |
30443 | if (PyErr_Occurred()) SWIG_fail; | |
30444 | } | |
30445 | if (obj4) { | |
30446 | arg5 = (int)SWIG_As_int(obj4); | |
30447 | if (PyErr_Occurred()) SWIG_fail; | |
30448 | } | |
30449 | { | |
30450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30451 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
30452 | ||
30453 | wxPyEndAllowThreads(__tstate); | |
30454 | if (PyErr_Occurred()) SWIG_fail; | |
30455 | } | |
30456 | Py_INCREF(Py_None); resultobj = Py_None; | |
30457 | return resultobj; | |
30458 | fail: | |
30459 | return NULL; | |
30460 | } | |
30461 | ||
30462 | ||
30463 | static PyObject *_wrap_PyTextShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
30464 | PyObject *resultobj; | |
30465 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30466 | double arg2 ; | |
30467 | double arg3 ; | |
30468 | int arg4 = (int) 0 ; | |
30469 | int arg5 = (int) 0 ; | |
30470 | PyObject * obj0 = 0 ; | |
30471 | PyObject * obj1 = 0 ; | |
30472 | PyObject * obj2 = 0 ; | |
30473 | PyObject * obj3 = 0 ; | |
30474 | PyObject * obj4 = 0 ; | |
30475 | char *kwnames[] = { | |
30476 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30477 | }; | |
30478 | ||
30479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30482 | arg2 = (double)SWIG_As_double(obj1); | |
30483 | if (PyErr_Occurred()) SWIG_fail; | |
30484 | arg3 = (double)SWIG_As_double(obj2); | |
30485 | if (PyErr_Occurred()) SWIG_fail; | |
30486 | if (obj3) { | |
30487 | arg4 = (int)SWIG_As_int(obj3); | |
30488 | if (PyErr_Occurred()) SWIG_fail; | |
30489 | } | |
30490 | if (obj4) { | |
30491 | arg5 = (int)SWIG_As_int(obj4); | |
30492 | if (PyErr_Occurred()) SWIG_fail; | |
30493 | } | |
30494 | { | |
30495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30496 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
30497 | ||
30498 | wxPyEndAllowThreads(__tstate); | |
30499 | if (PyErr_Occurred()) SWIG_fail; | |
30500 | } | |
30501 | Py_INCREF(Py_None); resultobj = Py_None; | |
30502 | return resultobj; | |
30503 | fail: | |
30504 | return NULL; | |
30505 | } | |
30506 | ||
30507 | ||
30508 | static PyObject *_wrap_PyTextShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
30509 | PyObject *resultobj; | |
30510 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30511 | bool arg2 ; | |
30512 | double arg3 ; | |
30513 | double arg4 ; | |
30514 | int arg5 = (int) 0 ; | |
30515 | int arg6 = (int) 0 ; | |
30516 | PyObject * obj0 = 0 ; | |
30517 | PyObject * obj1 = 0 ; | |
30518 | PyObject * obj2 = 0 ; | |
30519 | PyObject * obj3 = 0 ; | |
30520 | PyObject * obj4 = 0 ; | |
30521 | PyObject * obj5 = 0 ; | |
30522 | char *kwnames[] = { | |
30523 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30524 | }; | |
30525 | ||
30526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyTextShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30529 | arg2 = (bool)SWIG_As_bool(obj1); | |
30530 | if (PyErr_Occurred()) SWIG_fail; | |
30531 | arg3 = (double)SWIG_As_double(obj2); | |
30532 | if (PyErr_Occurred()) SWIG_fail; | |
30533 | arg4 = (double)SWIG_As_double(obj3); | |
30534 | if (PyErr_Occurred()) SWIG_fail; | |
30535 | if (obj4) { | |
30536 | arg5 = (int)SWIG_As_int(obj4); | |
30537 | if (PyErr_Occurred()) SWIG_fail; | |
30538 | } | |
30539 | if (obj5) { | |
30540 | arg6 = (int)SWIG_As_int(obj5); | |
30541 | if (PyErr_Occurred()) SWIG_fail; | |
30542 | } | |
30543 | { | |
30544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30545 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
30546 | ||
30547 | wxPyEndAllowThreads(__tstate); | |
30548 | if (PyErr_Occurred()) SWIG_fail; | |
30549 | } | |
30550 | Py_INCREF(Py_None); resultobj = Py_None; | |
30551 | return resultobj; | |
30552 | fail: | |
30553 | return NULL; | |
30554 | } | |
30555 | ||
30556 | ||
30557 | static PyObject *_wrap_PyTextShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
30558 | PyObject *resultobj; | |
30559 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30560 | double arg2 ; | |
30561 | double arg3 ; | |
30562 | int arg4 = (int) 0 ; | |
30563 | int arg5 = (int) 0 ; | |
30564 | PyObject * obj0 = 0 ; | |
30565 | PyObject * obj1 = 0 ; | |
30566 | PyObject * obj2 = 0 ; | |
30567 | PyObject * obj3 = 0 ; | |
30568 | PyObject * obj4 = 0 ; | |
30569 | char *kwnames[] = { | |
30570 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30571 | }; | |
30572 | ||
30573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30576 | arg2 = (double)SWIG_As_double(obj1); | |
30577 | if (PyErr_Occurred()) SWIG_fail; | |
30578 | arg3 = (double)SWIG_As_double(obj2); | |
30579 | if (PyErr_Occurred()) SWIG_fail; | |
30580 | if (obj3) { | |
30581 | arg4 = (int)SWIG_As_int(obj3); | |
30582 | if (PyErr_Occurred()) SWIG_fail; | |
30583 | } | |
30584 | if (obj4) { | |
30585 | arg5 = (int)SWIG_As_int(obj4); | |
30586 | if (PyErr_Occurred()) SWIG_fail; | |
30587 | } | |
30588 | { | |
30589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30590 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
30591 | ||
30592 | wxPyEndAllowThreads(__tstate); | |
30593 | if (PyErr_Occurred()) SWIG_fail; | |
30594 | } | |
30595 | Py_INCREF(Py_None); resultobj = Py_None; | |
30596 | return resultobj; | |
30597 | fail: | |
30598 | return NULL; | |
30599 | } | |
30600 | ||
30601 | ||
30602 | static PyObject *_wrap_PyTextShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
30603 | PyObject *resultobj; | |
30604 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30605 | double arg2 ; | |
30606 | double arg3 ; | |
30607 | int arg4 = (int) 0 ; | |
30608 | int arg5 = (int) 0 ; | |
30609 | PyObject * obj0 = 0 ; | |
30610 | PyObject * obj1 = 0 ; | |
30611 | PyObject * obj2 = 0 ; | |
30612 | PyObject * obj3 = 0 ; | |
30613 | PyObject * obj4 = 0 ; | |
30614 | char *kwnames[] = { | |
30615 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30616 | }; | |
30617 | ||
30618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30621 | arg2 = (double)SWIG_As_double(obj1); | |
30622 | if (PyErr_Occurred()) SWIG_fail; | |
30623 | arg3 = (double)SWIG_As_double(obj2); | |
30624 | if (PyErr_Occurred()) SWIG_fail; | |
30625 | if (obj3) { | |
30626 | arg4 = (int)SWIG_As_int(obj3); | |
30627 | if (PyErr_Occurred()) SWIG_fail; | |
30628 | } | |
30629 | if (obj4) { | |
30630 | arg5 = (int)SWIG_As_int(obj4); | |
30631 | if (PyErr_Occurred()) SWIG_fail; | |
30632 | } | |
30633 | { | |
30634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30635 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
30636 | ||
30637 | wxPyEndAllowThreads(__tstate); | |
30638 | if (PyErr_Occurred()) SWIG_fail; | |
30639 | } | |
30640 | Py_INCREF(Py_None); resultobj = Py_None; | |
30641 | return resultobj; | |
30642 | fail: | |
30643 | return NULL; | |
30644 | } | |
30645 | ||
30646 | ||
30647 | static PyObject *_wrap_PyTextShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
30648 | PyObject *resultobj; | |
30649 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30650 | wxDC *arg2 = 0 ; | |
30651 | double arg3 ; | |
30652 | double arg4 ; | |
30653 | double arg5 ; | |
30654 | double arg6 ; | |
30655 | PyObject * obj0 = 0 ; | |
30656 | PyObject * obj1 = 0 ; | |
30657 | PyObject * obj2 = 0 ; | |
30658 | PyObject * obj3 = 0 ; | |
30659 | PyObject * obj4 = 0 ; | |
30660 | PyObject * obj5 = 0 ; | |
30661 | char *kwnames[] = { | |
30662 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30663 | }; | |
30664 | ||
30665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyTextShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30669 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30670 | SWIG_fail; | |
30671 | if (arg2 == NULL) { | |
30672 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30673 | SWIG_fail; | |
30674 | } | |
30675 | arg3 = (double)SWIG_As_double(obj2); | |
30676 | if (PyErr_Occurred()) SWIG_fail; | |
30677 | arg4 = (double)SWIG_As_double(obj3); | |
30678 | if (PyErr_Occurred()) SWIG_fail; | |
30679 | arg5 = (double)SWIG_As_double(obj4); | |
30680 | if (PyErr_Occurred()) SWIG_fail; | |
30681 | arg6 = (double)SWIG_As_double(obj5); | |
30682 | if (PyErr_Occurred()) SWIG_fail; | |
30683 | { | |
30684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30685 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
30686 | ||
30687 | wxPyEndAllowThreads(__tstate); | |
30688 | if (PyErr_Occurred()) SWIG_fail; | |
30689 | } | |
30690 | Py_INCREF(Py_None); resultobj = Py_None; | |
30691 | return resultobj; | |
30692 | fail: | |
30693 | return NULL; | |
30694 | } | |
30695 | ||
30696 | ||
30697 | static PyObject *_wrap_PyTextShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
30698 | PyObject *resultobj; | |
30699 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30700 | wxDC *arg2 = 0 ; | |
30701 | PyObject * obj0 = 0 ; | |
30702 | PyObject * obj1 = 0 ; | |
30703 | char *kwnames[] = { | |
30704 | (char *) "self",(char *) "dc", NULL | |
30705 | }; | |
30706 | ||
30707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
30708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30710 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30711 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30712 | SWIG_fail; | |
30713 | if (arg2 == NULL) { | |
30714 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30715 | SWIG_fail; | |
30716 | } | |
30717 | { | |
30718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30719 | (arg1)->base_OnDrawControlPoints(*arg2); | |
30720 | ||
30721 | wxPyEndAllowThreads(__tstate); | |
30722 | if (PyErr_Occurred()) SWIG_fail; | |
30723 | } | |
30724 | Py_INCREF(Py_None); resultobj = Py_None; | |
30725 | return resultobj; | |
30726 | fail: | |
30727 | return NULL; | |
30728 | } | |
30729 | ||
30730 | ||
30731 | static PyObject *_wrap_PyTextShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
30732 | PyObject *resultobj; | |
30733 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30734 | wxDC *arg2 = 0 ; | |
30735 | PyObject * obj0 = 0 ; | |
30736 | PyObject * obj1 = 0 ; | |
30737 | char *kwnames[] = { | |
30738 | (char *) "self",(char *) "dc", NULL | |
30739 | }; | |
30740 | ||
30741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
30742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30744 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30745 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30746 | SWIG_fail; | |
30747 | if (arg2 == NULL) { | |
30748 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30749 | SWIG_fail; | |
30750 | } | |
30751 | { | |
30752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30753 | (arg1)->base_OnEraseControlPoints(*arg2); | |
30754 | ||
30755 | wxPyEndAllowThreads(__tstate); | |
30756 | if (PyErr_Occurred()) SWIG_fail; | |
30757 | } | |
30758 | Py_INCREF(Py_None); resultobj = Py_None; | |
30759 | return resultobj; | |
30760 | fail: | |
30761 | return NULL; | |
30762 | } | |
30763 | ||
30764 | ||
30765 | static PyObject *_wrap_PyTextShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
30766 | PyObject *resultobj; | |
30767 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30768 | wxDC *arg2 = 0 ; | |
30769 | bool arg3 = (bool) true ; | |
30770 | PyObject * obj0 = 0 ; | |
30771 | PyObject * obj1 = 0 ; | |
30772 | PyObject * obj2 = 0 ; | |
30773 | char *kwnames[] = { | |
30774 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
30775 | }; | |
30776 | ||
30777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyTextShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30780 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30781 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30782 | SWIG_fail; | |
30783 | if (arg2 == NULL) { | |
30784 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30785 | SWIG_fail; | |
30786 | } | |
30787 | if (obj2) { | |
30788 | arg3 = (bool)SWIG_As_bool(obj2); | |
30789 | if (PyErr_Occurred()) SWIG_fail; | |
30790 | } | |
30791 | { | |
30792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30793 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
30794 | ||
30795 | wxPyEndAllowThreads(__tstate); | |
30796 | if (PyErr_Occurred()) SWIG_fail; | |
30797 | } | |
30798 | Py_INCREF(Py_None); resultobj = Py_None; | |
30799 | return resultobj; | |
30800 | fail: | |
30801 | return NULL; | |
30802 | } | |
30803 | ||
30804 | ||
30805 | static PyObject *_wrap_PyTextShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
30806 | PyObject *resultobj; | |
30807 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30808 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
30809 | bool arg3 ; | |
30810 | double arg4 ; | |
30811 | double arg5 ; | |
30812 | int arg6 = (int) 0 ; | |
30813 | int arg7 = (int) 0 ; | |
30814 | PyObject * obj0 = 0 ; | |
30815 | PyObject * obj1 = 0 ; | |
30816 | PyObject * obj2 = 0 ; | |
30817 | PyObject * obj3 = 0 ; | |
30818 | PyObject * obj4 = 0 ; | |
30819 | PyObject * obj5 = 0 ; | |
30820 | PyObject * obj6 = 0 ; | |
30821 | char *kwnames[] = { | |
30822 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30823 | }; | |
30824 | ||
30825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyTextShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
30826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30828 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
30829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30830 | arg3 = (bool)SWIG_As_bool(obj2); | |
30831 | if (PyErr_Occurred()) SWIG_fail; | |
30832 | arg4 = (double)SWIG_As_double(obj3); | |
30833 | if (PyErr_Occurred()) SWIG_fail; | |
30834 | arg5 = (double)SWIG_As_double(obj4); | |
30835 | if (PyErr_Occurred()) SWIG_fail; | |
30836 | if (obj5) { | |
30837 | arg6 = (int)SWIG_As_int(obj5); | |
30838 | if (PyErr_Occurred()) SWIG_fail; | |
30839 | } | |
30840 | if (obj6) { | |
30841 | arg7 = (int)SWIG_As_int(obj6); | |
30842 | if (PyErr_Occurred()) SWIG_fail; | |
30843 | } | |
30844 | { | |
30845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30846 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
30847 | ||
30848 | wxPyEndAllowThreads(__tstate); | |
30849 | if (PyErr_Occurred()) SWIG_fail; | |
30850 | } | |
30851 | Py_INCREF(Py_None); resultobj = Py_None; | |
30852 | return resultobj; | |
30853 | fail: | |
30854 | return NULL; | |
30855 | } | |
30856 | ||
30857 | ||
30858 | static PyObject *_wrap_PyTextShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
30859 | PyObject *resultobj; | |
30860 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30861 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
30862 | double arg3 ; | |
30863 | double arg4 ; | |
30864 | int arg5 = (int) 0 ; | |
30865 | int arg6 = (int) 0 ; | |
30866 | PyObject * obj0 = 0 ; | |
30867 | PyObject * obj1 = 0 ; | |
30868 | PyObject * obj2 = 0 ; | |
30869 | PyObject * obj3 = 0 ; | |
30870 | PyObject * obj4 = 0 ; | |
30871 | PyObject * obj5 = 0 ; | |
30872 | char *kwnames[] = { | |
30873 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30874 | }; | |
30875 | ||
30876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyTextShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30879 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
30880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30881 | arg3 = (double)SWIG_As_double(obj2); | |
30882 | if (PyErr_Occurred()) SWIG_fail; | |
30883 | arg4 = (double)SWIG_As_double(obj3); | |
30884 | if (PyErr_Occurred()) SWIG_fail; | |
30885 | if (obj4) { | |
30886 | arg5 = (int)SWIG_As_int(obj4); | |
30887 | if (PyErr_Occurred()) SWIG_fail; | |
30888 | } | |
30889 | if (obj5) { | |
30890 | arg6 = (int)SWIG_As_int(obj5); | |
30891 | if (PyErr_Occurred()) SWIG_fail; | |
30892 | } | |
30893 | { | |
30894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30895 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
30896 | ||
30897 | wxPyEndAllowThreads(__tstate); | |
30898 | if (PyErr_Occurred()) SWIG_fail; | |
30899 | } | |
30900 | Py_INCREF(Py_None); resultobj = Py_None; | |
30901 | return resultobj; | |
30902 | fail: | |
30903 | return NULL; | |
30904 | } | |
30905 | ||
30906 | ||
30907 | static PyObject *_wrap_PyTextShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
30908 | PyObject *resultobj; | |
30909 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30910 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
30911 | double arg3 ; | |
30912 | double arg4 ; | |
30913 | int arg5 = (int) 0 ; | |
30914 | int arg6 = (int) 0 ; | |
30915 | PyObject * obj0 = 0 ; | |
30916 | PyObject * obj1 = 0 ; | |
30917 | PyObject * obj2 = 0 ; | |
30918 | PyObject * obj3 = 0 ; | |
30919 | PyObject * obj4 = 0 ; | |
30920 | PyObject * obj5 = 0 ; | |
30921 | char *kwnames[] = { | |
30922 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30923 | }; | |
30924 | ||
30925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyTextShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30928 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
30929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30930 | arg3 = (double)SWIG_As_double(obj2); | |
30931 | if (PyErr_Occurred()) SWIG_fail; | |
30932 | arg4 = (double)SWIG_As_double(obj3); | |
30933 | if (PyErr_Occurred()) SWIG_fail; | |
30934 | if (obj4) { | |
30935 | arg5 = (int)SWIG_As_int(obj4); | |
30936 | if (PyErr_Occurred()) SWIG_fail; | |
30937 | } | |
30938 | if (obj5) { | |
30939 | arg6 = (int)SWIG_As_int(obj5); | |
30940 | if (PyErr_Occurred()) SWIG_fail; | |
30941 | } | |
30942 | { | |
30943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30944 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
30945 | ||
30946 | wxPyEndAllowThreads(__tstate); | |
30947 | if (PyErr_Occurred()) SWIG_fail; | |
30948 | } | |
30949 | Py_INCREF(Py_None); resultobj = Py_None; | |
30950 | return resultobj; | |
30951 | fail: | |
30952 | return NULL; | |
30953 | } | |
30954 | ||
30955 | ||
30956 | static PyObject *_wrap_PyTextShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
30957 | PyObject *resultobj; | |
30958 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30959 | double arg2 ; | |
30960 | double arg3 ; | |
30961 | PyObject * obj0 = 0 ; | |
30962 | PyObject * obj1 = 0 ; | |
30963 | PyObject * obj2 = 0 ; | |
30964 | char *kwnames[] = { | |
30965 | (char *) "self",(char *) "w",(char *) "h", NULL | |
30966 | }; | |
30967 | ||
30968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30971 | arg2 = (double)SWIG_As_double(obj1); | |
30972 | if (PyErr_Occurred()) SWIG_fail; | |
30973 | arg3 = (double)SWIG_As_double(obj2); | |
30974 | if (PyErr_Occurred()) SWIG_fail; | |
30975 | { | |
30976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30977 | (arg1)->base_OnBeginSize(arg2,arg3); | |
30978 | ||
30979 | wxPyEndAllowThreads(__tstate); | |
30980 | if (PyErr_Occurred()) SWIG_fail; | |
30981 | } | |
30982 | Py_INCREF(Py_None); resultobj = Py_None; | |
30983 | return resultobj; | |
30984 | fail: | |
30985 | return NULL; | |
30986 | } | |
30987 | ||
30988 | ||
30989 | static PyObject *_wrap_PyTextShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
30990 | PyObject *resultobj; | |
30991 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30992 | double arg2 ; | |
30993 | double arg3 ; | |
30994 | PyObject * obj0 = 0 ; | |
30995 | PyObject * obj1 = 0 ; | |
30996 | PyObject * obj2 = 0 ; | |
30997 | char *kwnames[] = { | |
30998 | (char *) "self",(char *) "w",(char *) "h", NULL | |
30999 | }; | |
31000 | ||
31001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
31003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31004 | arg2 = (double)SWIG_As_double(obj1); | |
31005 | if (PyErr_Occurred()) SWIG_fail; | |
31006 | arg3 = (double)SWIG_As_double(obj2); | |
31007 | if (PyErr_Occurred()) SWIG_fail; | |
31008 | { | |
31009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31010 | (arg1)->base_OnEndSize(arg2,arg3); | |
31011 | ||
31012 | wxPyEndAllowThreads(__tstate); | |
31013 | if (PyErr_Occurred()) SWIG_fail; | |
31014 | } | |
31015 | Py_INCREF(Py_None); resultobj = Py_None; | |
31016 | return resultobj; | |
31017 | fail: | |
31018 | return NULL; | |
31019 | } | |
31020 | ||
31021 | ||
31022 | static PyObject * PyTextShape_swigregister(PyObject *, PyObject *args) { | |
31023 | PyObject *obj; | |
31024 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31025 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextShape, obj); | |
31026 | Py_INCREF(obj); | |
31027 | return Py_BuildValue((char *)""); | |
31028 | } | |
31029 | static PyObject *_wrap_new_Diagram(PyObject *, PyObject *args, PyObject *kwargs) { | |
31030 | PyObject *resultobj; | |
31031 | wxDiagram *result; | |
31032 | char *kwnames[] = { | |
31033 | NULL | |
31034 | }; | |
31035 | ||
31036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Diagram",kwnames)) goto fail; | |
31037 | { | |
31038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31039 | result = (wxDiagram *)new wxDiagram(); | |
31040 | ||
31041 | wxPyEndAllowThreads(__tstate); | |
31042 | if (PyErr_Occurred()) SWIG_fail; | |
31043 | } | |
31044 | { | |
31045 | resultobj = wxPyMake_wxObject(result, 1); | |
31046 | } | |
31047 | return resultobj; | |
31048 | fail: | |
31049 | return NULL; | |
31050 | } | |
31051 | ||
31052 | ||
31053 | static PyObject *_wrap_Diagram_AddShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
31054 | PyObject *resultobj; | |
31055 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31056 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
31057 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
31058 | PyObject * obj0 = 0 ; | |
31059 | PyObject * obj1 = 0 ; | |
31060 | PyObject * obj2 = 0 ; | |
31061 | char *kwnames[] = { | |
31062 | (char *) "self",(char *) "shape",(char *) "addAfter", NULL | |
31063 | }; | |
31064 | ||
31065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Diagram_AddShape",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31068 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
31069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31070 | if (obj2) { | |
31071 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
31072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31073 | } | |
31074 | { | |
31075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31076 | (arg1)->AddShape(arg2,arg3); | |
31077 | ||
31078 | wxPyEndAllowThreads(__tstate); | |
31079 | if (PyErr_Occurred()) SWIG_fail; | |
31080 | } | |
31081 | Py_INCREF(Py_None); resultobj = Py_None; | |
31082 | return resultobj; | |
31083 | fail: | |
31084 | return NULL; | |
31085 | } | |
31086 | ||
31087 | ||
31088 | static PyObject *_wrap_Diagram_Clear(PyObject *, PyObject *args, PyObject *kwargs) { | |
31089 | PyObject *resultobj; | |
31090 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31091 | wxDC *arg2 = 0 ; | |
31092 | PyObject * obj0 = 0 ; | |
31093 | PyObject * obj1 = 0 ; | |
31094 | char *kwnames[] = { | |
31095 | (char *) "self",(char *) "dc", NULL | |
31096 | }; | |
31097 | ||
31098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_Clear",kwnames,&obj0,&obj1)) goto fail; | |
31099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31101 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31102 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31103 | SWIG_fail; | |
31104 | if (arg2 == NULL) { | |
31105 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31106 | SWIG_fail; | |
31107 | } | |
31108 | { | |
31109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31110 | (arg1)->Clear(*arg2); | |
31111 | ||
31112 | wxPyEndAllowThreads(__tstate); | |
31113 | if (PyErr_Occurred()) SWIG_fail; | |
31114 | } | |
31115 | Py_INCREF(Py_None); resultobj = Py_None; | |
31116 | return resultobj; | |
31117 | fail: | |
31118 | return NULL; | |
31119 | } | |
31120 | ||
31121 | ||
31122 | static PyObject *_wrap_Diagram_DeleteAllShapes(PyObject *, PyObject *args, PyObject *kwargs) { | |
31123 | PyObject *resultobj; | |
31124 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31125 | PyObject * obj0 = 0 ; | |
31126 | char *kwnames[] = { | |
31127 | (char *) "self", NULL | |
31128 | }; | |
31129 | ||
31130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_DeleteAllShapes",kwnames,&obj0)) goto fail; | |
31131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31133 | { | |
31134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31135 | (arg1)->DeleteAllShapes(); | |
31136 | ||
31137 | wxPyEndAllowThreads(__tstate); | |
31138 | if (PyErr_Occurred()) SWIG_fail; | |
31139 | } | |
31140 | Py_INCREF(Py_None); resultobj = Py_None; | |
31141 | return resultobj; | |
31142 | fail: | |
31143 | return NULL; | |
31144 | } | |
31145 | ||
31146 | ||
31147 | static PyObject *_wrap_Diagram_DrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { | |
31148 | PyObject *resultobj; | |
31149 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31150 | wxDC *arg2 = 0 ; | |
31151 | double arg3 ; | |
31152 | double arg4 ; | |
31153 | double arg5 ; | |
31154 | double arg6 ; | |
31155 | PyObject * obj0 = 0 ; | |
31156 | PyObject * obj1 = 0 ; | |
31157 | PyObject * obj2 = 0 ; | |
31158 | PyObject * obj3 = 0 ; | |
31159 | PyObject * obj4 = 0 ; | |
31160 | PyObject * obj5 = 0 ; | |
31161 | char *kwnames[] = { | |
31162 | (char *) "self",(char *) "dc",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
31163 | }; | |
31164 | ||
31165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Diagram_DrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
31166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31169 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31170 | SWIG_fail; | |
31171 | if (arg2 == NULL) { | |
31172 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31173 | SWIG_fail; | |
31174 | } | |
31175 | arg3 = (double)SWIG_As_double(obj2); | |
31176 | if (PyErr_Occurred()) SWIG_fail; | |
31177 | arg4 = (double)SWIG_As_double(obj3); | |
31178 | if (PyErr_Occurred()) SWIG_fail; | |
31179 | arg5 = (double)SWIG_As_double(obj4); | |
31180 | if (PyErr_Occurred()) SWIG_fail; | |
31181 | arg6 = (double)SWIG_As_double(obj5); | |
31182 | if (PyErr_Occurred()) SWIG_fail; | |
31183 | { | |
31184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31185 | (arg1)->DrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
31186 | ||
31187 | wxPyEndAllowThreads(__tstate); | |
31188 | if (PyErr_Occurred()) SWIG_fail; | |
31189 | } | |
31190 | Py_INCREF(Py_None); resultobj = Py_None; | |
31191 | return resultobj; | |
31192 | fail: | |
31193 | return NULL; | |
31194 | } | |
31195 | ||
31196 | ||
31197 | static PyObject *_wrap_Diagram_FindShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
31198 | PyObject *resultobj; | |
31199 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31200 | long arg2 ; | |
31201 | wxPyShape *result; | |
31202 | PyObject * obj0 = 0 ; | |
31203 | PyObject * obj1 = 0 ; | |
31204 | char *kwnames[] = { | |
31205 | (char *) "self",(char *) "id", NULL | |
31206 | }; | |
31207 | ||
31208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_FindShape",kwnames,&obj0,&obj1)) goto fail; | |
31209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31211 | arg2 = (long)SWIG_As_long(obj1); | |
31212 | if (PyErr_Occurred()) SWIG_fail; | |
31213 | { | |
31214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31215 | result = (wxPyShape *)(arg1)->FindShape(arg2); | |
31216 | ||
31217 | wxPyEndAllowThreads(__tstate); | |
31218 | if (PyErr_Occurred()) SWIG_fail; | |
31219 | } | |
31220 | { | |
31221 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
31222 | } | |
31223 | return resultobj; | |
31224 | fail: | |
31225 | return NULL; | |
31226 | } | |
31227 | ||
31228 | ||
31229 | static PyObject *_wrap_Diagram_GetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
31230 | PyObject *resultobj; | |
31231 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31232 | wxPyShapeCanvas *result; | |
31233 | PyObject * obj0 = 0 ; | |
31234 | char *kwnames[] = { | |
31235 | (char *) "self", NULL | |
31236 | }; | |
31237 | ||
31238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetCanvas",kwnames,&obj0)) goto fail; | |
31239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31241 | { | |
31242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31243 | result = (wxPyShapeCanvas *)(arg1)->GetCanvas(); | |
31244 | ||
31245 | wxPyEndAllowThreads(__tstate); | |
31246 | if (PyErr_Occurred()) SWIG_fail; | |
31247 | } | |
31248 | { | |
31249 | resultobj = wxPyMake_wxObject(result, 0); | |
31250 | } | |
31251 | return resultobj; | |
31252 | fail: | |
31253 | return NULL; | |
31254 | } | |
31255 | ||
31256 | ||
31257 | static PyObject *_wrap_Diagram_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
31258 | PyObject *resultobj; | |
31259 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31260 | int result; | |
31261 | PyObject * obj0 = 0 ; | |
31262 | char *kwnames[] = { | |
31263 | (char *) "self", NULL | |
31264 | }; | |
31265 | ||
31266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetCount",kwnames,&obj0)) goto fail; | |
31267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31269 | { | |
31270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31271 | result = (int)(arg1)->GetCount(); | |
31272 | ||
31273 | wxPyEndAllowThreads(__tstate); | |
31274 | if (PyErr_Occurred()) SWIG_fail; | |
31275 | } | |
31276 | resultobj = SWIG_From_int((int)result); | |
31277 | return resultobj; | |
31278 | fail: | |
31279 | return NULL; | |
31280 | } | |
31281 | ||
31282 | ||
31283 | static PyObject *_wrap_Diagram_GetGridSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
31284 | PyObject *resultobj; | |
31285 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31286 | double result; | |
31287 | PyObject * obj0 = 0 ; | |
31288 | char *kwnames[] = { | |
31289 | (char *) "self", NULL | |
31290 | }; | |
31291 | ||
31292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetGridSpacing",kwnames,&obj0)) goto fail; | |
31293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31295 | { | |
31296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31297 | result = (double)(arg1)->GetGridSpacing(); | |
31298 | ||
31299 | wxPyEndAllowThreads(__tstate); | |
31300 | if (PyErr_Occurred()) SWIG_fail; | |
31301 | } | |
31302 | resultobj = SWIG_From_double((double)result); | |
31303 | return resultobj; | |
31304 | fail: | |
31305 | return NULL; | |
31306 | } | |
31307 | ||
31308 | ||
31309 | static PyObject *_wrap_Diagram_GetMouseTolerance(PyObject *, PyObject *args, PyObject *kwargs) { | |
31310 | PyObject *resultobj; | |
31311 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31312 | int result; | |
31313 | PyObject * obj0 = 0 ; | |
31314 | char *kwnames[] = { | |
31315 | (char *) "self", NULL | |
31316 | }; | |
31317 | ||
31318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetMouseTolerance",kwnames,&obj0)) goto fail; | |
31319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31321 | { | |
31322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31323 | result = (int)(arg1)->GetMouseTolerance(); | |
31324 | ||
31325 | wxPyEndAllowThreads(__tstate); | |
31326 | if (PyErr_Occurred()) SWIG_fail; | |
31327 | } | |
31328 | resultobj = SWIG_From_int((int)result); | |
31329 | return resultobj; | |
31330 | fail: | |
31331 | return NULL; | |
31332 | } | |
31333 | ||
31334 | ||
31335 | static PyObject *_wrap_Diagram_GetShapeList(PyObject *, PyObject *args, PyObject *kwargs) { | |
31336 | PyObject *resultobj; | |
31337 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31338 | PyObject *result; | |
31339 | PyObject * obj0 = 0 ; | |
31340 | char *kwnames[] = { | |
31341 | (char *) "self", NULL | |
31342 | }; | |
31343 | ||
31344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetShapeList",kwnames,&obj0)) goto fail; | |
31345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31347 | { | |
31348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31349 | result = (PyObject *)wxDiagram_GetShapeList(arg1); | |
31350 | ||
31351 | wxPyEndAllowThreads(__tstate); | |
31352 | if (PyErr_Occurred()) SWIG_fail; | |
31353 | } | |
31354 | resultobj = result; | |
31355 | return resultobj; | |
31356 | fail: | |
31357 | return NULL; | |
31358 | } | |
31359 | ||
31360 | ||
31361 | static PyObject *_wrap_Diagram_GetQuickEditMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
31362 | PyObject *resultobj; | |
31363 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31364 | bool result; | |
31365 | PyObject * obj0 = 0 ; | |
31366 | char *kwnames[] = { | |
31367 | (char *) "self", NULL | |
31368 | }; | |
31369 | ||
31370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetQuickEditMode",kwnames,&obj0)) goto fail; | |
31371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31373 | { | |
31374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31375 | result = (bool)(arg1)->GetQuickEditMode(); | |
31376 | ||
31377 | wxPyEndAllowThreads(__tstate); | |
31378 | if (PyErr_Occurred()) SWIG_fail; | |
31379 | } | |
31380 | { | |
31381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31382 | } | |
31383 | return resultobj; | |
31384 | fail: | |
31385 | return NULL; | |
31386 | } | |
31387 | ||
31388 | ||
31389 | static PyObject *_wrap_Diagram_GetSnapToGrid(PyObject *, PyObject *args, PyObject *kwargs) { | |
31390 | PyObject *resultobj; | |
31391 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31392 | bool result; | |
31393 | PyObject * obj0 = 0 ; | |
31394 | char *kwnames[] = { | |
31395 | (char *) "self", NULL | |
31396 | }; | |
31397 | ||
31398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetSnapToGrid",kwnames,&obj0)) goto fail; | |
31399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31401 | { | |
31402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31403 | result = (bool)(arg1)->GetSnapToGrid(); | |
31404 | ||
31405 | wxPyEndAllowThreads(__tstate); | |
31406 | if (PyErr_Occurred()) SWIG_fail; | |
31407 | } | |
31408 | { | |
31409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31410 | } | |
31411 | return resultobj; | |
31412 | fail: | |
31413 | return NULL; | |
31414 | } | |
31415 | ||
31416 | ||
31417 | static PyObject *_wrap_Diagram_InsertShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
31418 | PyObject *resultobj; | |
31419 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31420 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
31421 | PyObject * obj0 = 0 ; | |
31422 | PyObject * obj1 = 0 ; | |
31423 | char *kwnames[] = { | |
31424 | (char *) "self",(char *) "shape", NULL | |
31425 | }; | |
31426 | ||
31427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_InsertShape",kwnames,&obj0,&obj1)) goto fail; | |
31428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31430 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
31431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31432 | { | |
31433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31434 | (arg1)->InsertShape(arg2); | |
31435 | ||
31436 | wxPyEndAllowThreads(__tstate); | |
31437 | if (PyErr_Occurred()) SWIG_fail; | |
31438 | } | |
31439 | Py_INCREF(Py_None); resultobj = Py_None; | |
31440 | return resultobj; | |
31441 | fail: | |
31442 | return NULL; | |
31443 | } | |
31444 | ||
31445 | ||
31446 | static PyObject *_wrap_Diagram_RecentreAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
31447 | PyObject *resultobj; | |
31448 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31449 | wxDC *arg2 = 0 ; | |
31450 | PyObject * obj0 = 0 ; | |
31451 | PyObject * obj1 = 0 ; | |
31452 | char *kwnames[] = { | |
31453 | (char *) "self",(char *) "dc", NULL | |
31454 | }; | |
31455 | ||
31456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_RecentreAll",kwnames,&obj0,&obj1)) goto fail; | |
31457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31460 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31461 | SWIG_fail; | |
31462 | if (arg2 == NULL) { | |
31463 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31464 | SWIG_fail; | |
31465 | } | |
31466 | { | |
31467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31468 | (arg1)->RecentreAll(*arg2); | |
31469 | ||
31470 | wxPyEndAllowThreads(__tstate); | |
31471 | if (PyErr_Occurred()) SWIG_fail; | |
31472 | } | |
31473 | Py_INCREF(Py_None); resultobj = Py_None; | |
31474 | return resultobj; | |
31475 | fail: | |
31476 | return NULL; | |
31477 | } | |
31478 | ||
31479 | ||
31480 | static PyObject *_wrap_Diagram_Redraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
31481 | PyObject *resultobj; | |
31482 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31483 | wxDC *arg2 = 0 ; | |
31484 | PyObject * obj0 = 0 ; | |
31485 | PyObject * obj1 = 0 ; | |
31486 | char *kwnames[] = { | |
31487 | (char *) "self",(char *) "dc", NULL | |
31488 | }; | |
31489 | ||
31490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_Redraw",kwnames,&obj0,&obj1)) goto fail; | |
31491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31493 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31494 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31495 | SWIG_fail; | |
31496 | if (arg2 == NULL) { | |
31497 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31498 | SWIG_fail; | |
31499 | } | |
31500 | { | |
31501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31502 | (arg1)->Redraw(*arg2); | |
31503 | ||
31504 | wxPyEndAllowThreads(__tstate); | |
31505 | if (PyErr_Occurred()) SWIG_fail; | |
31506 | } | |
31507 | Py_INCREF(Py_None); resultobj = Py_None; | |
31508 | return resultobj; | |
31509 | fail: | |
31510 | return NULL; | |
31511 | } | |
31512 | ||
31513 | ||
31514 | static PyObject *_wrap_Diagram_RemoveAllShapes(PyObject *, PyObject *args, PyObject *kwargs) { | |
31515 | PyObject *resultobj; | |
31516 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31517 | PyObject * obj0 = 0 ; | |
31518 | char *kwnames[] = { | |
31519 | (char *) "self", NULL | |
31520 | }; | |
31521 | ||
31522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_RemoveAllShapes",kwnames,&obj0)) goto fail; | |
31523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31525 | { | |
31526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31527 | (arg1)->RemoveAllShapes(); | |
31528 | ||
31529 | wxPyEndAllowThreads(__tstate); | |
31530 | if (PyErr_Occurred()) SWIG_fail; | |
31531 | } | |
31532 | Py_INCREF(Py_None); resultobj = Py_None; | |
31533 | return resultobj; | |
31534 | fail: | |
31535 | return NULL; | |
31536 | } | |
31537 | ||
31538 | ||
31539 | static PyObject *_wrap_Diagram_RemoveShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
31540 | PyObject *resultobj; | |
31541 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31542 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
31543 | PyObject * obj0 = 0 ; | |
31544 | PyObject * obj1 = 0 ; | |
31545 | char *kwnames[] = { | |
31546 | (char *) "self",(char *) "shape", NULL | |
31547 | }; | |
31548 | ||
31549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_RemoveShape",kwnames,&obj0,&obj1)) goto fail; | |
31550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31552 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
31553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31554 | { | |
31555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31556 | (arg1)->RemoveShape(arg2); | |
31557 | ||
31558 | wxPyEndAllowThreads(__tstate); | |
31559 | if (PyErr_Occurred()) SWIG_fail; | |
31560 | } | |
31561 | Py_INCREF(Py_None); resultobj = Py_None; | |
31562 | return resultobj; | |
31563 | fail: | |
31564 | return NULL; | |
31565 | } | |
31566 | ||
31567 | ||
31568 | static PyObject *_wrap_Diagram_SetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
31569 | PyObject *resultobj; | |
31570 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31571 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
31572 | PyObject * obj0 = 0 ; | |
31573 | PyObject * obj1 = 0 ; | |
31574 | char *kwnames[] = { | |
31575 | (char *) "self",(char *) "canvas", NULL | |
31576 | }; | |
31577 | ||
31578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
31579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31581 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
31582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31583 | { | |
31584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31585 | (arg1)->SetCanvas(arg2); | |
31586 | ||
31587 | wxPyEndAllowThreads(__tstate); | |
31588 | if (PyErr_Occurred()) SWIG_fail; | |
31589 | } | |
31590 | Py_INCREF(Py_None); resultobj = Py_None; | |
31591 | return resultobj; | |
31592 | fail: | |
31593 | return NULL; | |
31594 | } | |
31595 | ||
31596 | ||
31597 | static PyObject *_wrap_Diagram_SetGridSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
31598 | PyObject *resultobj; | |
31599 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31600 | double arg2 ; | |
31601 | PyObject * obj0 = 0 ; | |
31602 | PyObject * obj1 = 0 ; | |
31603 | char *kwnames[] = { | |
31604 | (char *) "self",(char *) "spacing", NULL | |
31605 | }; | |
31606 | ||
31607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetGridSpacing",kwnames,&obj0,&obj1)) goto fail; | |
31608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31610 | arg2 = (double)SWIG_As_double(obj1); | |
31611 | if (PyErr_Occurred()) SWIG_fail; | |
31612 | { | |
31613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31614 | (arg1)->SetGridSpacing(arg2); | |
31615 | ||
31616 | wxPyEndAllowThreads(__tstate); | |
31617 | if (PyErr_Occurred()) SWIG_fail; | |
31618 | } | |
31619 | Py_INCREF(Py_None); resultobj = Py_None; | |
31620 | return resultobj; | |
31621 | fail: | |
31622 | return NULL; | |
31623 | } | |
31624 | ||
31625 | ||
31626 | static PyObject *_wrap_Diagram_SetMouseTolerance(PyObject *, PyObject *args, PyObject *kwargs) { | |
31627 | PyObject *resultobj; | |
31628 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31629 | int arg2 ; | |
31630 | PyObject * obj0 = 0 ; | |
31631 | PyObject * obj1 = 0 ; | |
31632 | char *kwnames[] = { | |
31633 | (char *) "self",(char *) "tolerance", NULL | |
31634 | }; | |
31635 | ||
31636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetMouseTolerance",kwnames,&obj0,&obj1)) goto fail; | |
31637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31639 | arg2 = (int)SWIG_As_int(obj1); | |
31640 | if (PyErr_Occurred()) SWIG_fail; | |
31641 | { | |
31642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31643 | (arg1)->SetMouseTolerance(arg2); | |
31644 | ||
31645 | wxPyEndAllowThreads(__tstate); | |
31646 | if (PyErr_Occurred()) SWIG_fail; | |
31647 | } | |
31648 | Py_INCREF(Py_None); resultobj = Py_None; | |
31649 | return resultobj; | |
31650 | fail: | |
31651 | return NULL; | |
31652 | } | |
31653 | ||
31654 | ||
31655 | static PyObject *_wrap_Diagram_SetQuickEditMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
31656 | PyObject *resultobj; | |
31657 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31658 | bool arg2 ; | |
31659 | PyObject * obj0 = 0 ; | |
31660 | PyObject * obj1 = 0 ; | |
31661 | char *kwnames[] = { | |
31662 | (char *) "self",(char *) "mode", NULL | |
31663 | }; | |
31664 | ||
31665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetQuickEditMode",kwnames,&obj0,&obj1)) goto fail; | |
31666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31668 | arg2 = (bool)SWIG_As_bool(obj1); | |
31669 | if (PyErr_Occurred()) SWIG_fail; | |
31670 | { | |
31671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31672 | (arg1)->SetQuickEditMode(arg2); | |
31673 | ||
31674 | wxPyEndAllowThreads(__tstate); | |
31675 | if (PyErr_Occurred()) SWIG_fail; | |
31676 | } | |
31677 | Py_INCREF(Py_None); resultobj = Py_None; | |
31678 | return resultobj; | |
31679 | fail: | |
31680 | return NULL; | |
31681 | } | |
31682 | ||
31683 | ||
31684 | static PyObject *_wrap_Diagram_SetSnapToGrid(PyObject *, PyObject *args, PyObject *kwargs) { | |
31685 | PyObject *resultobj; | |
31686 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31687 | bool arg2 ; | |
31688 | PyObject * obj0 = 0 ; | |
31689 | PyObject * obj1 = 0 ; | |
31690 | char *kwnames[] = { | |
31691 | (char *) "self",(char *) "snap", NULL | |
31692 | }; | |
31693 | ||
31694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetSnapToGrid",kwnames,&obj0,&obj1)) goto fail; | |
31695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31697 | arg2 = (bool)SWIG_As_bool(obj1); | |
31698 | if (PyErr_Occurred()) SWIG_fail; | |
31699 | { | |
31700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31701 | (arg1)->SetSnapToGrid(arg2); | |
31702 | ||
31703 | wxPyEndAllowThreads(__tstate); | |
31704 | if (PyErr_Occurred()) SWIG_fail; | |
31705 | } | |
31706 | Py_INCREF(Py_None); resultobj = Py_None; | |
31707 | return resultobj; | |
31708 | fail: | |
31709 | return NULL; | |
31710 | } | |
31711 | ||
31712 | ||
31713 | static PyObject *_wrap_Diagram_ShowAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
31714 | PyObject *resultobj; | |
31715 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31716 | bool arg2 ; | |
31717 | PyObject * obj0 = 0 ; | |
31718 | PyObject * obj1 = 0 ; | |
31719 | char *kwnames[] = { | |
31720 | (char *) "self",(char *) "show", NULL | |
31721 | }; | |
31722 | ||
31723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_ShowAll",kwnames,&obj0,&obj1)) goto fail; | |
31724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31726 | arg2 = (bool)SWIG_As_bool(obj1); | |
31727 | if (PyErr_Occurred()) SWIG_fail; | |
31728 | { | |
31729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31730 | (arg1)->ShowAll(arg2); | |
31731 | ||
31732 | wxPyEndAllowThreads(__tstate); | |
31733 | if (PyErr_Occurred()) SWIG_fail; | |
31734 | } | |
31735 | Py_INCREF(Py_None); resultobj = Py_None; | |
31736 | return resultobj; | |
31737 | fail: | |
31738 | return NULL; | |
31739 | } | |
31740 | ||
31741 | ||
31742 | static PyObject *_wrap_Diagram_Snap(PyObject *, PyObject *args, PyObject *kwargs) { | |
31743 | PyObject *resultobj; | |
31744 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31745 | double *arg2 = (double *) 0 ; | |
31746 | double *arg3 = (double *) 0 ; | |
31747 | double temp2 ; | |
31748 | int res2 = 0 ; | |
31749 | double temp3 ; | |
31750 | int res3 = 0 ; | |
31751 | PyObject * obj0 = 0 ; | |
31752 | PyObject * obj1 = 0 ; | |
31753 | PyObject * obj2 = 0 ; | |
31754 | char *kwnames[] = { | |
31755 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
31756 | }; | |
31757 | ||
31758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Diagram_Snap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, | |
31760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31761 | { | |
31762 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_double,0) != -1)) { | |
31763 | temp2 = SWIG_As_double(obj1); | |
31764 | if (PyErr_Occurred()) SWIG_fail; | |
31765 | arg2 = &temp2; | |
31766 | res2 = SWIG_NEWOBJ; | |
31767 | } | |
31768 | } | |
31769 | { | |
31770 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_double,0) != -1)) { | |
31771 | temp3 = SWIG_As_double(obj2); | |
31772 | if (PyErr_Occurred()) SWIG_fail; | |
31773 | arg3 = &temp3; | |
31774 | res3 = SWIG_NEWOBJ; | |
31775 | } | |
31776 | } | |
31777 | { | |
31778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31779 | (arg1)->Snap(arg2,arg3); | |
31780 | ||
31781 | wxPyEndAllowThreads(__tstate); | |
31782 | if (PyErr_Occurred()) SWIG_fail; | |
31783 | } | |
31784 | Py_INCREF(Py_None); resultobj = Py_None; | |
31785 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
31786 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
31787 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
31788 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
31789 | return resultobj; | |
31790 | fail: | |
31791 | return NULL; | |
31792 | } | |
31793 | ||
31794 | ||
31795 | static PyObject * Diagram_swigregister(PyObject *, PyObject *args) { | |
31796 | PyObject *obj; | |
31797 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31798 | SWIG_TypeClientData(SWIGTYPE_p_wxDiagram, obj); | |
31799 | Py_INCREF(obj); | |
31800 | return Py_BuildValue((char *)""); | |
31801 | } | |
31802 | static PyObject *_wrap_new_PyShapeCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
31803 | PyObject *resultobj; | |
31804 | wxWindow *arg1 = (wxWindow *) NULL ; | |
31805 | int arg2 = (int) -1 ; | |
31806 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
31807 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31808 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31809 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31810 | long arg5 = (long) wxBORDER ; | |
31811 | wxString const &arg6_defvalue = wxPyShapeCanvasNameStr ; | |
31812 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
31813 | wxPyShapeCanvas *result; | |
31814 | wxPoint temp3 ; | |
31815 | wxSize temp4 ; | |
31816 | bool temp6 = false ; | |
31817 | PyObject * obj0 = 0 ; | |
31818 | PyObject * obj1 = 0 ; | |
31819 | PyObject * obj2 = 0 ; | |
31820 | PyObject * obj3 = 0 ; | |
31821 | PyObject * obj4 = 0 ; | |
31822 | PyObject * obj5 = 0 ; | |
31823 | char *kwnames[] = { | |
31824 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
31825 | }; | |
31826 | ||
31827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_PyShapeCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
31828 | if (obj0) { | |
31829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
31830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31831 | } | |
31832 | if (obj1) { | |
31833 | arg2 = (int)SWIG_As_int(obj1); | |
31834 | if (PyErr_Occurred()) SWIG_fail; | |
31835 | } | |
31836 | if (obj2) { | |
31837 | { | |
31838 | arg3 = &temp3; | |
31839 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31840 | } | |
31841 | } | |
31842 | if (obj3) { | |
31843 | { | |
31844 | arg4 = &temp4; | |
31845 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31846 | } | |
31847 | } | |
31848 | if (obj4) { | |
31849 | arg5 = (long)SWIG_As_long(obj4); | |
31850 | if (PyErr_Occurred()) SWIG_fail; | |
31851 | } | |
31852 | if (obj5) { | |
31853 | { | |
31854 | arg6 = wxString_in_helper(obj5); | |
31855 | if (arg6 == NULL) SWIG_fail; | |
31856 | temp6 = true; | |
31857 | } | |
31858 | } | |
31859 | { | |
31860 | if (!wxPyCheckForApp()) SWIG_fail; | |
31861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31862 | result = (wxPyShapeCanvas *)new wxPyShapeCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
31863 | ||
31864 | wxPyEndAllowThreads(__tstate); | |
31865 | if (PyErr_Occurred()) SWIG_fail; | |
31866 | } | |
31867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyShapeCanvas, 1); | |
31868 | { | |
31869 | if (temp6) | |
31870 | delete arg6; | |
31871 | } | |
31872 | return resultobj; | |
31873 | fail: | |
31874 | { | |
31875 | if (temp6) | |
31876 | delete arg6; | |
31877 | } | |
31878 | return NULL; | |
31879 | } | |
31880 | ||
31881 | ||
31882 | static PyObject *_wrap_PyShapeCanvas__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
31883 | PyObject *resultobj; | |
31884 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
31885 | PyObject *arg2 = (PyObject *) 0 ; | |
31886 | PyObject *arg3 = (PyObject *) 0 ; | |
31887 | PyObject * obj0 = 0 ; | |
31888 | PyObject * obj1 = 0 ; | |
31889 | PyObject * obj2 = 0 ; | |
31890 | char *kwnames[] = { | |
31891 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31892 | }; | |
31893 | ||
31894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeCanvas__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
31896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31897 | arg2 = obj1; | |
31898 | arg3 = obj2; | |
31899 | { | |
31900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31901 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31902 | ||
31903 | wxPyEndAllowThreads(__tstate); | |
31904 | if (PyErr_Occurred()) SWIG_fail; | |
31905 | } | |
31906 | Py_INCREF(Py_None); resultobj = Py_None; | |
31907 | return resultobj; | |
31908 | fail: | |
31909 | return NULL; | |
31910 | } | |
31911 | ||
31912 | ||
31913 | static PyObject *_wrap_PyShapeCanvas_AddShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
31914 | PyObject *resultobj; | |
31915 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
31916 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
31917 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
31918 | PyObject * obj0 = 0 ; | |
31919 | PyObject * obj1 = 0 ; | |
31920 | PyObject * obj2 = 0 ; | |
31921 | char *kwnames[] = { | |
31922 | (char *) "self",(char *) "shape",(char *) "addAfter", NULL | |
31923 | }; | |
31924 | ||
31925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShapeCanvas_AddShape",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
31927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31928 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
31929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31930 | if (obj2) { | |
31931 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
31932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31933 | } | |
31934 | { | |
31935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31936 | (arg1)->AddShape(arg2,arg3); | |
31937 | ||
31938 | wxPyEndAllowThreads(__tstate); | |
31939 | if (PyErr_Occurred()) SWIG_fail; | |
31940 | } | |
31941 | Py_INCREF(Py_None); resultobj = Py_None; | |
31942 | return resultobj; | |
31943 | fail: | |
31944 | return NULL; | |
31945 | } | |
31946 | ||
31947 | ||
31948 | static PyObject *_wrap_PyShapeCanvas_FindShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
31949 | PyObject *resultobj; | |
31950 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
31951 | double arg2 ; | |
31952 | double arg3 ; | |
31953 | int *arg4 = (int *) 0 ; | |
31954 | wxClassInfo *arg5 = (wxClassInfo *) NULL ; | |
31955 | wxPyShape *arg6 = (wxPyShape *) NULL ; | |
31956 | wxPyShape *result; | |
31957 | int temp4 ; | |
31958 | int res4 = 0 ; | |
31959 | PyObject * obj0 = 0 ; | |
31960 | PyObject * obj1 = 0 ; | |
31961 | PyObject * obj2 = 0 ; | |
31962 | PyObject * obj3 = 0 ; | |
31963 | PyObject * obj4 = 0 ; | |
31964 | char *kwnames[] = { | |
31965 | (char *) "self",(char *) "x1",(char *) "y",(char *) "info",(char *) "notImage", NULL | |
31966 | }; | |
31967 | ||
31968 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
31969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeCanvas_FindShape",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
31971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31972 | arg2 = (double)SWIG_As_double(obj1); | |
31973 | if (PyErr_Occurred()) SWIG_fail; | |
31974 | arg3 = (double)SWIG_As_double(obj2); | |
31975 | if (PyErr_Occurred()) SWIG_fail; | |
31976 | if (obj3) { | |
31977 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxClassInfo, | |
31978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31979 | } | |
31980 | if (obj4) { | |
31981 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg6),SWIGTYPE_p_wxPyShape, | |
31982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31983 | } | |
31984 | { | |
31985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31986 | result = (wxPyShape *)(arg1)->FindShape(arg2,arg3,arg4,arg5,arg6); | |
31987 | ||
31988 | wxPyEndAllowThreads(__tstate); | |
31989 | if (PyErr_Occurred()) SWIG_fail; | |
31990 | } | |
31991 | { | |
31992 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
31993 | } | |
31994 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
31995 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
31996 | return resultobj; | |
31997 | fail: | |
31998 | return NULL; | |
31999 | } | |
32000 | ||
32001 | ||
32002 | static PyObject *_wrap_PyShapeCanvas_FindFirstSensitiveShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
32003 | PyObject *resultobj; | |
32004 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32005 | double arg2 ; | |
32006 | double arg3 ; | |
32007 | int *arg4 = (int *) 0 ; | |
32008 | int arg5 ; | |
32009 | wxPyShape *result; | |
32010 | int temp4 ; | |
32011 | int res4 = 0 ; | |
32012 | PyObject * obj0 = 0 ; | |
32013 | PyObject * obj1 = 0 ; | |
32014 | PyObject * obj2 = 0 ; | |
32015 | PyObject * obj3 = 0 ; | |
32016 | char *kwnames[] = { | |
32017 | (char *) "self",(char *) "x1",(char *) "y",(char *) "op", NULL | |
32018 | }; | |
32019 | ||
32020 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
32021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyShapeCanvas_FindFirstSensitiveShape",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
32022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32024 | arg2 = (double)SWIG_As_double(obj1); | |
32025 | if (PyErr_Occurred()) SWIG_fail; | |
32026 | arg3 = (double)SWIG_As_double(obj2); | |
32027 | if (PyErr_Occurred()) SWIG_fail; | |
32028 | arg5 = (int)SWIG_As_int(obj3); | |
32029 | if (PyErr_Occurred()) SWIG_fail; | |
32030 | { | |
32031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32032 | result = (wxPyShape *)(arg1)->FindFirstSensitiveShape(arg2,arg3,arg4,arg5); | |
32033 | ||
32034 | wxPyEndAllowThreads(__tstate); | |
32035 | if (PyErr_Occurred()) SWIG_fail; | |
32036 | } | |
32037 | { | |
32038 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); | |
32039 | } | |
32040 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
32041 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
32042 | return resultobj; | |
32043 | fail: | |
32044 | return NULL; | |
32045 | } | |
32046 | ||
32047 | ||
32048 | static PyObject *_wrap_PyShapeCanvas_GetDiagram(PyObject *, PyObject *args, PyObject *kwargs) { | |
32049 | PyObject *resultobj; | |
32050 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32051 | wxDiagram *result; | |
32052 | PyObject * obj0 = 0 ; | |
32053 | char *kwnames[] = { | |
32054 | (char *) "self", NULL | |
32055 | }; | |
32056 | ||
32057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeCanvas_GetDiagram",kwnames,&obj0)) goto fail; | |
32058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32060 | { | |
32061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32062 | result = (wxDiagram *)(arg1)->GetDiagram(); | |
32063 | ||
32064 | wxPyEndAllowThreads(__tstate); | |
32065 | if (PyErr_Occurred()) SWIG_fail; | |
32066 | } | |
32067 | { | |
32068 | resultobj = wxPyMake_wxObject(result, 0); | |
32069 | } | |
32070 | return resultobj; | |
32071 | fail: | |
32072 | return NULL; | |
32073 | } | |
32074 | ||
32075 | ||
32076 | static PyObject *_wrap_PyShapeCanvas_GetQuickEditMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
32077 | PyObject *resultobj; | |
32078 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32079 | bool result; | |
32080 | PyObject * obj0 = 0 ; | |
32081 | char *kwnames[] = { | |
32082 | (char *) "self", NULL | |
32083 | }; | |
32084 | ||
32085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeCanvas_GetQuickEditMode",kwnames,&obj0)) goto fail; | |
32086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32088 | { | |
32089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32090 | result = (bool)(arg1)->GetQuickEditMode(); | |
32091 | ||
32092 | wxPyEndAllowThreads(__tstate); | |
32093 | if (PyErr_Occurred()) SWIG_fail; | |
32094 | } | |
32095 | { | |
32096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32097 | } | |
32098 | return resultobj; | |
32099 | fail: | |
32100 | return NULL; | |
32101 | } | |
32102 | ||
32103 | ||
32104 | static PyObject *_wrap_PyShapeCanvas_InsertShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
32105 | PyObject *resultobj; | |
32106 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32107 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
32108 | PyObject * obj0 = 0 ; | |
32109 | PyObject * obj1 = 0 ; | |
32110 | char *kwnames[] = { | |
32111 | (char *) "self",(char *) "shape", NULL | |
32112 | }; | |
32113 | ||
32114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_InsertShape",kwnames,&obj0,&obj1)) goto fail; | |
32115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32117 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
32118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32119 | { | |
32120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32121 | (arg1)->InsertShape(arg2); | |
32122 | ||
32123 | wxPyEndAllowThreads(__tstate); | |
32124 | if (PyErr_Occurred()) SWIG_fail; | |
32125 | } | |
32126 | Py_INCREF(Py_None); resultobj = Py_None; | |
32127 | return resultobj; | |
32128 | fail: | |
32129 | return NULL; | |
32130 | } | |
32131 | ||
32132 | ||
32133 | static PyObject *_wrap_PyShapeCanvas_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
32134 | PyObject *resultobj; | |
32135 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32136 | double arg2 ; | |
32137 | double arg3 ; | |
32138 | int arg4 = (int) 0 ; | |
32139 | PyObject * obj0 = 0 ; | |
32140 | PyObject * obj1 = 0 ; | |
32141 | PyObject * obj2 = 0 ; | |
32142 | PyObject * obj3 = 0 ; | |
32143 | char *kwnames[] = { | |
32144 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32145 | }; | |
32146 | ||
32147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
32148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32150 | arg2 = (double)SWIG_As_double(obj1); | |
32151 | if (PyErr_Occurred()) SWIG_fail; | |
32152 | arg3 = (double)SWIG_As_double(obj2); | |
32153 | if (PyErr_Occurred()) SWIG_fail; | |
32154 | if (obj3) { | |
32155 | arg4 = (int)SWIG_As_int(obj3); | |
32156 | if (PyErr_Occurred()) SWIG_fail; | |
32157 | } | |
32158 | { | |
32159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32160 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4); | |
32161 | ||
32162 | wxPyEndAllowThreads(__tstate); | |
32163 | if (PyErr_Occurred()) SWIG_fail; | |
32164 | } | |
32165 | Py_INCREF(Py_None); resultobj = Py_None; | |
32166 | return resultobj; | |
32167 | fail: | |
32168 | return NULL; | |
32169 | } | |
32170 | ||
32171 | ||
32172 | static PyObject *_wrap_PyShapeCanvas_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
32173 | PyObject *resultobj; | |
32174 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32175 | double arg2 ; | |
32176 | double arg3 ; | |
32177 | int arg4 = (int) 0 ; | |
32178 | PyObject * obj0 = 0 ; | |
32179 | PyObject * obj1 = 0 ; | |
32180 | PyObject * obj2 = 0 ; | |
32181 | PyObject * obj3 = 0 ; | |
32182 | char *kwnames[] = { | |
32183 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32184 | }; | |
32185 | ||
32186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
32187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32189 | arg2 = (double)SWIG_As_double(obj1); | |
32190 | if (PyErr_Occurred()) SWIG_fail; | |
32191 | arg3 = (double)SWIG_As_double(obj2); | |
32192 | if (PyErr_Occurred()) SWIG_fail; | |
32193 | if (obj3) { | |
32194 | arg4 = (int)SWIG_As_int(obj3); | |
32195 | if (PyErr_Occurred()) SWIG_fail; | |
32196 | } | |
32197 | { | |
32198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32199 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4); | |
32200 | ||
32201 | wxPyEndAllowThreads(__tstate); | |
32202 | if (PyErr_Occurred()) SWIG_fail; | |
32203 | } | |
32204 | Py_INCREF(Py_None); resultobj = Py_None; | |
32205 | return resultobj; | |
32206 | fail: | |
32207 | return NULL; | |
32208 | } | |
32209 | ||
32210 | ||
32211 | static PyObject *_wrap_PyShapeCanvas_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
32212 | PyObject *resultobj; | |
32213 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32214 | double arg2 ; | |
32215 | double arg3 ; | |
32216 | int arg4 = (int) 0 ; | |
32217 | PyObject * obj0 = 0 ; | |
32218 | PyObject * obj1 = 0 ; | |
32219 | PyObject * obj2 = 0 ; | |
32220 | PyObject * obj3 = 0 ; | |
32221 | char *kwnames[] = { | |
32222 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32223 | }; | |
32224 | ||
32225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
32226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32228 | arg2 = (double)SWIG_As_double(obj1); | |
32229 | if (PyErr_Occurred()) SWIG_fail; | |
32230 | arg3 = (double)SWIG_As_double(obj2); | |
32231 | if (PyErr_Occurred()) SWIG_fail; | |
32232 | if (obj3) { | |
32233 | arg4 = (int)SWIG_As_int(obj3); | |
32234 | if (PyErr_Occurred()) SWIG_fail; | |
32235 | } | |
32236 | { | |
32237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32238 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4); | |
32239 | ||
32240 | wxPyEndAllowThreads(__tstate); | |
32241 | if (PyErr_Occurred()) SWIG_fail; | |
32242 | } | |
32243 | Py_INCREF(Py_None); resultobj = Py_None; | |
32244 | return resultobj; | |
32245 | fail: | |
32246 | return NULL; | |
32247 | } | |
32248 | ||
32249 | ||
32250 | static PyObject *_wrap_PyShapeCanvas_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
32251 | PyObject *resultobj; | |
32252 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32253 | double arg2 ; | |
32254 | double arg3 ; | |
32255 | int arg4 = (int) 0 ; | |
32256 | PyObject * obj0 = 0 ; | |
32257 | PyObject * obj1 = 0 ; | |
32258 | PyObject * obj2 = 0 ; | |
32259 | PyObject * obj3 = 0 ; | |
32260 | char *kwnames[] = { | |
32261 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32262 | }; | |
32263 | ||
32264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
32265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32267 | arg2 = (double)SWIG_As_double(obj1); | |
32268 | if (PyErr_Occurred()) SWIG_fail; | |
32269 | arg3 = (double)SWIG_As_double(obj2); | |
32270 | if (PyErr_Occurred()) SWIG_fail; | |
32271 | if (obj3) { | |
32272 | arg4 = (int)SWIG_As_int(obj3); | |
32273 | if (PyErr_Occurred()) SWIG_fail; | |
32274 | } | |
32275 | { | |
32276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32277 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4); | |
32278 | ||
32279 | wxPyEndAllowThreads(__tstate); | |
32280 | if (PyErr_Occurred()) SWIG_fail; | |
32281 | } | |
32282 | Py_INCREF(Py_None); resultobj = Py_None; | |
32283 | return resultobj; | |
32284 | fail: | |
32285 | return NULL; | |
32286 | } | |
32287 | ||
32288 | ||
32289 | static PyObject *_wrap_PyShapeCanvas_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
32290 | PyObject *resultobj; | |
32291 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32292 | bool arg2 ; | |
32293 | double arg3 ; | |
32294 | double arg4 ; | |
32295 | int arg5 = (int) 0 ; | |
32296 | PyObject * obj0 = 0 ; | |
32297 | PyObject * obj1 = 0 ; | |
32298 | PyObject * obj2 = 0 ; | |
32299 | PyObject * obj3 = 0 ; | |
32300 | PyObject * obj4 = 0 ; | |
32301 | char *kwnames[] = { | |
32302 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32303 | }; | |
32304 | ||
32305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyShapeCanvas_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
32306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32308 | arg2 = (bool)SWIG_As_bool(obj1); | |
32309 | if (PyErr_Occurred()) SWIG_fail; | |
32310 | arg3 = (double)SWIG_As_double(obj2); | |
32311 | if (PyErr_Occurred()) SWIG_fail; | |
32312 | arg4 = (double)SWIG_As_double(obj3); | |
32313 | if (PyErr_Occurred()) SWIG_fail; | |
32314 | if (obj4) { | |
32315 | arg5 = (int)SWIG_As_int(obj4); | |
32316 | if (PyErr_Occurred()) SWIG_fail; | |
32317 | } | |
32318 | { | |
32319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32320 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5); | |
32321 | ||
32322 | wxPyEndAllowThreads(__tstate); | |
32323 | if (PyErr_Occurred()) SWIG_fail; | |
32324 | } | |
32325 | Py_INCREF(Py_None); resultobj = Py_None; | |
32326 | return resultobj; | |
32327 | fail: | |
32328 | return NULL; | |
32329 | } | |
32330 | ||
32331 | ||
32332 | static PyObject *_wrap_PyShapeCanvas_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
32333 | PyObject *resultobj; | |
32334 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32335 | bool arg2 ; | |
32336 | double arg3 ; | |
32337 | double arg4 ; | |
32338 | int arg5 = (int) 0 ; | |
32339 | PyObject * obj0 = 0 ; | |
32340 | PyObject * obj1 = 0 ; | |
32341 | PyObject * obj2 = 0 ; | |
32342 | PyObject * obj3 = 0 ; | |
32343 | PyObject * obj4 = 0 ; | |
32344 | char *kwnames[] = { | |
32345 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32346 | }; | |
32347 | ||
32348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyShapeCanvas_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
32349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32351 | arg2 = (bool)SWIG_As_bool(obj1); | |
32352 | if (PyErr_Occurred()) SWIG_fail; | |
32353 | arg3 = (double)SWIG_As_double(obj2); | |
32354 | if (PyErr_Occurred()) SWIG_fail; | |
32355 | arg4 = (double)SWIG_As_double(obj3); | |
32356 | if (PyErr_Occurred()) SWIG_fail; | |
32357 | if (obj4) { | |
32358 | arg5 = (int)SWIG_As_int(obj4); | |
32359 | if (PyErr_Occurred()) SWIG_fail; | |
32360 | } | |
32361 | { | |
32362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32363 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5); | |
32364 | ||
32365 | wxPyEndAllowThreads(__tstate); | |
32366 | if (PyErr_Occurred()) SWIG_fail; | |
32367 | } | |
32368 | Py_INCREF(Py_None); resultobj = Py_None; | |
32369 | return resultobj; | |
32370 | fail: | |
32371 | return NULL; | |
32372 | } | |
32373 | ||
32374 | ||
32375 | static PyObject *_wrap_PyShapeCanvas_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
32376 | PyObject *resultobj; | |
32377 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32378 | double arg2 ; | |
32379 | double arg3 ; | |
32380 | int arg4 = (int) 0 ; | |
32381 | PyObject * obj0 = 0 ; | |
32382 | PyObject * obj1 = 0 ; | |
32383 | PyObject * obj2 = 0 ; | |
32384 | PyObject * obj3 = 0 ; | |
32385 | char *kwnames[] = { | |
32386 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32387 | }; | |
32388 | ||
32389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
32390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32392 | arg2 = (double)SWIG_As_double(obj1); | |
32393 | if (PyErr_Occurred()) SWIG_fail; | |
32394 | arg3 = (double)SWIG_As_double(obj2); | |
32395 | if (PyErr_Occurred()) SWIG_fail; | |
32396 | if (obj3) { | |
32397 | arg4 = (int)SWIG_As_int(obj3); | |
32398 | if (PyErr_Occurred()) SWIG_fail; | |
32399 | } | |
32400 | { | |
32401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32402 | (arg1)->base_OnLeftClick(arg2,arg3,arg4); | |
32403 | ||
32404 | wxPyEndAllowThreads(__tstate); | |
32405 | if (PyErr_Occurred()) SWIG_fail; | |
32406 | } | |
32407 | Py_INCREF(Py_None); resultobj = Py_None; | |
32408 | return resultobj; | |
32409 | fail: | |
32410 | return NULL; | |
32411 | } | |
32412 | ||
32413 | ||
32414 | static PyObject *_wrap_PyShapeCanvas_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { | |
32415 | PyObject *resultobj; | |
32416 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32417 | double arg2 ; | |
32418 | double arg3 ; | |
32419 | int arg4 = (int) 0 ; | |
32420 | PyObject * obj0 = 0 ; | |
32421 | PyObject * obj1 = 0 ; | |
32422 | PyObject * obj2 = 0 ; | |
32423 | PyObject * obj3 = 0 ; | |
32424 | char *kwnames[] = { | |
32425 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32426 | }; | |
32427 | ||
32428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
32429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32431 | arg2 = (double)SWIG_As_double(obj1); | |
32432 | if (PyErr_Occurred()) SWIG_fail; | |
32433 | arg3 = (double)SWIG_As_double(obj2); | |
32434 | if (PyErr_Occurred()) SWIG_fail; | |
32435 | if (obj3) { | |
32436 | arg4 = (int)SWIG_As_int(obj3); | |
32437 | if (PyErr_Occurred()) SWIG_fail; | |
32438 | } | |
32439 | { | |
32440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32441 | (arg1)->base_OnRightClick(arg2,arg3,arg4); | |
32442 | ||
32443 | wxPyEndAllowThreads(__tstate); | |
32444 | if (PyErr_Occurred()) SWIG_fail; | |
32445 | } | |
32446 | Py_INCREF(Py_None); resultobj = Py_None; | |
32447 | return resultobj; | |
32448 | fail: | |
32449 | return NULL; | |
32450 | } | |
32451 | ||
32452 | ||
32453 | static PyObject *_wrap_PyShapeCanvas_Redraw(PyObject *, PyObject *args, PyObject *kwargs) { | |
32454 | PyObject *resultobj; | |
32455 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32456 | wxDC *arg2 = 0 ; | |
32457 | PyObject * obj0 = 0 ; | |
32458 | PyObject * obj1 = 0 ; | |
32459 | char *kwnames[] = { | |
32460 | (char *) "self",(char *) "dc", NULL | |
32461 | }; | |
32462 | ||
32463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_Redraw",kwnames,&obj0,&obj1)) goto fail; | |
32464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
32467 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32468 | SWIG_fail; | |
32469 | if (arg2 == NULL) { | |
32470 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32471 | SWIG_fail; | |
32472 | } | |
32473 | { | |
32474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32475 | (arg1)->Redraw(*arg2); | |
32476 | ||
32477 | wxPyEndAllowThreads(__tstate); | |
32478 | if (PyErr_Occurred()) SWIG_fail; | |
32479 | } | |
32480 | Py_INCREF(Py_None); resultobj = Py_None; | |
32481 | return resultobj; | |
32482 | fail: | |
32483 | return NULL; | |
32484 | } | |
32485 | ||
32486 | ||
32487 | static PyObject *_wrap_PyShapeCanvas_RemoveShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
32488 | PyObject *resultobj; | |
32489 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32490 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
32491 | PyObject * obj0 = 0 ; | |
32492 | PyObject * obj1 = 0 ; | |
32493 | char *kwnames[] = { | |
32494 | (char *) "self",(char *) "shape", NULL | |
32495 | }; | |
32496 | ||
32497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_RemoveShape",kwnames,&obj0,&obj1)) goto fail; | |
32498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32500 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
32501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32502 | { | |
32503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32504 | (arg1)->RemoveShape(arg2); | |
32505 | ||
32506 | wxPyEndAllowThreads(__tstate); | |
32507 | if (PyErr_Occurred()) SWIG_fail; | |
32508 | } | |
32509 | Py_INCREF(Py_None); resultobj = Py_None; | |
32510 | return resultobj; | |
32511 | fail: | |
32512 | return NULL; | |
32513 | } | |
32514 | ||
32515 | ||
32516 | static PyObject *_wrap_PyShapeCanvas_SetDiagram(PyObject *, PyObject *args, PyObject *kwargs) { | |
32517 | PyObject *resultobj; | |
32518 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32519 | wxDiagram *arg2 = (wxDiagram *) 0 ; | |
32520 | PyObject * obj0 = 0 ; | |
32521 | PyObject * obj1 = 0 ; | |
32522 | char *kwnames[] = { | |
32523 | (char *) "self",(char *) "diagram", NULL | |
32524 | }; | |
32525 | ||
32526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_SetDiagram",kwnames,&obj0,&obj1)) goto fail; | |
32527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32529 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDiagram, | |
32530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32531 | { | |
32532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32533 | (arg1)->SetDiagram(arg2); | |
32534 | ||
32535 | wxPyEndAllowThreads(__tstate); | |
32536 | if (PyErr_Occurred()) SWIG_fail; | |
32537 | } | |
32538 | Py_INCREF(Py_None); resultobj = Py_None; | |
32539 | return resultobj; | |
32540 | fail: | |
32541 | return NULL; | |
32542 | } | |
32543 | ||
32544 | ||
32545 | static PyObject *_wrap_PyShapeCanvas_Snap(PyObject *, PyObject *args, PyObject *kwargs) { | |
32546 | PyObject *resultobj; | |
32547 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32548 | double *arg2 = (double *) 0 ; | |
32549 | double *arg3 = (double *) 0 ; | |
32550 | double temp2 ; | |
32551 | int res2 = 0 ; | |
32552 | double temp3 ; | |
32553 | int res3 = 0 ; | |
32554 | PyObject * obj0 = 0 ; | |
32555 | PyObject * obj1 = 0 ; | |
32556 | PyObject * obj2 = 0 ; | |
32557 | char *kwnames[] = { | |
32558 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
32559 | }; | |
32560 | ||
32561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeCanvas_Snap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, | |
32563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32564 | { | |
32565 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_double,0) != -1)) { | |
32566 | temp2 = SWIG_As_double(obj1); | |
32567 | if (PyErr_Occurred()) SWIG_fail; | |
32568 | arg2 = &temp2; | |
32569 | res2 = SWIG_NEWOBJ; | |
32570 | } | |
32571 | } | |
32572 | { | |
32573 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_double,0) != -1)) { | |
32574 | temp3 = SWIG_As_double(obj2); | |
32575 | if (PyErr_Occurred()) SWIG_fail; | |
32576 | arg3 = &temp3; | |
32577 | res3 = SWIG_NEWOBJ; | |
32578 | } | |
32579 | } | |
32580 | { | |
32581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32582 | (arg1)->Snap(arg2,arg3); | |
32583 | ||
32584 | wxPyEndAllowThreads(__tstate); | |
32585 | if (PyErr_Occurred()) SWIG_fail; | |
32586 | } | |
32587 | Py_INCREF(Py_None); resultobj = Py_None; | |
32588 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
32589 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
32590 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32591 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
32592 | return resultobj; | |
32593 | fail: | |
32594 | return NULL; | |
32595 | } | |
32596 | ||
32597 | ||
32598 | static PyObject * PyShapeCanvas_swigregister(PyObject *, PyObject *args) { | |
32599 | PyObject *obj; | |
32600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32601 | SWIG_TypeClientData(SWIGTYPE_p_wxPyShapeCanvas, obj); | |
32602 | Py_INCREF(obj); | |
32603 | return Py_BuildValue((char *)""); | |
32604 | } | |
32605 | static PyObject *_wrap_OGLInitialize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32606 | PyObject *resultobj; | |
32607 | char *kwnames[] = { | |
32608 | NULL | |
32609 | }; | |
32610 | ||
32611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":OGLInitialize",kwnames)) goto fail; | |
32612 | { | |
32613 | if (!wxPyCheckForApp()) SWIG_fail; | |
32614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32615 | wxOGLInitialize(); | |
32616 | ||
32617 | wxPyEndAllowThreads(__tstate); | |
32618 | if (PyErr_Occurred()) SWIG_fail; | |
32619 | } | |
32620 | Py_INCREF(Py_None); resultobj = Py_None; | |
32621 | return resultobj; | |
32622 | fail: | |
32623 | return NULL; | |
32624 | } | |
32625 | ||
32626 | ||
32627 | static PyObject *_wrap_OGLCleanUp(PyObject *, PyObject *args, PyObject *kwargs) { | |
32628 | PyObject *resultobj; | |
32629 | char *kwnames[] = { | |
32630 | NULL | |
32631 | }; | |
32632 | ||
32633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":OGLCleanUp",kwnames)) goto fail; | |
32634 | { | |
32635 | if (!wxPyCheckForApp()) SWIG_fail; | |
32636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32637 | wxOGLCleanUp(); | |
32638 | ||
32639 | wxPyEndAllowThreads(__tstate); | |
32640 | if (PyErr_Occurred()) SWIG_fail; | |
32641 | } | |
32642 | Py_INCREF(Py_None); resultobj = Py_None; | |
32643 | return resultobj; | |
32644 | fail: | |
32645 | return NULL; | |
32646 | } | |
32647 | ||
32648 | ||
32649 | static PyMethodDef SwigMethods[] = { | |
32650 | { (char *)"new_ShapeRegion", (PyCFunction) _wrap_new_ShapeRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32651 | { (char *)"ShapeRegion_SetText", (PyCFunction) _wrap_ShapeRegion_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32652 | { (char *)"ShapeRegion_SetFont", (PyCFunction) _wrap_ShapeRegion_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32653 | { (char *)"ShapeRegion_SetMinSize", (PyCFunction) _wrap_ShapeRegion_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32654 | { (char *)"ShapeRegion_SetSize", (PyCFunction) _wrap_ShapeRegion_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32655 | { (char *)"ShapeRegion_SetPosition", (PyCFunction) _wrap_ShapeRegion_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32656 | { (char *)"ShapeRegion_SetProportions", (PyCFunction) _wrap_ShapeRegion_SetProportions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32657 | { (char *)"ShapeRegion_SetFormatMode", (PyCFunction) _wrap_ShapeRegion_SetFormatMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32658 | { (char *)"ShapeRegion_SetName", (PyCFunction) _wrap_ShapeRegion_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32659 | { (char *)"ShapeRegion_SetColour", (PyCFunction) _wrap_ShapeRegion_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32660 | { (char *)"ShapeRegion_GetText", (PyCFunction) _wrap_ShapeRegion_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32661 | { (char *)"ShapeRegion_GetFont", (PyCFunction) _wrap_ShapeRegion_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32662 | { (char *)"ShapeRegion_GetMinSize", (PyCFunction) _wrap_ShapeRegion_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32663 | { (char *)"ShapeRegion_GetProportion", (PyCFunction) _wrap_ShapeRegion_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32664 | { (char *)"ShapeRegion_GetSize", (PyCFunction) _wrap_ShapeRegion_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32665 | { (char *)"ShapeRegion_GetPosition", (PyCFunction) _wrap_ShapeRegion_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32666 | { (char *)"ShapeRegion_GetFormatMode", (PyCFunction) _wrap_ShapeRegion_GetFormatMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32667 | { (char *)"ShapeRegion_GetName", (PyCFunction) _wrap_ShapeRegion_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32668 | { (char *)"ShapeRegion_GetColour", (PyCFunction) _wrap_ShapeRegion_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32669 | { (char *)"ShapeRegion_GetActualColourObject", (PyCFunction) _wrap_ShapeRegion_GetActualColourObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32670 | { (char *)"ShapeRegion_GetFormattedText", (PyCFunction) _wrap_ShapeRegion_GetFormattedText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32671 | { (char *)"ShapeRegion_GetPenColour", (PyCFunction) _wrap_ShapeRegion_GetPenColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32672 | { (char *)"ShapeRegion_GetPenStyle", (PyCFunction) _wrap_ShapeRegion_GetPenStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32673 | { (char *)"ShapeRegion_SetPenStyle", (PyCFunction) _wrap_ShapeRegion_SetPenStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32674 | { (char *)"ShapeRegion_SetPenColour", (PyCFunction) _wrap_ShapeRegion_SetPenColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32675 | { (char *)"ShapeRegion_GetActualPen", (PyCFunction) _wrap_ShapeRegion_GetActualPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32676 | { (char *)"ShapeRegion_GetWidth", (PyCFunction) _wrap_ShapeRegion_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32677 | { (char *)"ShapeRegion_GetHeight", (PyCFunction) _wrap_ShapeRegion_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32678 | { (char *)"ShapeRegion_ClearText", (PyCFunction) _wrap_ShapeRegion_ClearText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32679 | { (char *)"ShapeRegion_swigregister", ShapeRegion_swigregister, METH_VARARGS, NULL }, | |
32680 | { (char *)"new_AttachmentPoint", (PyCFunction) _wrap_new_AttachmentPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32681 | { (char *)"AttachmentPoint_m_id_set", (PyCFunction) _wrap_AttachmentPoint_m_id_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32682 | { (char *)"AttachmentPoint_m_id_get", (PyCFunction) _wrap_AttachmentPoint_m_id_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32683 | { (char *)"AttachmentPoint_m_x_set", (PyCFunction) _wrap_AttachmentPoint_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32684 | { (char *)"AttachmentPoint_m_x_get", (PyCFunction) _wrap_AttachmentPoint_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32685 | { (char *)"AttachmentPoint_m_y_set", (PyCFunction) _wrap_AttachmentPoint_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32686 | { (char *)"AttachmentPoint_m_y_get", (PyCFunction) _wrap_AttachmentPoint_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32687 | { (char *)"AttachmentPoint_swigregister", AttachmentPoint_swigregister, METH_VARARGS, NULL }, | |
32688 | { (char *)"new_PyShapeEvtHandler", (PyCFunction) _wrap_new_PyShapeEvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32689 | { (char *)"PyShapeEvtHandler__setCallbackInfo", (PyCFunction) _wrap_PyShapeEvtHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32690 | { (char *)"PyShapeEvtHandler__setOORInfo", (PyCFunction) _wrap_PyShapeEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32691 | { (char *)"PyShapeEvtHandler_SetShape", (PyCFunction) _wrap_PyShapeEvtHandler_SetShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32692 | { (char *)"PyShapeEvtHandler_GetShape", (PyCFunction) _wrap_PyShapeEvtHandler_GetShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32693 | { (char *)"PyShapeEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_PyShapeEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32694 | { (char *)"PyShapeEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_PyShapeEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32695 | { (char *)"PyShapeEvtHandler_CreateNewCopy", (PyCFunction) _wrap_PyShapeEvtHandler_CreateNewCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32696 | { (char *)"PyShapeEvtHandler_base_OnDelete", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32697 | { (char *)"PyShapeEvtHandler_base_OnDraw", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32698 | { (char *)"PyShapeEvtHandler_base_OnDrawContents", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32699 | { (char *)"PyShapeEvtHandler_base_OnDrawBranches", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32700 | { (char *)"PyShapeEvtHandler_base_OnMoveLinks", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32701 | { (char *)"PyShapeEvtHandler_base_OnErase", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32702 | { (char *)"PyShapeEvtHandler_base_OnEraseContents", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32703 | { (char *)"PyShapeEvtHandler_base_OnHighlight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32704 | { (char *)"PyShapeEvtHandler_base_OnLeftClick", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32705 | { (char *)"PyShapeEvtHandler_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32706 | { (char *)"PyShapeEvtHandler_base_OnRightClick", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32707 | { (char *)"PyShapeEvtHandler_base_OnSize", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32708 | { (char *)"PyShapeEvtHandler_base_OnMovePre", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32709 | { (char *)"PyShapeEvtHandler_base_OnMovePost", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32710 | { (char *)"PyShapeEvtHandler_base_OnDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32711 | { (char *)"PyShapeEvtHandler_base_OnBeginDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32712 | { (char *)"PyShapeEvtHandler_base_OnEndDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32713 | { (char *)"PyShapeEvtHandler_base_OnDragRight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32714 | { (char *)"PyShapeEvtHandler_base_OnBeginDragRight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32715 | { (char *)"PyShapeEvtHandler_base_OnEndDragRight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32716 | { (char *)"PyShapeEvtHandler_base_OnDrawOutline", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32717 | { (char *)"PyShapeEvtHandler_base_OnDrawControlPoints", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32718 | { (char *)"PyShapeEvtHandler_base_OnEraseControlPoints", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32719 | { (char *)"PyShapeEvtHandler_base_OnMoveLink", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32720 | { (char *)"PyShapeEvtHandler_base_OnSizingDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32721 | { (char *)"PyShapeEvtHandler_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32722 | { (char *)"PyShapeEvtHandler_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32723 | { (char *)"PyShapeEvtHandler_base_OnBeginSize", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32724 | { (char *)"PyShapeEvtHandler_base_OnEndSize", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32725 | { (char *)"PyShapeEvtHandler_swigregister", PyShapeEvtHandler_swigregister, METH_VARARGS, NULL }, | |
32726 | { (char *)"new_PyShape", (PyCFunction) _wrap_new_PyShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32727 | { (char *)"PyShape__setCallbackInfo", (PyCFunction) _wrap_PyShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32728 | { (char *)"PyShape_GetBoundingBoxMax", (PyCFunction) _wrap_PyShape_GetBoundingBoxMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32729 | { (char *)"PyShape_GetBoundingBoxMin", (PyCFunction) _wrap_PyShape_GetBoundingBoxMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32730 | { (char *)"PyShape_GetPerimeterPoint", (PyCFunction) _wrap_PyShape_GetPerimeterPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32731 | { (char *)"PyShape_GetCanvas", (PyCFunction) _wrap_PyShape_GetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32732 | { (char *)"PyShape_SetCanvas", (PyCFunction) _wrap_PyShape_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32733 | { (char *)"PyShape_AddToCanvas", (PyCFunction) _wrap_PyShape_AddToCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32734 | { (char *)"PyShape_InsertInCanvas", (PyCFunction) _wrap_PyShape_InsertInCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32735 | { (char *)"PyShape_RemoveFromCanvas", (PyCFunction) _wrap_PyShape_RemoveFromCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32736 | { (char *)"PyShape_GetX", (PyCFunction) _wrap_PyShape_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32737 | { (char *)"PyShape_GetY", (PyCFunction) _wrap_PyShape_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32738 | { (char *)"PyShape_SetX", (PyCFunction) _wrap_PyShape_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32739 | { (char *)"PyShape_SetY", (PyCFunction) _wrap_PyShape_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32740 | { (char *)"PyShape_GetParent", (PyCFunction) _wrap_PyShape_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32741 | { (char *)"PyShape_SetParent", (PyCFunction) _wrap_PyShape_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32742 | { (char *)"PyShape_GetTopAncestor", (PyCFunction) _wrap_PyShape_GetTopAncestor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32743 | { (char *)"PyShape_GetChildren", (PyCFunction) _wrap_PyShape_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32744 | { (char *)"PyShape_Unlink", (PyCFunction) _wrap_PyShape_Unlink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32745 | { (char *)"PyShape_SetDrawHandles", (PyCFunction) _wrap_PyShape_SetDrawHandles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32746 | { (char *)"PyShape_GetDrawHandles", (PyCFunction) _wrap_PyShape_GetDrawHandles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32747 | { (char *)"PyShape_MakeControlPoints", (PyCFunction) _wrap_PyShape_MakeControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32748 | { (char *)"PyShape_DeleteControlPoints", (PyCFunction) _wrap_PyShape_DeleteControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32749 | { (char *)"PyShape_ResetControlPoints", (PyCFunction) _wrap_PyShape_ResetControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32750 | { (char *)"PyShape_GetEventHandler", (PyCFunction) _wrap_PyShape_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32751 | { (char *)"PyShape_SetEventHandler", (PyCFunction) _wrap_PyShape_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32752 | { (char *)"PyShape_MakeMandatoryControlPoints", (PyCFunction) _wrap_PyShape_MakeMandatoryControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32753 | { (char *)"PyShape_ResetMandatoryControlPoints", (PyCFunction) _wrap_PyShape_ResetMandatoryControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32754 | { (char *)"PyShape_Recompute", (PyCFunction) _wrap_PyShape_Recompute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32755 | { (char *)"PyShape_CalculateSize", (PyCFunction) _wrap_PyShape_CalculateSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32756 | { (char *)"PyShape_Select", (PyCFunction) _wrap_PyShape_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32757 | { (char *)"PyShape_SetHighlight", (PyCFunction) _wrap_PyShape_SetHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32758 | { (char *)"PyShape_IsHighlighted", (PyCFunction) _wrap_PyShape_IsHighlighted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32759 | { (char *)"PyShape_Selected", (PyCFunction) _wrap_PyShape_Selected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32760 | { (char *)"PyShape_AncestorSelected", (PyCFunction) _wrap_PyShape_AncestorSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32761 | { (char *)"PyShape_SetSensitivityFilter", (PyCFunction) _wrap_PyShape_SetSensitivityFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32762 | { (char *)"PyShape_GetSensitivityFilter", (PyCFunction) _wrap_PyShape_GetSensitivityFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32763 | { (char *)"PyShape_SetDraggable", (PyCFunction) _wrap_PyShape_SetDraggable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32764 | { (char *)"PyShape_SetFixedSize", (PyCFunction) _wrap_PyShape_SetFixedSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32765 | { (char *)"PyShape_GetFixedSize", (PyCFunction) _wrap_PyShape_GetFixedSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32766 | { (char *)"PyShape_GetFixedWidth", (PyCFunction) _wrap_PyShape_GetFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32767 | { (char *)"PyShape_GetFixedHeight", (PyCFunction) _wrap_PyShape_GetFixedHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32768 | { (char *)"PyShape_SetSpaceAttachments", (PyCFunction) _wrap_PyShape_SetSpaceAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32769 | { (char *)"PyShape_GetSpaceAttachments", (PyCFunction) _wrap_PyShape_GetSpaceAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32770 | { (char *)"PyShape_SetShadowMode", (PyCFunction) _wrap_PyShape_SetShadowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32771 | { (char *)"PyShape_GetShadowMode", (PyCFunction) _wrap_PyShape_GetShadowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32772 | { (char *)"PyShape_HitTest", (PyCFunction) _wrap_PyShape_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32773 | { (char *)"PyShape_SetCentreResize", (PyCFunction) _wrap_PyShape_SetCentreResize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32774 | { (char *)"PyShape_GetCentreResize", (PyCFunction) _wrap_PyShape_GetCentreResize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32775 | { (char *)"PyShape_SetMaintainAspectRatio", (PyCFunction) _wrap_PyShape_SetMaintainAspectRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32776 | { (char *)"PyShape_GetMaintainAspectRatio", (PyCFunction) _wrap_PyShape_GetMaintainAspectRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32777 | { (char *)"PyShape_GetLines", (PyCFunction) _wrap_PyShape_GetLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32778 | { (char *)"PyShape_SetDisableLabel", (PyCFunction) _wrap_PyShape_SetDisableLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32779 | { (char *)"PyShape_GetDisableLabel", (PyCFunction) _wrap_PyShape_GetDisableLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32780 | { (char *)"PyShape_SetAttachmentMode", (PyCFunction) _wrap_PyShape_SetAttachmentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32781 | { (char *)"PyShape_GetAttachmentMode", (PyCFunction) _wrap_PyShape_GetAttachmentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32782 | { (char *)"PyShape_SetId", (PyCFunction) _wrap_PyShape_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32783 | { (char *)"PyShape_GetId", (PyCFunction) _wrap_PyShape_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32784 | { (char *)"PyShape_SetPen", (PyCFunction) _wrap_PyShape_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32785 | { (char *)"PyShape_SetBrush", (PyCFunction) _wrap_PyShape_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32786 | { (char *)"PyShape_Show", (PyCFunction) _wrap_PyShape_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32787 | { (char *)"PyShape_IsShown", (PyCFunction) _wrap_PyShape_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32788 | { (char *)"PyShape_Move", (PyCFunction) _wrap_PyShape_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32789 | { (char *)"PyShape_Erase", (PyCFunction) _wrap_PyShape_Erase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32790 | { (char *)"PyShape_EraseContents", (PyCFunction) _wrap_PyShape_EraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32791 | { (char *)"PyShape_Draw", (PyCFunction) _wrap_PyShape_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32792 | { (char *)"PyShape_Flash", (PyCFunction) _wrap_PyShape_Flash, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32793 | { (char *)"PyShape_MoveLinks", (PyCFunction) _wrap_PyShape_MoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32794 | { (char *)"PyShape_DrawContents", (PyCFunction) _wrap_PyShape_DrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32795 | { (char *)"PyShape_SetSize", (PyCFunction) _wrap_PyShape_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32796 | { (char *)"PyShape_SetAttachmentSize", (PyCFunction) _wrap_PyShape_SetAttachmentSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32797 | { (char *)"PyShape_Attach", (PyCFunction) _wrap_PyShape_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32798 | { (char *)"PyShape_Detach", (PyCFunction) _wrap_PyShape_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32799 | { (char *)"PyShape_Constrain", (PyCFunction) _wrap_PyShape_Constrain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32800 | { (char *)"PyShape_AddLine", (PyCFunction) _wrap_PyShape_AddLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32801 | { (char *)"PyShape_GetLinePosition", (PyCFunction) _wrap_PyShape_GetLinePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32802 | { (char *)"PyShape_AddText", (PyCFunction) _wrap_PyShape_AddText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32803 | { (char *)"PyShape_GetPen", (PyCFunction) _wrap_PyShape_GetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32804 | { (char *)"PyShape_GetBrush", (PyCFunction) _wrap_PyShape_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32805 | { (char *)"PyShape_SetDefaultRegionSize", (PyCFunction) _wrap_PyShape_SetDefaultRegionSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32806 | { (char *)"PyShape_FormatText", (PyCFunction) _wrap_PyShape_FormatText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32807 | { (char *)"PyShape_SetFormatMode", (PyCFunction) _wrap_PyShape_SetFormatMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32808 | { (char *)"PyShape_GetFormatMode", (PyCFunction) _wrap_PyShape_GetFormatMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32809 | { (char *)"PyShape_SetFont", (PyCFunction) _wrap_PyShape_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32810 | { (char *)"PyShape_GetFont", (PyCFunction) _wrap_PyShape_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32811 | { (char *)"PyShape_SetTextColour", (PyCFunction) _wrap_PyShape_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32812 | { (char *)"PyShape_GetTextColour", (PyCFunction) _wrap_PyShape_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32813 | { (char *)"PyShape_GetNumberOfTextRegions", (PyCFunction) _wrap_PyShape_GetNumberOfTextRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32814 | { (char *)"PyShape_SetRegionName", (PyCFunction) _wrap_PyShape_SetRegionName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32815 | { (char *)"PyShape_GetRegionName", (PyCFunction) _wrap_PyShape_GetRegionName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32816 | { (char *)"PyShape_GetRegionId", (PyCFunction) _wrap_PyShape_GetRegionId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32817 | { (char *)"PyShape_NameRegions", (PyCFunction) _wrap_PyShape_NameRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32818 | { (char *)"PyShape_GetRegions", (PyCFunction) _wrap_PyShape_GetRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32819 | { (char *)"PyShape_AddRegion", (PyCFunction) _wrap_PyShape_AddRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32820 | { (char *)"PyShape_ClearRegions", (PyCFunction) _wrap_PyShape_ClearRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32821 | { (char *)"PyShape_AssignNewIds", (PyCFunction) _wrap_PyShape_AssignNewIds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32822 | { (char *)"PyShape_FindRegion", (PyCFunction) _wrap_PyShape_FindRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32823 | { (char *)"PyShape_FindRegionNames", (PyCFunction) _wrap_PyShape_FindRegionNames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32824 | { (char *)"PyShape_ClearText", (PyCFunction) _wrap_PyShape_ClearText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32825 | { (char *)"PyShape_RemoveLine", (PyCFunction) _wrap_PyShape_RemoveLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32826 | { (char *)"PyShape_GetAttachmentPosition", (PyCFunction) _wrap_PyShape_GetAttachmentPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32827 | { (char *)"PyShape_GetNumberOfAttachments", (PyCFunction) _wrap_PyShape_GetNumberOfAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32828 | { (char *)"PyShape_AttachmentIsValid", (PyCFunction) _wrap_PyShape_AttachmentIsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32829 | { (char *)"PyShape_GetAttachments", (PyCFunction) _wrap_PyShape_GetAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32830 | { (char *)"PyShape_GetAttachmentPositionEdge", (PyCFunction) _wrap_PyShape_GetAttachmentPositionEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32831 | { (char *)"PyShape_CalcSimpleAttachment", (PyCFunction) _wrap_PyShape_CalcSimpleAttachment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32832 | { (char *)"PyShape_AttachmentSortTest", (PyCFunction) _wrap_PyShape_AttachmentSortTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32833 | { (char *)"PyShape_EraseLinks", (PyCFunction) _wrap_PyShape_EraseLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32834 | { (char *)"PyShape_DrawLinks", (PyCFunction) _wrap_PyShape_DrawLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32835 | { (char *)"PyShape_MoveLineToNewAttachment", (PyCFunction) _wrap_PyShape_MoveLineToNewAttachment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32836 | { (char *)"PyShape_ApplyAttachmentOrdering", (PyCFunction) _wrap_PyShape_ApplyAttachmentOrdering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32837 | { (char *)"PyShape_GetBranchingAttachmentRoot", (PyCFunction) _wrap_PyShape_GetBranchingAttachmentRoot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32838 | { (char *)"PyShape_GetBranchingAttachmentInfo", (PyCFunction) _wrap_PyShape_GetBranchingAttachmentInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32839 | { (char *)"PyShape_GetBranchingAttachmentPoint", (PyCFunction) _wrap_PyShape_GetBranchingAttachmentPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32840 | { (char *)"PyShape_GetAttachmentLineCount", (PyCFunction) _wrap_PyShape_GetAttachmentLineCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32841 | { (char *)"PyShape_SetBranchNeckLength", (PyCFunction) _wrap_PyShape_SetBranchNeckLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32842 | { (char *)"PyShape_GetBranchNeckLength", (PyCFunction) _wrap_PyShape_GetBranchNeckLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32843 | { (char *)"PyShape_SetBranchStemLength", (PyCFunction) _wrap_PyShape_SetBranchStemLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32844 | { (char *)"PyShape_GetBranchStemLength", (PyCFunction) _wrap_PyShape_GetBranchStemLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32845 | { (char *)"PyShape_SetBranchSpacing", (PyCFunction) _wrap_PyShape_SetBranchSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32846 | { (char *)"PyShape_GetBranchSpacing", (PyCFunction) _wrap_PyShape_GetBranchSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32847 | { (char *)"PyShape_SetBranchStyle", (PyCFunction) _wrap_PyShape_SetBranchStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32848 | { (char *)"PyShape_GetBranchStyle", (PyCFunction) _wrap_PyShape_GetBranchStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32849 | { (char *)"PyShape_PhysicalToLogicalAttachment", (PyCFunction) _wrap_PyShape_PhysicalToLogicalAttachment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32850 | { (char *)"PyShape_LogicalToPhysicalAttachment", (PyCFunction) _wrap_PyShape_LogicalToPhysicalAttachment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32851 | { (char *)"PyShape_Draggable", (PyCFunction) _wrap_PyShape_Draggable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32852 | { (char *)"PyShape_HasDescendant", (PyCFunction) _wrap_PyShape_HasDescendant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32853 | { (char *)"PyShape_CreateNewCopy", (PyCFunction) _wrap_PyShape_CreateNewCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32854 | { (char *)"PyShape_Copy", (PyCFunction) _wrap_PyShape_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32855 | { (char *)"PyShape_CopyWithHandler", (PyCFunction) _wrap_PyShape_CopyWithHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32856 | { (char *)"PyShape_Rotate", (PyCFunction) _wrap_PyShape_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32857 | { (char *)"PyShape_GetRotation", (PyCFunction) _wrap_PyShape_GetRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32858 | { (char *)"PyShape_SetRotation", (PyCFunction) _wrap_PyShape_SetRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32859 | { (char *)"PyShape_ClearAttachments", (PyCFunction) _wrap_PyShape_ClearAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32860 | { (char *)"PyShape_Recentre", (PyCFunction) _wrap_PyShape_Recentre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32861 | { (char *)"PyShape_ClearPointList", (PyCFunction) _wrap_PyShape_ClearPointList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32862 | { (char *)"PyShape_GetBackgroundPen", (PyCFunction) _wrap_PyShape_GetBackgroundPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32863 | { (char *)"PyShape_GetBackgroundBrush", (PyCFunction) _wrap_PyShape_GetBackgroundBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32864 | { (char *)"PyShape_base_OnDelete", (PyCFunction) _wrap_PyShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32865 | { (char *)"PyShape_base_OnDraw", (PyCFunction) _wrap_PyShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32866 | { (char *)"PyShape_base_OnDrawContents", (PyCFunction) _wrap_PyShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32867 | { (char *)"PyShape_base_OnDrawBranches", (PyCFunction) _wrap_PyShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32868 | { (char *)"PyShape_base_OnMoveLinks", (PyCFunction) _wrap_PyShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32869 | { (char *)"PyShape_base_OnErase", (PyCFunction) _wrap_PyShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32870 | { (char *)"PyShape_base_OnEraseContents", (PyCFunction) _wrap_PyShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32871 | { (char *)"PyShape_base_OnHighlight", (PyCFunction) _wrap_PyShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32872 | { (char *)"PyShape_base_OnLeftClick", (PyCFunction) _wrap_PyShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32873 | { (char *)"PyShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32874 | { (char *)"PyShape_base_OnRightClick", (PyCFunction) _wrap_PyShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32875 | { (char *)"PyShape_base_OnSize", (PyCFunction) _wrap_PyShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32876 | { (char *)"PyShape_base_OnMovePre", (PyCFunction) _wrap_PyShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32877 | { (char *)"PyShape_base_OnMovePost", (PyCFunction) _wrap_PyShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32878 | { (char *)"PyShape_base_OnDragLeft", (PyCFunction) _wrap_PyShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32879 | { (char *)"PyShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32880 | { (char *)"PyShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32881 | { (char *)"PyShape_base_OnDragRight", (PyCFunction) _wrap_PyShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32882 | { (char *)"PyShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32883 | { (char *)"PyShape_base_OnEndDragRight", (PyCFunction) _wrap_PyShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32884 | { (char *)"PyShape_base_OnDrawOutline", (PyCFunction) _wrap_PyShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32885 | { (char *)"PyShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32886 | { (char *)"PyShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32887 | { (char *)"PyShape_base_OnMoveLink", (PyCFunction) _wrap_PyShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32888 | { (char *)"PyShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32889 | { (char *)"PyShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32890 | { (char *)"PyShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32891 | { (char *)"PyShape_base_OnBeginSize", (PyCFunction) _wrap_PyShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32892 | { (char *)"PyShape_base_OnEndSize", (PyCFunction) _wrap_PyShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32893 | { (char *)"PyShape_swigregister", PyShape_swigregister, METH_VARARGS, NULL }, | |
32894 | { (char *)"new_PseudoMetaFile", (PyCFunction) _wrap_new_PseudoMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32895 | { (char *)"delete_PseudoMetaFile", (PyCFunction) _wrap_delete_PseudoMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32896 | { (char *)"PseudoMetaFile_Draw", (PyCFunction) _wrap_PseudoMetaFile_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32897 | { (char *)"PseudoMetaFile_Clear", (PyCFunction) _wrap_PseudoMetaFile_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32898 | { (char *)"PseudoMetaFile_Copy", (PyCFunction) _wrap_PseudoMetaFile_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32899 | { (char *)"PseudoMetaFile_Scale", (PyCFunction) _wrap_PseudoMetaFile_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32900 | { (char *)"PseudoMetaFile_ScaleTo", (PyCFunction) _wrap_PseudoMetaFile_ScaleTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32901 | { (char *)"PseudoMetaFile_Translate", (PyCFunction) _wrap_PseudoMetaFile_Translate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32902 | { (char *)"PseudoMetaFile_Rotate", (PyCFunction) _wrap_PseudoMetaFile_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32903 | { (char *)"PseudoMetaFile_LoadFromMetaFile", (PyCFunction) _wrap_PseudoMetaFile_LoadFromMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32904 | { (char *)"PseudoMetaFile_GetBounds", (PyCFunction) _wrap_PseudoMetaFile_GetBounds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32905 | { (char *)"PseudoMetaFile_CalculateSize", (PyCFunction) _wrap_PseudoMetaFile_CalculateSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32906 | { (char *)"PseudoMetaFile_SetRotateable", (PyCFunction) _wrap_PseudoMetaFile_SetRotateable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32907 | { (char *)"PseudoMetaFile_GetRotateable", (PyCFunction) _wrap_PseudoMetaFile_GetRotateable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32908 | { (char *)"PseudoMetaFile_SetSize", (PyCFunction) _wrap_PseudoMetaFile_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32909 | { (char *)"PseudoMetaFile_SetFillBrush", (PyCFunction) _wrap_PseudoMetaFile_SetFillBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32910 | { (char *)"PseudoMetaFile_GetFillBrush", (PyCFunction) _wrap_PseudoMetaFile_GetFillBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32911 | { (char *)"PseudoMetaFile_SetOutlinePen", (PyCFunction) _wrap_PseudoMetaFile_SetOutlinePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32912 | { (char *)"PseudoMetaFile_GetOutlinePen", (PyCFunction) _wrap_PseudoMetaFile_GetOutlinePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32913 | { (char *)"PseudoMetaFile_SetOutlineOp", (PyCFunction) _wrap_PseudoMetaFile_SetOutlineOp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32914 | { (char *)"PseudoMetaFile_GetOutlineOp", (PyCFunction) _wrap_PseudoMetaFile_GetOutlineOp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32915 | { (char *)"PseudoMetaFile_IsValid", (PyCFunction) _wrap_PseudoMetaFile_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32916 | { (char *)"PseudoMetaFile_DrawLine", (PyCFunction) _wrap_PseudoMetaFile_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32917 | { (char *)"PseudoMetaFile_DrawRectangle", (PyCFunction) _wrap_PseudoMetaFile_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32918 | { (char *)"PseudoMetaFile_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoMetaFile_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32919 | { (char *)"PseudoMetaFile_DrawArc", (PyCFunction) _wrap_PseudoMetaFile_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32920 | { (char *)"PseudoMetaFile_DrawEllipticArc", (PyCFunction) _wrap_PseudoMetaFile_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32921 | { (char *)"PseudoMetaFile_DrawEllipse", (PyCFunction) _wrap_PseudoMetaFile_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32922 | { (char *)"PseudoMetaFile_DrawPoint", (PyCFunction) _wrap_PseudoMetaFile_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32923 | { (char *)"PseudoMetaFile_DrawText", (PyCFunction) _wrap_PseudoMetaFile_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32924 | { (char *)"PseudoMetaFile_DrawLines", (PyCFunction) _wrap_PseudoMetaFile_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32925 | { (char *)"PseudoMetaFile_DrawPolygon", (PyCFunction) _wrap_PseudoMetaFile_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32926 | { (char *)"PseudoMetaFile_DrawSpline", (PyCFunction) _wrap_PseudoMetaFile_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32927 | { (char *)"PseudoMetaFile_SetClippingRect", (PyCFunction) _wrap_PseudoMetaFile_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32928 | { (char *)"PseudoMetaFile_DestroyClippingRect", (PyCFunction) _wrap_PseudoMetaFile_DestroyClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32929 | { (char *)"PseudoMetaFile_SetPen", (PyCFunction) _wrap_PseudoMetaFile_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32930 | { (char *)"PseudoMetaFile_SetBrush", (PyCFunction) _wrap_PseudoMetaFile_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32931 | { (char *)"PseudoMetaFile_SetFont", (PyCFunction) _wrap_PseudoMetaFile_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32932 | { (char *)"PseudoMetaFile_SetTextColour", (PyCFunction) _wrap_PseudoMetaFile_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32933 | { (char *)"PseudoMetaFile_SetBackgroundColour", (PyCFunction) _wrap_PseudoMetaFile_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32934 | { (char *)"PseudoMetaFile_SetBackgroundMode", (PyCFunction) _wrap_PseudoMetaFile_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32935 | { (char *)"PseudoMetaFile_swigregister", PseudoMetaFile_swigregister, METH_VARARGS, NULL }, | |
32936 | { (char *)"new_PyRectangleShape", (PyCFunction) _wrap_new_PyRectangleShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32937 | { (char *)"PyRectangleShape__setCallbackInfo", (PyCFunction) _wrap_PyRectangleShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32938 | { (char *)"PyRectangleShape_SetCornerRadius", (PyCFunction) _wrap_PyRectangleShape_SetCornerRadius, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32939 | { (char *)"PyRectangleShape_GetCornerRadius", (PyCFunction) _wrap_PyRectangleShape_GetCornerRadius, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32940 | { (char *)"PyRectangleShape_base_OnDelete", (PyCFunction) _wrap_PyRectangleShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32941 | { (char *)"PyRectangleShape_base_OnDraw", (PyCFunction) _wrap_PyRectangleShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32942 | { (char *)"PyRectangleShape_base_OnDrawContents", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32943 | { (char *)"PyRectangleShape_base_OnDrawBranches", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32944 | { (char *)"PyRectangleShape_base_OnMoveLinks", (PyCFunction) _wrap_PyRectangleShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32945 | { (char *)"PyRectangleShape_base_OnErase", (PyCFunction) _wrap_PyRectangleShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32946 | { (char *)"PyRectangleShape_base_OnEraseContents", (PyCFunction) _wrap_PyRectangleShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32947 | { (char *)"PyRectangleShape_base_OnHighlight", (PyCFunction) _wrap_PyRectangleShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32948 | { (char *)"PyRectangleShape_base_OnLeftClick", (PyCFunction) _wrap_PyRectangleShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32949 | { (char *)"PyRectangleShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyRectangleShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32950 | { (char *)"PyRectangleShape_base_OnRightClick", (PyCFunction) _wrap_PyRectangleShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32951 | { (char *)"PyRectangleShape_base_OnSize", (PyCFunction) _wrap_PyRectangleShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32952 | { (char *)"PyRectangleShape_base_OnMovePre", (PyCFunction) _wrap_PyRectangleShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32953 | { (char *)"PyRectangleShape_base_OnMovePost", (PyCFunction) _wrap_PyRectangleShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32954 | { (char *)"PyRectangleShape_base_OnDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32955 | { (char *)"PyRectangleShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32956 | { (char *)"PyRectangleShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32957 | { (char *)"PyRectangleShape_base_OnDragRight", (PyCFunction) _wrap_PyRectangleShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32958 | { (char *)"PyRectangleShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyRectangleShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32959 | { (char *)"PyRectangleShape_base_OnEndDragRight", (PyCFunction) _wrap_PyRectangleShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32960 | { (char *)"PyRectangleShape_base_OnDrawOutline", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32961 | { (char *)"PyRectangleShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32962 | { (char *)"PyRectangleShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyRectangleShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32963 | { (char *)"PyRectangleShape_base_OnMoveLink", (PyCFunction) _wrap_PyRectangleShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32964 | { (char *)"PyRectangleShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32965 | { (char *)"PyRectangleShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32966 | { (char *)"PyRectangleShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32967 | { (char *)"PyRectangleShape_base_OnBeginSize", (PyCFunction) _wrap_PyRectangleShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32968 | { (char *)"PyRectangleShape_base_OnEndSize", (PyCFunction) _wrap_PyRectangleShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32969 | { (char *)"PyRectangleShape_swigregister", PyRectangleShape_swigregister, METH_VARARGS, NULL }, | |
32970 | { (char *)"new_PyControlPoint", (PyCFunction) _wrap_new_PyControlPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32971 | { (char *)"PyControlPoint__setCallbackInfo", (PyCFunction) _wrap_PyControlPoint__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32972 | { (char *)"PyControlPoint_SetCornerRadius", (PyCFunction) _wrap_PyControlPoint_SetCornerRadius, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32973 | { (char *)"PyControlPoint_base_OnDelete", (PyCFunction) _wrap_PyControlPoint_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32974 | { (char *)"PyControlPoint_base_OnDraw", (PyCFunction) _wrap_PyControlPoint_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32975 | { (char *)"PyControlPoint_base_OnDrawContents", (PyCFunction) _wrap_PyControlPoint_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32976 | { (char *)"PyControlPoint_base_OnDrawBranches", (PyCFunction) _wrap_PyControlPoint_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32977 | { (char *)"PyControlPoint_base_OnMoveLinks", (PyCFunction) _wrap_PyControlPoint_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32978 | { (char *)"PyControlPoint_base_OnErase", (PyCFunction) _wrap_PyControlPoint_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32979 | { (char *)"PyControlPoint_base_OnEraseContents", (PyCFunction) _wrap_PyControlPoint_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32980 | { (char *)"PyControlPoint_base_OnHighlight", (PyCFunction) _wrap_PyControlPoint_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32981 | { (char *)"PyControlPoint_base_OnLeftClick", (PyCFunction) _wrap_PyControlPoint_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32982 | { (char *)"PyControlPoint_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyControlPoint_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32983 | { (char *)"PyControlPoint_base_OnRightClick", (PyCFunction) _wrap_PyControlPoint_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32984 | { (char *)"PyControlPoint_base_OnSize", (PyCFunction) _wrap_PyControlPoint_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32985 | { (char *)"PyControlPoint_base_OnMovePre", (PyCFunction) _wrap_PyControlPoint_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32986 | { (char *)"PyControlPoint_base_OnMovePost", (PyCFunction) _wrap_PyControlPoint_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32987 | { (char *)"PyControlPoint_base_OnDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32988 | { (char *)"PyControlPoint_base_OnBeginDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32989 | { (char *)"PyControlPoint_base_OnEndDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32990 | { (char *)"PyControlPoint_base_OnDragRight", (PyCFunction) _wrap_PyControlPoint_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32991 | { (char *)"PyControlPoint_base_OnBeginDragRight", (PyCFunction) _wrap_PyControlPoint_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32992 | { (char *)"PyControlPoint_base_OnEndDragRight", (PyCFunction) _wrap_PyControlPoint_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32993 | { (char *)"PyControlPoint_base_OnDrawOutline", (PyCFunction) _wrap_PyControlPoint_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32994 | { (char *)"PyControlPoint_base_OnDrawControlPoints", (PyCFunction) _wrap_PyControlPoint_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32995 | { (char *)"PyControlPoint_base_OnEraseControlPoints", (PyCFunction) _wrap_PyControlPoint_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32996 | { (char *)"PyControlPoint_base_OnMoveLink", (PyCFunction) _wrap_PyControlPoint_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32997 | { (char *)"PyControlPoint_base_OnSizingDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32998 | { (char *)"PyControlPoint_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32999 | { (char *)"PyControlPoint_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33000 | { (char *)"PyControlPoint_base_OnBeginSize", (PyCFunction) _wrap_PyControlPoint_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33001 | { (char *)"PyControlPoint_base_OnEndSize", (PyCFunction) _wrap_PyControlPoint_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33002 | { (char *)"PyControlPoint_swigregister", PyControlPoint_swigregister, METH_VARARGS, NULL }, | |
33003 | { (char *)"new_PyBitmapShape", (PyCFunction) _wrap_new_PyBitmapShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33004 | { (char *)"PyBitmapShape__setCallbackInfo", (PyCFunction) _wrap_PyBitmapShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33005 | { (char *)"PyBitmapShape_GetBitmap", (PyCFunction) _wrap_PyBitmapShape_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33006 | { (char *)"PyBitmapShape_GetFilename", (PyCFunction) _wrap_PyBitmapShape_GetFilename, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33007 | { (char *)"PyBitmapShape_SetBitmap", (PyCFunction) _wrap_PyBitmapShape_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33008 | { (char *)"PyBitmapShape_SetFilename", (PyCFunction) _wrap_PyBitmapShape_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33009 | { (char *)"PyBitmapShape_base_OnDelete", (PyCFunction) _wrap_PyBitmapShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33010 | { (char *)"PyBitmapShape_base_OnDraw", (PyCFunction) _wrap_PyBitmapShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33011 | { (char *)"PyBitmapShape_base_OnDrawContents", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33012 | { (char *)"PyBitmapShape_base_OnDrawBranches", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33013 | { (char *)"PyBitmapShape_base_OnMoveLinks", (PyCFunction) _wrap_PyBitmapShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33014 | { (char *)"PyBitmapShape_base_OnErase", (PyCFunction) _wrap_PyBitmapShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33015 | { (char *)"PyBitmapShape_base_OnEraseContents", (PyCFunction) _wrap_PyBitmapShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33016 | { (char *)"PyBitmapShape_base_OnHighlight", (PyCFunction) _wrap_PyBitmapShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33017 | { (char *)"PyBitmapShape_base_OnLeftClick", (PyCFunction) _wrap_PyBitmapShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33018 | { (char *)"PyBitmapShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyBitmapShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33019 | { (char *)"PyBitmapShape_base_OnRightClick", (PyCFunction) _wrap_PyBitmapShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33020 | { (char *)"PyBitmapShape_base_OnSize", (PyCFunction) _wrap_PyBitmapShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33021 | { (char *)"PyBitmapShape_base_OnMovePre", (PyCFunction) _wrap_PyBitmapShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33022 | { (char *)"PyBitmapShape_base_OnMovePost", (PyCFunction) _wrap_PyBitmapShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33023 | { (char *)"PyBitmapShape_base_OnDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33024 | { (char *)"PyBitmapShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33025 | { (char *)"PyBitmapShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33026 | { (char *)"PyBitmapShape_base_OnDragRight", (PyCFunction) _wrap_PyBitmapShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33027 | { (char *)"PyBitmapShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyBitmapShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33028 | { (char *)"PyBitmapShape_base_OnEndDragRight", (PyCFunction) _wrap_PyBitmapShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33029 | { (char *)"PyBitmapShape_base_OnDrawOutline", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33030 | { (char *)"PyBitmapShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33031 | { (char *)"PyBitmapShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyBitmapShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33032 | { (char *)"PyBitmapShape_base_OnMoveLink", (PyCFunction) _wrap_PyBitmapShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33033 | { (char *)"PyBitmapShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33034 | { (char *)"PyBitmapShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33035 | { (char *)"PyBitmapShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33036 | { (char *)"PyBitmapShape_base_OnBeginSize", (PyCFunction) _wrap_PyBitmapShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33037 | { (char *)"PyBitmapShape_base_OnEndSize", (PyCFunction) _wrap_PyBitmapShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33038 | { (char *)"PyBitmapShape_swigregister", PyBitmapShape_swigregister, METH_VARARGS, NULL }, | |
33039 | { (char *)"new_PyDrawnShape", (PyCFunction) _wrap_new_PyDrawnShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33040 | { (char *)"PyDrawnShape__setCallbackInfo", (PyCFunction) _wrap_PyDrawnShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33041 | { (char *)"PyDrawnShape_CalculateSize", (PyCFunction) _wrap_PyDrawnShape_CalculateSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33042 | { (char *)"PyDrawnShape_DestroyClippingRect", (PyCFunction) _wrap_PyDrawnShape_DestroyClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33043 | { (char *)"PyDrawnShape_DrawArc", (PyCFunction) _wrap_PyDrawnShape_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33044 | { (char *)"PyDrawnShape_DrawAtAngle", (PyCFunction) _wrap_PyDrawnShape_DrawAtAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33045 | { (char *)"PyDrawnShape_DrawEllipticArc", (PyCFunction) _wrap_PyDrawnShape_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33046 | { (char *)"PyDrawnShape_DrawLine", (PyCFunction) _wrap_PyDrawnShape_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33047 | { (char *)"PyDrawnShape_DrawLines", (PyCFunction) _wrap_PyDrawnShape_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33048 | { (char *)"PyDrawnShape_DrawPoint", (PyCFunction) _wrap_PyDrawnShape_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33049 | { (char *)"PyDrawnShape_DrawPolygon", (PyCFunction) _wrap_PyDrawnShape_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33050 | { (char *)"PyDrawnShape_DrawRectangle", (PyCFunction) _wrap_PyDrawnShape_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33051 | { (char *)"PyDrawnShape_DrawRoundedRectangle", (PyCFunction) _wrap_PyDrawnShape_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33052 | { (char *)"PyDrawnShape_DrawSpline", (PyCFunction) _wrap_PyDrawnShape_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33053 | { (char *)"PyDrawnShape_DrawText", (PyCFunction) _wrap_PyDrawnShape_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33054 | { (char *)"PyDrawnShape_GetAngle", (PyCFunction) _wrap_PyDrawnShape_GetAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33055 | { (char *)"PyDrawnShape_GetMetaFile", (PyCFunction) _wrap_PyDrawnShape_GetMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33056 | { (char *)"PyDrawnShape_GetRotation", (PyCFunction) _wrap_PyDrawnShape_GetRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33057 | { (char *)"PyDrawnShape_LoadFromMetaFile", (PyCFunction) _wrap_PyDrawnShape_LoadFromMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33058 | { (char *)"PyDrawnShape_Rotate", (PyCFunction) _wrap_PyDrawnShape_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33059 | { (char *)"PyDrawnShape_SetClippingRect", (PyCFunction) _wrap_PyDrawnShape_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33060 | { (char *)"PyDrawnShape_SetDrawnBackgroundColour", (PyCFunction) _wrap_PyDrawnShape_SetDrawnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33061 | { (char *)"PyDrawnShape_SetDrawnBackgroundMode", (PyCFunction) _wrap_PyDrawnShape_SetDrawnBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33062 | { (char *)"PyDrawnShape_SetDrawnBrush", (PyCFunction) _wrap_PyDrawnShape_SetDrawnBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33063 | { (char *)"PyDrawnShape_SetDrawnFont", (PyCFunction) _wrap_PyDrawnShape_SetDrawnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33064 | { (char *)"PyDrawnShape_SetDrawnPen", (PyCFunction) _wrap_PyDrawnShape_SetDrawnPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33065 | { (char *)"PyDrawnShape_SetDrawnTextColour", (PyCFunction) _wrap_PyDrawnShape_SetDrawnTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33066 | { (char *)"PyDrawnShape_Scale", (PyCFunction) _wrap_PyDrawnShape_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33067 | { (char *)"PyDrawnShape_SetSaveToFile", (PyCFunction) _wrap_PyDrawnShape_SetSaveToFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33068 | { (char *)"PyDrawnShape_Translate", (PyCFunction) _wrap_PyDrawnShape_Translate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33069 | { (char *)"PyDrawnShape_base_OnDelete", (PyCFunction) _wrap_PyDrawnShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33070 | { (char *)"PyDrawnShape_base_OnDraw", (PyCFunction) _wrap_PyDrawnShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33071 | { (char *)"PyDrawnShape_base_OnDrawContents", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33072 | { (char *)"PyDrawnShape_base_OnDrawBranches", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33073 | { (char *)"PyDrawnShape_base_OnMoveLinks", (PyCFunction) _wrap_PyDrawnShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33074 | { (char *)"PyDrawnShape_base_OnErase", (PyCFunction) _wrap_PyDrawnShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33075 | { (char *)"PyDrawnShape_base_OnEraseContents", (PyCFunction) _wrap_PyDrawnShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33076 | { (char *)"PyDrawnShape_base_OnHighlight", (PyCFunction) _wrap_PyDrawnShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33077 | { (char *)"PyDrawnShape_base_OnLeftClick", (PyCFunction) _wrap_PyDrawnShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33078 | { (char *)"PyDrawnShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyDrawnShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33079 | { (char *)"PyDrawnShape_base_OnRightClick", (PyCFunction) _wrap_PyDrawnShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33080 | { (char *)"PyDrawnShape_base_OnSize", (PyCFunction) _wrap_PyDrawnShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33081 | { (char *)"PyDrawnShape_base_OnMovePre", (PyCFunction) _wrap_PyDrawnShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33082 | { (char *)"PyDrawnShape_base_OnMovePost", (PyCFunction) _wrap_PyDrawnShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33083 | { (char *)"PyDrawnShape_base_OnDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33084 | { (char *)"PyDrawnShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33085 | { (char *)"PyDrawnShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33086 | { (char *)"PyDrawnShape_base_OnDragRight", (PyCFunction) _wrap_PyDrawnShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33087 | { (char *)"PyDrawnShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyDrawnShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33088 | { (char *)"PyDrawnShape_base_OnEndDragRight", (PyCFunction) _wrap_PyDrawnShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33089 | { (char *)"PyDrawnShape_base_OnDrawOutline", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33090 | { (char *)"PyDrawnShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33091 | { (char *)"PyDrawnShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyDrawnShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33092 | { (char *)"PyDrawnShape_base_OnMoveLink", (PyCFunction) _wrap_PyDrawnShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33093 | { (char *)"PyDrawnShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33094 | { (char *)"PyDrawnShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33095 | { (char *)"PyDrawnShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33096 | { (char *)"PyDrawnShape_base_OnBeginSize", (PyCFunction) _wrap_PyDrawnShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33097 | { (char *)"PyDrawnShape_base_OnEndSize", (PyCFunction) _wrap_PyDrawnShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33098 | { (char *)"PyDrawnShape_swigregister", PyDrawnShape_swigregister, METH_VARARGS, NULL }, | |
33099 | { (char *)"new_OGLConstraint", (PyCFunction) _wrap_new_OGLConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33100 | { (char *)"OGLConstraint_Evaluate", (PyCFunction) _wrap_OGLConstraint_Evaluate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33101 | { (char *)"OGLConstraint_SetSpacing", (PyCFunction) _wrap_OGLConstraint_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33102 | { (char *)"OGLConstraint_Equals", (PyCFunction) _wrap_OGLConstraint_Equals, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33103 | { (char *)"OGLConstraint_swigregister", OGLConstraint_swigregister, METH_VARARGS, NULL }, | |
33104 | { (char *)"new_PyCompositeShape", (PyCFunction) _wrap_new_PyCompositeShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33105 | { (char *)"PyCompositeShape__setCallbackInfo", (PyCFunction) _wrap_PyCompositeShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33106 | { (char *)"PyCompositeShape_AddChild", (PyCFunction) _wrap_PyCompositeShape_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33107 | { (char *)"PyCompositeShape_AddConstraint", (PyCFunction) _wrap_PyCompositeShape_AddConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33108 | { (char *)"PyCompositeShape_AddConstrainedShapes", (PyCFunction) _wrap_PyCompositeShape_AddConstrainedShapes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33109 | { (char *)"PyCompositeShape_AddSimpleConstraint", (PyCFunction) _wrap_PyCompositeShape_AddSimpleConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33110 | { (char *)"PyCompositeShape_CalculateSize", (PyCFunction) _wrap_PyCompositeShape_CalculateSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33111 | { (char *)"PyCompositeShape_ContainsDivision", (PyCFunction) _wrap_PyCompositeShape_ContainsDivision, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33112 | { (char *)"PyCompositeShape_DeleteConstraint", (PyCFunction) _wrap_PyCompositeShape_DeleteConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33113 | { (char *)"PyCompositeShape_DeleteConstraintsInvolvingChild", (PyCFunction) _wrap_PyCompositeShape_DeleteConstraintsInvolvingChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33114 | { (char *)"PyCompositeShape_FindContainerImage", (PyCFunction) _wrap_PyCompositeShape_FindContainerImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33115 | { (char *)"PyCompositeShape_GetConstraints", (PyCFunction) _wrap_PyCompositeShape_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33116 | { (char *)"PyCompositeShape_GetDivisions", (PyCFunction) _wrap_PyCompositeShape_GetDivisions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33117 | { (char *)"PyCompositeShape_MakeContainer", (PyCFunction) _wrap_PyCompositeShape_MakeContainer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33118 | { (char *)"PyCompositeShape_Recompute", (PyCFunction) _wrap_PyCompositeShape_Recompute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33119 | { (char *)"PyCompositeShape_RemoveChild", (PyCFunction) _wrap_PyCompositeShape_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33120 | { (char *)"PyCompositeShape_base_OnDelete", (PyCFunction) _wrap_PyCompositeShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33121 | { (char *)"PyCompositeShape_base_OnDraw", (PyCFunction) _wrap_PyCompositeShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33122 | { (char *)"PyCompositeShape_base_OnDrawContents", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33123 | { (char *)"PyCompositeShape_base_OnDrawBranches", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33124 | { (char *)"PyCompositeShape_base_OnMoveLinks", (PyCFunction) _wrap_PyCompositeShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33125 | { (char *)"PyCompositeShape_base_OnErase", (PyCFunction) _wrap_PyCompositeShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33126 | { (char *)"PyCompositeShape_base_OnEraseContents", (PyCFunction) _wrap_PyCompositeShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33127 | { (char *)"PyCompositeShape_base_OnHighlight", (PyCFunction) _wrap_PyCompositeShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33128 | { (char *)"PyCompositeShape_base_OnLeftClick", (PyCFunction) _wrap_PyCompositeShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33129 | { (char *)"PyCompositeShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyCompositeShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33130 | { (char *)"PyCompositeShape_base_OnRightClick", (PyCFunction) _wrap_PyCompositeShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33131 | { (char *)"PyCompositeShape_base_OnSize", (PyCFunction) _wrap_PyCompositeShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33132 | { (char *)"PyCompositeShape_base_OnMovePre", (PyCFunction) _wrap_PyCompositeShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33133 | { (char *)"PyCompositeShape_base_OnMovePost", (PyCFunction) _wrap_PyCompositeShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33134 | { (char *)"PyCompositeShape_base_OnDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33135 | { (char *)"PyCompositeShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33136 | { (char *)"PyCompositeShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33137 | { (char *)"PyCompositeShape_base_OnDragRight", (PyCFunction) _wrap_PyCompositeShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33138 | { (char *)"PyCompositeShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyCompositeShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33139 | { (char *)"PyCompositeShape_base_OnEndDragRight", (PyCFunction) _wrap_PyCompositeShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33140 | { (char *)"PyCompositeShape_base_OnDrawOutline", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33141 | { (char *)"PyCompositeShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33142 | { (char *)"PyCompositeShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyCompositeShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33143 | { (char *)"PyCompositeShape_base_OnMoveLink", (PyCFunction) _wrap_PyCompositeShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33144 | { (char *)"PyCompositeShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33145 | { (char *)"PyCompositeShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33146 | { (char *)"PyCompositeShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33147 | { (char *)"PyCompositeShape_base_OnBeginSize", (PyCFunction) _wrap_PyCompositeShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33148 | { (char *)"PyCompositeShape_base_OnEndSize", (PyCFunction) _wrap_PyCompositeShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33149 | { (char *)"PyCompositeShape_swigregister", PyCompositeShape_swigregister, METH_VARARGS, NULL }, | |
33150 | { (char *)"new_PyDividedShape", (PyCFunction) _wrap_new_PyDividedShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33151 | { (char *)"PyDividedShape__setCallbackInfo", (PyCFunction) _wrap_PyDividedShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33152 | { (char *)"PyDividedShape_EditRegions", (PyCFunction) _wrap_PyDividedShape_EditRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33153 | { (char *)"PyDividedShape_SetRegionSizes", (PyCFunction) _wrap_PyDividedShape_SetRegionSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33154 | { (char *)"PyDividedShape_base_OnDelete", (PyCFunction) _wrap_PyDividedShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33155 | { (char *)"PyDividedShape_base_OnDraw", (PyCFunction) _wrap_PyDividedShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33156 | { (char *)"PyDividedShape_base_OnDrawContents", (PyCFunction) _wrap_PyDividedShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33157 | { (char *)"PyDividedShape_base_OnDrawBranches", (PyCFunction) _wrap_PyDividedShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33158 | { (char *)"PyDividedShape_base_OnMoveLinks", (PyCFunction) _wrap_PyDividedShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33159 | { (char *)"PyDividedShape_base_OnErase", (PyCFunction) _wrap_PyDividedShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33160 | { (char *)"PyDividedShape_base_OnEraseContents", (PyCFunction) _wrap_PyDividedShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33161 | { (char *)"PyDividedShape_base_OnHighlight", (PyCFunction) _wrap_PyDividedShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33162 | { (char *)"PyDividedShape_base_OnLeftClick", (PyCFunction) _wrap_PyDividedShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33163 | { (char *)"PyDividedShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyDividedShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33164 | { (char *)"PyDividedShape_base_OnRightClick", (PyCFunction) _wrap_PyDividedShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33165 | { (char *)"PyDividedShape_base_OnSize", (PyCFunction) _wrap_PyDividedShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33166 | { (char *)"PyDividedShape_base_OnMovePre", (PyCFunction) _wrap_PyDividedShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33167 | { (char *)"PyDividedShape_base_OnMovePost", (PyCFunction) _wrap_PyDividedShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33168 | { (char *)"PyDividedShape_base_OnDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33169 | { (char *)"PyDividedShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33170 | { (char *)"PyDividedShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33171 | { (char *)"PyDividedShape_base_OnDragRight", (PyCFunction) _wrap_PyDividedShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33172 | { (char *)"PyDividedShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyDividedShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33173 | { (char *)"PyDividedShape_base_OnEndDragRight", (PyCFunction) _wrap_PyDividedShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33174 | { (char *)"PyDividedShape_base_OnDrawOutline", (PyCFunction) _wrap_PyDividedShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33175 | { (char *)"PyDividedShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyDividedShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33176 | { (char *)"PyDividedShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyDividedShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33177 | { (char *)"PyDividedShape_base_OnMoveLink", (PyCFunction) _wrap_PyDividedShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33178 | { (char *)"PyDividedShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33179 | { (char *)"PyDividedShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33180 | { (char *)"PyDividedShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33181 | { (char *)"PyDividedShape_base_OnBeginSize", (PyCFunction) _wrap_PyDividedShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33182 | { (char *)"PyDividedShape_base_OnEndSize", (PyCFunction) _wrap_PyDividedShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33183 | { (char *)"PyDividedShape_swigregister", PyDividedShape_swigregister, METH_VARARGS, NULL }, | |
33184 | { (char *)"new_PyDivisionShape", (PyCFunction) _wrap_new_PyDivisionShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33185 | { (char *)"PyDivisionShape__setCallbackInfo", (PyCFunction) _wrap_PyDivisionShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33186 | { (char *)"PyDivisionShape_AdjustBottom", (PyCFunction) _wrap_PyDivisionShape_AdjustBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33187 | { (char *)"PyDivisionShape_AdjustLeft", (PyCFunction) _wrap_PyDivisionShape_AdjustLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33188 | { (char *)"PyDivisionShape_AdjustRight", (PyCFunction) _wrap_PyDivisionShape_AdjustRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33189 | { (char *)"PyDivisionShape_AdjustTop", (PyCFunction) _wrap_PyDivisionShape_AdjustTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33190 | { (char *)"PyDivisionShape_Divide", (PyCFunction) _wrap_PyDivisionShape_Divide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33191 | { (char *)"PyDivisionShape_EditEdge", (PyCFunction) _wrap_PyDivisionShape_EditEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33192 | { (char *)"PyDivisionShape_GetBottomSide", (PyCFunction) _wrap_PyDivisionShape_GetBottomSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33193 | { (char *)"PyDivisionShape_GetHandleSide", (PyCFunction) _wrap_PyDivisionShape_GetHandleSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33194 | { (char *)"PyDivisionShape_GetLeftSide", (PyCFunction) _wrap_PyDivisionShape_GetLeftSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33195 | { (char *)"PyDivisionShape_GetLeftSideColour", (PyCFunction) _wrap_PyDivisionShape_GetLeftSideColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33196 | { (char *)"PyDivisionShape_GetLeftSidePen", (PyCFunction) _wrap_PyDivisionShape_GetLeftSidePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33197 | { (char *)"PyDivisionShape_GetRightSide", (PyCFunction) _wrap_PyDivisionShape_GetRightSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33198 | { (char *)"PyDivisionShape_GetTopSide", (PyCFunction) _wrap_PyDivisionShape_GetTopSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33199 | { (char *)"PyDivisionShape_GetTopSidePen", (PyCFunction) _wrap_PyDivisionShape_GetTopSidePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33200 | { (char *)"PyDivisionShape_ResizeAdjoining", (PyCFunction) _wrap_PyDivisionShape_ResizeAdjoining, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33201 | { (char *)"PyDivisionShape_PopupMenu", (PyCFunction) _wrap_PyDivisionShape_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33202 | { (char *)"PyDivisionShape_SetBottomSide", (PyCFunction) _wrap_PyDivisionShape_SetBottomSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33203 | { (char *)"PyDivisionShape_SetHandleSide", (PyCFunction) _wrap_PyDivisionShape_SetHandleSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33204 | { (char *)"PyDivisionShape_SetLeftSide", (PyCFunction) _wrap_PyDivisionShape_SetLeftSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33205 | { (char *)"PyDivisionShape_SetLeftSideColour", (PyCFunction) _wrap_PyDivisionShape_SetLeftSideColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33206 | { (char *)"PyDivisionShape_SetLeftSidePen", (PyCFunction) _wrap_PyDivisionShape_SetLeftSidePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33207 | { (char *)"PyDivisionShape_SetRightSide", (PyCFunction) _wrap_PyDivisionShape_SetRightSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33208 | { (char *)"PyDivisionShape_SetTopSide", (PyCFunction) _wrap_PyDivisionShape_SetTopSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33209 | { (char *)"PyDivisionShape_SetTopSideColour", (PyCFunction) _wrap_PyDivisionShape_SetTopSideColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33210 | { (char *)"PyDivisionShape_SetTopSidePen", (PyCFunction) _wrap_PyDivisionShape_SetTopSidePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33211 | { (char *)"PyDivisionShape_base_OnDelete", (PyCFunction) _wrap_PyDivisionShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33212 | { (char *)"PyDivisionShape_base_OnDraw", (PyCFunction) _wrap_PyDivisionShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33213 | { (char *)"PyDivisionShape_base_OnDrawContents", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33214 | { (char *)"PyDivisionShape_base_OnDrawBranches", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33215 | { (char *)"PyDivisionShape_base_OnMoveLinks", (PyCFunction) _wrap_PyDivisionShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33216 | { (char *)"PyDivisionShape_base_OnErase", (PyCFunction) _wrap_PyDivisionShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33217 | { (char *)"PyDivisionShape_base_OnEraseContents", (PyCFunction) _wrap_PyDivisionShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33218 | { (char *)"PyDivisionShape_base_OnHighlight", (PyCFunction) _wrap_PyDivisionShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33219 | { (char *)"PyDivisionShape_base_OnLeftClick", (PyCFunction) _wrap_PyDivisionShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33220 | { (char *)"PyDivisionShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyDivisionShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33221 | { (char *)"PyDivisionShape_base_OnRightClick", (PyCFunction) _wrap_PyDivisionShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33222 | { (char *)"PyDivisionShape_base_OnSize", (PyCFunction) _wrap_PyDivisionShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33223 | { (char *)"PyDivisionShape_base_OnMovePre", (PyCFunction) _wrap_PyDivisionShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33224 | { (char *)"PyDivisionShape_base_OnMovePost", (PyCFunction) _wrap_PyDivisionShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33225 | { (char *)"PyDivisionShape_base_OnDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33226 | { (char *)"PyDivisionShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33227 | { (char *)"PyDivisionShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33228 | { (char *)"PyDivisionShape_base_OnDragRight", (PyCFunction) _wrap_PyDivisionShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33229 | { (char *)"PyDivisionShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyDivisionShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33230 | { (char *)"PyDivisionShape_base_OnEndDragRight", (PyCFunction) _wrap_PyDivisionShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33231 | { (char *)"PyDivisionShape_base_OnDrawOutline", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33232 | { (char *)"PyDivisionShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33233 | { (char *)"PyDivisionShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyDivisionShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33234 | { (char *)"PyDivisionShape_base_OnMoveLink", (PyCFunction) _wrap_PyDivisionShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33235 | { (char *)"PyDivisionShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33236 | { (char *)"PyDivisionShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33237 | { (char *)"PyDivisionShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33238 | { (char *)"PyDivisionShape_base_OnBeginSize", (PyCFunction) _wrap_PyDivisionShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33239 | { (char *)"PyDivisionShape_base_OnEndSize", (PyCFunction) _wrap_PyDivisionShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33240 | { (char *)"PyDivisionShape_swigregister", PyDivisionShape_swigregister, METH_VARARGS, NULL }, | |
33241 | { (char *)"new_PyEllipseShape", (PyCFunction) _wrap_new_PyEllipseShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33242 | { (char *)"PyEllipseShape__setCallbackInfo", (PyCFunction) _wrap_PyEllipseShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33243 | { (char *)"PyEllipseShape_base_OnDraw", (PyCFunction) _wrap_PyEllipseShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33244 | { (char *)"PyEllipseShape_base_OnDrawContents", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33245 | { (char *)"PyEllipseShape_base_OnDrawBranches", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33246 | { (char *)"PyEllipseShape_base_OnMoveLinks", (PyCFunction) _wrap_PyEllipseShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33247 | { (char *)"PyEllipseShape_base_OnErase", (PyCFunction) _wrap_PyEllipseShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33248 | { (char *)"PyEllipseShape_base_OnEraseContents", (PyCFunction) _wrap_PyEllipseShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33249 | { (char *)"PyEllipseShape_base_OnHighlight", (PyCFunction) _wrap_PyEllipseShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33250 | { (char *)"PyEllipseShape_base_OnLeftClick", (PyCFunction) _wrap_PyEllipseShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33251 | { (char *)"PyEllipseShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyEllipseShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33252 | { (char *)"PyEllipseShape_base_OnRightClick", (PyCFunction) _wrap_PyEllipseShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33253 | { (char *)"PyEllipseShape_base_OnSize", (PyCFunction) _wrap_PyEllipseShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33254 | { (char *)"PyEllipseShape_base_OnMovePre", (PyCFunction) _wrap_PyEllipseShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33255 | { (char *)"PyEllipseShape_base_OnMovePost", (PyCFunction) _wrap_PyEllipseShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33256 | { (char *)"PyEllipseShape_base_OnDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33257 | { (char *)"PyEllipseShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33258 | { (char *)"PyEllipseShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33259 | { (char *)"PyEllipseShape_base_OnDragRight", (PyCFunction) _wrap_PyEllipseShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33260 | { (char *)"PyEllipseShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyEllipseShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33261 | { (char *)"PyEllipseShape_base_OnEndDragRight", (PyCFunction) _wrap_PyEllipseShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33262 | { (char *)"PyEllipseShape_base_OnDrawOutline", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33263 | { (char *)"PyEllipseShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33264 | { (char *)"PyEllipseShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyEllipseShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33265 | { (char *)"PyEllipseShape_base_OnMoveLink", (PyCFunction) _wrap_PyEllipseShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33266 | { (char *)"PyEllipseShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33267 | { (char *)"PyEllipseShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33268 | { (char *)"PyEllipseShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33269 | { (char *)"PyEllipseShape_base_OnBeginSize", (PyCFunction) _wrap_PyEllipseShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33270 | { (char *)"PyEllipseShape_base_OnEndSize", (PyCFunction) _wrap_PyEllipseShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33271 | { (char *)"PyEllipseShape_swigregister", PyEllipseShape_swigregister, METH_VARARGS, NULL }, | |
33272 | { (char *)"new_PyCircleShape", (PyCFunction) _wrap_new_PyCircleShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33273 | { (char *)"PyCircleShape__setCallbackInfo", (PyCFunction) _wrap_PyCircleShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33274 | { (char *)"PyCircleShape_base_OnDraw", (PyCFunction) _wrap_PyCircleShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33275 | { (char *)"PyCircleShape_base_OnDrawContents", (PyCFunction) _wrap_PyCircleShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33276 | { (char *)"PyCircleShape_base_OnDrawBranches", (PyCFunction) _wrap_PyCircleShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33277 | { (char *)"PyCircleShape_base_OnMoveLinks", (PyCFunction) _wrap_PyCircleShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33278 | { (char *)"PyCircleShape_base_OnErase", (PyCFunction) _wrap_PyCircleShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33279 | { (char *)"PyCircleShape_base_OnEraseContents", (PyCFunction) _wrap_PyCircleShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33280 | { (char *)"PyCircleShape_base_OnHighlight", (PyCFunction) _wrap_PyCircleShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33281 | { (char *)"PyCircleShape_base_OnLeftClick", (PyCFunction) _wrap_PyCircleShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33282 | { (char *)"PyCircleShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyCircleShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33283 | { (char *)"PyCircleShape_base_OnRightClick", (PyCFunction) _wrap_PyCircleShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33284 | { (char *)"PyCircleShape_base_OnSize", (PyCFunction) _wrap_PyCircleShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33285 | { (char *)"PyCircleShape_base_OnMovePre", (PyCFunction) _wrap_PyCircleShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33286 | { (char *)"PyCircleShape_base_OnMovePost", (PyCFunction) _wrap_PyCircleShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33287 | { (char *)"PyCircleShape_base_OnDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33288 | { (char *)"PyCircleShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33289 | { (char *)"PyCircleShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33290 | { (char *)"PyCircleShape_base_OnDragRight", (PyCFunction) _wrap_PyCircleShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33291 | { (char *)"PyCircleShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyCircleShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33292 | { (char *)"PyCircleShape_base_OnEndDragRight", (PyCFunction) _wrap_PyCircleShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33293 | { (char *)"PyCircleShape_base_OnDrawOutline", (PyCFunction) _wrap_PyCircleShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33294 | { (char *)"PyCircleShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyCircleShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33295 | { (char *)"PyCircleShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyCircleShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33296 | { (char *)"PyCircleShape_base_OnMoveLink", (PyCFunction) _wrap_PyCircleShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33297 | { (char *)"PyCircleShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33298 | { (char *)"PyCircleShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33299 | { (char *)"PyCircleShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33300 | { (char *)"PyCircleShape_base_OnBeginSize", (PyCFunction) _wrap_PyCircleShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33301 | { (char *)"PyCircleShape_base_OnEndSize", (PyCFunction) _wrap_PyCircleShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33302 | { (char *)"PyCircleShape_swigregister", PyCircleShape_swigregister, METH_VARARGS, NULL }, | |
33303 | { (char *)"new_ArrowHead", (PyCFunction) _wrap_new_ArrowHead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33304 | { (char *)"delete_ArrowHead", (PyCFunction) _wrap_delete_ArrowHead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33305 | { (char *)"ArrowHead__GetType", (PyCFunction) _wrap_ArrowHead__GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33306 | { (char *)"ArrowHead_GetPosition", (PyCFunction) _wrap_ArrowHead_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33307 | { (char *)"ArrowHead_SetPosition", (PyCFunction) _wrap_ArrowHead_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33308 | { (char *)"ArrowHead_GetXOffset", (PyCFunction) _wrap_ArrowHead_GetXOffset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33309 | { (char *)"ArrowHead_GetYOffset", (PyCFunction) _wrap_ArrowHead_GetYOffset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33310 | { (char *)"ArrowHead_GetSpacing", (PyCFunction) _wrap_ArrowHead_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33311 | { (char *)"ArrowHead_GetSize", (PyCFunction) _wrap_ArrowHead_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33312 | { (char *)"ArrowHead_GetName", (PyCFunction) _wrap_ArrowHead_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33313 | { (char *)"ArrowHead_SetXOffset", (PyCFunction) _wrap_ArrowHead_SetXOffset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33314 | { (char *)"ArrowHead_SetYOffset", (PyCFunction) _wrap_ArrowHead_SetYOffset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33315 | { (char *)"ArrowHead_GetMetaFile", (PyCFunction) _wrap_ArrowHead_GetMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33316 | { (char *)"ArrowHead_GetId", (PyCFunction) _wrap_ArrowHead_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33317 | { (char *)"ArrowHead_GetArrowEnd", (PyCFunction) _wrap_ArrowHead_GetArrowEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33318 | { (char *)"ArrowHead_GetArrowSize", (PyCFunction) _wrap_ArrowHead_GetArrowSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33319 | { (char *)"ArrowHead_SetSize", (PyCFunction) _wrap_ArrowHead_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33320 | { (char *)"ArrowHead_SetSpacing", (PyCFunction) _wrap_ArrowHead_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33321 | { (char *)"ArrowHead_swigregister", ArrowHead_swigregister, METH_VARARGS, NULL }, | |
33322 | { (char *)"new_PyLineShape", (PyCFunction) _wrap_new_PyLineShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33323 | { (char *)"PyLineShape__setCallbackInfo", (PyCFunction) _wrap_PyLineShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33324 | { (char *)"PyLineShape_AddArrow", (PyCFunction) _wrap_PyLineShape_AddArrow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33325 | { (char *)"PyLineShape_AddArrowOrdered", (PyCFunction) _wrap_PyLineShape_AddArrowOrdered, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33326 | { (char *)"PyLineShape_ClearArrow", (PyCFunction) _wrap_PyLineShape_ClearArrow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33327 | { (char *)"PyLineShape_ClearArrowsAtPosition", (PyCFunction) _wrap_PyLineShape_ClearArrowsAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33328 | { (char *)"PyLineShape_DrawArrow", (PyCFunction) _wrap_PyLineShape_DrawArrow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33329 | { (char *)"PyLineShape_DeleteArrowHeadId", (PyCFunction) _wrap_PyLineShape_DeleteArrowHeadId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33330 | { (char *)"PyLineShape_DeleteArrowHead", (PyCFunction) _wrap_PyLineShape_DeleteArrowHead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33331 | { (char *)"PyLineShape_DeleteLineControlPoint", (PyCFunction) _wrap_PyLineShape_DeleteLineControlPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33332 | { (char *)"PyLineShape_DrawArrows", (PyCFunction) _wrap_PyLineShape_DrawArrows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33333 | { (char *)"PyLineShape_DrawRegion", (PyCFunction) _wrap_PyLineShape_DrawRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33334 | { (char *)"PyLineShape_EraseRegion", (PyCFunction) _wrap_PyLineShape_EraseRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33335 | { (char *)"PyLineShape_FindArrowHeadId", (PyCFunction) _wrap_PyLineShape_FindArrowHeadId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33336 | { (char *)"PyLineShape_FindArrowHead", (PyCFunction) _wrap_PyLineShape_FindArrowHead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33337 | { (char *)"PyLineShape_FindLineEndPoints", (PyCFunction) _wrap_PyLineShape_FindLineEndPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33338 | { (char *)"PyLineShape_FindLinePosition", (PyCFunction) _wrap_PyLineShape_FindLinePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33339 | { (char *)"PyLineShape_FindMinimumWidth", (PyCFunction) _wrap_PyLineShape_FindMinimumWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33340 | { (char *)"PyLineShape_FindNth", (PyCFunction) _wrap_PyLineShape_FindNth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33341 | { (char *)"PyLineShape_GetAttachmentFrom", (PyCFunction) _wrap_PyLineShape_GetAttachmentFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33342 | { (char *)"PyLineShape_GetAttachmentTo", (PyCFunction) _wrap_PyLineShape_GetAttachmentTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33343 | { (char *)"PyLineShape_GetEnds", (PyCFunction) _wrap_PyLineShape_GetEnds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33344 | { (char *)"PyLineShape_GetFrom", (PyCFunction) _wrap_PyLineShape_GetFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33345 | { (char *)"PyLineShape_GetLabelPosition", (PyCFunction) _wrap_PyLineShape_GetLabelPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33346 | { (char *)"PyLineShape_GetNextControlPoint", (PyCFunction) _wrap_PyLineShape_GetNextControlPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33347 | { (char *)"PyLineShape_GetTo", (PyCFunction) _wrap_PyLineShape_GetTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33348 | { (char *)"PyLineShape_Initialise", (PyCFunction) _wrap_PyLineShape_Initialise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33349 | { (char *)"PyLineShape_InsertLineControlPoint", (PyCFunction) _wrap_PyLineShape_InsertLineControlPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33350 | { (char *)"PyLineShape_IsEnd", (PyCFunction) _wrap_PyLineShape_IsEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33351 | { (char *)"PyLineShape_IsSpline", (PyCFunction) _wrap_PyLineShape_IsSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33352 | { (char *)"PyLineShape_MakeLineControlPoints", (PyCFunction) _wrap_PyLineShape_MakeLineControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33353 | { (char *)"PyLineShape_GetLineControlPoints", (PyCFunction) _wrap_PyLineShape_GetLineControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33354 | { (char *)"PyLineShape_SetLineControlPoints", (PyCFunction) _wrap_PyLineShape_SetLineControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33355 | { (char *)"PyLineShape_SetAttachmentFrom", (PyCFunction) _wrap_PyLineShape_SetAttachmentFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33356 | { (char *)"PyLineShape_SetAttachments", (PyCFunction) _wrap_PyLineShape_SetAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33357 | { (char *)"PyLineShape_SetAttachmentTo", (PyCFunction) _wrap_PyLineShape_SetAttachmentTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33358 | { (char *)"PyLineShape_SetEnds", (PyCFunction) _wrap_PyLineShape_SetEnds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33359 | { (char *)"PyLineShape_SetFrom", (PyCFunction) _wrap_PyLineShape_SetFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33360 | { (char *)"PyLineShape_SetIgnoreOffsets", (PyCFunction) _wrap_PyLineShape_SetIgnoreOffsets, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33361 | { (char *)"PyLineShape_SetSpline", (PyCFunction) _wrap_PyLineShape_SetSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33362 | { (char *)"PyLineShape_SetTo", (PyCFunction) _wrap_PyLineShape_SetTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33363 | { (char *)"PyLineShape_Straighten", (PyCFunction) _wrap_PyLineShape_Straighten, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33364 | { (char *)"PyLineShape_Unlink", (PyCFunction) _wrap_PyLineShape_Unlink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33365 | { (char *)"PyLineShape_SetAlignmentOrientation", (PyCFunction) _wrap_PyLineShape_SetAlignmentOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33366 | { (char *)"PyLineShape_SetAlignmentType", (PyCFunction) _wrap_PyLineShape_SetAlignmentType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33367 | { (char *)"PyLineShape_GetAlignmentOrientation", (PyCFunction) _wrap_PyLineShape_GetAlignmentOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33368 | { (char *)"PyLineShape_GetAlignmentType", (PyCFunction) _wrap_PyLineShape_GetAlignmentType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33369 | { (char *)"PyLineShape_GetAlignmentStart", (PyCFunction) _wrap_PyLineShape_GetAlignmentStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33370 | { (char *)"PyLineShape_GetAlignmentEnd", (PyCFunction) _wrap_PyLineShape_GetAlignmentEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33371 | { (char *)"PyLineShape_base_OnDraw", (PyCFunction) _wrap_PyLineShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33372 | { (char *)"PyLineShape_base_OnDrawContents", (PyCFunction) _wrap_PyLineShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33373 | { (char *)"PyLineShape_base_OnDrawBranches", (PyCFunction) _wrap_PyLineShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33374 | { (char *)"PyLineShape_base_OnMoveLinks", (PyCFunction) _wrap_PyLineShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33375 | { (char *)"PyLineShape_base_OnErase", (PyCFunction) _wrap_PyLineShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33376 | { (char *)"PyLineShape_base_OnEraseContents", (PyCFunction) _wrap_PyLineShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33377 | { (char *)"PyLineShape_base_OnHighlight", (PyCFunction) _wrap_PyLineShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33378 | { (char *)"PyLineShape_base_OnLeftClick", (PyCFunction) _wrap_PyLineShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33379 | { (char *)"PyLineShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyLineShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33380 | { (char *)"PyLineShape_base_OnRightClick", (PyCFunction) _wrap_PyLineShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33381 | { (char *)"PyLineShape_base_OnSize", (PyCFunction) _wrap_PyLineShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33382 | { (char *)"PyLineShape_base_OnMovePre", (PyCFunction) _wrap_PyLineShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33383 | { (char *)"PyLineShape_base_OnMovePost", (PyCFunction) _wrap_PyLineShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33384 | { (char *)"PyLineShape_base_OnDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33385 | { (char *)"PyLineShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33386 | { (char *)"PyLineShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33387 | { (char *)"PyLineShape_base_OnDragRight", (PyCFunction) _wrap_PyLineShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33388 | { (char *)"PyLineShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyLineShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33389 | { (char *)"PyLineShape_base_OnEndDragRight", (PyCFunction) _wrap_PyLineShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33390 | { (char *)"PyLineShape_base_OnDrawOutline", (PyCFunction) _wrap_PyLineShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33391 | { (char *)"PyLineShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyLineShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33392 | { (char *)"PyLineShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyLineShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33393 | { (char *)"PyLineShape_base_OnMoveLink", (PyCFunction) _wrap_PyLineShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33394 | { (char *)"PyLineShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33395 | { (char *)"PyLineShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33396 | { (char *)"PyLineShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33397 | { (char *)"PyLineShape_base_OnBeginSize", (PyCFunction) _wrap_PyLineShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33398 | { (char *)"PyLineShape_base_OnEndSize", (PyCFunction) _wrap_PyLineShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33399 | { (char *)"PyLineShape_swigregister", PyLineShape_swigregister, METH_VARARGS, NULL }, | |
33400 | { (char *)"new_PyPolygonShape", (PyCFunction) _wrap_new_PyPolygonShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33401 | { (char *)"PyPolygonShape__setCallbackInfo", (PyCFunction) _wrap_PyPolygonShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33402 | { (char *)"PyPolygonShape_Create", (PyCFunction) _wrap_PyPolygonShape_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33403 | { (char *)"PyPolygonShape_AddPolygonPoint", (PyCFunction) _wrap_PyPolygonShape_AddPolygonPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33404 | { (char *)"PyPolygonShape_CalculatePolygonCentre", (PyCFunction) _wrap_PyPolygonShape_CalculatePolygonCentre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33405 | { (char *)"PyPolygonShape_DeletePolygonPoint", (PyCFunction) _wrap_PyPolygonShape_DeletePolygonPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33406 | { (char *)"PyPolygonShape_GetPoints", (PyCFunction) _wrap_PyPolygonShape_GetPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33407 | { (char *)"PyPolygonShape_GetOriginalPoints", (PyCFunction) _wrap_PyPolygonShape_GetOriginalPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33408 | { (char *)"PyPolygonShape_GetOriginalWidth", (PyCFunction) _wrap_PyPolygonShape_GetOriginalWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33409 | { (char *)"PyPolygonShape_GetOriginalHeight", (PyCFunction) _wrap_PyPolygonShape_GetOriginalHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33410 | { (char *)"PyPolygonShape_SetOriginalWidth", (PyCFunction) _wrap_PyPolygonShape_SetOriginalWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33411 | { (char *)"PyPolygonShape_SetOriginalHeight", (PyCFunction) _wrap_PyPolygonShape_SetOriginalHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33412 | { (char *)"PyPolygonShape_UpdateOriginalPoints", (PyCFunction) _wrap_PyPolygonShape_UpdateOriginalPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33413 | { (char *)"PyPolygonShape_base_OnDraw", (PyCFunction) _wrap_PyPolygonShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33414 | { (char *)"PyPolygonShape_base_OnDrawContents", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33415 | { (char *)"PyPolygonShape_base_OnDrawBranches", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33416 | { (char *)"PyPolygonShape_base_OnMoveLinks", (PyCFunction) _wrap_PyPolygonShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33417 | { (char *)"PyPolygonShape_base_OnErase", (PyCFunction) _wrap_PyPolygonShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33418 | { (char *)"PyPolygonShape_base_OnEraseContents", (PyCFunction) _wrap_PyPolygonShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33419 | { (char *)"PyPolygonShape_base_OnHighlight", (PyCFunction) _wrap_PyPolygonShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33420 | { (char *)"PyPolygonShape_base_OnLeftClick", (PyCFunction) _wrap_PyPolygonShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33421 | { (char *)"PyPolygonShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyPolygonShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33422 | { (char *)"PyPolygonShape_base_OnRightClick", (PyCFunction) _wrap_PyPolygonShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33423 | { (char *)"PyPolygonShape_base_OnSize", (PyCFunction) _wrap_PyPolygonShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33424 | { (char *)"PyPolygonShape_base_OnMovePre", (PyCFunction) _wrap_PyPolygonShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33425 | { (char *)"PyPolygonShape_base_OnMovePost", (PyCFunction) _wrap_PyPolygonShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33426 | { (char *)"PyPolygonShape_base_OnDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33427 | { (char *)"PyPolygonShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33428 | { (char *)"PyPolygonShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33429 | { (char *)"PyPolygonShape_base_OnDragRight", (PyCFunction) _wrap_PyPolygonShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33430 | { (char *)"PyPolygonShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyPolygonShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33431 | { (char *)"PyPolygonShape_base_OnEndDragRight", (PyCFunction) _wrap_PyPolygonShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33432 | { (char *)"PyPolygonShape_base_OnDrawOutline", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33433 | { (char *)"PyPolygonShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33434 | { (char *)"PyPolygonShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyPolygonShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33435 | { (char *)"PyPolygonShape_base_OnMoveLink", (PyCFunction) _wrap_PyPolygonShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33436 | { (char *)"PyPolygonShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33437 | { (char *)"PyPolygonShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33438 | { (char *)"PyPolygonShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33439 | { (char *)"PyPolygonShape_base_OnBeginSize", (PyCFunction) _wrap_PyPolygonShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33440 | { (char *)"PyPolygonShape_base_OnEndSize", (PyCFunction) _wrap_PyPolygonShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33441 | { (char *)"PyPolygonShape_swigregister", PyPolygonShape_swigregister, METH_VARARGS, NULL }, | |
33442 | { (char *)"new_PyTextShape", (PyCFunction) _wrap_new_PyTextShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33443 | { (char *)"PyTextShape__setCallbackInfo", (PyCFunction) _wrap_PyTextShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33444 | { (char *)"PyTextShape_base_OnDelete", (PyCFunction) _wrap_PyTextShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33445 | { (char *)"PyTextShape_base_OnDraw", (PyCFunction) _wrap_PyTextShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33446 | { (char *)"PyTextShape_base_OnDrawContents", (PyCFunction) _wrap_PyTextShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33447 | { (char *)"PyTextShape_base_OnDrawBranches", (PyCFunction) _wrap_PyTextShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33448 | { (char *)"PyTextShape_base_OnMoveLinks", (PyCFunction) _wrap_PyTextShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33449 | { (char *)"PyTextShape_base_OnErase", (PyCFunction) _wrap_PyTextShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33450 | { (char *)"PyTextShape_base_OnEraseContents", (PyCFunction) _wrap_PyTextShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33451 | { (char *)"PyTextShape_base_OnHighlight", (PyCFunction) _wrap_PyTextShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33452 | { (char *)"PyTextShape_base_OnLeftClick", (PyCFunction) _wrap_PyTextShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33453 | { (char *)"PyTextShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyTextShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33454 | { (char *)"PyTextShape_base_OnRightClick", (PyCFunction) _wrap_PyTextShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33455 | { (char *)"PyTextShape_base_OnSize", (PyCFunction) _wrap_PyTextShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33456 | { (char *)"PyTextShape_base_OnMovePre", (PyCFunction) _wrap_PyTextShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33457 | { (char *)"PyTextShape_base_OnMovePost", (PyCFunction) _wrap_PyTextShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33458 | { (char *)"PyTextShape_base_OnDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33459 | { (char *)"PyTextShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33460 | { (char *)"PyTextShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33461 | { (char *)"PyTextShape_base_OnDragRight", (PyCFunction) _wrap_PyTextShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33462 | { (char *)"PyTextShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyTextShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33463 | { (char *)"PyTextShape_base_OnEndDragRight", (PyCFunction) _wrap_PyTextShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33464 | { (char *)"PyTextShape_base_OnDrawOutline", (PyCFunction) _wrap_PyTextShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33465 | { (char *)"PyTextShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyTextShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33466 | { (char *)"PyTextShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyTextShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33467 | { (char *)"PyTextShape_base_OnMoveLink", (PyCFunction) _wrap_PyTextShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33468 | { (char *)"PyTextShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33469 | { (char *)"PyTextShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33470 | { (char *)"PyTextShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33471 | { (char *)"PyTextShape_base_OnBeginSize", (PyCFunction) _wrap_PyTextShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33472 | { (char *)"PyTextShape_base_OnEndSize", (PyCFunction) _wrap_PyTextShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33473 | { (char *)"PyTextShape_swigregister", PyTextShape_swigregister, METH_VARARGS, NULL }, | |
33474 | { (char *)"new_Diagram", (PyCFunction) _wrap_new_Diagram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33475 | { (char *)"Diagram_AddShape", (PyCFunction) _wrap_Diagram_AddShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33476 | { (char *)"Diagram_Clear", (PyCFunction) _wrap_Diagram_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33477 | { (char *)"Diagram_DeleteAllShapes", (PyCFunction) _wrap_Diagram_DeleteAllShapes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33478 | { (char *)"Diagram_DrawOutline", (PyCFunction) _wrap_Diagram_DrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33479 | { (char *)"Diagram_FindShape", (PyCFunction) _wrap_Diagram_FindShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33480 | { (char *)"Diagram_GetCanvas", (PyCFunction) _wrap_Diagram_GetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33481 | { (char *)"Diagram_GetCount", (PyCFunction) _wrap_Diagram_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33482 | { (char *)"Diagram_GetGridSpacing", (PyCFunction) _wrap_Diagram_GetGridSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33483 | { (char *)"Diagram_GetMouseTolerance", (PyCFunction) _wrap_Diagram_GetMouseTolerance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33484 | { (char *)"Diagram_GetShapeList", (PyCFunction) _wrap_Diagram_GetShapeList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33485 | { (char *)"Diagram_GetQuickEditMode", (PyCFunction) _wrap_Diagram_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33486 | { (char *)"Diagram_GetSnapToGrid", (PyCFunction) _wrap_Diagram_GetSnapToGrid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33487 | { (char *)"Diagram_InsertShape", (PyCFunction) _wrap_Diagram_InsertShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33488 | { (char *)"Diagram_RecentreAll", (PyCFunction) _wrap_Diagram_RecentreAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33489 | { (char *)"Diagram_Redraw", (PyCFunction) _wrap_Diagram_Redraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33490 | { (char *)"Diagram_RemoveAllShapes", (PyCFunction) _wrap_Diagram_RemoveAllShapes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33491 | { (char *)"Diagram_RemoveShape", (PyCFunction) _wrap_Diagram_RemoveShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33492 | { (char *)"Diagram_SetCanvas", (PyCFunction) _wrap_Diagram_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33493 | { (char *)"Diagram_SetGridSpacing", (PyCFunction) _wrap_Diagram_SetGridSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33494 | { (char *)"Diagram_SetMouseTolerance", (PyCFunction) _wrap_Diagram_SetMouseTolerance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33495 | { (char *)"Diagram_SetQuickEditMode", (PyCFunction) _wrap_Diagram_SetQuickEditMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33496 | { (char *)"Diagram_SetSnapToGrid", (PyCFunction) _wrap_Diagram_SetSnapToGrid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33497 | { (char *)"Diagram_ShowAll", (PyCFunction) _wrap_Diagram_ShowAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33498 | { (char *)"Diagram_Snap", (PyCFunction) _wrap_Diagram_Snap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33499 | { (char *)"Diagram_swigregister", Diagram_swigregister, METH_VARARGS, NULL }, | |
33500 | { (char *)"new_PyShapeCanvas", (PyCFunction) _wrap_new_PyShapeCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33501 | { (char *)"PyShapeCanvas__setCallbackInfo", (PyCFunction) _wrap_PyShapeCanvas__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33502 | { (char *)"PyShapeCanvas_AddShape", (PyCFunction) _wrap_PyShapeCanvas_AddShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33503 | { (char *)"PyShapeCanvas_FindShape", (PyCFunction) _wrap_PyShapeCanvas_FindShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33504 | { (char *)"PyShapeCanvas_FindFirstSensitiveShape", (PyCFunction) _wrap_PyShapeCanvas_FindFirstSensitiveShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33505 | { (char *)"PyShapeCanvas_GetDiagram", (PyCFunction) _wrap_PyShapeCanvas_GetDiagram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33506 | { (char *)"PyShapeCanvas_GetQuickEditMode", (PyCFunction) _wrap_PyShapeCanvas_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33507 | { (char *)"PyShapeCanvas_InsertShape", (PyCFunction) _wrap_PyShapeCanvas_InsertShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33508 | { (char *)"PyShapeCanvas_base_OnBeginDragLeft", (PyCFunction) _wrap_PyShapeCanvas_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33509 | { (char *)"PyShapeCanvas_base_OnBeginDragRight", (PyCFunction) _wrap_PyShapeCanvas_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33510 | { (char *)"PyShapeCanvas_base_OnEndDragLeft", (PyCFunction) _wrap_PyShapeCanvas_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33511 | { (char *)"PyShapeCanvas_base_OnEndDragRight", (PyCFunction) _wrap_PyShapeCanvas_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33512 | { (char *)"PyShapeCanvas_base_OnDragLeft", (PyCFunction) _wrap_PyShapeCanvas_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33513 | { (char *)"PyShapeCanvas_base_OnDragRight", (PyCFunction) _wrap_PyShapeCanvas_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33514 | { (char *)"PyShapeCanvas_base_OnLeftClick", (PyCFunction) _wrap_PyShapeCanvas_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33515 | { (char *)"PyShapeCanvas_base_OnRightClick", (PyCFunction) _wrap_PyShapeCanvas_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33516 | { (char *)"PyShapeCanvas_Redraw", (PyCFunction) _wrap_PyShapeCanvas_Redraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33517 | { (char *)"PyShapeCanvas_RemoveShape", (PyCFunction) _wrap_PyShapeCanvas_RemoveShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33518 | { (char *)"PyShapeCanvas_SetDiagram", (PyCFunction) _wrap_PyShapeCanvas_SetDiagram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33519 | { (char *)"PyShapeCanvas_Snap", (PyCFunction) _wrap_PyShapeCanvas_Snap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33520 | { (char *)"PyShapeCanvas_swigregister", PyShapeCanvas_swigregister, METH_VARARGS, NULL }, | |
33521 | { (char *)"OGLInitialize", (PyCFunction) _wrap_OGLInitialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33522 | { (char *)"OGLCleanUp", (PyCFunction) _wrap_OGLCleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33523 | { NULL, NULL, 0, NULL } | |
33524 | }; | |
33525 | ||
33526 | ||
33527 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
33528 | ||
33529 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
33530 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
33531 | } | |
33532 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
33533 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
33534 | } | |
33535 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
33536 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33537 | } | |
33538 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
33539 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33540 | } | |
33541 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
33542 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33543 | } | |
33544 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
33545 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
33546 | } | |
33547 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
33548 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33549 | } | |
33550 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
33551 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
33552 | } | |
33553 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
33554 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33555 | } | |
33556 | static void *_p_wxPyShapeCanvasTo_p_wxPanel(void *x) { | |
33557 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
33558 | } | |
33559 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
33560 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33561 | } | |
33562 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
33563 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33564 | } | |
33565 | static void *_p_wxPyShapeCanvasTo_p_wxScrolledWindow(void *x) { | |
33566 | return (void *)((wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
33567 | } | |
33568 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
33569 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
33570 | } | |
33571 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
33572 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
33573 | } | |
33574 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
33575 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
33576 | } | |
33577 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
33578 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33579 | } | |
33580 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
33581 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
33582 | } | |
33583 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
33584 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
33585 | } | |
33586 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
33587 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
33588 | } | |
33589 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
33590 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
33591 | } | |
33592 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
33593 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33594 | } | |
33595 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
33596 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33597 | } | |
33598 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
33599 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
33600 | } | |
33601 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
33602 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
33603 | } | |
33604 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
33605 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
33606 | } | |
33607 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
33608 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
33609 | } | |
33610 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
33611 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
33612 | } | |
33613 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
33614 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
33615 | } | |
33616 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
33617 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
33618 | } | |
33619 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
33620 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
33621 | } | |
33622 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
33623 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
33624 | } | |
33625 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
33626 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
33627 | } | |
33628 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
33629 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
33630 | } | |
33631 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
33632 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
33633 | } | |
33634 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
33635 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
33636 | } | |
33637 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
33638 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
33639 | } | |
33640 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
33641 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33642 | } | |
33643 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
33644 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33645 | } | |
33646 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
33647 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
33648 | } | |
33649 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
33650 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
33651 | } | |
33652 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
33653 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
33654 | } | |
33655 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33656 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33657 | } | |
33658 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
33659 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
33660 | } | |
33661 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
33662 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33663 | } | |
33664 | static void *_p_wxPyShapeCanvasTo_p_wxWindow(void *x) { | |
33665 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
33666 | } | |
33667 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
33668 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33669 | } | |
33670 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
33671 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33672 | } | |
33673 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
33674 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
33675 | } | |
33676 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
33677 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33678 | } | |
33679 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
33680 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
33681 | } | |
33682 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
33683 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
33684 | } | |
33685 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
33686 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
33687 | } | |
33688 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
33689 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
33690 | } | |
33691 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
33692 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
33693 | } | |
33694 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
33695 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
33696 | } | |
33697 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
33698 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
33699 | } | |
33700 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
33701 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
33702 | } | |
33703 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
33704 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
33705 | } | |
33706 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
33707 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
33708 | } | |
33709 | static void *_p_wxPyControlPointTo_p_wxObject(void *x) { | |
33710 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
33711 | } | |
33712 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
33713 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
33714 | } | |
33715 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
33716 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
33717 | } | |
33718 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
33719 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
33720 | } | |
33721 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
33722 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
33723 | } | |
33724 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
33725 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
33726 | } | |
33727 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
33728 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
33729 | } | |
33730 | static void *_p_wxOGLConstraintTo_p_wxObject(void *x) { | |
33731 | return (void *)((wxObject *) ((wxOGLConstraint *) x)); | |
33732 | } | |
33733 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
33734 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
33735 | } | |
33736 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
33737 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
33738 | } | |
33739 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
33740 | return (void *)((wxObject *) ((wxSizer *) x)); | |
33741 | } | |
33742 | static void *_p_wxPyDrawnShapeTo_p_wxObject(void *x) { | |
33743 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
33744 | } | |
33745 | static void *_p_wxPyDivisionShapeTo_p_wxObject(void *x) { | |
33746 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *)(wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
33747 | } | |
33748 | static void *_p_wxPyPolygonShapeTo_p_wxObject(void *x) { | |
33749 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyPolygonShape *) x)); | |
33750 | } | |
33751 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
33752 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
33753 | } | |
33754 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
33755 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33756 | } | |
33757 | static void *_p_wxArrowHeadTo_p_wxObject(void *x) { | |
33758 | return (void *)((wxObject *) ((wxArrowHead *) x)); | |
33759 | } | |
33760 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
33761 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
33762 | } | |
33763 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
33764 | return (void *)((wxObject *) ((wxEvent *) x)); | |
33765 | } | |
33766 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
33767 | return (void *)((wxObject *) ((wxFontData *) x)); | |
33768 | } | |
33769 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
33770 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
33771 | } | |
33772 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
33773 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
33774 | } | |
33775 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
33776 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
33777 | } | |
33778 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
33779 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
33780 | } | |
33781 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
33782 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
33783 | } | |
33784 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { | |
33785 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
33786 | } | |
33787 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
33788 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
33789 | } | |
33790 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
33791 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
33792 | } | |
33793 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
33794 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
33795 | } | |
33796 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
33797 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33798 | } | |
33799 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
33800 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33801 | } | |
33802 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
33803 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33804 | } | |
33805 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
33806 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33807 | } | |
33808 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
33809 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33810 | } | |
33811 | static void *_p_wxPyShapeCanvasTo_p_wxObject(void *x) { | |
33812 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
33813 | } | |
33814 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
33815 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
33816 | } | |
33817 | static void *_p_wxPyEllipseShapeTo_p_wxObject(void *x) { | |
33818 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyEllipseShape *) x)); | |
33819 | } | |
33820 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
33821 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
33822 | } | |
33823 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
33824 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
33825 | } | |
33826 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
33827 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
33828 | } | |
33829 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
33830 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
33831 | } | |
33832 | static void *_p_wxPyBitmapShapeTo_p_wxObject(void *x) { | |
33833 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
33834 | } | |
33835 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
33836 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
33837 | } | |
33838 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
33839 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
33840 | } | |
33841 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
33842 | return (void *)((wxObject *) ((wxColourData *) x)); | |
33843 | } | |
33844 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
33845 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
33846 | } | |
33847 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
33848 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33849 | } | |
33850 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
33851 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
33852 | } | |
33853 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
33854 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
33855 | } | |
33856 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
33857 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
33858 | } | |
33859 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
33860 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33861 | } | |
33862 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
33863 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33864 | } | |
33865 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
33866 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
33867 | } | |
33868 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
33869 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
33870 | } | |
33871 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
33872 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
33873 | } | |
33874 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
33875 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
33876 | } | |
33877 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
33878 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
33879 | } | |
33880 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
33881 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
33882 | } | |
33883 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
33884 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
33885 | } | |
33886 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
33887 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
33888 | } | |
33889 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
33890 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33891 | } | |
33892 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
33893 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33894 | } | |
33895 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
33896 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
33897 | } | |
33898 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
33899 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
33900 | } | |
33901 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
33902 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
33903 | } | |
33904 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
33905 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
33906 | } | |
33907 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
33908 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
33909 | } | |
33910 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
33911 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
33912 | } | |
33913 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
33914 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
33915 | } | |
33916 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
33917 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
33918 | } | |
33919 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
33920 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
33921 | } | |
33922 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
33923 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
33924 | } | |
33925 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
33926 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
33927 | } | |
33928 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
33929 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
33930 | } | |
33931 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
33932 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
33933 | } | |
33934 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
33935 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
33936 | } | |
33937 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
33938 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
33939 | } | |
33940 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
33941 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
33942 | } | |
33943 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
33944 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
33945 | } | |
33946 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
33947 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
33948 | } | |
33949 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
33950 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
33951 | } | |
33952 | static void *_p_wxPyShapeEvtHandlerTo_p_wxObject(void *x) { | |
33953 | return (void *)((wxObject *) ((wxPyShapeEvtHandler *) x)); | |
33954 | } | |
33955 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
33956 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33957 | } | |
33958 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
33959 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33960 | } | |
33961 | static void *_p_wxPyTextShapeTo_p_wxObject(void *x) { | |
33962 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
33963 | } | |
33964 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
33965 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
33966 | } | |
33967 | static void *_p_wxPyDividedShapeTo_p_wxObject(void *x) { | |
33968 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
33969 | } | |
33970 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
33971 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
33972 | } | |
33973 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
33974 | return (void *)((wxObject *) ((wxImage *) x)); | |
33975 | } | |
33976 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
33977 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
33978 | } | |
33979 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
33980 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
33981 | } | |
33982 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
33983 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
33984 | } | |
33985 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
33986 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
33987 | } | |
33988 | static void *_p_wxDiagramTo_p_wxObject(void *x) { | |
33989 | return (void *)((wxObject *) ((wxDiagram *) x)); | |
33990 | } | |
33991 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
33992 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
33993 | } | |
33994 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
33995 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
33996 | } | |
33997 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
33998 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33999 | } | |
34000 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
34001 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
34002 | } | |
34003 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
34004 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
34005 | } | |
34006 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
34007 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
34008 | } | |
34009 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
34010 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
34011 | } | |
34012 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
34013 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
34014 | } | |
34015 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
34016 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
34017 | } | |
34018 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
34019 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
34020 | } | |
34021 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
34022 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
34023 | } | |
34024 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
34025 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
34026 | } | |
34027 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
34028 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
34029 | } | |
34030 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
34031 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
34032 | } | |
34033 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
34034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
34035 | } | |
34036 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
34037 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
34038 | } | |
34039 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
34040 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
34041 | } | |
34042 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
34043 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
34044 | } | |
34045 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
34046 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
34047 | } | |
34048 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
34049 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
34050 | } | |
34051 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
34052 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
34053 | } | |
34054 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
34055 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
34056 | } | |
34057 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
34058 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
34059 | } | |
34060 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
34061 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
34062 | } | |
34063 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
34064 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
34065 | } | |
34066 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
34067 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
34068 | } | |
34069 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
34070 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
34071 | } | |
34072 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
34073 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
34074 | } | |
34075 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
34076 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
34077 | } | |
34078 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
34079 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
34080 | } | |
34081 | static void *_p_wxAttachmentPointTo_p_wxObject(void *x) { | |
34082 | return (void *)((wxObject *) ((wxAttachmentPoint *) x)); | |
34083 | } | |
34084 | static void *_p_wxPyShapeTo_p_wxObject(void *x) { | |
34085 | return (void *)((wxObject *) (wxPyShapeEvtHandler *) ((wxPyShape *) x)); | |
34086 | } | |
34087 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
34088 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
34089 | } | |
34090 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
34091 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
34092 | } | |
34093 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
34094 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
34095 | } | |
34096 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
34097 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
34098 | } | |
34099 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
34100 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
34101 | } | |
34102 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
34103 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
34104 | } | |
34105 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
34106 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
34107 | } | |
34108 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
34109 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
34110 | } | |
34111 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
34112 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
34113 | } | |
34114 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
34115 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
34116 | } | |
34117 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
34118 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
34119 | } | |
34120 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
34121 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
34122 | } | |
34123 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
34124 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
34125 | } | |
34126 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
34127 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
34128 | } | |
34129 | static void *_p_wxPyRectangleShapeTo_p_wxObject(void *x) { | |
34130 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyRectangleShape *) x)); | |
34131 | } | |
34132 | static void *_p_wxPyCompositeShapeTo_p_wxObject(void *x) { | |
34133 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
34134 | } | |
34135 | static void *_p_wxPyCircleShapeTo_p_wxObject(void *x) { | |
34136 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
34137 | } | |
34138 | static void *_p_wxPyLineShapeTo_p_wxObject(void *x) { | |
34139 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyLineShape *) x)); | |
34140 | } | |
34141 | static void *_p_wxPseudoMetaFileTo_p_wxObject(void *x) { | |
34142 | return (void *)((wxObject *) ((wxPseudoMetaFile *) x)); | |
34143 | } | |
34144 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
34145 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
34146 | } | |
34147 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
34148 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
34149 | } | |
34150 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
34151 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
34152 | } | |
34153 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
34154 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
34155 | } | |
34156 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
34157 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
34158 | } | |
34159 | static void *_p_wxShapeRegionTo_p_wxObject(void *x) { | |
34160 | return (void *)((wxObject *) ((wxShapeRegion *) x)); | |
34161 | } | |
34162 | static void *_p_wxPyRectangleShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34163 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyRectangleShape *) x)); | |
34164 | } | |
34165 | static void *_p_wxPyBitmapShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34166 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
34167 | } | |
34168 | static void *_p_wxPyCompositeShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34169 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
34170 | } | |
34171 | static void *_p_wxPyCircleShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34172 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
34173 | } | |
34174 | static void *_p_wxPyLineShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34175 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyLineShape *) x)); | |
34176 | } | |
34177 | static void *_p_wxPyTextShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34178 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
34179 | } | |
34180 | static void *_p_wxPyControlPointTo_p_wxPyShapeEvtHandler(void *x) { | |
34181 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
34182 | } | |
34183 | static void *_p_wxPyDrawnShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34184 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
34185 | } | |
34186 | static void *_p_wxPyDivisionShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34187 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *)(wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
34188 | } | |
34189 | static void *_p_wxPyPolygonShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34190 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyPolygonShape *) x)); | |
34191 | } | |
34192 | static void *_p_wxPyDividedShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34193 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
34194 | } | |
34195 | static void *_p_wxPyShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34196 | return (void *)((wxPyShapeEvtHandler *) ((wxPyShape *) x)); | |
34197 | } | |
34198 | static void *_p_wxPyEllipseShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34199 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyEllipseShape *) x)); | |
34200 | } | |
34201 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
34202 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
34203 | } | |
34204 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
34205 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
34206 | } | |
34207 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
34208 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
34209 | } | |
34210 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
34211 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
34212 | } | |
34213 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
34214 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
34215 | } | |
34216 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
34217 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
34218 | } | |
34219 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
34220 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
34221 | } | |
34222 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
34223 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
34224 | } | |
34225 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
34226 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
34227 | } | |
34228 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
34229 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
34230 | } | |
34231 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
34232 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
34233 | } | |
34234 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
34235 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
34236 | } | |
34237 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
34238 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
34239 | } | |
34240 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
34241 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
34242 | } | |
34243 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
34244 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
34245 | } | |
34246 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
34247 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
34248 | } | |
34249 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
34250 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
34251 | } | |
34252 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
34253 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
34254 | } | |
34255 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
34256 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
34257 | } | |
34258 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
34259 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
34260 | } | |
34261 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
34262 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
34263 | } | |
34264 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
34265 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
34266 | } | |
34267 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
34268 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
34269 | } | |
34270 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
34271 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
34272 | } | |
34273 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
34274 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
34275 | } | |
34276 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
34277 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
34278 | } | |
34279 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
34280 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
34281 | } | |
34282 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
34283 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
34284 | } | |
34285 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
34286 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
34287 | } | |
34288 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
34289 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
34290 | } | |
34291 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
34292 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
34293 | } | |
34294 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
34295 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
34296 | } | |
34297 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
34298 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
34299 | } | |
34300 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
34301 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
34302 | } | |
34303 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
34304 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
34305 | } | |
34306 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
34307 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
34308 | } | |
34309 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
34310 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
34311 | } | |
34312 | static void *_p_wxPyShapeCanvasTo_p_wxEvtHandler(void *x) { | |
34313 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
34314 | } | |
34315 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
34316 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
34317 | } | |
34318 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
34319 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
34320 | } | |
34321 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
34322 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
34323 | } | |
34324 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
34325 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
34326 | } | |
34327 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { | |
34328 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
34329 | } | |
34330 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
34331 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
34332 | } | |
34333 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
34334 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
34335 | } | |
34336 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
34337 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
34338 | } | |
34339 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
34340 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
34341 | } | |
34342 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
34343 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
34344 | } | |
34345 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
34346 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
34347 | } | |
34348 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
34349 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
34350 | } | |
34351 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
34352 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
34353 | } | |
34354 | static void *_p_wxPyCircleShapeTo_p_wxPyEllipseShape(void *x) { | |
34355 | return (void *)((wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
34356 | } | |
34357 | static void *_p_wxPyRectangleShapeTo_p_wxPyShape(void *x) { | |
34358 | return (void *)((wxPyShape *) ((wxPyRectangleShape *) x)); | |
34359 | } | |
34360 | static void *_p_wxPyBitmapShapeTo_p_wxPyShape(void *x) { | |
34361 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
34362 | } | |
34363 | static void *_p_wxPyCompositeShapeTo_p_wxPyShape(void *x) { | |
34364 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
34365 | } | |
34366 | static void *_p_wxPyCircleShapeTo_p_wxPyShape(void *x) { | |
34367 | return (void *)((wxPyShape *) (wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
34368 | } | |
34369 | static void *_p_wxPyLineShapeTo_p_wxPyShape(void *x) { | |
34370 | return (void *)((wxPyShape *) ((wxPyLineShape *) x)); | |
34371 | } | |
34372 | static void *_p_wxPyTextShapeTo_p_wxPyShape(void *x) { | |
34373 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
34374 | } | |
34375 | static void *_p_wxPyControlPointTo_p_wxPyShape(void *x) { | |
34376 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
34377 | } | |
34378 | static void *_p_wxPyDrawnShapeTo_p_wxPyShape(void *x) { | |
34379 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
34380 | } | |
34381 | static void *_p_wxPyDivisionShapeTo_p_wxPyShape(void *x) { | |
34382 | return (void *)((wxPyShape *) (wxPyRectangleShape *)(wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
34383 | } | |
34384 | static void *_p_wxPyPolygonShapeTo_p_wxPyShape(void *x) { | |
34385 | return (void *)((wxPyShape *) ((wxPyPolygonShape *) x)); | |
34386 | } | |
34387 | static void *_p_wxPyDividedShapeTo_p_wxPyShape(void *x) { | |
34388 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
34389 | } | |
34390 | static void *_p_wxPyEllipseShapeTo_p_wxPyShape(void *x) { | |
34391 | return (void *)((wxPyShape *) ((wxPyEllipseShape *) x)); | |
34392 | } | |
34393 | static void *_p_wxPyBitmapShapeTo_p_wxPyRectangleShape(void *x) { | |
34394 | return (void *)((wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
34395 | } | |
34396 | static void *_p_wxPyCompositeShapeTo_p_wxPyRectangleShape(void *x) { | |
34397 | return (void *)((wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
34398 | } | |
34399 | static void *_p_wxPyTextShapeTo_p_wxPyRectangleShape(void *x) { | |
34400 | return (void *)((wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
34401 | } | |
34402 | static void *_p_wxPyControlPointTo_p_wxPyRectangleShape(void *x) { | |
34403 | return (void *)((wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
34404 | } | |
34405 | static void *_p_wxPyDrawnShapeTo_p_wxPyRectangleShape(void *x) { | |
34406 | return (void *)((wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
34407 | } | |
34408 | static void *_p_wxPyDivisionShapeTo_p_wxPyRectangleShape(void *x) { | |
34409 | return (void *)((wxPyRectangleShape *) (wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
34410 | } | |
34411 | static void *_p_wxPyDividedShapeTo_p_wxPyRectangleShape(void *x) { | |
34412 | return (void *)((wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
34413 | } | |
34414 | static void *_p_wxPyDivisionShapeTo_p_wxPyCompositeShape(void *x) { | |
34415 | return (void *)((wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
34416 | } | |
34417 | static swig_type_info _swigt__p_wxOGLConstraint[] = {{"_p_wxOGLConstraint", 0, "wxOGLConstraint *", 0, 0, 0, 0},{"_p_wxOGLConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34418 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0, 0, 0, 0},{"_p_wxBrush", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34419 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34420 | static swig_type_info _swigt__p_wxShapeRegion[] = {{"_p_wxShapeRegion", 0, "wxShapeRegion *", 0, 0, 0, 0},{"_p_wxShapeRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34421 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34422 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0, 0, 0, 0},{"_p_wxRealPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34423 | static swig_type_info _swigt__p_wxPyControlPoint[] = {{"_p_wxPyControlPoint", 0, "wxPyControlPoint *", 0, 0, 0, 0},{"_p_wxPyControlPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34424 | static swig_type_info _swigt__p_wxArrowHead[] = {{"_p_wxArrowHead", 0, "wxArrowHead *", 0, 0, 0, 0},{"_p_wxArrowHead", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34425 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34426 | static swig_type_info _swigt__p_wxStringList[] = {{"_p_wxStringList", 0, "wxStringList *", 0, 0, 0, 0},{"_p_wxStringList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34427 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34428 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0, 0, 0, 0},{"_p_bool", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34429 | static swig_type_info _swigt__p_wxList[] = {{"_p_wxList", 0, "wxList *", 0, 0, 0, 0},{"_p_wxList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34430 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34431 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0, 0, 0, 0},{"_p_wxScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34432 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34433 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34434 | static swig_type_info _swigt__p_wxPyDivisionShape[] = {{"_p_wxPyDivisionShape", 0, "wxPyDivisionShape *", 0, 0, 0, 0},{"_p_wxPyDivisionShape", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34435 | static swig_type_info _swigt__p_wxPyDrawnShape[] = {{"_p_wxPyDrawnShape", 0, "wxPyDrawnShape *", 0, 0, 0, 0},{"_p_wxPyDrawnShape", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34436 | static swig_type_info _swigt__p_wxPyPolygonShape[] = {{"_p_wxPyPolygonShape", 0, "wxPyPolygonShape *", 0, 0, 0, 0},{"_p_wxPyPolygonShape", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34437 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34438 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControlPoint", _p_wxPyControlPointTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxOGLConstraint", _p_wxOGLConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPolygonShape", _p_wxPyPolygonShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyDrawnShape", _p_wxPyDrawnShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxArrowHead", _p_wxArrowHeadTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTaskBarIcon", _p_wxPyTaskBarIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEllipseShape", _p_wxPyEllipseShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapShape", _p_wxPyBitmapShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyShapeEvtHandler", _p_wxPyShapeEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTextShape", _p_wxPyTextShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyDividedShape", _p_wxPyDividedShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDiagram", _p_wxDiagramTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyShape", _p_wxPyShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAttachmentPoint", _p_wxAttachmentPointTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCircleShape", _p_wxPyCircleShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyLineShape", _p_wxPyLineShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCompositeShape", _p_wxPyCompositeShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyRectangleShape", _p_wxPyRectangleShapeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPseudoMetaFile", _p_wxPseudoMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShapeRegion", _p_wxShapeRegionTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34439 | static swig_type_info _swigt__p_wxPyBitmapShape[] = {{"_p_wxPyBitmapShape", 0, "wxPyBitmapShape *", 0, 0, 0, 0},{"_p_wxPyBitmapShape", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34440 | static swig_type_info _swigt__p_wxPyShapeEvtHandler[] = {{"_p_wxPyShapeEvtHandler", 0, "wxPyShapeEvtHandler *", 0, 0, 0, 0},{"_p_wxPyControlPoint", _p_wxPyControlPointTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyRectangleShape", _p_wxPyRectangleShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyCompositeShape", _p_wxPyCompositeShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyCircleShape", _p_wxPyCircleShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyLineShape", _p_wxPyLineShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyDividedShape", _p_wxPyDividedShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyEllipseShape", _p_wxPyEllipseShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPolygonShape", _p_wxPyPolygonShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyDrawnShape", _p_wxPyDrawnShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyShape", _p_wxPyShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyShapeEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyBitmapShape", _p_wxPyBitmapShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTextShape", _p_wxPyTextShapeTo_p_wxPyShapeEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34441 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyShapeCanvas", _p_wxPyShapeCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTaskBarIcon", _p_wxPyTaskBarIconTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34442 | static swig_type_info _swigt__p_wxPyEllipseShape[] = {{"_p_wxPyEllipseShape", 0, "wxPyEllipseShape *", 0, 0, 0, 0},{"_p_wxPyCircleShape", _p_wxPyCircleShapeTo_p_wxPyEllipseShape, 0, 0, 0, 0, 0},{"_p_wxPyEllipseShape", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34443 | static swig_type_info _swigt__p_wxPyShapeCanvas[] = {{"_p_wxPyShapeCanvas", 0, "wxPyShapeCanvas *", 0, 0, 0, 0},{"_p_wxPyShapeCanvas", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34444 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34445 | static swig_type_info _swigt__p_wxDiagram[] = {{"_p_wxDiagram", 0, "wxDiagram *", 0, 0, 0, 0},{"_p_wxDiagram", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34446 | static swig_type_info _swigt__p_wxPyShape[] = {{"_p_wxPyShape", 0, "wxPyShape *", 0, 0, 0, 0},{"_p_wxPyRectangleShape", _p_wxPyRectangleShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyBitmapShape", _p_wxPyBitmapShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyCompositeShape", _p_wxPyCompositeShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyCircleShape", _p_wxPyCircleShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyLineShape", _p_wxPyLineShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyTextShape", _p_wxPyTextShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyControlPoint", _p_wxPyControlPointTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyDrawnShape", _p_wxPyDrawnShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyPolygonShape", _p_wxPyPolygonShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyDividedShape", _p_wxPyDividedShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{"_p_wxPyShape", 0, 0, 0, 0, 0, 0},{"_p_wxPyEllipseShape", _p_wxPyEllipseShapeTo_p_wxPyShape, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34447 | static swig_type_info _swigt__p_wxAttachmentPoint[] = {{"_p_wxAttachmentPoint", 0, "wxAttachmentPoint *", 0, 0, 0, 0},{"_p_wxAttachmentPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34448 | static swig_type_info _swigt__p_wxClassInfo[] = {{"_p_wxClassInfo", 0, "wxClassInfo *", 0, 0, 0, 0},{"_p_wxClassInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34449 | static swig_type_info _swigt__p_wxPyLineShape[] = {{"_p_wxPyLineShape", 0, "wxPyLineShape *", 0, 0, 0, 0},{"_p_wxPyLineShape", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34450 | static swig_type_info _swigt__p_wxPyRectangleShape[] = {{"_p_wxPyRectangleShape", 0, "wxPyRectangleShape *", 0, 0, 0, 0},{"_p_wxPyRectangleShape", 0, 0, 0, 0, 0, 0},{"_p_wxPyBitmapShape", _p_wxPyBitmapShapeTo_p_wxPyRectangleShape, 0, 0, 0, 0, 0},{"_p_wxPyCompositeShape", _p_wxPyCompositeShapeTo_p_wxPyRectangleShape, 0, 0, 0, 0, 0},{"_p_wxPyTextShape", _p_wxPyTextShapeTo_p_wxPyRectangleShape, 0, 0, 0, 0, 0},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxPyRectangleShape, 0, 0, 0, 0, 0},{"_p_wxPyControlPoint", _p_wxPyControlPointTo_p_wxPyRectangleShape, 0, 0, 0, 0, 0},{"_p_wxPyDrawnShape", _p_wxPyDrawnShapeTo_p_wxPyRectangleShape, 0, 0, 0, 0, 0},{"_p_wxPyDividedShape", _p_wxPyDividedShapeTo_p_wxPyRectangleShape, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34451 | static swig_type_info _swigt__p_wxPyCompositeShape[] = {{"_p_wxPyCompositeShape", 0, "wxPyCompositeShape *", 0, 0, 0, 0},{"_p_wxPyCompositeShape", 0, 0, 0, 0, 0, 0},{"_p_wxPyDivisionShape", _p_wxPyDivisionShapeTo_p_wxPyCompositeShape, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34452 | static swig_type_info _swigt__p_wxPyCircleShape[] = {{"_p_wxPyCircleShape", 0, "wxPyCircleShape *", 0, 0, 0, 0},{"_p_wxPyCircleShape", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34453 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34454 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34455 | static swig_type_info _swigt__p_wxPseudoMetaFile[] = {{"_p_wxPseudoMetaFile", 0, "wxPseudoMetaFile *", 0, 0, 0, 0},{"_p_wxPseudoMetaFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34456 | static swig_type_info _swigt__p_wxPyTextShape[] = {{"_p_wxPyTextShape", 0, "wxPyTextShape *", 0, 0, 0, 0},{"_p_wxPyTextShape", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34457 | static swig_type_info _swigt__p_wxPyDividedShape[] = {{"_p_wxPyDividedShape", 0, "wxPyDividedShape *", 0, 0, 0, 0},{"_p_wxPyDividedShape", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
34458 | ||
34459 | static swig_type_info *swig_types_initial[] = { | |
34460 | _swigt__p_wxOGLConstraint, | |
34461 | _swigt__p_wxBrush, | |
34462 | _swigt__p_wxColour, | |
34463 | _swigt__p_wxShapeRegion, | |
34464 | _swigt__p_wxDC, | |
34465 | _swigt__p_wxRealPoint, | |
34466 | _swigt__p_wxPyControlPoint, | |
34467 | _swigt__p_wxArrowHead, | |
34468 | _swigt__p_char, | |
34469 | _swigt__p_wxStringList, | |
34470 | _swigt__p_wxPanel, | |
34471 | _swigt__p_bool, | |
34472 | _swigt__p_wxList, | |
34473 | _swigt__p_wxFont, | |
34474 | _swigt__p_wxScrolledWindow, | |
34475 | _swigt__p_wxWindow, | |
34476 | _swigt__p_double, | |
34477 | _swigt__p_wxPyDivisionShape, | |
34478 | _swigt__p_wxPyDrawnShape, | |
34479 | _swigt__p_wxPyPolygonShape, | |
34480 | _swigt__p_wxBitmap, | |
34481 | _swigt__p_wxObject, | |
34482 | _swigt__p_wxPyBitmapShape, | |
34483 | _swigt__p_wxPyShapeEvtHandler, | |
34484 | _swigt__p_wxEvtHandler, | |
34485 | _swigt__p_wxPyEllipseShape, | |
34486 | _swigt__p_wxPyShapeCanvas, | |
34487 | _swigt__p_wxPoint, | |
34488 | _swigt__p_wxDiagram, | |
34489 | _swigt__p_wxPyShape, | |
34490 | _swigt__p_wxAttachmentPoint, | |
34491 | _swigt__p_wxClassInfo, | |
34492 | _swigt__p_wxPyLineShape, | |
34493 | _swigt__p_wxPyRectangleShape, | |
34494 | _swigt__p_wxPyCompositeShape, | |
34495 | _swigt__p_wxPyCircleShape, | |
34496 | _swigt__p_wxPen, | |
34497 | _swigt__p_int, | |
34498 | _swigt__p_wxPseudoMetaFile, | |
34499 | _swigt__p_wxPyTextShape, | |
34500 | _swigt__p_wxPyDividedShape, | |
34501 | 0 | |
34502 | }; | |
34503 | ||
34504 | ||
34505 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
34506 | ||
34507 | static swig_const_info swig_const_table[] = { | |
34508 | {0, 0, 0, 0.0, 0, 0}}; | |
34509 | ||
34510 | #ifdef __cplusplus | |
34511 | } | |
34512 | #endif | |
34513 | ||
34514 | #ifdef __cplusplus | |
34515 | extern "C" | |
34516 | #endif | |
34517 | SWIGEXPORT(void) SWIG_init(void) { | |
34518 | static PyObject *SWIG_globals = 0; | |
34519 | static int typeinit = 0; | |
34520 | PyObject *m, *d; | |
34521 | int i; | |
34522 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
34523 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
34524 | d = PyModule_GetDict(m); | |
34525 | ||
34526 | if (!typeinit) { | |
34527 | for (i = 0; swig_types_initial[i]; i++) { | |
34528 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
34529 | } | |
34530 | typeinit = 1; | |
34531 | } | |
34532 | SWIG_InstallConstants(d,swig_const_table); | |
34533 | ||
34534 | PyDict_SetItemString(d,"oglMETAFLAGS_OUTLINE", SWIG_From_int((int)oglMETAFLAGS_OUTLINE)); | |
34535 | PyDict_SetItemString(d,"oglMETAFLAGS_ATTACHMENTS", SWIG_From_int((int)oglMETAFLAGS_ATTACHMENTS)); | |
34536 | PyDict_SetItemString(d,"KEY_SHIFT", SWIG_From_int((int)KEY_SHIFT)); | |
34537 | PyDict_SetItemString(d,"KEY_CTRL", SWIG_From_int((int)KEY_CTRL)); | |
34538 | PyDict_SetItemString(d,"ARROW_NONE", SWIG_From_int((int)ARROW_NONE)); | |
34539 | PyDict_SetItemString(d,"ARROW_END", SWIG_From_int((int)ARROW_END)); | |
34540 | PyDict_SetItemString(d,"ARROW_BOTH", SWIG_From_int((int)ARROW_BOTH)); | |
34541 | PyDict_SetItemString(d,"ARROW_MIDDLE", SWIG_From_int((int)ARROW_MIDDLE)); | |
34542 | PyDict_SetItemString(d,"ARROW_START", SWIG_From_int((int)ARROW_START)); | |
34543 | PyDict_SetItemString(d,"ARROW_HOLLOW_CIRCLE", SWIG_From_int((int)ARROW_HOLLOW_CIRCLE)); | |
34544 | PyDict_SetItemString(d,"ARROW_FILLED_CIRCLE", SWIG_From_int((int)ARROW_FILLED_CIRCLE)); | |
34545 | PyDict_SetItemString(d,"ARROW_ARROW", SWIG_From_int((int)ARROW_ARROW)); | |
34546 | PyDict_SetItemString(d,"ARROW_SINGLE_OBLIQUE", SWIG_From_int((int)ARROW_SINGLE_OBLIQUE)); | |
34547 | PyDict_SetItemString(d,"ARROW_DOUBLE_OBLIQUE", SWIG_From_int((int)ARROW_DOUBLE_OBLIQUE)); | |
34548 | PyDict_SetItemString(d,"ARROW_METAFILE", SWIG_From_int((int)ARROW_METAFILE)); | |
34549 | PyDict_SetItemString(d,"ARROW_POSITION_END", SWIG_From_int((int)ARROW_POSITION_END)); | |
34550 | PyDict_SetItemString(d,"ARROW_POSITION_START", SWIG_From_int((int)ARROW_POSITION_START)); | |
34551 | PyDict_SetItemString(d,"CONTROL_POINT_VERTICAL", SWIG_From_int((int)CONTROL_POINT_VERTICAL)); | |
34552 | PyDict_SetItemString(d,"CONTROL_POINT_HORIZONTAL", SWIG_From_int((int)CONTROL_POINT_HORIZONTAL)); | |
34553 | PyDict_SetItemString(d,"CONTROL_POINT_DIAGONAL", SWIG_From_int((int)CONTROL_POINT_DIAGONAL)); | |
34554 | PyDict_SetItemString(d,"CONTROL_POINT_ENDPOINT_TO", SWIG_From_int((int)CONTROL_POINT_ENDPOINT_TO)); | |
34555 | PyDict_SetItemString(d,"CONTROL_POINT_ENDPOINT_FROM", SWIG_From_int((int)CONTROL_POINT_ENDPOINT_FROM)); | |
34556 | PyDict_SetItemString(d,"CONTROL_POINT_LINE", SWIG_From_int((int)CONTROL_POINT_LINE)); | |
34557 | PyDict_SetItemString(d,"FORMAT_NONE", SWIG_From_int((int)FORMAT_NONE)); | |
34558 | PyDict_SetItemString(d,"FORMAT_CENTRE_HORIZ", SWIG_From_int((int)FORMAT_CENTRE_HORIZ)); | |
34559 | PyDict_SetItemString(d,"FORMAT_CENTRE_VERT", SWIG_From_int((int)FORMAT_CENTRE_VERT)); | |
34560 | PyDict_SetItemString(d,"FORMAT_SIZE_TO_CONTENTS", SWIG_From_int((int)FORMAT_SIZE_TO_CONTENTS)); | |
34561 | PyDict_SetItemString(d,"LINE_ALIGNMENT_HORIZ", SWIG_From_int((int)LINE_ALIGNMENT_HORIZ)); | |
34562 | PyDict_SetItemString(d,"LINE_ALIGNMENT_VERT", SWIG_From_int((int)LINE_ALIGNMENT_VERT)); | |
34563 | PyDict_SetItemString(d,"LINE_ALIGNMENT_TO_NEXT_HANDLE", SWIG_From_int((int)LINE_ALIGNMENT_TO_NEXT_HANDLE)); | |
34564 | PyDict_SetItemString(d,"LINE_ALIGNMENT_NONE", SWIG_From_int((int)LINE_ALIGNMENT_NONE)); | |
34565 | PyDict_SetItemString(d,"SHADOW_NONE", SWIG_From_int((int)SHADOW_NONE)); | |
34566 | PyDict_SetItemString(d,"SHADOW_LEFT", SWIG_From_int((int)SHADOW_LEFT)); | |
34567 | PyDict_SetItemString(d,"SHADOW_RIGHT", SWIG_From_int((int)SHADOW_RIGHT)); | |
34568 | PyDict_SetItemString(d,"OP_CLICK_LEFT", SWIG_From_int((int)OP_CLICK_LEFT)); | |
34569 | PyDict_SetItemString(d,"OP_CLICK_RIGHT", SWIG_From_int((int)OP_CLICK_RIGHT)); | |
34570 | PyDict_SetItemString(d,"OP_DRAG_LEFT", SWIG_From_int((int)OP_DRAG_LEFT)); | |
34571 | PyDict_SetItemString(d,"OP_DRAG_RIGHT", SWIG_From_int((int)OP_DRAG_RIGHT)); | |
34572 | PyDict_SetItemString(d,"OP_ALL", SWIG_From_int((int)OP_ALL)); | |
34573 | PyDict_SetItemString(d,"ATTACHMENT_MODE_NONE", SWIG_From_int((int)ATTACHMENT_MODE_NONE)); | |
34574 | PyDict_SetItemString(d,"ATTACHMENT_MODE_EDGE", SWIG_From_int((int)ATTACHMENT_MODE_EDGE)); | |
34575 | PyDict_SetItemString(d,"ATTACHMENT_MODE_BRANCHING", SWIG_From_int((int)ATTACHMENT_MODE_BRANCHING)); | |
34576 | PyDict_SetItemString(d,"BRANCHING_ATTACHMENT_NORMAL", SWIG_From_int((int)BRANCHING_ATTACHMENT_NORMAL)); | |
34577 | PyDict_SetItemString(d,"BRANCHING_ATTACHMENT_BLOB", SWIG_From_int((int)BRANCHING_ATTACHMENT_BLOB)); | |
34578 | PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_VERTICALLY", SWIG_From_int((int)gyCONSTRAINT_CENTRED_VERTICALLY)); | |
34579 | PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_HORIZONTALLY", SWIG_From_int((int)gyCONSTRAINT_CENTRED_HORIZONTALLY)); | |
34580 | PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_BOTH", SWIG_From_int((int)gyCONSTRAINT_CENTRED_BOTH)); | |
34581 | PyDict_SetItemString(d,"gyCONSTRAINT_LEFT_OF", SWIG_From_int((int)gyCONSTRAINT_LEFT_OF)); | |
34582 | PyDict_SetItemString(d,"gyCONSTRAINT_RIGHT_OF", SWIG_From_int((int)gyCONSTRAINT_RIGHT_OF)); | |
34583 | PyDict_SetItemString(d,"gyCONSTRAINT_ABOVE", SWIG_From_int((int)gyCONSTRAINT_ABOVE)); | |
34584 | PyDict_SetItemString(d,"gyCONSTRAINT_BELOW", SWIG_From_int((int)gyCONSTRAINT_BELOW)); | |
34585 | PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_TOP", SWIG_From_int((int)gyCONSTRAINT_ALIGNED_TOP)); | |
34586 | PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_BOTTOM", SWIG_From_int((int)gyCONSTRAINT_ALIGNED_BOTTOM)); | |
34587 | PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_LEFT", SWIG_From_int((int)gyCONSTRAINT_ALIGNED_LEFT)); | |
34588 | PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_RIGHT", SWIG_From_int((int)gyCONSTRAINT_ALIGNED_RIGHT)); | |
34589 | PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_TOP", SWIG_From_int((int)gyCONSTRAINT_MIDALIGNED_TOP)); | |
34590 | PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_BOTTOM", SWIG_From_int((int)gyCONSTRAINT_MIDALIGNED_BOTTOM)); | |
34591 | PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_LEFT", SWIG_From_int((int)gyCONSTRAINT_MIDALIGNED_LEFT)); | |
34592 | PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_RIGHT", SWIG_From_int((int)gyCONSTRAINT_MIDALIGNED_RIGHT)); | |
34593 | PyDict_SetItemString(d,"DIVISION_SIDE_NONE", SWIG_From_int((int)DIVISION_SIDE_NONE)); | |
34594 | PyDict_SetItemString(d,"DIVISION_SIDE_LEFT", SWIG_From_int((int)DIVISION_SIDE_LEFT)); | |
34595 | PyDict_SetItemString(d,"DIVISION_SIDE_TOP", SWIG_From_int((int)DIVISION_SIDE_TOP)); | |
34596 | PyDict_SetItemString(d,"DIVISION_SIDE_RIGHT", SWIG_From_int((int)DIVISION_SIDE_RIGHT)); | |
34597 | PyDict_SetItemString(d,"DIVISION_SIDE_BOTTOM", SWIG_From_int((int)DIVISION_SIDE_BOTTOM)); | |
34598 | ||
34599 | ||
34600 | // initoglbasicc(); | |
34601 | // initoglshapesc(); | |
34602 | // initoglshapes2c(); | |
34603 | // initoglcanvasc(); | |
34604 | ||
34605 | ||
34606 | wxPyPtrTypeMap_Add("wxControlPoint", "wxPyControlPoint"); | |
34607 | wxPyPtrTypeMap_Add("wxShapeCanvas", "wxPyShapeCanvas"); | |
34608 | wxPyPtrTypeMap_Add("wxShapeEvtHandler", "wxPyShapeEvtHandler"); | |
34609 | wxPyPtrTypeMap_Add("wxShape", "wxPyShape"); | |
34610 | wxPyPtrTypeMap_Add("wxRectangleShape", "wxPyRectangleShape"); | |
34611 | wxPyPtrTypeMap_Add("wxDrawnShape", "wxPyDrawnShape"); | |
34612 | wxPyPtrTypeMap_Add("wxCompositeShape", "wxPyCompositeShape"); | |
34613 | wxPyPtrTypeMap_Add("wxDividedShape", "wxPyDividedShape"); | |
34614 | wxPyPtrTypeMap_Add("wxDivisionShape", "wxPyDivisionShape"); | |
34615 | wxPyPtrTypeMap_Add("wxEllipseShape", "wxPyEllipseShape"); | |
34616 | wxPyPtrTypeMap_Add("wxCircleShape", "wxPyCircleShape"); | |
34617 | wxPyPtrTypeMap_Add("wxLineShape", "wxPyLineShape"); | |
34618 | wxPyPtrTypeMap_Add("wxPolygonShape", "wxPyPolygonShape"); | |
34619 | wxPyPtrTypeMap_Add("wxTextShape", "wxPyTextShape"); | |
34620 | ||
34621 | ||
34622 | } | |
34623 |