]>
Commit | Line | Data |
---|---|---|
44127b65 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
2dbef272 | 3 | * Version 1.3.22 |
44127b65 RD |
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 | |
c370783e | 46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName |
44127b65 RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
49 | #define SWIG_PackData SWIG_Python_PackData |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
44127b65 RD |
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 | ||
0f774bef RD |
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 | |
44127b65 | 83 | #else |
0f774bef RD |
84 | # define SWIGEXPORT(a) a |
85 | # define SWIGIMPORT(a) a | |
44127b65 RD |
86 | #endif |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
0f774bef | 89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
44127b65 | 90 | #else |
0f774bef | 91 | # define SWIGRUNTIME(a) static a |
44127b65 RD |
92 | #endif |
93 | ||
44127b65 RD |
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 { | |
0f774bef | 102 | const char *name; |
44127b65 RD |
103 | swig_converter_func converter; |
104 | const char *str; | |
0f774bef | 105 | void *clientdata; |
44127b65 RD |
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 *); | |
c370783e | 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
44127b65 RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
0f774bef RD |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
44127b65 RD |
122 | |
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
44127b65 RD |
126 | #endif |
127 | ||
c370783e | 128 | |
44127b65 RD |
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 | ||
44127b65 RD |
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 | ||
44127b65 RD |
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) | |
2dbef272 | 174 | |
44127b65 RD |
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) | |
44127b65 RD |
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 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
44127b65 | 188 | |
0f774bef RD |
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[]); | |
44127b65 | 197 | |
44127b65 RD |
198 | |
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
44127b65 RD |
203 | #ifdef __cplusplus |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c370783e | 208 | |
44127b65 RD |
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] | |
8edf1c75 RD |
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] | |
02a34c4c RD |
228 | #define SWIGTYPE_p_wxPyDivisionShape swig_types[17] |
229 | #define SWIGTYPE_p_wxPyDrawnShape swig_types[18] | |
8edf1c75 RD |
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] | |
02a34c4c RD |
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]; | |
44127b65 RD |
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 | ||
c370783e RD |
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 | |
8edf1c75 | 269 | |
8edf1c75 | 270 | #ifdef __cplusplus |
2f4c0a16 | 271 | #define SWIGSTATICINLINE(a) static inline a |
8edf1c75 | 272 | #define SWIGSTATIC(a) static a |
c370783e RD |
273 | #define swig_new_array(size,Type) (new Type[(size)]) |
274 | #define swig_delete(cptr) delete cptr | |
2f4c0a16 | 275 | #define swig_delete_array(cptr) delete[] cptr |
c370783e RD |
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) | |
8edf1c75 | 281 | |
2f4c0a16 RD |
282 | #else /* C case */ |
283 | ||
284 | #define SWIGSTATICINLINE(a) static a | |
285 | #define SWIGSTATIC(a) static a | |
c370783e RD |
286 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
287 | #define swig_delete(cptr) free((char*)cptr) | |
2f4c0a16 | 288 | #define swig_delete_array(cptr) free((char*)cptr) |
c370783e RD |
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))) | |
2f4c0a16 RD |
294 | |
295 | #endif /* __cplusplus */ | |
8edf1c75 RD |
296 | |
297 | ||
c370783e RD |
298 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
299 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
300 | /*@@*/ | |
301 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
302 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
303 | /*@@*/ | |
304 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
305 | #define SWIG_From_short PyInt_FromLong | |
306 | /*@@*/ | |
307 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
308 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
309 | /*@@*/ | |
310 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
311 | #define SWIG_From_int PyInt_FromLong | |
312 | /*@@*/ | |
313 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
314 | #define SWIG_From_long PyInt_FromLong | |
315 | /*@@*/ | |
316 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
317 | #define SWIG_From_float PyFloat_FromDouble | |
318 | /*@@*/ | |
319 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
320 | #define SWIG_From_double PyFloat_FromDouble | |
321 | /*@@*/ | |
8edf1c75 RD |
322 | |
323 | ||
44127b65 RD |
324 | #include "wx/wxPython/wxPython.h" |
325 | #include "wx/wxPython/pyclasses.h" | |
326 | #include "oglhelpers.h" | |
327 | ||
328 | ||
cbd72d4f | 329 | static const wxString wxPyEmptyString(wxEmptyString); |
44127b65 | 330 | |
c370783e RD |
331 | // See my_fragments.i |
332 | SWIGSTATICINLINE(int) | |
333 | SWIG_AsVal_double(PyObject *obj, double* val) | |
8edf1c75 | 334 | { |
c370783e RD |
335 | if (PyNumber_Check(obj)) { |
336 | if (val) *val = PyFloat_AsDouble(obj); | |
337 | return 1; | |
338 | } | |
69223c70 RD |
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); | |
69223c70 | 344 | } |
c370783e | 345 | return 0; |
2f4c0a16 RD |
346 | } |
347 | ||
348 | ||
c370783e RD |
349 | SWIGSTATICINLINE(double) |
350 | SWIG_As_double(PyObject* obj) | |
2f4c0a16 | 351 | { |
c370783e RD |
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)); | |
2f4c0a16 | 360 | } |
c370783e RD |
361 | return v; |
362 | } | |
363 | ||
364 | ||
365 | SWIGSTATICINLINE(int) | |
366 | SWIG_Check_double(PyObject* obj) | |
367 | { | |
368 | return SWIG_AsVal_double(obj, (double*)0); | |
2f4c0a16 RD |
369 | } |
370 | ||
371 | ||
372 | #include <limits.h> | |
373 | ||
374 | ||
c370783e RD |
375 | SWIGSTATICINLINE(int) |
376 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
377 | const char *errmsg) | |
2f4c0a16 | 378 | { |
c370783e RD |
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); | |
2f4c0a16 | 391 | } |
c370783e | 392 | return 0; |
2f4c0a16 | 393 | } |
c370783e | 394 | return 1; |
8edf1c75 RD |
395 | } |
396 | ||
397 | ||
c370783e RD |
398 | // See my_fragments.i |
399 | SWIGSTATICINLINE(int) | |
400 | SWIG_AsVal_long(PyObject* obj, long* val) | |
2f4c0a16 | 401 | { |
c370783e RD |
402 | if (PyNumber_Check(obj)) { |
403 | if (val) *val = PyInt_AsLong(obj); | |
404 | return 1; | |
405 | } | |
69223c70 RD |
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); | |
69223c70 | 411 | } |
c370783e | 412 | return 0; |
2f4c0a16 RD |
413 | } |
414 | ||
415 | ||
416 | #if INT_MAX != LONG_MAX | |
417 | SWIGSTATICINLINE(int) | |
c370783e | 418 | SWIG_AsVal_int(PyObject *obj, int *val) |
8edf1c75 | 419 | { |
c370783e RD |
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; | |
2f4c0a16 RD |
436 | } |
437 | #else | |
c370783e RD |
438 | SWIGSTATICINLINE(int) |
439 | SWIG_AsVal_int(PyObject *obj, int *val) | |
440 | { | |
441 | return SWIG_AsVal_long(obj,(long*)val); | |
442 | } | |
2f4c0a16 RD |
443 | #endif |
444 | ||
445 | ||
446 | SWIGSTATICINLINE(int) | |
c370783e | 447 | SWIG_As_int(PyObject* obj) |
2f4c0a16 | 448 | { |
c370783e RD |
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)); | |
2f4c0a16 | 457 | } |
c370783e | 458 | return v; |
8edf1c75 RD |
459 | } |
460 | ||
c370783e RD |
461 | |
462 | SWIGSTATICINLINE(int) | |
463 | SWIG_Check_int(PyObject* obj) | |
464 | { | |
465 | return SWIG_AsVal_int(obj, (int*)0); | |
466 | } | |
8edf1c75 | 467 | |
c370783e RD |
468 | |
469 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
44127b65 RD |
470 | PyObject* o2; |
471 | PyObject* o3; | |
c370783e | 472 | |
44127b65 RD |
473 | if (!target) { |
474 | target = o; | |
475 | } else if (target == Py_None) { | |
476 | Py_DECREF(Py_None); | |
477 | target = o; | |
478 | } else { | |
c370783e RD |
479 | o2 = target; |
480 | target = PyTuple_New(1); | |
481 | PyTuple_SetItem(target, 0, o2); | |
482 | ||
44127b65 RD |
483 | o3 = PyTuple_New(1); |
484 | PyTuple_SetItem(o3, 0, o); | |
485 | ||
486 | o2 = target; | |
487 | target = PySequence_Concat(o2, o3); | |
488 | Py_DECREF(o2); | |
489 | Py_DECREF(o3); | |
490 | } | |
491 | return target; | |
492 | } | |
493 | ||
494 | ||
c370783e | 495 | |
44127b65 RD |
496 | WXSHAPE_IMP_CALLBACKS(wxPyShapeEvtHandler,wxShapeEvtHandler); |
497 | ||
498 | void wxPyShapeEvtHandler__setOORInfo(wxPyShapeEvtHandler *self,PyObject *_self){ | |
499 | self->SetClientObject(new wxPyOORClientData(_self)); | |
500 | } | |
501 | ||
c370783e RD |
502 | SWIGSTATICINLINE(int) |
503 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
8edf1c75 | 504 | { |
c370783e RD |
505 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ |
506 | if (obj == Py_True) { | |
507 | if (val) *val = true; | |
508 | return 1; | |
509 | } | |
510 | if (obj == Py_False) { | |
511 | if (val) *val = false; | |
512 | return 1; | |
513 | } | |
514 | int res = 0; | |
515 | if (SWIG_AsVal_int(obj, &res)) { | |
516 | if (val) *val = (bool)res; | |
517 | return 1; | |
518 | } | |
519 | if (val) { | |
520 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
521 | } | |
522 | return 0; | |
8edf1c75 RD |
523 | } |
524 | ||
525 | ||
c370783e RD |
526 | SWIGSTATICINLINE(bool) |
527 | SWIG_As_bool(PyObject* obj) | |
2f4c0a16 | 528 | { |
c370783e RD |
529 | bool v; |
530 | if (!SWIG_AsVal_bool(obj, &v)) { | |
531 | /* | |
532 | this is needed to make valgrind/purify happier. the other | |
533 | solution is throw an exception, but since this code should work | |
534 | with plain C .... | |
535 | */ | |
536 | memset((void*)&v, 0, sizeof(bool)); | |
2f4c0a16 | 537 | } |
c370783e RD |
538 | return v; |
539 | } | |
540 | ||
541 | ||
542 | SWIGSTATICINLINE(int) | |
543 | SWIG_Check_bool(PyObject* obj) | |
544 | { | |
545 | return SWIG_AsVal_bool(obj, (bool*)0); | |
2f4c0a16 RD |
546 | } |
547 | ||
548 | ||
44127b65 RD |
549 | WXSHAPE_IMP_CALLBACKS(wxPyShape, wxShape); |
550 | ||
551 | PyObject *wxPyShape_GetChildren(wxPyShape *self){ | |
552 | wxList& list = self->GetChildren(); | |
553 | return wxPy_ConvertShapeList(&list); | |
554 | } | |
c370783e RD |
555 | |
556 | SWIGSTATICINLINE(PyObject*) | |
557 | SWIG_From_bool(bool value) | |
558 | { | |
559 | PyObject *obj = value ? Py_True : Py_False; | |
560 | Py_INCREF(obj); | |
561 | return obj; | |
562 | } | |
563 | ||
564 | ||
565 | ||
44127b65 RD |
566 | PyObject *wxPyShape_GetLines(wxPyShape *self){ |
567 | wxList& list = self->GetLines(); | |
568 | return wxPy_ConvertShapeList(&list); | |
569 | } | |
8edf1c75 | 570 | |
c370783e RD |
571 | SWIGSTATICINLINE(long) |
572 | SWIG_As_long(PyObject* obj) | |
8edf1c75 | 573 | { |
c370783e RD |
574 | long v; |
575 | if (!SWIG_AsVal_long(obj, &v)) { | |
576 | /* | |
577 | this is needed to make valgrind/purify happier. the other | |
578 | solution is throw an exception, but since this code should work | |
579 | with plain C .... | |
580 | */ | |
581 | memset((void*)&v, 0, sizeof(long)); | |
2f4c0a16 | 582 | } |
c370783e RD |
583 | return v; |
584 | } | |
585 | ||
586 | ||
587 | SWIGSTATICINLINE(int) | |
588 | SWIG_Check_long(PyObject* obj) | |
589 | { | |
590 | return SWIG_AsVal_long(obj, (long*)0); | |
8edf1c75 RD |
591 | } |
592 | ||
44127b65 RD |
593 | PyObject *wxPyShape_GetRegions(wxPyShape *self){ |
594 | wxList& list = self->GetRegions(); | |
595 | return wxPy_ConvertList(&list); | |
596 | } | |
7a0a63ae RD |
597 | PyObject *wxPyShape_GetAttachments(wxPyShape *self){ |
598 | wxList& list = self->GetAttachments(); | |
599 | return wxPy_ConvertList(&list); | |
600 | } | |
44127b65 RD |
601 | void wxPyShape_ApplyAttachmentOrdering(wxPyShape *self,PyObject *linesToSort){ |
602 | wxList* list = wxPy_wxListHelper(linesToSort, wxT("wxPyLineShape")); | |
603 | self->ApplyAttachmentOrdering(*list); | |
604 | delete list; | |
605 | } | |
606 | ||
607 | // Using this macro can sometimes provoke an Internal Compiler Error in MSVC | |
608 | // 6, so instead I'l just expand it out by hand... | |
609 | // WXSHAPE_IMP_CALLBACKS(wxPyRectangleShape, wxRectangleShape); | |
610 | ||
611 | IMP_PYCALLBACK__ (wxPyRectangleShape, wxRectangleShape, OnDelete); | |
612 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnDraw); | |
613 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnDrawContents); | |
614 | IMP_PYCALLBACK__DCBOOL (wxPyRectangleShape, wxRectangleShape, OnDrawBranches); | |
615 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnMoveLinks); | |
616 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnErase); | |
617 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnEraseContents); | |
618 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnHighlight); | |
619 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnLeftClick); | |
620 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnLeftDoubleClick); | |
621 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnRightClick); | |
622 | IMP_PYCALLBACK__2DBL (wxPyRectangleShape, wxRectangleShape, OnSize); | |
623 | IMP_PYCALLBACK_BOOL_DC4DBLBOOL (wxPyRectangleShape, wxRectangleShape, OnMovePre); | |
624 | IMP_PYCALLBACK__DC4DBLBOOL (wxPyRectangleShape, wxRectangleShape, OnMovePost); | |
625 | IMP_PYCALLBACK__BOOL2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnDragLeft); | |
626 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnBeginDragLeft); | |
627 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnEndDragLeft); | |
628 | IMP_PYCALLBACK__BOOL2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnDragRight); | |
629 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnBeginDragRight); | |
630 | IMP_PYCALLBACK__2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnEndDragRight); | |
631 | IMP_PYCALLBACK__DC4DBL (wxPyRectangleShape, wxRectangleShape, OnDrawOutline); | |
632 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnDrawControlPoints); | |
633 | IMP_PYCALLBACK__DC (wxPyRectangleShape, wxRectangleShape, OnEraseControlPoints); | |
634 | IMP_PYCALLBACK__DCBOOL (wxPyRectangleShape, wxRectangleShape, OnMoveLink); | |
635 | IMP_PYCALLBACK__WXCPBOOL2DBL2INT(wxPyRectangleShape, wxRectangleShape, OnSizingDragLeft); | |
636 | IMP_PYCALLBACK__WXCP2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnSizingBeginDragLeft); | |
637 | IMP_PYCALLBACK__WXCP2DBL2INT (wxPyRectangleShape, wxRectangleShape, OnSizingEndDragLeft); | |
638 | IMP_PYCALLBACK__2DBL (wxPyRectangleShape, wxRectangleShape, OnBeginSize); | |
639 | IMP_PYCALLBACK__2DBL (wxPyRectangleShape, wxRectangleShape, OnEndSize) | |
640 | ||
641 | ||
642 | ||
643 | WXSHAPE_IMP_CALLBACKS(wxPyControlPoint, wxControlPoint); | |
644 | ||
645 | ||
646 | WXSHAPE_IMP_CALLBACKS(wxPyBitmapShape, wxBitmapShape); | |
647 | ||
648 | ||
649 | WXSHAPE_IMP_CALLBACKS(wxPyDrawnShape, wxDrawnShape); | |
650 | ||
651 | wxOGLConstraint *new_wxOGLConstraint(int type,wxPyShape *constraining,PyObject *constrained){ | |
652 | wxList* list = wxPy_wxListHelper(constrained, wxT("wxPyShape")); | |
653 | wxOGLConstraint* rv = new wxOGLConstraint(type, constraining, *list); | |
654 | delete list; | |
655 | return rv; | |
656 | } | |
657 | ||
658 | WXSHAPE_IMP_CALLBACKS(wxPyCompositeShape, wxCompositeShape); | |
659 | ||
660 | wxOGLConstraint *wxPyCompositeShape_AddConstrainedShapes(wxPyCompositeShape *self,int type,wxPyShape *constraining,PyObject *constrained){ | |
661 | wxList* list = wxPy_wxListHelper(constrained, wxT("wxPyShape")); | |
662 | wxOGLConstraint* rv = self->AddConstraint(type, constraining, *list); | |
663 | delete list; | |
664 | return rv; | |
665 | } | |
666 | PyObject *wxPyCompositeShape_GetConstraints(wxPyCompositeShape *self){ | |
667 | wxList& list = self->GetConstraints(); | |
668 | return wxPy_ConvertList(&list); | |
669 | } | |
670 | PyObject *wxPyCompositeShape_GetDivisions(wxPyCompositeShape *self){ | |
671 | wxList& list = self->GetDivisions(); | |
672 | return wxPy_ConvertShapeList(&list); | |
673 | } | |
674 | ||
675 | WXSHAPE_IMP_CALLBACKS(wxPyDividedShape, wxDividedShape); | |
676 | ||
677 | ||
678 | WXSHAPE_IMP_CALLBACKS(wxPyDivisionShape, wxDivisionShape); | |
679 | ||
680 | ||
681 | WXSHAPE_IMP_CALLBACKS(wxPyEllipseShape, wxEllipseShape); | |
682 | ||
683 | ||
684 | WXSHAPE_IMP_CALLBACKS(wxPyCircleShape, wxCircleShape); | |
685 | ||
686 | ||
687 | WXSHAPE_IMP_CALLBACKS(wxPyLineShape, wxLineShape); | |
688 | ||
689 | void wxPyLineShape_AddArrowOrdered(wxPyLineShape *self,wxArrowHead *arrow,PyObject *referenceList,int end){ | |
690 | wxList* list = wxPy_wxListHelper(referenceList, wxT("wxArrowHead")); | |
691 | self->AddArrowOrdered(arrow, *list, end); | |
692 | delete list; | |
693 | } | |
694 | PyObject *wxPyLineShape_GetLineControlPoints(wxPyLineShape *self){ | |
695 | wxList* list = self->GetLineControlPoints(); | |
0346c964 RD |
696 | return wxPy_ConvertRealPointList(list); |
697 | } | |
698 | void wxPyLineShape_SetLineControlPoints(wxPyLineShape *self,PyObject *list){ | |
699 | wxList* real_point_list = wxPy_wxRealPoint_ListHelper(list); | |
700 | self->MakeLineControlPoints((int)(real_point_list->GetCount())); | |
701 | wxList* old_control_points = self->GetLineControlPoints(); | |
702 | wxNode* old_node = old_control_points->GetFirst(); | |
703 | wxNode* real_node = real_point_list->GetFirst(); | |
704 | while(old_node) | |
705 | { | |
706 | wxRealPoint* old_point = (wxRealPoint*)old_node->GetData(); | |
707 | wxRealPoint* new_point = (wxRealPoint*)real_node->GetData(); | |
708 | old_point->x = new_point->x; | |
709 | old_point->y = new_point->y; | |
710 | old_node = old_node->GetNext(); | |
711 | real_node = real_node->GetNext(); | |
712 | } | |
713 | self->ClearPointList(*real_point_list); | |
714 | delete real_point_list; | |
44127b65 RD |
715 | } |
716 | ||
717 | WXSHAPE_IMP_CALLBACKS(wxPyPolygonShape, wxPolygonShape); | |
718 | ||
719 | PyObject *wxPyPolygonShape_Create(wxPyPolygonShape *self,PyObject *points){ | |
720 | wxList* list = wxPy_wxRealPoint_ListHelper(points); | |
721 | if (list) { | |
722 | self->Create(list); | |
723 | Py_INCREF(Py_None); | |
724 | return Py_None; | |
725 | } | |
726 | else return NULL; | |
727 | } | |
728 | PyObject *wxPyPolygonShape_GetPoints(wxPyPolygonShape *self){ | |
729 | wxList* list = self->GetPoints(); | |
0346c964 | 730 | return wxPy_ConvertRealPointList(list); |
7a0a63ae RD |
731 | } |
732 | PyObject *wxPyPolygonShape_GetOriginalPoints(wxPyPolygonShape *self){ | |
733 | wxList* list = self->GetOriginalPoints(); | |
734 | PyObject* pyList; | |
735 | PyObject* pyObj; | |
736 | wxObject* wxObj; | |
737 | wxNode* node = list->GetFirst(); | |
738 | ||
fbc46b20 | 739 | bool blocked = wxPyBeginBlockThreads(); |
44127b65 RD |
740 | pyList = PyList_New(0); |
741 | while (node) { | |
742 | wxObj = node->GetData(); | |
743 | pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0); | |
744 | PyList_Append(pyList, pyObj); | |
745 | node = node->GetNext(); | |
746 | } | |
fbc46b20 | 747 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
748 | return pyList; |
749 | } | |
750 | ||
751 | WXSHAPE_IMP_CALLBACKS(wxPyTextShape, wxTextShape); | |
752 | ||
753 | ||
754 | // Put some wx default wxChar* values into wxStrings. | |
755 | DECLARE_DEF_STRING(ShapeCanvasNameStr); | |
756 | ||
757 | PyObject *wxDiagram_GetShapeList(wxDiagram *self){ | |
758 | wxList* list = self->GetShapeList(); | |
759 | return wxPy_ConvertShapeList(list); | |
760 | } | |
761 | ||
762 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragLeft); | |
763 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnBeginDragRight); | |
764 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragLeft); | |
765 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnEndDragRight); | |
766 | IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragLeft); | |
767 | IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnDragRight); | |
768 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnLeftClick); | |
769 | IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas, wxShapeCanvas, OnRightClick); | |
770 | ||
771 | ||
772 | //--------------------------------------------------------------------------- | |
773 | ||
774 | // Convert from a Python list to a list of className objects. This one will | |
775 | // work for any class for the VERY generic cases, but beyond that the helper | |
776 | // needs to know more about the type. | |
777 | wxList* wxPy_wxListHelper(PyObject* pyList, const wxChar* className) { | |
fbc46b20 | 778 | bool blocked = wxPyBeginBlockThreads(); |
44127b65 RD |
779 | if (!PyList_Check(pyList)) { |
780 | PyErr_SetString(PyExc_TypeError, "Expected a list object."); | |
fbc46b20 | 781 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
782 | return NULL; |
783 | } | |
784 | int count = PyList_Size(pyList); | |
785 | wxList* list = new wxList; | |
786 | if (! list) { | |
787 | PyErr_SetString(PyExc_MemoryError, "Unable to allocate wxList object"); | |
fbc46b20 | 788 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
789 | return NULL; |
790 | } | |
791 | for (int x=0; x<count; x++) { | |
792 | PyObject* pyo = PyList_GetItem(pyList, x); | |
793 | wxObject* wxo = NULL; | |
794 | ||
795 | if ( !wxPyConvertSwigPtr(pyo, (void **)&wxo, className) ) { | |
796 | wxString errmsg; | |
797 | errmsg.Printf(wxT("Type error, expected list of %s objects"), className); | |
798 | PyErr_SetString(PyExc_TypeError, errmsg.mb_str()); | |
fbc46b20 | 799 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
800 | return NULL; |
801 | } | |
802 | list->Append(wxo); | |
803 | } | |
fbc46b20 | 804 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
805 | return list; |
806 | } | |
807 | ||
808 | //--------------------------------------------------------------------------- | |
809 | ||
810 | wxList* wxPy_wxRealPoint_ListHelper(PyObject* pyList) { | |
fbc46b20 | 811 | bool blocked = wxPyBeginBlockThreads(); |
44127b65 RD |
812 | if (!PyList_Check(pyList)) { |
813 | PyErr_SetString(PyExc_TypeError, "Expected a list object."); | |
fbc46b20 | 814 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
815 | return NULL; |
816 | } | |
817 | int count = PyList_Size(pyList); | |
818 | wxList* list = new wxList; | |
819 | if (! list) { | |
820 | PyErr_SetString(PyExc_MemoryError, "Unable to allocate wxList object"); | |
fbc46b20 | 821 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
822 | return NULL; |
823 | } | |
824 | for (int x=0; x<count; x++) { | |
825 | PyObject* pyo = PyList_GetItem(pyList, x); | |
826 | ||
827 | if (PyTuple_Check(pyo)) { | |
828 | PyObject* o1 = PyNumber_Float(PyTuple_GetItem(pyo, 0)); | |
829 | PyObject* o2 = PyNumber_Float(PyTuple_GetItem(pyo, 1)); | |
830 | ||
831 | double val1 = (o1 ? PyFloat_AsDouble(o1) : 0.0); | |
832 | double val2 = (o2 ? PyFloat_AsDouble(o2) : 0.0); | |
833 | ||
834 | list->Append((wxObject*) new wxRealPoint(val1, val2)); | |
835 | ||
836 | } else { | |
837 | wxRealPoint* wxo = NULL; | |
838 | if (wxPyConvertSwigPtr(pyo, (void **)&wxo, wxT("wxRealPoint"))) { | |
839 | PyErr_SetString(PyExc_TypeError, "Type error, expected list of wxRealPoint objects or 2-tuples"); | |
fbc46b20 | 840 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
841 | return NULL; |
842 | } | |
843 | list->Append((wxObject*) new wxRealPoint(*wxo)); | |
844 | } | |
845 | } | |
fbc46b20 | 846 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
847 | return list; |
848 | } | |
849 | ||
850 | //--------------------------------------------------------------------------- | |
851 | ||
412d302d | 852 | PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source, bool setThisOwn) { |
44127b65 RD |
853 | PyObject* target = NULL; |
854 | ||
855 | if (source && wxIsKindOf(source, wxShapeEvtHandler)) { | |
856 | // If it's derived from wxShapeEvtHandler then there may | |
857 | // already be a pointer to a Python object that we can use | |
858 | // in the OOR data. | |
859 | wxShapeEvtHandler* seh = (wxShapeEvtHandler*)source; | |
860 | wxPyOORClientData* data = (wxPyOORClientData*)seh->GetClientObject(); | |
861 | if (data) { | |
862 | target = data->m_obj; | |
863 | Py_INCREF(target); | |
864 | } | |
865 | } | |
866 | if (! target) { | |
412d302d | 867 | target = wxPyMake_wxObject2(source, setThisOwn, false); |
44127b65 RD |
868 | if (target != Py_None) |
869 | ((wxShapeEvtHandler*)source)->SetClientObject(new wxPyOORClientData(target)); | |
870 | } | |
871 | return target; | |
872 | } | |
873 | ||
874 | //--------------------------------------------------------------------------- | |
875 | ||
0346c964 RD |
876 | PyObject* wxPy_ConvertRealPointList(wxListBase* listbase) { |
877 | wxList* list = (wxList*)listbase; | |
878 | PyObject* pyList; | |
879 | PyObject* pyObj; | |
880 | wxObject* wxObj; | |
881 | wxNode* node = list->GetFirst(); | |
882 | ||
883 | bool blocked = wxPyBeginBlockThreads(); | |
884 | pyList = PyList_New(0); | |
885 | while (node) { | |
886 | wxObj = node->GetData(); | |
887 | pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0); | |
888 | PyList_Append(pyList, pyObj); | |
889 | node = node->GetNext(); | |
890 | } | |
891 | wxPyEndBlockThreads(blocked); | |
892 | return pyList; | |
893 | } | |
894 | ||
895 | //--------------------------------------------------------------------------- | |
896 | ||
44127b65 RD |
897 | PyObject* wxPy_ConvertShapeList(wxListBase* listbase) { |
898 | wxList* list = (wxList*)listbase; | |
899 | PyObject* pyList; | |
900 | PyObject* pyObj; | |
901 | wxObject* wxObj; | |
902 | wxNode* node = list->GetFirst(); | |
903 | ||
fbc46b20 | 904 | bool blocked = wxPyBeginBlockThreads(); |
44127b65 RD |
905 | pyList = PyList_New(0); |
906 | while (node) { | |
907 | wxObj = node->GetData(); | |
412d302d | 908 | pyObj = wxPyMake_wxShapeEvtHandler((wxShapeEvtHandler*)wxObj, false); |
44127b65 RD |
909 | PyList_Append(pyList, pyObj); |
910 | node = node->GetNext(); | |
911 | } | |
fbc46b20 | 912 | wxPyEndBlockThreads(blocked); |
44127b65 RD |
913 | return pyList; |
914 | } | |
915 | ||
916 | ||
917 | //--------------------------------------------------------------------------- | |
918 | ||
919 | IMPLEMENT_DYNAMIC_CLASS(wxPyShapeCanvas, wxShapeCanvas); | |
920 | IMPLEMENT_DYNAMIC_CLASS(wxPyShapeEvtHandler, wxShapeEvtHandler); | |
921 | IMPLEMENT_ABSTRACT_CLASS(wxPyShape, wxShape); | |
922 | IMPLEMENT_DYNAMIC_CLASS(wxPyRectangleShape, wxRectangleShape); | |
923 | IMPLEMENT_DYNAMIC_CLASS(wxPyControlPoint, wxControlPoint); | |
924 | IMPLEMENT_DYNAMIC_CLASS(wxPyBitmapShape, wxBitmapShape); | |
925 | IMPLEMENT_DYNAMIC_CLASS(wxPyDrawnShape, wxDrawnShape); | |
926 | IMPLEMENT_DYNAMIC_CLASS(wxPyCompositeShape, wxCompositeShape); | |
927 | IMPLEMENT_DYNAMIC_CLASS(wxPyDividedShape, wxDividedShape); | |
928 | IMPLEMENT_DYNAMIC_CLASS(wxPyDivisionShape, wxDivisionShape); | |
929 | IMPLEMENT_DYNAMIC_CLASS(wxPyEllipseShape, wxEllipseShape); | |
930 | IMPLEMENT_DYNAMIC_CLASS(wxPyCircleShape, wxCircleShape); | |
931 | IMPLEMENT_DYNAMIC_CLASS(wxPyLineShape, wxLineShape); | |
932 | IMPLEMENT_DYNAMIC_CLASS(wxPyPolygonShape, wxPolygonShape); | |
933 | IMPLEMENT_DYNAMIC_CLASS(wxPyTextShape, wxTextShape); | |
934 | ||
935 | //--------------------------------------------------------------------------- | |
936 | ||
937 | // extern "C" SWIGEXPORT(void) initoglbasicc(); | |
938 | // extern "C" SWIGEXPORT(void) initoglshapesc(); | |
939 | // extern "C" SWIGEXPORT(void) initoglshapes2c(); | |
940 | // extern "C" SWIGEXPORT(void) initoglcanvasc(); | |
941 | ||
942 | #ifdef __cplusplus | |
943 | extern "C" { | |
944 | #endif | |
c370783e | 945 | static PyObject *_wrap_new_ShapeRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
946 | PyObject *resultobj; |
947 | wxShapeRegion *result; | |
948 | char *kwnames[] = { | |
949 | NULL | |
950 | }; | |
951 | ||
952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ShapeRegion",kwnames)) goto fail; | |
953 | { | |
954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
955 | result = (wxShapeRegion *)new wxShapeRegion(); | |
956 | ||
957 | wxPyEndAllowThreads(__tstate); | |
958 | if (PyErr_Occurred()) SWIG_fail; | |
959 | } | |
2f4c0a16 | 960 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShapeRegion, 1); |
44127b65 RD |
961 | return resultobj; |
962 | fail: | |
963 | return NULL; | |
964 | } | |
965 | ||
966 | ||
c370783e | 967 | static PyObject *_wrap_ShapeRegion_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
968 | PyObject *resultobj; |
969 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
970 | wxString *arg2 = 0 ; | |
971 | bool temp2 = False ; | |
972 | PyObject * obj0 = 0 ; | |
973 | PyObject * obj1 = 0 ; | |
974 | char *kwnames[] = { | |
975 | (char *) "self",(char *) "s", NULL | |
976 | }; | |
977 | ||
978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
981 | { |
982 | arg2 = wxString_in_helper(obj1); | |
983 | if (arg2 == NULL) SWIG_fail; | |
984 | temp2 = True; | |
985 | } | |
986 | { | |
987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
988 | (arg1)->SetText((wxString const &)*arg2); | |
989 | ||
990 | wxPyEndAllowThreads(__tstate); | |
991 | if (PyErr_Occurred()) SWIG_fail; | |
992 | } | |
993 | Py_INCREF(Py_None); resultobj = Py_None; | |
994 | { | |
995 | if (temp2) | |
996 | delete arg2; | |
997 | } | |
998 | return resultobj; | |
999 | fail: | |
1000 | { | |
1001 | if (temp2) | |
1002 | delete arg2; | |
1003 | } | |
1004 | return NULL; | |
1005 | } | |
1006 | ||
1007 | ||
c370783e | 1008 | static PyObject *_wrap_ShapeRegion_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1009 | PyObject *resultobj; |
1010 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1011 | wxFont *arg2 = (wxFont *) 0 ; | |
1012 | PyObject * obj0 = 0 ; | |
1013 | PyObject * obj1 = 0 ; | |
1014 | char *kwnames[] = { | |
1015 | (char *) "self",(char *) "f", NULL | |
1016 | }; | |
1017 | ||
1018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1021 | { |
1022 | wxFont* temp; | |
1023 | if (obj1) { | |
1024 | if (obj1 == Py_None) { | |
1025 | temp = NULL; | |
1026 | } | |
1027 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
1028 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
1029 | return NULL; | |
1030 | } | |
1031 | } | |
1032 | if (temp) | |
1033 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
1034 | temp->GetFamily(), | |
1035 | temp->GetStyle(), | |
1036 | temp->GetWeight(), | |
1037 | temp->GetUnderlined(), | |
1038 | temp->GetFaceName(), | |
1039 | temp->GetEncoding()); | |
1040 | else | |
1041 | arg2 = NULL; | |
1042 | } | |
1043 | { | |
1044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1045 | (arg1)->SetFont(arg2); | |
1046 | ||
1047 | wxPyEndAllowThreads(__tstate); | |
1048 | if (PyErr_Occurred()) SWIG_fail; | |
1049 | } | |
1050 | Py_INCREF(Py_None); resultobj = Py_None; | |
1051 | return resultobj; | |
1052 | fail: | |
1053 | return NULL; | |
1054 | } | |
1055 | ||
1056 | ||
c370783e | 1057 | static PyObject *_wrap_ShapeRegion_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1058 | PyObject *resultobj; |
1059 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1060 | double arg2 ; | |
1061 | double arg3 ; | |
1062 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1063 | PyObject * obj1 = 0 ; |
1064 | PyObject * obj2 = 0 ; | |
44127b65 RD |
1065 | char *kwnames[] = { |
1066 | (char *) "self",(char *) "w",(char *) "h", NULL | |
1067 | }; | |
1068 | ||
8edf1c75 | 1069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ShapeRegion_SetMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
1070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1072 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 1073 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1074 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 1075 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
1076 | { |
1077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1078 | (arg1)->SetMinSize(arg2,arg3); | |
1079 | ||
1080 | wxPyEndAllowThreads(__tstate); | |
1081 | if (PyErr_Occurred()) SWIG_fail; | |
1082 | } | |
1083 | Py_INCREF(Py_None); resultobj = Py_None; | |
1084 | return resultobj; | |
1085 | fail: | |
1086 | return NULL; | |
1087 | } | |
1088 | ||
1089 | ||
c370783e | 1090 | static PyObject *_wrap_ShapeRegion_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1091 | PyObject *resultobj; |
1092 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1093 | double arg2 ; | |
1094 | double arg3 ; | |
1095 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1096 | PyObject * obj1 = 0 ; |
1097 | PyObject * obj2 = 0 ; | |
44127b65 RD |
1098 | char *kwnames[] = { |
1099 | (char *) "self",(char *) "w",(char *) "h", NULL | |
1100 | }; | |
1101 | ||
8edf1c75 | 1102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ShapeRegion_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
1103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1105 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 1106 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1107 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 1108 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
1109 | { |
1110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1111 | (arg1)->SetSize(arg2,arg3); | |
1112 | ||
1113 | wxPyEndAllowThreads(__tstate); | |
1114 | if (PyErr_Occurred()) SWIG_fail; | |
1115 | } | |
1116 | Py_INCREF(Py_None); resultobj = Py_None; | |
1117 | return resultobj; | |
1118 | fail: | |
1119 | return NULL; | |
1120 | } | |
1121 | ||
1122 | ||
c370783e | 1123 | static PyObject *_wrap_ShapeRegion_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1124 | PyObject *resultobj; |
1125 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1126 | double arg2 ; | |
1127 | double arg3 ; | |
1128 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1129 | PyObject * obj1 = 0 ; |
1130 | PyObject * obj2 = 0 ; | |
44127b65 RD |
1131 | char *kwnames[] = { |
1132 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1133 | }; | |
1134 | ||
8edf1c75 | 1135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ShapeRegion_SetPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
1136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1138 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 1139 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1140 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 1141 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
1142 | { |
1143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1144 | (arg1)->SetPosition(arg2,arg3); | |
1145 | ||
1146 | wxPyEndAllowThreads(__tstate); | |
1147 | if (PyErr_Occurred()) SWIG_fail; | |
1148 | } | |
1149 | Py_INCREF(Py_None); resultobj = Py_None; | |
1150 | return resultobj; | |
1151 | fail: | |
1152 | return NULL; | |
1153 | } | |
1154 | ||
1155 | ||
c370783e | 1156 | static PyObject *_wrap_ShapeRegion_SetProportions(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1157 | PyObject *resultobj; |
1158 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1159 | double arg2 ; | |
1160 | double arg3 ; | |
1161 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1162 | PyObject * obj1 = 0 ; |
1163 | PyObject * obj2 = 0 ; | |
44127b65 RD |
1164 | char *kwnames[] = { |
1165 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1166 | }; | |
1167 | ||
8edf1c75 | 1168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ShapeRegion_SetProportions",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
1169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1171 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 1172 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1173 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 1174 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
1175 | { |
1176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1177 | (arg1)->SetProportions(arg2,arg3); | |
1178 | ||
1179 | wxPyEndAllowThreads(__tstate); | |
1180 | if (PyErr_Occurred()) SWIG_fail; | |
1181 | } | |
1182 | Py_INCREF(Py_None); resultobj = Py_None; | |
1183 | return resultobj; | |
1184 | fail: | |
1185 | return NULL; | |
1186 | } | |
1187 | ||
1188 | ||
c370783e | 1189 | static PyObject *_wrap_ShapeRegion_SetFormatMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1190 | PyObject *resultobj; |
1191 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1192 | int arg2 ; | |
1193 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1194 | PyObject * obj1 = 0 ; |
44127b65 RD |
1195 | char *kwnames[] = { |
1196 | (char *) "self",(char *) "mode", NULL | |
1197 | }; | |
1198 | ||
8edf1c75 | 1199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetFormatMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1202 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 1203 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
1204 | { |
1205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1206 | (arg1)->SetFormatMode(arg2); | |
1207 | ||
1208 | wxPyEndAllowThreads(__tstate); | |
1209 | if (PyErr_Occurred()) SWIG_fail; | |
1210 | } | |
1211 | Py_INCREF(Py_None); resultobj = Py_None; | |
1212 | return resultobj; | |
1213 | fail: | |
1214 | return NULL; | |
1215 | } | |
1216 | ||
1217 | ||
c370783e | 1218 | static PyObject *_wrap_ShapeRegion_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1219 | PyObject *resultobj; |
1220 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1221 | wxString *arg2 = 0 ; | |
1222 | bool temp2 = False ; | |
1223 | PyObject * obj0 = 0 ; | |
1224 | PyObject * obj1 = 0 ; | |
1225 | char *kwnames[] = { | |
1226 | (char *) "self",(char *) "s", NULL | |
1227 | }; | |
1228 | ||
1229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1232 | { |
1233 | arg2 = wxString_in_helper(obj1); | |
1234 | if (arg2 == NULL) SWIG_fail; | |
1235 | temp2 = True; | |
1236 | } | |
1237 | { | |
1238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1239 | (arg1)->SetName((wxString const &)*arg2); | |
1240 | ||
1241 | wxPyEndAllowThreads(__tstate); | |
1242 | if (PyErr_Occurred()) SWIG_fail; | |
1243 | } | |
1244 | Py_INCREF(Py_None); resultobj = Py_None; | |
1245 | { | |
1246 | if (temp2) | |
1247 | delete arg2; | |
1248 | } | |
1249 | return resultobj; | |
1250 | fail: | |
1251 | { | |
1252 | if (temp2) | |
1253 | delete arg2; | |
1254 | } | |
1255 | return NULL; | |
1256 | } | |
1257 | ||
1258 | ||
c370783e | 1259 | static PyObject *_wrap_ShapeRegion_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1260 | PyObject *resultobj; |
1261 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1262 | wxString *arg2 = 0 ; | |
1263 | bool temp2 = False ; | |
1264 | PyObject * obj0 = 0 ; | |
1265 | PyObject * obj1 = 0 ; | |
1266 | char *kwnames[] = { | |
1267 | (char *) "self",(char *) "col", NULL | |
1268 | }; | |
1269 | ||
1270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1273 | { |
1274 | arg2 = wxString_in_helper(obj1); | |
1275 | if (arg2 == NULL) SWIG_fail; | |
1276 | temp2 = True; | |
1277 | } | |
1278 | { | |
1279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1280 | (arg1)->SetColour((wxString const &)*arg2); | |
1281 | ||
1282 | wxPyEndAllowThreads(__tstate); | |
1283 | if (PyErr_Occurred()) SWIG_fail; | |
1284 | } | |
1285 | Py_INCREF(Py_None); resultobj = Py_None; | |
1286 | { | |
1287 | if (temp2) | |
1288 | delete arg2; | |
1289 | } | |
1290 | return resultobj; | |
1291 | fail: | |
1292 | { | |
1293 | if (temp2) | |
1294 | delete arg2; | |
1295 | } | |
1296 | return NULL; | |
1297 | } | |
1298 | ||
1299 | ||
c370783e | 1300 | static PyObject *_wrap_ShapeRegion_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1301 | PyObject *resultobj; |
1302 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1303 | wxString result; | |
1304 | PyObject * obj0 = 0 ; | |
1305 | char *kwnames[] = { | |
1306 | (char *) "self", NULL | |
1307 | }; | |
1308 | ||
1309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1312 | { |
1313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1314 | result = (arg1)->GetText(); | |
1315 | ||
1316 | wxPyEndAllowThreads(__tstate); | |
1317 | if (PyErr_Occurred()) SWIG_fail; | |
1318 | } | |
1319 | { | |
1320 | #if wxUSE_UNICODE | |
1321 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1322 | #else | |
1323 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1324 | #endif | |
1325 | } | |
1326 | return resultobj; | |
1327 | fail: | |
1328 | return NULL; | |
1329 | } | |
1330 | ||
1331 | ||
c370783e | 1332 | static PyObject *_wrap_ShapeRegion_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1333 | PyObject *resultobj; |
1334 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1335 | wxFont *result; | |
1336 | PyObject * obj0 = 0 ; | |
1337 | char *kwnames[] = { | |
1338 | (char *) "self", NULL | |
1339 | }; | |
1340 | ||
1341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1344 | { |
1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1346 | result = (wxFont *)(arg1)->GetFont(); | |
1347 | ||
1348 | wxPyEndAllowThreads(__tstate); | |
1349 | if (PyErr_Occurred()) SWIG_fail; | |
1350 | } | |
2f4c0a16 | 1351 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
44127b65 RD |
1352 | return resultobj; |
1353 | fail: | |
1354 | return NULL; | |
1355 | } | |
1356 | ||
1357 | ||
c370783e | 1358 | static PyObject *_wrap_ShapeRegion_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1359 | PyObject *resultobj; |
1360 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1361 | double *arg2 = (double *) 0 ; | |
1362 | double *arg3 = (double *) 0 ; | |
1363 | double temp2 ; | |
c370783e | 1364 | int res2 = 0 ; |
44127b65 | 1365 | double temp3 ; |
c370783e | 1366 | int res3 = 0 ; |
44127b65 RD |
1367 | PyObject * obj0 = 0 ; |
1368 | char *kwnames[] = { | |
1369 | (char *) "self", NULL | |
1370 | }; | |
1371 | ||
c370783e RD |
1372 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
1373 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
44127b65 | 1374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetMinSize",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1377 | { |
1378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1379 | (arg1)->GetMinSize(arg2,arg3); | |
1380 | ||
1381 | wxPyEndAllowThreads(__tstate); | |
1382 | if (PyErr_Occurred()) SWIG_fail; | |
1383 | } | |
1384 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
1385 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
1386 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
1387 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
1388 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
1389 | return resultobj; |
1390 | fail: | |
1391 | return NULL; | |
1392 | } | |
1393 | ||
1394 | ||
c370783e | 1395 | static PyObject *_wrap_ShapeRegion_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1396 | PyObject *resultobj; |
1397 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1398 | double *arg2 = (double *) 0 ; | |
1399 | double *arg3 = (double *) 0 ; | |
1400 | double temp2 ; | |
c370783e | 1401 | int res2 = 0 ; |
44127b65 | 1402 | double temp3 ; |
c370783e | 1403 | int res3 = 0 ; |
44127b65 RD |
1404 | PyObject * obj0 = 0 ; |
1405 | char *kwnames[] = { | |
1406 | (char *) "self", NULL | |
1407 | }; | |
1408 | ||
c370783e RD |
1409 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
1410 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
44127b65 | 1411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetProportion",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1414 | { |
1415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1416 | (arg1)->GetProportion(arg2,arg3); | |
1417 | ||
1418 | wxPyEndAllowThreads(__tstate); | |
1419 | if (PyErr_Occurred()) SWIG_fail; | |
1420 | } | |
1421 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
1422 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
1423 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
1424 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
1425 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
1426 | return resultobj; |
1427 | fail: | |
1428 | return NULL; | |
1429 | } | |
1430 | ||
1431 | ||
c370783e | 1432 | static PyObject *_wrap_ShapeRegion_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1433 | PyObject *resultobj; |
1434 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1435 | double *arg2 = (double *) 0 ; | |
1436 | double *arg3 = (double *) 0 ; | |
1437 | double temp2 ; | |
c370783e | 1438 | int res2 = 0 ; |
44127b65 | 1439 | double temp3 ; |
c370783e | 1440 | int res3 = 0 ; |
44127b65 RD |
1441 | PyObject * obj0 = 0 ; |
1442 | char *kwnames[] = { | |
1443 | (char *) "self", NULL | |
1444 | }; | |
1445 | ||
c370783e RD |
1446 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
1447 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
44127b65 | 1448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetSize",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1451 | { |
1452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1453 | (arg1)->GetSize(arg2,arg3); | |
1454 | ||
1455 | wxPyEndAllowThreads(__tstate); | |
1456 | if (PyErr_Occurred()) SWIG_fail; | |
1457 | } | |
1458 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
1459 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
1460 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
1461 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
1462 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
1463 | return resultobj; |
1464 | fail: | |
1465 | return NULL; | |
1466 | } | |
1467 | ||
1468 | ||
c370783e | 1469 | static PyObject *_wrap_ShapeRegion_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1470 | PyObject *resultobj; |
1471 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1472 | double *arg2 = (double *) 0 ; | |
1473 | double *arg3 = (double *) 0 ; | |
1474 | double temp2 ; | |
c370783e | 1475 | int res2 = 0 ; |
44127b65 | 1476 | double temp3 ; |
c370783e | 1477 | int res3 = 0 ; |
44127b65 RD |
1478 | PyObject * obj0 = 0 ; |
1479 | char *kwnames[] = { | |
1480 | (char *) "self", NULL | |
1481 | }; | |
1482 | ||
c370783e RD |
1483 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
1484 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
44127b65 | 1485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetPosition",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1488 | { |
1489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1490 | (arg1)->GetPosition(arg2,arg3); | |
1491 | ||
1492 | wxPyEndAllowThreads(__tstate); | |
1493 | if (PyErr_Occurred()) SWIG_fail; | |
1494 | } | |
1495 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
1496 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
1497 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
1498 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
1499 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
1500 | return resultobj; |
1501 | fail: | |
1502 | return NULL; | |
1503 | } | |
1504 | ||
1505 | ||
c370783e | 1506 | static PyObject *_wrap_ShapeRegion_GetFormatMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1507 | PyObject *resultobj; |
1508 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1509 | int result; | |
1510 | PyObject * obj0 = 0 ; | |
1511 | char *kwnames[] = { | |
1512 | (char *) "self", NULL | |
1513 | }; | |
1514 | ||
1515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetFormatMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1518 | { |
1519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1520 | result = (int)(arg1)->GetFormatMode(); | |
1521 | ||
1522 | wxPyEndAllowThreads(__tstate); | |
1523 | if (PyErr_Occurred()) SWIG_fail; | |
1524 | } | |
c370783e | 1525 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
1526 | return resultobj; |
1527 | fail: | |
1528 | return NULL; | |
1529 | } | |
1530 | ||
1531 | ||
c370783e | 1532 | static PyObject *_wrap_ShapeRegion_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1533 | PyObject *resultobj; |
1534 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1535 | wxString result; | |
1536 | PyObject * obj0 = 0 ; | |
1537 | char *kwnames[] = { | |
1538 | (char *) "self", NULL | |
1539 | }; | |
1540 | ||
1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1544 | { |
1545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1546 | result = (arg1)->GetName(); | |
1547 | ||
1548 | wxPyEndAllowThreads(__tstate); | |
1549 | if (PyErr_Occurred()) SWIG_fail; | |
1550 | } | |
1551 | { | |
1552 | #if wxUSE_UNICODE | |
1553 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1554 | #else | |
1555 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1556 | #endif | |
1557 | } | |
1558 | return resultobj; | |
1559 | fail: | |
1560 | return NULL; | |
1561 | } | |
1562 | ||
1563 | ||
c370783e | 1564 | static PyObject *_wrap_ShapeRegion_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1565 | PyObject *resultobj; |
1566 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1567 | wxString result; | |
1568 | PyObject * obj0 = 0 ; | |
1569 | char *kwnames[] = { | |
1570 | (char *) "self", NULL | |
1571 | }; | |
1572 | ||
1573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1576 | { |
1577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1578 | result = (arg1)->GetColour(); | |
1579 | ||
1580 | wxPyEndAllowThreads(__tstate); | |
1581 | if (PyErr_Occurred()) SWIG_fail; | |
1582 | } | |
1583 | { | |
1584 | #if wxUSE_UNICODE | |
1585 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1586 | #else | |
1587 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1588 | #endif | |
1589 | } | |
1590 | return resultobj; | |
1591 | fail: | |
1592 | return NULL; | |
1593 | } | |
1594 | ||
1595 | ||
c370783e | 1596 | static PyObject *_wrap_ShapeRegion_GetActualColourObject(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1597 | PyObject *resultobj; |
1598 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
d896a793 | 1599 | wxColour result; |
44127b65 RD |
1600 | PyObject * obj0 = 0 ; |
1601 | char *kwnames[] = { | |
1602 | (char *) "self", NULL | |
1603 | }; | |
1604 | ||
1605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetActualColourObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1608 | { |
1609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d896a793 | 1610 | result = (arg1)->GetActualColourObject(); |
44127b65 RD |
1611 | |
1612 | wxPyEndAllowThreads(__tstate); | |
1613 | if (PyErr_Occurred()) SWIG_fail; | |
1614 | } | |
d896a793 RD |
1615 | { |
1616 | wxColour * resultptr; | |
1617 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 1618 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d896a793 | 1619 | } |
44127b65 RD |
1620 | return resultobj; |
1621 | fail: | |
1622 | return NULL; | |
1623 | } | |
1624 | ||
1625 | ||
c370783e | 1626 | static PyObject *_wrap_ShapeRegion_GetFormattedText(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1627 | PyObject *resultobj; |
1628 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1629 | wxList *result; | |
1630 | PyObject * obj0 = 0 ; | |
1631 | char *kwnames[] = { | |
1632 | (char *) "self", NULL | |
1633 | }; | |
1634 | ||
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetFormattedText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1638 | { |
1639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1640 | { | |
1641 | wxList &_result_ref = (arg1)->GetFormattedText(); | |
1642 | result = (wxList *) &_result_ref; | |
1643 | } | |
1644 | ||
1645 | wxPyEndAllowThreads(__tstate); | |
1646 | if (PyErr_Occurred()) SWIG_fail; | |
1647 | } | |
2f4c0a16 | 1648 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxList, 0); |
44127b65 RD |
1649 | return resultobj; |
1650 | fail: | |
1651 | return NULL; | |
1652 | } | |
1653 | ||
1654 | ||
c370783e | 1655 | static PyObject *_wrap_ShapeRegion_GetPenColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1656 | PyObject *resultobj; |
1657 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1658 | wxString result; | |
1659 | PyObject * obj0 = 0 ; | |
1660 | char *kwnames[] = { | |
1661 | (char *) "self", NULL | |
1662 | }; | |
1663 | ||
1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetPenColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1667 | { |
1668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1669 | result = (arg1)->GetPenColour(); | |
1670 | ||
1671 | wxPyEndAllowThreads(__tstate); | |
1672 | if (PyErr_Occurred()) SWIG_fail; | |
1673 | } | |
1674 | { | |
1675 | #if wxUSE_UNICODE | |
1676 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1677 | #else | |
1678 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1679 | #endif | |
1680 | } | |
1681 | return resultobj; | |
1682 | fail: | |
1683 | return NULL; | |
1684 | } | |
1685 | ||
1686 | ||
c370783e | 1687 | static PyObject *_wrap_ShapeRegion_GetPenStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1688 | PyObject *resultobj; |
1689 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1690 | int result; | |
1691 | PyObject * obj0 = 0 ; | |
1692 | char *kwnames[] = { | |
1693 | (char *) "self", NULL | |
1694 | }; | |
1695 | ||
1696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetPenStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1699 | { |
1700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1701 | result = (int)(arg1)->GetPenStyle(); | |
1702 | ||
1703 | wxPyEndAllowThreads(__tstate); | |
1704 | if (PyErr_Occurred()) SWIG_fail; | |
1705 | } | |
c370783e | 1706 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
1707 | return resultobj; |
1708 | fail: | |
1709 | return NULL; | |
1710 | } | |
1711 | ||
1712 | ||
c370783e | 1713 | static PyObject *_wrap_ShapeRegion_SetPenStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1714 | PyObject *resultobj; |
1715 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1716 | int arg2 ; | |
1717 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1718 | PyObject * obj1 = 0 ; |
44127b65 RD |
1719 | char *kwnames[] = { |
1720 | (char *) "self",(char *) "style", NULL | |
1721 | }; | |
1722 | ||
8edf1c75 | 1723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetPenStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1726 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 1727 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
1728 | { |
1729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1730 | (arg1)->SetPenStyle(arg2); | |
1731 | ||
1732 | wxPyEndAllowThreads(__tstate); | |
1733 | if (PyErr_Occurred()) SWIG_fail; | |
1734 | } | |
1735 | Py_INCREF(Py_None); resultobj = Py_None; | |
1736 | return resultobj; | |
1737 | fail: | |
1738 | return NULL; | |
1739 | } | |
1740 | ||
1741 | ||
c370783e | 1742 | static PyObject *_wrap_ShapeRegion_SetPenColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1743 | PyObject *resultobj; |
1744 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1745 | wxString *arg2 = 0 ; | |
1746 | bool temp2 = False ; | |
1747 | PyObject * obj0 = 0 ; | |
1748 | PyObject * obj1 = 0 ; | |
1749 | char *kwnames[] = { | |
1750 | (char *) "self",(char *) "col", NULL | |
1751 | }; | |
1752 | ||
1753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShapeRegion_SetPenColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1756 | { |
1757 | arg2 = wxString_in_helper(obj1); | |
1758 | if (arg2 == NULL) SWIG_fail; | |
1759 | temp2 = True; | |
1760 | } | |
1761 | { | |
1762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1763 | (arg1)->SetPenColour((wxString const &)*arg2); | |
1764 | ||
1765 | wxPyEndAllowThreads(__tstate); | |
1766 | if (PyErr_Occurred()) SWIG_fail; | |
1767 | } | |
1768 | Py_INCREF(Py_None); resultobj = Py_None; | |
1769 | { | |
1770 | if (temp2) | |
1771 | delete arg2; | |
1772 | } | |
1773 | return resultobj; | |
1774 | fail: | |
1775 | { | |
1776 | if (temp2) | |
1777 | delete arg2; | |
1778 | } | |
1779 | return NULL; | |
1780 | } | |
1781 | ||
1782 | ||
c370783e | 1783 | static PyObject *_wrap_ShapeRegion_GetActualPen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1784 | PyObject *resultobj; |
1785 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1786 | wxPen *result; | |
1787 | PyObject * obj0 = 0 ; | |
1788 | char *kwnames[] = { | |
1789 | (char *) "self", NULL | |
1790 | }; | |
1791 | ||
1792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetActualPen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1795 | { |
1796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1797 | result = (wxPen *)(arg1)->GetActualPen(); | |
1798 | ||
1799 | wxPyEndAllowThreads(__tstate); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | } | |
2f4c0a16 | 1802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
44127b65 RD |
1803 | return resultobj; |
1804 | fail: | |
1805 | return NULL; | |
1806 | } | |
1807 | ||
1808 | ||
c370783e | 1809 | static PyObject *_wrap_ShapeRegion_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1810 | PyObject *resultobj; |
1811 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1812 | double result; | |
1813 | PyObject * obj0 = 0 ; | |
1814 | char *kwnames[] = { | |
1815 | (char *) "self", NULL | |
1816 | }; | |
1817 | ||
1818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1821 | { |
1822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1823 | result = (double)(arg1)->GetWidth(); | |
1824 | ||
1825 | wxPyEndAllowThreads(__tstate); | |
1826 | if (PyErr_Occurred()) SWIG_fail; | |
1827 | } | |
c370783e | 1828 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
1829 | return resultobj; |
1830 | fail: | |
1831 | return NULL; | |
1832 | } | |
1833 | ||
1834 | ||
c370783e | 1835 | static PyObject *_wrap_ShapeRegion_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1836 | PyObject *resultobj; |
1837 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1838 | double result; | |
1839 | PyObject * obj0 = 0 ; | |
1840 | char *kwnames[] = { | |
1841 | (char *) "self", NULL | |
1842 | }; | |
1843 | ||
1844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1847 | { |
1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1849 | result = (double)(arg1)->GetHeight(); | |
1850 | ||
1851 | wxPyEndAllowThreads(__tstate); | |
1852 | if (PyErr_Occurred()) SWIG_fail; | |
1853 | } | |
c370783e | 1854 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
1855 | return resultobj; |
1856 | fail: | |
1857 | return NULL; | |
1858 | } | |
1859 | ||
1860 | ||
c370783e | 1861 | static PyObject *_wrap_ShapeRegion_ClearText(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
1862 | PyObject *resultobj; |
1863 | wxShapeRegion *arg1 = (wxShapeRegion *) 0 ; | |
1864 | PyObject * obj0 = 0 ; | |
1865 | char *kwnames[] = { | |
1866 | (char *) "self", NULL | |
1867 | }; | |
1868 | ||
1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShapeRegion_ClearText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShapeRegion, |
1871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
1872 | { |
1873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1874 | (arg1)->ClearText(); | |
1875 | ||
1876 | wxPyEndAllowThreads(__tstate); | |
1877 | if (PyErr_Occurred()) SWIG_fail; | |
1878 | } | |
1879 | Py_INCREF(Py_None); resultobj = Py_None; | |
1880 | return resultobj; | |
1881 | fail: | |
1882 | return NULL; | |
1883 | } | |
1884 | ||
1885 | ||
c370783e | 1886 | static PyObject * ShapeRegion_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
1887 | PyObject *obj; |
1888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1889 | SWIG_TypeClientData(SWIGTYPE_p_wxShapeRegion, obj); | |
1890 | Py_INCREF(obj); | |
1891 | return Py_BuildValue((char *)""); | |
1892 | } | |
c370783e | 1893 | static PyObject *_wrap_new_AttachmentPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
1894 | PyObject *resultobj; |
1895 | int arg1 = (int) 0 ; | |
1896 | double arg2 = (double) 0.0 ; | |
1897 | double arg3 = (double) 0.0 ; | |
1898 | wxAttachmentPoint *result; | |
8edf1c75 RD |
1899 | PyObject * obj0 = 0 ; |
1900 | PyObject * obj1 = 0 ; | |
1901 | PyObject * obj2 = 0 ; | |
7a0a63ae RD |
1902 | char *kwnames[] = { |
1903 | (char *) "id",(char *) "x",(char *) "y", NULL | |
1904 | }; | |
1905 | ||
8edf1c75 RD |
1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AttachmentPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
1907 | if (obj0) { | |
c370783e | 1908 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 1909 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
1910 | } |
1911 | if (obj1) { | |
c370783e | 1912 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 1913 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
1914 | } |
1915 | if (obj2) { | |
c370783e | 1916 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 1917 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 1918 | } |
7a0a63ae RD |
1919 | { |
1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1921 | result = (wxAttachmentPoint *)new wxAttachmentPoint(arg1,arg2,arg3); | |
1922 | ||
1923 | wxPyEndAllowThreads(__tstate); | |
1924 | if (PyErr_Occurred()) SWIG_fail; | |
1925 | } | |
2f4c0a16 | 1926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAttachmentPoint, 1); |
7a0a63ae RD |
1927 | return resultobj; |
1928 | fail: | |
1929 | return NULL; | |
1930 | } | |
1931 | ||
1932 | ||
c370783e | 1933 | static PyObject *_wrap_AttachmentPoint_m_id_set(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
1934 | PyObject *resultobj; |
1935 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1936 | int arg2 ; | |
1937 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1938 | PyObject * obj1 = 0 ; |
7a0a63ae RD |
1939 | char *kwnames[] = { |
1940 | (char *) "self",(char *) "m_id", NULL | |
1941 | }; | |
1942 | ||
8edf1c75 | 1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AttachmentPoint_m_id_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, |
1945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1946 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 1947 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
1948 | if (arg1) (arg1)->m_id = arg2; |
1949 | ||
1950 | Py_INCREF(Py_None); resultobj = Py_None; | |
1951 | return resultobj; | |
1952 | fail: | |
1953 | return NULL; | |
1954 | } | |
1955 | ||
1956 | ||
c370783e | 1957 | static PyObject *_wrap_AttachmentPoint_m_id_get(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
1958 | PyObject *resultobj; |
1959 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1960 | int result; | |
1961 | PyObject * obj0 = 0 ; | |
1962 | char *kwnames[] = { | |
1963 | (char *) "self", NULL | |
1964 | }; | |
1965 | ||
1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AttachmentPoint_m_id_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, |
1968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
1969 | result = (int) ((arg1)->m_id); |
1970 | ||
c370783e | 1971 | resultobj = SWIG_From_int((int)result); |
7a0a63ae RD |
1972 | return resultobj; |
1973 | fail: | |
1974 | return NULL; | |
1975 | } | |
1976 | ||
1977 | ||
c370783e | 1978 | static PyObject *_wrap_AttachmentPoint_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
1979 | PyObject *resultobj; |
1980 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
1981 | double arg2 ; | |
1982 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1983 | PyObject * obj1 = 0 ; |
7a0a63ae RD |
1984 | char *kwnames[] = { |
1985 | (char *) "self",(char *) "m_x", NULL | |
1986 | }; | |
1987 | ||
8edf1c75 | 1988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AttachmentPoint_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, |
1990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1991 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 1992 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
1993 | if (arg1) (arg1)->m_x = arg2; |
1994 | ||
1995 | Py_INCREF(Py_None); resultobj = Py_None; | |
1996 | return resultobj; | |
1997 | fail: | |
1998 | return NULL; | |
1999 | } | |
2000 | ||
2001 | ||
c370783e | 2002 | static PyObject *_wrap_AttachmentPoint_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
2003 | PyObject *resultobj; |
2004 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
2005 | double result; | |
2006 | PyObject * obj0 = 0 ; | |
2007 | char *kwnames[] = { | |
2008 | (char *) "self", NULL | |
2009 | }; | |
2010 | ||
2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AttachmentPoint_m_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, |
2013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
2014 | result = (double) ((arg1)->m_x); |
2015 | ||
c370783e | 2016 | resultobj = SWIG_From_double((double)result); |
7a0a63ae RD |
2017 | return resultobj; |
2018 | fail: | |
2019 | return NULL; | |
2020 | } | |
2021 | ||
2022 | ||
c370783e | 2023 | static PyObject *_wrap_AttachmentPoint_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
2024 | PyObject *resultobj; |
2025 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
2026 | double arg2 ; | |
2027 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2028 | PyObject * obj1 = 0 ; |
7a0a63ae RD |
2029 | char *kwnames[] = { |
2030 | (char *) "self",(char *) "m_y", NULL | |
2031 | }; | |
2032 | ||
8edf1c75 | 2033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AttachmentPoint_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, |
2035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2036 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 2037 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
2038 | if (arg1) (arg1)->m_y = arg2; |
2039 | ||
2040 | Py_INCREF(Py_None); resultobj = Py_None; | |
2041 | return resultobj; | |
2042 | fail: | |
2043 | return NULL; | |
2044 | } | |
2045 | ||
2046 | ||
c370783e | 2047 | static PyObject *_wrap_AttachmentPoint_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
2048 | PyObject *resultobj; |
2049 | wxAttachmentPoint *arg1 = (wxAttachmentPoint *) 0 ; | |
2050 | double result; | |
2051 | PyObject * obj0 = 0 ; | |
2052 | char *kwnames[] = { | |
2053 | (char *) "self", NULL | |
2054 | }; | |
2055 | ||
2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AttachmentPoint_m_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAttachmentPoint, |
2058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
2059 | result = (double) ((arg1)->m_y); |
2060 | ||
c370783e | 2061 | resultobj = SWIG_From_double((double)result); |
7a0a63ae RD |
2062 | return resultobj; |
2063 | fail: | |
2064 | return NULL; | |
2065 | } | |
2066 | ||
2067 | ||
c370783e | 2068 | static PyObject * AttachmentPoint_swigregister(PyObject *, PyObject *args) { |
7a0a63ae RD |
2069 | PyObject *obj; |
2070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2071 | SWIG_TypeClientData(SWIGTYPE_p_wxAttachmentPoint, obj); | |
2072 | Py_INCREF(obj); | |
2073 | return Py_BuildValue((char *)""); | |
2074 | } | |
c370783e | 2075 | static PyObject *_wrap_new_PyShapeEvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2076 | PyObject *resultobj; |
2077 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) NULL ; | |
2078 | wxPyShape *arg2 = (wxPyShape *) NULL ; | |
2079 | wxPyShapeEvtHandler *result; | |
2080 | PyObject * obj0 = 0 ; | |
2081 | PyObject * obj1 = 0 ; | |
2082 | char *kwnames[] = { | |
2083 | (char *) "prev",(char *) "shape", NULL | |
2084 | }; | |
2085 | ||
2086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyShapeEvtHandler",kwnames,&obj0,&obj1)) goto fail; | |
2087 | if (obj0) { | |
2f4c0a16 RD |
2088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2090 | } |
2091 | if (obj1) { | |
2f4c0a16 RD |
2092 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, |
2093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2094 | } |
2095 | { | |
2096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2097 | result = (wxPyShapeEvtHandler *)new wxPyShapeEvtHandler(arg1,arg2); | |
2098 | ||
2099 | wxPyEndAllowThreads(__tstate); | |
2100 | if (PyErr_Occurred()) SWIG_fail; | |
2101 | } | |
b0f7404b | 2102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyShapeEvtHandler, 1); |
44127b65 RD |
2103 | return resultobj; |
2104 | fail: | |
2105 | return NULL; | |
2106 | } | |
2107 | ||
2108 | ||
c370783e | 2109 | static PyObject *_wrap_PyShapeEvtHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2110 | PyObject *resultobj; |
2111 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2112 | PyObject *arg2 = (PyObject *) 0 ; | |
2113 | PyObject *arg3 = (PyObject *) 0 ; | |
2114 | PyObject * obj0 = 0 ; | |
2115 | PyObject * obj1 = 0 ; | |
2116 | PyObject * obj2 = 0 ; | |
2117 | char *kwnames[] = { | |
2118 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
2119 | }; | |
2120 | ||
2121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeEvtHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
2122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2124 | arg2 = obj1; |
2125 | arg3 = obj2; | |
2126 | { | |
2127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2128 | (arg1)->_setCallbackInfo(arg2,arg3); | |
2129 | ||
2130 | wxPyEndAllowThreads(__tstate); | |
2131 | if (PyErr_Occurred()) SWIG_fail; | |
2132 | } | |
2133 | Py_INCREF(Py_None); resultobj = Py_None; | |
2134 | return resultobj; | |
2135 | fail: | |
2136 | return NULL; | |
2137 | } | |
2138 | ||
2139 | ||
c370783e | 2140 | static PyObject *_wrap_PyShapeEvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2141 | PyObject *resultobj; |
2142 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2143 | PyObject *arg2 = (PyObject *) 0 ; | |
2144 | PyObject * obj0 = 0 ; | |
2145 | PyObject * obj1 = 0 ; | |
2146 | char *kwnames[] = { | |
2147 | (char *) "self",(char *) "_self", NULL | |
2148 | }; | |
2149 | ||
2150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2153 | arg2 = obj1; |
2154 | { | |
2155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2156 | wxPyShapeEvtHandler__setOORInfo(arg1,arg2); | |
2157 | ||
2158 | wxPyEndAllowThreads(__tstate); | |
2159 | if (PyErr_Occurred()) SWIG_fail; | |
2160 | } | |
2161 | Py_INCREF(Py_None); resultobj = Py_None; | |
2162 | return resultobj; | |
2163 | fail: | |
2164 | return NULL; | |
2165 | } | |
2166 | ||
2167 | ||
c370783e | 2168 | static PyObject *_wrap_PyShapeEvtHandler_SetShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2169 | PyObject *resultobj; |
2170 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2171 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
2172 | PyObject * obj0 = 0 ; | |
2173 | PyObject * obj1 = 0 ; | |
2174 | char *kwnames[] = { | |
2175 | (char *) "self",(char *) "sh", NULL | |
2176 | }; | |
2177 | ||
2178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2181 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
2182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2183 | { |
2184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2185 | (arg1)->SetShape(arg2); | |
2186 | ||
2187 | wxPyEndAllowThreads(__tstate); | |
2188 | if (PyErr_Occurred()) SWIG_fail; | |
2189 | } | |
2190 | Py_INCREF(Py_None); resultobj = Py_None; | |
2191 | return resultobj; | |
2192 | fail: | |
2193 | return NULL; | |
2194 | } | |
2195 | ||
2196 | ||
c370783e | 2197 | static PyObject *_wrap_PyShapeEvtHandler_GetShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2198 | PyObject *resultobj; |
2199 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2200 | wxPyShape *result; | |
2201 | PyObject * obj0 = 0 ; | |
2202 | char *kwnames[] = { | |
2203 | (char *) "self", NULL | |
2204 | }; | |
2205 | ||
2206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_GetShape",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2209 | { |
2210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2211 | result = (wxPyShape *)(arg1)->GetShape(); | |
2212 | ||
2213 | wxPyEndAllowThreads(__tstate); | |
2214 | if (PyErr_Occurred()) SWIG_fail; | |
2215 | } | |
2216 | { | |
412d302d | 2217 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
2218 | } |
2219 | return resultobj; | |
2220 | fail: | |
2221 | return NULL; | |
2222 | } | |
2223 | ||
2224 | ||
c370783e | 2225 | static PyObject *_wrap_PyShapeEvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2226 | PyObject *resultobj; |
2227 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2228 | wxPyShapeEvtHandler *arg2 = (wxPyShapeEvtHandler *) 0 ; | |
2229 | PyObject * obj0 = 0 ; | |
2230 | PyObject * obj1 = 0 ; | |
2231 | char *kwnames[] = { | |
2232 | (char *) "self",(char *) "handler", NULL | |
2233 | }; | |
2234 | ||
2235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2238 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeEvtHandler, | |
2239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2240 | { |
2241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2242 | (arg1)->SetPreviousHandler(arg2); | |
2243 | ||
2244 | wxPyEndAllowThreads(__tstate); | |
2245 | if (PyErr_Occurred()) SWIG_fail; | |
2246 | } | |
2247 | Py_INCREF(Py_None); resultobj = Py_None; | |
2248 | return resultobj; | |
2249 | fail: | |
2250 | return NULL; | |
2251 | } | |
2252 | ||
2253 | ||
c370783e | 2254 | static PyObject *_wrap_PyShapeEvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2255 | PyObject *resultobj; |
2256 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2257 | wxPyShapeEvtHandler *result; | |
2258 | PyObject * obj0 = 0 ; | |
2259 | char *kwnames[] = { | |
2260 | (char *) "self", NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2266 | { |
2267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2268 | result = (wxPyShapeEvtHandler *)(arg1)->GetPreviousHandler(); | |
2269 | ||
2270 | wxPyEndAllowThreads(__tstate); | |
2271 | if (PyErr_Occurred()) SWIG_fail; | |
2272 | } | |
2273 | { | |
412d302d | 2274 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
2275 | } |
2276 | return resultobj; | |
2277 | fail: | |
2278 | return NULL; | |
2279 | } | |
2280 | ||
2281 | ||
c370783e | 2282 | static PyObject *_wrap_PyShapeEvtHandler_CreateNewCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2283 | PyObject *resultobj; |
2284 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2285 | wxPyShapeEvtHandler *result; | |
2286 | PyObject * obj0 = 0 ; | |
2287 | char *kwnames[] = { | |
2288 | (char *) "self", NULL | |
2289 | }; | |
2290 | ||
2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_CreateNewCopy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2294 | { |
2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2296 | result = (wxPyShapeEvtHandler *)(arg1)->CreateNewCopy(); | |
2297 | ||
2298 | wxPyEndAllowThreads(__tstate); | |
2299 | if (PyErr_Occurred()) SWIG_fail; | |
2300 | } | |
2301 | { | |
412d302d | 2302 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
2303 | } |
2304 | return resultobj; | |
2305 | fail: | |
2306 | return NULL; | |
2307 | } | |
2308 | ||
2309 | ||
c370783e | 2310 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2311 | PyObject *resultobj; |
2312 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2313 | PyObject * obj0 = 0 ; | |
2314 | char *kwnames[] = { | |
2315 | (char *) "self", NULL | |
2316 | }; | |
2317 | ||
2318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeEvtHandler_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
2321 | { |
2322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2323 | (arg1)->base_OnDelete(); | |
2324 | ||
2325 | wxPyEndAllowThreads(__tstate); | |
2326 | if (PyErr_Occurred()) SWIG_fail; | |
2327 | } | |
2328 | Py_INCREF(Py_None); resultobj = Py_None; | |
2329 | return resultobj; | |
2330 | fail: | |
2331 | return NULL; | |
2332 | } | |
2333 | ||
2334 | ||
c370783e | 2335 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2336 | PyObject *resultobj; |
2337 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2338 | wxDC *arg2 = 0 ; | |
2339 | PyObject * obj0 = 0 ; | |
2340 | PyObject * obj1 = 0 ; | |
2341 | char *kwnames[] = { | |
2342 | (char *) "self",(char *) "dc", NULL | |
2343 | }; | |
2344 | ||
2345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2349 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2350 | SWIG_fail; | |
44127b65 | 2351 | if (arg2 == NULL) { |
2f4c0a16 RD |
2352 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2353 | SWIG_fail; | |
44127b65 RD |
2354 | } |
2355 | { | |
2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2357 | (arg1)->base_OnDraw(*arg2); | |
2358 | ||
2359 | wxPyEndAllowThreads(__tstate); | |
2360 | if (PyErr_Occurred()) SWIG_fail; | |
2361 | } | |
2362 | Py_INCREF(Py_None); resultobj = Py_None; | |
2363 | return resultobj; | |
2364 | fail: | |
2365 | return NULL; | |
2366 | } | |
2367 | ||
2368 | ||
c370783e | 2369 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2370 | PyObject *resultobj; |
2371 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2372 | wxDC *arg2 = 0 ; | |
2373 | PyObject * obj0 = 0 ; | |
2374 | PyObject * obj1 = 0 ; | |
2375 | char *kwnames[] = { | |
2376 | (char *) "self",(char *) "dc", NULL | |
2377 | }; | |
2378 | ||
2379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2382 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2383 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2384 | SWIG_fail; | |
44127b65 | 2385 | if (arg2 == NULL) { |
2f4c0a16 RD |
2386 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2387 | SWIG_fail; | |
44127b65 RD |
2388 | } |
2389 | { | |
2390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2391 | (arg1)->base_OnDrawContents(*arg2); | |
2392 | ||
2393 | wxPyEndAllowThreads(__tstate); | |
2394 | if (PyErr_Occurred()) SWIG_fail; | |
2395 | } | |
2396 | Py_INCREF(Py_None); resultobj = Py_None; | |
2397 | return resultobj; | |
2398 | fail: | |
2399 | return NULL; | |
2400 | } | |
2401 | ||
2402 | ||
c370783e | 2403 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2404 | PyObject *resultobj; |
2405 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2406 | wxDC *arg2 = 0 ; | |
2407 | bool arg3 = (bool) False ; | |
2408 | PyObject * obj0 = 0 ; | |
2409 | PyObject * obj1 = 0 ; | |
2410 | PyObject * obj2 = 0 ; | |
2411 | char *kwnames[] = { | |
2412 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
2413 | }; | |
2414 | ||
2415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShapeEvtHandler_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
2416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2419 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2420 | SWIG_fail; | |
44127b65 | 2421 | if (arg2 == NULL) { |
2f4c0a16 RD |
2422 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2423 | SWIG_fail; | |
44127b65 RD |
2424 | } |
2425 | if (obj2) { | |
c370783e | 2426 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 2427 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
2428 | } |
2429 | { | |
2430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2431 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
2432 | ||
2433 | wxPyEndAllowThreads(__tstate); | |
2434 | if (PyErr_Occurred()) SWIG_fail; | |
2435 | } | |
2436 | Py_INCREF(Py_None); resultobj = Py_None; | |
2437 | return resultobj; | |
2438 | fail: | |
2439 | return NULL; | |
2440 | } | |
2441 | ||
2442 | ||
c370783e | 2443 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2444 | PyObject *resultobj; |
2445 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2446 | wxDC *arg2 = 0 ; | |
2447 | PyObject * obj0 = 0 ; | |
2448 | PyObject * obj1 = 0 ; | |
2449 | char *kwnames[] = { | |
2450 | (char *) "self",(char *) "dc", NULL | |
2451 | }; | |
2452 | ||
2453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2456 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2457 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2458 | SWIG_fail; | |
44127b65 | 2459 | if (arg2 == NULL) { |
2f4c0a16 RD |
2460 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2461 | SWIG_fail; | |
44127b65 RD |
2462 | } |
2463 | { | |
2464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2465 | (arg1)->base_OnMoveLinks(*arg2); | |
2466 | ||
2467 | wxPyEndAllowThreads(__tstate); | |
2468 | if (PyErr_Occurred()) SWIG_fail; | |
2469 | } | |
2470 | Py_INCREF(Py_None); resultobj = Py_None; | |
2471 | return resultobj; | |
2472 | fail: | |
2473 | return NULL; | |
2474 | } | |
2475 | ||
2476 | ||
c370783e | 2477 | static PyObject *_wrap_PyShapeEvtHandler_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2478 | PyObject *resultobj; |
2479 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2480 | wxDC *arg2 = 0 ; | |
2481 | PyObject * obj0 = 0 ; | |
2482 | PyObject * obj1 = 0 ; | |
2483 | char *kwnames[] = { | |
2484 | (char *) "self",(char *) "dc", NULL | |
2485 | }; | |
2486 | ||
2487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2491 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2492 | SWIG_fail; | |
44127b65 | 2493 | if (arg2 == NULL) { |
2f4c0a16 RD |
2494 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2495 | SWIG_fail; | |
44127b65 RD |
2496 | } |
2497 | { | |
2498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2499 | (arg1)->base_OnErase(*arg2); | |
2500 | ||
2501 | wxPyEndAllowThreads(__tstate); | |
2502 | if (PyErr_Occurred()) SWIG_fail; | |
2503 | } | |
2504 | Py_INCREF(Py_None); resultobj = Py_None; | |
2505 | return resultobj; | |
2506 | fail: | |
2507 | return NULL; | |
2508 | } | |
2509 | ||
2510 | ||
c370783e | 2511 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2512 | PyObject *resultobj; |
2513 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2514 | wxDC *arg2 = 0 ; | |
2515 | PyObject * obj0 = 0 ; | |
2516 | PyObject * obj1 = 0 ; | |
2517 | char *kwnames[] = { | |
2518 | (char *) "self",(char *) "dc", NULL | |
2519 | }; | |
2520 | ||
2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2525 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2526 | SWIG_fail; | |
44127b65 | 2527 | if (arg2 == NULL) { |
2f4c0a16 RD |
2528 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2529 | SWIG_fail; | |
44127b65 RD |
2530 | } |
2531 | { | |
2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2533 | (arg1)->base_OnEraseContents(*arg2); | |
2534 | ||
2535 | wxPyEndAllowThreads(__tstate); | |
2536 | if (PyErr_Occurred()) SWIG_fail; | |
2537 | } | |
2538 | Py_INCREF(Py_None); resultobj = Py_None; | |
2539 | return resultobj; | |
2540 | fail: | |
2541 | return NULL; | |
2542 | } | |
2543 | ||
2544 | ||
c370783e | 2545 | static PyObject *_wrap_PyShapeEvtHandler_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2546 | PyObject *resultobj; |
2547 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2548 | wxDC *arg2 = 0 ; | |
2549 | PyObject * obj0 = 0 ; | |
2550 | PyObject * obj1 = 0 ; | |
2551 | char *kwnames[] = { | |
2552 | (char *) "self",(char *) "dc", NULL | |
2553 | }; | |
2554 | ||
2555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2560 | SWIG_fail; | |
44127b65 | 2561 | if (arg2 == NULL) { |
2f4c0a16 RD |
2562 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2563 | SWIG_fail; | |
44127b65 RD |
2564 | } |
2565 | { | |
2566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2567 | (arg1)->base_OnHighlight(*arg2); | |
2568 | ||
2569 | wxPyEndAllowThreads(__tstate); | |
2570 | if (PyErr_Occurred()) SWIG_fail; | |
2571 | } | |
2572 | Py_INCREF(Py_None); resultobj = Py_None; | |
2573 | return resultobj; | |
2574 | fail: | |
2575 | return NULL; | |
2576 | } | |
2577 | ||
2578 | ||
c370783e | 2579 | static PyObject *_wrap_PyShapeEvtHandler_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2580 | PyObject *resultobj; |
2581 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2582 | double arg2 ; | |
2583 | double arg3 ; | |
2584 | int arg4 = (int) 0 ; | |
2585 | int arg5 = (int) 0 ; | |
2586 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2587 | PyObject * obj1 = 0 ; |
2588 | PyObject * obj2 = 0 ; | |
2589 | PyObject * obj3 = 0 ; | |
2590 | PyObject * obj4 = 0 ; | |
44127b65 RD |
2591 | char *kwnames[] = { |
2592 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2593 | }; | |
2594 | ||
8edf1c75 | 2595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
2596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2598 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 2599 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2600 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 2601 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2602 | if (obj3) { |
c370783e | 2603 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 2604 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
2605 | } |
2606 | if (obj4) { | |
c370783e | 2607 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 2608 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2609 | } |
44127b65 RD |
2610 | { |
2611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2612 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
2613 | ||
2614 | wxPyEndAllowThreads(__tstate); | |
2615 | if (PyErr_Occurred()) SWIG_fail; | |
2616 | } | |
2617 | Py_INCREF(Py_None); resultobj = Py_None; | |
2618 | return resultobj; | |
2619 | fail: | |
2620 | return NULL; | |
2621 | } | |
2622 | ||
2623 | ||
c370783e | 2624 | static PyObject *_wrap_PyShapeEvtHandler_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2625 | PyObject *resultobj; |
2626 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2627 | double arg2 ; | |
2628 | double arg3 ; | |
2629 | int arg4 = (int) 0 ; | |
2630 | int arg5 = (int) 0 ; | |
2631 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2632 | PyObject * obj1 = 0 ; |
2633 | PyObject * obj2 = 0 ; | |
2634 | PyObject * obj3 = 0 ; | |
2635 | PyObject * obj4 = 0 ; | |
44127b65 RD |
2636 | char *kwnames[] = { |
2637 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2638 | }; | |
2639 | ||
8edf1c75 | 2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
2641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2643 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 2644 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2645 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 2646 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2647 | if (obj3) { |
c370783e | 2648 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 2649 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
2650 | } |
2651 | if (obj4) { | |
c370783e | 2652 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 2653 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2654 | } |
44127b65 RD |
2655 | { |
2656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2657 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
2658 | ||
2659 | wxPyEndAllowThreads(__tstate); | |
2660 | if (PyErr_Occurred()) SWIG_fail; | |
2661 | } | |
2662 | Py_INCREF(Py_None); resultobj = Py_None; | |
2663 | return resultobj; | |
2664 | fail: | |
2665 | return NULL; | |
2666 | } | |
2667 | ||
2668 | ||
c370783e | 2669 | static PyObject *_wrap_PyShapeEvtHandler_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2670 | PyObject *resultobj; |
2671 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2672 | double arg2 ; | |
2673 | double arg3 ; | |
2674 | int arg4 = (int) 0 ; | |
2675 | int arg5 = (int) 0 ; | |
2676 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2677 | PyObject * obj1 = 0 ; |
2678 | PyObject * obj2 = 0 ; | |
2679 | PyObject * obj3 = 0 ; | |
2680 | PyObject * obj4 = 0 ; | |
44127b65 RD |
2681 | char *kwnames[] = { |
2682 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2683 | }; | |
2684 | ||
8edf1c75 | 2685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
2686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2688 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 2689 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2690 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 2691 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2692 | if (obj3) { |
c370783e | 2693 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 2694 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
2695 | } |
2696 | if (obj4) { | |
c370783e | 2697 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 2698 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2699 | } |
44127b65 RD |
2700 | { |
2701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2702 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
2703 | ||
2704 | wxPyEndAllowThreads(__tstate); | |
2705 | if (PyErr_Occurred()) SWIG_fail; | |
2706 | } | |
2707 | Py_INCREF(Py_None); resultobj = Py_None; | |
2708 | return resultobj; | |
2709 | fail: | |
2710 | return NULL; | |
2711 | } | |
2712 | ||
2713 | ||
c370783e | 2714 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2715 | PyObject *resultobj; |
2716 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2717 | double arg2 ; | |
2718 | double arg3 ; | |
2719 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2720 | PyObject * obj1 = 0 ; |
2721 | PyObject * obj2 = 0 ; | |
44127b65 RD |
2722 | char *kwnames[] = { |
2723 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2724 | }; | |
2725 | ||
8edf1c75 | 2726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeEvtHandler_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2729 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 2730 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2731 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 2732 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
2733 | { |
2734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2735 | (arg1)->base_OnSize(arg2,arg3); | |
2736 | ||
2737 | wxPyEndAllowThreads(__tstate); | |
44127b65 RD |
2738 | if (PyErr_Occurred()) SWIG_fail; |
2739 | } | |
2740 | Py_INCREF(Py_None); resultobj = Py_None; | |
2741 | return resultobj; | |
2742 | fail: | |
2743 | return NULL; | |
2744 | } | |
2745 | ||
2746 | ||
c370783e | 2747 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2748 | PyObject *resultobj; |
2749 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2750 | wxDC *arg2 = 0 ; | |
2751 | double arg3 ; | |
2752 | double arg4 ; | |
2753 | double arg5 ; | |
2754 | double arg6 ; | |
2755 | bool arg7 = (bool) True ; | |
2756 | bool result; | |
2757 | PyObject * obj0 = 0 ; | |
2758 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
2759 | PyObject * obj2 = 0 ; |
2760 | PyObject * obj3 = 0 ; | |
2761 | PyObject * obj4 = 0 ; | |
2762 | PyObject * obj5 = 0 ; | |
44127b65 RD |
2763 | PyObject * obj6 = 0 ; |
2764 | char *kwnames[] = { | |
2765 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
2766 | }; | |
2767 | ||
8edf1c75 | 2768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyShapeEvtHandler_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
2769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2771 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2773 | SWIG_fail; | |
44127b65 | 2774 | if (arg2 == NULL) { |
2f4c0a16 RD |
2775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2776 | SWIG_fail; | |
2777 | } | |
c370783e | 2778 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 2779 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2780 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 2781 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2782 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 2783 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2784 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 2785 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 2786 | if (obj6) { |
c370783e | 2787 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 2788 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
2789 | } |
2790 | { | |
2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2792 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
2793 | ||
2794 | wxPyEndAllowThreads(__tstate); | |
2795 | if (PyErr_Occurred()) SWIG_fail; | |
2796 | } | |
fbc46b20 RD |
2797 | { |
2798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2799 | } | |
44127b65 RD |
2800 | return resultobj; |
2801 | fail: | |
2802 | return NULL; | |
2803 | } | |
2804 | ||
2805 | ||
c370783e | 2806 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2807 | PyObject *resultobj; |
2808 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2809 | wxDC *arg2 = 0 ; | |
2810 | double arg3 ; | |
2811 | double arg4 ; | |
2812 | double arg5 ; | |
2813 | double arg6 ; | |
2814 | bool arg7 = (bool) True ; | |
2815 | PyObject * obj0 = 0 ; | |
2816 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
2817 | PyObject * obj2 = 0 ; |
2818 | PyObject * obj3 = 0 ; | |
2819 | PyObject * obj4 = 0 ; | |
2820 | PyObject * obj5 = 0 ; | |
44127b65 RD |
2821 | PyObject * obj6 = 0 ; |
2822 | char *kwnames[] = { | |
2823 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
2824 | }; | |
2825 | ||
8edf1c75 | 2826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyShapeEvtHandler_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
2827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2829 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2830 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2831 | SWIG_fail; | |
44127b65 | 2832 | if (arg2 == NULL) { |
2f4c0a16 RD |
2833 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2834 | SWIG_fail; | |
2835 | } | |
c370783e | 2836 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 2837 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2838 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 2839 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2840 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 2841 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2842 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 2843 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 2844 | if (obj6) { |
c370783e | 2845 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 2846 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
2847 | } |
2848 | { | |
2849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2850 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
2851 | ||
2852 | wxPyEndAllowThreads(__tstate); | |
2853 | if (PyErr_Occurred()) SWIG_fail; | |
2854 | } | |
2855 | Py_INCREF(Py_None); resultobj = Py_None; | |
2856 | return resultobj; | |
2857 | fail: | |
2858 | return NULL; | |
2859 | } | |
2860 | ||
2861 | ||
c370783e | 2862 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2863 | PyObject *resultobj; |
2864 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2865 | bool arg2 ; | |
2866 | double arg3 ; | |
2867 | double arg4 ; | |
2868 | int arg5 = (int) 0 ; | |
2869 | int arg6 = (int) 0 ; | |
2870 | PyObject * obj0 = 0 ; | |
2871 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
2872 | PyObject * obj2 = 0 ; |
2873 | PyObject * obj3 = 0 ; | |
2874 | PyObject * obj4 = 0 ; | |
2875 | PyObject * obj5 = 0 ; | |
44127b65 RD |
2876 | char *kwnames[] = { |
2877 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2878 | }; | |
2879 | ||
8edf1c75 | 2880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShapeEvtHandler_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
2881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2883 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 2884 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2885 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 2886 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2887 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 2888 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2889 | if (obj4) { |
c370783e | 2890 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 2891 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
2892 | } |
2893 | if (obj5) { | |
c370783e | 2894 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 2895 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2896 | } |
44127b65 RD |
2897 | { |
2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2899 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
2900 | ||
2901 | wxPyEndAllowThreads(__tstate); | |
2902 | if (PyErr_Occurred()) SWIG_fail; | |
2903 | } | |
2904 | Py_INCREF(Py_None); resultobj = Py_None; | |
2905 | return resultobj; | |
2906 | fail: | |
2907 | return NULL; | |
2908 | } | |
2909 | ||
2910 | ||
c370783e | 2911 | static PyObject *_wrap_PyShapeEvtHandler_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2912 | PyObject *resultobj; |
2913 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2914 | double arg2 ; | |
2915 | double arg3 ; | |
2916 | int arg4 = (int) 0 ; | |
2917 | int arg5 = (int) 0 ; | |
2918 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2919 | PyObject * obj1 = 0 ; |
2920 | PyObject * obj2 = 0 ; | |
2921 | PyObject * obj3 = 0 ; | |
2922 | PyObject * obj4 = 0 ; | |
44127b65 RD |
2923 | char *kwnames[] = { |
2924 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2925 | }; | |
2926 | ||
8edf1c75 | 2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
2928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2930 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 2931 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2932 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 2933 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2934 | if (obj3) { |
c370783e | 2935 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 2936 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
2937 | } |
2938 | if (obj4) { | |
c370783e | 2939 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 2940 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2941 | } |
44127b65 RD |
2942 | { |
2943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2944 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
2945 | ||
2946 | wxPyEndAllowThreads(__tstate); | |
2947 | if (PyErr_Occurred()) SWIG_fail; | |
2948 | } | |
2949 | Py_INCREF(Py_None); resultobj = Py_None; | |
2950 | return resultobj; | |
2951 | fail: | |
2952 | return NULL; | |
2953 | } | |
2954 | ||
2955 | ||
c370783e | 2956 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
2957 | PyObject *resultobj; |
2958 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
2959 | double arg2 ; | |
2960 | double arg3 ; | |
2961 | int arg4 = (int) 0 ; | |
2962 | int arg5 = (int) 0 ; | |
2963 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2964 | PyObject * obj1 = 0 ; |
2965 | PyObject * obj2 = 0 ; | |
2966 | PyObject * obj3 = 0 ; | |
2967 | PyObject * obj4 = 0 ; | |
44127b65 RD |
2968 | char *kwnames[] = { |
2969 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
2970 | }; | |
2971 | ||
8edf1c75 | 2972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
2973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
2974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2975 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 2976 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2977 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 2978 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2979 | if (obj3) { |
c370783e | 2980 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 2981 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
2982 | } |
2983 | if (obj4) { | |
c370783e | 2984 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 2985 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2986 | } |
44127b65 RD |
2987 | { |
2988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2989 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
2990 | ||
2991 | wxPyEndAllowThreads(__tstate); | |
2992 | if (PyErr_Occurred()) SWIG_fail; | |
2993 | } | |
2994 | Py_INCREF(Py_None); resultobj = Py_None; | |
2995 | return resultobj; | |
2996 | fail: | |
2997 | return NULL; | |
2998 | } | |
2999 | ||
3000 | ||
c370783e | 3001 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3002 | PyObject *resultobj; |
3003 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3004 | bool arg2 ; | |
3005 | double arg3 ; | |
3006 | double arg4 ; | |
3007 | int arg5 = (int) 0 ; | |
3008 | int arg6 = (int) 0 ; | |
3009 | PyObject * obj0 = 0 ; | |
3010 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3011 | PyObject * obj2 = 0 ; |
3012 | PyObject * obj3 = 0 ; | |
3013 | PyObject * obj4 = 0 ; | |
3014 | PyObject * obj5 = 0 ; | |
44127b65 RD |
3015 | char *kwnames[] = { |
3016 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3017 | }; | |
3018 | ||
8edf1c75 | 3019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShapeEvtHandler_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
3020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3022 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 3023 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3024 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 3025 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3026 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 3027 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3028 | if (obj4) { |
c370783e | 3029 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 3030 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
3031 | } |
3032 | if (obj5) { | |
c370783e | 3033 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 3034 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3035 | } |
44127b65 RD |
3036 | { |
3037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3038 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
3039 | ||
3040 | wxPyEndAllowThreads(__tstate); | |
3041 | if (PyErr_Occurred()) SWIG_fail; | |
3042 | } | |
3043 | Py_INCREF(Py_None); resultobj = Py_None; | |
3044 | return resultobj; | |
3045 | fail: | |
3046 | return NULL; | |
3047 | } | |
3048 | ||
3049 | ||
c370783e | 3050 | static PyObject *_wrap_PyShapeEvtHandler_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3051 | PyObject *resultobj; |
3052 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3053 | double arg2 ; | |
3054 | double arg3 ; | |
3055 | int arg4 = (int) 0 ; | |
3056 | int arg5 = (int) 0 ; | |
3057 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3058 | PyObject * obj1 = 0 ; |
3059 | PyObject * obj2 = 0 ; | |
3060 | PyObject * obj3 = 0 ; | |
3061 | PyObject * obj4 = 0 ; | |
44127b65 RD |
3062 | char *kwnames[] = { |
3063 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3064 | }; | |
3065 | ||
8edf1c75 | 3066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
3067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3069 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 3070 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3071 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 3072 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3073 | if (obj3) { |
c370783e | 3074 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 3075 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
3076 | } |
3077 | if (obj4) { | |
c370783e | 3078 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 3079 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3080 | } |
44127b65 RD |
3081 | { |
3082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3083 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
3084 | ||
3085 | wxPyEndAllowThreads(__tstate); | |
3086 | if (PyErr_Occurred()) SWIG_fail; | |
3087 | } | |
3088 | Py_INCREF(Py_None); resultobj = Py_None; | |
3089 | return resultobj; | |
3090 | fail: | |
3091 | return NULL; | |
3092 | } | |
3093 | ||
3094 | ||
c370783e | 3095 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3096 | PyObject *resultobj; |
3097 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3098 | double arg2 ; | |
3099 | double arg3 ; | |
3100 | int arg4 = (int) 0 ; | |
3101 | int arg5 = (int) 0 ; | |
3102 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3103 | PyObject * obj1 = 0 ; |
3104 | PyObject * obj2 = 0 ; | |
3105 | PyObject * obj3 = 0 ; | |
3106 | PyObject * obj4 = 0 ; | |
44127b65 RD |
3107 | char *kwnames[] = { |
3108 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3109 | }; | |
3110 | ||
8edf1c75 | 3111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeEvtHandler_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
3112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3114 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 3115 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3116 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 RD |
3117 | if (PyErr_Occurred()) SWIG_fail; |
3118 | if (obj3) { | |
c370783e | 3119 | arg4 = (int)SWIG_As_int(obj3); |
8edf1c75 RD |
3120 | if (PyErr_Occurred()) SWIG_fail; |
3121 | } | |
2f4c0a16 | 3122 | if (obj4) { |
c370783e | 3123 | arg5 = (int)SWIG_As_int(obj4); |
8edf1c75 RD |
3124 | if (PyErr_Occurred()) SWIG_fail; |
3125 | } | |
44127b65 RD |
3126 | { |
3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3128 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
3129 | ||
3130 | wxPyEndAllowThreads(__tstate); | |
3131 | if (PyErr_Occurred()) SWIG_fail; | |
3132 | } | |
3133 | Py_INCREF(Py_None); resultobj = Py_None; | |
3134 | return resultobj; | |
3135 | fail: | |
3136 | return NULL; | |
3137 | } | |
3138 | ||
3139 | ||
c370783e | 3140 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3141 | PyObject *resultobj; |
3142 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3143 | wxDC *arg2 = 0 ; | |
3144 | double arg3 ; | |
3145 | double arg4 ; | |
3146 | double arg5 ; | |
3147 | double arg6 ; | |
3148 | PyObject * obj0 = 0 ; | |
3149 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3150 | PyObject * obj2 = 0 ; |
3151 | PyObject * obj3 = 0 ; | |
3152 | PyObject * obj4 = 0 ; | |
3153 | PyObject * obj5 = 0 ; | |
44127b65 RD |
3154 | char *kwnames[] = { |
3155 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
3156 | }; | |
3157 | ||
8edf1c75 | 3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyShapeEvtHandler_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
3159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
3162 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3163 | SWIG_fail; | |
44127b65 | 3164 | if (arg2 == NULL) { |
2f4c0a16 RD |
3165 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3166 | SWIG_fail; | |
8edf1c75 | 3167 | } |
c370783e | 3168 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 3169 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3170 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 3171 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3172 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 3173 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3174 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 3175 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
3176 | { |
3177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3178 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
3179 | ||
3180 | wxPyEndAllowThreads(__tstate); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
3183 | Py_INCREF(Py_None); resultobj = Py_None; | |
3184 | return resultobj; | |
3185 | fail: | |
3186 | return NULL; | |
3187 | } | |
3188 | ||
3189 | ||
c370783e | 3190 | static PyObject *_wrap_PyShapeEvtHandler_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3191 | PyObject *resultobj; |
3192 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3193 | wxDC *arg2 = 0 ; | |
3194 | PyObject * obj0 = 0 ; | |
3195 | PyObject * obj1 = 0 ; | |
3196 | char *kwnames[] = { | |
3197 | (char *) "self",(char *) "dc", NULL | |
3198 | }; | |
3199 | ||
3200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3203 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
3204 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3205 | SWIG_fail; | |
44127b65 | 3206 | if (arg2 == NULL) { |
2f4c0a16 RD |
3207 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3208 | SWIG_fail; | |
44127b65 RD |
3209 | } |
3210 | { | |
3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3212 | (arg1)->base_OnDrawControlPoints(*arg2); | |
3213 | ||
3214 | wxPyEndAllowThreads(__tstate); | |
3215 | if (PyErr_Occurred()) SWIG_fail; | |
3216 | } | |
3217 | Py_INCREF(Py_None); resultobj = Py_None; | |
3218 | return resultobj; | |
3219 | fail: | |
3220 | return NULL; | |
3221 | } | |
3222 | ||
3223 | ||
c370783e | 3224 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3225 | PyObject *resultobj; |
3226 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3227 | wxDC *arg2 = 0 ; | |
3228 | PyObject * obj0 = 0 ; | |
3229 | PyObject * obj1 = 0 ; | |
3230 | char *kwnames[] = { | |
3231 | (char *) "self",(char *) "dc", NULL | |
3232 | }; | |
3233 | ||
3234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeEvtHandler_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3237 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
3238 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3239 | SWIG_fail; | |
44127b65 | 3240 | if (arg2 == NULL) { |
2f4c0a16 RD |
3241 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3242 | SWIG_fail; | |
44127b65 RD |
3243 | } |
3244 | { | |
3245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3246 | (arg1)->base_OnEraseControlPoints(*arg2); | |
3247 | ||
3248 | wxPyEndAllowThreads(__tstate); | |
3249 | if (PyErr_Occurred()) SWIG_fail; | |
3250 | } | |
3251 | Py_INCREF(Py_None); resultobj = Py_None; | |
3252 | return resultobj; | |
3253 | fail: | |
3254 | return NULL; | |
3255 | } | |
3256 | ||
3257 | ||
c370783e | 3258 | static PyObject *_wrap_PyShapeEvtHandler_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3259 | PyObject *resultobj; |
3260 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3261 | wxDC *arg2 = 0 ; | |
3262 | bool arg3 = (bool) True ; | |
3263 | PyObject * obj0 = 0 ; | |
3264 | PyObject * obj1 = 0 ; | |
3265 | PyObject * obj2 = 0 ; | |
3266 | char *kwnames[] = { | |
3267 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
3268 | }; | |
3269 | ||
3270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShapeEvtHandler_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
3271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3273 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
3274 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3275 | SWIG_fail; | |
44127b65 | 3276 | if (arg2 == NULL) { |
2f4c0a16 RD |
3277 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3278 | SWIG_fail; | |
44127b65 RD |
3279 | } |
3280 | if (obj2) { | |
c370783e | 3281 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 3282 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
3283 | } |
3284 | { | |
3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3286 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
3287 | ||
3288 | wxPyEndAllowThreads(__tstate); | |
3289 | if (PyErr_Occurred()) SWIG_fail; | |
3290 | } | |
3291 | Py_INCREF(Py_None); resultobj = Py_None; | |
3292 | return resultobj; | |
3293 | fail: | |
3294 | return NULL; | |
3295 | } | |
3296 | ||
3297 | ||
c370783e | 3298 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3299 | PyObject *resultobj; |
3300 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3301 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
3302 | bool arg3 ; | |
3303 | double arg4 ; | |
3304 | double arg5 ; | |
3305 | int arg6 = (int) 0 ; | |
3306 | int arg7 = (int) 0 ; | |
3307 | PyObject * obj0 = 0 ; | |
3308 | PyObject * obj1 = 0 ; | |
3309 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
3310 | PyObject * obj3 = 0 ; |
3311 | PyObject * obj4 = 0 ; | |
3312 | PyObject * obj5 = 0 ; | |
3313 | PyObject * obj6 = 0 ; | |
44127b65 RD |
3314 | char *kwnames[] = { |
3315 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3316 | }; | |
3317 | ||
8edf1c75 | 3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyShapeEvtHandler_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
3319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3321 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
3322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3323 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 3324 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3325 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 3326 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3327 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 3328 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3329 | if (obj5) { |
c370783e | 3330 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 3331 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
3332 | } |
3333 | if (obj6) { | |
c370783e | 3334 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 3335 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3336 | } |
44127b65 RD |
3337 | { |
3338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3339 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
3340 | ||
3341 | wxPyEndAllowThreads(__tstate); | |
3342 | if (PyErr_Occurred()) SWIG_fail; | |
3343 | } | |
3344 | Py_INCREF(Py_None); resultobj = Py_None; | |
3345 | return resultobj; | |
3346 | fail: | |
3347 | return NULL; | |
3348 | } | |
3349 | ||
3350 | ||
c370783e | 3351 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3352 | PyObject *resultobj; |
3353 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3354 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
3355 | double arg3 ; | |
3356 | double arg4 ; | |
3357 | int arg5 = (int) 0 ; | |
3358 | int arg6 = (int) 0 ; | |
3359 | PyObject * obj0 = 0 ; | |
3360 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3361 | PyObject * obj2 = 0 ; |
3362 | PyObject * obj3 = 0 ; | |
3363 | PyObject * obj4 = 0 ; | |
3364 | PyObject * obj5 = 0 ; | |
44127b65 RD |
3365 | char *kwnames[] = { |
3366 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3367 | }; | |
3368 | ||
8edf1c75 | 3369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShapeEvtHandler_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
3370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3372 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
3373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3374 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 3375 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3376 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 3377 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3378 | if (obj4) { |
c370783e | 3379 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 3380 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
3381 | } |
3382 | if (obj5) { | |
c370783e | 3383 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 3384 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3385 | } |
44127b65 RD |
3386 | { |
3387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3388 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
3389 | ||
3390 | wxPyEndAllowThreads(__tstate); | |
3391 | if (PyErr_Occurred()) SWIG_fail; | |
3392 | } | |
3393 | Py_INCREF(Py_None); resultobj = Py_None; | |
3394 | return resultobj; | |
3395 | fail: | |
3396 | return NULL; | |
3397 | } | |
3398 | ||
3399 | ||
c370783e | 3400 | static PyObject *_wrap_PyShapeEvtHandler_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3401 | PyObject *resultobj; |
3402 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3403 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
3404 | double arg3 ; | |
3405 | double arg4 ; | |
3406 | int arg5 = (int) 0 ; | |
3407 | int arg6 = (int) 0 ; | |
3408 | PyObject * obj0 = 0 ; | |
3409 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3410 | PyObject * obj2 = 0 ; |
3411 | PyObject * obj3 = 0 ; | |
3412 | PyObject * obj4 = 0 ; | |
3413 | PyObject * obj5 = 0 ; | |
44127b65 RD |
3414 | char *kwnames[] = { |
3415 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
3416 | }; | |
3417 | ||
8edf1c75 | 3418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShapeEvtHandler_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
3419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3421 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
3422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3423 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 3424 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3425 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 3426 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3427 | if (obj4) { |
c370783e | 3428 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 3429 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
3430 | } |
3431 | if (obj5) { | |
c370783e | 3432 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 3433 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3434 | } |
44127b65 RD |
3435 | { |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | Py_INCREF(Py_None); resultobj = Py_None; | |
3443 | return resultobj; | |
3444 | fail: | |
3445 | return NULL; | |
3446 | } | |
3447 | ||
3448 | ||
c370783e | 3449 | static PyObject *_wrap_PyShapeEvtHandler_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3450 | PyObject *resultobj; |
3451 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3452 | double arg2 ; | |
3453 | double arg3 ; | |
3454 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3455 | PyObject * obj1 = 0 ; |
3456 | PyObject * obj2 = 0 ; | |
44127b65 RD |
3457 | char *kwnames[] = { |
3458 | (char *) "self",(char *) "w",(char *) "h", NULL | |
3459 | }; | |
3460 | ||
8edf1c75 | 3461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeEvtHandler_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3464 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 3465 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3466 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 3467 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
3468 | { |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3470 | (arg1)->base_OnBeginSize(arg2,arg3); | |
3471 | ||
3472 | wxPyEndAllowThreads(__tstate); | |
3473 | if (PyErr_Occurred()) SWIG_fail; | |
3474 | } | |
3475 | Py_INCREF(Py_None); resultobj = Py_None; | |
3476 | return resultobj; | |
3477 | fail: | |
3478 | return NULL; | |
3479 | } | |
3480 | ||
3481 | ||
c370783e | 3482 | static PyObject *_wrap_PyShapeEvtHandler_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3483 | PyObject *resultobj; |
3484 | wxPyShapeEvtHandler *arg1 = (wxPyShapeEvtHandler *) 0 ; | |
3485 | double arg2 ; | |
3486 | double arg3 ; | |
3487 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3488 | PyObject * obj1 = 0 ; |
3489 | PyObject * obj2 = 0 ; | |
44127b65 RD |
3490 | char *kwnames[] = { |
3491 | (char *) "self",(char *) "w",(char *) "h", NULL | |
3492 | }; | |
3493 | ||
8edf1c75 | 3494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeEvtHandler_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeEvtHandler, |
3496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3497 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 3498 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3499 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 3500 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
3501 | { |
3502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3503 | (arg1)->base_OnEndSize(arg2,arg3); | |
3504 | ||
3505 | wxPyEndAllowThreads(__tstate); | |
3506 | if (PyErr_Occurred()) SWIG_fail; | |
3507 | } | |
3508 | Py_INCREF(Py_None); resultobj = Py_None; | |
3509 | return resultobj; | |
3510 | fail: | |
3511 | return NULL; | |
3512 | } | |
3513 | ||
3514 | ||
c370783e | 3515 | static PyObject * PyShapeEvtHandler_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
3516 | PyObject *obj; |
3517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3518 | SWIG_TypeClientData(SWIGTYPE_p_wxPyShapeEvtHandler, obj); | |
3519 | Py_INCREF(obj); | |
3520 | return Py_BuildValue((char *)""); | |
3521 | } | |
c370783e | 3522 | static PyObject *_wrap_new_PyShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3523 | PyObject *resultobj; |
3524 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) NULL ; | |
3525 | wxPyShape *result; | |
3526 | PyObject * obj0 = 0 ; | |
3527 | char *kwnames[] = { | |
3528 | (char *) "can", NULL | |
3529 | }; | |
3530 | ||
3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyShape",kwnames,&obj0)) goto fail; | |
3532 | if (obj0) { | |
2f4c0a16 RD |
3533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
3534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3535 | } |
3536 | { | |
3537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3538 | result = (wxPyShape *)new wxPyShape(arg1); | |
3539 | ||
3540 | wxPyEndAllowThreads(__tstate); | |
3541 | if (PyErr_Occurred()) SWIG_fail; | |
3542 | } | |
b0f7404b | 3543 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyShape, 1); |
44127b65 RD |
3544 | return resultobj; |
3545 | fail: | |
3546 | return NULL; | |
3547 | } | |
3548 | ||
3549 | ||
c370783e | 3550 | static PyObject *_wrap_PyShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3551 | PyObject *resultobj; |
3552 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3553 | PyObject *arg2 = (PyObject *) 0 ; | |
3554 | PyObject *arg3 = (PyObject *) 0 ; | |
3555 | PyObject * obj0 = 0 ; | |
3556 | PyObject * obj1 = 0 ; | |
3557 | PyObject * obj2 = 0 ; | |
3558 | char *kwnames[] = { | |
3559 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
3560 | }; | |
3561 | ||
3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
3563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3565 | arg2 = obj1; |
3566 | arg3 = obj2; | |
3567 | { | |
3568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3569 | (arg1)->_setCallbackInfo(arg2,arg3); | |
3570 | ||
3571 | wxPyEndAllowThreads(__tstate); | |
3572 | if (PyErr_Occurred()) SWIG_fail; | |
3573 | } | |
3574 | Py_INCREF(Py_None); resultobj = Py_None; | |
3575 | return resultobj; | |
3576 | fail: | |
3577 | return NULL; | |
3578 | } | |
3579 | ||
3580 | ||
c370783e | 3581 | static PyObject *_wrap_PyShape_GetBoundingBoxMax(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3582 | PyObject *resultobj; |
3583 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3584 | double *arg2 = (double *) 0 ; | |
3585 | double *arg3 = (double *) 0 ; | |
3586 | double temp2 ; | |
c370783e | 3587 | int res2 = 0 ; |
44127b65 | 3588 | double temp3 ; |
c370783e | 3589 | int res3 = 0 ; |
44127b65 RD |
3590 | PyObject * obj0 = 0 ; |
3591 | char *kwnames[] = { | |
3592 | (char *) "self", NULL | |
3593 | }; | |
3594 | ||
c370783e RD |
3595 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
3596 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
44127b65 | 3597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBoundingBoxMax",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
3598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3600 | { |
3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3602 | (arg1)->GetBoundingBoxMax(arg2,arg3); | |
3603 | ||
3604 | wxPyEndAllowThreads(__tstate); | |
3605 | if (PyErr_Occurred()) SWIG_fail; | |
3606 | } | |
3607 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
3608 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
3609 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
3610 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
3611 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
3612 | return resultobj; |
3613 | fail: | |
3614 | return NULL; | |
3615 | } | |
3616 | ||
3617 | ||
c370783e | 3618 | static PyObject *_wrap_PyShape_GetBoundingBoxMin(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3619 | PyObject *resultobj; |
3620 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3621 | double *arg2 = (double *) 0 ; | |
3622 | double *arg3 = (double *) 0 ; | |
3623 | double temp2 ; | |
c370783e | 3624 | int res2 = 0 ; |
44127b65 | 3625 | double temp3 ; |
c370783e | 3626 | int res3 = 0 ; |
44127b65 RD |
3627 | PyObject * obj0 = 0 ; |
3628 | char *kwnames[] = { | |
3629 | (char *) "self", NULL | |
3630 | }; | |
3631 | ||
c370783e RD |
3632 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
3633 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
44127b65 | 3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBoundingBoxMin",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
3635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3637 | { |
3638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3639 | (arg1)->GetBoundingBoxMin(arg2,arg3); | |
3640 | ||
3641 | wxPyEndAllowThreads(__tstate); | |
3642 | if (PyErr_Occurred()) SWIG_fail; | |
3643 | } | |
3644 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
3645 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
3646 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
3647 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
3648 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
3649 | return resultobj; |
3650 | fail: | |
3651 | return NULL; | |
3652 | } | |
3653 | ||
3654 | ||
c370783e | 3655 | static PyObject *_wrap_PyShape_GetPerimeterPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3656 | PyObject *resultobj; |
3657 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3658 | double arg2 ; | |
3659 | double arg3 ; | |
3660 | double arg4 ; | |
3661 | double arg5 ; | |
3662 | double *arg6 = (double *) 0 ; | |
3663 | double *arg7 = (double *) 0 ; | |
3664 | bool result; | |
3665 | double temp6 ; | |
c370783e | 3666 | int res6 = 0 ; |
44127b65 | 3667 | double temp7 ; |
c370783e | 3668 | int res7 = 0 ; |
44127b65 | 3669 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3670 | PyObject * obj1 = 0 ; |
3671 | PyObject * obj2 = 0 ; | |
3672 | PyObject * obj3 = 0 ; | |
3673 | PyObject * obj4 = 0 ; | |
3674 | char *kwnames[] = { | |
3675 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
44127b65 RD |
3676 | }; |
3677 | ||
c370783e RD |
3678 | arg6 = &temp6; res6 = SWIG_NEWOBJ; |
3679 | arg7 = &temp7; res7 = SWIG_NEWOBJ; | |
8edf1c75 | 3680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyShape_GetPerimeterPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
3681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3683 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 3684 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3685 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 3686 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3687 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 3688 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3689 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 3690 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
3691 | { |
3692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3693 | result = (bool)(arg1)->GetPerimeterPoint(arg2,arg3,arg4,arg5,arg6,arg7); | |
3694 | ||
3695 | wxPyEndAllowThreads(__tstate); | |
3696 | if (PyErr_Occurred()) SWIG_fail; | |
3697 | } | |
fbc46b20 RD |
3698 | { |
3699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3700 | } | |
c370783e RD |
3701 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? |
3702 | SWIG_From_double((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, 0))); | |
3703 | resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ? | |
3704 | SWIG_From_double((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
3705 | return resultobj; |
3706 | fail: | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
c370783e | 3711 | static PyObject *_wrap_PyShape_GetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3712 | PyObject *resultobj; |
3713 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3714 | wxPyShapeCanvas *result; | |
3715 | PyObject * obj0 = 0 ; | |
3716 | char *kwnames[] = { | |
3717 | (char *) "self", NULL | |
3718 | }; | |
3719 | ||
3720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetCanvas",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3723 | { |
3724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3725 | result = (wxPyShapeCanvas *)(arg1)->GetCanvas(); | |
3726 | ||
3727 | wxPyEndAllowThreads(__tstate); | |
3728 | if (PyErr_Occurred()) SWIG_fail; | |
3729 | } | |
3730 | { | |
412d302d | 3731 | resultobj = wxPyMake_wxObject(result, 0); |
44127b65 RD |
3732 | } |
3733 | return resultobj; | |
3734 | fail: | |
3735 | return NULL; | |
3736 | } | |
3737 | ||
3738 | ||
c370783e | 3739 | static PyObject *_wrap_PyShape_SetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3740 | PyObject *resultobj; |
3741 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3742 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3743 | PyObject * obj0 = 0 ; | |
3744 | PyObject * obj1 = 0 ; | |
3745 | char *kwnames[] = { | |
3746 | (char *) "self",(char *) "the_canvas", NULL | |
3747 | }; | |
3748 | ||
3749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3752 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
3753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3754 | { |
3755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3756 | (arg1)->SetCanvas(arg2); | |
3757 | ||
3758 | wxPyEndAllowThreads(__tstate); | |
3759 | if (PyErr_Occurred()) SWIG_fail; | |
3760 | } | |
3761 | Py_INCREF(Py_None); resultobj = Py_None; | |
3762 | return resultobj; | |
3763 | fail: | |
3764 | return NULL; | |
3765 | } | |
3766 | ||
3767 | ||
c370783e | 3768 | static PyObject *_wrap_PyShape_AddToCanvas(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3769 | PyObject *resultobj; |
3770 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3771 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3772 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
3773 | PyObject * obj0 = 0 ; | |
3774 | PyObject * obj1 = 0 ; | |
3775 | PyObject * obj2 = 0 ; | |
3776 | char *kwnames[] = { | |
3777 | (char *) "self",(char *) "the_canvas",(char *) "addAfter", NULL | |
3778 | }; | |
3779 | ||
3780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_AddToCanvas",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
3781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3783 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
3784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 3785 | if (obj2) { |
2f4c0a16 RD |
3786 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, |
3787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3788 | } |
3789 | { | |
3790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3791 | (arg1)->AddToCanvas(arg2,arg3); | |
3792 | ||
3793 | wxPyEndAllowThreads(__tstate); | |
3794 | if (PyErr_Occurred()) SWIG_fail; | |
3795 | } | |
3796 | Py_INCREF(Py_None); resultobj = Py_None; | |
3797 | return resultobj; | |
3798 | fail: | |
3799 | return NULL; | |
3800 | } | |
3801 | ||
3802 | ||
c370783e | 3803 | static PyObject *_wrap_PyShape_InsertInCanvas(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3804 | PyObject *resultobj; |
3805 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3806 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3807 | PyObject * obj0 = 0 ; | |
3808 | PyObject * obj1 = 0 ; | |
3809 | char *kwnames[] = { | |
3810 | (char *) "self",(char *) "the_canvas", NULL | |
3811 | }; | |
3812 | ||
3813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_InsertInCanvas",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3816 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
3817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3818 | { |
3819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3820 | (arg1)->InsertInCanvas(arg2); | |
3821 | ||
3822 | wxPyEndAllowThreads(__tstate); | |
3823 | if (PyErr_Occurred()) SWIG_fail; | |
3824 | } | |
3825 | Py_INCREF(Py_None); resultobj = Py_None; | |
3826 | return resultobj; | |
3827 | fail: | |
3828 | return NULL; | |
3829 | } | |
3830 | ||
3831 | ||
c370783e | 3832 | static PyObject *_wrap_PyShape_RemoveFromCanvas(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3833 | PyObject *resultobj; |
3834 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3835 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
3836 | PyObject * obj0 = 0 ; | |
3837 | PyObject * obj1 = 0 ; | |
3838 | char *kwnames[] = { | |
3839 | (char *) "self",(char *) "the_canvas", NULL | |
3840 | }; | |
3841 | ||
3842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_RemoveFromCanvas",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3845 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
3846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3847 | { |
3848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3849 | (arg1)->RemoveFromCanvas(arg2); | |
3850 | ||
3851 | wxPyEndAllowThreads(__tstate); | |
3852 | if (PyErr_Occurred()) SWIG_fail; | |
3853 | } | |
3854 | Py_INCREF(Py_None); resultobj = Py_None; | |
3855 | return resultobj; | |
3856 | fail: | |
3857 | return NULL; | |
3858 | } | |
3859 | ||
3860 | ||
c370783e | 3861 | static PyObject *_wrap_PyShape_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3862 | PyObject *resultobj; |
3863 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3864 | double result; | |
3865 | PyObject * obj0 = 0 ; | |
3866 | char *kwnames[] = { | |
3867 | (char *) "self", NULL | |
3868 | }; | |
3869 | ||
3870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3873 | { |
3874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3875 | result = (double)(arg1)->GetX(); | |
3876 | ||
3877 | wxPyEndAllowThreads(__tstate); | |
3878 | if (PyErr_Occurred()) SWIG_fail; | |
3879 | } | |
c370783e | 3880 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
3881 | return resultobj; |
3882 | fail: | |
3883 | return NULL; | |
3884 | } | |
3885 | ||
3886 | ||
c370783e | 3887 | static PyObject *_wrap_PyShape_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3888 | PyObject *resultobj; |
3889 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3890 | double result; | |
3891 | PyObject * obj0 = 0 ; | |
3892 | char *kwnames[] = { | |
3893 | (char *) "self", NULL | |
3894 | }; | |
3895 | ||
3896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3899 | { |
3900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3901 | result = (double)(arg1)->GetY(); | |
3902 | ||
3903 | wxPyEndAllowThreads(__tstate); | |
3904 | if (PyErr_Occurred()) SWIG_fail; | |
3905 | } | |
c370783e | 3906 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
3907 | return resultobj; |
3908 | fail: | |
3909 | return NULL; | |
3910 | } | |
3911 | ||
3912 | ||
c370783e | 3913 | static PyObject *_wrap_PyShape_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3914 | PyObject *resultobj; |
3915 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3916 | double arg2 ; | |
3917 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3918 | PyObject * obj1 = 0 ; |
44127b65 RD |
3919 | char *kwnames[] = { |
3920 | (char *) "self",(char *) "x", NULL | |
3921 | }; | |
3922 | ||
8edf1c75 | 3923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetX",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3926 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 3927 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
3928 | { |
3929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3930 | (arg1)->SetX(arg2); | |
3931 | ||
3932 | wxPyEndAllowThreads(__tstate); | |
3933 | if (PyErr_Occurred()) SWIG_fail; | |
3934 | } | |
3935 | Py_INCREF(Py_None); resultobj = Py_None; | |
3936 | return resultobj; | |
3937 | fail: | |
3938 | return NULL; | |
3939 | } | |
3940 | ||
3941 | ||
c370783e | 3942 | static PyObject *_wrap_PyShape_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3943 | PyObject *resultobj; |
3944 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3945 | double arg2 ; | |
3946 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3947 | PyObject * obj1 = 0 ; |
44127b65 RD |
3948 | char *kwnames[] = { |
3949 | (char *) "self",(char *) "y", NULL | |
3950 | }; | |
3951 | ||
8edf1c75 | 3952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3955 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 3956 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
3957 | { |
3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3959 | (arg1)->SetY(arg2); | |
3960 | ||
3961 | wxPyEndAllowThreads(__tstate); | |
3962 | if (PyErr_Occurred()) SWIG_fail; | |
3963 | } | |
3964 | Py_INCREF(Py_None); resultobj = Py_None; | |
3965 | return resultobj; | |
3966 | fail: | |
3967 | return NULL; | |
3968 | } | |
3969 | ||
3970 | ||
c370783e | 3971 | static PyObject *_wrap_PyShape_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
3972 | PyObject *resultobj; |
3973 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
3974 | wxPyShape *result; | |
3975 | PyObject * obj0 = 0 ; | |
3976 | char *kwnames[] = { | |
3977 | (char *) "self", NULL | |
3978 | }; | |
3979 | ||
3980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
3982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
3983 | { |
3984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3985 | result = (wxPyShape *)(arg1)->GetParent(); | |
3986 | ||
3987 | wxPyEndAllowThreads(__tstate); | |
3988 | if (PyErr_Occurred()) SWIG_fail; | |
3989 | } | |
3990 | { | |
412d302d | 3991 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
3992 | } |
3993 | return resultobj; | |
3994 | fail: | |
3995 | return NULL; | |
3996 | } | |
3997 | ||
3998 | ||
c370783e | 3999 | static PyObject *_wrap_PyShape_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4000 | PyObject *resultobj; |
4001 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4002 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
4003 | PyObject * obj0 = 0 ; | |
4004 | PyObject * obj1 = 0 ; | |
4005 | char *kwnames[] = { | |
4006 | (char *) "self",(char *) "p", NULL | |
4007 | }; | |
4008 | ||
4009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4012 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
4013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4014 | { |
4015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4016 | (arg1)->SetParent(arg2); | |
4017 | ||
4018 | wxPyEndAllowThreads(__tstate); | |
4019 | if (PyErr_Occurred()) SWIG_fail; | |
4020 | } | |
4021 | Py_INCREF(Py_None); resultobj = Py_None; | |
4022 | return resultobj; | |
4023 | fail: | |
4024 | return NULL; | |
4025 | } | |
4026 | ||
4027 | ||
c370783e | 4028 | static PyObject *_wrap_PyShape_GetTopAncestor(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4029 | PyObject *resultobj; |
4030 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4031 | wxPyShape *result; | |
4032 | PyObject * obj0 = 0 ; | |
4033 | char *kwnames[] = { | |
4034 | (char *) "self", NULL | |
4035 | }; | |
4036 | ||
4037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetTopAncestor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4040 | { |
4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4042 | result = (wxPyShape *)(arg1)->GetTopAncestor(); | |
4043 | ||
4044 | wxPyEndAllowThreads(__tstate); | |
4045 | if (PyErr_Occurred()) SWIG_fail; | |
4046 | } | |
4047 | { | |
412d302d | 4048 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
4049 | } |
4050 | return resultobj; | |
4051 | fail: | |
4052 | return NULL; | |
4053 | } | |
4054 | ||
4055 | ||
c370783e | 4056 | static PyObject *_wrap_PyShape_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4057 | PyObject *resultobj; |
4058 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4059 | PyObject *result; | |
4060 | PyObject * obj0 = 0 ; | |
4061 | char *kwnames[] = { | |
4062 | (char *) "self", NULL | |
4063 | }; | |
4064 | ||
4065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4068 | { |
4069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4070 | result = (PyObject *)wxPyShape_GetChildren(arg1); | |
4071 | ||
4072 | wxPyEndAllowThreads(__tstate); | |
4073 | if (PyErr_Occurred()) SWIG_fail; | |
4074 | } | |
4075 | resultobj = result; | |
4076 | return resultobj; | |
4077 | fail: | |
4078 | return NULL; | |
4079 | } | |
4080 | ||
4081 | ||
c370783e | 4082 | static PyObject *_wrap_PyShape_Unlink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4083 | PyObject *resultobj; |
4084 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4085 | PyObject * obj0 = 0 ; | |
4086 | char *kwnames[] = { | |
4087 | (char *) "self", NULL | |
4088 | }; | |
4089 | ||
4090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Unlink",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4093 | { |
4094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4095 | (arg1)->Unlink(); | |
4096 | ||
4097 | wxPyEndAllowThreads(__tstate); | |
4098 | if (PyErr_Occurred()) SWIG_fail; | |
4099 | } | |
4100 | Py_INCREF(Py_None); resultobj = Py_None; | |
4101 | return resultobj; | |
4102 | fail: | |
4103 | return NULL; | |
4104 | } | |
4105 | ||
4106 | ||
c370783e | 4107 | static PyObject *_wrap_PyShape_SetDrawHandles(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4108 | PyObject *resultobj; |
4109 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4110 | bool arg2 ; | |
4111 | PyObject * obj0 = 0 ; | |
4112 | PyObject * obj1 = 0 ; | |
4113 | char *kwnames[] = { | |
4114 | (char *) "self",(char *) "drawH", NULL | |
4115 | }; | |
4116 | ||
4117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetDrawHandles",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4120 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 4121 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4122 | { |
4123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4124 | (arg1)->SetDrawHandles(arg2); | |
4125 | ||
4126 | wxPyEndAllowThreads(__tstate); | |
4127 | if (PyErr_Occurred()) SWIG_fail; | |
4128 | } | |
4129 | Py_INCREF(Py_None); resultobj = Py_None; | |
4130 | return resultobj; | |
4131 | fail: | |
4132 | return NULL; | |
4133 | } | |
4134 | ||
4135 | ||
c370783e | 4136 | static PyObject *_wrap_PyShape_GetDrawHandles(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4137 | PyObject *resultobj; |
4138 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4139 | bool result; | |
4140 | PyObject * obj0 = 0 ; | |
4141 | char *kwnames[] = { | |
4142 | (char *) "self", NULL | |
4143 | }; | |
4144 | ||
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetDrawHandles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4148 | { |
4149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4150 | result = (bool)(arg1)->GetDrawHandles(); | |
4151 | ||
4152 | wxPyEndAllowThreads(__tstate); | |
4153 | if (PyErr_Occurred()) SWIG_fail; | |
4154 | } | |
fbc46b20 RD |
4155 | { |
4156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4157 | } | |
44127b65 RD |
4158 | return resultobj; |
4159 | fail: | |
4160 | return NULL; | |
4161 | } | |
4162 | ||
4163 | ||
c370783e | 4164 | static PyObject *_wrap_PyShape_MakeControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4165 | PyObject *resultobj; |
4166 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4167 | PyObject * obj0 = 0 ; | |
4168 | char *kwnames[] = { | |
4169 | (char *) "self", NULL | |
4170 | }; | |
4171 | ||
4172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_MakeControlPoints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4175 | { |
4176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4177 | (arg1)->MakeControlPoints(); | |
4178 | ||
4179 | wxPyEndAllowThreads(__tstate); | |
4180 | if (PyErr_Occurred()) SWIG_fail; | |
4181 | } | |
4182 | Py_INCREF(Py_None); resultobj = Py_None; | |
4183 | return resultobj; | |
4184 | fail: | |
4185 | return NULL; | |
4186 | } | |
4187 | ||
4188 | ||
c370783e | 4189 | static PyObject *_wrap_PyShape_DeleteControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4190 | PyObject *resultobj; |
4191 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4192 | wxDC *arg2 = (wxDC *) NULL ; | |
4193 | PyObject * obj0 = 0 ; | |
4194 | PyObject * obj1 = 0 ; | |
4195 | char *kwnames[] = { | |
4196 | (char *) "self",(char *) "dc", NULL | |
4197 | }; | |
4198 | ||
4199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_DeleteControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 4202 | if (obj1) { |
2f4c0a16 RD |
4203 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
4204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4205 | } |
4206 | { | |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | (arg1)->DeleteControlPoints(arg2); | |
4209 | ||
4210 | wxPyEndAllowThreads(__tstate); | |
4211 | if (PyErr_Occurred()) SWIG_fail; | |
4212 | } | |
4213 | Py_INCREF(Py_None); resultobj = Py_None; | |
4214 | return resultobj; | |
4215 | fail: | |
4216 | return NULL; | |
4217 | } | |
4218 | ||
4219 | ||
c370783e | 4220 | static PyObject *_wrap_PyShape_ResetControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4221 | PyObject *resultobj; |
4222 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4223 | PyObject * obj0 = 0 ; | |
4224 | char *kwnames[] = { | |
4225 | (char *) "self", NULL | |
4226 | }; | |
4227 | ||
4228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ResetControlPoints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4231 | { |
4232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4233 | (arg1)->ResetControlPoints(); | |
4234 | ||
4235 | wxPyEndAllowThreads(__tstate); | |
4236 | if (PyErr_Occurred()) SWIG_fail; | |
4237 | } | |
4238 | Py_INCREF(Py_None); resultobj = Py_None; | |
4239 | return resultobj; | |
4240 | fail: | |
4241 | return NULL; | |
4242 | } | |
4243 | ||
4244 | ||
c370783e | 4245 | static PyObject *_wrap_PyShape_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4246 | PyObject *resultobj; |
4247 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4248 | wxPyShapeEvtHandler *result; | |
4249 | PyObject * obj0 = 0 ; | |
4250 | char *kwnames[] = { | |
4251 | (char *) "self", NULL | |
4252 | }; | |
4253 | ||
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetEventHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4257 | { |
4258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4259 | result = (wxPyShapeEvtHandler *)(arg1)->GetEventHandler(); | |
4260 | ||
4261 | wxPyEndAllowThreads(__tstate); | |
4262 | if (PyErr_Occurred()) SWIG_fail; | |
4263 | } | |
4264 | { | |
412d302d | 4265 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
4266 | } |
4267 | return resultobj; | |
4268 | fail: | |
4269 | return NULL; | |
4270 | } | |
4271 | ||
4272 | ||
c370783e | 4273 | static PyObject *_wrap_PyShape_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4274 | PyObject *resultobj; |
4275 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4276 | wxPyShapeEvtHandler *arg2 = (wxPyShapeEvtHandler *) 0 ; | |
4277 | PyObject * obj0 = 0 ; | |
4278 | PyObject * obj1 = 0 ; | |
4279 | char *kwnames[] = { | |
4280 | (char *) "self",(char *) "handler", NULL | |
4281 | }; | |
4282 | ||
4283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4286 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeEvtHandler, | |
4287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4288 | { |
4289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4290 | (arg1)->SetEventHandler(arg2); | |
4291 | ||
4292 | wxPyEndAllowThreads(__tstate); | |
4293 | if (PyErr_Occurred()) SWIG_fail; | |
4294 | } | |
4295 | Py_INCREF(Py_None); resultobj = Py_None; | |
4296 | return resultobj; | |
4297 | fail: | |
4298 | return NULL; | |
4299 | } | |
4300 | ||
4301 | ||
c370783e | 4302 | static PyObject *_wrap_PyShape_MakeMandatoryControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4303 | PyObject *resultobj; |
4304 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4305 | PyObject * obj0 = 0 ; | |
4306 | char *kwnames[] = { | |
4307 | (char *) "self", NULL | |
4308 | }; | |
4309 | ||
4310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_MakeMandatoryControlPoints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4313 | { |
4314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4315 | (arg1)->MakeMandatoryControlPoints(); | |
4316 | ||
4317 | wxPyEndAllowThreads(__tstate); | |
4318 | if (PyErr_Occurred()) SWIG_fail; | |
4319 | } | |
4320 | Py_INCREF(Py_None); resultobj = Py_None; | |
4321 | return resultobj; | |
4322 | fail: | |
4323 | return NULL; | |
4324 | } | |
4325 | ||
4326 | ||
c370783e | 4327 | static PyObject *_wrap_PyShape_ResetMandatoryControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4328 | PyObject *resultobj; |
4329 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4330 | PyObject * obj0 = 0 ; | |
4331 | char *kwnames[] = { | |
4332 | (char *) "self", NULL | |
4333 | }; | |
4334 | ||
4335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ResetMandatoryControlPoints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4338 | { |
4339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4340 | (arg1)->ResetMandatoryControlPoints(); | |
4341 | ||
4342 | wxPyEndAllowThreads(__tstate); | |
4343 | if (PyErr_Occurred()) SWIG_fail; | |
4344 | } | |
4345 | Py_INCREF(Py_None); resultobj = Py_None; | |
4346 | return resultobj; | |
4347 | fail: | |
4348 | return NULL; | |
4349 | } | |
4350 | ||
4351 | ||
c370783e | 4352 | static PyObject *_wrap_PyShape_Recompute(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4353 | PyObject *resultobj; |
4354 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4355 | bool result; | |
4356 | PyObject * obj0 = 0 ; | |
4357 | char *kwnames[] = { | |
4358 | (char *) "self", NULL | |
4359 | }; | |
4360 | ||
4361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Recompute",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4364 | { |
4365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4366 | result = (bool)(arg1)->Recompute(); | |
4367 | ||
4368 | wxPyEndAllowThreads(__tstate); | |
4369 | if (PyErr_Occurred()) SWIG_fail; | |
4370 | } | |
fbc46b20 RD |
4371 | { |
4372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4373 | } | |
44127b65 RD |
4374 | return resultobj; |
4375 | fail: | |
4376 | return NULL; | |
4377 | } | |
4378 | ||
4379 | ||
c370783e | 4380 | static PyObject *_wrap_PyShape_CalculateSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4381 | PyObject *resultobj; |
4382 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4383 | PyObject * obj0 = 0 ; | |
4384 | char *kwnames[] = { | |
4385 | (char *) "self", NULL | |
4386 | }; | |
4387 | ||
4388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_CalculateSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4391 | { |
4392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4393 | (arg1)->CalculateSize(); | |
4394 | ||
4395 | wxPyEndAllowThreads(__tstate); | |
4396 | if (PyErr_Occurred()) SWIG_fail; | |
4397 | } | |
4398 | Py_INCREF(Py_None); resultobj = Py_None; | |
4399 | return resultobj; | |
4400 | fail: | |
4401 | return NULL; | |
4402 | } | |
4403 | ||
4404 | ||
c370783e | 4405 | static PyObject *_wrap_PyShape_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4406 | PyObject *resultobj; |
4407 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4408 | bool arg2 = (bool) True ; | |
4409 | wxDC *arg3 = (wxDC *) NULL ; | |
4410 | PyObject * obj0 = 0 ; | |
4411 | PyObject * obj1 = 0 ; | |
4412 | PyObject * obj2 = 0 ; | |
4413 | char *kwnames[] = { | |
4414 | (char *) "self",(char *) "select",(char *) "dc", NULL | |
4415 | }; | |
4416 | ||
4417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
4418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 4420 | if (obj1) { |
c370783e | 4421 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 4422 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4423 | } |
4424 | if (obj2) { | |
2f4c0a16 RD |
4425 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, |
4426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4427 | } |
4428 | { | |
4429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4430 | (arg1)->Select(arg2,arg3); | |
4431 | ||
4432 | wxPyEndAllowThreads(__tstate); | |
4433 | if (PyErr_Occurred()) SWIG_fail; | |
4434 | } | |
4435 | Py_INCREF(Py_None); resultobj = Py_None; | |
4436 | return resultobj; | |
4437 | fail: | |
4438 | return NULL; | |
4439 | } | |
4440 | ||
4441 | ||
c370783e | 4442 | static PyObject *_wrap_PyShape_SetHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4443 | PyObject *resultobj; |
4444 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4445 | bool arg2 = (bool) True ; | |
4446 | bool arg3 = (bool) False ; | |
4447 | PyObject * obj0 = 0 ; | |
4448 | PyObject * obj1 = 0 ; | |
4449 | PyObject * obj2 = 0 ; | |
4450 | char *kwnames[] = { | |
4451 | (char *) "self",(char *) "hi",(char *) "recurse", NULL | |
4452 | }; | |
4453 | ||
4454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_SetHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
4455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 4457 | if (obj1) { |
c370783e | 4458 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 4459 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4460 | } |
4461 | if (obj2) { | |
c370783e | 4462 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 4463 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4464 | } |
4465 | { | |
4466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4467 | (arg1)->SetHighlight(arg2,arg3); | |
4468 | ||
4469 | wxPyEndAllowThreads(__tstate); | |
4470 | if (PyErr_Occurred()) SWIG_fail; | |
4471 | } | |
4472 | Py_INCREF(Py_None); resultobj = Py_None; | |
4473 | return resultobj; | |
4474 | fail: | |
4475 | return NULL; | |
4476 | } | |
4477 | ||
4478 | ||
c370783e | 4479 | static PyObject *_wrap_PyShape_IsHighlighted(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4480 | PyObject *resultobj; |
4481 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4482 | bool result; | |
4483 | PyObject * obj0 = 0 ; | |
4484 | char *kwnames[] = { | |
4485 | (char *) "self", NULL | |
4486 | }; | |
4487 | ||
4488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_IsHighlighted",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4491 | { |
4492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4493 | result = (bool)(arg1)->IsHighlighted(); | |
4494 | ||
4495 | wxPyEndAllowThreads(__tstate); | |
4496 | if (PyErr_Occurred()) SWIG_fail; | |
4497 | } | |
fbc46b20 RD |
4498 | { |
4499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4500 | } | |
44127b65 RD |
4501 | return resultobj; |
4502 | fail: | |
4503 | return NULL; | |
4504 | } | |
4505 | ||
4506 | ||
c370783e | 4507 | static PyObject *_wrap_PyShape_Selected(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4508 | PyObject *resultobj; |
4509 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4510 | bool result; | |
4511 | PyObject * obj0 = 0 ; | |
4512 | char *kwnames[] = { | |
4513 | (char *) "self", NULL | |
4514 | }; | |
4515 | ||
4516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Selected",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4519 | { |
4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4521 | result = (bool)(arg1)->Selected(); | |
4522 | ||
4523 | wxPyEndAllowThreads(__tstate); | |
4524 | if (PyErr_Occurred()) SWIG_fail; | |
4525 | } | |
fbc46b20 RD |
4526 | { |
4527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4528 | } | |
44127b65 RD |
4529 | return resultobj; |
4530 | fail: | |
4531 | return NULL; | |
4532 | } | |
4533 | ||
4534 | ||
c370783e | 4535 | static PyObject *_wrap_PyShape_AncestorSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4536 | PyObject *resultobj; |
4537 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4538 | bool result; | |
4539 | PyObject * obj0 = 0 ; | |
4540 | char *kwnames[] = { | |
4541 | (char *) "self", NULL | |
4542 | }; | |
4543 | ||
4544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_AncestorSelected",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4547 | { |
4548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4549 | result = (bool)(arg1)->AncestorSelected(); | |
4550 | ||
4551 | wxPyEndAllowThreads(__tstate); | |
4552 | if (PyErr_Occurred()) SWIG_fail; | |
4553 | } | |
fbc46b20 RD |
4554 | { |
4555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4556 | } | |
44127b65 RD |
4557 | return resultobj; |
4558 | fail: | |
4559 | return NULL; | |
4560 | } | |
4561 | ||
4562 | ||
c370783e | 4563 | static PyObject *_wrap_PyShape_SetSensitivityFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4564 | PyObject *resultobj; |
4565 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4566 | int arg2 = (int) OP_ALL ; | |
4567 | bool arg3 = (bool) False ; | |
4568 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4569 | PyObject * obj1 = 0 ; |
44127b65 RD |
4570 | PyObject * obj2 = 0 ; |
4571 | char *kwnames[] = { | |
4572 | (char *) "self",(char *) "sens",(char *) "recursive", NULL | |
4573 | }; | |
4574 | ||
8edf1c75 | 4575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_SetSensitivityFilter",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 4578 | if (obj1) { |
c370783e | 4579 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 4580 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 4581 | } |
44127b65 | 4582 | if (obj2) { |
c370783e | 4583 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 4584 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4585 | } |
4586 | { | |
4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4588 | (arg1)->SetSensitivityFilter(arg2,arg3); | |
4589 | ||
4590 | wxPyEndAllowThreads(__tstate); | |
4591 | if (PyErr_Occurred()) SWIG_fail; | |
4592 | } | |
4593 | Py_INCREF(Py_None); resultobj = Py_None; | |
4594 | return resultobj; | |
4595 | fail: | |
4596 | return NULL; | |
4597 | } | |
4598 | ||
4599 | ||
c370783e | 4600 | static PyObject *_wrap_PyShape_GetSensitivityFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4601 | PyObject *resultobj; |
4602 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4603 | int result; | |
4604 | PyObject * obj0 = 0 ; | |
4605 | char *kwnames[] = { | |
4606 | (char *) "self", NULL | |
4607 | }; | |
4608 | ||
4609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetSensitivityFilter",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4612 | { |
4613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4614 | result = (int)(arg1)->GetSensitivityFilter(); | |
4615 | ||
4616 | wxPyEndAllowThreads(__tstate); | |
4617 | if (PyErr_Occurred()) SWIG_fail; | |
4618 | } | |
c370783e | 4619 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
4620 | return resultobj; |
4621 | fail: | |
4622 | return NULL; | |
4623 | } | |
4624 | ||
4625 | ||
c370783e | 4626 | static PyObject *_wrap_PyShape_SetDraggable(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4627 | PyObject *resultobj; |
4628 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4629 | bool arg2 ; | |
4630 | bool arg3 = (bool) False ; | |
4631 | PyObject * obj0 = 0 ; | |
4632 | PyObject * obj1 = 0 ; | |
4633 | PyObject * obj2 = 0 ; | |
4634 | char *kwnames[] = { | |
4635 | (char *) "self",(char *) "drag",(char *) "recursive", NULL | |
4636 | }; | |
4637 | ||
4638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetDraggable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
4639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4641 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 4642 | if (PyErr_Occurred()) SWIG_fail; |
2dbef272 | 4643 | if (obj2) { |
c370783e | 4644 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 4645 | if (PyErr_Occurred()) SWIG_fail; |
2dbef272 | 4646 | } |
44127b65 RD |
4647 | { |
4648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4649 | (arg1)->SetDraggable(arg2,arg3); | |
4650 | ||
4651 | wxPyEndAllowThreads(__tstate); | |
4652 | if (PyErr_Occurred()) SWIG_fail; | |
4653 | } | |
4654 | Py_INCREF(Py_None); resultobj = Py_None; | |
4655 | return resultobj; | |
4656 | fail: | |
4657 | return NULL; | |
4658 | } | |
4659 | ||
4660 | ||
c370783e | 4661 | static PyObject *_wrap_PyShape_SetFixedSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4662 | PyObject *resultobj; |
4663 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4664 | bool arg2 ; | |
4665 | bool arg3 ; | |
4666 | PyObject * obj0 = 0 ; | |
4667 | PyObject * obj1 = 0 ; | |
4668 | PyObject * obj2 = 0 ; | |
4669 | char *kwnames[] = { | |
4670 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4671 | }; | |
4672 | ||
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_SetFixedSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
4674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4676 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 4677 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4678 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 4679 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4680 | { |
4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4682 | (arg1)->SetFixedSize(arg2,arg3); | |
4683 | ||
4684 | wxPyEndAllowThreads(__tstate); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
4687 | Py_INCREF(Py_None); resultobj = Py_None; | |
4688 | return resultobj; | |
4689 | fail: | |
4690 | return NULL; | |
4691 | } | |
4692 | ||
4693 | ||
c370783e | 4694 | static PyObject *_wrap_PyShape_GetFixedSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4695 | PyObject *resultobj; |
4696 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4697 | bool *arg2 = (bool *) 0 ; | |
4698 | bool *arg3 = (bool *) 0 ; | |
4699 | bool temp2 ; | |
c370783e | 4700 | int res2 = 0 ; |
44127b65 | 4701 | bool temp3 ; |
c370783e | 4702 | int res3 = 0 ; |
44127b65 RD |
4703 | PyObject * obj0 = 0 ; |
4704 | char *kwnames[] = { | |
4705 | (char *) "self", NULL | |
4706 | }; | |
4707 | ||
c370783e RD |
4708 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
4709 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
44127b65 | 4710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetFixedSize",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4713 | { |
4714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4715 | (arg1)->GetFixedSize(arg2,arg3); | |
4716 | ||
4717 | wxPyEndAllowThreads(__tstate); | |
4718 | if (PyErr_Occurred()) SWIG_fail; | |
4719 | } | |
4720 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
4721 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
4722 | SWIG_From_bool((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_bool, 0))); | |
4723 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4724 | SWIG_From_bool((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_bool, 0))); | |
44127b65 RD |
4725 | return resultobj; |
4726 | fail: | |
4727 | return NULL; | |
4728 | } | |
4729 | ||
4730 | ||
c370783e | 4731 | static PyObject *_wrap_PyShape_GetFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4732 | PyObject *resultobj; |
4733 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4734 | bool result; | |
4735 | PyObject * obj0 = 0 ; | |
4736 | char *kwnames[] = { | |
4737 | (char *) "self", NULL | |
4738 | }; | |
4739 | ||
4740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetFixedWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4743 | { |
4744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4745 | result = (bool)(arg1)->GetFixedWidth(); | |
4746 | ||
4747 | wxPyEndAllowThreads(__tstate); | |
4748 | if (PyErr_Occurred()) SWIG_fail; | |
4749 | } | |
fbc46b20 RD |
4750 | { |
4751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4752 | } | |
44127b65 RD |
4753 | return resultobj; |
4754 | fail: | |
4755 | return NULL; | |
4756 | } | |
4757 | ||
4758 | ||
c370783e | 4759 | static PyObject *_wrap_PyShape_GetFixedHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4760 | PyObject *resultobj; |
4761 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4762 | bool result; | |
4763 | PyObject * obj0 = 0 ; | |
4764 | char *kwnames[] = { | |
4765 | (char *) "self", NULL | |
4766 | }; | |
4767 | ||
4768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetFixedHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4771 | { |
4772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4773 | result = (bool)(arg1)->GetFixedHeight(); | |
4774 | ||
4775 | wxPyEndAllowThreads(__tstate); | |
4776 | if (PyErr_Occurred()) SWIG_fail; | |
4777 | } | |
fbc46b20 RD |
4778 | { |
4779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4780 | } | |
44127b65 RD |
4781 | return resultobj; |
4782 | fail: | |
4783 | return NULL; | |
4784 | } | |
4785 | ||
4786 | ||
c370783e | 4787 | static PyObject *_wrap_PyShape_SetSpaceAttachments(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4788 | PyObject *resultobj; |
4789 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4790 | bool arg2 ; | |
4791 | PyObject * obj0 = 0 ; | |
4792 | PyObject * obj1 = 0 ; | |
4793 | char *kwnames[] = { | |
4794 | (char *) "self",(char *) "sp", NULL | |
4795 | }; | |
4796 | ||
4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetSpaceAttachments",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4800 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 4801 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4802 | { |
4803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4804 | (arg1)->SetSpaceAttachments(arg2); | |
4805 | ||
4806 | wxPyEndAllowThreads(__tstate); | |
4807 | if (PyErr_Occurred()) SWIG_fail; | |
4808 | } | |
4809 | Py_INCREF(Py_None); resultobj = Py_None; | |
4810 | return resultobj; | |
4811 | fail: | |
4812 | return NULL; | |
4813 | } | |
4814 | ||
4815 | ||
c370783e | 4816 | static PyObject *_wrap_PyShape_GetSpaceAttachments(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4817 | PyObject *resultobj; |
4818 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4819 | bool result; | |
4820 | PyObject * obj0 = 0 ; | |
4821 | char *kwnames[] = { | |
4822 | (char *) "self", NULL | |
4823 | }; | |
4824 | ||
4825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetSpaceAttachments",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4828 | { |
4829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4830 | result = (bool)(arg1)->GetSpaceAttachments(); | |
4831 | ||
4832 | wxPyEndAllowThreads(__tstate); | |
4833 | if (PyErr_Occurred()) SWIG_fail; | |
4834 | } | |
fbc46b20 RD |
4835 | { |
4836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4837 | } | |
44127b65 RD |
4838 | return resultobj; |
4839 | fail: | |
4840 | return NULL; | |
4841 | } | |
4842 | ||
4843 | ||
c370783e | 4844 | static PyObject *_wrap_PyShape_SetShadowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4845 | PyObject *resultobj; |
4846 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4847 | int arg2 ; | |
4848 | bool arg3 = (bool) False ; | |
4849 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4850 | PyObject * obj1 = 0 ; |
44127b65 RD |
4851 | PyObject * obj2 = 0 ; |
4852 | char *kwnames[] = { | |
4853 | (char *) "self",(char *) "mode",(char *) "redraw", NULL | |
4854 | }; | |
4855 | ||
8edf1c75 | 4856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetShadowMode",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4859 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 4860 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 4861 | if (obj2) { |
c370783e | 4862 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 4863 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4864 | } |
4865 | { | |
4866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4867 | (arg1)->SetShadowMode(arg2,arg3); | |
4868 | ||
4869 | wxPyEndAllowThreads(__tstate); | |
4870 | if (PyErr_Occurred()) SWIG_fail; | |
4871 | } | |
4872 | Py_INCREF(Py_None); resultobj = Py_None; | |
4873 | return resultobj; | |
4874 | fail: | |
4875 | return NULL; | |
4876 | } | |
4877 | ||
4878 | ||
c370783e | 4879 | static PyObject *_wrap_PyShape_GetShadowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4880 | PyObject *resultobj; |
4881 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4882 | int result; | |
4883 | PyObject * obj0 = 0 ; | |
4884 | char *kwnames[] = { | |
4885 | (char *) "self", NULL | |
4886 | }; | |
4887 | ||
4888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetShadowMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4891 | { |
4892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4893 | result = (int)(arg1)->GetShadowMode(); | |
4894 | ||
4895 | wxPyEndAllowThreads(__tstate); | |
4896 | if (PyErr_Occurred()) SWIG_fail; | |
4897 | } | |
c370783e | 4898 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
4899 | return resultobj; |
4900 | fail: | |
4901 | return NULL; | |
4902 | } | |
4903 | ||
4904 | ||
c370783e | 4905 | static PyObject *_wrap_PyShape_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4906 | PyObject *resultobj; |
4907 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4908 | double arg2 ; | |
4909 | double arg3 ; | |
4910 | int *arg4 = (int *) 0 ; | |
4911 | double *arg5 = (double *) 0 ; | |
4912 | bool result; | |
4913 | int temp4 ; | |
c370783e | 4914 | int res4 = 0 ; |
44127b65 | 4915 | double temp5 ; |
c370783e | 4916 | int res5 = 0 ; |
44127b65 | 4917 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4918 | PyObject * obj1 = 0 ; |
4919 | PyObject * obj2 = 0 ; | |
44127b65 RD |
4920 | char *kwnames[] = { |
4921 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4922 | }; | |
4923 | ||
c370783e RD |
4924 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
4925 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
8edf1c75 | 4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_HitTest",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4929 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 4930 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4931 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 4932 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4933 | { |
4934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4935 | result = (bool)(arg1)->HitTest(arg2,arg3,arg4,arg5); | |
4936 | ||
4937 | wxPyEndAllowThreads(__tstate); | |
4938 | if (PyErr_Occurred()) SWIG_fail; | |
4939 | } | |
fbc46b20 RD |
4940 | { |
4941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4942 | } | |
c370783e RD |
4943 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
4944 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
4945 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
4946 | SWIG_From_double((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
4947 | return resultobj; |
4948 | fail: | |
4949 | return NULL; | |
4950 | } | |
4951 | ||
4952 | ||
c370783e | 4953 | static PyObject *_wrap_PyShape_SetCentreResize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4954 | PyObject *resultobj; |
4955 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4956 | bool arg2 ; | |
4957 | PyObject * obj0 = 0 ; | |
4958 | PyObject * obj1 = 0 ; | |
4959 | char *kwnames[] = { | |
4960 | (char *) "self",(char *) "cr", NULL | |
4961 | }; | |
4962 | ||
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetCentreResize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4966 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 4967 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
4968 | { |
4969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4970 | (arg1)->SetCentreResize(arg2); | |
4971 | ||
4972 | wxPyEndAllowThreads(__tstate); | |
4973 | if (PyErr_Occurred()) SWIG_fail; | |
4974 | } | |
4975 | Py_INCREF(Py_None); resultobj = Py_None; | |
4976 | return resultobj; | |
4977 | fail: | |
4978 | return NULL; | |
4979 | } | |
4980 | ||
4981 | ||
c370783e | 4982 | static PyObject *_wrap_PyShape_GetCentreResize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
4983 | PyObject *resultobj; |
4984 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
4985 | bool result; | |
4986 | PyObject * obj0 = 0 ; | |
4987 | char *kwnames[] = { | |
4988 | (char *) "self", NULL | |
4989 | }; | |
4990 | ||
4991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetCentreResize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
4993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
4994 | { |
4995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4996 | result = (bool)(arg1)->GetCentreResize(); | |
4997 | ||
4998 | wxPyEndAllowThreads(__tstate); | |
4999 | if (PyErr_Occurred()) SWIG_fail; | |
5000 | } | |
fbc46b20 RD |
5001 | { |
5002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5003 | } | |
44127b65 RD |
5004 | return resultobj; |
5005 | fail: | |
5006 | return NULL; | |
5007 | } | |
5008 | ||
5009 | ||
c370783e | 5010 | static PyObject *_wrap_PyShape_SetMaintainAspectRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5011 | PyObject *resultobj; |
5012 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5013 | bool arg2 ; | |
5014 | PyObject * obj0 = 0 ; | |
5015 | PyObject * obj1 = 0 ; | |
5016 | char *kwnames[] = { | |
5017 | (char *) "self",(char *) "ar", NULL | |
5018 | }; | |
5019 | ||
5020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetMaintainAspectRatio",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5023 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 5024 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
5025 | { |
5026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5027 | (arg1)->SetMaintainAspectRatio(arg2); | |
5028 | ||
5029 | wxPyEndAllowThreads(__tstate); | |
5030 | if (PyErr_Occurred()) SWIG_fail; | |
5031 | } | |
5032 | Py_INCREF(Py_None); resultobj = Py_None; | |
5033 | return resultobj; | |
5034 | fail: | |
5035 | return NULL; | |
5036 | } | |
5037 | ||
5038 | ||
c370783e | 5039 | static PyObject *_wrap_PyShape_GetMaintainAspectRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5040 | PyObject *resultobj; |
5041 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5042 | bool result; | |
5043 | PyObject * obj0 = 0 ; | |
5044 | char *kwnames[] = { | |
5045 | (char *) "self", NULL | |
5046 | }; | |
5047 | ||
5048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetMaintainAspectRatio",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5051 | { |
5052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5053 | result = (bool)(arg1)->GetMaintainAspectRatio(); | |
5054 | ||
5055 | wxPyEndAllowThreads(__tstate); | |
5056 | if (PyErr_Occurred()) SWIG_fail; | |
5057 | } | |
fbc46b20 RD |
5058 | { |
5059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5060 | } | |
44127b65 RD |
5061 | return resultobj; |
5062 | fail: | |
5063 | return NULL; | |
5064 | } | |
5065 | ||
5066 | ||
c370783e | 5067 | static PyObject *_wrap_PyShape_GetLines(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5068 | PyObject *resultobj; |
5069 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5070 | PyObject *result; | |
5071 | PyObject * obj0 = 0 ; | |
5072 | char *kwnames[] = { | |
5073 | (char *) "self", NULL | |
5074 | }; | |
5075 | ||
5076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetLines",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5079 | { |
5080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5081 | result = (PyObject *)wxPyShape_GetLines(arg1); | |
5082 | ||
5083 | wxPyEndAllowThreads(__tstate); | |
5084 | if (PyErr_Occurred()) SWIG_fail; | |
5085 | } | |
5086 | resultobj = result; | |
5087 | return resultobj; | |
5088 | fail: | |
5089 | return NULL; | |
5090 | } | |
5091 | ||
5092 | ||
c370783e | 5093 | static PyObject *_wrap_PyShape_SetDisableLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5094 | PyObject *resultobj; |
5095 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5096 | bool arg2 ; | |
5097 | PyObject * obj0 = 0 ; | |
5098 | PyObject * obj1 = 0 ; | |
5099 | char *kwnames[] = { | |
5100 | (char *) "self",(char *) "flag", NULL | |
5101 | }; | |
5102 | ||
5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetDisableLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5106 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 5107 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
5108 | { |
5109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5110 | (arg1)->SetDisableLabel(arg2); | |
5111 | ||
5112 | wxPyEndAllowThreads(__tstate); | |
5113 | if (PyErr_Occurred()) SWIG_fail; | |
5114 | } | |
5115 | Py_INCREF(Py_None); resultobj = Py_None; | |
5116 | return resultobj; | |
5117 | fail: | |
5118 | return NULL; | |
5119 | } | |
5120 | ||
5121 | ||
c370783e | 5122 | static PyObject *_wrap_PyShape_GetDisableLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5123 | PyObject *resultobj; |
5124 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5125 | bool result; | |
5126 | PyObject * obj0 = 0 ; | |
5127 | char *kwnames[] = { | |
5128 | (char *) "self", NULL | |
5129 | }; | |
5130 | ||
5131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetDisableLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5134 | { |
5135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5136 | result = (bool)(arg1)->GetDisableLabel(); | |
5137 | ||
5138 | wxPyEndAllowThreads(__tstate); | |
5139 | if (PyErr_Occurred()) SWIG_fail; | |
5140 | } | |
fbc46b20 RD |
5141 | { |
5142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5143 | } | |
44127b65 RD |
5144 | return resultobj; |
5145 | fail: | |
5146 | return NULL; | |
5147 | } | |
5148 | ||
5149 | ||
c370783e | 5150 | static PyObject *_wrap_PyShape_SetAttachmentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5151 | PyObject *resultobj; |
5152 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5153 | int arg2 ; | |
5154 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5155 | PyObject * obj1 = 0 ; |
44127b65 RD |
5156 | char *kwnames[] = { |
5157 | (char *) "self",(char *) "mode", NULL | |
5158 | }; | |
5159 | ||
8edf1c75 | 5160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetAttachmentMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5163 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5164 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
5165 | { |
5166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5167 | (arg1)->SetAttachmentMode(arg2); | |
5168 | ||
5169 | wxPyEndAllowThreads(__tstate); | |
5170 | if (PyErr_Occurred()) SWIG_fail; | |
5171 | } | |
5172 | Py_INCREF(Py_None); resultobj = Py_None; | |
5173 | return resultobj; | |
5174 | fail: | |
5175 | return NULL; | |
5176 | } | |
5177 | ||
5178 | ||
c370783e | 5179 | static PyObject *_wrap_PyShape_GetAttachmentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5180 | PyObject *resultobj; |
5181 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5182 | int result; | |
5183 | PyObject * obj0 = 0 ; | |
5184 | char *kwnames[] = { | |
5185 | (char *) "self", NULL | |
5186 | }; | |
5187 | ||
5188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetAttachmentMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5191 | { |
5192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5193 | result = (int)(arg1)->GetAttachmentMode(); | |
5194 | ||
5195 | wxPyEndAllowThreads(__tstate); | |
5196 | if (PyErr_Occurred()) SWIG_fail; | |
5197 | } | |
c370783e | 5198 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
5199 | return resultobj; |
5200 | fail: | |
5201 | return NULL; | |
5202 | } | |
5203 | ||
5204 | ||
c370783e | 5205 | static PyObject *_wrap_PyShape_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5206 | PyObject *resultobj; |
5207 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5208 | long arg2 ; | |
5209 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5210 | PyObject * obj1 = 0 ; |
44127b65 RD |
5211 | char *kwnames[] = { |
5212 | (char *) "self",(char *) "i", NULL | |
5213 | }; | |
5214 | ||
8edf1c75 | 5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5218 | arg2 = (long)SWIG_As_long(obj1); |
2f4c0a16 | 5219 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
5220 | { |
5221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5222 | (arg1)->SetId(arg2); | |
5223 | ||
5224 | wxPyEndAllowThreads(__tstate); | |
5225 | if (PyErr_Occurred()) SWIG_fail; | |
5226 | } | |
5227 | Py_INCREF(Py_None); resultobj = Py_None; | |
5228 | return resultobj; | |
5229 | fail: | |
5230 | return NULL; | |
5231 | } | |
5232 | ||
5233 | ||
c370783e | 5234 | static PyObject *_wrap_PyShape_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5235 | PyObject *resultobj; |
5236 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5237 | long result; | |
5238 | PyObject * obj0 = 0 ; | |
5239 | char *kwnames[] = { | |
5240 | (char *) "self", NULL | |
5241 | }; | |
5242 | ||
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5246 | { |
5247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5248 | result = (long)(arg1)->GetId(); | |
5249 | ||
5250 | wxPyEndAllowThreads(__tstate); | |
5251 | if (PyErr_Occurred()) SWIG_fail; | |
5252 | } | |
c370783e | 5253 | resultobj = SWIG_From_long((long)result); |
44127b65 RD |
5254 | return resultobj; |
5255 | fail: | |
5256 | return NULL; | |
5257 | } | |
5258 | ||
5259 | ||
c370783e | 5260 | static PyObject *_wrap_PyShape_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5261 | PyObject *resultobj; |
5262 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5263 | wxPen *arg2 = (wxPen *) 0 ; | |
5264 | PyObject * obj0 = 0 ; | |
5265 | PyObject * obj1 = 0 ; | |
5266 | char *kwnames[] = { | |
5267 | (char *) "self",(char *) "pen", NULL | |
5268 | }; | |
5269 | ||
5270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5273 | { |
5274 | wxPen* temp; | |
5275 | if (obj1) { | |
5276 | if (obj1 == Py_None) { | |
5277 | temp = NULL; | |
5278 | } | |
5279 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
5280 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
5281 | return NULL; | |
5282 | } | |
5283 | } | |
5284 | if (temp) | |
5285 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
5286 | temp->GetWidth(), | |
5287 | temp->GetStyle()); | |
5288 | else | |
5289 | arg2 = NULL; | |
5290 | } | |
5291 | { | |
5292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5293 | (arg1)->SetPen(arg2); | |
5294 | ||
5295 | wxPyEndAllowThreads(__tstate); | |
5296 | if (PyErr_Occurred()) SWIG_fail; | |
5297 | } | |
5298 | Py_INCREF(Py_None); resultobj = Py_None; | |
5299 | return resultobj; | |
5300 | fail: | |
5301 | return NULL; | |
5302 | } | |
5303 | ||
5304 | ||
c370783e | 5305 | static PyObject *_wrap_PyShape_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5306 | PyObject *resultobj; |
5307 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5308 | wxBrush *arg2 = (wxBrush *) 0 ; | |
5309 | PyObject * obj0 = 0 ; | |
5310 | PyObject * obj1 = 0 ; | |
5311 | char *kwnames[] = { | |
5312 | (char *) "self",(char *) "brush", NULL | |
5313 | }; | |
5314 | ||
5315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5318 | { |
5319 | wxBrush* temp; | |
5320 | if (obj1) { | |
5321 | if (obj1 == Py_None) { | |
5322 | temp = NULL; | |
5323 | } | |
5324 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
5325 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
5326 | return NULL; | |
5327 | } | |
5328 | } | |
5329 | if (temp) | |
5330 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
5331 | else | |
5332 | arg2 = NULL; | |
5333 | } | |
5334 | { | |
5335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5336 | (arg1)->SetBrush(arg2); | |
5337 | ||
5338 | wxPyEndAllowThreads(__tstate); | |
5339 | if (PyErr_Occurred()) SWIG_fail; | |
5340 | } | |
5341 | Py_INCREF(Py_None); resultobj = Py_None; | |
5342 | return resultobj; | |
5343 | fail: | |
5344 | return NULL; | |
5345 | } | |
5346 | ||
5347 | ||
c370783e | 5348 | static PyObject *_wrap_PyShape_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5349 | PyObject *resultobj; |
5350 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5351 | bool arg2 ; | |
5352 | PyObject * obj0 = 0 ; | |
5353 | PyObject * obj1 = 0 ; | |
5354 | char *kwnames[] = { | |
5355 | (char *) "self",(char *) "show", NULL | |
5356 | }; | |
5357 | ||
5358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5361 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 5362 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
5363 | { |
5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5365 | (arg1)->Show(arg2); | |
5366 | ||
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | Py_INCREF(Py_None); resultobj = Py_None; | |
5371 | return resultobj; | |
5372 | fail: | |
5373 | return NULL; | |
5374 | } | |
5375 | ||
5376 | ||
c370783e | 5377 | static PyObject *_wrap_PyShape_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5378 | PyObject *resultobj; |
5379 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5380 | bool result; | |
5381 | PyObject * obj0 = 0 ; | |
5382 | char *kwnames[] = { | |
5383 | (char *) "self", NULL | |
5384 | }; | |
5385 | ||
5386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_IsShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5389 | { |
5390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5391 | result = (bool)(arg1)->IsShown(); | |
5392 | ||
5393 | wxPyEndAllowThreads(__tstate); | |
5394 | if (PyErr_Occurred()) SWIG_fail; | |
5395 | } | |
fbc46b20 RD |
5396 | { |
5397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5398 | } | |
44127b65 RD |
5399 | return resultobj; |
5400 | fail: | |
5401 | return NULL; | |
5402 | } | |
5403 | ||
5404 | ||
c370783e | 5405 | static PyObject *_wrap_PyShape_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5406 | PyObject *resultobj; |
5407 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5408 | wxDC *arg2 = 0 ; | |
5409 | double arg3 ; | |
5410 | double arg4 ; | |
5411 | bool arg5 = (bool) True ; | |
5412 | PyObject * obj0 = 0 ; | |
5413 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
5414 | PyObject * obj2 = 0 ; |
5415 | PyObject * obj3 = 0 ; | |
44127b65 RD |
5416 | PyObject * obj4 = 0 ; |
5417 | char *kwnames[] = { | |
5418 | (char *) "self",(char *) "dc",(char *) "x1",(char *) "y1",(char *) "display", NULL | |
5419 | }; | |
5420 | ||
8edf1c75 | 5421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyShape_Move",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
5422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5425 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5426 | SWIG_fail; | |
44127b65 | 5427 | if (arg2 == NULL) { |
2f4c0a16 RD |
5428 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5429 | SWIG_fail; | |
8edf1c75 | 5430 | } |
c370783e | 5431 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 5432 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5433 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 5434 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 5435 | if (obj4) { |
c370783e | 5436 | arg5 = (bool)SWIG_As_bool(obj4); |
2f4c0a16 | 5437 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
5438 | } |
5439 | { | |
5440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5441 | (arg1)->Move(*arg2,arg3,arg4,arg5); | |
5442 | ||
5443 | wxPyEndAllowThreads(__tstate); | |
5444 | if (PyErr_Occurred()) SWIG_fail; | |
5445 | } | |
5446 | Py_INCREF(Py_None); resultobj = Py_None; | |
5447 | return resultobj; | |
5448 | fail: | |
5449 | return NULL; | |
5450 | } | |
5451 | ||
5452 | ||
c370783e | 5453 | static PyObject *_wrap_PyShape_Erase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5454 | PyObject *resultobj; |
5455 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5456 | wxDC *arg2 = 0 ; | |
5457 | PyObject * obj0 = 0 ; | |
5458 | PyObject * obj1 = 0 ; | |
5459 | char *kwnames[] = { | |
5460 | (char *) "self",(char *) "dc", NULL | |
5461 | }; | |
5462 | ||
5463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Erase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5467 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5468 | SWIG_fail; | |
44127b65 | 5469 | if (arg2 == NULL) { |
2f4c0a16 RD |
5470 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5471 | SWIG_fail; | |
44127b65 RD |
5472 | } |
5473 | { | |
5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5475 | (arg1)->Erase(*arg2); | |
5476 | ||
5477 | wxPyEndAllowThreads(__tstate); | |
5478 | if (PyErr_Occurred()) SWIG_fail; | |
5479 | } | |
5480 | Py_INCREF(Py_None); resultobj = Py_None; | |
5481 | return resultobj; | |
5482 | fail: | |
5483 | return NULL; | |
5484 | } | |
5485 | ||
5486 | ||
c370783e | 5487 | static PyObject *_wrap_PyShape_EraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5488 | PyObject *resultobj; |
5489 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5490 | wxDC *arg2 = 0 ; | |
5491 | PyObject * obj0 = 0 ; | |
5492 | PyObject * obj1 = 0 ; | |
5493 | char *kwnames[] = { | |
5494 | (char *) "self",(char *) "dc", NULL | |
5495 | }; | |
5496 | ||
5497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_EraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5500 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5501 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5502 | SWIG_fail; | |
44127b65 | 5503 | if (arg2 == NULL) { |
2f4c0a16 RD |
5504 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5505 | SWIG_fail; | |
44127b65 RD |
5506 | } |
5507 | { | |
5508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5509 | (arg1)->EraseContents(*arg2); | |
5510 | ||
5511 | wxPyEndAllowThreads(__tstate); | |
5512 | if (PyErr_Occurred()) SWIG_fail; | |
5513 | } | |
5514 | Py_INCREF(Py_None); resultobj = Py_None; | |
5515 | return resultobj; | |
5516 | fail: | |
5517 | return NULL; | |
5518 | } | |
5519 | ||
5520 | ||
c370783e | 5521 | static PyObject *_wrap_PyShape_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5522 | PyObject *resultobj; |
5523 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5524 | wxDC *arg2 = 0 ; | |
5525 | PyObject * obj0 = 0 ; | |
5526 | PyObject * obj1 = 0 ; | |
5527 | char *kwnames[] = { | |
5528 | (char *) "self",(char *) "dc", NULL | |
5529 | }; | |
5530 | ||
5531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Draw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5534 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5535 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5536 | SWIG_fail; | |
44127b65 | 5537 | if (arg2 == NULL) { |
2f4c0a16 RD |
5538 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5539 | SWIG_fail; | |
44127b65 RD |
5540 | } |
5541 | { | |
5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5543 | (arg1)->Draw(*arg2); | |
5544 | ||
5545 | wxPyEndAllowThreads(__tstate); | |
5546 | if (PyErr_Occurred()) SWIG_fail; | |
5547 | } | |
5548 | Py_INCREF(Py_None); resultobj = Py_None; | |
5549 | return resultobj; | |
5550 | fail: | |
5551 | return NULL; | |
5552 | } | |
5553 | ||
5554 | ||
c370783e | 5555 | static PyObject *_wrap_PyShape_Flash(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5556 | PyObject *resultobj; |
5557 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5558 | PyObject * obj0 = 0 ; | |
5559 | char *kwnames[] = { | |
5560 | (char *) "self", NULL | |
5561 | }; | |
5562 | ||
5563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Flash",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5566 | { |
5567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5568 | (arg1)->Flash(); | |
5569 | ||
5570 | wxPyEndAllowThreads(__tstate); | |
5571 | if (PyErr_Occurred()) SWIG_fail; | |
5572 | } | |
5573 | Py_INCREF(Py_None); resultobj = Py_None; | |
5574 | return resultobj; | |
5575 | fail: | |
5576 | return NULL; | |
5577 | } | |
5578 | ||
5579 | ||
c370783e | 5580 | static PyObject *_wrap_PyShape_MoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5581 | PyObject *resultobj; |
5582 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5583 | wxDC *arg2 = 0 ; | |
5584 | PyObject * obj0 = 0 ; | |
5585 | PyObject * obj1 = 0 ; | |
5586 | char *kwnames[] = { | |
5587 | (char *) "self",(char *) "dc", NULL | |
5588 | }; | |
5589 | ||
5590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_MoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5594 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5595 | SWIG_fail; | |
44127b65 | 5596 | if (arg2 == NULL) { |
2f4c0a16 RD |
5597 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5598 | SWIG_fail; | |
44127b65 RD |
5599 | } |
5600 | { | |
5601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5602 | (arg1)->MoveLinks(*arg2); | |
5603 | ||
5604 | wxPyEndAllowThreads(__tstate); | |
5605 | if (PyErr_Occurred()) SWIG_fail; | |
5606 | } | |
5607 | Py_INCREF(Py_None); resultobj = Py_None; | |
5608 | return resultobj; | |
5609 | fail: | |
5610 | return NULL; | |
5611 | } | |
5612 | ||
5613 | ||
c370783e | 5614 | static PyObject *_wrap_PyShape_DrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5615 | PyObject *resultobj; |
5616 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5617 | wxDC *arg2 = 0 ; | |
5618 | PyObject * obj0 = 0 ; | |
5619 | PyObject * obj1 = 0 ; | |
5620 | char *kwnames[] = { | |
5621 | (char *) "self",(char *) "dc", NULL | |
5622 | }; | |
5623 | ||
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_DrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5627 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
5628 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5629 | SWIG_fail; | |
44127b65 | 5630 | if (arg2 == NULL) { |
2f4c0a16 RD |
5631 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5632 | SWIG_fail; | |
44127b65 RD |
5633 | } |
5634 | { | |
5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5636 | (arg1)->DrawContents(*arg2); | |
5637 | ||
5638 | wxPyEndAllowThreads(__tstate); | |
5639 | if (PyErr_Occurred()) SWIG_fail; | |
5640 | } | |
5641 | Py_INCREF(Py_None); resultobj = Py_None; | |
5642 | return resultobj; | |
5643 | fail: | |
5644 | return NULL; | |
5645 | } | |
5646 | ||
5647 | ||
c370783e | 5648 | static PyObject *_wrap_PyShape_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5649 | PyObject *resultobj; |
5650 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5651 | double arg2 ; | |
5652 | double arg3 ; | |
5653 | bool arg4 = (bool) True ; | |
5654 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5655 | PyObject * obj1 = 0 ; |
5656 | PyObject * obj2 = 0 ; | |
44127b65 RD |
5657 | PyObject * obj3 = 0 ; |
5658 | char *kwnames[] = { | |
5659 | (char *) "self",(char *) "x",(char *) "y",(char *) "recursive", NULL | |
5660 | }; | |
5661 | ||
8edf1c75 | 5662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShape_SetSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5665 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 5666 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5667 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 5668 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 5669 | if (obj3) { |
c370783e | 5670 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 5671 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
5672 | } |
5673 | { | |
5674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5675 | (arg1)->SetSize(arg2,arg3,arg4); | |
5676 | ||
5677 | wxPyEndAllowThreads(__tstate); | |
5678 | if (PyErr_Occurred()) SWIG_fail; | |
5679 | } | |
5680 | Py_INCREF(Py_None); resultobj = Py_None; | |
5681 | return resultobj; | |
5682 | fail: | |
5683 | return NULL; | |
5684 | } | |
5685 | ||
5686 | ||
c370783e | 5687 | static PyObject *_wrap_PyShape_SetAttachmentSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5688 | PyObject *resultobj; |
5689 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5690 | double arg2 ; | |
5691 | double arg3 ; | |
5692 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5693 | PyObject * obj1 = 0 ; |
5694 | PyObject * obj2 = 0 ; | |
44127b65 RD |
5695 | char *kwnames[] = { |
5696 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5697 | }; | |
5698 | ||
8edf1c75 | 5699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_SetAttachmentSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5702 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 5703 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5704 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 5705 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
5706 | { |
5707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5708 | (arg1)->SetAttachmentSize(arg2,arg3); | |
5709 | ||
5710 | wxPyEndAllowThreads(__tstate); | |
5711 | if (PyErr_Occurred()) SWIG_fail; | |
5712 | } | |
5713 | Py_INCREF(Py_None); resultobj = Py_None; | |
5714 | return resultobj; | |
5715 | fail: | |
5716 | return NULL; | |
5717 | } | |
5718 | ||
5719 | ||
c370783e | 5720 | static PyObject *_wrap_PyShape_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5721 | PyObject *resultobj; |
5722 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5723 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
5724 | PyObject * obj0 = 0 ; | |
5725 | PyObject * obj1 = 0 ; | |
5726 | char *kwnames[] = { | |
5727 | (char *) "self",(char *) "can", NULL | |
5728 | }; | |
5729 | ||
5730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5733 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
5734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5735 | { |
5736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5737 | (arg1)->Attach(arg2); | |
5738 | ||
5739 | wxPyEndAllowThreads(__tstate); | |
5740 | if (PyErr_Occurred()) SWIG_fail; | |
5741 | } | |
5742 | Py_INCREF(Py_None); resultobj = Py_None; | |
5743 | return resultobj; | |
5744 | fail: | |
5745 | return NULL; | |
5746 | } | |
5747 | ||
5748 | ||
c370783e | 5749 | static PyObject *_wrap_PyShape_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5750 | PyObject *resultobj; |
5751 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5752 | PyObject * obj0 = 0 ; | |
5753 | char *kwnames[] = { | |
5754 | (char *) "self", NULL | |
5755 | }; | |
5756 | ||
5757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5760 | { |
5761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5762 | (arg1)->Detach(); | |
5763 | ||
5764 | wxPyEndAllowThreads(__tstate); | |
5765 | if (PyErr_Occurred()) SWIG_fail; | |
5766 | } | |
5767 | Py_INCREF(Py_None); resultobj = Py_None; | |
5768 | return resultobj; | |
5769 | fail: | |
5770 | return NULL; | |
5771 | } | |
5772 | ||
5773 | ||
c370783e | 5774 | static PyObject *_wrap_PyShape_Constrain(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5775 | PyObject *resultobj; |
5776 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5777 | bool result; | |
5778 | PyObject * obj0 = 0 ; | |
5779 | char *kwnames[] = { | |
5780 | (char *) "self", NULL | |
5781 | }; | |
5782 | ||
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Constrain",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5786 | { |
5787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5788 | result = (bool)(arg1)->Constrain(); | |
5789 | ||
5790 | wxPyEndAllowThreads(__tstate); | |
5791 | if (PyErr_Occurred()) SWIG_fail; | |
5792 | } | |
fbc46b20 RD |
5793 | { |
5794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5795 | } | |
44127b65 RD |
5796 | return resultobj; |
5797 | fail: | |
5798 | return NULL; | |
5799 | } | |
5800 | ||
5801 | ||
c370783e | 5802 | static PyObject *_wrap_PyShape_AddLine(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5803 | PyObject *resultobj; |
5804 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5805 | wxPyLineShape *arg2 = (wxPyLineShape *) 0 ; | |
5806 | wxPyShape *arg3 = (wxPyShape *) 0 ; | |
5807 | int arg4 = (int) 0 ; | |
5808 | int arg5 = (int) 0 ; | |
5809 | int arg6 = (int) -1 ; | |
5810 | int arg7 = (int) -1 ; | |
5811 | PyObject * obj0 = 0 ; | |
5812 | PyObject * obj1 = 0 ; | |
5813 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
5814 | PyObject * obj3 = 0 ; |
5815 | PyObject * obj4 = 0 ; | |
5816 | PyObject * obj5 = 0 ; | |
5817 | PyObject * obj6 = 0 ; | |
44127b65 RD |
5818 | char *kwnames[] = { |
5819 | (char *) "self",(char *) "line",(char *) "other",(char *) "attachFrom",(char *) "attachTo",(char *) "positionFrom",(char *) "positionTo", NULL | |
5820 | }; | |
5821 | ||
8edf1c75 | 5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:PyShape_AddLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
5823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5825 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyLineShape, | |
5826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5827 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
5828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5829 | if (obj3) { |
c370783e | 5830 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 5831 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
5832 | } |
5833 | if (obj4) { | |
c370783e | 5834 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 5835 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
5836 | } |
5837 | if (obj5) { | |
c370783e | 5838 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 5839 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
5840 | } |
5841 | if (obj6) { | |
c370783e | 5842 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 5843 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 5844 | } |
44127b65 RD |
5845 | { |
5846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5847 | (arg1)->AddLine(arg2,arg3,arg4,arg5,arg6,arg7); | |
5848 | ||
5849 | wxPyEndAllowThreads(__tstate); | |
5850 | if (PyErr_Occurred()) SWIG_fail; | |
5851 | } | |
5852 | Py_INCREF(Py_None); resultobj = Py_None; | |
5853 | return resultobj; | |
5854 | fail: | |
5855 | return NULL; | |
5856 | } | |
5857 | ||
5858 | ||
c370783e | 5859 | static PyObject *_wrap_PyShape_GetLinePosition(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5860 | PyObject *resultobj; |
5861 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5862 | wxPyLineShape *arg2 = (wxPyLineShape *) 0 ; | |
5863 | int result; | |
5864 | PyObject * obj0 = 0 ; | |
5865 | PyObject * obj1 = 0 ; | |
5866 | char *kwnames[] = { | |
5867 | (char *) "self",(char *) "line", NULL | |
5868 | }; | |
5869 | ||
5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetLinePosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyLineShape, | |
5874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5875 | { |
5876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5877 | result = (int)(arg1)->GetLinePosition(arg2); | |
5878 | ||
5879 | wxPyEndAllowThreads(__tstate); | |
5880 | if (PyErr_Occurred()) SWIG_fail; | |
5881 | } | |
c370783e | 5882 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
5883 | return resultobj; |
5884 | fail: | |
5885 | return NULL; | |
5886 | } | |
5887 | ||
5888 | ||
c370783e | 5889 | static PyObject *_wrap_PyShape_AddText(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5890 | PyObject *resultobj; |
5891 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5892 | wxString *arg2 = 0 ; | |
5893 | bool temp2 = False ; | |
5894 | PyObject * obj0 = 0 ; | |
5895 | PyObject * obj1 = 0 ; | |
5896 | char *kwnames[] = { | |
5897 | (char *) "self",(char *) "string", NULL | |
5898 | }; | |
5899 | ||
5900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_AddText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5903 | { |
5904 | arg2 = wxString_in_helper(obj1); | |
5905 | if (arg2 == NULL) SWIG_fail; | |
5906 | temp2 = True; | |
5907 | } | |
5908 | { | |
5909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5910 | (arg1)->AddText((wxString const &)*arg2); | |
5911 | ||
5912 | wxPyEndAllowThreads(__tstate); | |
5913 | if (PyErr_Occurred()) SWIG_fail; | |
5914 | } | |
5915 | Py_INCREF(Py_None); resultobj = Py_None; | |
5916 | { | |
5917 | if (temp2) | |
5918 | delete arg2; | |
5919 | } | |
5920 | return resultobj; | |
5921 | fail: | |
5922 | { | |
5923 | if (temp2) | |
5924 | delete arg2; | |
5925 | } | |
5926 | return NULL; | |
5927 | } | |
5928 | ||
5929 | ||
c370783e | 5930 | static PyObject *_wrap_PyShape_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5931 | PyObject *resultobj; |
5932 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5933 | wxPen *result; | |
5934 | PyObject * obj0 = 0 ; | |
5935 | char *kwnames[] = { | |
5936 | (char *) "self", NULL | |
5937 | }; | |
5938 | ||
5939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetPen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5942 | { |
5943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5944 | result = (wxPen *)(arg1)->GetPen(); | |
5945 | ||
5946 | wxPyEndAllowThreads(__tstate); | |
5947 | if (PyErr_Occurred()) SWIG_fail; | |
5948 | } | |
2f4c0a16 | 5949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
44127b65 RD |
5950 | return resultobj; |
5951 | fail: | |
5952 | return NULL; | |
5953 | } | |
5954 | ||
5955 | ||
c370783e | 5956 | static PyObject *_wrap_PyShape_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5957 | PyObject *resultobj; |
5958 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5959 | wxBrush *result; | |
5960 | PyObject * obj0 = 0 ; | |
5961 | char *kwnames[] = { | |
5962 | (char *) "self", NULL | |
5963 | }; | |
5964 | ||
5965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBrush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5968 | { |
5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5970 | result = (wxBrush *)(arg1)->GetBrush(); | |
5971 | ||
5972 | wxPyEndAllowThreads(__tstate); | |
5973 | if (PyErr_Occurred()) SWIG_fail; | |
5974 | } | |
2f4c0a16 | 5975 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
44127b65 RD |
5976 | return resultobj; |
5977 | fail: | |
5978 | return NULL; | |
5979 | } | |
5980 | ||
5981 | ||
c370783e | 5982 | static PyObject *_wrap_PyShape_SetDefaultRegionSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
5983 | PyObject *resultobj; |
5984 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
5985 | PyObject * obj0 = 0 ; | |
5986 | char *kwnames[] = { | |
5987 | (char *) "self", NULL | |
5988 | }; | |
5989 | ||
5990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_SetDefaultRegionSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
5992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
5993 | { |
5994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5995 | (arg1)->SetDefaultRegionSize(); | |
5996 | ||
5997 | wxPyEndAllowThreads(__tstate); | |
5998 | if (PyErr_Occurred()) SWIG_fail; | |
5999 | } | |
6000 | Py_INCREF(Py_None); resultobj = Py_None; | |
6001 | return resultobj; | |
6002 | fail: | |
6003 | return NULL; | |
6004 | } | |
6005 | ||
6006 | ||
c370783e | 6007 | static PyObject *_wrap_PyShape_FormatText(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6008 | PyObject *resultobj; |
6009 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6010 | wxDC *arg2 = 0 ; | |
6011 | wxString *arg3 = 0 ; | |
6012 | int arg4 = (int) 0 ; | |
6013 | bool temp3 = False ; | |
6014 | PyObject * obj0 = 0 ; | |
6015 | PyObject * obj1 = 0 ; | |
6016 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6017 | PyObject * obj3 = 0 ; |
44127b65 RD |
6018 | char *kwnames[] = { |
6019 | (char *) "self",(char *) "dc",(char *) "s",(char *) "regionId", NULL | |
6020 | }; | |
6021 | ||
8edf1c75 | 6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShape_FormatText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6025 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6026 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6027 | SWIG_fail; | |
44127b65 | 6028 | if (arg2 == NULL) { |
2f4c0a16 RD |
6029 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6030 | SWIG_fail; | |
44127b65 RD |
6031 | } |
6032 | { | |
6033 | arg3 = wxString_in_helper(obj2); | |
6034 | if (arg3 == NULL) SWIG_fail; | |
6035 | temp3 = True; | |
6036 | } | |
8edf1c75 | 6037 | if (obj3) { |
c370783e | 6038 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 6039 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6040 | } |
44127b65 RD |
6041 | { |
6042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6043 | (arg1)->FormatText(*arg2,(wxString const &)*arg3,arg4); | |
6044 | ||
6045 | wxPyEndAllowThreads(__tstate); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | } | |
6048 | Py_INCREF(Py_None); resultobj = Py_None; | |
6049 | { | |
6050 | if (temp3) | |
6051 | delete arg3; | |
6052 | } | |
6053 | return resultobj; | |
6054 | fail: | |
6055 | { | |
6056 | if (temp3) | |
6057 | delete arg3; | |
6058 | } | |
6059 | return NULL; | |
6060 | } | |
6061 | ||
6062 | ||
c370783e | 6063 | static PyObject *_wrap_PyShape_SetFormatMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6064 | PyObject *resultobj; |
6065 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6066 | int arg2 ; | |
6067 | int arg3 = (int) 0 ; | |
6068 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6069 | PyObject * obj1 = 0 ; |
6070 | PyObject * obj2 = 0 ; | |
44127b65 RD |
6071 | char *kwnames[] = { |
6072 | (char *) "self",(char *) "mode",(char *) "regionId", NULL | |
6073 | }; | |
6074 | ||
8edf1c75 | 6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetFormatMode",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6078 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6079 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6080 | if (obj2) { |
c370783e | 6081 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6082 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6083 | } |
44127b65 RD |
6084 | { |
6085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6086 | (arg1)->SetFormatMode(arg2,arg3); | |
6087 | ||
6088 | wxPyEndAllowThreads(__tstate); | |
6089 | if (PyErr_Occurred()) SWIG_fail; | |
6090 | } | |
6091 | Py_INCREF(Py_None); resultobj = Py_None; | |
6092 | return resultobj; | |
6093 | fail: | |
6094 | return NULL; | |
6095 | } | |
6096 | ||
6097 | ||
c370783e | 6098 | static PyObject *_wrap_PyShape_GetFormatMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6099 | PyObject *resultobj; |
6100 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6101 | int arg2 = (int) 0 ; | |
6102 | int result; | |
6103 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6104 | PyObject * obj1 = 0 ; |
44127b65 RD |
6105 | char *kwnames[] = { |
6106 | (char *) "self",(char *) "regionId", NULL | |
6107 | }; | |
6108 | ||
8edf1c75 | 6109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_GetFormatMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 6112 | if (obj1) { |
c370783e | 6113 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6114 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6115 | } |
44127b65 RD |
6116 | { |
6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6118 | result = (int)(arg1)->GetFormatMode(arg2); | |
6119 | ||
6120 | wxPyEndAllowThreads(__tstate); | |
6121 | if (PyErr_Occurred()) SWIG_fail; | |
6122 | } | |
c370783e | 6123 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
6124 | return resultobj; |
6125 | fail: | |
6126 | return NULL; | |
6127 | } | |
6128 | ||
6129 | ||
c370783e | 6130 | static PyObject *_wrap_PyShape_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6131 | PyObject *resultobj; |
6132 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6133 | wxFont *arg2 = (wxFont *) 0 ; | |
6134 | int arg3 = (int) 0 ; | |
6135 | PyObject * obj0 = 0 ; | |
6136 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6137 | PyObject * obj2 = 0 ; |
44127b65 RD |
6138 | char *kwnames[] = { |
6139 | (char *) "self",(char *) "font",(char *) "regionId", NULL | |
6140 | }; | |
6141 | ||
8edf1c75 | 6142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6145 | { |
6146 | wxFont* temp; | |
6147 | if (obj1) { | |
6148 | if (obj1 == Py_None) { | |
6149 | temp = NULL; | |
6150 | } | |
6151 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
6152 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
6153 | return NULL; | |
6154 | } | |
6155 | } | |
6156 | if (temp) | |
6157 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
6158 | temp->GetFamily(), | |
6159 | temp->GetStyle(), | |
6160 | temp->GetWeight(), | |
6161 | temp->GetUnderlined(), | |
6162 | temp->GetFaceName(), | |
6163 | temp->GetEncoding()); | |
6164 | else | |
6165 | arg2 = NULL; | |
6166 | } | |
8edf1c75 | 6167 | if (obj2) { |
c370783e | 6168 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6169 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6170 | } |
44127b65 RD |
6171 | { |
6172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6173 | (arg1)->SetFont(arg2,arg3); | |
6174 | ||
6175 | wxPyEndAllowThreads(__tstate); | |
6176 | if (PyErr_Occurred()) SWIG_fail; | |
6177 | } | |
6178 | Py_INCREF(Py_None); resultobj = Py_None; | |
6179 | return resultobj; | |
6180 | fail: | |
6181 | return NULL; | |
6182 | } | |
6183 | ||
6184 | ||
c370783e | 6185 | static PyObject *_wrap_PyShape_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6186 | PyObject *resultobj; |
6187 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6188 | int arg2 = (int) 0 ; | |
6189 | wxFont *result; | |
6190 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6191 | PyObject * obj1 = 0 ; |
44127b65 RD |
6192 | char *kwnames[] = { |
6193 | (char *) "self",(char *) "regionId", NULL | |
6194 | }; | |
6195 | ||
8edf1c75 | 6196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_GetFont",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 6199 | if (obj1) { |
c370783e | 6200 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6201 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6202 | } |
44127b65 RD |
6203 | { |
6204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6205 | result = (wxFont *)(arg1)->GetFont(arg2); | |
6206 | ||
6207 | wxPyEndAllowThreads(__tstate); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | } | |
2f4c0a16 | 6210 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
44127b65 RD |
6211 | return resultobj; |
6212 | fail: | |
6213 | return NULL; | |
6214 | } | |
6215 | ||
6216 | ||
c370783e | 6217 | static PyObject *_wrap_PyShape_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6218 | PyObject *resultobj; |
6219 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6220 | wxString *arg2 = 0 ; | |
6221 | int arg3 = (int) 0 ; | |
6222 | bool temp2 = False ; | |
6223 | PyObject * obj0 = 0 ; | |
6224 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6225 | PyObject * obj2 = 0 ; |
44127b65 RD |
6226 | char *kwnames[] = { |
6227 | (char *) "self",(char *) "colour",(char *) "regionId", NULL | |
6228 | }; | |
6229 | ||
8edf1c75 | 6230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6233 | { |
6234 | arg2 = wxString_in_helper(obj1); | |
6235 | if (arg2 == NULL) SWIG_fail; | |
6236 | temp2 = True; | |
6237 | } | |
8edf1c75 | 6238 | if (obj2) { |
c370783e | 6239 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6240 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6241 | } |
44127b65 RD |
6242 | { |
6243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6244 | (arg1)->SetTextColour((wxString const &)*arg2,arg3); | |
6245 | ||
6246 | wxPyEndAllowThreads(__tstate); | |
6247 | if (PyErr_Occurred()) SWIG_fail; | |
6248 | } | |
6249 | Py_INCREF(Py_None); resultobj = Py_None; | |
6250 | { | |
6251 | if (temp2) | |
6252 | delete arg2; | |
6253 | } | |
6254 | return resultobj; | |
6255 | fail: | |
6256 | { | |
6257 | if (temp2) | |
6258 | delete arg2; | |
6259 | } | |
6260 | return NULL; | |
6261 | } | |
6262 | ||
6263 | ||
c370783e | 6264 | static PyObject *_wrap_PyShape_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6265 | PyObject *resultobj; |
6266 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6267 | int arg2 = (int) 0 ; | |
6268 | wxString result; | |
6269 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6270 | PyObject * obj1 = 0 ; |
44127b65 RD |
6271 | char *kwnames[] = { |
6272 | (char *) "self",(char *) "regionId", NULL | |
6273 | }; | |
6274 | ||
8edf1c75 | 6275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_GetTextColour",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 6278 | if (obj1) { |
c370783e | 6279 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6280 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6281 | } |
44127b65 RD |
6282 | { |
6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6284 | result = (arg1)->GetTextColour(arg2); | |
6285 | ||
6286 | wxPyEndAllowThreads(__tstate); | |
6287 | if (PyErr_Occurred()) SWIG_fail; | |
6288 | } | |
6289 | { | |
6290 | #if wxUSE_UNICODE | |
6291 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6292 | #else | |
6293 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6294 | #endif | |
6295 | } | |
6296 | return resultobj; | |
6297 | fail: | |
6298 | return NULL; | |
6299 | } | |
6300 | ||
6301 | ||
c370783e | 6302 | static PyObject *_wrap_PyShape_GetNumberOfTextRegions(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6303 | PyObject *resultobj; |
6304 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6305 | int result; | |
6306 | PyObject * obj0 = 0 ; | |
6307 | char *kwnames[] = { | |
6308 | (char *) "self", NULL | |
6309 | }; | |
6310 | ||
6311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetNumberOfTextRegions",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6314 | { |
6315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6316 | result = (int)(arg1)->GetNumberOfTextRegions(); | |
6317 | ||
6318 | wxPyEndAllowThreads(__tstate); | |
6319 | if (PyErr_Occurred()) SWIG_fail; | |
6320 | } | |
c370783e | 6321 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
6322 | return resultobj; |
6323 | fail: | |
6324 | return NULL; | |
6325 | } | |
6326 | ||
6327 | ||
c370783e | 6328 | static PyObject *_wrap_PyShape_SetRegionName(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6329 | PyObject *resultobj; |
6330 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6331 | wxString *arg2 = 0 ; | |
6332 | int arg3 = (int) 0 ; | |
6333 | bool temp2 = False ; | |
6334 | PyObject * obj0 = 0 ; | |
6335 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6336 | PyObject * obj2 = 0 ; |
44127b65 RD |
6337 | char *kwnames[] = { |
6338 | (char *) "self",(char *) "name",(char *) "regionId", NULL | |
6339 | }; | |
6340 | ||
8edf1c75 | 6341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_SetRegionName",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6344 | { |
6345 | arg2 = wxString_in_helper(obj1); | |
6346 | if (arg2 == NULL) SWIG_fail; | |
6347 | temp2 = True; | |
6348 | } | |
8edf1c75 | 6349 | if (obj2) { |
c370783e | 6350 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6351 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6352 | } |
44127b65 RD |
6353 | { |
6354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6355 | (arg1)->SetRegionName((wxString const &)*arg2,arg3); | |
6356 | ||
6357 | wxPyEndAllowThreads(__tstate); | |
6358 | if (PyErr_Occurred()) SWIG_fail; | |
6359 | } | |
6360 | Py_INCREF(Py_None); resultobj = Py_None; | |
6361 | { | |
6362 | if (temp2) | |
6363 | delete arg2; | |
6364 | } | |
6365 | return resultobj; | |
6366 | fail: | |
6367 | { | |
6368 | if (temp2) | |
6369 | delete arg2; | |
6370 | } | |
6371 | return NULL; | |
6372 | } | |
6373 | ||
6374 | ||
c370783e | 6375 | static PyObject *_wrap_PyShape_GetRegionName(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6376 | PyObject *resultobj; |
6377 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6378 | int arg2 ; | |
6379 | wxString result; | |
6380 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6381 | PyObject * obj1 = 0 ; |
44127b65 RD |
6382 | char *kwnames[] = { |
6383 | (char *) "self",(char *) "regionId", NULL | |
6384 | }; | |
6385 | ||
8edf1c75 | 6386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetRegionName",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6389 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6390 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
6391 | { |
6392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6393 | result = (arg1)->GetRegionName(arg2); | |
6394 | ||
6395 | wxPyEndAllowThreads(__tstate); | |
6396 | if (PyErr_Occurred()) SWIG_fail; | |
6397 | } | |
6398 | { | |
6399 | #if wxUSE_UNICODE | |
6400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6401 | #else | |
6402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6403 | #endif | |
6404 | } | |
6405 | return resultobj; | |
6406 | fail: | |
6407 | return NULL; | |
6408 | } | |
6409 | ||
6410 | ||
c370783e | 6411 | static PyObject *_wrap_PyShape_GetRegionId(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6412 | PyObject *resultobj; |
6413 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6414 | wxString *arg2 = 0 ; | |
6415 | int result; | |
6416 | bool temp2 = False ; | |
6417 | PyObject * obj0 = 0 ; | |
6418 | PyObject * obj1 = 0 ; | |
6419 | char *kwnames[] = { | |
6420 | (char *) "self",(char *) "name", NULL | |
6421 | }; | |
6422 | ||
6423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetRegionId",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6426 | { |
6427 | arg2 = wxString_in_helper(obj1); | |
6428 | if (arg2 == NULL) SWIG_fail; | |
6429 | temp2 = True; | |
6430 | } | |
6431 | { | |
6432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6433 | result = (int)(arg1)->GetRegionId((wxString const &)*arg2); | |
6434 | ||
6435 | wxPyEndAllowThreads(__tstate); | |
6436 | if (PyErr_Occurred()) SWIG_fail; | |
6437 | } | |
c370783e | 6438 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
6439 | { |
6440 | if (temp2) | |
6441 | delete arg2; | |
6442 | } | |
6443 | return resultobj; | |
6444 | fail: | |
6445 | { | |
6446 | if (temp2) | |
6447 | delete arg2; | |
6448 | } | |
6449 | return NULL; | |
6450 | } | |
6451 | ||
6452 | ||
c370783e | 6453 | static PyObject *_wrap_PyShape_NameRegions(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6454 | PyObject *resultobj; |
6455 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
41f1cec7 | 6456 | wxString const &arg2_defvalue = wxPyEmptyString ; |
44127b65 RD |
6457 | wxString *arg2 = (wxString *) &arg2_defvalue ; |
6458 | bool temp2 = False ; | |
6459 | PyObject * obj0 = 0 ; | |
6460 | PyObject * obj1 = 0 ; | |
6461 | char *kwnames[] = { | |
6462 | (char *) "self",(char *) "parentName", NULL | |
6463 | }; | |
6464 | ||
6465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_NameRegions",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6468 | if (obj1) { |
6469 | { | |
6470 | arg2 = wxString_in_helper(obj1); | |
6471 | if (arg2 == NULL) SWIG_fail; | |
6472 | temp2 = True; | |
6473 | } | |
6474 | } | |
6475 | { | |
6476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6477 | (arg1)->NameRegions((wxString const &)*arg2); | |
6478 | ||
6479 | wxPyEndAllowThreads(__tstate); | |
6480 | if (PyErr_Occurred()) SWIG_fail; | |
6481 | } | |
6482 | Py_INCREF(Py_None); resultobj = Py_None; | |
6483 | { | |
6484 | if (temp2) | |
6485 | delete arg2; | |
6486 | } | |
6487 | return resultobj; | |
6488 | fail: | |
6489 | { | |
6490 | if (temp2) | |
6491 | delete arg2; | |
6492 | } | |
6493 | return NULL; | |
6494 | } | |
6495 | ||
6496 | ||
c370783e | 6497 | static PyObject *_wrap_PyShape_GetRegions(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6498 | PyObject *resultobj; |
6499 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6500 | PyObject *result; | |
6501 | PyObject * obj0 = 0 ; | |
6502 | char *kwnames[] = { | |
6503 | (char *) "self", NULL | |
6504 | }; | |
6505 | ||
6506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetRegions",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6509 | { |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6511 | result = (PyObject *)wxPyShape_GetRegions(arg1); | |
6512 | ||
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | resultobj = result; | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
c370783e | 6523 | static PyObject *_wrap_PyShape_AddRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6524 | PyObject *resultobj; |
6525 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6526 | wxShapeRegion *arg2 = (wxShapeRegion *) 0 ; | |
6527 | PyObject * obj0 = 0 ; | |
6528 | PyObject * obj1 = 0 ; | |
6529 | char *kwnames[] = { | |
6530 | (char *) "self",(char *) "region", NULL | |
6531 | }; | |
6532 | ||
6533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_AddRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6536 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxShapeRegion, | |
6537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6538 | { |
6539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6540 | (arg1)->AddRegion(arg2); | |
6541 | ||
6542 | wxPyEndAllowThreads(__tstate); | |
6543 | if (PyErr_Occurred()) SWIG_fail; | |
6544 | } | |
6545 | Py_INCREF(Py_None); resultobj = Py_None; | |
6546 | return resultobj; | |
6547 | fail: | |
6548 | return NULL; | |
6549 | } | |
6550 | ||
6551 | ||
c370783e | 6552 | static PyObject *_wrap_PyShape_ClearRegions(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6553 | PyObject *resultobj; |
6554 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6555 | PyObject * obj0 = 0 ; | |
6556 | char *kwnames[] = { | |
6557 | (char *) "self", NULL | |
6558 | }; | |
6559 | ||
6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ClearRegions",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6563 | { |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | (arg1)->ClearRegions(); | |
6566 | ||
6567 | wxPyEndAllowThreads(__tstate); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
6570 | Py_INCREF(Py_None); resultobj = Py_None; | |
6571 | return resultobj; | |
6572 | fail: | |
6573 | return NULL; | |
6574 | } | |
6575 | ||
6576 | ||
c370783e | 6577 | static PyObject *_wrap_PyShape_AssignNewIds(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6578 | PyObject *resultobj; |
6579 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6580 | PyObject * obj0 = 0 ; | |
6581 | char *kwnames[] = { | |
6582 | (char *) "self", NULL | |
6583 | }; | |
6584 | ||
6585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_AssignNewIds",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6588 | { |
6589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6590 | (arg1)->AssignNewIds(); | |
6591 | ||
6592 | wxPyEndAllowThreads(__tstate); | |
6593 | if (PyErr_Occurred()) SWIG_fail; | |
6594 | } | |
6595 | Py_INCREF(Py_None); resultobj = Py_None; | |
6596 | return resultobj; | |
6597 | fail: | |
6598 | return NULL; | |
6599 | } | |
6600 | ||
6601 | ||
c370783e | 6602 | static PyObject *_wrap_PyShape_FindRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6603 | PyObject *resultobj; |
6604 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6605 | wxString *arg2 = 0 ; | |
6606 | int *arg3 = (int *) 0 ; | |
6607 | wxPyShape *result; | |
6608 | bool temp2 = False ; | |
6609 | int temp3 ; | |
c370783e | 6610 | int res3 = 0 ; |
44127b65 RD |
6611 | PyObject * obj0 = 0 ; |
6612 | PyObject * obj1 = 0 ; | |
6613 | char *kwnames[] = { | |
6614 | (char *) "self",(char *) "regionName", NULL | |
6615 | }; | |
6616 | ||
c370783e | 6617 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
44127b65 | 6618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_FindRegion",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6621 | { |
6622 | arg2 = wxString_in_helper(obj1); | |
6623 | if (arg2 == NULL) SWIG_fail; | |
6624 | temp2 = True; | |
6625 | } | |
6626 | { | |
6627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6628 | result = (wxPyShape *)(arg1)->FindRegion((wxString const &)*arg2,arg3); | |
6629 | ||
6630 | wxPyEndAllowThreads(__tstate); | |
6631 | if (PyErr_Occurred()) SWIG_fail; | |
6632 | } | |
6633 | { | |
412d302d | 6634 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 | 6635 | } |
c370783e RD |
6636 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
6637 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
44127b65 RD |
6638 | { |
6639 | if (temp2) | |
6640 | delete arg2; | |
6641 | } | |
6642 | return resultobj; | |
6643 | fail: | |
6644 | { | |
6645 | if (temp2) | |
6646 | delete arg2; | |
6647 | } | |
6648 | return NULL; | |
6649 | } | |
6650 | ||
6651 | ||
c370783e | 6652 | static PyObject *_wrap_PyShape_FindRegionNames(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6653 | PyObject *resultobj; |
6654 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6655 | wxStringList *arg2 = 0 ; | |
6656 | PyObject * obj0 = 0 ; | |
6657 | PyObject * obj1 = 0 ; | |
6658 | char *kwnames[] = { | |
6659 | (char *) "self",(char *) "list", NULL | |
6660 | }; | |
6661 | ||
6662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_FindRegionNames",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStringList, | |
6666 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6667 | SWIG_fail; | |
44127b65 | 6668 | if (arg2 == NULL) { |
2f4c0a16 RD |
6669 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6670 | SWIG_fail; | |
44127b65 RD |
6671 | } |
6672 | { | |
6673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6674 | (arg1)->FindRegionNames(*arg2); | |
6675 | ||
6676 | wxPyEndAllowThreads(__tstate); | |
6677 | if (PyErr_Occurred()) SWIG_fail; | |
6678 | } | |
6679 | Py_INCREF(Py_None); resultobj = Py_None; | |
6680 | return resultobj; | |
6681 | fail: | |
6682 | return NULL; | |
6683 | } | |
6684 | ||
6685 | ||
c370783e | 6686 | static PyObject *_wrap_PyShape_ClearText(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6687 | PyObject *resultobj; |
6688 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6689 | int arg2 = (int) 0 ; | |
6690 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6691 | PyObject * obj1 = 0 ; |
44127b65 RD |
6692 | char *kwnames[] = { |
6693 | (char *) "self",(char *) "regionId", NULL | |
6694 | }; | |
6695 | ||
8edf1c75 | 6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyShape_ClearText",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 6699 | if (obj1) { |
c370783e | 6700 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6701 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6702 | } |
44127b65 RD |
6703 | { |
6704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6705 | (arg1)->ClearText(arg2); | |
6706 | ||
6707 | wxPyEndAllowThreads(__tstate); | |
6708 | if (PyErr_Occurred()) SWIG_fail; | |
6709 | } | |
6710 | Py_INCREF(Py_None); resultobj = Py_None; | |
6711 | return resultobj; | |
6712 | fail: | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
c370783e | 6717 | static PyObject *_wrap_PyShape_RemoveLine(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6718 | PyObject *resultobj; |
6719 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6720 | wxPyLineShape *arg2 = (wxPyLineShape *) 0 ; | |
6721 | PyObject * obj0 = 0 ; | |
6722 | PyObject * obj1 = 0 ; | |
6723 | char *kwnames[] = { | |
6724 | (char *) "self",(char *) "line", NULL | |
6725 | }; | |
6726 | ||
6727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_RemoveLine",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6730 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyLineShape, | |
6731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6732 | { |
6733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6734 | (arg1)->RemoveLine(arg2); | |
6735 | ||
6736 | wxPyEndAllowThreads(__tstate); | |
6737 | if (PyErr_Occurred()) SWIG_fail; | |
6738 | } | |
6739 | Py_INCREF(Py_None); resultobj = Py_None; | |
6740 | return resultobj; | |
6741 | fail: | |
6742 | return NULL; | |
6743 | } | |
6744 | ||
6745 | ||
c370783e | 6746 | static PyObject *_wrap_PyShape_GetAttachmentPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6747 | PyObject *resultobj; |
6748 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6749 | int arg2 ; | |
6750 | double *arg3 = (double *) 0 ; | |
6751 | double *arg4 = (double *) 0 ; | |
6752 | int arg5 = (int) 0 ; | |
6753 | int arg6 = (int) 1 ; | |
6754 | wxPyLineShape *arg7 = (wxPyLineShape *) NULL ; | |
6755 | bool result; | |
6756 | double temp3 ; | |
c370783e | 6757 | int res3 = 0 ; |
44127b65 | 6758 | double temp4 ; |
c370783e | 6759 | int res4 = 0 ; |
44127b65 | 6760 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6761 | PyObject * obj1 = 0 ; |
6762 | PyObject * obj2 = 0 ; | |
6763 | PyObject * obj3 = 0 ; | |
44127b65 RD |
6764 | PyObject * obj4 = 0 ; |
6765 | char *kwnames[] = { | |
6766 | (char *) "self",(char *) "attachment",(char *) "nth",(char *) "no_arcs",(char *) "line", NULL | |
6767 | }; | |
6768 | ||
c370783e RD |
6769 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
6770 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
8edf1c75 | 6771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PyShape_GetAttachmentPosition",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
6772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6774 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6775 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6776 | if (obj2) { |
c370783e | 6777 | arg5 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6778 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
6779 | } |
6780 | if (obj3) { | |
c370783e | 6781 | arg6 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 6782 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6783 | } |
44127b65 | 6784 | if (obj4) { |
2f4c0a16 RD |
6785 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg7),SWIGTYPE_p_wxPyLineShape, |
6786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6787 | } |
6788 | { | |
6789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6790 | result = (bool)(arg1)->GetAttachmentPosition(arg2,arg3,arg4,arg5,arg6,arg7); | |
6791 | ||
6792 | wxPyEndAllowThreads(__tstate); | |
6793 | if (PyErr_Occurred()) SWIG_fail; | |
6794 | } | |
fbc46b20 RD |
6795 | { |
6796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6797 | } | |
c370783e RD |
6798 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
6799 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
6800 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
6801 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
6802 | return resultobj; |
6803 | fail: | |
6804 | return NULL; | |
6805 | } | |
6806 | ||
6807 | ||
c370783e | 6808 | static PyObject *_wrap_PyShape_GetNumberOfAttachments(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6809 | PyObject *resultobj; |
6810 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6811 | int result; | |
6812 | PyObject * obj0 = 0 ; | |
6813 | char *kwnames[] = { | |
6814 | (char *) "self", NULL | |
6815 | }; | |
6816 | ||
6817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetNumberOfAttachments",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6820 | { |
6821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6822 | result = (int)(arg1)->GetNumberOfAttachments(); | |
6823 | ||
6824 | wxPyEndAllowThreads(__tstate); | |
6825 | if (PyErr_Occurred()) SWIG_fail; | |
6826 | } | |
c370783e | 6827 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
6828 | return resultobj; |
6829 | fail: | |
6830 | return NULL; | |
6831 | } | |
6832 | ||
6833 | ||
c370783e | 6834 | static PyObject *_wrap_PyShape_AttachmentIsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6835 | PyObject *resultobj; |
6836 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6837 | int arg2 ; | |
6838 | bool result; | |
6839 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6840 | PyObject * obj1 = 0 ; |
44127b65 RD |
6841 | char *kwnames[] = { |
6842 | (char *) "self",(char *) "attachment", NULL | |
6843 | }; | |
6844 | ||
8edf1c75 | 6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_AttachmentIsValid",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6848 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6849 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
6850 | { |
6851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6852 | result = (bool)(arg1)->AttachmentIsValid(arg2); | |
6853 | ||
6854 | wxPyEndAllowThreads(__tstate); | |
6855 | if (PyErr_Occurred()) SWIG_fail; | |
6856 | } | |
fbc46b20 RD |
6857 | { |
6858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6859 | } | |
44127b65 RD |
6860 | return resultobj; |
6861 | fail: | |
6862 | return NULL; | |
6863 | } | |
6864 | ||
6865 | ||
c370783e | 6866 | static PyObject *_wrap_PyShape_GetAttachments(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
6867 | PyObject *resultobj; |
6868 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6869 | PyObject *result; | |
6870 | PyObject * obj0 = 0 ; | |
6871 | char *kwnames[] = { | |
6872 | (char *) "self", NULL | |
6873 | }; | |
6874 | ||
6875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetAttachments",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
6878 | { |
6879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6880 | result = (PyObject *)wxPyShape_GetAttachments(arg1); | |
6881 | ||
6882 | wxPyEndAllowThreads(__tstate); | |
6883 | if (PyErr_Occurred()) SWIG_fail; | |
6884 | } | |
6885 | resultobj = result; | |
6886 | return resultobj; | |
6887 | fail: | |
6888 | return NULL; | |
6889 | } | |
6890 | ||
6891 | ||
c370783e | 6892 | static PyObject *_wrap_PyShape_GetAttachmentPositionEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6893 | PyObject *resultobj; |
6894 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6895 | int arg2 ; | |
6896 | double *arg3 = (double *) 0 ; | |
6897 | double *arg4 = (double *) 0 ; | |
6898 | int arg5 = (int) 0 ; | |
6899 | int arg6 = (int) 1 ; | |
6900 | wxPyLineShape *arg7 = (wxPyLineShape *) NULL ; | |
6901 | bool result; | |
6902 | double temp3 ; | |
c370783e | 6903 | int res3 = 0 ; |
44127b65 | 6904 | double temp4 ; |
c370783e | 6905 | int res4 = 0 ; |
44127b65 | 6906 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6907 | PyObject * obj1 = 0 ; |
6908 | PyObject * obj2 = 0 ; | |
6909 | PyObject * obj3 = 0 ; | |
44127b65 RD |
6910 | PyObject * obj4 = 0 ; |
6911 | char *kwnames[] = { | |
6912 | (char *) "self",(char *) "attachment",(char *) "nth",(char *) "no_arcs",(char *) "line", NULL | |
6913 | }; | |
6914 | ||
c370783e RD |
6915 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
6916 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
8edf1c75 | 6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PyShape_GetAttachmentPositionEdge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
6918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6920 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6921 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6922 | if (obj2) { |
c370783e | 6923 | arg5 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6924 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
6925 | } |
6926 | if (obj3) { | |
c370783e | 6927 | arg6 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 6928 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 6929 | } |
44127b65 | 6930 | if (obj4) { |
2f4c0a16 RD |
6931 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg7),SWIGTYPE_p_wxPyLineShape, |
6932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6933 | } |
6934 | { | |
6935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6936 | result = (bool)(arg1)->GetAttachmentPositionEdge(arg2,arg3,arg4,arg5,arg6,arg7); | |
6937 | ||
6938 | wxPyEndAllowThreads(__tstate); | |
6939 | if (PyErr_Occurred()) SWIG_fail; | |
6940 | } | |
fbc46b20 RD |
6941 | { |
6942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6943 | } | |
c370783e RD |
6944 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
6945 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
6946 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
6947 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
6948 | return resultobj; |
6949 | fail: | |
6950 | return NULL; | |
6951 | } | |
6952 | ||
6953 | ||
c370783e | 6954 | static PyObject *_wrap_PyShape_CalcSimpleAttachment(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
6955 | PyObject *resultobj; |
6956 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
6957 | wxRealPoint *arg2 = 0 ; | |
6958 | wxRealPoint *arg3 = 0 ; | |
6959 | int arg4 ; | |
6960 | int arg5 ; | |
6961 | wxPyLineShape *arg6 = (wxPyLineShape *) 0 ; | |
6962 | wxRealPoint result; | |
6963 | wxRealPoint temp2 ; | |
6964 | wxRealPoint temp3 ; | |
6965 | PyObject * obj0 = 0 ; | |
6966 | PyObject * obj1 = 0 ; | |
6967 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
6968 | PyObject * obj3 = 0 ; |
6969 | PyObject * obj4 = 0 ; | |
44127b65 RD |
6970 | PyObject * obj5 = 0 ; |
6971 | char *kwnames[] = { | |
6972 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "nth",(char *) "noArcs",(char *) "line", NULL | |
6973 | }; | |
6974 | ||
8edf1c75 | 6975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyShape_CalcSimpleAttachment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
6976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
6977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6978 | { |
6979 | arg2 = &temp2; | |
6980 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
6981 | } | |
6982 | { | |
6983 | arg3 = &temp3; | |
6984 | if ( ! wxRealPoint_helper(obj2, &arg3)) SWIG_fail; | |
6985 | } | |
c370783e | 6986 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 6987 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6988 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 RD |
6989 | if (PyErr_Occurred()) SWIG_fail; |
6990 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyLineShape, | |
6991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
6992 | { |
6993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6994 | result = (arg1)->CalcSimpleAttachment((wxRealPoint const &)*arg2,(wxRealPoint const &)*arg3,arg4,arg5,arg6); | |
6995 | ||
6996 | wxPyEndAllowThreads(__tstate); | |
6997 | if (PyErr_Occurred()) SWIG_fail; | |
6998 | } | |
6999 | { | |
7000 | wxRealPoint * resultptr; | |
7001 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 7002 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
44127b65 RD |
7003 | } |
7004 | return resultobj; | |
7005 | fail: | |
7006 | return NULL; | |
7007 | } | |
7008 | ||
7009 | ||
c370783e | 7010 | static PyObject *_wrap_PyShape_AttachmentSortTest(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7011 | PyObject *resultobj; |
7012 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7013 | int arg2 ; | |
7014 | wxRealPoint *arg3 = 0 ; | |
7015 | wxRealPoint *arg4 = 0 ; | |
7016 | bool result; | |
7017 | wxRealPoint temp3 ; | |
7018 | wxRealPoint temp4 ; | |
7019 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7020 | PyObject * obj1 = 0 ; |
44127b65 RD |
7021 | PyObject * obj2 = 0 ; |
7022 | PyObject * obj3 = 0 ; | |
7023 | char *kwnames[] = { | |
7024 | (char *) "self",(char *) "attachmentPoint",(char *) "pt1",(char *) "pt2", NULL | |
7025 | }; | |
7026 | ||
8edf1c75 | 7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyShape_AttachmentSortTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
7028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7030 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7031 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7032 | { |
7033 | arg3 = &temp3; | |
7034 | if ( ! wxRealPoint_helper(obj2, &arg3)) SWIG_fail; | |
7035 | } | |
7036 | { | |
7037 | arg4 = &temp4; | |
7038 | if ( ! wxRealPoint_helper(obj3, &arg4)) SWIG_fail; | |
7039 | } | |
7040 | { | |
7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7042 | result = (bool)(arg1)->AttachmentSortTest(arg2,(wxRealPoint const &)*arg3,(wxRealPoint const &)*arg4); | |
7043 | ||
7044 | wxPyEndAllowThreads(__tstate); | |
7045 | if (PyErr_Occurred()) SWIG_fail; | |
7046 | } | |
fbc46b20 RD |
7047 | { |
7048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7049 | } | |
44127b65 RD |
7050 | return resultobj; |
7051 | fail: | |
7052 | return NULL; | |
7053 | } | |
7054 | ||
7055 | ||
c370783e | 7056 | static PyObject *_wrap_PyShape_EraseLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7057 | PyObject *resultobj; |
7058 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7059 | wxDC *arg2 = 0 ; | |
7060 | int arg3 = (int) -1 ; | |
7061 | bool arg4 = (bool) False ; | |
7062 | PyObject * obj0 = 0 ; | |
7063 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7064 | PyObject * obj2 = 0 ; |
44127b65 RD |
7065 | PyObject * obj3 = 0 ; |
7066 | char *kwnames[] = { | |
7067 | (char *) "self",(char *) "dc",(char *) "attachment",(char *) "recurse", NULL | |
7068 | }; | |
7069 | ||
8edf1c75 | 7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PyShape_EraseLinks",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
7071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
7074 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7075 | SWIG_fail; | |
44127b65 | 7076 | if (arg2 == NULL) { |
2f4c0a16 RD |
7077 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7078 | SWIG_fail; | |
44127b65 | 7079 | } |
8edf1c75 | 7080 | if (obj2) { |
c370783e | 7081 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 7082 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 7083 | } |
44127b65 | 7084 | if (obj3) { |
c370783e | 7085 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 7086 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7087 | } |
7088 | { | |
7089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7090 | (arg1)->EraseLinks(*arg2,arg3,arg4); | |
7091 | ||
7092 | wxPyEndAllowThreads(__tstate); | |
7093 | if (PyErr_Occurred()) SWIG_fail; | |
7094 | } | |
7095 | Py_INCREF(Py_None); resultobj = Py_None; | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | return NULL; | |
7099 | } | |
7100 | ||
7101 | ||
c370783e | 7102 | static PyObject *_wrap_PyShape_DrawLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7103 | PyObject *resultobj; |
7104 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7105 | wxDC *arg2 = 0 ; | |
7106 | int arg3 = (int) -1 ; | |
7107 | bool arg4 = (bool) False ; | |
7108 | PyObject * obj0 = 0 ; | |
7109 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7110 | PyObject * obj2 = 0 ; |
44127b65 RD |
7111 | PyObject * obj3 = 0 ; |
7112 | char *kwnames[] = { | |
7113 | (char *) "self",(char *) "dc",(char *) "attachment",(char *) "recurse", NULL | |
7114 | }; | |
7115 | ||
8edf1c75 | 7116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PyShape_DrawLinks",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
7117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7119 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
7120 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7121 | SWIG_fail; | |
44127b65 | 7122 | if (arg2 == NULL) { |
2f4c0a16 RD |
7123 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7124 | SWIG_fail; | |
44127b65 | 7125 | } |
8edf1c75 | 7126 | if (obj2) { |
c370783e | 7127 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 7128 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 7129 | } |
44127b65 | 7130 | if (obj3) { |
c370783e | 7131 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 7132 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7133 | } |
7134 | { | |
7135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7136 | (arg1)->DrawLinks(*arg2,arg3,arg4); | |
7137 | ||
7138 | wxPyEndAllowThreads(__tstate); | |
7139 | if (PyErr_Occurred()) SWIG_fail; | |
7140 | } | |
7141 | Py_INCREF(Py_None); resultobj = Py_None; | |
7142 | return resultobj; | |
7143 | fail: | |
7144 | return NULL; | |
7145 | } | |
7146 | ||
7147 | ||
c370783e | 7148 | static PyObject *_wrap_PyShape_MoveLineToNewAttachment(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7149 | PyObject *resultobj; |
7150 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7151 | wxDC *arg2 = 0 ; | |
7152 | wxPyLineShape *arg3 = (wxPyLineShape *) 0 ; | |
7153 | double arg4 ; | |
7154 | double arg5 ; | |
7155 | bool result; | |
7156 | PyObject * obj0 = 0 ; | |
7157 | PyObject * obj1 = 0 ; | |
7158 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
7159 | PyObject * obj3 = 0 ; |
7160 | PyObject * obj4 = 0 ; | |
44127b65 RD |
7161 | char *kwnames[] = { |
7162 | (char *) "self",(char *) "dc",(char *) "to_move",(char *) "x",(char *) "y", NULL | |
7163 | }; | |
7164 | ||
8edf1c75 | 7165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyShape_MoveLineToNewAttachment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
7166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
7169 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7170 | SWIG_fail; | |
44127b65 | 7171 | if (arg2 == NULL) { |
2f4c0a16 RD |
7172 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7173 | SWIG_fail; | |
8edf1c75 | 7174 | } |
2f4c0a16 RD |
7175 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyLineShape, |
7176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7177 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 7178 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7179 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 7180 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7181 | { |
7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7183 | result = (bool)(arg1)->MoveLineToNewAttachment(*arg2,arg3,arg4,arg5); | |
7184 | ||
7185 | wxPyEndAllowThreads(__tstate); | |
7186 | if (PyErr_Occurred()) SWIG_fail; | |
7187 | } | |
fbc46b20 RD |
7188 | { |
7189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7190 | } | |
44127b65 RD |
7191 | return resultobj; |
7192 | fail: | |
7193 | return NULL; | |
7194 | } | |
7195 | ||
7196 | ||
c370783e | 7197 | static PyObject *_wrap_PyShape_ApplyAttachmentOrdering(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7198 | PyObject *resultobj; |
7199 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7200 | PyObject *arg2 = (PyObject *) 0 ; | |
7201 | PyObject * obj0 = 0 ; | |
7202 | PyObject * obj1 = 0 ; | |
7203 | char *kwnames[] = { | |
7204 | (char *) "self",(char *) "linesToSort", NULL | |
7205 | }; | |
7206 | ||
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_ApplyAttachmentOrdering",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
7210 | arg2 = obj1; |
7211 | { | |
7212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7213 | wxPyShape_ApplyAttachmentOrdering(arg1,arg2); | |
7214 | ||
7215 | wxPyEndAllowThreads(__tstate); | |
7216 | if (PyErr_Occurred()) SWIG_fail; | |
7217 | } | |
7218 | Py_INCREF(Py_None); resultobj = Py_None; | |
7219 | return resultobj; | |
7220 | fail: | |
7221 | return NULL; | |
7222 | } | |
7223 | ||
7224 | ||
c370783e | 7225 | static PyObject *_wrap_PyShape_GetBranchingAttachmentRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7226 | PyObject *resultobj; |
7227 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7228 | int arg2 ; | |
7229 | wxRealPoint result; | |
7230 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7231 | PyObject * obj1 = 0 ; |
44127b65 RD |
7232 | char *kwnames[] = { |
7233 | (char *) "self",(char *) "attachment", NULL | |
7234 | }; | |
7235 | ||
8edf1c75 | 7236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetBranchingAttachmentRoot",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7239 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7240 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7241 | { |
7242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7243 | result = (arg1)->GetBranchingAttachmentRoot(arg2); | |
7244 | ||
7245 | wxPyEndAllowThreads(__tstate); | |
7246 | if (PyErr_Occurred()) SWIG_fail; | |
7247 | } | |
7248 | { | |
7249 | wxRealPoint * resultptr; | |
7250 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 7251 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
44127b65 RD |
7252 | } |
7253 | return resultobj; | |
7254 | fail: | |
7255 | return NULL; | |
7256 | } | |
7257 | ||
7258 | ||
c370783e | 7259 | static PyObject *_wrap_PyShape_GetBranchingAttachmentInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7260 | PyObject *resultobj; |
7261 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7262 | int arg2 ; | |
7263 | wxRealPoint *arg3 = 0 ; | |
7264 | wxRealPoint *arg4 = 0 ; | |
7265 | wxRealPoint *arg5 = 0 ; | |
7266 | wxRealPoint *arg6 = 0 ; | |
7267 | bool result; | |
7268 | wxRealPoint temp3 ; | |
7269 | wxRealPoint temp4 ; | |
7270 | wxRealPoint temp5 ; | |
7271 | wxRealPoint temp6 ; | |
7272 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7273 | PyObject * obj1 = 0 ; |
44127b65 RD |
7274 | PyObject * obj2 = 0 ; |
7275 | PyObject * obj3 = 0 ; | |
7276 | PyObject * obj4 = 0 ; | |
7277 | PyObject * obj5 = 0 ; | |
7278 | char *kwnames[] = { | |
7279 | (char *) "self",(char *) "attachment",(char *) "root",(char *) "neck",(char *) "shoulder1",(char *) "shoulder2", NULL | |
7280 | }; | |
7281 | ||
8edf1c75 | 7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyShape_GetBranchingAttachmentInfo",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
7283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7285 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7286 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7287 | { |
7288 | arg3 = &temp3; | |
7289 | if ( ! wxRealPoint_helper(obj2, &arg3)) SWIG_fail; | |
7290 | } | |
7291 | { | |
7292 | arg4 = &temp4; | |
7293 | if ( ! wxRealPoint_helper(obj3, &arg4)) SWIG_fail; | |
7294 | } | |
7295 | { | |
7296 | arg5 = &temp5; | |
7297 | if ( ! wxRealPoint_helper(obj4, &arg5)) SWIG_fail; | |
7298 | } | |
7299 | { | |
7300 | arg6 = &temp6; | |
7301 | if ( ! wxRealPoint_helper(obj5, &arg6)) SWIG_fail; | |
7302 | } | |
7303 | { | |
7304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7305 | result = (bool)(arg1)->GetBranchingAttachmentInfo(arg2,*arg3,*arg4,*arg5,*arg6); | |
7306 | ||
7307 | wxPyEndAllowThreads(__tstate); | |
7308 | if (PyErr_Occurred()) SWIG_fail; | |
7309 | } | |
fbc46b20 RD |
7310 | { |
7311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7312 | } | |
44127b65 RD |
7313 | return resultobj; |
7314 | fail: | |
7315 | return NULL; | |
7316 | } | |
7317 | ||
7318 | ||
c370783e | 7319 | static PyObject *_wrap_PyShape_GetBranchingAttachmentPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7320 | PyObject *resultobj; |
7321 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7322 | int arg2 ; | |
7323 | int arg3 ; | |
7324 | wxRealPoint *arg4 = 0 ; | |
7325 | wxRealPoint *arg5 = 0 ; | |
7326 | bool result; | |
7327 | wxRealPoint temp4 ; | |
7328 | wxRealPoint temp5 ; | |
7329 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7330 | PyObject * obj1 = 0 ; |
7331 | PyObject * obj2 = 0 ; | |
44127b65 RD |
7332 | PyObject * obj3 = 0 ; |
7333 | PyObject * obj4 = 0 ; | |
7334 | char *kwnames[] = { | |
7335 | (char *) "self",(char *) "attachment",(char *) "n",(char *) "attachmentPoint",(char *) "stemPoint", NULL | |
7336 | }; | |
7337 | ||
8edf1c75 | 7338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyShape_GetBranchingAttachmentPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
7339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7341 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7342 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7343 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 7344 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7345 | { |
7346 | arg4 = &temp4; | |
7347 | if ( ! wxRealPoint_helper(obj3, &arg4)) SWIG_fail; | |
7348 | } | |
7349 | { | |
7350 | arg5 = &temp5; | |
7351 | if ( ! wxRealPoint_helper(obj4, &arg5)) SWIG_fail; | |
7352 | } | |
7353 | { | |
7354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7355 | result = (bool)(arg1)->GetBranchingAttachmentPoint(arg2,arg3,*arg4,*arg5); | |
7356 | ||
7357 | wxPyEndAllowThreads(__tstate); | |
7358 | if (PyErr_Occurred()) SWIG_fail; | |
7359 | } | |
fbc46b20 RD |
7360 | { |
7361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7362 | } | |
44127b65 RD |
7363 | return resultobj; |
7364 | fail: | |
7365 | return NULL; | |
7366 | } | |
7367 | ||
7368 | ||
c370783e | 7369 | static PyObject *_wrap_PyShape_GetAttachmentLineCount(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7370 | PyObject *resultobj; |
7371 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7372 | int arg2 ; | |
7373 | int result; | |
7374 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7375 | PyObject * obj1 = 0 ; |
44127b65 RD |
7376 | char *kwnames[] = { |
7377 | (char *) "self",(char *) "attachment", NULL | |
7378 | }; | |
7379 | ||
8edf1c75 | 7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_GetAttachmentLineCount",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7383 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7384 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7385 | { |
7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7387 | result = (int)(arg1)->GetAttachmentLineCount(arg2); | |
7388 | ||
7389 | wxPyEndAllowThreads(__tstate); | |
7390 | if (PyErr_Occurred()) SWIG_fail; | |
7391 | } | |
c370783e | 7392 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
7393 | return resultobj; |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
c370783e | 7399 | static PyObject *_wrap_PyShape_SetBranchNeckLength(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7400 | PyObject *resultobj; |
7401 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7402 | int arg2 ; | |
7403 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7404 | PyObject * obj1 = 0 ; |
44127b65 RD |
7405 | char *kwnames[] = { |
7406 | (char *) "self",(char *) "len", NULL | |
7407 | }; | |
7408 | ||
8edf1c75 | 7409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBranchNeckLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7412 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7413 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7414 | { |
7415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7416 | (arg1)->SetBranchNeckLength(arg2); | |
7417 | ||
7418 | wxPyEndAllowThreads(__tstate); | |
7419 | if (PyErr_Occurred()) SWIG_fail; | |
7420 | } | |
7421 | Py_INCREF(Py_None); resultobj = Py_None; | |
7422 | return resultobj; | |
7423 | fail: | |
7424 | return NULL; | |
7425 | } | |
7426 | ||
7427 | ||
c370783e | 7428 | static PyObject *_wrap_PyShape_GetBranchNeckLength(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7429 | PyObject *resultobj; |
7430 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7431 | int result; | |
7432 | PyObject * obj0 = 0 ; | |
7433 | char *kwnames[] = { | |
7434 | (char *) "self", NULL | |
7435 | }; | |
7436 | ||
7437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchNeckLength",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
7440 | { |
7441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7442 | result = (int)(arg1)->GetBranchNeckLength(); | |
7443 | ||
7444 | wxPyEndAllowThreads(__tstate); | |
7445 | if (PyErr_Occurred()) SWIG_fail; | |
7446 | } | |
c370783e | 7447 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
7448 | return resultobj; |
7449 | fail: | |
7450 | return NULL; | |
7451 | } | |
7452 | ||
7453 | ||
c370783e | 7454 | static PyObject *_wrap_PyShape_SetBranchStemLength(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7455 | PyObject *resultobj; |
7456 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7457 | int arg2 ; | |
7458 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7459 | PyObject * obj1 = 0 ; |
44127b65 RD |
7460 | char *kwnames[] = { |
7461 | (char *) "self",(char *) "len", NULL | |
7462 | }; | |
7463 | ||
8edf1c75 | 7464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBranchStemLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7467 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7468 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
7469 | { |
7470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 RD |
7471 | (arg1)->SetBranchStemLength(arg2); |
7472 | ||
7473 | wxPyEndAllowThreads(__tstate); | |
7474 | if (PyErr_Occurred()) SWIG_fail; | |
7475 | } | |
7476 | Py_INCREF(Py_None); resultobj = Py_None; | |
7477 | return resultobj; | |
7478 | fail: | |
7479 | return NULL; | |
7480 | } | |
7481 | ||
7482 | ||
c370783e | 7483 | static PyObject *_wrap_PyShape_GetBranchStemLength(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7484 | PyObject *resultobj; |
7485 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7486 | int result; | |
7487 | PyObject * obj0 = 0 ; | |
7488 | char *kwnames[] = { | |
7489 | (char *) "self", NULL | |
7490 | }; | |
7491 | ||
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchStemLength",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
7495 | { |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | result = (int)(arg1)->GetBranchStemLength(); | |
7498 | ||
7499 | wxPyEndAllowThreads(__tstate); | |
7500 | if (PyErr_Occurred()) SWIG_fail; | |
7501 | } | |
c370783e | 7502 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
7503 | return resultobj; |
7504 | fail: | |
7505 | return NULL; | |
7506 | } | |
7507 | ||
7508 | ||
c370783e | 7509 | static PyObject *_wrap_PyShape_SetBranchSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7510 | PyObject *resultobj; |
7511 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7512 | int arg2 ; | |
7513 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7514 | PyObject * obj1 = 0 ; |
44127b65 RD |
7515 | char *kwnames[] = { |
7516 | (char *) "self",(char *) "len", NULL | |
7517 | }; | |
7518 | ||
8edf1c75 | 7519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBranchSpacing",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7522 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7523 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7524 | { |
7525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7526 | (arg1)->SetBranchSpacing(arg2); | |
7527 | ||
7528 | wxPyEndAllowThreads(__tstate); | |
7529 | if (PyErr_Occurred()) SWIG_fail; | |
7530 | } | |
7531 | Py_INCREF(Py_None); resultobj = Py_None; | |
7532 | return resultobj; | |
7533 | fail: | |
7534 | return NULL; | |
7535 | } | |
7536 | ||
7537 | ||
c370783e | 7538 | static PyObject *_wrap_PyShape_GetBranchSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7539 | PyObject *resultobj; |
7540 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7541 | int result; | |
7542 | PyObject * obj0 = 0 ; | |
7543 | char *kwnames[] = { | |
7544 | (char *) "self", NULL | |
7545 | }; | |
7546 | ||
7547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchSpacing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
7550 | { |
7551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7552 | result = (int)(arg1)->GetBranchSpacing(); | |
7553 | ||
7554 | wxPyEndAllowThreads(__tstate); | |
7555 | if (PyErr_Occurred()) SWIG_fail; | |
7556 | } | |
c370783e | 7557 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
7558 | return resultobj; |
7559 | fail: | |
7560 | return NULL; | |
7561 | } | |
7562 | ||
7563 | ||
c370783e | 7564 | static PyObject *_wrap_PyShape_SetBranchStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7565 | PyObject *resultobj; |
7566 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7567 | long arg2 ; | |
7568 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7569 | PyObject * obj1 = 0 ; |
44127b65 RD |
7570 | char *kwnames[] = { |
7571 | (char *) "self",(char *) "style", NULL | |
7572 | }; | |
7573 | ||
8edf1c75 | 7574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetBranchStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7577 | arg2 = (long)SWIG_As_long(obj1); |
2f4c0a16 | 7578 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7579 | { |
7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7581 | (arg1)->SetBranchStyle(arg2); | |
7582 | ||
7583 | wxPyEndAllowThreads(__tstate); | |
7584 | if (PyErr_Occurred()) SWIG_fail; | |
7585 | } | |
7586 | Py_INCREF(Py_None); resultobj = Py_None; | |
7587 | return resultobj; | |
7588 | fail: | |
7589 | return NULL; | |
7590 | } | |
7591 | ||
7592 | ||
c370783e | 7593 | static PyObject *_wrap_PyShape_GetBranchStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7594 | PyObject *resultobj; |
7595 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7596 | long result; | |
7597 | PyObject * obj0 = 0 ; | |
7598 | char *kwnames[] = { | |
7599 | (char *) "self", NULL | |
7600 | }; | |
7601 | ||
7602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBranchStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
7605 | { |
7606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7607 | result = (long)(arg1)->GetBranchStyle(); | |
7608 | ||
7609 | wxPyEndAllowThreads(__tstate); | |
7610 | if (PyErr_Occurred()) SWIG_fail; | |
7611 | } | |
c370783e | 7612 | resultobj = SWIG_From_long((long)result); |
44127b65 RD |
7613 | return resultobj; |
7614 | fail: | |
7615 | return NULL; | |
7616 | } | |
7617 | ||
7618 | ||
c370783e | 7619 | static PyObject *_wrap_PyShape_PhysicalToLogicalAttachment(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7620 | PyObject *resultobj; |
7621 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7622 | int arg2 ; | |
7623 | int result; | |
7624 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7625 | PyObject * obj1 = 0 ; |
44127b65 RD |
7626 | char *kwnames[] = { |
7627 | (char *) "self",(char *) "physicalAttachment", NULL | |
7628 | }; | |
7629 | ||
8edf1c75 | 7630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_PhysicalToLogicalAttachment",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7633 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7634 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7635 | { |
7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7637 | result = (int)(arg1)->PhysicalToLogicalAttachment(arg2); | |
7638 | ||
7639 | wxPyEndAllowThreads(__tstate); | |
7640 | if (PyErr_Occurred()) SWIG_fail; | |
7641 | } | |
c370783e | 7642 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
7643 | return resultobj; |
7644 | fail: | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
c370783e | 7649 | static PyObject *_wrap_PyShape_LogicalToPhysicalAttachment(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7650 | PyObject *resultobj; |
7651 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7652 | int arg2 ; | |
7653 | int result; | |
7654 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7655 | PyObject * obj1 = 0 ; |
44127b65 RD |
7656 | char *kwnames[] = { |
7657 | (char *) "self",(char *) "logicalAttachment", NULL | |
7658 | }; | |
7659 | ||
8edf1c75 | 7660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_LogicalToPhysicalAttachment",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7663 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7664 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7665 | { |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | result = (int)(arg1)->LogicalToPhysicalAttachment(arg2); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
c370783e | 7672 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
7673 | return resultobj; |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
c370783e | 7679 | static PyObject *_wrap_PyShape_Draggable(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7680 | PyObject *resultobj; |
7681 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7682 | bool result; | |
7683 | PyObject * obj0 = 0 ; | |
7684 | char *kwnames[] = { | |
7685 | (char *) "self", NULL | |
7686 | }; | |
7687 | ||
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_Draggable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
7691 | { |
7692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7693 | result = (bool)(arg1)->Draggable(); | |
7694 | ||
7695 | wxPyEndAllowThreads(__tstate); | |
7696 | if (PyErr_Occurred()) SWIG_fail; | |
7697 | } | |
fbc46b20 RD |
7698 | { |
7699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7700 | } | |
44127b65 RD |
7701 | return resultobj; |
7702 | fail: | |
7703 | return NULL; | |
7704 | } | |
7705 | ||
7706 | ||
c370783e | 7707 | static PyObject *_wrap_PyShape_HasDescendant(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7708 | PyObject *resultobj; |
7709 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7710 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
7711 | bool result; | |
7712 | PyObject * obj0 = 0 ; | |
7713 | PyObject * obj1 = 0 ; | |
7714 | char *kwnames[] = { | |
7715 | (char *) "self",(char *) "image", NULL | |
7716 | }; | |
7717 | ||
7718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_HasDescendant",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7721 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
7722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
7723 | { |
7724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7725 | result = (bool)(arg1)->HasDescendant(arg2); | |
7726 | ||
7727 | wxPyEndAllowThreads(__tstate); | |
7728 | if (PyErr_Occurred()) SWIG_fail; | |
7729 | } | |
fbc46b20 RD |
7730 | { |
7731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7732 | } | |
44127b65 RD |
7733 | return resultobj; |
7734 | fail: | |
7735 | return NULL; | |
7736 | } | |
7737 | ||
7738 | ||
c370783e | 7739 | static PyObject *_wrap_PyShape_CreateNewCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7740 | PyObject *resultobj; |
7741 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7742 | bool arg2 = (bool) True ; | |
7743 | bool arg3 = (bool) True ; | |
7744 | wxPyShape *result; | |
7745 | PyObject * obj0 = 0 ; | |
7746 | PyObject * obj1 = 0 ; | |
7747 | PyObject * obj2 = 0 ; | |
7748 | char *kwnames[] = { | |
7749 | (char *) "self",(char *) "resetMapping",(char *) "recompute", NULL | |
7750 | }; | |
7751 | ||
7752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyShape_CreateNewCopy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 7755 | if (obj1) { |
c370783e | 7756 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 7757 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7758 | } |
7759 | if (obj2) { | |
c370783e | 7760 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 7761 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7762 | } |
7763 | { | |
7764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7765 | result = (wxPyShape *)(arg1)->CreateNewCopy(arg2,arg3); | |
7766 | ||
7767 | wxPyEndAllowThreads(__tstate); | |
7768 | if (PyErr_Occurred()) SWIG_fail; | |
7769 | } | |
7770 | { | |
412d302d | 7771 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
7772 | } |
7773 | return resultobj; | |
7774 | fail: | |
7775 | return NULL; | |
7776 | } | |
7777 | ||
7778 | ||
c370783e | 7779 | static PyObject *_wrap_PyShape_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7780 | PyObject *resultobj; |
7781 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7782 | wxPyShape *arg2 = 0 ; | |
7783 | PyObject * obj0 = 0 ; | |
7784 | PyObject * obj1 = 0 ; | |
7785 | char *kwnames[] = { | |
7786 | (char *) "self",(char *) "copy", NULL | |
7787 | }; | |
7788 | ||
7789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Copy",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
7793 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7794 | SWIG_fail; | |
44127b65 | 7795 | if (arg2 == NULL) { |
2f4c0a16 RD |
7796 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7797 | SWIG_fail; | |
44127b65 RD |
7798 | } |
7799 | { | |
7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7801 | (arg1)->Copy(*arg2); | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
7806 | Py_INCREF(Py_None); resultobj = Py_None; | |
7807 | return resultobj; | |
7808 | fail: | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
c370783e | 7813 | static PyObject *_wrap_PyShape_CopyWithHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7814 | PyObject *resultobj; |
7815 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7816 | wxPyShape *arg2 = 0 ; | |
7817 | PyObject * obj0 = 0 ; | |
7818 | PyObject * obj1 = 0 ; | |
7819 | char *kwnames[] = { | |
7820 | (char *) "self",(char *) "copy", NULL | |
7821 | }; | |
7822 | ||
7823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_CopyWithHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7826 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
7827 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7828 | SWIG_fail; | |
44127b65 | 7829 | if (arg2 == NULL) { |
2f4c0a16 RD |
7830 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7831 | SWIG_fail; | |
44127b65 RD |
7832 | } |
7833 | { | |
7834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7835 | (arg1)->CopyWithHandler(*arg2); | |
7836 | ||
7837 | wxPyEndAllowThreads(__tstate); | |
7838 | if (PyErr_Occurred()) SWIG_fail; | |
7839 | } | |
7840 | Py_INCREF(Py_None); resultobj = Py_None; | |
7841 | return resultobj; | |
7842 | fail: | |
7843 | return NULL; | |
7844 | } | |
7845 | ||
7846 | ||
c370783e | 7847 | static PyObject *_wrap_PyShape_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7848 | PyObject *resultobj; |
7849 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7850 | double arg2 ; | |
7851 | double arg3 ; | |
7852 | double arg4 ; | |
7853 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7854 | PyObject * obj1 = 0 ; |
7855 | PyObject * obj2 = 0 ; | |
7856 | PyObject * obj3 = 0 ; | |
44127b65 RD |
7857 | char *kwnames[] = { |
7858 | (char *) "self",(char *) "x",(char *) "y",(char *) "theta", NULL | |
7859 | }; | |
7860 | ||
8edf1c75 | 7861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyShape_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
7862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7864 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 7865 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7866 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 7867 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7868 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 7869 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
7870 | { |
7871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7872 | (arg1)->Rotate(arg2,arg3,arg4); | |
7873 | ||
7874 | wxPyEndAllowThreads(__tstate); | |
7875 | if (PyErr_Occurred()) SWIG_fail; | |
7876 | } | |
7877 | Py_INCREF(Py_None); resultobj = Py_None; | |
7878 | return resultobj; | |
7879 | fail: | |
7880 | return NULL; | |
7881 | } | |
7882 | ||
7883 | ||
c370783e | 7884 | static PyObject *_wrap_PyShape_GetRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7885 | PyObject *resultobj; |
7886 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7887 | double result; | |
7888 | PyObject * obj0 = 0 ; | |
7889 | char *kwnames[] = { | |
7890 | (char *) "self", NULL | |
7891 | }; | |
7892 | ||
7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetRotation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
7896 | { |
7897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7898 | result = (double)(arg1)->GetRotation(); | |
7899 | ||
7900 | wxPyEndAllowThreads(__tstate); | |
7901 | if (PyErr_Occurred()) SWIG_fail; | |
7902 | } | |
c370783e | 7903 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
7904 | return resultobj; |
7905 | fail: | |
7906 | return NULL; | |
7907 | } | |
7908 | ||
7909 | ||
c370783e | 7910 | static PyObject *_wrap_PyShape_SetRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
7911 | PyObject *resultobj; |
7912 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7913 | double arg2 ; | |
7914 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7915 | PyObject * obj1 = 0 ; |
7a0a63ae RD |
7916 | char *kwnames[] = { |
7917 | (char *) "self",(char *) "rotation", NULL | |
7918 | }; | |
7919 | ||
8edf1c75 | 7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_SetRotation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7923 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 7924 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
7925 | { |
7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7927 | (arg1)->SetRotation(arg2); | |
7928 | ||
7929 | wxPyEndAllowThreads(__tstate); | |
7930 | if (PyErr_Occurred()) SWIG_fail; | |
7931 | } | |
7932 | Py_INCREF(Py_None); resultobj = Py_None; | |
7933 | return resultobj; | |
7934 | fail: | |
7935 | return NULL; | |
7936 | } | |
7937 | ||
7938 | ||
c370783e | 7939 | static PyObject *_wrap_PyShape_ClearAttachments(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7940 | PyObject *resultobj; |
7941 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7942 | PyObject * obj0 = 0 ; | |
7943 | char *kwnames[] = { | |
7944 | (char *) "self", NULL | |
7945 | }; | |
7946 | ||
7947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_ClearAttachments",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
7950 | { |
7951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7952 | (arg1)->ClearAttachments(); | |
7953 | ||
7954 | wxPyEndAllowThreads(__tstate); | |
7955 | if (PyErr_Occurred()) SWIG_fail; | |
7956 | } | |
7957 | Py_INCREF(Py_None); resultobj = Py_None; | |
7958 | return resultobj; | |
7959 | fail: | |
7960 | return NULL; | |
7961 | } | |
7962 | ||
7963 | ||
c370783e | 7964 | static PyObject *_wrap_PyShape_Recentre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7965 | PyObject *resultobj; |
7966 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
7967 | wxDC *arg2 = 0 ; | |
7968 | PyObject * obj0 = 0 ; | |
7969 | PyObject * obj1 = 0 ; | |
7970 | char *kwnames[] = { | |
7971 | (char *) "self",(char *) "dc", NULL | |
7972 | }; | |
7973 | ||
7974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_Recentre",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
7976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
7978 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7979 | SWIG_fail; | |
44127b65 | 7980 | if (arg2 == NULL) { |
2f4c0a16 RD |
7981 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7982 | SWIG_fail; | |
44127b65 RD |
7983 | } |
7984 | { | |
7985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7986 | (arg1)->Recentre(*arg2); | |
7987 | ||
7988 | wxPyEndAllowThreads(__tstate); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
7991 | Py_INCREF(Py_None); resultobj = Py_None; | |
7992 | return resultobj; | |
7993 | fail: | |
7994 | return NULL; | |
7995 | } | |
7996 | ||
7997 | ||
c370783e | 7998 | static PyObject *_wrap_PyShape_ClearPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
7999 | PyObject *resultobj; |
8000 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8001 | wxList *arg2 = 0 ; | |
8002 | PyObject * obj0 = 0 ; | |
8003 | PyObject * obj1 = 0 ; | |
8004 | char *kwnames[] = { | |
8005 | (char *) "self",(char *) "list", NULL | |
8006 | }; | |
8007 | ||
8008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_ClearPointList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxList, | |
8012 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8013 | SWIG_fail; | |
44127b65 | 8014 | if (arg2 == NULL) { |
2f4c0a16 RD |
8015 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8016 | SWIG_fail; | |
44127b65 RD |
8017 | } |
8018 | { | |
8019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8020 | (arg1)->ClearPointList(*arg2); | |
8021 | ||
8022 | wxPyEndAllowThreads(__tstate); | |
8023 | if (PyErr_Occurred()) SWIG_fail; | |
8024 | } | |
8025 | Py_INCREF(Py_None); resultobj = Py_None; | |
8026 | return resultobj; | |
8027 | fail: | |
8028 | return NULL; | |
8029 | } | |
8030 | ||
8031 | ||
c370783e | 8032 | static PyObject *_wrap_PyShape_GetBackgroundPen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8033 | PyObject *resultobj; |
8034 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8035 | wxPen result; | |
8036 | PyObject * obj0 = 0 ; | |
8037 | char *kwnames[] = { | |
8038 | (char *) "self", NULL | |
8039 | }; | |
8040 | ||
8041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBackgroundPen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
8044 | { |
8045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8046 | result = (arg1)->GetBackgroundPen(); | |
8047 | ||
8048 | wxPyEndAllowThreads(__tstate); | |
8049 | if (PyErr_Occurred()) SWIG_fail; | |
8050 | } | |
8051 | { | |
8052 | wxPen * resultptr; | |
8053 | resultptr = new wxPen((wxPen &) result); | |
2f4c0a16 | 8054 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPen, 1); |
44127b65 RD |
8055 | } |
8056 | return resultobj; | |
8057 | fail: | |
8058 | return NULL; | |
8059 | } | |
8060 | ||
8061 | ||
c370783e | 8062 | static PyObject *_wrap_PyShape_GetBackgroundBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8063 | PyObject *resultobj; |
8064 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8065 | wxBrush result; | |
8066 | PyObject * obj0 = 0 ; | |
8067 | char *kwnames[] = { | |
8068 | (char *) "self", NULL | |
8069 | }; | |
8070 | ||
8071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_GetBackgroundBrush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
8074 | { |
8075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8076 | result = (arg1)->GetBackgroundBrush(); | |
8077 | ||
8078 | wxPyEndAllowThreads(__tstate); | |
8079 | if (PyErr_Occurred()) SWIG_fail; | |
8080 | } | |
8081 | { | |
8082 | wxBrush * resultptr; | |
8083 | resultptr = new wxBrush((wxBrush &) result); | |
2f4c0a16 | 8084 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBrush, 1); |
44127b65 RD |
8085 | } |
8086 | return resultobj; | |
8087 | fail: | |
8088 | return NULL; | |
8089 | } | |
8090 | ||
8091 | ||
c370783e | 8092 | static PyObject *_wrap_PyShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8093 | PyObject *resultobj; |
8094 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8095 | PyObject * obj0 = 0 ; | |
8096 | char *kwnames[] = { | |
8097 | (char *) "self", NULL | |
8098 | }; | |
8099 | ||
8100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
8103 | { |
8104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8105 | (arg1)->base_OnDelete(); | |
8106 | ||
8107 | wxPyEndAllowThreads(__tstate); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
8110 | Py_INCREF(Py_None); resultobj = Py_None; | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
c370783e | 8117 | static PyObject *_wrap_PyShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8118 | PyObject *resultobj; |
8119 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8120 | wxDC *arg2 = 0 ; | |
8121 | PyObject * obj0 = 0 ; | |
8122 | PyObject * obj1 = 0 ; | |
8123 | char *kwnames[] = { | |
8124 | (char *) "self",(char *) "dc", NULL | |
8125 | }; | |
8126 | ||
8127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8131 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8132 | SWIG_fail; | |
44127b65 | 8133 | if (arg2 == NULL) { |
2f4c0a16 RD |
8134 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8135 | SWIG_fail; | |
44127b65 RD |
8136 | } |
8137 | { | |
8138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8139 | (arg1)->base_OnDraw(*arg2); | |
8140 | ||
8141 | wxPyEndAllowThreads(__tstate); | |
8142 | if (PyErr_Occurred()) SWIG_fail; | |
8143 | } | |
8144 | Py_INCREF(Py_None); resultobj = Py_None; | |
8145 | return resultobj; | |
8146 | fail: | |
8147 | return NULL; | |
8148 | } | |
8149 | ||
8150 | ||
c370783e | 8151 | static PyObject *_wrap_PyShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8152 | PyObject *resultobj; |
8153 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8154 | wxDC *arg2 = 0 ; | |
8155 | PyObject * obj0 = 0 ; | |
8156 | PyObject * obj1 = 0 ; | |
8157 | char *kwnames[] = { | |
8158 | (char *) "self",(char *) "dc", NULL | |
8159 | }; | |
8160 | ||
8161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8164 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8165 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8166 | SWIG_fail; | |
44127b65 | 8167 | if (arg2 == NULL) { |
2f4c0a16 RD |
8168 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8169 | SWIG_fail; | |
44127b65 RD |
8170 | } |
8171 | { | |
8172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8173 | (arg1)->base_OnDrawContents(*arg2); | |
8174 | ||
8175 | wxPyEndAllowThreads(__tstate); | |
8176 | if (PyErr_Occurred()) SWIG_fail; | |
8177 | } | |
8178 | Py_INCREF(Py_None); resultobj = Py_None; | |
8179 | return resultobj; | |
8180 | fail: | |
8181 | return NULL; | |
8182 | } | |
8183 | ||
8184 | ||
c370783e | 8185 | static PyObject *_wrap_PyShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8186 | PyObject *resultobj; |
8187 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8188 | wxDC *arg2 = 0 ; | |
8189 | bool arg3 = (bool) False ; | |
8190 | PyObject * obj0 = 0 ; | |
8191 | PyObject * obj1 = 0 ; | |
8192 | PyObject * obj2 = 0 ; | |
8193 | char *kwnames[] = { | |
8194 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
8195 | }; | |
8196 | ||
8197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
8198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8201 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8202 | SWIG_fail; | |
44127b65 | 8203 | if (arg2 == NULL) { |
2f4c0a16 RD |
8204 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8205 | SWIG_fail; | |
44127b65 RD |
8206 | } |
8207 | if (obj2) { | |
c370783e | 8208 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 8209 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
8210 | } |
8211 | { | |
8212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8213 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
8214 | ||
8215 | wxPyEndAllowThreads(__tstate); | |
8216 | if (PyErr_Occurred()) SWIG_fail; | |
8217 | } | |
8218 | Py_INCREF(Py_None); resultobj = Py_None; | |
8219 | return resultobj; | |
8220 | fail: | |
8221 | return NULL; | |
8222 | } | |
8223 | ||
8224 | ||
c370783e | 8225 | static PyObject *_wrap_PyShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8226 | PyObject *resultobj; |
8227 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8228 | wxDC *arg2 = 0 ; | |
8229 | PyObject * obj0 = 0 ; | |
8230 | PyObject * obj1 = 0 ; | |
8231 | char *kwnames[] = { | |
8232 | (char *) "self",(char *) "dc", NULL | |
8233 | }; | |
8234 | ||
8235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8238 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8239 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8240 | SWIG_fail; | |
44127b65 | 8241 | if (arg2 == NULL) { |
2f4c0a16 RD |
8242 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8243 | SWIG_fail; | |
44127b65 RD |
8244 | } |
8245 | { | |
8246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8247 | (arg1)->base_OnMoveLinks(*arg2); | |
8248 | ||
8249 | wxPyEndAllowThreads(__tstate); | |
8250 | if (PyErr_Occurred()) SWIG_fail; | |
8251 | } | |
8252 | Py_INCREF(Py_None); resultobj = Py_None; | |
8253 | return resultobj; | |
8254 | fail: | |
8255 | return NULL; | |
8256 | } | |
8257 | ||
8258 | ||
c370783e | 8259 | static PyObject *_wrap_PyShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8260 | PyObject *resultobj; |
8261 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8262 | wxDC *arg2 = 0 ; | |
8263 | PyObject * obj0 = 0 ; | |
8264 | PyObject * obj1 = 0 ; | |
8265 | char *kwnames[] = { | |
8266 | (char *) "self",(char *) "dc", NULL | |
8267 | }; | |
8268 | ||
8269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8272 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8273 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8274 | SWIG_fail; | |
44127b65 | 8275 | if (arg2 == NULL) { |
2f4c0a16 RD |
8276 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8277 | SWIG_fail; | |
44127b65 RD |
8278 | } |
8279 | { | |
8280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8281 | (arg1)->base_OnErase(*arg2); | |
8282 | ||
8283 | wxPyEndAllowThreads(__tstate); | |
8284 | if (PyErr_Occurred()) SWIG_fail; | |
8285 | } | |
8286 | Py_INCREF(Py_None); resultobj = Py_None; | |
8287 | return resultobj; | |
8288 | fail: | |
8289 | return NULL; | |
8290 | } | |
8291 | ||
8292 | ||
c370783e | 8293 | static PyObject *_wrap_PyShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8294 | PyObject *resultobj; |
8295 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8296 | wxDC *arg2 = 0 ; | |
8297 | PyObject * obj0 = 0 ; | |
8298 | PyObject * obj1 = 0 ; | |
8299 | char *kwnames[] = { | |
8300 | (char *) "self",(char *) "dc", NULL | |
8301 | }; | |
8302 | ||
8303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8306 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8307 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8308 | SWIG_fail; | |
44127b65 | 8309 | if (arg2 == NULL) { |
2f4c0a16 RD |
8310 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8311 | SWIG_fail; | |
44127b65 RD |
8312 | } |
8313 | { | |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8315 | (arg1)->base_OnEraseContents(*arg2); | |
8316 | ||
8317 | wxPyEndAllowThreads(__tstate); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | Py_INCREF(Py_None); resultobj = Py_None; | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
c370783e | 8327 | static PyObject *_wrap_PyShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8328 | PyObject *resultobj; |
8329 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8330 | wxDC *arg2 = 0 ; | |
8331 | PyObject * obj0 = 0 ; | |
8332 | PyObject * obj1 = 0 ; | |
8333 | char *kwnames[] = { | |
8334 | (char *) "self",(char *) "dc", NULL | |
8335 | }; | |
8336 | ||
8337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8341 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8342 | SWIG_fail; | |
44127b65 | 8343 | if (arg2 == NULL) { |
2f4c0a16 RD |
8344 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8345 | SWIG_fail; | |
44127b65 RD |
8346 | } |
8347 | { | |
8348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8349 | (arg1)->base_OnHighlight(*arg2); | |
8350 | ||
8351 | wxPyEndAllowThreads(__tstate); | |
8352 | if (PyErr_Occurred()) SWIG_fail; | |
8353 | } | |
8354 | Py_INCREF(Py_None); resultobj = Py_None; | |
8355 | return resultobj; | |
8356 | fail: | |
8357 | return NULL; | |
8358 | } | |
8359 | ||
8360 | ||
c370783e | 8361 | static PyObject *_wrap_PyShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8362 | PyObject *resultobj; |
8363 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8364 | double arg2 ; | |
8365 | double arg3 ; | |
8366 | int arg4 = (int) 0 ; | |
8367 | int arg5 = (int) 0 ; | |
8368 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8369 | PyObject * obj1 = 0 ; |
8370 | PyObject * obj2 = 0 ; | |
8371 | PyObject * obj3 = 0 ; | |
8372 | PyObject * obj4 = 0 ; | |
44127b65 RD |
8373 | char *kwnames[] = { |
8374 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8375 | }; | |
8376 | ||
8edf1c75 | 8377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
8378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8380 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 8381 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8382 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8383 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8384 | if (obj3) { |
c370783e | 8385 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 8386 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8387 | } |
8388 | if (obj4) { | |
c370783e | 8389 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8390 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8391 | } |
44127b65 RD |
8392 | { |
8393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8394 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
8395 | ||
8396 | wxPyEndAllowThreads(__tstate); | |
8397 | if (PyErr_Occurred()) SWIG_fail; | |
8398 | } | |
8399 | Py_INCREF(Py_None); resultobj = Py_None; | |
8400 | return resultobj; | |
8401 | fail: | |
8402 | return NULL; | |
8403 | } | |
8404 | ||
8405 | ||
c370783e | 8406 | static PyObject *_wrap_PyShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8407 | PyObject *resultobj; |
8408 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8409 | double arg2 ; | |
8410 | double arg3 ; | |
8411 | int arg4 = (int) 0 ; | |
8412 | int arg5 = (int) 0 ; | |
8413 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8414 | PyObject * obj1 = 0 ; |
8415 | PyObject * obj2 = 0 ; | |
8416 | PyObject * obj3 = 0 ; | |
8417 | PyObject * obj4 = 0 ; | |
44127b65 RD |
8418 | char *kwnames[] = { |
8419 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8420 | }; | |
8421 | ||
8edf1c75 | 8422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
8423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8425 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 8426 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8427 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8428 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8429 | if (obj3) { |
c370783e | 8430 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 8431 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8432 | } |
8433 | if (obj4) { | |
c370783e | 8434 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8435 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8436 | } |
44127b65 RD |
8437 | { |
8438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8439 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
8440 | ||
8441 | wxPyEndAllowThreads(__tstate); | |
8442 | if (PyErr_Occurred()) SWIG_fail; | |
8443 | } | |
8444 | Py_INCREF(Py_None); resultobj = Py_None; | |
8445 | return resultobj; | |
8446 | fail: | |
8447 | return NULL; | |
8448 | } | |
8449 | ||
8450 | ||
c370783e | 8451 | static PyObject *_wrap_PyShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8452 | PyObject *resultobj; |
8453 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8454 | double arg2 ; | |
8455 | double arg3 ; | |
8456 | int arg4 = (int) 0 ; | |
8457 | int arg5 = (int) 0 ; | |
8458 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8459 | PyObject * obj1 = 0 ; |
8460 | PyObject * obj2 = 0 ; | |
8461 | PyObject * obj3 = 0 ; | |
8462 | PyObject * obj4 = 0 ; | |
44127b65 RD |
8463 | char *kwnames[] = { |
8464 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8465 | }; | |
8466 | ||
8edf1c75 | 8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
8468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8470 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 8471 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8472 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8473 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8474 | if (obj3) { |
c370783e | 8475 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 8476 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8477 | } |
8478 | if (obj4) { | |
c370783e | 8479 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8480 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8481 | } |
44127b65 RD |
8482 | { |
8483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8484 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
8485 | ||
8486 | wxPyEndAllowThreads(__tstate); | |
8487 | if (PyErr_Occurred()) SWIG_fail; | |
8488 | } | |
8489 | Py_INCREF(Py_None); resultobj = Py_None; | |
8490 | return resultobj; | |
8491 | fail: | |
8492 | return NULL; | |
8493 | } | |
8494 | ||
8495 | ||
c370783e | 8496 | static PyObject *_wrap_PyShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8497 | PyObject *resultobj; |
8498 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8499 | double arg2 ; | |
8500 | double arg3 ; | |
8501 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8502 | PyObject * obj1 = 0 ; |
8503 | PyObject * obj2 = 0 ; | |
44127b65 RD |
8504 | char *kwnames[] = { |
8505 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8506 | }; | |
8507 | ||
8edf1c75 | 8508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8511 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 8512 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8513 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8514 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
8515 | { |
8516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8517 | (arg1)->base_OnSize(arg2,arg3); | |
8518 | ||
8519 | wxPyEndAllowThreads(__tstate); | |
8520 | if (PyErr_Occurred()) SWIG_fail; | |
8521 | } | |
8522 | Py_INCREF(Py_None); resultobj = Py_None; | |
8523 | return resultobj; | |
8524 | fail: | |
8525 | return NULL; | |
8526 | } | |
8527 | ||
8528 | ||
c370783e | 8529 | static PyObject *_wrap_PyShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8530 | PyObject *resultobj; |
8531 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8532 | wxDC *arg2 = 0 ; | |
8533 | double arg3 ; | |
8534 | double arg4 ; | |
8535 | double arg5 ; | |
8536 | double arg6 ; | |
8537 | bool arg7 = (bool) True ; | |
8538 | bool result; | |
8539 | PyObject * obj0 = 0 ; | |
8540 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
8541 | PyObject * obj2 = 0 ; |
8542 | PyObject * obj3 = 0 ; | |
8543 | PyObject * obj4 = 0 ; | |
8544 | PyObject * obj5 = 0 ; | |
44127b65 RD |
8545 | PyObject * obj6 = 0 ; |
8546 | char *kwnames[] = { | |
8547 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
8548 | }; | |
8549 | ||
8edf1c75 | 8550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
8551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8554 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8555 | SWIG_fail; | |
44127b65 | 8556 | if (arg2 == NULL) { |
2f4c0a16 RD |
8557 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8558 | SWIG_fail; | |
8559 | } | |
c370783e | 8560 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8561 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8562 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 8563 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8564 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 8565 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8566 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 8567 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 8568 | if (obj6) { |
c370783e | 8569 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 8570 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
8571 | } |
8572 | { | |
8573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8574 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
8575 | ||
8576 | wxPyEndAllowThreads(__tstate); | |
8577 | if (PyErr_Occurred()) SWIG_fail; | |
8578 | } | |
fbc46b20 RD |
8579 | { |
8580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8581 | } | |
44127b65 RD |
8582 | return resultobj; |
8583 | fail: | |
8584 | return NULL; | |
8585 | } | |
8586 | ||
8587 | ||
c370783e | 8588 | static PyObject *_wrap_PyShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8589 | PyObject *resultobj; |
8590 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8591 | wxDC *arg2 = 0 ; | |
8592 | double arg3 ; | |
8593 | double arg4 ; | |
8594 | double arg5 ; | |
8595 | double arg6 ; | |
8596 | bool arg7 = (bool) True ; | |
8597 | PyObject * obj0 = 0 ; | |
8598 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
8599 | PyObject * obj2 = 0 ; |
8600 | PyObject * obj3 = 0 ; | |
8601 | PyObject * obj4 = 0 ; | |
8602 | PyObject * obj5 = 0 ; | |
44127b65 RD |
8603 | PyObject * obj6 = 0 ; |
8604 | char *kwnames[] = { | |
8605 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
8606 | }; | |
8607 | ||
8edf1c75 | 8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
8609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8611 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8612 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8613 | SWIG_fail; | |
44127b65 | 8614 | if (arg2 == NULL) { |
2f4c0a16 RD |
8615 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8616 | SWIG_fail; | |
8617 | } | |
c370783e | 8618 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8619 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8620 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 8621 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8622 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 8623 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8624 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 8625 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 8626 | if (obj6) { |
c370783e | 8627 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 8628 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
8629 | } |
8630 | { | |
8631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8632 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
8633 | ||
8634 | wxPyEndAllowThreads(__tstate); | |
8635 | if (PyErr_Occurred()) SWIG_fail; | |
8636 | } | |
8637 | Py_INCREF(Py_None); resultobj = Py_None; | |
8638 | return resultobj; | |
8639 | fail: | |
8640 | return NULL; | |
8641 | } | |
8642 | ||
8643 | ||
c370783e | 8644 | static PyObject *_wrap_PyShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8645 | PyObject *resultobj; |
8646 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8647 | bool arg2 ; | |
8648 | double arg3 ; | |
8649 | double arg4 ; | |
8650 | int arg5 = (int) 0 ; | |
8651 | int arg6 = (int) 0 ; | |
8652 | PyObject * obj0 = 0 ; | |
8653 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
8654 | PyObject * obj2 = 0 ; |
8655 | PyObject * obj3 = 0 ; | |
8656 | PyObject * obj4 = 0 ; | |
8657 | PyObject * obj5 = 0 ; | |
44127b65 RD |
8658 | char *kwnames[] = { |
8659 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8660 | }; | |
8661 | ||
8edf1c75 | 8662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
8663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8665 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 8666 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8667 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8668 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8669 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 8670 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8671 | if (obj4) { |
c370783e | 8672 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8673 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8674 | } |
8675 | if (obj5) { | |
c370783e | 8676 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 8677 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8678 | } |
44127b65 RD |
8679 | { |
8680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8681 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
8682 | ||
8683 | wxPyEndAllowThreads(__tstate); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | Py_INCREF(Py_None); resultobj = Py_None; | |
8687 | return resultobj; | |
8688 | fail: | |
8689 | return NULL; | |
8690 | } | |
8691 | ||
8692 | ||
c370783e | 8693 | static PyObject *_wrap_PyShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8694 | PyObject *resultobj; |
8695 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8696 | double arg2 ; | |
8697 | double arg3 ; | |
8698 | int arg4 = (int) 0 ; | |
8699 | int arg5 = (int) 0 ; | |
8700 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8701 | PyObject * obj1 = 0 ; |
8702 | PyObject * obj2 = 0 ; | |
8703 | PyObject * obj3 = 0 ; | |
8704 | PyObject * obj4 = 0 ; | |
44127b65 RD |
8705 | char *kwnames[] = { |
8706 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8707 | }; | |
8708 | ||
8edf1c75 | 8709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
8710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8712 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 8713 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8714 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8715 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8716 | if (obj3) { |
c370783e | 8717 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 8718 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8719 | } |
8720 | if (obj4) { | |
c370783e | 8721 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8722 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8723 | } |
44127b65 RD |
8724 | { |
8725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8726 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
8727 | ||
8728 | wxPyEndAllowThreads(__tstate); | |
8729 | if (PyErr_Occurred()) SWIG_fail; | |
8730 | } | |
8731 | Py_INCREF(Py_None); resultobj = Py_None; | |
8732 | return resultobj; | |
8733 | fail: | |
8734 | return NULL; | |
8735 | } | |
8736 | ||
8737 | ||
c370783e | 8738 | static PyObject *_wrap_PyShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8739 | PyObject *resultobj; |
8740 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8741 | double arg2 ; | |
8742 | double arg3 ; | |
8743 | int arg4 = (int) 0 ; | |
8744 | int arg5 = (int) 0 ; | |
8745 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8746 | PyObject * obj1 = 0 ; |
8747 | PyObject * obj2 = 0 ; | |
8748 | PyObject * obj3 = 0 ; | |
8749 | PyObject * obj4 = 0 ; | |
44127b65 RD |
8750 | char *kwnames[] = { |
8751 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8752 | }; | |
8753 | ||
8edf1c75 | 8754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
8755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8757 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 8758 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8759 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8760 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8761 | if (obj3) { |
c370783e | 8762 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 8763 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8764 | } |
8765 | if (obj4) { | |
c370783e | 8766 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8767 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8768 | } |
44127b65 RD |
8769 | { |
8770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8771 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
8772 | ||
8773 | wxPyEndAllowThreads(__tstate); | |
8774 | if (PyErr_Occurred()) SWIG_fail; | |
8775 | } | |
8776 | Py_INCREF(Py_None); resultobj = Py_None; | |
8777 | return resultobj; | |
8778 | fail: | |
8779 | return NULL; | |
8780 | } | |
8781 | ||
8782 | ||
c370783e | 8783 | static PyObject *_wrap_PyShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8784 | PyObject *resultobj; |
8785 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8786 | bool arg2 ; | |
8787 | double arg3 ; | |
8788 | double arg4 ; | |
8789 | int arg5 = (int) 0 ; | |
8790 | int arg6 = (int) 0 ; | |
8791 | PyObject * obj0 = 0 ; | |
8792 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
8793 | PyObject * obj2 = 0 ; |
8794 | PyObject * obj3 = 0 ; | |
8795 | PyObject * obj4 = 0 ; | |
8796 | PyObject * obj5 = 0 ; | |
44127b65 RD |
8797 | char *kwnames[] = { |
8798 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8799 | }; | |
8800 | ||
8edf1c75 | 8801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
8802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8804 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 8805 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8806 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8807 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8808 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 8809 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8810 | if (obj4) { |
c370783e | 8811 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8812 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8813 | } |
8814 | if (obj5) { | |
c370783e | 8815 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 8816 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8817 | } |
44127b65 RD |
8818 | { |
8819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8820 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
8821 | ||
8822 | wxPyEndAllowThreads(__tstate); | |
8823 | if (PyErr_Occurred()) SWIG_fail; | |
8824 | } | |
8825 | Py_INCREF(Py_None); resultobj = Py_None; | |
8826 | return resultobj; | |
8827 | fail: | |
8828 | return NULL; | |
8829 | } | |
8830 | ||
8831 | ||
c370783e | 8832 | static PyObject *_wrap_PyShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8833 | PyObject *resultobj; |
8834 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8835 | double arg2 ; | |
8836 | double arg3 ; | |
8837 | int arg4 = (int) 0 ; | |
8838 | int arg5 = (int) 0 ; | |
8839 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8840 | PyObject * obj1 = 0 ; |
8841 | PyObject * obj2 = 0 ; | |
8842 | PyObject * obj3 = 0 ; | |
8843 | PyObject * obj4 = 0 ; | |
44127b65 RD |
8844 | char *kwnames[] = { |
8845 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8846 | }; | |
8847 | ||
8edf1c75 | 8848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
8849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8851 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 8852 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8853 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8854 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8855 | if (obj3) { |
c370783e | 8856 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 8857 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8858 | } |
8859 | if (obj4) { | |
c370783e | 8860 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8861 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8862 | } |
44127b65 RD |
8863 | { |
8864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8865 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
8866 | ||
8867 | wxPyEndAllowThreads(__tstate); | |
8868 | if (PyErr_Occurred()) SWIG_fail; | |
8869 | } | |
8870 | Py_INCREF(Py_None); resultobj = Py_None; | |
8871 | return resultobj; | |
8872 | fail: | |
8873 | return NULL; | |
8874 | } | |
8875 | ||
8876 | ||
c370783e | 8877 | static PyObject *_wrap_PyShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8878 | PyObject *resultobj; |
8879 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8880 | double arg2 ; | |
8881 | double arg3 ; | |
8882 | int arg4 = (int) 0 ; | |
8883 | int arg5 = (int) 0 ; | |
8884 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8885 | PyObject * obj1 = 0 ; |
8886 | PyObject * obj2 = 0 ; | |
8887 | PyObject * obj3 = 0 ; | |
8888 | PyObject * obj4 = 0 ; | |
44127b65 RD |
8889 | char *kwnames[] = { |
8890 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
8891 | }; | |
8892 | ||
8edf1c75 | 8893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
8894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8896 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 8897 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8898 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8899 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8900 | if (obj3) { |
c370783e | 8901 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 8902 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8903 | } |
8904 | if (obj4) { | |
c370783e | 8905 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8906 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8907 | } |
44127b65 RD |
8908 | { |
8909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8910 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
8911 | ||
8912 | wxPyEndAllowThreads(__tstate); | |
8913 | if (PyErr_Occurred()) SWIG_fail; | |
8914 | } | |
8915 | Py_INCREF(Py_None); resultobj = Py_None; | |
8916 | return resultobj; | |
8917 | fail: | |
8918 | return NULL; | |
8919 | } | |
8920 | ||
8921 | ||
c370783e | 8922 | static PyObject *_wrap_PyShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8923 | PyObject *resultobj; |
8924 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8925 | wxDC *arg2 = 0 ; | |
8926 | double arg3 ; | |
8927 | double arg4 ; | |
8928 | double arg5 ; | |
8929 | double arg6 ; | |
8930 | PyObject * obj0 = 0 ; | |
8931 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
8932 | PyObject * obj2 = 0 ; |
8933 | PyObject * obj3 = 0 ; | |
8934 | PyObject * obj4 = 0 ; | |
8935 | PyObject * obj5 = 0 ; | |
44127b65 RD |
8936 | char *kwnames[] = { |
8937 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
8938 | }; | |
8939 | ||
8edf1c75 | 8940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
8941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8943 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8944 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8945 | SWIG_fail; | |
44127b65 | 8946 | if (arg2 == NULL) { |
2f4c0a16 RD |
8947 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8948 | SWIG_fail; | |
8edf1c75 | 8949 | } |
c370783e | 8950 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 8951 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8952 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 8953 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8954 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 8955 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8956 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 8957 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
8958 | { |
8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8960 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
8961 | ||
8962 | wxPyEndAllowThreads(__tstate); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | } | |
8965 | Py_INCREF(Py_None); resultobj = Py_None; | |
8966 | return resultobj; | |
8967 | fail: | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
c370783e | 8972 | static PyObject *_wrap_PyShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
8973 | PyObject *resultobj; |
8974 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
8975 | wxDC *arg2 = 0 ; | |
8976 | PyObject * obj0 = 0 ; | |
8977 | PyObject * obj1 = 0 ; | |
8978 | char *kwnames[] = { | |
8979 | (char *) "self",(char *) "dc", NULL | |
8980 | }; | |
8981 | ||
8982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
8984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8985 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8987 | SWIG_fail; | |
44127b65 | 8988 | if (arg2 == NULL) { |
2f4c0a16 RD |
8989 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8990 | SWIG_fail; | |
44127b65 RD |
8991 | } |
8992 | { | |
8993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8994 | (arg1)->base_OnDrawControlPoints(*arg2); | |
8995 | ||
8996 | wxPyEndAllowThreads(__tstate); | |
8997 | if (PyErr_Occurred()) SWIG_fail; | |
8998 | } | |
8999 | Py_INCREF(Py_None); resultobj = Py_None; | |
9000 | return resultobj; | |
9001 | fail: | |
9002 | return NULL; | |
9003 | } | |
9004 | ||
9005 | ||
c370783e | 9006 | static PyObject *_wrap_PyShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9007 | PyObject *resultobj; |
9008 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9009 | wxDC *arg2 = 0 ; | |
9010 | PyObject * obj0 = 0 ; | |
9011 | PyObject * obj1 = 0 ; | |
9012 | char *kwnames[] = { | |
9013 | (char *) "self",(char *) "dc", NULL | |
9014 | }; | |
9015 | ||
9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
9018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9019 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
9020 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9021 | SWIG_fail; | |
44127b65 | 9022 | if (arg2 == NULL) { |
2f4c0a16 RD |
9023 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9024 | SWIG_fail; | |
44127b65 RD |
9025 | } |
9026 | { | |
9027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9028 | (arg1)->base_OnEraseControlPoints(*arg2); | |
9029 | ||
9030 | wxPyEndAllowThreads(__tstate); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | } | |
9033 | Py_INCREF(Py_None); resultobj = Py_None; | |
9034 | return resultobj; | |
9035 | fail: | |
9036 | return NULL; | |
9037 | } | |
9038 | ||
9039 | ||
c370783e | 9040 | static PyObject *_wrap_PyShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9041 | PyObject *resultobj; |
9042 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9043 | wxDC *arg2 = 0 ; | |
9044 | bool arg3 = (bool) True ; | |
9045 | PyObject * obj0 = 0 ; | |
9046 | PyObject * obj1 = 0 ; | |
9047 | PyObject * obj2 = 0 ; | |
9048 | char *kwnames[] = { | |
9049 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
9050 | }; | |
9051 | ||
9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
9053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
9054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
9056 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9057 | SWIG_fail; | |
44127b65 | 9058 | if (arg2 == NULL) { |
2f4c0a16 RD |
9059 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9060 | SWIG_fail; | |
44127b65 RD |
9061 | } |
9062 | if (obj2) { | |
c370783e | 9063 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 9064 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9065 | } |
9066 | { | |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
9069 | ||
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | Py_INCREF(Py_None); resultobj = Py_None; | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
c370783e | 9080 | static PyObject *_wrap_PyShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9081 | PyObject *resultobj; |
9082 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9083 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
9084 | bool arg3 ; | |
9085 | double arg4 ; | |
9086 | double arg5 ; | |
9087 | int arg6 = (int) 0 ; | |
9088 | int arg7 = (int) 0 ; | |
9089 | PyObject * obj0 = 0 ; | |
9090 | PyObject * obj1 = 0 ; | |
9091 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
9092 | PyObject * obj3 = 0 ; |
9093 | PyObject * obj4 = 0 ; | |
9094 | PyObject * obj5 = 0 ; | |
9095 | PyObject * obj6 = 0 ; | |
44127b65 RD |
9096 | char *kwnames[] = { |
9097 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9098 | }; | |
9099 | ||
8edf1c75 | 9100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
9101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
9102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9103 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
9104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9105 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 9106 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9107 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 9108 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9109 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 9110 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 9111 | if (obj5) { |
c370783e | 9112 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 9113 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
9114 | } |
9115 | if (obj6) { | |
c370783e | 9116 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 9117 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 9118 | } |
44127b65 RD |
9119 | { |
9120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9121 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
9122 | ||
9123 | wxPyEndAllowThreads(__tstate); | |
9124 | if (PyErr_Occurred()) SWIG_fail; | |
9125 | } | |
9126 | Py_INCREF(Py_None); resultobj = Py_None; | |
9127 | return resultobj; | |
9128 | fail: | |
9129 | return NULL; | |
9130 | } | |
9131 | ||
9132 | ||
c370783e | 9133 | static PyObject *_wrap_PyShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9134 | PyObject *resultobj; |
9135 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9136 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
9137 | double arg3 ; | |
9138 | double arg4 ; | |
9139 | int arg5 = (int) 0 ; | |
9140 | int arg6 = (int) 0 ; | |
9141 | PyObject * obj0 = 0 ; | |
9142 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9143 | PyObject * obj2 = 0 ; |
9144 | PyObject * obj3 = 0 ; | |
9145 | PyObject * obj4 = 0 ; | |
9146 | PyObject * obj5 = 0 ; | |
44127b65 RD |
9147 | char *kwnames[] = { |
9148 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9149 | }; | |
9150 | ||
8edf1c75 | 9151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
9152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
9153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
9155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9156 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9157 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9158 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 RD |
9159 | if (PyErr_Occurred()) SWIG_fail; |
9160 | if (obj4) { | |
c370783e | 9161 | arg5 = (int)SWIG_As_int(obj4); |
8edf1c75 RD |
9162 | if (PyErr_Occurred()) SWIG_fail; |
9163 | } | |
2f4c0a16 | 9164 | if (obj5) { |
c370783e | 9165 | arg6 = (int)SWIG_As_int(obj5); |
8edf1c75 RD |
9166 | if (PyErr_Occurred()) SWIG_fail; |
9167 | } | |
44127b65 RD |
9168 | { |
9169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9170 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
9171 | ||
9172 | wxPyEndAllowThreads(__tstate); | |
9173 | if (PyErr_Occurred()) SWIG_fail; | |
9174 | } | |
9175 | Py_INCREF(Py_None); resultobj = Py_None; | |
9176 | return resultobj; | |
9177 | fail: | |
9178 | return NULL; | |
9179 | } | |
9180 | ||
9181 | ||
c370783e | 9182 | static PyObject *_wrap_PyShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9183 | PyObject *resultobj; |
9184 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9185 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
9186 | double arg3 ; | |
9187 | double arg4 ; | |
9188 | int arg5 = (int) 0 ; | |
9189 | int arg6 = (int) 0 ; | |
9190 | PyObject * obj0 = 0 ; | |
9191 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9192 | PyObject * obj2 = 0 ; |
9193 | PyObject * obj3 = 0 ; | |
9194 | PyObject * obj4 = 0 ; | |
9195 | PyObject * obj5 = 0 ; | |
44127b65 RD |
9196 | char *kwnames[] = { |
9197 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
9198 | }; | |
9199 | ||
8edf1c75 | 9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
9201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
9202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9203 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
9204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9205 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9206 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9207 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 9208 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 9209 | if (obj4) { |
c370783e | 9210 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 9211 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
9212 | } |
9213 | if (obj5) { | |
c370783e | 9214 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 9215 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 9216 | } |
44127b65 RD |
9217 | { |
9218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9219 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
9220 | ||
9221 | wxPyEndAllowThreads(__tstate); | |
9222 | if (PyErr_Occurred()) SWIG_fail; | |
9223 | } | |
9224 | Py_INCREF(Py_None); resultobj = Py_None; | |
9225 | return resultobj; | |
9226 | fail: | |
9227 | return NULL; | |
9228 | } | |
9229 | ||
9230 | ||
c370783e | 9231 | static PyObject *_wrap_PyShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9232 | PyObject *resultobj; |
9233 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9234 | double arg2 ; | |
9235 | double arg3 ; | |
9236 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9237 | PyObject * obj1 = 0 ; |
9238 | PyObject * obj2 = 0 ; | |
44127b65 RD |
9239 | char *kwnames[] = { |
9240 | (char *) "self",(char *) "w",(char *) "h", NULL | |
9241 | }; | |
9242 | ||
8edf1c75 | 9243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
9245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9246 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 9247 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9248 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9249 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9250 | { |
9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9252 | (arg1)->base_OnBeginSize(arg2,arg3); | |
9253 | ||
9254 | wxPyEndAllowThreads(__tstate); | |
9255 | if (PyErr_Occurred()) SWIG_fail; | |
9256 | } | |
9257 | Py_INCREF(Py_None); resultobj = Py_None; | |
9258 | return resultobj; | |
9259 | fail: | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
c370783e | 9264 | static PyObject *_wrap_PyShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9265 | PyObject *resultobj; |
9266 | wxPyShape *arg1 = (wxPyShape *) 0 ; | |
9267 | double arg2 ; | |
9268 | double arg3 ; | |
9269 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9270 | PyObject * obj1 = 0 ; |
9271 | PyObject * obj2 = 0 ; | |
44127b65 RD |
9272 | char *kwnames[] = { |
9273 | (char *) "self",(char *) "w",(char *) "h", NULL | |
9274 | }; | |
9275 | ||
8edf1c75 | 9276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShape, |
9278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9279 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 9280 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9281 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9282 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9283 | { |
9284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9285 | (arg1)->base_OnEndSize(arg2,arg3); | |
9286 | ||
9287 | wxPyEndAllowThreads(__tstate); | |
9288 | if (PyErr_Occurred()) SWIG_fail; | |
9289 | } | |
9290 | Py_INCREF(Py_None); resultobj = Py_None; | |
9291 | return resultobj; | |
9292 | fail: | |
9293 | return NULL; | |
9294 | } | |
9295 | ||
9296 | ||
c370783e | 9297 | static PyObject * PyShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
9298 | PyObject *obj; |
9299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9300 | SWIG_TypeClientData(SWIGTYPE_p_wxPyShape, obj); | |
9301 | Py_INCREF(obj); | |
9302 | return Py_BuildValue((char *)""); | |
9303 | } | |
c370783e | 9304 | static PyObject *_wrap_new_PseudoMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9305 | PyObject *resultobj; |
9306 | wxPseudoMetaFile *result; | |
9307 | char *kwnames[] = { | |
9308 | NULL | |
9309 | }; | |
9310 | ||
9311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PseudoMetaFile",kwnames)) goto fail; | |
9312 | { | |
9313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9314 | result = (wxPseudoMetaFile *)new wxPseudoMetaFile(); | |
9315 | ||
9316 | wxPyEndAllowThreads(__tstate); | |
9317 | if (PyErr_Occurred()) SWIG_fail; | |
9318 | } | |
9319 | { | |
412d302d | 9320 | resultobj = wxPyMake_wxObject(result, 1); |
44127b65 RD |
9321 | } |
9322 | return resultobj; | |
9323 | fail: | |
9324 | return NULL; | |
9325 | } | |
9326 | ||
9327 | ||
c370783e | 9328 | static PyObject *_wrap_delete_PseudoMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9329 | PyObject *resultobj; |
9330 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9331 | PyObject * obj0 = 0 ; | |
9332 | char *kwnames[] = { | |
9333 | (char *) "self", NULL | |
9334 | }; | |
9335 | ||
9336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PseudoMetaFile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9339 | { |
9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9341 | delete arg1; | |
9342 | ||
9343 | wxPyEndAllowThreads(__tstate); | |
9344 | if (PyErr_Occurred()) SWIG_fail; | |
9345 | } | |
9346 | Py_INCREF(Py_None); resultobj = Py_None; | |
9347 | return resultobj; | |
9348 | fail: | |
9349 | return NULL; | |
9350 | } | |
9351 | ||
9352 | ||
c370783e | 9353 | static PyObject *_wrap_PseudoMetaFile_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9354 | PyObject *resultobj; |
9355 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9356 | wxDC *arg2 = 0 ; | |
9357 | double arg3 ; | |
9358 | double arg4 ; | |
9359 | PyObject * obj0 = 0 ; | |
9360 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9361 | PyObject * obj2 = 0 ; |
9362 | PyObject * obj3 = 0 ; | |
44127b65 RD |
9363 | char *kwnames[] = { |
9364 | (char *) "self",(char *) "dc",(char *) "xoffset",(char *) "yoffset", NULL | |
9365 | }; | |
9366 | ||
8edf1c75 | 9367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_Draw",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
9371 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9372 | SWIG_fail; | |
44127b65 | 9373 | if (arg2 == NULL) { |
2f4c0a16 RD |
9374 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9375 | SWIG_fail; | |
8edf1c75 | 9376 | } |
c370783e | 9377 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9378 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9379 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 9380 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9381 | { |
9382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9383 | (arg1)->Draw(*arg2,arg3,arg4); | |
9384 | ||
9385 | wxPyEndAllowThreads(__tstate); | |
9386 | if (PyErr_Occurred()) SWIG_fail; | |
9387 | } | |
9388 | Py_INCREF(Py_None); resultobj = Py_None; | |
9389 | return resultobj; | |
9390 | fail: | |
9391 | return NULL; | |
9392 | } | |
9393 | ||
9394 | ||
c370783e | 9395 | static PyObject *_wrap_PseudoMetaFile_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9396 | PyObject *resultobj; |
9397 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9398 | PyObject * obj0 = 0 ; | |
9399 | char *kwnames[] = { | |
9400 | (char *) "self", NULL | |
9401 | }; | |
9402 | ||
9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9406 | { |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9408 | (arg1)->Clear(); | |
9409 | ||
9410 | wxPyEndAllowThreads(__tstate); | |
9411 | if (PyErr_Occurred()) SWIG_fail; | |
9412 | } | |
9413 | Py_INCREF(Py_None); resultobj = Py_None; | |
9414 | return resultobj; | |
9415 | fail: | |
9416 | return NULL; | |
9417 | } | |
9418 | ||
9419 | ||
c370783e | 9420 | static PyObject *_wrap_PseudoMetaFile_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9421 | PyObject *resultobj; |
9422 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9423 | wxPseudoMetaFile *arg2 = 0 ; | |
9424 | PyObject * obj0 = 0 ; | |
9425 | PyObject * obj1 = 0 ; | |
9426 | char *kwnames[] = { | |
9427 | (char *) "self",(char *) "copy", NULL | |
9428 | }; | |
9429 | ||
9430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_Copy",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9433 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPseudoMetaFile, | |
9434 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9435 | SWIG_fail; | |
44127b65 | 9436 | if (arg2 == NULL) { |
2f4c0a16 RD |
9437 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9438 | SWIG_fail; | |
44127b65 RD |
9439 | } |
9440 | { | |
9441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9442 | (arg1)->Copy(*arg2); | |
9443 | ||
9444 | wxPyEndAllowThreads(__tstate); | |
9445 | if (PyErr_Occurred()) SWIG_fail; | |
9446 | } | |
9447 | Py_INCREF(Py_None); resultobj = Py_None; | |
9448 | return resultobj; | |
9449 | fail: | |
9450 | return NULL; | |
9451 | } | |
9452 | ||
9453 | ||
c370783e | 9454 | static PyObject *_wrap_PseudoMetaFile_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9455 | PyObject *resultobj; |
9456 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9457 | double arg2 ; | |
9458 | double arg3 ; | |
9459 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9460 | PyObject * obj1 = 0 ; |
9461 | PyObject * obj2 = 0 ; | |
44127b65 RD |
9462 | char *kwnames[] = { |
9463 | (char *) "self",(char *) "sx",(char *) "sy", NULL | |
9464 | }; | |
9465 | ||
8edf1c75 | 9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9469 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 9470 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9471 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9472 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9473 | { |
9474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9475 | (arg1)->Scale(arg2,arg3); | |
9476 | ||
9477 | wxPyEndAllowThreads(__tstate); | |
9478 | if (PyErr_Occurred()) SWIG_fail; | |
9479 | } | |
9480 | Py_INCREF(Py_None); resultobj = Py_None; | |
9481 | return resultobj; | |
9482 | fail: | |
9483 | return NULL; | |
9484 | } | |
9485 | ||
9486 | ||
c370783e | 9487 | static PyObject *_wrap_PseudoMetaFile_ScaleTo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9488 | PyObject *resultobj; |
9489 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9490 | double arg2 ; | |
9491 | double arg3 ; | |
9492 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9493 | PyObject * obj1 = 0 ; |
9494 | PyObject * obj2 = 0 ; | |
44127b65 RD |
9495 | char *kwnames[] = { |
9496 | (char *) "self",(char *) "w",(char *) "h", NULL | |
9497 | }; | |
9498 | ||
8edf1c75 | 9499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_ScaleTo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9502 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 9503 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9504 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9505 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9506 | { |
9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9508 | (arg1)->ScaleTo(arg2,arg3); | |
9509 | ||
9510 | wxPyEndAllowThreads(__tstate); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
9512 | } | |
9513 | Py_INCREF(Py_None); resultobj = Py_None; | |
9514 | return resultobj; | |
9515 | fail: | |
9516 | return NULL; | |
9517 | } | |
9518 | ||
9519 | ||
c370783e | 9520 | static PyObject *_wrap_PseudoMetaFile_Translate(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9521 | PyObject *resultobj; |
9522 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9523 | double arg2 ; | |
9524 | double arg3 ; | |
9525 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9526 | PyObject * obj1 = 0 ; |
9527 | PyObject * obj2 = 0 ; | |
44127b65 RD |
9528 | char *kwnames[] = { |
9529 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9530 | }; | |
9531 | ||
8edf1c75 | 9532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_Translate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9535 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 9536 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9537 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9538 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9539 | { |
9540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9541 | (arg1)->Translate(arg2,arg3); | |
9542 | ||
9543 | wxPyEndAllowThreads(__tstate); | |
9544 | if (PyErr_Occurred()) SWIG_fail; | |
9545 | } | |
9546 | Py_INCREF(Py_None); resultobj = Py_None; | |
9547 | return resultobj; | |
9548 | fail: | |
9549 | return NULL; | |
9550 | } | |
9551 | ||
9552 | ||
c370783e | 9553 | static PyObject *_wrap_PseudoMetaFile_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9554 | PyObject *resultobj; |
9555 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9556 | double arg2 ; | |
9557 | double arg3 ; | |
9558 | double arg4 ; | |
9559 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9560 | PyObject * obj1 = 0 ; |
9561 | PyObject * obj2 = 0 ; | |
9562 | PyObject * obj3 = 0 ; | |
44127b65 RD |
9563 | char *kwnames[] = { |
9564 | (char *) "self",(char *) "x",(char *) "y",(char *) "theta", NULL | |
9565 | }; | |
9566 | ||
8edf1c75 | 9567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9570 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 9571 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9572 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9573 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9574 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 9575 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9576 | { |
9577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9578 | (arg1)->Rotate(arg2,arg3,arg4); | |
9579 | ||
9580 | wxPyEndAllowThreads(__tstate); | |
9581 | if (PyErr_Occurred()) SWIG_fail; | |
9582 | } | |
9583 | Py_INCREF(Py_None); resultobj = Py_None; | |
9584 | return resultobj; | |
9585 | fail: | |
9586 | return NULL; | |
9587 | } | |
9588 | ||
9589 | ||
c370783e | 9590 | static PyObject *_wrap_PseudoMetaFile_LoadFromMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9591 | PyObject *resultobj; |
9592 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9593 | wxString *arg2 = 0 ; | |
9594 | double *arg3 = (double *) 0 ; | |
9595 | double *arg4 = (double *) 0 ; | |
9596 | bool result; | |
9597 | bool temp2 = False ; | |
9598 | PyObject * obj0 = 0 ; | |
9599 | PyObject * obj1 = 0 ; | |
9600 | PyObject * obj2 = 0 ; | |
9601 | PyObject * obj3 = 0 ; | |
9602 | char *kwnames[] = { | |
9603 | (char *) "self",(char *) "filename",(char *) "width",(char *) "height", NULL | |
9604 | }; | |
9605 | ||
9606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_LoadFromMetaFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
9607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9609 | { |
9610 | arg2 = wxString_in_helper(obj1); | |
9611 | if (arg2 == NULL) SWIG_fail; | |
9612 | temp2 = True; | |
9613 | } | |
2f4c0a16 RD |
9614 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_double, |
9615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9616 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_double, | |
9617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9618 | { |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | result = (bool)(arg1)->LoadFromMetaFile((wxString const &)*arg2,arg3,arg4); | |
9621 | ||
9622 | wxPyEndAllowThreads(__tstate); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
fbc46b20 RD |
9625 | { |
9626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9627 | } | |
44127b65 RD |
9628 | { |
9629 | if (temp2) | |
9630 | delete arg2; | |
9631 | } | |
9632 | return resultobj; | |
9633 | fail: | |
9634 | { | |
9635 | if (temp2) | |
9636 | delete arg2; | |
9637 | } | |
9638 | return NULL; | |
9639 | } | |
9640 | ||
9641 | ||
c370783e | 9642 | static PyObject *_wrap_PseudoMetaFile_GetBounds(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9643 | PyObject *resultobj; |
9644 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9645 | double *arg2 = (double *) 0 ; | |
9646 | double *arg3 = (double *) 0 ; | |
9647 | double *arg4 = (double *) 0 ; | |
9648 | double *arg5 = (double *) 0 ; | |
9649 | PyObject * obj0 = 0 ; | |
9650 | PyObject * obj1 = 0 ; | |
9651 | PyObject * obj2 = 0 ; | |
9652 | PyObject * obj3 = 0 ; | |
9653 | PyObject * obj4 = 0 ; | |
9654 | char *kwnames[] = { | |
9655 | (char *) "self",(char *) "minX",(char *) "minY",(char *) "maxX",(char *) "maxY", NULL | |
9656 | }; | |
9657 | ||
9658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoMetaFile_GetBounds",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
9659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9661 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_double, | |
9662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9663 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_double, | |
9664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9665 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_double, | |
9666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9667 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_double, | |
9668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9669 | { |
9670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9671 | (arg1)->GetBounds(arg2,arg3,arg4,arg5); | |
9672 | ||
9673 | wxPyEndAllowThreads(__tstate); | |
9674 | if (PyErr_Occurred()) SWIG_fail; | |
9675 | } | |
9676 | Py_INCREF(Py_None); resultobj = Py_None; | |
9677 | return resultobj; | |
9678 | fail: | |
9679 | return NULL; | |
9680 | } | |
9681 | ||
9682 | ||
c370783e | 9683 | static PyObject *_wrap_PseudoMetaFile_CalculateSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9684 | PyObject *resultobj; |
9685 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9686 | wxPyDrawnShape *arg2 = (wxPyDrawnShape *) 0 ; | |
9687 | PyObject * obj0 = 0 ; | |
9688 | PyObject * obj1 = 0 ; | |
9689 | char *kwnames[] = { | |
9690 | (char *) "self",(char *) "shape", NULL | |
9691 | }; | |
9692 | ||
9693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_CalculateSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9696 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDrawnShape, | |
9697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9698 | { |
9699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9700 | (arg1)->CalculateSize(arg2); | |
9701 | ||
9702 | wxPyEndAllowThreads(__tstate); | |
9703 | if (PyErr_Occurred()) SWIG_fail; | |
9704 | } | |
9705 | Py_INCREF(Py_None); resultobj = Py_None; | |
9706 | return resultobj; | |
9707 | fail: | |
9708 | return NULL; | |
9709 | } | |
9710 | ||
9711 | ||
c370783e | 9712 | static PyObject *_wrap_PseudoMetaFile_SetRotateable(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9713 | PyObject *resultobj; |
9714 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9715 | bool arg2 ; | |
9716 | PyObject * obj0 = 0 ; | |
9717 | PyObject * obj1 = 0 ; | |
9718 | char *kwnames[] = { | |
9719 | (char *) "self",(char *) "rot", NULL | |
9720 | }; | |
9721 | ||
9722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetRotateable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9725 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 9726 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9727 | { |
9728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9729 | (arg1)->SetRotateable(arg2); | |
9730 | ||
9731 | wxPyEndAllowThreads(__tstate); | |
9732 | if (PyErr_Occurred()) SWIG_fail; | |
9733 | } | |
9734 | Py_INCREF(Py_None); resultobj = Py_None; | |
9735 | return resultobj; | |
9736 | fail: | |
9737 | return NULL; | |
9738 | } | |
9739 | ||
9740 | ||
c370783e | 9741 | static PyObject *_wrap_PseudoMetaFile_GetRotateable(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9742 | PyObject *resultobj; |
9743 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9744 | bool result; | |
9745 | PyObject * obj0 = 0 ; | |
9746 | char *kwnames[] = { | |
9747 | (char *) "self", NULL | |
9748 | }; | |
9749 | ||
9750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetRotateable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9753 | { |
9754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9755 | result = (bool)(arg1)->GetRotateable(); | |
9756 | ||
9757 | wxPyEndAllowThreads(__tstate); | |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
9759 | } | |
fbc46b20 RD |
9760 | { |
9761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9762 | } | |
44127b65 RD |
9763 | return resultobj; |
9764 | fail: | |
9765 | return NULL; | |
9766 | } | |
9767 | ||
9768 | ||
c370783e | 9769 | static PyObject *_wrap_PseudoMetaFile_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9770 | PyObject *resultobj; |
9771 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9772 | double arg2 ; | |
9773 | double arg3 ; | |
9774 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9775 | PyObject * obj1 = 0 ; |
9776 | PyObject * obj2 = 0 ; | |
44127b65 RD |
9777 | char *kwnames[] = { |
9778 | (char *) "self",(char *) "w",(char *) "h", NULL | |
9779 | }; | |
9780 | ||
8edf1c75 | 9781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9784 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 9785 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9786 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 9787 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9788 | { |
9789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9790 | (arg1)->SetSize(arg2,arg3); | |
9791 | ||
9792 | wxPyEndAllowThreads(__tstate); | |
9793 | if (PyErr_Occurred()) SWIG_fail; | |
9794 | } | |
9795 | Py_INCREF(Py_None); resultobj = Py_None; | |
9796 | return resultobj; | |
9797 | fail: | |
9798 | return NULL; | |
9799 | } | |
9800 | ||
9801 | ||
c370783e | 9802 | static PyObject *_wrap_PseudoMetaFile_SetFillBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9803 | PyObject *resultobj; |
9804 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9805 | wxBrush *arg2 = (wxBrush *) 0 ; | |
9806 | PyObject * obj0 = 0 ; | |
9807 | PyObject * obj1 = 0 ; | |
9808 | char *kwnames[] = { | |
9809 | (char *) "self",(char *) "brush", NULL | |
9810 | }; | |
9811 | ||
9812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetFillBrush",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9815 | { |
9816 | wxBrush* temp; | |
9817 | if (obj1) { | |
9818 | if (obj1 == Py_None) { | |
9819 | temp = NULL; | |
9820 | } | |
9821 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
9822 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
9823 | return NULL; | |
9824 | } | |
9825 | } | |
9826 | if (temp) | |
9827 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
9828 | else | |
9829 | arg2 = NULL; | |
9830 | } | |
9831 | { | |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | (arg1)->SetFillBrush(arg2); | |
9834 | ||
9835 | wxPyEndAllowThreads(__tstate); | |
9836 | if (PyErr_Occurred()) SWIG_fail; | |
9837 | } | |
9838 | Py_INCREF(Py_None); resultobj = Py_None; | |
9839 | return resultobj; | |
9840 | fail: | |
9841 | return NULL; | |
9842 | } | |
9843 | ||
9844 | ||
c370783e | 9845 | static PyObject *_wrap_PseudoMetaFile_GetFillBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9846 | PyObject *resultobj; |
9847 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9848 | wxBrush *result; | |
9849 | PyObject * obj0 = 0 ; | |
9850 | char *kwnames[] = { | |
9851 | (char *) "self", NULL | |
9852 | }; | |
9853 | ||
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetFillBrush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9857 | { |
9858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9859 | result = (wxBrush *)(arg1)->GetFillBrush(); | |
9860 | ||
9861 | wxPyEndAllowThreads(__tstate); | |
9862 | if (PyErr_Occurred()) SWIG_fail; | |
9863 | } | |
2f4c0a16 | 9864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
44127b65 RD |
9865 | return resultobj; |
9866 | fail: | |
9867 | return NULL; | |
9868 | } | |
9869 | ||
9870 | ||
c370783e | 9871 | static PyObject *_wrap_PseudoMetaFile_SetOutlinePen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9872 | PyObject *resultobj; |
9873 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9874 | wxPen *arg2 = (wxPen *) 0 ; | |
9875 | PyObject * obj0 = 0 ; | |
9876 | PyObject * obj1 = 0 ; | |
9877 | char *kwnames[] = { | |
9878 | (char *) "self",(char *) "pen", NULL | |
9879 | }; | |
9880 | ||
9881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetOutlinePen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9884 | { |
9885 | wxPen* temp; | |
9886 | if (obj1) { | |
9887 | if (obj1 == Py_None) { | |
9888 | temp = NULL; | |
9889 | } | |
9890 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
9891 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
9892 | return NULL; | |
9893 | } | |
9894 | } | |
9895 | if (temp) | |
9896 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
9897 | temp->GetWidth(), | |
9898 | temp->GetStyle()); | |
9899 | else | |
9900 | arg2 = NULL; | |
9901 | } | |
9902 | { | |
9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9904 | (arg1)->SetOutlinePen(arg2); | |
9905 | ||
9906 | wxPyEndAllowThreads(__tstate); | |
9907 | if (PyErr_Occurred()) SWIG_fail; | |
9908 | } | |
9909 | Py_INCREF(Py_None); resultobj = Py_None; | |
9910 | return resultobj; | |
9911 | fail: | |
9912 | return NULL; | |
9913 | } | |
9914 | ||
9915 | ||
c370783e | 9916 | static PyObject *_wrap_PseudoMetaFile_GetOutlinePen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9917 | PyObject *resultobj; |
9918 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9919 | wxPen *result; | |
9920 | PyObject * obj0 = 0 ; | |
9921 | char *kwnames[] = { | |
9922 | (char *) "self", NULL | |
9923 | }; | |
9924 | ||
9925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetOutlinePen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9928 | { |
9929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9930 | result = (wxPen *)(arg1)->GetOutlinePen(); | |
9931 | ||
9932 | wxPyEndAllowThreads(__tstate); | |
9933 | if (PyErr_Occurred()) SWIG_fail; | |
9934 | } | |
2f4c0a16 | 9935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
44127b65 RD |
9936 | return resultobj; |
9937 | fail: | |
9938 | return NULL; | |
9939 | } | |
9940 | ||
9941 | ||
c370783e | 9942 | static PyObject *_wrap_PseudoMetaFile_SetOutlineOp(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9943 | PyObject *resultobj; |
9944 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9945 | int arg2 ; | |
9946 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9947 | PyObject * obj1 = 0 ; |
44127b65 RD |
9948 | char *kwnames[] = { |
9949 | (char *) "self",(char *) "op", NULL | |
9950 | }; | |
9951 | ||
8edf1c75 | 9952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetOutlineOp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9955 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9956 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
9957 | { |
9958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9959 | (arg1)->SetOutlineOp(arg2); | |
9960 | ||
9961 | wxPyEndAllowThreads(__tstate); | |
9962 | if (PyErr_Occurred()) SWIG_fail; | |
9963 | } | |
9964 | Py_INCREF(Py_None); resultobj = Py_None; | |
9965 | return resultobj; | |
9966 | fail: | |
9967 | return NULL; | |
9968 | } | |
9969 | ||
9970 | ||
c370783e | 9971 | static PyObject *_wrap_PseudoMetaFile_GetOutlineOp(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9972 | PyObject *resultobj; |
9973 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
9974 | int result; | |
9975 | PyObject * obj0 = 0 ; | |
9976 | char *kwnames[] = { | |
9977 | (char *) "self", NULL | |
9978 | }; | |
9979 | ||
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_GetOutlineOp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
9982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
9983 | { |
9984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9985 | result = (int)(arg1)->GetOutlineOp(); | |
9986 | ||
9987 | wxPyEndAllowThreads(__tstate); | |
9988 | if (PyErr_Occurred()) SWIG_fail; | |
9989 | } | |
c370783e | 9990 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
9991 | return resultobj; |
9992 | fail: | |
9993 | return NULL; | |
9994 | } | |
9995 | ||
9996 | ||
c370783e | 9997 | static PyObject *_wrap_PseudoMetaFile_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
9998 | PyObject *resultobj; |
9999 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10000 | bool result; | |
10001 | PyObject * obj0 = 0 ; | |
10002 | char *kwnames[] = { | |
10003 | (char *) "self", NULL | |
10004 | }; | |
10005 | ||
10006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_IsValid",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10009 | { |
10010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10011 | result = (bool)(arg1)->IsValid(); | |
10012 | ||
10013 | wxPyEndAllowThreads(__tstate); | |
10014 | if (PyErr_Occurred()) SWIG_fail; | |
10015 | } | |
fbc46b20 RD |
10016 | { |
10017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10018 | } | |
44127b65 RD |
10019 | return resultobj; |
10020 | fail: | |
10021 | return NULL; | |
10022 | } | |
10023 | ||
10024 | ||
c370783e | 10025 | static PyObject *_wrap_PseudoMetaFile_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10026 | PyObject *resultobj; |
10027 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10028 | wxPoint *arg2 = 0 ; | |
10029 | wxPoint *arg3 = 0 ; | |
10030 | wxPoint temp2 ; | |
10031 | wxPoint temp3 ; | |
10032 | PyObject * obj0 = 0 ; | |
10033 | PyObject * obj1 = 0 ; | |
10034 | PyObject * obj2 = 0 ; | |
10035 | char *kwnames[] = { | |
10036 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10037 | }; | |
10038 | ||
10039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10042 | { |
10043 | arg2 = &temp2; | |
10044 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10045 | } | |
10046 | { | |
10047 | arg3 = &temp3; | |
10048 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10049 | } | |
10050 | { | |
10051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10052 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10053 | ||
10054 | wxPyEndAllowThreads(__tstate); | |
10055 | if (PyErr_Occurred()) SWIG_fail; | |
10056 | } | |
10057 | Py_INCREF(Py_None); resultobj = Py_None; | |
10058 | return resultobj; | |
10059 | fail: | |
10060 | return NULL; | |
10061 | } | |
10062 | ||
10063 | ||
c370783e | 10064 | static PyObject *_wrap_PseudoMetaFile_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10065 | PyObject *resultobj; |
10066 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10067 | wxRect *arg2 = 0 ; | |
10068 | wxRect temp2 ; | |
10069 | PyObject * obj0 = 0 ; | |
10070 | PyObject * obj1 = 0 ; | |
10071 | char *kwnames[] = { | |
10072 | (char *) "self",(char *) "rect", NULL | |
10073 | }; | |
10074 | ||
10075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawRectangle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10078 | { |
10079 | arg2 = &temp2; | |
10080 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10081 | } | |
10082 | { | |
10083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10084 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10085 | ||
10086 | wxPyEndAllowThreads(__tstate); | |
10087 | if (PyErr_Occurred()) SWIG_fail; | |
10088 | } | |
10089 | Py_INCREF(Py_None); resultobj = Py_None; | |
10090 | return resultobj; | |
10091 | fail: | |
10092 | return NULL; | |
10093 | } | |
10094 | ||
10095 | ||
c370783e | 10096 | static PyObject *_wrap_PseudoMetaFile_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10097 | PyObject *resultobj; |
10098 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10099 | wxRect *arg2 = 0 ; | |
10100 | double arg3 ; | |
10101 | wxRect temp2 ; | |
10102 | PyObject * obj0 = 0 ; | |
10103 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10104 | PyObject * obj2 = 0 ; |
44127b65 RD |
10105 | char *kwnames[] = { |
10106 | (char *) "self",(char *) "rect",(char *) "radius", NULL | |
10107 | }; | |
10108 | ||
8edf1c75 | 10109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10112 | { |
10113 | arg2 = &temp2; | |
10114 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10115 | } | |
c370783e | 10116 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 10117 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
10118 | { |
10119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10120 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10121 | ||
10122 | wxPyEndAllowThreads(__tstate); | |
10123 | if (PyErr_Occurred()) SWIG_fail; | |
10124 | } | |
10125 | Py_INCREF(Py_None); resultobj = Py_None; | |
10126 | return resultobj; | |
10127 | fail: | |
10128 | return NULL; | |
10129 | } | |
10130 | ||
10131 | ||
c370783e | 10132 | static PyObject *_wrap_PseudoMetaFile_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10133 | PyObject *resultobj; |
10134 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10135 | wxPoint *arg2 = 0 ; | |
10136 | wxPoint *arg3 = 0 ; | |
10137 | wxPoint *arg4 = 0 ; | |
10138 | wxPoint temp2 ; | |
10139 | wxPoint temp3 ; | |
10140 | wxPoint temp4 ; | |
10141 | PyObject * obj0 = 0 ; | |
10142 | PyObject * obj1 = 0 ; | |
10143 | PyObject * obj2 = 0 ; | |
10144 | PyObject * obj3 = 0 ; | |
10145 | char *kwnames[] = { | |
10146 | (char *) "self",(char *) "centrePt",(char *) "startPt",(char *) "endPt", NULL | |
10147 | }; | |
10148 | ||
10149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10152 | { |
10153 | arg2 = &temp2; | |
10154 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10155 | } | |
10156 | { | |
10157 | arg3 = &temp3; | |
10158 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10159 | } | |
10160 | { | |
10161 | arg4 = &temp4; | |
10162 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10163 | } | |
10164 | { | |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10166 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10167 | ||
10168 | wxPyEndAllowThreads(__tstate); | |
10169 | if (PyErr_Occurred()) SWIG_fail; | |
10170 | } | |
10171 | Py_INCREF(Py_None); resultobj = Py_None; | |
10172 | return resultobj; | |
10173 | fail: | |
10174 | return NULL; | |
10175 | } | |
10176 | ||
10177 | ||
c370783e | 10178 | static PyObject *_wrap_PseudoMetaFile_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10179 | PyObject *resultobj; |
10180 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10181 | wxRect *arg2 = 0 ; | |
10182 | double arg3 ; | |
10183 | double arg4 ; | |
10184 | wxRect temp2 ; | |
10185 | PyObject * obj0 = 0 ; | |
10186 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
10187 | PyObject * obj2 = 0 ; |
10188 | PyObject * obj3 = 0 ; | |
44127b65 RD |
10189 | char *kwnames[] = { |
10190 | (char *) "self",(char *) "rect",(char *) "startAngle",(char *) "endAngle", NULL | |
10191 | }; | |
10192 | ||
8edf1c75 | 10193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoMetaFile_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
10194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10196 | { |
10197 | arg2 = &temp2; | |
10198 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10199 | } | |
c370783e | 10200 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 10201 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10202 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 10203 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
10204 | { |
10205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10206 | (arg1)->DrawEllipticArc((wxRect const &)*arg2,arg3,arg4); | |
10207 | ||
10208 | wxPyEndAllowThreads(__tstate); | |
10209 | if (PyErr_Occurred()) SWIG_fail; | |
10210 | } | |
10211 | Py_INCREF(Py_None); resultobj = Py_None; | |
10212 | return resultobj; | |
10213 | fail: | |
10214 | return NULL; | |
10215 | } | |
10216 | ||
10217 | ||
c370783e | 10218 | static PyObject *_wrap_PseudoMetaFile_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10219 | PyObject *resultobj; |
10220 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10221 | wxRect *arg2 = 0 ; | |
10222 | wxRect temp2 ; | |
10223 | PyObject * obj0 = 0 ; | |
10224 | PyObject * obj1 = 0 ; | |
10225 | char *kwnames[] = { | |
10226 | (char *) "self",(char *) "rect", NULL | |
10227 | }; | |
10228 | ||
10229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawEllipse",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10232 | { |
10233 | arg2 = &temp2; | |
10234 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10235 | } | |
10236 | { | |
10237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10238 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
10239 | ||
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | Py_INCREF(Py_None); resultobj = Py_None; | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
c370783e | 10250 | static PyObject *_wrap_PseudoMetaFile_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10251 | PyObject *resultobj; |
10252 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10253 | wxPoint *arg2 = 0 ; | |
10254 | wxPoint temp2 ; | |
10255 | PyObject * obj0 = 0 ; | |
10256 | PyObject * obj1 = 0 ; | |
10257 | char *kwnames[] = { | |
10258 | (char *) "self",(char *) "pt", NULL | |
10259 | }; | |
10260 | ||
10261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10264 | { |
10265 | arg2 = &temp2; | |
10266 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10267 | } | |
10268 | { | |
10269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10270 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10271 | ||
10272 | wxPyEndAllowThreads(__tstate); | |
10273 | if (PyErr_Occurred()) SWIG_fail; | |
10274 | } | |
10275 | Py_INCREF(Py_None); resultobj = Py_None; | |
10276 | return resultobj; | |
10277 | fail: | |
10278 | return NULL; | |
10279 | } | |
10280 | ||
10281 | ||
c370783e | 10282 | static PyObject *_wrap_PseudoMetaFile_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10283 | PyObject *resultobj; |
10284 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10285 | wxString *arg2 = 0 ; | |
10286 | wxPoint *arg3 = 0 ; | |
10287 | bool temp2 = False ; | |
10288 | wxPoint temp3 ; | |
10289 | PyObject * obj0 = 0 ; | |
10290 | PyObject * obj1 = 0 ; | |
10291 | PyObject * obj2 = 0 ; | |
10292 | char *kwnames[] = { | |
10293 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
10294 | }; | |
10295 | ||
10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoMetaFile_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10299 | { |
10300 | arg2 = wxString_in_helper(obj1); | |
10301 | if (arg2 == NULL) SWIG_fail; | |
10302 | temp2 = True; | |
10303 | } | |
10304 | { | |
10305 | arg3 = &temp3; | |
10306 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10307 | } | |
10308 | { | |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
10315 | Py_INCREF(Py_None); resultobj = Py_None; | |
10316 | { | |
10317 | if (temp2) | |
10318 | delete arg2; | |
10319 | } | |
10320 | return resultobj; | |
10321 | fail: | |
10322 | { | |
10323 | if (temp2) | |
10324 | delete arg2; | |
10325 | } | |
10326 | return NULL; | |
10327 | } | |
10328 | ||
10329 | ||
c370783e | 10330 | static PyObject *_wrap_PseudoMetaFile_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10331 | PyObject *resultobj; |
10332 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10333 | int arg2 ; | |
10334 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10335 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10336 | PyObject * obj1 = 0 ; |
44127b65 | 10337 | char *kwnames[] = { |
a5ee0656 | 10338 | (char *) "self",(char *) "points", NULL |
44127b65 RD |
10339 | }; |
10340 | ||
a5ee0656 | 10341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawLines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a5ee0656 RD |
10344 | { |
10345 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10346 | if (arg3 == NULL) SWIG_fail; | |
10347 | } | |
44127b65 RD |
10348 | { |
10349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10350 | (arg1)->DrawLines(arg2,arg3); | |
10351 | ||
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
10354 | } | |
10355 | Py_INCREF(Py_None); resultobj = Py_None; | |
a5ee0656 RD |
10356 | { |
10357 | if (arg3) delete [] arg3; | |
10358 | } | |
44127b65 RD |
10359 | return resultobj; |
10360 | fail: | |
a5ee0656 RD |
10361 | { |
10362 | if (arg3) delete [] arg3; | |
10363 | } | |
44127b65 RD |
10364 | return NULL; |
10365 | } | |
10366 | ||
10367 | ||
c370783e | 10368 | static PyObject *_wrap_PseudoMetaFile_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10369 | PyObject *resultobj; |
10370 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10371 | int arg2 ; | |
10372 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10373 | int arg4 = (int) 0 ; | |
10374 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10375 | PyObject * obj1 = 0 ; |
44127b65 RD |
10376 | PyObject * obj2 = 0 ; |
10377 | char *kwnames[] = { | |
a5ee0656 | 10378 | (char *) "self",(char *) "points",(char *) "flags", NULL |
44127b65 RD |
10379 | }; |
10380 | ||
a5ee0656 | 10381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoMetaFile_DrawPolygon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a5ee0656 RD |
10384 | { |
10385 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10386 | if (arg3 == NULL) SWIG_fail; | |
10387 | } | |
10388 | if (obj2) { | |
c370783e | 10389 | arg4 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 10390 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 10391 | } |
44127b65 RD |
10392 | { |
10393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10394 | (arg1)->DrawPolygon(arg2,arg3,arg4); | |
10395 | ||
10396 | wxPyEndAllowThreads(__tstate); | |
10397 | if (PyErr_Occurred()) SWIG_fail; | |
10398 | } | |
10399 | Py_INCREF(Py_None); resultobj = Py_None; | |
a5ee0656 RD |
10400 | { |
10401 | if (arg3) delete [] arg3; | |
10402 | } | |
44127b65 RD |
10403 | return resultobj; |
10404 | fail: | |
a5ee0656 RD |
10405 | { |
10406 | if (arg3) delete [] arg3; | |
10407 | } | |
44127b65 RD |
10408 | return NULL; |
10409 | } | |
10410 | ||
10411 | ||
c370783e | 10412 | static PyObject *_wrap_PseudoMetaFile_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10413 | PyObject *resultobj; |
10414 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10415 | int arg2 ; | |
10416 | wxPoint *arg3 = (wxPoint *) 0 ; | |
10417 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10418 | PyObject * obj1 = 0 ; |
44127b65 | 10419 | char *kwnames[] = { |
a5ee0656 | 10420 | (char *) "self",(char *) "points", NULL |
44127b65 RD |
10421 | }; |
10422 | ||
a5ee0656 | 10423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_DrawSpline",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a5ee0656 RD |
10426 | { |
10427 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10428 | if (arg3 == NULL) SWIG_fail; | |
10429 | } | |
44127b65 RD |
10430 | { |
10431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10432 | (arg1)->DrawSpline(arg2,arg3); | |
10433 | ||
10434 | wxPyEndAllowThreads(__tstate); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | } | |
10437 | Py_INCREF(Py_None); resultobj = Py_None; | |
a5ee0656 RD |
10438 | { |
10439 | if (arg3) delete [] arg3; | |
10440 | } | |
44127b65 RD |
10441 | return resultobj; |
10442 | fail: | |
a5ee0656 RD |
10443 | { |
10444 | if (arg3) delete [] arg3; | |
10445 | } | |
44127b65 RD |
10446 | return NULL; |
10447 | } | |
10448 | ||
10449 | ||
c370783e | 10450 | static PyObject *_wrap_PseudoMetaFile_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10451 | PyObject *resultobj; |
10452 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10453 | wxRect *arg2 = 0 ; | |
10454 | wxRect temp2 ; | |
10455 | PyObject * obj0 = 0 ; | |
10456 | PyObject * obj1 = 0 ; | |
10457 | char *kwnames[] = { | |
10458 | (char *) "self",(char *) "rect", NULL | |
10459 | }; | |
10460 | ||
10461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10464 | { |
10465 | arg2 = &temp2; | |
10466 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10467 | } | |
10468 | { | |
10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10470 | (arg1)->SetClippingRect((wxRect const &)*arg2); | |
10471 | ||
10472 | wxPyEndAllowThreads(__tstate); | |
10473 | if (PyErr_Occurred()) SWIG_fail; | |
10474 | } | |
10475 | Py_INCREF(Py_None); resultobj = Py_None; | |
10476 | return resultobj; | |
10477 | fail: | |
10478 | return NULL; | |
10479 | } | |
10480 | ||
10481 | ||
c370783e | 10482 | static PyObject *_wrap_PseudoMetaFile_DestroyClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10483 | PyObject *resultobj; |
10484 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10485 | PyObject * obj0 = 0 ; | |
10486 | char *kwnames[] = { | |
10487 | (char *) "self", NULL | |
10488 | }; | |
10489 | ||
10490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PseudoMetaFile_DestroyClippingRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10493 | { |
10494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10495 | (arg1)->DestroyClippingRect(); | |
10496 | ||
10497 | wxPyEndAllowThreads(__tstate); | |
10498 | if (PyErr_Occurred()) SWIG_fail; | |
10499 | } | |
10500 | Py_INCREF(Py_None); resultobj = Py_None; | |
10501 | return resultobj; | |
10502 | fail: | |
10503 | return NULL; | |
10504 | } | |
10505 | ||
10506 | ||
c370783e | 10507 | static PyObject *_wrap_PseudoMetaFile_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10508 | PyObject *resultobj; |
10509 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10510 | wxPen *arg2 = (wxPen *) 0 ; | |
10511 | bool arg3 = (bool) FALSE ; | |
10512 | PyObject * obj0 = 0 ; | |
10513 | PyObject * obj1 = 0 ; | |
10514 | PyObject * obj2 = 0 ; | |
10515 | char *kwnames[] = { | |
10516 | (char *) "self",(char *) "pen",(char *) "isOutline", NULL | |
10517 | }; | |
10518 | ||
10519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoMetaFile_SetPen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10522 | { |
10523 | wxPen* temp; | |
10524 | if (obj1) { | |
10525 | if (obj1 == Py_None) { | |
10526 | temp = NULL; | |
10527 | } | |
10528 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
10529 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
10530 | return NULL; | |
10531 | } | |
10532 | } | |
10533 | if (temp) | |
10534 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
10535 | temp->GetWidth(), | |
10536 | temp->GetStyle()); | |
10537 | else | |
10538 | arg2 = NULL; | |
10539 | } | |
10540 | if (obj2) { | |
c370783e | 10541 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 10542 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
10543 | } |
10544 | { | |
10545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10546 | (arg1)->SetPen(arg2,arg3); | |
10547 | ||
10548 | wxPyEndAllowThreads(__tstate); | |
10549 | if (PyErr_Occurred()) SWIG_fail; | |
10550 | } | |
10551 | Py_INCREF(Py_None); resultobj = Py_None; | |
10552 | return resultobj; | |
10553 | fail: | |
10554 | return NULL; | |
10555 | } | |
10556 | ||
10557 | ||
c370783e | 10558 | static PyObject *_wrap_PseudoMetaFile_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10559 | PyObject *resultobj; |
10560 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10561 | wxBrush *arg2 = (wxBrush *) 0 ; | |
10562 | bool arg3 = (bool) FALSE ; | |
10563 | PyObject * obj0 = 0 ; | |
10564 | PyObject * obj1 = 0 ; | |
10565 | PyObject * obj2 = 0 ; | |
10566 | char *kwnames[] = { | |
10567 | (char *) "self",(char *) "brush",(char *) "isFill", NULL | |
10568 | }; | |
10569 | ||
10570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoMetaFile_SetBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10573 | { |
10574 | wxBrush* temp; | |
10575 | if (obj1) { | |
10576 | if (obj1 == Py_None) { | |
10577 | temp = NULL; | |
10578 | } | |
10579 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
10580 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
10581 | return NULL; | |
10582 | } | |
10583 | } | |
10584 | if (temp) | |
10585 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
10586 | else | |
10587 | arg2 = NULL; | |
10588 | } | |
10589 | if (obj2) { | |
c370783e | 10590 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 10591 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
10592 | } |
10593 | { | |
10594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10595 | (arg1)->SetBrush(arg2,arg3); | |
10596 | ||
10597 | wxPyEndAllowThreads(__tstate); | |
10598 | if (PyErr_Occurred()) SWIG_fail; | |
10599 | } | |
10600 | Py_INCREF(Py_None); resultobj = Py_None; | |
10601 | return resultobj; | |
10602 | fail: | |
10603 | return NULL; | |
10604 | } | |
10605 | ||
10606 | ||
c370783e | 10607 | static PyObject *_wrap_PseudoMetaFile_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10608 | PyObject *resultobj; |
10609 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10610 | wxFont *arg2 = (wxFont *) 0 ; | |
10611 | PyObject * obj0 = 0 ; | |
10612 | PyObject * obj1 = 0 ; | |
10613 | char *kwnames[] = { | |
10614 | (char *) "self",(char *) "font", NULL | |
10615 | }; | |
10616 | ||
10617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10620 | { |
10621 | wxFont* temp; | |
10622 | if (obj1) { | |
10623 | if (obj1 == Py_None) { | |
10624 | temp = NULL; | |
10625 | } | |
10626 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
10627 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
10628 | return NULL; | |
10629 | } | |
10630 | } | |
10631 | if (temp) | |
10632 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
10633 | temp->GetFamily(), | |
10634 | temp->GetStyle(), | |
10635 | temp->GetWeight(), | |
10636 | temp->GetUnderlined(), | |
10637 | temp->GetFaceName(), | |
10638 | temp->GetEncoding()); | |
10639 | else | |
10640 | arg2 = NULL; | |
10641 | } | |
10642 | { | |
10643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10644 | (arg1)->SetFont(arg2); | |
10645 | ||
10646 | wxPyEndAllowThreads(__tstate); | |
10647 | if (PyErr_Occurred()) SWIG_fail; | |
10648 | } | |
10649 | Py_INCREF(Py_None); resultobj = Py_None; | |
10650 | return resultobj; | |
10651 | fail: | |
10652 | return NULL; | |
10653 | } | |
10654 | ||
10655 | ||
c370783e | 10656 | static PyObject *_wrap_PseudoMetaFile_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10657 | PyObject *resultobj; |
10658 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10659 | wxColour *arg2 = 0 ; | |
10660 | wxColour temp2 ; | |
10661 | PyObject * obj0 = 0 ; | |
10662 | PyObject * obj1 = 0 ; | |
10663 | char *kwnames[] = { | |
10664 | (char *) "self",(char *) "colour", NULL | |
10665 | }; | |
10666 | ||
10667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10670 | { |
10671 | arg2 = &temp2; | |
10672 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10673 | } | |
10674 | { | |
10675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10676 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
10677 | ||
10678 | wxPyEndAllowThreads(__tstate); | |
10679 | if (PyErr_Occurred()) SWIG_fail; | |
10680 | } | |
10681 | Py_INCREF(Py_None); resultobj = Py_None; | |
10682 | return resultobj; | |
10683 | fail: | |
10684 | return NULL; | |
10685 | } | |
10686 | ||
10687 | ||
c370783e | 10688 | static PyObject *_wrap_PseudoMetaFile_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10689 | PyObject *resultobj; |
10690 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10691 | wxColour *arg2 = 0 ; | |
10692 | wxColour temp2 ; | |
10693 | PyObject * obj0 = 0 ; | |
10694 | PyObject * obj1 = 0 ; | |
10695 | char *kwnames[] = { | |
10696 | (char *) "self",(char *) "colour", NULL | |
10697 | }; | |
10698 | ||
10699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10702 | { |
10703 | arg2 = &temp2; | |
10704 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10705 | } | |
10706 | { | |
10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10708 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
10709 | ||
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
10713 | Py_INCREF(Py_None); resultobj = Py_None; | |
10714 | return resultobj; | |
10715 | fail: | |
10716 | return NULL; | |
10717 | } | |
10718 | ||
10719 | ||
c370783e | 10720 | static PyObject *_wrap_PseudoMetaFile_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10721 | PyObject *resultobj; |
10722 | wxPseudoMetaFile *arg1 = (wxPseudoMetaFile *) 0 ; | |
10723 | int arg2 ; | |
10724 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10725 | PyObject * obj1 = 0 ; |
44127b65 RD |
10726 | char *kwnames[] = { |
10727 | (char *) "self",(char *) "mode", NULL | |
10728 | }; | |
10729 | ||
8edf1c75 | 10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoMetaFile_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPseudoMetaFile, |
10732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10733 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10734 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
10735 | { |
10736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10737 | (arg1)->SetBackgroundMode(arg2); | |
10738 | ||
10739 | wxPyEndAllowThreads(__tstate); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
10742 | Py_INCREF(Py_None); resultobj = Py_None; | |
10743 | return resultobj; | |
10744 | fail: | |
10745 | return NULL; | |
10746 | } | |
10747 | ||
10748 | ||
c370783e | 10749 | static PyObject * PseudoMetaFile_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
10750 | PyObject *obj; |
10751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10752 | SWIG_TypeClientData(SWIGTYPE_p_wxPseudoMetaFile, obj); | |
10753 | Py_INCREF(obj); | |
10754 | return Py_BuildValue((char *)""); | |
10755 | } | |
c370783e | 10756 | static PyObject *_wrap_new_PyRectangleShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10757 | PyObject *resultobj; |
10758 | double arg1 = (double) 0.0 ; | |
10759 | double arg2 = (double) 0.0 ; | |
10760 | wxPyRectangleShape *result; | |
8edf1c75 RD |
10761 | PyObject * obj0 = 0 ; |
10762 | PyObject * obj1 = 0 ; | |
44127b65 RD |
10763 | char *kwnames[] = { |
10764 | (char *) "width",(char *) "height", NULL | |
10765 | }; | |
10766 | ||
8edf1c75 RD |
10767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyRectangleShape",kwnames,&obj0,&obj1)) goto fail; |
10768 | if (obj0) { | |
c370783e | 10769 | arg1 = (double)SWIG_As_double(obj0); |
2f4c0a16 | 10770 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
10771 | } |
10772 | if (obj1) { | |
c370783e | 10773 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 10774 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 10775 | } |
44127b65 RD |
10776 | { |
10777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10778 | result = (wxPyRectangleShape *)new wxPyRectangleShape(arg1,arg2); | |
10779 | ||
10780 | wxPyEndAllowThreads(__tstate); | |
10781 | if (PyErr_Occurred()) SWIG_fail; | |
10782 | } | |
2f4c0a16 | 10783 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyRectangleShape, 1); |
44127b65 RD |
10784 | return resultobj; |
10785 | fail: | |
10786 | return NULL; | |
10787 | } | |
10788 | ||
10789 | ||
c370783e | 10790 | static PyObject *_wrap_PyRectangleShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10791 | PyObject *resultobj; |
10792 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10793 | PyObject *arg2 = (PyObject *) 0 ; | |
10794 | PyObject *arg3 = (PyObject *) 0 ; | |
10795 | PyObject * obj0 = 0 ; | |
10796 | PyObject * obj1 = 0 ; | |
10797 | PyObject * obj2 = 0 ; | |
10798 | char *kwnames[] = { | |
10799 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10800 | }; | |
10801 | ||
10802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyRectangleShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
10804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10805 | arg2 = obj1; |
10806 | arg3 = obj2; | |
10807 | { | |
10808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10809 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10810 | ||
10811 | wxPyEndAllowThreads(__tstate); | |
10812 | if (PyErr_Occurred()) SWIG_fail; | |
10813 | } | |
10814 | Py_INCREF(Py_None); resultobj = Py_None; | |
10815 | return resultobj; | |
10816 | fail: | |
10817 | return NULL; | |
10818 | } | |
10819 | ||
10820 | ||
c370783e | 10821 | static PyObject *_wrap_PyRectangleShape_SetCornerRadius(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10822 | PyObject *resultobj; |
10823 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10824 | double arg2 ; | |
10825 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10826 | PyObject * obj1 = 0 ; |
44127b65 RD |
10827 | char *kwnames[] = { |
10828 | (char *) "self",(char *) "radius", NULL | |
10829 | }; | |
10830 | ||
8edf1c75 | 10831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_SetCornerRadius",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
10833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10834 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 10835 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
10836 | { |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | (arg1)->SetCornerRadius(arg2); | |
10839 | ||
10840 | wxPyEndAllowThreads(__tstate); | |
10841 | if (PyErr_Occurred()) SWIG_fail; | |
10842 | } | |
10843 | Py_INCREF(Py_None); resultobj = Py_None; | |
10844 | return resultobj; | |
10845 | fail: | |
10846 | return NULL; | |
10847 | } | |
10848 | ||
10849 | ||
c370783e | 10850 | static PyObject *_wrap_PyRectangleShape_GetCornerRadius(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
10851 | PyObject *resultobj; |
10852 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10853 | double result; | |
10854 | PyObject * obj0 = 0 ; | |
10855 | char *kwnames[] = { | |
10856 | (char *) "self", NULL | |
10857 | }; | |
10858 | ||
10859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyRectangleShape_GetCornerRadius",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
10861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
10862 | { |
10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10864 | result = (double)(arg1)->GetCornerRadius(); | |
10865 | ||
10866 | wxPyEndAllowThreads(__tstate); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | } | |
c370783e | 10869 | resultobj = SWIG_From_double((double)result); |
7a0a63ae RD |
10870 | return resultobj; |
10871 | fail: | |
10872 | return NULL; | |
10873 | } | |
10874 | ||
10875 | ||
c370783e | 10876 | static PyObject *_wrap_PyRectangleShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10877 | PyObject *resultobj; |
10878 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10879 | PyObject * obj0 = 0 ; | |
10880 | char *kwnames[] = { | |
10881 | (char *) "self", NULL | |
10882 | }; | |
10883 | ||
10884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyRectangleShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
10886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
10887 | { |
10888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10889 | (arg1)->base_OnDelete(); | |
10890 | ||
10891 | wxPyEndAllowThreads(__tstate); | |
10892 | if (PyErr_Occurred()) SWIG_fail; | |
10893 | } | |
10894 | Py_INCREF(Py_None); resultobj = Py_None; | |
10895 | return resultobj; | |
10896 | fail: | |
10897 | return NULL; | |
10898 | } | |
10899 | ||
10900 | ||
c370783e | 10901 | static PyObject *_wrap_PyRectangleShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10902 | PyObject *resultobj; |
10903 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10904 | wxDC *arg2 = 0 ; | |
10905 | PyObject * obj0 = 0 ; | |
10906 | PyObject * obj1 = 0 ; | |
10907 | char *kwnames[] = { | |
10908 | (char *) "self",(char *) "dc", NULL | |
10909 | }; | |
10910 | ||
10911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
10913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10914 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
10915 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10916 | SWIG_fail; | |
44127b65 | 10917 | if (arg2 == NULL) { |
2f4c0a16 RD |
10918 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10919 | SWIG_fail; | |
44127b65 RD |
10920 | } |
10921 | { | |
10922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10923 | (arg1)->base_OnDraw(*arg2); | |
10924 | ||
10925 | wxPyEndAllowThreads(__tstate); | |
10926 | if (PyErr_Occurred()) SWIG_fail; | |
10927 | } | |
10928 | Py_INCREF(Py_None); resultobj = Py_None; | |
10929 | return resultobj; | |
10930 | fail: | |
10931 | return NULL; | |
10932 | } | |
10933 | ||
10934 | ||
c370783e | 10935 | static PyObject *_wrap_PyRectangleShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10936 | PyObject *resultobj; |
10937 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10938 | wxDC *arg2 = 0 ; | |
10939 | PyObject * obj0 = 0 ; | |
10940 | PyObject * obj1 = 0 ; | |
10941 | char *kwnames[] = { | |
10942 | (char *) "self",(char *) "dc", NULL | |
10943 | }; | |
10944 | ||
10945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
10947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
10949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10950 | SWIG_fail; | |
44127b65 | 10951 | if (arg2 == NULL) { |
2f4c0a16 RD |
10952 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10953 | SWIG_fail; | |
44127b65 RD |
10954 | } |
10955 | { | |
10956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10957 | (arg1)->base_OnDrawContents(*arg2); | |
10958 | ||
10959 | wxPyEndAllowThreads(__tstate); | |
10960 | if (PyErr_Occurred()) SWIG_fail; | |
10961 | } | |
10962 | Py_INCREF(Py_None); resultobj = Py_None; | |
10963 | return resultobj; | |
10964 | fail: | |
10965 | return NULL; | |
10966 | } | |
10967 | ||
10968 | ||
c370783e | 10969 | static PyObject *_wrap_PyRectangleShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
10970 | PyObject *resultobj; |
10971 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
10972 | wxDC *arg2 = 0 ; | |
10973 | bool arg3 = (bool) FALSE ; | |
10974 | PyObject * obj0 = 0 ; | |
10975 | PyObject * obj1 = 0 ; | |
10976 | PyObject * obj2 = 0 ; | |
10977 | char *kwnames[] = { | |
10978 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
10979 | }; | |
10980 | ||
10981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyRectangleShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
10983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10984 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
10985 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10986 | SWIG_fail; | |
44127b65 | 10987 | if (arg2 == NULL) { |
2f4c0a16 RD |
10988 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10989 | SWIG_fail; | |
44127b65 RD |
10990 | } |
10991 | if (obj2) { | |
c370783e | 10992 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 10993 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
10994 | } |
10995 | { | |
10996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10997 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
10998 | ||
10999 | wxPyEndAllowThreads(__tstate); | |
11000 | if (PyErr_Occurred()) SWIG_fail; | |
11001 | } | |
11002 | Py_INCREF(Py_None); resultobj = Py_None; | |
11003 | return resultobj; | |
11004 | fail: | |
11005 | return NULL; | |
11006 | } | |
11007 | ||
11008 | ||
c370783e | 11009 | static PyObject *_wrap_PyRectangleShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11010 | PyObject *resultobj; |
11011 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11012 | wxDC *arg2 = 0 ; | |
11013 | PyObject * obj0 = 0 ; | |
11014 | PyObject * obj1 = 0 ; | |
11015 | char *kwnames[] = { | |
11016 | (char *) "self",(char *) "dc", NULL | |
11017 | }; | |
11018 | ||
11019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11023 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11024 | SWIG_fail; | |
44127b65 | 11025 | if (arg2 == NULL) { |
2f4c0a16 RD |
11026 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11027 | SWIG_fail; | |
44127b65 RD |
11028 | } |
11029 | { | |
11030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11031 | (arg1)->base_OnMoveLinks(*arg2); | |
11032 | ||
11033 | wxPyEndAllowThreads(__tstate); | |
11034 | if (PyErr_Occurred()) SWIG_fail; | |
11035 | } | |
11036 | Py_INCREF(Py_None); resultobj = Py_None; | |
11037 | return resultobj; | |
11038 | fail: | |
11039 | return NULL; | |
11040 | } | |
11041 | ||
11042 | ||
c370783e | 11043 | static PyObject *_wrap_PyRectangleShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11044 | PyObject *resultobj; |
11045 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11046 | wxDC *arg2 = 0 ; | |
11047 | PyObject * obj0 = 0 ; | |
11048 | PyObject * obj1 = 0 ; | |
11049 | char *kwnames[] = { | |
11050 | (char *) "self",(char *) "dc", NULL | |
11051 | }; | |
11052 | ||
11053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11056 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11057 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11058 | SWIG_fail; | |
44127b65 | 11059 | if (arg2 == NULL) { |
2f4c0a16 RD |
11060 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11061 | SWIG_fail; | |
44127b65 RD |
11062 | } |
11063 | { | |
11064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11065 | (arg1)->base_OnErase(*arg2); | |
11066 | ||
11067 | wxPyEndAllowThreads(__tstate); | |
11068 | if (PyErr_Occurred()) SWIG_fail; | |
11069 | } | |
11070 | Py_INCREF(Py_None); resultobj = Py_None; | |
11071 | return resultobj; | |
11072 | fail: | |
11073 | return NULL; | |
11074 | } | |
11075 | ||
11076 | ||
c370783e | 11077 | static PyObject *_wrap_PyRectangleShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11078 | PyObject *resultobj; |
11079 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11080 | wxDC *arg2 = 0 ; | |
11081 | PyObject * obj0 = 0 ; | |
11082 | PyObject * obj1 = 0 ; | |
11083 | char *kwnames[] = { | |
11084 | (char *) "self",(char *) "dc", NULL | |
11085 | }; | |
11086 | ||
11087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11090 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11091 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11092 | SWIG_fail; | |
44127b65 | 11093 | if (arg2 == NULL) { |
2f4c0a16 RD |
11094 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11095 | SWIG_fail; | |
44127b65 RD |
11096 | } |
11097 | { | |
11098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11099 | (arg1)->base_OnEraseContents(*arg2); | |
11100 | ||
11101 | wxPyEndAllowThreads(__tstate); | |
11102 | if (PyErr_Occurred()) SWIG_fail; | |
11103 | } | |
11104 | Py_INCREF(Py_None); resultobj = Py_None; | |
11105 | return resultobj; | |
11106 | fail: | |
11107 | return NULL; | |
11108 | } | |
11109 | ||
11110 | ||
c370783e | 11111 | static PyObject *_wrap_PyRectangleShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11112 | PyObject *resultobj; |
11113 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11114 | wxDC *arg2 = 0 ; | |
11115 | PyObject * obj0 = 0 ; | |
11116 | PyObject * obj1 = 0 ; | |
11117 | char *kwnames[] = { | |
11118 | (char *) "self",(char *) "dc", NULL | |
11119 | }; | |
11120 | ||
11121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11125 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11126 | SWIG_fail; | |
44127b65 | 11127 | if (arg2 == NULL) { |
2f4c0a16 RD |
11128 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11129 | SWIG_fail; | |
44127b65 RD |
11130 | } |
11131 | { | |
11132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11133 | (arg1)->base_OnHighlight(*arg2); | |
11134 | ||
11135 | wxPyEndAllowThreads(__tstate); | |
11136 | if (PyErr_Occurred()) SWIG_fail; | |
11137 | } | |
11138 | Py_INCREF(Py_None); resultobj = Py_None; | |
11139 | return resultobj; | |
11140 | fail: | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
c370783e | 11145 | static PyObject *_wrap_PyRectangleShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11146 | PyObject *resultobj; |
11147 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11148 | double arg2 ; | |
11149 | double arg3 ; | |
11150 | int arg4 = (int) 0 ; | |
11151 | int arg5 = (int) 0 ; | |
11152 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11153 | PyObject * obj1 = 0 ; |
11154 | PyObject * obj2 = 0 ; | |
11155 | PyObject * obj3 = 0 ; | |
11156 | PyObject * obj4 = 0 ; | |
44127b65 RD |
11157 | char *kwnames[] = { |
11158 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11159 | }; | |
11160 | ||
8edf1c75 | 11161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11164 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 11165 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11166 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11167 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11168 | if (obj3) { |
c370783e | 11169 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 11170 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11171 | } |
11172 | if (obj4) { | |
c370783e | 11173 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11174 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11175 | } |
44127b65 RD |
11176 | { |
11177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11178 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
11179 | ||
11180 | wxPyEndAllowThreads(__tstate); | |
11181 | if (PyErr_Occurred()) SWIG_fail; | |
11182 | } | |
11183 | Py_INCREF(Py_None); resultobj = Py_None; | |
11184 | return resultobj; | |
11185 | fail: | |
11186 | return NULL; | |
11187 | } | |
11188 | ||
11189 | ||
c370783e | 11190 | static PyObject *_wrap_PyRectangleShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11191 | PyObject *resultobj; |
11192 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11193 | double arg2 ; | |
11194 | double arg3 ; | |
11195 | int arg4 = (int) 0 ; | |
11196 | int arg5 = (int) 0 ; | |
11197 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11198 | PyObject * obj1 = 0 ; |
11199 | PyObject * obj2 = 0 ; | |
11200 | PyObject * obj3 = 0 ; | |
11201 | PyObject * obj4 = 0 ; | |
44127b65 RD |
11202 | char *kwnames[] = { |
11203 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11204 | }; | |
11205 | ||
8edf1c75 | 11206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11209 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 11210 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11211 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11212 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11213 | if (obj3) { |
c370783e | 11214 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 11215 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11216 | } |
11217 | if (obj4) { | |
c370783e | 11218 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11219 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11220 | } |
44127b65 RD |
11221 | { |
11222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11223 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
11224 | ||
11225 | wxPyEndAllowThreads(__tstate); | |
11226 | if (PyErr_Occurred()) SWIG_fail; | |
11227 | } | |
11228 | Py_INCREF(Py_None); resultobj = Py_None; | |
11229 | return resultobj; | |
11230 | fail: | |
11231 | return NULL; | |
11232 | } | |
11233 | ||
11234 | ||
c370783e | 11235 | static PyObject *_wrap_PyRectangleShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11236 | PyObject *resultobj; |
11237 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11238 | double arg2 ; | |
11239 | double arg3 ; | |
11240 | int arg4 = (int) 0 ; | |
11241 | int arg5 = (int) 0 ; | |
11242 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11243 | PyObject * obj1 = 0 ; |
11244 | PyObject * obj2 = 0 ; | |
11245 | PyObject * obj3 = 0 ; | |
11246 | PyObject * obj4 = 0 ; | |
44127b65 RD |
11247 | char *kwnames[] = { |
11248 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11249 | }; | |
11250 | ||
8edf1c75 | 11251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11254 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 11255 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11256 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11257 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11258 | if (obj3) { |
c370783e | 11259 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 11260 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11261 | } |
11262 | if (obj4) { | |
c370783e | 11263 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11264 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11265 | } |
11266 | { | |
11267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11268 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
11269 | ||
11270 | wxPyEndAllowThreads(__tstate); | |
11271 | if (PyErr_Occurred()) SWIG_fail; | |
11272 | } | |
11273 | Py_INCREF(Py_None); resultobj = Py_None; | |
11274 | return resultobj; | |
11275 | fail: | |
11276 | return NULL; | |
11277 | } | |
11278 | ||
11279 | ||
c370783e | 11280 | static PyObject *_wrap_PyRectangleShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
11281 | PyObject *resultobj; |
11282 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
44127b65 RD |
11283 | double arg2 ; |
11284 | double arg3 ; | |
11285 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11286 | PyObject * obj1 = 0 ; |
11287 | PyObject * obj2 = 0 ; | |
44127b65 RD |
11288 | char *kwnames[] = { |
11289 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11290 | }; | |
11291 | ||
8edf1c75 | 11292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyRectangleShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11295 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 11296 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11297 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11298 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
11299 | { |
11300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11301 | (arg1)->base_OnSize(arg2,arg3); | |
11302 | ||
11303 | wxPyEndAllowThreads(__tstate); | |
11304 | if (PyErr_Occurred()) SWIG_fail; | |
11305 | } | |
11306 | Py_INCREF(Py_None); resultobj = Py_None; | |
11307 | return resultobj; | |
11308 | fail: | |
11309 | return NULL; | |
11310 | } | |
11311 | ||
11312 | ||
c370783e | 11313 | static PyObject *_wrap_PyRectangleShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11314 | PyObject *resultobj; |
11315 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11316 | wxDC *arg2 = 0 ; | |
11317 | double arg3 ; | |
11318 | double arg4 ; | |
11319 | double arg5 ; | |
11320 | double arg6 ; | |
11321 | bool arg7 = (bool) True ; | |
11322 | bool result; | |
11323 | PyObject * obj0 = 0 ; | |
11324 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11325 | PyObject * obj2 = 0 ; |
11326 | PyObject * obj3 = 0 ; | |
11327 | PyObject * obj4 = 0 ; | |
11328 | PyObject * obj5 = 0 ; | |
44127b65 RD |
11329 | PyObject * obj6 = 0 ; |
11330 | char *kwnames[] = { | |
11331 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
11332 | }; | |
11333 | ||
8edf1c75 | 11334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyRectangleShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
11335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11338 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11339 | SWIG_fail; | |
44127b65 | 11340 | if (arg2 == NULL) { |
2f4c0a16 RD |
11341 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11342 | SWIG_fail; | |
11343 | } | |
c370783e | 11344 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11345 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11346 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 11347 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11348 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 11349 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11350 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 11351 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 11352 | if (obj6) { |
c370783e | 11353 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 11354 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
11355 | } |
11356 | { | |
11357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11358 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
11359 | ||
11360 | wxPyEndAllowThreads(__tstate); | |
11361 | if (PyErr_Occurred()) SWIG_fail; | |
11362 | } | |
fbc46b20 RD |
11363 | { |
11364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11365 | } | |
44127b65 RD |
11366 | return resultobj; |
11367 | fail: | |
11368 | return NULL; | |
11369 | } | |
11370 | ||
11371 | ||
c370783e | 11372 | static PyObject *_wrap_PyRectangleShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11373 | PyObject *resultobj; |
11374 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11375 | wxDC *arg2 = 0 ; | |
11376 | double arg3 ; | |
11377 | double arg4 ; | |
11378 | double arg5 ; | |
11379 | double arg6 ; | |
11380 | bool arg7 = (bool) True ; | |
11381 | PyObject * obj0 = 0 ; | |
11382 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11383 | PyObject * obj2 = 0 ; |
11384 | PyObject * obj3 = 0 ; | |
11385 | PyObject * obj4 = 0 ; | |
11386 | PyObject * obj5 = 0 ; | |
44127b65 RD |
11387 | PyObject * obj6 = 0 ; |
11388 | char *kwnames[] = { | |
11389 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
11390 | }; | |
11391 | ||
8edf1c75 | 11392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyRectangleShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
11393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11395 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11396 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11397 | SWIG_fail; | |
44127b65 | 11398 | if (arg2 == NULL) { |
2f4c0a16 RD |
11399 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11400 | SWIG_fail; | |
11401 | } | |
c370783e | 11402 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11403 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11404 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 11405 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11406 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 11407 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11408 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 11409 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 11410 | if (obj6) { |
c370783e | 11411 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 11412 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
11413 | } |
11414 | { | |
11415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11416 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
11417 | ||
11418 | wxPyEndAllowThreads(__tstate); | |
11419 | if (PyErr_Occurred()) SWIG_fail; | |
11420 | } | |
11421 | Py_INCREF(Py_None); resultobj = Py_None; | |
11422 | return resultobj; | |
11423 | fail: | |
11424 | return NULL; | |
11425 | } | |
11426 | ||
11427 | ||
c370783e | 11428 | static PyObject *_wrap_PyRectangleShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11429 | PyObject *resultobj; |
11430 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11431 | bool arg2 ; | |
11432 | double arg3 ; | |
11433 | double arg4 ; | |
11434 | int arg5 = (int) 0 ; | |
11435 | int arg6 = (int) 0 ; | |
11436 | PyObject * obj0 = 0 ; | |
11437 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11438 | PyObject * obj2 = 0 ; |
11439 | PyObject * obj3 = 0 ; | |
11440 | PyObject * obj4 = 0 ; | |
11441 | PyObject * obj5 = 0 ; | |
44127b65 RD |
11442 | char *kwnames[] = { |
11443 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11444 | }; | |
11445 | ||
8edf1c75 | 11446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyRectangleShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
11447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11449 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 11450 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11451 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11452 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11453 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 11454 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11455 | if (obj4) { |
c370783e | 11456 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11457 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11458 | } |
11459 | if (obj5) { | |
c370783e | 11460 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 11461 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11462 | } |
44127b65 RD |
11463 | { |
11464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11465 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
11466 | ||
11467 | wxPyEndAllowThreads(__tstate); | |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | } | |
11470 | Py_INCREF(Py_None); resultobj = Py_None; | |
11471 | return resultobj; | |
11472 | fail: | |
11473 | return NULL; | |
11474 | } | |
11475 | ||
11476 | ||
c370783e | 11477 | static PyObject *_wrap_PyRectangleShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11478 | PyObject *resultobj; |
11479 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11480 | double arg2 ; | |
11481 | double arg3 ; | |
11482 | int arg4 = (int) 0 ; | |
11483 | int arg5 = (int) 0 ; | |
11484 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11485 | PyObject * obj1 = 0 ; |
11486 | PyObject * obj2 = 0 ; | |
11487 | PyObject * obj3 = 0 ; | |
11488 | PyObject * obj4 = 0 ; | |
44127b65 RD |
11489 | char *kwnames[] = { |
11490 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11491 | }; | |
11492 | ||
8edf1c75 | 11493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11496 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 11497 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11498 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11499 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11500 | if (obj3) { |
c370783e | 11501 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 11502 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11503 | } |
11504 | if (obj4) { | |
c370783e | 11505 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11506 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11507 | } |
44127b65 RD |
11508 | { |
11509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11510 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
11511 | ||
11512 | wxPyEndAllowThreads(__tstate); | |
11513 | if (PyErr_Occurred()) SWIG_fail; | |
11514 | } | |
11515 | Py_INCREF(Py_None); resultobj = Py_None; | |
11516 | return resultobj; | |
11517 | fail: | |
11518 | return NULL; | |
11519 | } | |
11520 | ||
11521 | ||
c370783e | 11522 | static PyObject *_wrap_PyRectangleShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11523 | PyObject *resultobj; |
11524 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11525 | double arg2 ; | |
11526 | double arg3 ; | |
11527 | int arg4 = (int) 0 ; | |
11528 | int arg5 = (int) 0 ; | |
11529 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11530 | PyObject * obj1 = 0 ; |
11531 | PyObject * obj2 = 0 ; | |
11532 | PyObject * obj3 = 0 ; | |
11533 | PyObject * obj4 = 0 ; | |
44127b65 RD |
11534 | char *kwnames[] = { |
11535 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11536 | }; | |
11537 | ||
8edf1c75 | 11538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11541 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 11542 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11543 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11544 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11545 | if (obj3) { |
c370783e | 11546 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 11547 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11548 | } |
11549 | if (obj4) { | |
c370783e | 11550 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11551 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11552 | } |
44127b65 RD |
11553 | { |
11554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11555 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
11556 | ||
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | Py_INCREF(Py_None); resultobj = Py_None; | |
11561 | return resultobj; | |
11562 | fail: | |
11563 | return NULL; | |
11564 | } | |
11565 | ||
11566 | ||
c370783e | 11567 | static PyObject *_wrap_PyRectangleShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11568 | PyObject *resultobj; |
11569 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11570 | bool arg2 ; | |
11571 | double arg3 ; | |
11572 | double arg4 ; | |
11573 | int arg5 = (int) 0 ; | |
11574 | int arg6 = (int) 0 ; | |
11575 | PyObject * obj0 = 0 ; | |
11576 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11577 | PyObject * obj2 = 0 ; |
11578 | PyObject * obj3 = 0 ; | |
11579 | PyObject * obj4 = 0 ; | |
11580 | PyObject * obj5 = 0 ; | |
44127b65 RD |
11581 | char *kwnames[] = { |
11582 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11583 | }; | |
11584 | ||
8edf1c75 | 11585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyRectangleShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
11586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11588 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 11589 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11590 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11591 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11592 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 11593 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11594 | if (obj4) { |
c370783e | 11595 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11596 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11597 | } |
11598 | if (obj5) { | |
c370783e | 11599 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 11600 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11601 | } |
44127b65 RD |
11602 | { |
11603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11604 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
11605 | ||
11606 | wxPyEndAllowThreads(__tstate); | |
11607 | if (PyErr_Occurred()) SWIG_fail; | |
11608 | } | |
11609 | Py_INCREF(Py_None); resultobj = Py_None; | |
11610 | return resultobj; | |
11611 | fail: | |
11612 | return NULL; | |
11613 | } | |
11614 | ||
11615 | ||
c370783e | 11616 | static PyObject *_wrap_PyRectangleShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11617 | PyObject *resultobj; |
11618 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11619 | double arg2 ; | |
11620 | double arg3 ; | |
11621 | int arg4 = (int) 0 ; | |
11622 | int arg5 = (int) 0 ; | |
11623 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11624 | PyObject * obj1 = 0 ; |
11625 | PyObject * obj2 = 0 ; | |
11626 | PyObject * obj3 = 0 ; | |
11627 | PyObject * obj4 = 0 ; | |
44127b65 RD |
11628 | char *kwnames[] = { |
11629 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11630 | }; | |
11631 | ||
8edf1c75 | 11632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11635 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 11636 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11637 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11638 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11639 | if (obj3) { |
c370783e | 11640 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 11641 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11642 | } |
11643 | if (obj4) { | |
c370783e | 11644 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11645 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11646 | } |
44127b65 RD |
11647 | { |
11648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11649 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
11650 | ||
11651 | wxPyEndAllowThreads(__tstate); | |
11652 | if (PyErr_Occurred()) SWIG_fail; | |
11653 | } | |
11654 | Py_INCREF(Py_None); resultobj = Py_None; | |
11655 | return resultobj; | |
11656 | fail: | |
11657 | return NULL; | |
11658 | } | |
11659 | ||
11660 | ||
c370783e | 11661 | static PyObject *_wrap_PyRectangleShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11662 | PyObject *resultobj; |
11663 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11664 | double arg2 ; | |
11665 | double arg3 ; | |
11666 | int arg4 = (int) 0 ; | |
11667 | int arg5 = (int) 0 ; | |
11668 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11669 | PyObject * obj1 = 0 ; |
11670 | PyObject * obj2 = 0 ; | |
11671 | PyObject * obj3 = 0 ; | |
11672 | PyObject * obj4 = 0 ; | |
44127b65 RD |
11673 | char *kwnames[] = { |
11674 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11675 | }; | |
11676 | ||
8edf1c75 | 11677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyRectangleShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11680 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 11681 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11682 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11683 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11684 | if (obj3) { |
c370783e | 11685 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 11686 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11687 | } |
11688 | if (obj4) { | |
c370783e | 11689 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11690 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11691 | } |
44127b65 RD |
11692 | { |
11693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11694 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
11695 | ||
11696 | wxPyEndAllowThreads(__tstate); | |
11697 | if (PyErr_Occurred()) SWIG_fail; | |
11698 | } | |
11699 | Py_INCREF(Py_None); resultobj = Py_None; | |
11700 | return resultobj; | |
11701 | fail: | |
11702 | return NULL; | |
11703 | } | |
11704 | ||
11705 | ||
c370783e | 11706 | static PyObject *_wrap_PyRectangleShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11707 | PyObject *resultobj; |
11708 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11709 | wxDC *arg2 = 0 ; | |
11710 | double arg3 ; | |
11711 | double arg4 ; | |
11712 | double arg5 ; | |
11713 | double arg6 ; | |
11714 | PyObject * obj0 = 0 ; | |
11715 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11716 | PyObject * obj2 = 0 ; |
11717 | PyObject * obj3 = 0 ; | |
11718 | PyObject * obj4 = 0 ; | |
11719 | PyObject * obj5 = 0 ; | |
44127b65 RD |
11720 | char *kwnames[] = { |
11721 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
11722 | }; | |
11723 | ||
8edf1c75 | 11724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyRectangleShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
11725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11727 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11728 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11729 | SWIG_fail; | |
44127b65 | 11730 | if (arg2 == NULL) { |
2f4c0a16 RD |
11731 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11732 | SWIG_fail; | |
8edf1c75 | 11733 | } |
c370783e | 11734 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11735 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11736 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 11737 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11738 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 11739 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11740 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 11741 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
11742 | { |
11743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11744 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
11745 | ||
11746 | wxPyEndAllowThreads(__tstate); | |
11747 | if (PyErr_Occurred()) SWIG_fail; | |
11748 | } | |
11749 | Py_INCREF(Py_None); resultobj = Py_None; | |
11750 | return resultobj; | |
11751 | fail: | |
11752 | return NULL; | |
11753 | } | |
11754 | ||
11755 | ||
c370783e | 11756 | static PyObject *_wrap_PyRectangleShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11757 | PyObject *resultobj; |
11758 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11759 | wxDC *arg2 = 0 ; | |
11760 | PyObject * obj0 = 0 ; | |
11761 | PyObject * obj1 = 0 ; | |
11762 | char *kwnames[] = { | |
11763 | (char *) "self",(char *) "dc", NULL | |
11764 | }; | |
11765 | ||
11766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11770 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11771 | SWIG_fail; | |
44127b65 | 11772 | if (arg2 == NULL) { |
2f4c0a16 RD |
11773 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11774 | SWIG_fail; | |
44127b65 RD |
11775 | } |
11776 | { | |
11777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11778 | (arg1)->base_OnDrawControlPoints(*arg2); | |
11779 | ||
11780 | wxPyEndAllowThreads(__tstate); | |
11781 | if (PyErr_Occurred()) SWIG_fail; | |
11782 | } | |
11783 | Py_INCREF(Py_None); resultobj = Py_None; | |
11784 | return resultobj; | |
11785 | fail: | |
11786 | return NULL; | |
11787 | } | |
11788 | ||
11789 | ||
c370783e | 11790 | static PyObject *_wrap_PyRectangleShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11791 | PyObject *resultobj; |
11792 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11793 | wxDC *arg2 = 0 ; | |
11794 | PyObject * obj0 = 0 ; | |
11795 | PyObject * obj1 = 0 ; | |
11796 | char *kwnames[] = { | |
11797 | (char *) "self",(char *) "dc", NULL | |
11798 | }; | |
11799 | ||
11800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyRectangleShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11804 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11805 | SWIG_fail; | |
44127b65 | 11806 | if (arg2 == NULL) { |
2f4c0a16 RD |
11807 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11808 | SWIG_fail; | |
44127b65 RD |
11809 | } |
11810 | { | |
11811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11812 | (arg1)->base_OnEraseControlPoints(*arg2); | |
11813 | ||
11814 | wxPyEndAllowThreads(__tstate); | |
11815 | if (PyErr_Occurred()) SWIG_fail; | |
11816 | } | |
11817 | Py_INCREF(Py_None); resultobj = Py_None; | |
11818 | return resultobj; | |
11819 | fail: | |
11820 | return NULL; | |
11821 | } | |
11822 | ||
11823 | ||
c370783e | 11824 | static PyObject *_wrap_PyRectangleShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11825 | PyObject *resultobj; |
11826 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11827 | wxDC *arg2 = 0 ; | |
11828 | bool arg3 = (bool) True ; | |
11829 | PyObject * obj0 = 0 ; | |
11830 | PyObject * obj1 = 0 ; | |
11831 | PyObject * obj2 = 0 ; | |
11832 | char *kwnames[] = { | |
11833 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
11834 | }; | |
11835 | ||
11836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyRectangleShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
11837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11839 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
11840 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11841 | SWIG_fail; | |
44127b65 | 11842 | if (arg2 == NULL) { |
2f4c0a16 RD |
11843 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11844 | SWIG_fail; | |
44127b65 RD |
11845 | } |
11846 | if (obj2) { | |
c370783e | 11847 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 11848 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
11849 | } |
11850 | { | |
11851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11852 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
11853 | ||
11854 | wxPyEndAllowThreads(__tstate); | |
11855 | if (PyErr_Occurred()) SWIG_fail; | |
11856 | } | |
11857 | Py_INCREF(Py_None); resultobj = Py_None; | |
11858 | return resultobj; | |
11859 | fail: | |
11860 | return NULL; | |
11861 | } | |
11862 | ||
11863 | ||
c370783e | 11864 | static PyObject *_wrap_PyRectangleShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11865 | PyObject *resultobj; |
11866 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11867 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
11868 | bool arg3 ; | |
11869 | double arg4 ; | |
11870 | double arg5 ; | |
11871 | int arg6 = (int) 0 ; | |
11872 | int arg7 = (int) 0 ; | |
11873 | PyObject * obj0 = 0 ; | |
11874 | PyObject * obj1 = 0 ; | |
11875 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
11876 | PyObject * obj3 = 0 ; |
11877 | PyObject * obj4 = 0 ; | |
11878 | PyObject * obj5 = 0 ; | |
11879 | PyObject * obj6 = 0 ; | |
44127b65 RD |
11880 | char *kwnames[] = { |
11881 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11882 | }; | |
11883 | ||
8edf1c75 | 11884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyRectangleShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
11885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11887 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
11888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11889 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 11890 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11891 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 11892 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11893 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 11894 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11895 | if (obj5) { |
c370783e | 11896 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 11897 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11898 | } |
11899 | if (obj6) { | |
c370783e | 11900 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 11901 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11902 | } |
44127b65 RD |
11903 | { |
11904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11905 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
11906 | ||
11907 | wxPyEndAllowThreads(__tstate); | |
11908 | if (PyErr_Occurred()) SWIG_fail; | |
11909 | } | |
11910 | Py_INCREF(Py_None); resultobj = Py_None; | |
11911 | return resultobj; | |
11912 | fail: | |
11913 | return NULL; | |
11914 | } | |
11915 | ||
11916 | ||
c370783e | 11917 | static PyObject *_wrap_PyRectangleShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11918 | PyObject *resultobj; |
11919 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11920 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
11921 | double arg3 ; | |
11922 | double arg4 ; | |
11923 | int arg5 = (int) 0 ; | |
11924 | int arg6 = (int) 0 ; | |
11925 | PyObject * obj0 = 0 ; | |
11926 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11927 | PyObject * obj2 = 0 ; |
11928 | PyObject * obj3 = 0 ; | |
11929 | PyObject * obj4 = 0 ; | |
11930 | PyObject * obj5 = 0 ; | |
44127b65 RD |
11931 | char *kwnames[] = { |
11932 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11933 | }; | |
11934 | ||
8edf1c75 | 11935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyRectangleShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
11936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11938 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
11939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11940 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11941 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11942 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 11943 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11944 | if (obj4) { |
c370783e | 11945 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11946 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11947 | } |
11948 | if (obj5) { | |
c370783e | 11949 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 11950 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11951 | } |
44127b65 RD |
11952 | { |
11953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11954 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
11955 | ||
11956 | wxPyEndAllowThreads(__tstate); | |
11957 | if (PyErr_Occurred()) SWIG_fail; | |
11958 | } | |
11959 | Py_INCREF(Py_None); resultobj = Py_None; | |
11960 | return resultobj; | |
11961 | fail: | |
11962 | return NULL; | |
11963 | } | |
11964 | ||
11965 | ||
c370783e | 11966 | static PyObject *_wrap_PyRectangleShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
11967 | PyObject *resultobj; |
11968 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
11969 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
11970 | double arg3 ; | |
11971 | double arg4 ; | |
11972 | int arg5 = (int) 0 ; | |
11973 | int arg6 = (int) 0 ; | |
11974 | PyObject * obj0 = 0 ; | |
11975 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11976 | PyObject * obj2 = 0 ; |
11977 | PyObject * obj3 = 0 ; | |
11978 | PyObject * obj4 = 0 ; | |
11979 | PyObject * obj5 = 0 ; | |
44127b65 RD |
11980 | char *kwnames[] = { |
11981 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
11982 | }; | |
11983 | ||
8edf1c75 | 11984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyRectangleShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
11985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
11986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11987 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
11988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11989 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 11990 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11991 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 11992 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11993 | if (obj4) { |
c370783e | 11994 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 11995 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11996 | } |
11997 | if (obj5) { | |
c370783e | 11998 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 11999 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12000 | } |
44127b65 RD |
12001 | { |
12002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12003 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
12004 | ||
12005 | wxPyEndAllowThreads(__tstate); | |
12006 | if (PyErr_Occurred()) SWIG_fail; | |
12007 | } | |
12008 | Py_INCREF(Py_None); resultobj = Py_None; | |
12009 | return resultobj; | |
12010 | fail: | |
12011 | return NULL; | |
12012 | } | |
12013 | ||
12014 | ||
c370783e | 12015 | static PyObject *_wrap_PyRectangleShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12016 | PyObject *resultobj; |
12017 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
12018 | double arg2 ; | |
12019 | double arg3 ; | |
12020 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12021 | PyObject * obj1 = 0 ; |
12022 | PyObject * obj2 = 0 ; | |
44127b65 RD |
12023 | char *kwnames[] = { |
12024 | (char *) "self",(char *) "w",(char *) "h", NULL | |
12025 | }; | |
12026 | ||
8edf1c75 | 12027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyRectangleShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
12029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12030 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12031 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12032 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12033 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
12034 | { |
12035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12036 | (arg1)->base_OnBeginSize(arg2,arg3); | |
12037 | ||
12038 | wxPyEndAllowThreads(__tstate); | |
12039 | if (PyErr_Occurred()) SWIG_fail; | |
12040 | } | |
12041 | Py_INCREF(Py_None); resultobj = Py_None; | |
12042 | return resultobj; | |
12043 | fail: | |
12044 | return NULL; | |
12045 | } | |
12046 | ||
12047 | ||
c370783e | 12048 | static PyObject *_wrap_PyRectangleShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12049 | PyObject *resultobj; |
12050 | wxPyRectangleShape *arg1 = (wxPyRectangleShape *) 0 ; | |
12051 | double arg2 ; | |
12052 | double arg3 ; | |
12053 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12054 | PyObject * obj1 = 0 ; |
12055 | PyObject * obj2 = 0 ; | |
44127b65 RD |
12056 | char *kwnames[] = { |
12057 | (char *) "self",(char *) "w",(char *) "h", NULL | |
12058 | }; | |
12059 | ||
8edf1c75 | 12060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyRectangleShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyRectangleShape, |
12062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12063 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12064 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12065 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12066 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
12067 | { |
12068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12069 | (arg1)->base_OnEndSize(arg2,arg3); | |
12070 | ||
12071 | wxPyEndAllowThreads(__tstate); | |
12072 | if (PyErr_Occurred()) SWIG_fail; | |
12073 | } | |
12074 | Py_INCREF(Py_None); resultobj = Py_None; | |
12075 | return resultobj; | |
12076 | fail: | |
12077 | return NULL; | |
12078 | } | |
12079 | ||
12080 | ||
c370783e | 12081 | static PyObject * PyRectangleShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
12082 | PyObject *obj; |
12083 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12084 | SWIG_TypeClientData(SWIGTYPE_p_wxPyRectangleShape, obj); | |
12085 | Py_INCREF(obj); | |
12086 | return Py_BuildValue((char *)""); | |
12087 | } | |
c370783e | 12088 | static PyObject *_wrap_new_PyControlPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12089 | PyObject *resultobj; |
12090 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) NULL ; | |
12091 | wxPyShape *arg2 = (wxPyShape *) NULL ; | |
12092 | double arg3 = (double) 0.0 ; | |
12093 | double arg4 = (double) 0.0 ; | |
12094 | double arg5 = (double) 0.0 ; | |
12095 | int arg6 = (int) 0 ; | |
12096 | wxPyControlPoint *result; | |
12097 | PyObject * obj0 = 0 ; | |
12098 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12099 | PyObject * obj2 = 0 ; |
12100 | PyObject * obj3 = 0 ; | |
12101 | PyObject * obj4 = 0 ; | |
12102 | PyObject * obj5 = 0 ; | |
44127b65 RD |
12103 | char *kwnames[] = { |
12104 | (char *) "the_canvas",(char *) "object",(char *) "size",(char *) "the_xoffset",(char *) "the_yoffset",(char *) "the_type", NULL | |
12105 | }; | |
12106 | ||
8edf1c75 | 12107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_PyControlPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
44127b65 | 12108 | if (obj0) { |
2f4c0a16 RD |
12109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
12110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
12111 | } |
12112 | if (obj1) { | |
2f4c0a16 RD |
12113 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, |
12114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 12115 | } |
8edf1c75 | 12116 | if (obj2) { |
c370783e | 12117 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12118 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12119 | } |
12120 | if (obj3) { | |
c370783e | 12121 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 12122 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12123 | } |
12124 | if (obj4) { | |
c370783e | 12125 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 12126 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12127 | } |
12128 | if (obj5) { | |
c370783e | 12129 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 12130 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12131 | } |
44127b65 RD |
12132 | { |
12133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12134 | result = (wxPyControlPoint *)new wxPyControlPoint(arg1,arg2,arg3,arg4,arg5,arg6); | |
12135 | ||
12136 | wxPyEndAllowThreads(__tstate); | |
12137 | if (PyErr_Occurred()) SWIG_fail; | |
12138 | } | |
2f4c0a16 | 12139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControlPoint, 1); |
44127b65 RD |
12140 | return resultobj; |
12141 | fail: | |
12142 | return NULL; | |
12143 | } | |
12144 | ||
12145 | ||
c370783e | 12146 | static PyObject *_wrap_PyControlPoint__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12147 | PyObject *resultobj; |
12148 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12149 | PyObject *arg2 = (PyObject *) 0 ; | |
12150 | PyObject *arg3 = (PyObject *) 0 ; | |
12151 | PyObject * obj0 = 0 ; | |
12152 | PyObject * obj1 = 0 ; | |
12153 | PyObject * obj2 = 0 ; | |
12154 | char *kwnames[] = { | |
12155 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
12156 | }; | |
12157 | ||
12158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControlPoint__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
12161 | arg2 = obj1; |
12162 | arg3 = obj2; | |
12163 | { | |
12164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12165 | (arg1)->_setCallbackInfo(arg2,arg3); | |
12166 | ||
12167 | wxPyEndAllowThreads(__tstate); | |
12168 | if (PyErr_Occurred()) SWIG_fail; | |
12169 | } | |
12170 | Py_INCREF(Py_None); resultobj = Py_None; | |
12171 | return resultobj; | |
12172 | fail: | |
12173 | return NULL; | |
12174 | } | |
12175 | ||
12176 | ||
c370783e | 12177 | static PyObject *_wrap_PyControlPoint_SetCornerRadius(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12178 | PyObject *resultobj; |
12179 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12180 | double arg2 ; | |
12181 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12182 | PyObject * obj1 = 0 ; |
44127b65 RD |
12183 | char *kwnames[] = { |
12184 | (char *) "self",(char *) "radius", NULL | |
12185 | }; | |
12186 | ||
8edf1c75 | 12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_SetCornerRadius",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12190 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12191 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
12192 | { |
12193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12194 | (arg1)->SetCornerRadius(arg2); | |
12195 | ||
12196 | wxPyEndAllowThreads(__tstate); | |
12197 | if (PyErr_Occurred()) SWIG_fail; | |
12198 | } | |
12199 | Py_INCREF(Py_None); resultobj = Py_None; | |
12200 | return resultobj; | |
12201 | fail: | |
12202 | return NULL; | |
12203 | } | |
12204 | ||
12205 | ||
c370783e | 12206 | static PyObject *_wrap_PyControlPoint_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12207 | PyObject *resultobj; |
12208 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12209 | PyObject * obj0 = 0 ; | |
12210 | char *kwnames[] = { | |
12211 | (char *) "self", NULL | |
12212 | }; | |
12213 | ||
12214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControlPoint_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
12217 | { |
12218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12219 | (arg1)->base_OnDelete(); | |
12220 | ||
12221 | wxPyEndAllowThreads(__tstate); | |
12222 | if (PyErr_Occurred()) SWIG_fail; | |
12223 | } | |
12224 | Py_INCREF(Py_None); resultobj = Py_None; | |
12225 | return resultobj; | |
12226 | fail: | |
12227 | return NULL; | |
12228 | } | |
12229 | ||
12230 | ||
c370783e | 12231 | static PyObject *_wrap_PyControlPoint_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12232 | PyObject *resultobj; |
12233 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12234 | wxDC *arg2 = 0 ; | |
12235 | PyObject * obj0 = 0 ; | |
12236 | PyObject * obj1 = 0 ; | |
12237 | char *kwnames[] = { | |
12238 | (char *) "self",(char *) "dc", NULL | |
12239 | }; | |
12240 | ||
12241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12244 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12245 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12246 | SWIG_fail; | |
44127b65 | 12247 | if (arg2 == NULL) { |
2f4c0a16 RD |
12248 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12249 | SWIG_fail; | |
44127b65 RD |
12250 | } |
12251 | { | |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | (arg1)->base_OnDraw(*arg2); | |
12254 | ||
12255 | wxPyEndAllowThreads(__tstate); | |
12256 | if (PyErr_Occurred()) SWIG_fail; | |
12257 | } | |
12258 | Py_INCREF(Py_None); resultobj = Py_None; | |
12259 | return resultobj; | |
12260 | fail: | |
12261 | return NULL; | |
12262 | } | |
12263 | ||
12264 | ||
c370783e | 12265 | static PyObject *_wrap_PyControlPoint_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12266 | PyObject *resultobj; |
12267 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12268 | wxDC *arg2 = 0 ; | |
12269 | PyObject * obj0 = 0 ; | |
12270 | PyObject * obj1 = 0 ; | |
12271 | char *kwnames[] = { | |
12272 | (char *) "self",(char *) "dc", NULL | |
12273 | }; | |
12274 | ||
12275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12278 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12279 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12280 | SWIG_fail; | |
44127b65 | 12281 | if (arg2 == NULL) { |
2f4c0a16 RD |
12282 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12283 | SWIG_fail; | |
44127b65 RD |
12284 | } |
12285 | { | |
12286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12287 | (arg1)->base_OnDrawContents(*arg2); | |
12288 | ||
12289 | wxPyEndAllowThreads(__tstate); | |
12290 | if (PyErr_Occurred()) SWIG_fail; | |
12291 | } | |
12292 | Py_INCREF(Py_None); resultobj = Py_None; | |
12293 | return resultobj; | |
12294 | fail: | |
12295 | return NULL; | |
12296 | } | |
12297 | ||
12298 | ||
c370783e | 12299 | static PyObject *_wrap_PyControlPoint_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12300 | PyObject *resultobj; |
12301 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12302 | wxDC *arg2 = 0 ; | |
12303 | bool arg3 = (bool) FALSE ; | |
12304 | PyObject * obj0 = 0 ; | |
12305 | PyObject * obj1 = 0 ; | |
12306 | PyObject * obj2 = 0 ; | |
12307 | char *kwnames[] = { | |
12308 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
12309 | }; | |
12310 | ||
12311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyControlPoint_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12314 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12315 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12316 | SWIG_fail; | |
44127b65 | 12317 | if (arg2 == NULL) { |
2f4c0a16 RD |
12318 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12319 | SWIG_fail; | |
44127b65 RD |
12320 | } |
12321 | if (obj2) { | |
c370783e | 12322 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 12323 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
12324 | } |
12325 | { | |
12326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12327 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
12328 | ||
12329 | wxPyEndAllowThreads(__tstate); | |
12330 | if (PyErr_Occurred()) SWIG_fail; | |
12331 | } | |
12332 | Py_INCREF(Py_None); resultobj = Py_None; | |
12333 | return resultobj; | |
12334 | fail: | |
12335 | return NULL; | |
12336 | } | |
12337 | ||
12338 | ||
c370783e | 12339 | static PyObject *_wrap_PyControlPoint_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12340 | PyObject *resultobj; |
12341 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12342 | wxDC *arg2 = 0 ; | |
12343 | PyObject * obj0 = 0 ; | |
12344 | PyObject * obj1 = 0 ; | |
12345 | char *kwnames[] = { | |
12346 | (char *) "self",(char *) "dc", NULL | |
12347 | }; | |
12348 | ||
12349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12353 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12354 | SWIG_fail; | |
44127b65 | 12355 | if (arg2 == NULL) { |
2f4c0a16 RD |
12356 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12357 | SWIG_fail; | |
44127b65 RD |
12358 | } |
12359 | { | |
12360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12361 | (arg1)->base_OnMoveLinks(*arg2); | |
12362 | ||
12363 | wxPyEndAllowThreads(__tstate); | |
12364 | if (PyErr_Occurred()) SWIG_fail; | |
12365 | } | |
12366 | Py_INCREF(Py_None); resultobj = Py_None; | |
12367 | return resultobj; | |
12368 | fail: | |
12369 | return NULL; | |
12370 | } | |
12371 | ||
12372 | ||
c370783e | 12373 | static PyObject *_wrap_PyControlPoint_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12374 | PyObject *resultobj; |
12375 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12376 | wxDC *arg2 = 0 ; | |
12377 | PyObject * obj0 = 0 ; | |
12378 | PyObject * obj1 = 0 ; | |
12379 | char *kwnames[] = { | |
12380 | (char *) "self",(char *) "dc", NULL | |
12381 | }; | |
12382 | ||
12383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12387 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12388 | SWIG_fail; | |
44127b65 | 12389 | if (arg2 == NULL) { |
2f4c0a16 RD |
12390 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12391 | SWIG_fail; | |
44127b65 RD |
12392 | } |
12393 | { | |
12394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12395 | (arg1)->base_OnErase(*arg2); | |
12396 | ||
12397 | wxPyEndAllowThreads(__tstate); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | } | |
12400 | Py_INCREF(Py_None); resultobj = Py_None; | |
12401 | return resultobj; | |
12402 | fail: | |
12403 | return NULL; | |
12404 | } | |
12405 | ||
12406 | ||
c370783e | 12407 | static PyObject *_wrap_PyControlPoint_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12408 | PyObject *resultobj; |
12409 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12410 | wxDC *arg2 = 0 ; | |
12411 | PyObject * obj0 = 0 ; | |
12412 | PyObject * obj1 = 0 ; | |
12413 | char *kwnames[] = { | |
12414 | (char *) "self",(char *) "dc", NULL | |
12415 | }; | |
12416 | ||
12417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12420 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12422 | SWIG_fail; | |
44127b65 | 12423 | if (arg2 == NULL) { |
2f4c0a16 RD |
12424 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12425 | SWIG_fail; | |
44127b65 RD |
12426 | } |
12427 | { | |
12428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12429 | (arg1)->base_OnEraseContents(*arg2); | |
12430 | ||
12431 | wxPyEndAllowThreads(__tstate); | |
12432 | if (PyErr_Occurred()) SWIG_fail; | |
12433 | } | |
12434 | Py_INCREF(Py_None); resultobj = Py_None; | |
12435 | return resultobj; | |
12436 | fail: | |
12437 | return NULL; | |
12438 | } | |
12439 | ||
12440 | ||
c370783e | 12441 | static PyObject *_wrap_PyControlPoint_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12442 | PyObject *resultobj; |
12443 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12444 | wxDC *arg2 = 0 ; | |
12445 | PyObject * obj0 = 0 ; | |
12446 | PyObject * obj1 = 0 ; | |
12447 | char *kwnames[] = { | |
12448 | (char *) "self",(char *) "dc", NULL | |
12449 | }; | |
12450 | ||
12451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12455 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12456 | SWIG_fail; | |
44127b65 | 12457 | if (arg2 == NULL) { |
2f4c0a16 RD |
12458 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12459 | SWIG_fail; | |
44127b65 RD |
12460 | } |
12461 | { | |
12462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12463 | (arg1)->base_OnHighlight(*arg2); | |
12464 | ||
12465 | wxPyEndAllowThreads(__tstate); | |
12466 | if (PyErr_Occurred()) SWIG_fail; | |
12467 | } | |
12468 | Py_INCREF(Py_None); resultobj = Py_None; | |
12469 | return resultobj; | |
12470 | fail: | |
12471 | return NULL; | |
12472 | } | |
12473 | ||
12474 | ||
c370783e | 12475 | static PyObject *_wrap_PyControlPoint_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12476 | PyObject *resultobj; |
12477 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12478 | double arg2 ; | |
12479 | double arg3 ; | |
12480 | int arg4 = (int) 0 ; | |
12481 | int arg5 = (int) 0 ; | |
12482 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12483 | PyObject * obj1 = 0 ; |
12484 | PyObject * obj2 = 0 ; | |
12485 | PyObject * obj3 = 0 ; | |
12486 | PyObject * obj4 = 0 ; | |
44127b65 RD |
12487 | char *kwnames[] = { |
12488 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12489 | }; | |
12490 | ||
8edf1c75 | 12491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12494 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12495 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12496 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12497 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12498 | if (obj3) { |
c370783e | 12499 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 12500 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12501 | } |
12502 | if (obj4) { | |
c370783e | 12503 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 12504 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12505 | } |
44127b65 RD |
12506 | { |
12507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12508 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
12509 | ||
12510 | wxPyEndAllowThreads(__tstate); | |
12511 | if (PyErr_Occurred()) SWIG_fail; | |
12512 | } | |
12513 | Py_INCREF(Py_None); resultobj = Py_None; | |
12514 | return resultobj; | |
12515 | fail: | |
12516 | return NULL; | |
12517 | } | |
12518 | ||
12519 | ||
c370783e | 12520 | static PyObject *_wrap_PyControlPoint_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12521 | PyObject *resultobj; |
12522 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12523 | double arg2 ; | |
12524 | double arg3 ; | |
12525 | int arg4 = (int) 0 ; | |
12526 | int arg5 = (int) 0 ; | |
12527 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12528 | PyObject * obj1 = 0 ; |
12529 | PyObject * obj2 = 0 ; | |
12530 | PyObject * obj3 = 0 ; | |
12531 | PyObject * obj4 = 0 ; | |
44127b65 RD |
12532 | char *kwnames[] = { |
12533 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12534 | }; | |
12535 | ||
8edf1c75 | 12536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12539 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12540 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12541 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12542 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12543 | if (obj3) { |
c370783e | 12544 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 12545 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12546 | } |
12547 | if (obj4) { | |
c370783e | 12548 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 12549 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12550 | } |
44127b65 RD |
12551 | { |
12552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12553 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
12554 | ||
12555 | wxPyEndAllowThreads(__tstate); | |
12556 | if (PyErr_Occurred()) SWIG_fail; | |
12557 | } | |
12558 | Py_INCREF(Py_None); resultobj = Py_None; | |
12559 | return resultobj; | |
12560 | fail: | |
12561 | return NULL; | |
12562 | } | |
12563 | ||
12564 | ||
c370783e | 12565 | static PyObject *_wrap_PyControlPoint_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12566 | PyObject *resultobj; |
12567 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12568 | double arg2 ; | |
12569 | double arg3 ; | |
12570 | int arg4 = (int) 0 ; | |
12571 | int arg5 = (int) 0 ; | |
12572 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12573 | PyObject * obj1 = 0 ; |
12574 | PyObject * obj2 = 0 ; | |
12575 | PyObject * obj3 = 0 ; | |
12576 | PyObject * obj4 = 0 ; | |
44127b65 RD |
12577 | char *kwnames[] = { |
12578 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12579 | }; | |
12580 | ||
8edf1c75 | 12581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12584 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12585 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12586 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12587 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12588 | if (obj3) { |
c370783e | 12589 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 12590 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12591 | } |
12592 | if (obj4) { | |
c370783e | 12593 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 12594 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12595 | } |
44127b65 RD |
12596 | { |
12597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12598 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
12599 | ||
12600 | wxPyEndAllowThreads(__tstate); | |
12601 | if (PyErr_Occurred()) SWIG_fail; | |
12602 | } | |
12603 | Py_INCREF(Py_None); resultobj = Py_None; | |
12604 | return resultobj; | |
12605 | fail: | |
12606 | return NULL; | |
12607 | } | |
12608 | ||
12609 | ||
c370783e | 12610 | static PyObject *_wrap_PyControlPoint_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12611 | PyObject *resultobj; |
12612 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12613 | double arg2 ; | |
12614 | double arg3 ; | |
12615 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12616 | PyObject * obj1 = 0 ; |
12617 | PyObject * obj2 = 0 ; | |
44127b65 RD |
12618 | char *kwnames[] = { |
12619 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12620 | }; | |
12621 | ||
8edf1c75 | 12622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControlPoint_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12625 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12626 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12627 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12628 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
12629 | { |
12630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12631 | (arg1)->base_OnSize(arg2,arg3); | |
12632 | ||
12633 | wxPyEndAllowThreads(__tstate); | |
12634 | if (PyErr_Occurred()) SWIG_fail; | |
12635 | } | |
12636 | Py_INCREF(Py_None); resultobj = Py_None; | |
12637 | return resultobj; | |
12638 | fail: | |
12639 | return NULL; | |
12640 | } | |
12641 | ||
12642 | ||
c370783e | 12643 | static PyObject *_wrap_PyControlPoint_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12644 | PyObject *resultobj; |
12645 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12646 | wxDC *arg2 = 0 ; | |
12647 | double arg3 ; | |
12648 | double arg4 ; | |
12649 | double arg5 ; | |
12650 | double arg6 ; | |
12651 | bool arg7 = (bool) True ; | |
12652 | bool result; | |
12653 | PyObject * obj0 = 0 ; | |
12654 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12655 | PyObject * obj2 = 0 ; |
12656 | PyObject * obj3 = 0 ; | |
12657 | PyObject * obj4 = 0 ; | |
12658 | PyObject * obj5 = 0 ; | |
44127b65 RD |
12659 | PyObject * obj6 = 0 ; |
12660 | char *kwnames[] = { | |
12661 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
12662 | }; | |
12663 | ||
8edf1c75 | 12664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyControlPoint_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
12665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12668 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12669 | SWIG_fail; | |
44127b65 | 12670 | if (arg2 == NULL) { |
2f4c0a16 RD |
12671 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12672 | SWIG_fail; | |
12673 | } | |
c370783e | 12674 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12675 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12676 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 12677 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12678 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 12679 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12680 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 12681 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 12682 | if (obj6) { |
c370783e | 12683 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 12684 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
12685 | } |
12686 | { | |
12687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12688 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
12689 | ||
12690 | wxPyEndAllowThreads(__tstate); | |
12691 | if (PyErr_Occurred()) SWIG_fail; | |
12692 | } | |
fbc46b20 RD |
12693 | { |
12694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12695 | } | |
44127b65 RD |
12696 | return resultobj; |
12697 | fail: | |
12698 | return NULL; | |
12699 | } | |
12700 | ||
12701 | ||
c370783e | 12702 | static PyObject *_wrap_PyControlPoint_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12703 | PyObject *resultobj; |
12704 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12705 | wxDC *arg2 = 0 ; | |
12706 | double arg3 ; | |
12707 | double arg4 ; | |
12708 | double arg5 ; | |
12709 | double arg6 ; | |
12710 | bool arg7 = (bool) True ; | |
12711 | PyObject * obj0 = 0 ; | |
12712 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12713 | PyObject * obj2 = 0 ; |
12714 | PyObject * obj3 = 0 ; | |
12715 | PyObject * obj4 = 0 ; | |
12716 | PyObject * obj5 = 0 ; | |
44127b65 RD |
12717 | PyObject * obj6 = 0 ; |
12718 | char *kwnames[] = { | |
12719 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
12720 | }; | |
12721 | ||
8edf1c75 | 12722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyControlPoint_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
12723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12725 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
12726 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12727 | SWIG_fail; | |
44127b65 | 12728 | if (arg2 == NULL) { |
2f4c0a16 RD |
12729 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12730 | SWIG_fail; | |
12731 | } | |
c370783e | 12732 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12733 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12734 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 12735 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12736 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 12737 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12738 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 12739 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 12740 | if (obj6) { |
c370783e | 12741 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 12742 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
12743 | } |
12744 | { | |
12745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12746 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
12747 | ||
12748 | wxPyEndAllowThreads(__tstate); | |
12749 | if (PyErr_Occurred()) SWIG_fail; | |
12750 | } | |
12751 | Py_INCREF(Py_None); resultobj = Py_None; | |
12752 | return resultobj; | |
12753 | fail: | |
12754 | return NULL; | |
12755 | } | |
12756 | ||
12757 | ||
c370783e | 12758 | static PyObject *_wrap_PyControlPoint_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12759 | PyObject *resultobj; |
12760 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12761 | bool arg2 ; | |
12762 | double arg3 ; | |
12763 | double arg4 ; | |
12764 | int arg5 = (int) 0 ; | |
12765 | int arg6 = (int) 0 ; | |
12766 | PyObject * obj0 = 0 ; | |
12767 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12768 | PyObject * obj2 = 0 ; |
12769 | PyObject * obj3 = 0 ; | |
12770 | PyObject * obj4 = 0 ; | |
12771 | PyObject * obj5 = 0 ; | |
44127b65 RD |
12772 | char *kwnames[] = { |
12773 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12774 | }; | |
12775 | ||
8edf1c75 | 12776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyControlPoint_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
12777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12779 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 12780 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12781 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12782 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12783 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 12784 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12785 | if (obj4) { |
c370783e | 12786 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 12787 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12788 | } |
12789 | if (obj5) { | |
c370783e | 12790 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 12791 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12792 | } |
44127b65 RD |
12793 | { |
12794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12795 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
12796 | ||
12797 | wxPyEndAllowThreads(__tstate); | |
12798 | if (PyErr_Occurred()) SWIG_fail; | |
12799 | } | |
12800 | Py_INCREF(Py_None); resultobj = Py_None; | |
12801 | return resultobj; | |
12802 | fail: | |
12803 | return NULL; | |
12804 | } | |
12805 | ||
12806 | ||
c370783e | 12807 | static PyObject *_wrap_PyControlPoint_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12808 | PyObject *resultobj; |
12809 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12810 | double arg2 ; | |
12811 | double arg3 ; | |
12812 | int arg4 = (int) 0 ; | |
12813 | int arg5 = (int) 0 ; | |
12814 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12815 | PyObject * obj1 = 0 ; |
12816 | PyObject * obj2 = 0 ; | |
12817 | PyObject * obj3 = 0 ; | |
12818 | PyObject * obj4 = 0 ; | |
44127b65 RD |
12819 | char *kwnames[] = { |
12820 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12821 | }; | |
12822 | ||
8edf1c75 | 12823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12826 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12827 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12828 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12829 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12830 | if (obj3) { |
c370783e | 12831 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 12832 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12833 | } |
12834 | if (obj4) { | |
c370783e | 12835 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 12836 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12837 | } |
44127b65 RD |
12838 | { |
12839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12840 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
12841 | ||
12842 | wxPyEndAllowThreads(__tstate); | |
12843 | if (PyErr_Occurred()) SWIG_fail; | |
12844 | } | |
12845 | Py_INCREF(Py_None); resultobj = Py_None; | |
12846 | return resultobj; | |
12847 | fail: | |
12848 | return NULL; | |
12849 | } | |
12850 | ||
12851 | ||
c370783e | 12852 | static PyObject *_wrap_PyControlPoint_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12853 | PyObject *resultobj; |
12854 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12855 | double arg2 ; | |
12856 | double arg3 ; | |
12857 | int arg4 = (int) 0 ; | |
12858 | int arg5 = (int) 0 ; | |
12859 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12860 | PyObject * obj1 = 0 ; |
12861 | PyObject * obj2 = 0 ; | |
12862 | PyObject * obj3 = 0 ; | |
12863 | PyObject * obj4 = 0 ; | |
44127b65 RD |
12864 | char *kwnames[] = { |
12865 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12866 | }; | |
12867 | ||
8edf1c75 | 12868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12871 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12872 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12873 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12874 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12875 | if (obj3) { |
c370783e | 12876 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 12877 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12878 | } |
12879 | if (obj4) { | |
c370783e | 12880 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 12881 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12882 | } |
44127b65 RD |
12883 | { |
12884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12885 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
12886 | ||
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | Py_INCREF(Py_None); resultobj = Py_None; | |
12891 | return resultobj; | |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
c370783e | 12897 | static PyObject *_wrap_PyControlPoint_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12898 | PyObject *resultobj; |
12899 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12900 | bool arg2 ; | |
12901 | double arg3 ; | |
12902 | double arg4 ; | |
12903 | int arg5 = (int) 0 ; | |
12904 | int arg6 = (int) 0 ; | |
12905 | PyObject * obj0 = 0 ; | |
12906 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12907 | PyObject * obj2 = 0 ; |
12908 | PyObject * obj3 = 0 ; | |
12909 | PyObject * obj4 = 0 ; | |
12910 | PyObject * obj5 = 0 ; | |
44127b65 RD |
12911 | char *kwnames[] = { |
12912 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12913 | }; | |
12914 | ||
8edf1c75 | 12915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyControlPoint_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
12916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12918 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 12919 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12920 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12921 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12922 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 12923 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12924 | if (obj4) { |
c370783e | 12925 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 12926 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12927 | } |
12928 | if (obj5) { | |
c370783e | 12929 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 12930 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12931 | } |
44127b65 RD |
12932 | { |
12933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12934 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
12935 | ||
12936 | wxPyEndAllowThreads(__tstate); | |
12937 | if (PyErr_Occurred()) SWIG_fail; | |
12938 | } | |
12939 | Py_INCREF(Py_None); resultobj = Py_None; | |
12940 | return resultobj; | |
12941 | fail: | |
12942 | return NULL; | |
12943 | } | |
12944 | ||
12945 | ||
c370783e | 12946 | static PyObject *_wrap_PyControlPoint_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12947 | PyObject *resultobj; |
12948 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12949 | double arg2 ; | |
12950 | double arg3 ; | |
12951 | int arg4 = (int) 0 ; | |
12952 | int arg5 = (int) 0 ; | |
12953 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12954 | PyObject * obj1 = 0 ; |
12955 | PyObject * obj2 = 0 ; | |
12956 | PyObject * obj3 = 0 ; | |
12957 | PyObject * obj4 = 0 ; | |
44127b65 RD |
12958 | char *kwnames[] = { |
12959 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
12960 | }; | |
12961 | ||
8edf1c75 | 12962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
12964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12965 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 12966 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12967 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 12968 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12969 | if (obj3) { |
c370783e | 12970 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 12971 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
12972 | } |
12973 | if (obj4) { | |
c370783e | 12974 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 12975 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 12976 | } |
44127b65 RD |
12977 | { |
12978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12979 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
12980 | ||
12981 | wxPyEndAllowThreads(__tstate); | |
12982 | if (PyErr_Occurred()) SWIG_fail; | |
12983 | } | |
12984 | Py_INCREF(Py_None); resultobj = Py_None; | |
12985 | return resultobj; | |
12986 | fail: | |
12987 | return NULL; | |
12988 | } | |
12989 | ||
12990 | ||
c370783e | 12991 | static PyObject *_wrap_PyControlPoint_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12992 | PyObject *resultobj; |
12993 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
12994 | double arg2 ; | |
12995 | double arg3 ; | |
12996 | int arg4 = (int) 0 ; | |
12997 | int arg5 = (int) 0 ; | |
12998 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12999 | PyObject * obj1 = 0 ; |
13000 | PyObject * obj2 = 0 ; | |
13001 | PyObject * obj3 = 0 ; | |
13002 | PyObject * obj4 = 0 ; | |
44127b65 RD |
13003 | char *kwnames[] = { |
13004 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13005 | }; | |
13006 | ||
8edf1c75 | 13007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyControlPoint_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13010 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 13011 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13012 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 13013 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13014 | if (obj3) { |
c370783e | 13015 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 13016 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
13017 | } |
13018 | if (obj4) { | |
c370783e | 13019 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 13020 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13021 | } |
44127b65 RD |
13022 | { |
13023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13024 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
13025 | ||
13026 | wxPyEndAllowThreads(__tstate); | |
13027 | if (PyErr_Occurred()) SWIG_fail; | |
13028 | } | |
13029 | Py_INCREF(Py_None); resultobj = Py_None; | |
13030 | return resultobj; | |
13031 | fail: | |
13032 | return NULL; | |
13033 | } | |
13034 | ||
13035 | ||
c370783e | 13036 | static PyObject *_wrap_PyControlPoint_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13037 | PyObject *resultobj; |
13038 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13039 | wxDC *arg2 = 0 ; | |
13040 | double arg3 ; | |
13041 | double arg4 ; | |
13042 | double arg5 ; | |
13043 | double arg6 ; | |
13044 | PyObject * obj0 = 0 ; | |
13045 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
13046 | PyObject * obj2 = 0 ; |
13047 | PyObject * obj3 = 0 ; | |
13048 | PyObject * obj4 = 0 ; | |
13049 | PyObject * obj5 = 0 ; | |
44127b65 RD |
13050 | char *kwnames[] = { |
13051 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
13052 | }; | |
13053 | ||
8edf1c75 | 13054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyControlPoint_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
13055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13057 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13058 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13059 | SWIG_fail; | |
44127b65 | 13060 | if (arg2 == NULL) { |
2f4c0a16 RD |
13061 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13062 | SWIG_fail; | |
8edf1c75 | 13063 | } |
c370783e | 13064 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 13065 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13066 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 13067 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13068 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 13069 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13070 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 13071 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13072 | { |
2f4c0a16 RD |
13073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13074 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
13075 | ||
13076 | wxPyEndAllowThreads(__tstate); | |
44127b65 RD |
13077 | if (PyErr_Occurred()) SWIG_fail; |
13078 | } | |
13079 | Py_INCREF(Py_None); resultobj = Py_None; | |
13080 | return resultobj; | |
13081 | fail: | |
13082 | return NULL; | |
13083 | } | |
13084 | ||
13085 | ||
c370783e | 13086 | static PyObject *_wrap_PyControlPoint_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13087 | PyObject *resultobj; |
13088 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13089 | wxDC *arg2 = 0 ; | |
13090 | PyObject * obj0 = 0 ; | |
13091 | PyObject * obj1 = 0 ; | |
13092 | char *kwnames[] = { | |
13093 | (char *) "self",(char *) "dc", NULL | |
13094 | }; | |
13095 | ||
13096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13099 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13100 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13101 | SWIG_fail; | |
44127b65 | 13102 | if (arg2 == NULL) { |
2f4c0a16 RD |
13103 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13104 | SWIG_fail; | |
44127b65 RD |
13105 | } |
13106 | { | |
13107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13108 | (arg1)->base_OnDrawControlPoints(*arg2); | |
13109 | ||
13110 | wxPyEndAllowThreads(__tstate); | |
13111 | if (PyErr_Occurred()) SWIG_fail; | |
13112 | } | |
13113 | Py_INCREF(Py_None); resultobj = Py_None; | |
13114 | return resultobj; | |
13115 | fail: | |
13116 | return NULL; | |
13117 | } | |
13118 | ||
13119 | ||
c370783e | 13120 | static PyObject *_wrap_PyControlPoint_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13121 | PyObject *resultobj; |
13122 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13123 | wxDC *arg2 = 0 ; | |
13124 | PyObject * obj0 = 0 ; | |
13125 | PyObject * obj1 = 0 ; | |
13126 | char *kwnames[] = { | |
13127 | (char *) "self",(char *) "dc", NULL | |
13128 | }; | |
13129 | ||
13130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControlPoint_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13133 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13134 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13135 | SWIG_fail; | |
44127b65 | 13136 | if (arg2 == NULL) { |
2f4c0a16 RD |
13137 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13138 | SWIG_fail; | |
44127b65 RD |
13139 | } |
13140 | { | |
13141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13142 | (arg1)->base_OnEraseControlPoints(*arg2); | |
13143 | ||
13144 | wxPyEndAllowThreads(__tstate); | |
13145 | if (PyErr_Occurred()) SWIG_fail; | |
13146 | } | |
13147 | Py_INCREF(Py_None); resultobj = Py_None; | |
13148 | return resultobj; | |
13149 | fail: | |
13150 | return NULL; | |
13151 | } | |
13152 | ||
13153 | ||
c370783e | 13154 | static PyObject *_wrap_PyControlPoint_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13155 | PyObject *resultobj; |
13156 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13157 | wxDC *arg2 = 0 ; | |
13158 | bool arg3 = (bool) True ; | |
13159 | PyObject * obj0 = 0 ; | |
13160 | PyObject * obj1 = 0 ; | |
13161 | PyObject * obj2 = 0 ; | |
13162 | char *kwnames[] = { | |
13163 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
13164 | }; | |
13165 | ||
13166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyControlPoint_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13169 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13170 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13171 | SWIG_fail; | |
44127b65 | 13172 | if (arg2 == NULL) { |
2f4c0a16 RD |
13173 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13174 | SWIG_fail; | |
44127b65 RD |
13175 | } |
13176 | if (obj2) { | |
c370783e | 13177 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 13178 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
13179 | } |
13180 | { | |
13181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13182 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
13183 | ||
13184 | wxPyEndAllowThreads(__tstate); | |
13185 | if (PyErr_Occurred()) SWIG_fail; | |
13186 | } | |
13187 | Py_INCREF(Py_None); resultobj = Py_None; | |
13188 | return resultobj; | |
13189 | fail: | |
13190 | return NULL; | |
13191 | } | |
13192 | ||
13193 | ||
c370783e | 13194 | static PyObject *_wrap_PyControlPoint_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13195 | PyObject *resultobj; |
13196 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13197 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
13198 | bool arg3 ; | |
13199 | double arg4 ; | |
13200 | double arg5 ; | |
13201 | int arg6 = (int) 0 ; | |
13202 | int arg7 = (int) 0 ; | |
13203 | PyObject * obj0 = 0 ; | |
13204 | PyObject * obj1 = 0 ; | |
13205 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
13206 | PyObject * obj3 = 0 ; |
13207 | PyObject * obj4 = 0 ; | |
13208 | PyObject * obj5 = 0 ; | |
13209 | PyObject * obj6 = 0 ; | |
44127b65 RD |
13210 | char *kwnames[] = { |
13211 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13212 | }; | |
13213 | ||
8edf1c75 | 13214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyControlPoint_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
13215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13217 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
13218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13219 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 13220 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13221 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 13222 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13223 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 13224 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13225 | if (obj5) { |
c370783e | 13226 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 13227 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
13228 | } |
13229 | if (obj6) { | |
c370783e | 13230 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 13231 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13232 | } |
44127b65 RD |
13233 | { |
13234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13235 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
13236 | ||
13237 | wxPyEndAllowThreads(__tstate); | |
13238 | if (PyErr_Occurred()) SWIG_fail; | |
13239 | } | |
13240 | Py_INCREF(Py_None); resultobj = Py_None; | |
13241 | return resultobj; | |
13242 | fail: | |
13243 | return NULL; | |
13244 | } | |
13245 | ||
13246 | ||
c370783e | 13247 | static PyObject *_wrap_PyControlPoint_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13248 | PyObject *resultobj; |
13249 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13250 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
13251 | double arg3 ; | |
13252 | double arg4 ; | |
13253 | int arg5 = (int) 0 ; | |
13254 | int arg6 = (int) 0 ; | |
13255 | PyObject * obj0 = 0 ; | |
13256 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
13257 | PyObject * obj2 = 0 ; |
13258 | PyObject * obj3 = 0 ; | |
13259 | PyObject * obj4 = 0 ; | |
13260 | PyObject * obj5 = 0 ; | |
44127b65 RD |
13261 | char *kwnames[] = { |
13262 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13263 | }; | |
13264 | ||
8edf1c75 | 13265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyControlPoint_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
13266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13268 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
13269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13270 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 13271 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13272 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 13273 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13274 | if (obj4) { |
c370783e | 13275 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 13276 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
13277 | } |
13278 | if (obj5) { | |
c370783e | 13279 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 13280 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13281 | } |
44127b65 RD |
13282 | { |
13283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13284 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
13285 | ||
13286 | wxPyEndAllowThreads(__tstate); | |
13287 | if (PyErr_Occurred()) SWIG_fail; | |
13288 | } | |
13289 | Py_INCREF(Py_None); resultobj = Py_None; | |
13290 | return resultobj; | |
13291 | fail: | |
13292 | return NULL; | |
13293 | } | |
13294 | ||
13295 | ||
c370783e | 13296 | static PyObject *_wrap_PyControlPoint_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13297 | PyObject *resultobj; |
13298 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13299 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
13300 | double arg3 ; | |
13301 | double arg4 ; | |
13302 | int arg5 = (int) 0 ; | |
13303 | int arg6 = (int) 0 ; | |
13304 | PyObject * obj0 = 0 ; | |
13305 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
13306 | PyObject * obj2 = 0 ; |
13307 | PyObject * obj3 = 0 ; | |
13308 | PyObject * obj4 = 0 ; | |
13309 | PyObject * obj5 = 0 ; | |
44127b65 RD |
13310 | char *kwnames[] = { |
13311 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13312 | }; | |
13313 | ||
8edf1c75 | 13314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyControlPoint_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
13315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
13318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13319 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 13320 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13321 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 13322 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13323 | if (obj4) { |
c370783e | 13324 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 13325 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
13326 | } |
13327 | if (obj5) { | |
c370783e | 13328 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 13329 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13330 | } |
44127b65 RD |
13331 | { |
13332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13333 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
13334 | ||
13335 | wxPyEndAllowThreads(__tstate); | |
13336 | if (PyErr_Occurred()) SWIG_fail; | |
13337 | } | |
13338 | Py_INCREF(Py_None); resultobj = Py_None; | |
13339 | return resultobj; | |
13340 | fail: | |
13341 | return NULL; | |
13342 | } | |
13343 | ||
13344 | ||
c370783e | 13345 | static PyObject *_wrap_PyControlPoint_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13346 | PyObject *resultobj; |
13347 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13348 | double arg2 ; | |
13349 | double arg3 ; | |
13350 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13351 | PyObject * obj1 = 0 ; |
13352 | PyObject * obj2 = 0 ; | |
44127b65 RD |
13353 | char *kwnames[] = { |
13354 | (char *) "self",(char *) "w",(char *) "h", NULL | |
13355 | }; | |
13356 | ||
8edf1c75 | 13357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControlPoint_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13360 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 13361 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13362 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 13363 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
13364 | { |
13365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13366 | (arg1)->base_OnBeginSize(arg2,arg3); | |
13367 | ||
13368 | wxPyEndAllowThreads(__tstate); | |
13369 | if (PyErr_Occurred()) SWIG_fail; | |
13370 | } | |
13371 | Py_INCREF(Py_None); resultobj = Py_None; | |
13372 | return resultobj; | |
13373 | fail: | |
13374 | return NULL; | |
13375 | } | |
13376 | ||
13377 | ||
c370783e | 13378 | static PyObject *_wrap_PyControlPoint_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13379 | PyObject *resultobj; |
13380 | wxPyControlPoint *arg1 = (wxPyControlPoint *) 0 ; | |
13381 | double arg2 ; | |
13382 | double arg3 ; | |
13383 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13384 | PyObject * obj1 = 0 ; |
13385 | PyObject * obj2 = 0 ; | |
44127b65 RD |
13386 | char *kwnames[] = { |
13387 | (char *) "self",(char *) "w",(char *) "h", NULL | |
13388 | }; | |
13389 | ||
8edf1c75 | 13390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControlPoint_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControlPoint, |
13392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13393 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 13394 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13395 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 13396 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
13397 | { |
13398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13399 | (arg1)->base_OnEndSize(arg2,arg3); | |
13400 | ||
13401 | wxPyEndAllowThreads(__tstate); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
13403 | } | |
13404 | Py_INCREF(Py_None); resultobj = Py_None; | |
13405 | return resultobj; | |
13406 | fail: | |
13407 | return NULL; | |
13408 | } | |
13409 | ||
13410 | ||
c370783e | 13411 | static PyObject * PyControlPoint_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
13412 | PyObject *obj; |
13413 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13414 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControlPoint, obj); | |
13415 | Py_INCREF(obj); | |
13416 | return Py_BuildValue((char *)""); | |
13417 | } | |
c370783e | 13418 | static PyObject *_wrap_new_PyBitmapShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13419 | PyObject *resultobj; |
13420 | wxPyBitmapShape *result; | |
13421 | char *kwnames[] = { | |
13422 | NULL | |
13423 | }; | |
13424 | ||
13425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyBitmapShape",kwnames)) goto fail; | |
13426 | { | |
13427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13428 | result = (wxPyBitmapShape *)new wxPyBitmapShape(); | |
13429 | ||
13430 | wxPyEndAllowThreads(__tstate); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | } | |
2f4c0a16 | 13433 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapShape, 1); |
44127b65 RD |
13434 | return resultobj; |
13435 | fail: | |
13436 | return NULL; | |
13437 | } | |
13438 | ||
13439 | ||
c370783e | 13440 | static PyObject *_wrap_PyBitmapShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13441 | PyObject *resultobj; |
13442 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13443 | PyObject *arg2 = (PyObject *) 0 ; | |
13444 | PyObject *arg3 = (PyObject *) 0 ; | |
13445 | PyObject * obj0 = 0 ; | |
13446 | PyObject * obj1 = 0 ; | |
13447 | PyObject * obj2 = 0 ; | |
13448 | char *kwnames[] = { | |
13449 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13450 | }; | |
13451 | ||
13452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
13455 | arg2 = obj1; |
13456 | arg3 = obj2; | |
13457 | { | |
13458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13459 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13460 | ||
13461 | wxPyEndAllowThreads(__tstate); | |
13462 | if (PyErr_Occurred()) SWIG_fail; | |
13463 | } | |
13464 | Py_INCREF(Py_None); resultobj = Py_None; | |
13465 | return resultobj; | |
13466 | fail: | |
13467 | return NULL; | |
13468 | } | |
13469 | ||
13470 | ||
c370783e | 13471 | static PyObject *_wrap_PyBitmapShape_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13472 | PyObject *resultobj; |
13473 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13474 | wxBitmap *result; | |
13475 | PyObject * obj0 = 0 ; | |
13476 | char *kwnames[] = { | |
13477 | (char *) "self", NULL | |
13478 | }; | |
13479 | ||
13480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyBitmapShape_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
13483 | { |
13484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13485 | { | |
13486 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
13487 | result = (wxBitmap *) &_result_ref; | |
13488 | } | |
13489 | ||
13490 | wxPyEndAllowThreads(__tstate); | |
13491 | if (PyErr_Occurred()) SWIG_fail; | |
13492 | } | |
ce7284bd RD |
13493 | { |
13494 | wxBitmap* resultptr = new wxBitmap(*result); | |
13495 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
13496 | } | |
44127b65 RD |
13497 | return resultobj; |
13498 | fail: | |
13499 | return NULL; | |
13500 | } | |
13501 | ||
13502 | ||
c370783e | 13503 | static PyObject *_wrap_PyBitmapShape_GetFilename(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13504 | PyObject *resultobj; |
13505 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13506 | wxString result; | |
13507 | PyObject * obj0 = 0 ; | |
13508 | char *kwnames[] = { | |
13509 | (char *) "self", NULL | |
13510 | }; | |
13511 | ||
13512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyBitmapShape_GetFilename",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
13515 | { |
13516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13517 | result = (arg1)->GetFilename(); | |
13518 | ||
13519 | wxPyEndAllowThreads(__tstate); | |
13520 | if (PyErr_Occurred()) SWIG_fail; | |
13521 | } | |
13522 | { | |
13523 | #if wxUSE_UNICODE | |
13524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13525 | #else | |
13526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13527 | #endif | |
13528 | } | |
13529 | return resultobj; | |
13530 | fail: | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
c370783e | 13535 | static PyObject *_wrap_PyBitmapShape_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13536 | PyObject *resultobj; |
13537 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13538 | wxBitmap *arg2 = 0 ; | |
13539 | PyObject * obj0 = 0 ; | |
13540 | PyObject * obj1 = 0 ; | |
13541 | char *kwnames[] = { | |
13542 | (char *) "self",(char *) "bitmap", NULL | |
13543 | }; | |
13544 | ||
13545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13548 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
13549 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13550 | SWIG_fail; | |
44127b65 | 13551 | if (arg2 == NULL) { |
2f4c0a16 RD |
13552 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13553 | SWIG_fail; | |
44127b65 RD |
13554 | } |
13555 | { | |
13556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13557 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
13558 | ||
13559 | wxPyEndAllowThreads(__tstate); | |
13560 | if (PyErr_Occurred()) SWIG_fail; | |
13561 | } | |
13562 | Py_INCREF(Py_None); resultobj = Py_None; | |
13563 | return resultobj; | |
13564 | fail: | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
c370783e | 13569 | static PyObject *_wrap_PyBitmapShape_SetFilename(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13570 | PyObject *resultobj; |
13571 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13572 | wxString *arg2 = 0 ; | |
13573 | bool temp2 = False ; | |
13574 | PyObject * obj0 = 0 ; | |
13575 | PyObject * obj1 = 0 ; | |
13576 | char *kwnames[] = { | |
13577 | (char *) "self",(char *) "filename", NULL | |
13578 | }; | |
13579 | ||
13580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
13583 | { |
13584 | arg2 = wxString_in_helper(obj1); | |
13585 | if (arg2 == NULL) SWIG_fail; | |
13586 | temp2 = True; | |
13587 | } | |
13588 | { | |
13589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13590 | (arg1)->SetFilename((wxString const &)*arg2); | |
13591 | ||
13592 | wxPyEndAllowThreads(__tstate); | |
13593 | if (PyErr_Occurred()) SWIG_fail; | |
13594 | } | |
13595 | Py_INCREF(Py_None); resultobj = Py_None; | |
13596 | { | |
13597 | if (temp2) | |
13598 | delete arg2; | |
13599 | } | |
13600 | return resultobj; | |
13601 | fail: | |
13602 | { | |
13603 | if (temp2) | |
13604 | delete arg2; | |
13605 | } | |
13606 | return NULL; | |
13607 | } | |
13608 | ||
13609 | ||
c370783e | 13610 | static PyObject *_wrap_PyBitmapShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13611 | PyObject *resultobj; |
13612 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13613 | PyObject * obj0 = 0 ; | |
13614 | char *kwnames[] = { | |
13615 | (char *) "self", NULL | |
13616 | }; | |
13617 | ||
13618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyBitmapShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
13621 | { |
13622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13623 | (arg1)->base_OnDelete(); | |
13624 | ||
13625 | wxPyEndAllowThreads(__tstate); | |
13626 | if (PyErr_Occurred()) SWIG_fail; | |
13627 | } | |
13628 | Py_INCREF(Py_None); resultobj = Py_None; | |
13629 | return resultobj; | |
13630 | fail: | |
13631 | return NULL; | |
13632 | } | |
13633 | ||
13634 | ||
c370783e | 13635 | static PyObject *_wrap_PyBitmapShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13636 | PyObject *resultobj; |
13637 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13638 | wxDC *arg2 = 0 ; | |
13639 | PyObject * obj0 = 0 ; | |
13640 | PyObject * obj1 = 0 ; | |
13641 | char *kwnames[] = { | |
13642 | (char *) "self",(char *) "dc", NULL | |
13643 | }; | |
13644 | ||
13645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13649 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13650 | SWIG_fail; | |
44127b65 | 13651 | if (arg2 == NULL) { |
2f4c0a16 RD |
13652 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13653 | SWIG_fail; | |
44127b65 RD |
13654 | } |
13655 | { | |
13656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13657 | (arg1)->base_OnDraw(*arg2); | |
13658 | ||
13659 | wxPyEndAllowThreads(__tstate); | |
13660 | if (PyErr_Occurred()) SWIG_fail; | |
13661 | } | |
13662 | Py_INCREF(Py_None); resultobj = Py_None; | |
13663 | return resultobj; | |
13664 | fail: | |
13665 | return NULL; | |
13666 | } | |
13667 | ||
13668 | ||
c370783e | 13669 | static PyObject *_wrap_PyBitmapShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13670 | PyObject *resultobj; |
13671 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13672 | wxDC *arg2 = 0 ; | |
13673 | PyObject * obj0 = 0 ; | |
13674 | PyObject * obj1 = 0 ; | |
13675 | char *kwnames[] = { | |
13676 | (char *) "self",(char *) "dc", NULL | |
13677 | }; | |
13678 | ||
13679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13683 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13684 | SWIG_fail; | |
44127b65 | 13685 | if (arg2 == NULL) { |
2f4c0a16 RD |
13686 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13687 | SWIG_fail; | |
44127b65 RD |
13688 | } |
13689 | { | |
13690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13691 | (arg1)->base_OnDrawContents(*arg2); | |
13692 | ||
13693 | wxPyEndAllowThreads(__tstate); | |
13694 | if (PyErr_Occurred()) SWIG_fail; | |
13695 | } | |
13696 | Py_INCREF(Py_None); resultobj = Py_None; | |
13697 | return resultobj; | |
13698 | fail: | |
13699 | return NULL; | |
13700 | } | |
13701 | ||
13702 | ||
c370783e | 13703 | static PyObject *_wrap_PyBitmapShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13704 | PyObject *resultobj; |
13705 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13706 | wxDC *arg2 = 0 ; | |
13707 | bool arg3 = (bool) FALSE ; | |
13708 | PyObject * obj0 = 0 ; | |
13709 | PyObject * obj1 = 0 ; | |
13710 | PyObject * obj2 = 0 ; | |
13711 | char *kwnames[] = { | |
13712 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
13713 | }; | |
13714 | ||
13715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyBitmapShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13719 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13720 | SWIG_fail; | |
44127b65 | 13721 | if (arg2 == NULL) { |
2f4c0a16 RD |
13722 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13723 | SWIG_fail; | |
44127b65 RD |
13724 | } |
13725 | if (obj2) { | |
c370783e | 13726 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 13727 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
13728 | } |
13729 | { | |
13730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13731 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
13732 | ||
13733 | wxPyEndAllowThreads(__tstate); | |
13734 | if (PyErr_Occurred()) SWIG_fail; | |
13735 | } | |
13736 | Py_INCREF(Py_None); resultobj = Py_None; | |
13737 | return resultobj; | |
13738 | fail: | |
13739 | return NULL; | |
13740 | } | |
13741 | ||
13742 | ||
c370783e | 13743 | static PyObject *_wrap_PyBitmapShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13744 | PyObject *resultobj; |
13745 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13746 | wxDC *arg2 = 0 ; | |
13747 | PyObject * obj0 = 0 ; | |
13748 | PyObject * obj1 = 0 ; | |
13749 | char *kwnames[] = { | |
13750 | (char *) "self",(char *) "dc", NULL | |
13751 | }; | |
13752 | ||
13753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13758 | SWIG_fail; | |
44127b65 | 13759 | if (arg2 == NULL) { |
2f4c0a16 RD |
13760 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13761 | SWIG_fail; | |
44127b65 RD |
13762 | } |
13763 | { | |
13764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13765 | (arg1)->base_OnMoveLinks(*arg2); | |
13766 | ||
13767 | wxPyEndAllowThreads(__tstate); | |
13768 | if (PyErr_Occurred()) SWIG_fail; | |
13769 | } | |
13770 | Py_INCREF(Py_None); resultobj = Py_None; | |
13771 | return resultobj; | |
13772 | fail: | |
13773 | return NULL; | |
13774 | } | |
13775 | ||
13776 | ||
c370783e | 13777 | static PyObject *_wrap_PyBitmapShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13778 | PyObject *resultobj; |
13779 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13780 | wxDC *arg2 = 0 ; | |
13781 | PyObject * obj0 = 0 ; | |
13782 | PyObject * obj1 = 0 ; | |
13783 | char *kwnames[] = { | |
13784 | (char *) "self",(char *) "dc", NULL | |
13785 | }; | |
13786 | ||
13787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13790 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13791 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13792 | SWIG_fail; | |
44127b65 | 13793 | if (arg2 == NULL) { |
2f4c0a16 RD |
13794 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13795 | SWIG_fail; | |
44127b65 RD |
13796 | } |
13797 | { | |
13798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13799 | (arg1)->base_OnErase(*arg2); | |
13800 | ||
13801 | wxPyEndAllowThreads(__tstate); | |
13802 | if (PyErr_Occurred()) SWIG_fail; | |
13803 | } | |
13804 | Py_INCREF(Py_None); resultobj = Py_None; | |
13805 | return resultobj; | |
13806 | fail: | |
13807 | return NULL; | |
13808 | } | |
13809 | ||
13810 | ||
c370783e | 13811 | static PyObject *_wrap_PyBitmapShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13812 | PyObject *resultobj; |
13813 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13814 | wxDC *arg2 = 0 ; | |
13815 | PyObject * obj0 = 0 ; | |
13816 | PyObject * obj1 = 0 ; | |
13817 | char *kwnames[] = { | |
13818 | (char *) "self",(char *) "dc", NULL | |
13819 | }; | |
13820 | ||
13821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13825 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13826 | SWIG_fail; | |
44127b65 | 13827 | if (arg2 == NULL) { |
2f4c0a16 RD |
13828 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13829 | SWIG_fail; | |
44127b65 RD |
13830 | } |
13831 | { | |
13832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13833 | (arg1)->base_OnEraseContents(*arg2); | |
13834 | ||
13835 | wxPyEndAllowThreads(__tstate); | |
13836 | if (PyErr_Occurred()) SWIG_fail; | |
13837 | } | |
13838 | Py_INCREF(Py_None); resultobj = Py_None; | |
13839 | return resultobj; | |
13840 | fail: | |
13841 | return NULL; | |
13842 | } | |
13843 | ||
13844 | ||
c370783e | 13845 | static PyObject *_wrap_PyBitmapShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13846 | PyObject *resultobj; |
13847 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13848 | wxDC *arg2 = 0 ; | |
13849 | PyObject * obj0 = 0 ; | |
13850 | PyObject * obj1 = 0 ; | |
13851 | char *kwnames[] = { | |
13852 | (char *) "self",(char *) "dc", NULL | |
13853 | }; | |
13854 | ||
13855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
13859 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13860 | SWIG_fail; | |
44127b65 | 13861 | if (arg2 == NULL) { |
2f4c0a16 RD |
13862 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13863 | SWIG_fail; | |
44127b65 RD |
13864 | } |
13865 | { | |
13866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13867 | (arg1)->base_OnHighlight(*arg2); | |
13868 | ||
13869 | wxPyEndAllowThreads(__tstate); | |
13870 | if (PyErr_Occurred()) SWIG_fail; | |
13871 | } | |
13872 | Py_INCREF(Py_None); resultobj = Py_None; | |
13873 | return resultobj; | |
13874 | fail: | |
13875 | return NULL; | |
13876 | } | |
13877 | ||
13878 | ||
c370783e | 13879 | static PyObject *_wrap_PyBitmapShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13880 | PyObject *resultobj; |
13881 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13882 | double arg2 ; | |
13883 | double arg3 ; | |
13884 | int arg4 = (int) 0 ; | |
13885 | int arg5 = (int) 0 ; | |
13886 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13887 | PyObject * obj1 = 0 ; |
13888 | PyObject * obj2 = 0 ; | |
13889 | PyObject * obj3 = 0 ; | |
13890 | PyObject * obj4 = 0 ; | |
44127b65 RD |
13891 | char *kwnames[] = { |
13892 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13893 | }; | |
13894 | ||
8edf1c75 | 13895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13898 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 13899 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13900 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 13901 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13902 | if (obj3) { |
c370783e | 13903 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 13904 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
13905 | } |
13906 | if (obj4) { | |
c370783e | 13907 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 13908 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13909 | } |
44127b65 RD |
13910 | { |
13911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13912 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
13913 | ||
13914 | wxPyEndAllowThreads(__tstate); | |
13915 | if (PyErr_Occurred()) SWIG_fail; | |
13916 | } | |
13917 | Py_INCREF(Py_None); resultobj = Py_None; | |
13918 | return resultobj; | |
13919 | fail: | |
13920 | return NULL; | |
13921 | } | |
13922 | ||
13923 | ||
c370783e | 13924 | static PyObject *_wrap_PyBitmapShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13925 | PyObject *resultobj; |
13926 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13927 | double arg2 ; | |
13928 | double arg3 ; | |
13929 | int arg4 = (int) 0 ; | |
13930 | int arg5 = (int) 0 ; | |
13931 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13932 | PyObject * obj1 = 0 ; |
13933 | PyObject * obj2 = 0 ; | |
13934 | PyObject * obj3 = 0 ; | |
13935 | PyObject * obj4 = 0 ; | |
44127b65 RD |
13936 | char *kwnames[] = { |
13937 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13938 | }; | |
13939 | ||
8edf1c75 | 13940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13943 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 13944 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13945 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 13946 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13947 | if (obj3) { |
c370783e | 13948 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 13949 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
13950 | } |
13951 | if (obj4) { | |
c370783e | 13952 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 13953 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13954 | } |
44127b65 RD |
13955 | { |
13956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13957 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
13958 | ||
13959 | wxPyEndAllowThreads(__tstate); | |
13960 | if (PyErr_Occurred()) SWIG_fail; | |
13961 | } | |
13962 | Py_INCREF(Py_None); resultobj = Py_None; | |
13963 | return resultobj; | |
13964 | fail: | |
13965 | return NULL; | |
13966 | } | |
13967 | ||
13968 | ||
c370783e | 13969 | static PyObject *_wrap_PyBitmapShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
13970 | PyObject *resultobj; |
13971 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
13972 | double arg2 ; | |
13973 | double arg3 ; | |
13974 | int arg4 = (int) 0 ; | |
13975 | int arg5 = (int) 0 ; | |
13976 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13977 | PyObject * obj1 = 0 ; |
13978 | PyObject * obj2 = 0 ; | |
13979 | PyObject * obj3 = 0 ; | |
13980 | PyObject * obj4 = 0 ; | |
44127b65 RD |
13981 | char *kwnames[] = { |
13982 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
13983 | }; | |
13984 | ||
8edf1c75 | 13985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
13987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13988 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 13989 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13990 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 13991 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13992 | if (obj3) { |
c370783e | 13993 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 13994 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
13995 | } |
13996 | if (obj4) { | |
c370783e | 13997 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 13998 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 13999 | } |
44127b65 RD |
14000 | { |
14001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14002 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
14003 | ||
14004 | wxPyEndAllowThreads(__tstate); | |
14005 | if (PyErr_Occurred()) SWIG_fail; | |
14006 | } | |
14007 | Py_INCREF(Py_None); resultobj = Py_None; | |
14008 | return resultobj; | |
14009 | fail: | |
14010 | return NULL; | |
14011 | } | |
14012 | ||
14013 | ||
c370783e | 14014 | static PyObject *_wrap_PyBitmapShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14015 | PyObject *resultobj; |
14016 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14017 | double arg2 ; | |
14018 | double arg3 ; | |
14019 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14020 | PyObject * obj1 = 0 ; |
14021 | PyObject * obj2 = 0 ; | |
44127b65 RD |
14022 | char *kwnames[] = { |
14023 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14024 | }; | |
14025 | ||
8edf1c75 | 14026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14029 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 14030 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14031 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14032 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
14033 | { |
14034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14035 | (arg1)->base_OnSize(arg2,arg3); | |
14036 | ||
14037 | wxPyEndAllowThreads(__tstate); | |
14038 | if (PyErr_Occurred()) SWIG_fail; | |
14039 | } | |
14040 | Py_INCREF(Py_None); resultobj = Py_None; | |
14041 | return resultobj; | |
14042 | fail: | |
14043 | return NULL; | |
14044 | } | |
14045 | ||
14046 | ||
c370783e | 14047 | static PyObject *_wrap_PyBitmapShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14048 | PyObject *resultobj; |
14049 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14050 | wxDC *arg2 = 0 ; | |
14051 | double arg3 ; | |
14052 | double arg4 ; | |
14053 | double arg5 ; | |
14054 | double arg6 ; | |
14055 | bool arg7 = (bool) True ; | |
14056 | bool result; | |
14057 | PyObject * obj0 = 0 ; | |
14058 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
14059 | PyObject * obj2 = 0 ; |
14060 | PyObject * obj3 = 0 ; | |
14061 | PyObject * obj4 = 0 ; | |
14062 | PyObject * obj5 = 0 ; | |
44127b65 RD |
14063 | PyObject * obj6 = 0 ; |
14064 | char *kwnames[] = { | |
14065 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
14066 | }; | |
14067 | ||
8edf1c75 | 14068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyBitmapShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
14069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14071 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14072 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14073 | SWIG_fail; | |
44127b65 | 14074 | if (arg2 == NULL) { |
2f4c0a16 RD |
14075 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14076 | SWIG_fail; | |
14077 | } | |
c370783e | 14078 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14079 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14080 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 14081 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14082 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 14083 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14084 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 14085 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 14086 | if (obj6) { |
c370783e | 14087 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 14088 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
14089 | } |
14090 | { | |
14091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14092 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
14093 | ||
14094 | wxPyEndAllowThreads(__tstate); | |
14095 | if (PyErr_Occurred()) SWIG_fail; | |
14096 | } | |
fbc46b20 RD |
14097 | { |
14098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14099 | } | |
44127b65 RD |
14100 | return resultobj; |
14101 | fail: | |
14102 | return NULL; | |
14103 | } | |
14104 | ||
14105 | ||
c370783e | 14106 | static PyObject *_wrap_PyBitmapShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14107 | PyObject *resultobj; |
14108 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14109 | wxDC *arg2 = 0 ; | |
14110 | double arg3 ; | |
14111 | double arg4 ; | |
14112 | double arg5 ; | |
14113 | double arg6 ; | |
14114 | bool arg7 = (bool) True ; | |
14115 | PyObject * obj0 = 0 ; | |
14116 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
14117 | PyObject * obj2 = 0 ; |
14118 | PyObject * obj3 = 0 ; | |
14119 | PyObject * obj4 = 0 ; | |
14120 | PyObject * obj5 = 0 ; | |
44127b65 RD |
14121 | PyObject * obj6 = 0 ; |
14122 | char *kwnames[] = { | |
14123 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
14124 | }; | |
14125 | ||
8edf1c75 | 14126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyBitmapShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
14127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14129 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14130 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14131 | SWIG_fail; | |
44127b65 | 14132 | if (arg2 == NULL) { |
2f4c0a16 RD |
14133 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14134 | SWIG_fail; | |
14135 | } | |
c370783e | 14136 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14137 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14138 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 14139 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14140 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 14141 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14142 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 14143 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 14144 | if (obj6) { |
c370783e | 14145 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 14146 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
14147 | } |
14148 | { | |
14149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14150 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
14151 | ||
14152 | wxPyEndAllowThreads(__tstate); | |
14153 | if (PyErr_Occurred()) SWIG_fail; | |
14154 | } | |
14155 | Py_INCREF(Py_None); resultobj = Py_None; | |
14156 | return resultobj; | |
14157 | fail: | |
14158 | return NULL; | |
14159 | } | |
14160 | ||
14161 | ||
c370783e | 14162 | static PyObject *_wrap_PyBitmapShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14163 | PyObject *resultobj; |
14164 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14165 | bool arg2 ; | |
14166 | double arg3 ; | |
14167 | double arg4 ; | |
14168 | int arg5 = (int) 0 ; | |
14169 | int arg6 = (int) 0 ; | |
14170 | PyObject * obj0 = 0 ; | |
14171 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
14172 | PyObject * obj2 = 0 ; |
14173 | PyObject * obj3 = 0 ; | |
14174 | PyObject * obj4 = 0 ; | |
14175 | PyObject * obj5 = 0 ; | |
44127b65 RD |
14176 | char *kwnames[] = { |
14177 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14178 | }; | |
14179 | ||
8edf1c75 | 14180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyBitmapShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14183 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 14184 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14185 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14186 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14187 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 14188 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14189 | if (obj4) { |
c370783e | 14190 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 14191 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14192 | } |
14193 | if (obj5) { | |
c370783e | 14194 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 14195 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14196 | } |
44127b65 RD |
14197 | { |
14198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14199 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
14200 | ||
14201 | wxPyEndAllowThreads(__tstate); | |
14202 | if (PyErr_Occurred()) SWIG_fail; | |
14203 | } | |
14204 | Py_INCREF(Py_None); resultobj = Py_None; | |
14205 | return resultobj; | |
14206 | fail: | |
14207 | return NULL; | |
14208 | } | |
14209 | ||
14210 | ||
c370783e | 14211 | static PyObject *_wrap_PyBitmapShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14212 | PyObject *resultobj; |
14213 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14214 | double arg2 ; | |
14215 | double arg3 ; | |
14216 | int arg4 = (int) 0 ; | |
14217 | int arg5 = (int) 0 ; | |
14218 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14219 | PyObject * obj1 = 0 ; |
14220 | PyObject * obj2 = 0 ; | |
14221 | PyObject * obj3 = 0 ; | |
14222 | PyObject * obj4 = 0 ; | |
44127b65 RD |
14223 | char *kwnames[] = { |
14224 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14225 | }; | |
14226 | ||
8edf1c75 | 14227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
14228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14230 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 14231 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14232 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14233 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14234 | if (obj3) { |
c370783e | 14235 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 14236 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14237 | } |
14238 | if (obj4) { | |
c370783e | 14239 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 14240 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14241 | } |
44127b65 RD |
14242 | { |
14243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14244 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
14245 | ||
14246 | wxPyEndAllowThreads(__tstate); | |
14247 | if (PyErr_Occurred()) SWIG_fail; | |
14248 | } | |
14249 | Py_INCREF(Py_None); resultobj = Py_None; | |
14250 | return resultobj; | |
14251 | fail: | |
14252 | return NULL; | |
14253 | } | |
14254 | ||
14255 | ||
c370783e | 14256 | static PyObject *_wrap_PyBitmapShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14257 | PyObject *resultobj; |
14258 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14259 | double arg2 ; | |
14260 | double arg3 ; | |
14261 | int arg4 = (int) 0 ; | |
14262 | int arg5 = (int) 0 ; | |
14263 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14264 | PyObject * obj1 = 0 ; |
14265 | PyObject * obj2 = 0 ; | |
14266 | PyObject * obj3 = 0 ; | |
14267 | PyObject * obj4 = 0 ; | |
44127b65 RD |
14268 | char *kwnames[] = { |
14269 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14270 | }; | |
14271 | ||
8edf1c75 | 14272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
14273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14275 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 14276 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14277 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14278 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14279 | if (obj3) { |
c370783e | 14280 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 14281 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14282 | } |
14283 | if (obj4) { | |
c370783e | 14284 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 14285 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14286 | } |
44127b65 RD |
14287 | { |
14288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14289 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
14290 | ||
14291 | wxPyEndAllowThreads(__tstate); | |
14292 | if (PyErr_Occurred()) SWIG_fail; | |
14293 | } | |
14294 | Py_INCREF(Py_None); resultobj = Py_None; | |
14295 | return resultobj; | |
14296 | fail: | |
14297 | return NULL; | |
14298 | } | |
14299 | ||
14300 | ||
c370783e | 14301 | static PyObject *_wrap_PyBitmapShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14302 | PyObject *resultobj; |
14303 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14304 | bool arg2 ; | |
14305 | double arg3 ; | |
14306 | double arg4 ; | |
14307 | int arg5 = (int) 0 ; | |
14308 | int arg6 = (int) 0 ; | |
14309 | PyObject * obj0 = 0 ; | |
14310 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
14311 | PyObject * obj2 = 0 ; |
14312 | PyObject * obj3 = 0 ; | |
14313 | PyObject * obj4 = 0 ; | |
14314 | PyObject * obj5 = 0 ; | |
44127b65 RD |
14315 | char *kwnames[] = { |
14316 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14317 | }; | |
14318 | ||
8edf1c75 | 14319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyBitmapShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14322 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 14323 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14324 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14325 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14326 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 14327 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14328 | if (obj4) { |
c370783e | 14329 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 14330 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14331 | } |
14332 | if (obj5) { | |
c370783e | 14333 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 14334 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14335 | } |
44127b65 RD |
14336 | { |
14337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14338 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
14339 | ||
14340 | wxPyEndAllowThreads(__tstate); | |
14341 | if (PyErr_Occurred()) SWIG_fail; | |
14342 | } | |
14343 | Py_INCREF(Py_None); resultobj = Py_None; | |
14344 | return resultobj; | |
14345 | fail: | |
14346 | return NULL; | |
14347 | } | |
14348 | ||
14349 | ||
c370783e | 14350 | static PyObject *_wrap_PyBitmapShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14351 | PyObject *resultobj; |
14352 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14353 | double arg2 ; | |
14354 | double arg3 ; | |
14355 | int arg4 = (int) 0 ; | |
14356 | int arg5 = (int) 0 ; | |
14357 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14358 | PyObject * obj1 = 0 ; |
14359 | PyObject * obj2 = 0 ; | |
14360 | PyObject * obj3 = 0 ; | |
14361 | PyObject * obj4 = 0 ; | |
44127b65 RD |
14362 | char *kwnames[] = { |
14363 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14364 | }; | |
14365 | ||
8edf1c75 | 14366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
14367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14369 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 14370 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14371 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14372 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14373 | if (obj3) { |
c370783e | 14374 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 14375 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14376 | } |
14377 | if (obj4) { | |
c370783e | 14378 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 14379 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14380 | } |
44127b65 RD |
14381 | { |
14382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14383 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
14384 | ||
14385 | wxPyEndAllowThreads(__tstate); | |
14386 | if (PyErr_Occurred()) SWIG_fail; | |
14387 | } | |
14388 | Py_INCREF(Py_None); resultobj = Py_None; | |
14389 | return resultobj; | |
14390 | fail: | |
14391 | return NULL; | |
14392 | } | |
14393 | ||
14394 | ||
c370783e | 14395 | static PyObject *_wrap_PyBitmapShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14396 | PyObject *resultobj; |
14397 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14398 | double arg2 ; | |
14399 | double arg3 ; | |
14400 | int arg4 = (int) 0 ; | |
14401 | int arg5 = (int) 0 ; | |
14402 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14403 | PyObject * obj1 = 0 ; |
14404 | PyObject * obj2 = 0 ; | |
14405 | PyObject * obj3 = 0 ; | |
14406 | PyObject * obj4 = 0 ; | |
44127b65 RD |
14407 | char *kwnames[] = { |
14408 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14409 | }; | |
14410 | ||
8edf1c75 | 14411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyBitmapShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
14412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14414 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 14415 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14416 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14417 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14418 | if (obj3) { |
c370783e | 14419 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 14420 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14421 | } |
14422 | if (obj4) { | |
c370783e | 14423 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 14424 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14425 | } |
44127b65 RD |
14426 | { |
14427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14428 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
14429 | ||
14430 | wxPyEndAllowThreads(__tstate); | |
14431 | if (PyErr_Occurred()) SWIG_fail; | |
14432 | } | |
14433 | Py_INCREF(Py_None); resultobj = Py_None; | |
14434 | return resultobj; | |
14435 | fail: | |
14436 | return NULL; | |
14437 | } | |
14438 | ||
14439 | ||
c370783e | 14440 | static PyObject *_wrap_PyBitmapShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14441 | PyObject *resultobj; |
14442 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14443 | wxDC *arg2 = 0 ; | |
14444 | double arg3 ; | |
14445 | double arg4 ; | |
14446 | double arg5 ; | |
14447 | double arg6 ; | |
14448 | PyObject * obj0 = 0 ; | |
14449 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
14450 | PyObject * obj2 = 0 ; |
14451 | PyObject * obj3 = 0 ; | |
14452 | PyObject * obj4 = 0 ; | |
14453 | PyObject * obj5 = 0 ; | |
44127b65 RD |
14454 | char *kwnames[] = { |
14455 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
14456 | }; | |
14457 | ||
8edf1c75 | 14458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyBitmapShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14462 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14463 | SWIG_fail; | |
44127b65 | 14464 | if (arg2 == NULL) { |
2f4c0a16 RD |
14465 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14466 | SWIG_fail; | |
8edf1c75 | 14467 | } |
c370783e | 14468 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14469 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14470 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 14471 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14472 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 14473 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14474 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 14475 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
14476 | { |
14477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14478 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
14479 | ||
14480 | wxPyEndAllowThreads(__tstate); | |
14481 | if (PyErr_Occurred()) SWIG_fail; | |
14482 | } | |
14483 | Py_INCREF(Py_None); resultobj = Py_None; | |
14484 | return resultobj; | |
14485 | fail: | |
14486 | return NULL; | |
14487 | } | |
14488 | ||
14489 | ||
c370783e | 14490 | static PyObject *_wrap_PyBitmapShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14491 | PyObject *resultobj; |
14492 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14493 | wxDC *arg2 = 0 ; | |
14494 | PyObject * obj0 = 0 ; | |
14495 | PyObject * obj1 = 0 ; | |
14496 | char *kwnames[] = { | |
14497 | (char *) "self",(char *) "dc", NULL | |
14498 | }; | |
14499 | ||
14500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14505 | SWIG_fail; | |
44127b65 | 14506 | if (arg2 == NULL) { |
2f4c0a16 RD |
14507 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14508 | SWIG_fail; | |
44127b65 RD |
14509 | } |
14510 | { | |
14511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14512 | (arg1)->base_OnDrawControlPoints(*arg2); | |
14513 | ||
14514 | wxPyEndAllowThreads(__tstate); | |
14515 | if (PyErr_Occurred()) SWIG_fail; | |
14516 | } | |
14517 | Py_INCREF(Py_None); resultobj = Py_None; | |
14518 | return resultobj; | |
14519 | fail: | |
14520 | return NULL; | |
14521 | } | |
14522 | ||
14523 | ||
c370783e | 14524 | static PyObject *_wrap_PyBitmapShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14525 | PyObject *resultobj; |
14526 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14527 | wxDC *arg2 = 0 ; | |
14528 | PyObject * obj0 = 0 ; | |
14529 | PyObject * obj1 = 0 ; | |
14530 | char *kwnames[] = { | |
14531 | (char *) "self",(char *) "dc", NULL | |
14532 | }; | |
14533 | ||
14534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyBitmapShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14537 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14538 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14539 | SWIG_fail; | |
44127b65 | 14540 | if (arg2 == NULL) { |
2f4c0a16 RD |
14541 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14542 | SWIG_fail; | |
44127b65 RD |
14543 | } |
14544 | { | |
14545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14546 | (arg1)->base_OnEraseControlPoints(*arg2); | |
14547 | ||
14548 | wxPyEndAllowThreads(__tstate); | |
14549 | if (PyErr_Occurred()) SWIG_fail; | |
14550 | } | |
14551 | Py_INCREF(Py_None); resultobj = Py_None; | |
14552 | return resultobj; | |
14553 | fail: | |
14554 | return NULL; | |
14555 | } | |
14556 | ||
14557 | ||
c370783e | 14558 | static PyObject *_wrap_PyBitmapShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14559 | PyObject *resultobj; |
14560 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14561 | wxDC *arg2 = 0 ; | |
14562 | bool arg3 = (bool) True ; | |
14563 | PyObject * obj0 = 0 ; | |
14564 | PyObject * obj1 = 0 ; | |
14565 | PyObject * obj2 = 0 ; | |
14566 | char *kwnames[] = { | |
14567 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
14568 | }; | |
14569 | ||
14570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyBitmapShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
14571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14573 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14574 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14575 | SWIG_fail; | |
44127b65 | 14576 | if (arg2 == NULL) { |
2f4c0a16 RD |
14577 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14578 | SWIG_fail; | |
44127b65 RD |
14579 | } |
14580 | if (obj2) { | |
c370783e | 14581 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 14582 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
14583 | } |
14584 | { | |
14585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14586 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
14587 | ||
14588 | wxPyEndAllowThreads(__tstate); | |
14589 | if (PyErr_Occurred()) SWIG_fail; | |
14590 | } | |
14591 | Py_INCREF(Py_None); resultobj = Py_None; | |
14592 | return resultobj; | |
14593 | fail: | |
14594 | return NULL; | |
14595 | } | |
14596 | ||
14597 | ||
c370783e | 14598 | static PyObject *_wrap_PyBitmapShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14599 | PyObject *resultobj; |
14600 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14601 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
14602 | bool arg3 ; | |
14603 | double arg4 ; | |
14604 | double arg5 ; | |
14605 | int arg6 = (int) 0 ; | |
14606 | int arg7 = (int) 0 ; | |
14607 | PyObject * obj0 = 0 ; | |
14608 | PyObject * obj1 = 0 ; | |
14609 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
14610 | PyObject * obj3 = 0 ; |
14611 | PyObject * obj4 = 0 ; | |
14612 | PyObject * obj5 = 0 ; | |
14613 | PyObject * obj6 = 0 ; | |
44127b65 RD |
14614 | char *kwnames[] = { |
14615 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14616 | }; | |
14617 | ||
8edf1c75 | 14618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyBitmapShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
14619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14621 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
14622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14623 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 14624 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14625 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 14626 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14627 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 14628 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14629 | if (obj5) { |
c370783e | 14630 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 14631 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14632 | } |
14633 | if (obj6) { | |
c370783e | 14634 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 14635 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14636 | } |
44127b65 RD |
14637 | { |
14638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14639 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
14640 | ||
14641 | wxPyEndAllowThreads(__tstate); | |
14642 | if (PyErr_Occurred()) SWIG_fail; | |
14643 | } | |
14644 | Py_INCREF(Py_None); resultobj = Py_None; | |
14645 | return resultobj; | |
14646 | fail: | |
14647 | return NULL; | |
14648 | } | |
14649 | ||
14650 | ||
c370783e | 14651 | static PyObject *_wrap_PyBitmapShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14652 | PyObject *resultobj; |
14653 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14654 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
14655 | double arg3 ; | |
14656 | double arg4 ; | |
14657 | int arg5 = (int) 0 ; | |
14658 | int arg6 = (int) 0 ; | |
14659 | PyObject * obj0 = 0 ; | |
14660 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
14661 | PyObject * obj2 = 0 ; |
14662 | PyObject * obj3 = 0 ; | |
14663 | PyObject * obj4 = 0 ; | |
14664 | PyObject * obj5 = 0 ; | |
44127b65 RD |
14665 | char *kwnames[] = { |
14666 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14667 | }; | |
14668 | ||
8edf1c75 | 14669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyBitmapShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14672 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
14673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14674 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14675 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14676 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 RD |
14677 | if (PyErr_Occurred()) SWIG_fail; |
14678 | if (obj4) { | |
c370783e | 14679 | arg5 = (int)SWIG_As_int(obj4); |
8edf1c75 RD |
14680 | if (PyErr_Occurred()) SWIG_fail; |
14681 | } | |
2f4c0a16 | 14682 | if (obj5) { |
c370783e | 14683 | arg6 = (int)SWIG_As_int(obj5); |
8edf1c75 RD |
14684 | if (PyErr_Occurred()) SWIG_fail; |
14685 | } | |
44127b65 RD |
14686 | { |
14687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14688 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
14689 | ||
14690 | wxPyEndAllowThreads(__tstate); | |
14691 | if (PyErr_Occurred()) SWIG_fail; | |
14692 | } | |
14693 | Py_INCREF(Py_None); resultobj = Py_None; | |
14694 | return resultobj; | |
14695 | fail: | |
14696 | return NULL; | |
14697 | } | |
14698 | ||
14699 | ||
c370783e | 14700 | static PyObject *_wrap_PyBitmapShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14701 | PyObject *resultobj; |
14702 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14703 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
14704 | double arg3 ; | |
14705 | double arg4 ; | |
14706 | int arg5 = (int) 0 ; | |
14707 | int arg6 = (int) 0 ; | |
14708 | PyObject * obj0 = 0 ; | |
14709 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
14710 | PyObject * obj2 = 0 ; |
14711 | PyObject * obj3 = 0 ; | |
14712 | PyObject * obj4 = 0 ; | |
14713 | PyObject * obj5 = 0 ; | |
44127b65 RD |
14714 | char *kwnames[] = { |
14715 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
14716 | }; | |
14717 | ||
8edf1c75 | 14718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyBitmapShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14721 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
14722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14723 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14724 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14725 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 14726 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14727 | if (obj4) { |
c370783e | 14728 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 14729 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14730 | } |
14731 | if (obj5) { | |
c370783e | 14732 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 14733 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14734 | } |
44127b65 RD |
14735 | { |
14736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14737 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
14738 | ||
14739 | wxPyEndAllowThreads(__tstate); | |
14740 | if (PyErr_Occurred()) SWIG_fail; | |
14741 | } | |
14742 | Py_INCREF(Py_None); resultobj = Py_None; | |
14743 | return resultobj; | |
14744 | fail: | |
14745 | return NULL; | |
14746 | } | |
14747 | ||
14748 | ||
c370783e | 14749 | static PyObject *_wrap_PyBitmapShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14750 | PyObject *resultobj; |
14751 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14752 | double arg2 ; | |
14753 | double arg3 ; | |
14754 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14755 | PyObject * obj1 = 0 ; |
14756 | PyObject * obj2 = 0 ; | |
44127b65 RD |
14757 | char *kwnames[] = { |
14758 | (char *) "self",(char *) "w",(char *) "h", NULL | |
14759 | }; | |
14760 | ||
8edf1c75 | 14761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14764 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 14765 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14766 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14767 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
14768 | { |
14769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14770 | (arg1)->base_OnBeginSize(arg2,arg3); | |
14771 | ||
14772 | wxPyEndAllowThreads(__tstate); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
14775 | Py_INCREF(Py_None); resultobj = Py_None; | |
14776 | return resultobj; | |
14777 | fail: | |
14778 | return NULL; | |
14779 | } | |
14780 | ||
14781 | ||
c370783e | 14782 | static PyObject *_wrap_PyBitmapShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14783 | PyObject *resultobj; |
14784 | wxPyBitmapShape *arg1 = (wxPyBitmapShape *) 0 ; | |
14785 | double arg2 ; | |
14786 | double arg3 ; | |
14787 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14788 | PyObject * obj1 = 0 ; |
14789 | PyObject * obj2 = 0 ; | |
44127b65 RD |
14790 | char *kwnames[] = { |
14791 | (char *) "self",(char *) "w",(char *) "h", NULL | |
14792 | }; | |
14793 | ||
8edf1c75 | 14794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapShape, |
14796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14797 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 14798 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14799 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 14800 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
14801 | { |
14802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14803 | (arg1)->base_OnEndSize(arg2,arg3); | |
14804 | ||
14805 | wxPyEndAllowThreads(__tstate); | |
14806 | if (PyErr_Occurred()) SWIG_fail; | |
14807 | } | |
14808 | Py_INCREF(Py_None); resultobj = Py_None; | |
14809 | return resultobj; | |
14810 | fail: | |
14811 | return NULL; | |
14812 | } | |
14813 | ||
14814 | ||
c370783e | 14815 | static PyObject * PyBitmapShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
14816 | PyObject *obj; |
14817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14818 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapShape, obj); | |
14819 | Py_INCREF(obj); | |
14820 | return Py_BuildValue((char *)""); | |
14821 | } | |
c370783e | 14822 | static PyObject *_wrap_new_PyDrawnShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14823 | PyObject *resultobj; |
14824 | wxPyDrawnShape *result; | |
14825 | char *kwnames[] = { | |
14826 | NULL | |
14827 | }; | |
14828 | ||
14829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyDrawnShape",kwnames)) goto fail; | |
14830 | { | |
14831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14832 | result = (wxPyDrawnShape *)new wxPyDrawnShape(); | |
14833 | ||
14834 | wxPyEndAllowThreads(__tstate); | |
14835 | if (PyErr_Occurred()) SWIG_fail; | |
14836 | } | |
2f4c0a16 | 14837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDrawnShape, 1); |
44127b65 RD |
14838 | return resultobj; |
14839 | fail: | |
14840 | return NULL; | |
14841 | } | |
14842 | ||
14843 | ||
c370783e | 14844 | static PyObject *_wrap_PyDrawnShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14845 | PyObject *resultobj; |
14846 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14847 | PyObject *arg2 = (PyObject *) 0 ; | |
14848 | PyObject *arg3 = (PyObject *) 0 ; | |
14849 | PyObject * obj0 = 0 ; | |
14850 | PyObject * obj1 = 0 ; | |
14851 | PyObject * obj2 = 0 ; | |
14852 | char *kwnames[] = { | |
14853 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14854 | }; | |
14855 | ||
14856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
14857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
14858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
14859 | arg2 = obj1; |
14860 | arg3 = obj2; | |
14861 | { | |
14862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14863 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14864 | ||
14865 | wxPyEndAllowThreads(__tstate); | |
14866 | if (PyErr_Occurred()) SWIG_fail; | |
14867 | } | |
14868 | Py_INCREF(Py_None); resultobj = Py_None; | |
14869 | return resultobj; | |
14870 | fail: | |
14871 | return NULL; | |
14872 | } | |
14873 | ||
14874 | ||
c370783e | 14875 | static PyObject *_wrap_PyDrawnShape_CalculateSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14876 | PyObject *resultobj; |
14877 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14878 | PyObject * obj0 = 0 ; | |
14879 | char *kwnames[] = { | |
14880 | (char *) "self", NULL | |
14881 | }; | |
14882 | ||
14883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_CalculateSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
14885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
14886 | { |
14887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14888 | (arg1)->CalculateSize(); | |
14889 | ||
14890 | wxPyEndAllowThreads(__tstate); | |
14891 | if (PyErr_Occurred()) SWIG_fail; | |
14892 | } | |
14893 | Py_INCREF(Py_None); resultobj = Py_None; | |
14894 | return resultobj; | |
14895 | fail: | |
14896 | return NULL; | |
14897 | } | |
14898 | ||
14899 | ||
c370783e | 14900 | static PyObject *_wrap_PyDrawnShape_DestroyClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14901 | PyObject *resultobj; |
14902 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14903 | PyObject * obj0 = 0 ; | |
14904 | char *kwnames[] = { | |
14905 | (char *) "self", NULL | |
14906 | }; | |
14907 | ||
14908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_DestroyClippingRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
14910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
14911 | { |
14912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14913 | (arg1)->DestroyClippingRect(); | |
14914 | ||
14915 | wxPyEndAllowThreads(__tstate); | |
14916 | if (PyErr_Occurred()) SWIG_fail; | |
14917 | } | |
14918 | Py_INCREF(Py_None); resultobj = Py_None; | |
14919 | return resultobj; | |
14920 | fail: | |
14921 | return NULL; | |
14922 | } | |
14923 | ||
14924 | ||
c370783e | 14925 | static PyObject *_wrap_PyDrawnShape_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14926 | PyObject *resultobj; |
14927 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14928 | wxPoint *arg2 = 0 ; | |
14929 | wxPoint *arg3 = 0 ; | |
14930 | wxPoint *arg4 = 0 ; | |
14931 | wxPoint temp2 ; | |
14932 | wxPoint temp3 ; | |
14933 | wxPoint temp4 ; | |
14934 | PyObject * obj0 = 0 ; | |
14935 | PyObject * obj1 = 0 ; | |
14936 | PyObject * obj2 = 0 ; | |
14937 | PyObject * obj3 = 0 ; | |
14938 | char *kwnames[] = { | |
14939 | (char *) "self",(char *) "centrePoint",(char *) "startPoint",(char *) "endPoint", NULL | |
14940 | }; | |
14941 | ||
14942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyDrawnShape_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
14943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
14944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
14945 | { |
14946 | arg2 = &temp2; | |
14947 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14948 | } | |
14949 | { | |
14950 | arg3 = &temp3; | |
14951 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14952 | } | |
14953 | { | |
14954 | arg4 = &temp4; | |
14955 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14956 | } | |
14957 | { | |
14958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14959 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
14960 | ||
14961 | wxPyEndAllowThreads(__tstate); | |
14962 | if (PyErr_Occurred()) SWIG_fail; | |
14963 | } | |
14964 | Py_INCREF(Py_None); resultobj = Py_None; | |
14965 | return resultobj; | |
14966 | fail: | |
14967 | return NULL; | |
14968 | } | |
14969 | ||
14970 | ||
c370783e | 14971 | static PyObject *_wrap_PyDrawnShape_DrawAtAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
14972 | PyObject *resultobj; |
14973 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
14974 | int arg2 ; | |
14975 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14976 | PyObject * obj1 = 0 ; |
44127b65 RD |
14977 | char *kwnames[] = { |
14978 | (char *) "self",(char *) "angle", NULL | |
14979 | }; | |
14980 | ||
8edf1c75 | 14981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawAtAngle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
14983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14984 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 14985 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
14986 | { |
14987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14988 | (arg1)->DrawAtAngle(arg2); | |
14989 | ||
14990 | wxPyEndAllowThreads(__tstate); | |
14991 | if (PyErr_Occurred()) SWIG_fail; | |
14992 | } | |
14993 | Py_INCREF(Py_None); resultobj = Py_None; | |
14994 | return resultobj; | |
14995 | fail: | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
c370783e | 15000 | static PyObject *_wrap_PyDrawnShape_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15001 | PyObject *resultobj; |
15002 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15003 | wxRect *arg2 = 0 ; | |
15004 | double arg3 ; | |
15005 | double arg4 ; | |
15006 | wxRect temp2 ; | |
15007 | PyObject * obj0 = 0 ; | |
15008 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
15009 | PyObject * obj2 = 0 ; |
15010 | PyObject * obj3 = 0 ; | |
44127b65 RD |
15011 | char *kwnames[] = { |
15012 | (char *) "self",(char *) "rect",(char *) "startAngle",(char *) "endAngle", NULL | |
15013 | }; | |
15014 | ||
8edf1c75 | 15015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyDrawnShape_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
15016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15018 | { |
15019 | arg2 = &temp2; | |
15020 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15021 | } | |
c370783e | 15022 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 15023 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 15024 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 15025 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15026 | { |
15027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15028 | (arg1)->DrawEllipticArc((wxRect const &)*arg2,arg3,arg4); | |
15029 | ||
15030 | wxPyEndAllowThreads(__tstate); | |
15031 | if (PyErr_Occurred()) SWIG_fail; | |
15032 | } | |
15033 | Py_INCREF(Py_None); resultobj = Py_None; | |
15034 | return resultobj; | |
15035 | fail: | |
15036 | return NULL; | |
15037 | } | |
15038 | ||
15039 | ||
c370783e | 15040 | static PyObject *_wrap_PyDrawnShape_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15041 | PyObject *resultobj; |
15042 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15043 | wxPoint *arg2 = 0 ; | |
15044 | wxPoint *arg3 = 0 ; | |
15045 | wxPoint temp2 ; | |
15046 | wxPoint temp3 ; | |
15047 | PyObject * obj0 = 0 ; | |
15048 | PyObject * obj1 = 0 ; | |
15049 | PyObject * obj2 = 0 ; | |
15050 | char *kwnames[] = { | |
15051 | (char *) "self",(char *) "point1",(char *) "point2", NULL | |
15052 | }; | |
15053 | ||
15054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15057 | { |
15058 | arg2 = &temp2; | |
15059 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15060 | } | |
15061 | { | |
15062 | arg3 = &temp3; | |
15063 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15064 | } | |
15065 | { | |
15066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15067 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
15068 | ||
15069 | wxPyEndAllowThreads(__tstate); | |
15070 | if (PyErr_Occurred()) SWIG_fail; | |
15071 | } | |
15072 | Py_INCREF(Py_None); resultobj = Py_None; | |
15073 | return resultobj; | |
15074 | fail: | |
15075 | return NULL; | |
15076 | } | |
15077 | ||
15078 | ||
c370783e | 15079 | static PyObject *_wrap_PyDrawnShape_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15080 | PyObject *resultobj; |
15081 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15082 | int arg2 ; | |
15083 | wxPoint *arg3 = (wxPoint *) 0 ; | |
15084 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15085 | PyObject * obj1 = 0 ; |
44127b65 | 15086 | char *kwnames[] = { |
a5ee0656 | 15087 | (char *) "self",(char *) "points", NULL |
44127b65 RD |
15088 | }; |
15089 | ||
a5ee0656 | 15090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawLines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a5ee0656 RD |
15093 | { |
15094 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
15095 | if (arg3 == NULL) SWIG_fail; | |
15096 | } | |
44127b65 RD |
15097 | { |
15098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15099 | (arg1)->DrawLines(arg2,arg3); | |
15100 | ||
15101 | wxPyEndAllowThreads(__tstate); | |
15102 | if (PyErr_Occurred()) SWIG_fail; | |
15103 | } | |
15104 | Py_INCREF(Py_None); resultobj = Py_None; | |
a5ee0656 RD |
15105 | { |
15106 | if (arg3) delete [] arg3; | |
15107 | } | |
44127b65 RD |
15108 | return resultobj; |
15109 | fail: | |
a5ee0656 RD |
15110 | { |
15111 | if (arg3) delete [] arg3; | |
15112 | } | |
44127b65 RD |
15113 | return NULL; |
15114 | } | |
15115 | ||
15116 | ||
c370783e | 15117 | static PyObject *_wrap_PyDrawnShape_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15118 | PyObject *resultobj; |
15119 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15120 | wxPoint *arg2 = 0 ; | |
15121 | wxPoint temp2 ; | |
15122 | PyObject * obj0 = 0 ; | |
15123 | PyObject * obj1 = 0 ; | |
15124 | char *kwnames[] = { | |
15125 | (char *) "self",(char *) "point", NULL | |
15126 | }; | |
15127 | ||
15128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15131 | { |
15132 | arg2 = &temp2; | |
15133 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15134 | } | |
15135 | { | |
15136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15137 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
15138 | ||
15139 | wxPyEndAllowThreads(__tstate); | |
15140 | if (PyErr_Occurred()) SWIG_fail; | |
15141 | } | |
15142 | Py_INCREF(Py_None); resultobj = Py_None; | |
15143 | return resultobj; | |
15144 | fail: | |
15145 | return NULL; | |
15146 | } | |
15147 | ||
15148 | ||
c370783e | 15149 | static PyObject *_wrap_PyDrawnShape_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15150 | PyObject *resultobj; |
15151 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15152 | int arg2 ; | |
15153 | wxPoint *arg3 = (wxPoint *) 0 ; | |
15154 | int arg4 = (int) 0 ; | |
15155 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15156 | PyObject * obj1 = 0 ; |
44127b65 RD |
15157 | PyObject * obj2 = 0 ; |
15158 | char *kwnames[] = { | |
a5ee0656 | 15159 | (char *) "self",(char *) "points",(char *) "flags", NULL |
44127b65 RD |
15160 | }; |
15161 | ||
a5ee0656 | 15162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_DrawPolygon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a5ee0656 RD |
15165 | { |
15166 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
15167 | if (arg3 == NULL) SWIG_fail; | |
15168 | } | |
15169 | if (obj2) { | |
c370783e | 15170 | arg4 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 15171 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 15172 | } |
44127b65 RD |
15173 | { |
15174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15175 | (arg1)->DrawPolygon(arg2,arg3,arg4); | |
15176 | ||
15177 | wxPyEndAllowThreads(__tstate); | |
15178 | if (PyErr_Occurred()) SWIG_fail; | |
15179 | } | |
15180 | Py_INCREF(Py_None); resultobj = Py_None; | |
a5ee0656 RD |
15181 | { |
15182 | if (arg3) delete [] arg3; | |
15183 | } | |
44127b65 RD |
15184 | return resultobj; |
15185 | fail: | |
a5ee0656 RD |
15186 | { |
15187 | if (arg3) delete [] arg3; | |
15188 | } | |
44127b65 RD |
15189 | return NULL; |
15190 | } | |
15191 | ||
15192 | ||
c370783e | 15193 | static PyObject *_wrap_PyDrawnShape_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15194 | PyObject *resultobj; |
15195 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15196 | wxRect *arg2 = 0 ; | |
15197 | wxRect temp2 ; | |
15198 | PyObject * obj0 = 0 ; | |
15199 | PyObject * obj1 = 0 ; | |
15200 | char *kwnames[] = { | |
15201 | (char *) "self",(char *) "rect", NULL | |
15202 | }; | |
15203 | ||
15204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawRectangle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15207 | { |
15208 | arg2 = &temp2; | |
15209 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15210 | } | |
15211 | { | |
15212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15213 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
15214 | ||
15215 | wxPyEndAllowThreads(__tstate); | |
15216 | if (PyErr_Occurred()) SWIG_fail; | |
15217 | } | |
15218 | Py_INCREF(Py_None); resultobj = Py_None; | |
15219 | return resultobj; | |
15220 | fail: | |
15221 | return NULL; | |
15222 | } | |
15223 | ||
15224 | ||
c370783e | 15225 | static PyObject *_wrap_PyDrawnShape_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15226 | PyObject *resultobj; |
15227 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15228 | wxRect *arg2 = 0 ; | |
15229 | double arg3 ; | |
15230 | wxRect temp2 ; | |
15231 | PyObject * obj0 = 0 ; | |
15232 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15233 | PyObject * obj2 = 0 ; |
44127b65 RD |
15234 | char *kwnames[] = { |
15235 | (char *) "self",(char *) "rect",(char *) "radius", NULL | |
15236 | }; | |
15237 | ||
8edf1c75 | 15238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15241 | { |
15242 | arg2 = &temp2; | |
15243 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15244 | } | |
c370783e | 15245 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 15246 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15247 | { |
15248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15249 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
15250 | ||
15251 | wxPyEndAllowThreads(__tstate); | |
15252 | if (PyErr_Occurred()) SWIG_fail; | |
15253 | } | |
15254 | Py_INCREF(Py_None); resultobj = Py_None; | |
15255 | return resultobj; | |
15256 | fail: | |
15257 | return NULL; | |
15258 | } | |
15259 | ||
15260 | ||
c370783e | 15261 | static PyObject *_wrap_PyDrawnShape_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15262 | PyObject *resultobj; |
15263 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15264 | int arg2 ; | |
15265 | wxPoint *arg3 = (wxPoint *) 0 ; | |
15266 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15267 | PyObject * obj1 = 0 ; |
44127b65 | 15268 | char *kwnames[] = { |
a5ee0656 | 15269 | (char *) "self",(char *) "points", NULL |
44127b65 RD |
15270 | }; |
15271 | ||
a5ee0656 | 15272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_DrawSpline",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a5ee0656 RD |
15275 | { |
15276 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
15277 | if (arg3 == NULL) SWIG_fail; | |
15278 | } | |
44127b65 RD |
15279 | { |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | (arg1)->DrawSpline(arg2,arg3); | |
15282 | ||
15283 | wxPyEndAllowThreads(__tstate); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
15286 | Py_INCREF(Py_None); resultobj = Py_None; | |
a5ee0656 RD |
15287 | { |
15288 | if (arg3) delete [] arg3; | |
15289 | } | |
44127b65 RD |
15290 | return resultobj; |
15291 | fail: | |
a5ee0656 RD |
15292 | { |
15293 | if (arg3) delete [] arg3; | |
15294 | } | |
44127b65 RD |
15295 | return NULL; |
15296 | } | |
15297 | ||
15298 | ||
c370783e | 15299 | static PyObject *_wrap_PyDrawnShape_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15300 | PyObject *resultobj; |
15301 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15302 | wxString *arg2 = 0 ; | |
15303 | wxPoint *arg3 = 0 ; | |
15304 | bool temp2 = False ; | |
15305 | wxPoint temp3 ; | |
15306 | PyObject * obj0 = 0 ; | |
15307 | PyObject * obj1 = 0 ; | |
15308 | PyObject * obj2 = 0 ; | |
15309 | char *kwnames[] = { | |
15310 | (char *) "self",(char *) "text",(char *) "point", NULL | |
15311 | }; | |
15312 | ||
15313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15316 | { |
15317 | arg2 = wxString_in_helper(obj1); | |
15318 | if (arg2 == NULL) SWIG_fail; | |
15319 | temp2 = True; | |
15320 | } | |
15321 | { | |
15322 | arg3 = &temp3; | |
15323 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15324 | } | |
15325 | { | |
15326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15327 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
15328 | ||
15329 | wxPyEndAllowThreads(__tstate); | |
15330 | if (PyErr_Occurred()) SWIG_fail; | |
15331 | } | |
15332 | Py_INCREF(Py_None); resultobj = Py_None; | |
15333 | { | |
15334 | if (temp2) | |
15335 | delete arg2; | |
15336 | } | |
15337 | return resultobj; | |
15338 | fail: | |
15339 | { | |
15340 | if (temp2) | |
15341 | delete arg2; | |
15342 | } | |
15343 | return NULL; | |
15344 | } | |
15345 | ||
15346 | ||
c370783e | 15347 | static PyObject *_wrap_PyDrawnShape_GetAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15348 | PyObject *resultobj; |
15349 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15350 | int result; | |
15351 | PyObject * obj0 = 0 ; | |
15352 | char *kwnames[] = { | |
15353 | (char *) "self", NULL | |
15354 | }; | |
15355 | ||
15356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_GetAngle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15359 | { |
15360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15361 | result = (int)(arg1)->GetAngle(); | |
15362 | ||
15363 | wxPyEndAllowThreads(__tstate); | |
15364 | if (PyErr_Occurred()) SWIG_fail; | |
15365 | } | |
c370783e | 15366 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
15367 | return resultobj; |
15368 | fail: | |
15369 | return NULL; | |
15370 | } | |
15371 | ||
15372 | ||
c370783e | 15373 | static PyObject *_wrap_PyDrawnShape_GetMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15374 | PyObject *resultobj; |
15375 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15376 | wxPseudoMetaFile *result; | |
15377 | PyObject * obj0 = 0 ; | |
15378 | char *kwnames[] = { | |
15379 | (char *) "self", NULL | |
15380 | }; | |
15381 | ||
15382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_GetMetaFile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15385 | { |
15386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15387 | { | |
15388 | wxPseudoMetaFile &_result_ref = (arg1)->GetMetaFile(); | |
15389 | result = (wxPseudoMetaFile *) &_result_ref; | |
15390 | } | |
15391 | ||
15392 | wxPyEndAllowThreads(__tstate); | |
15393 | if (PyErr_Occurred()) SWIG_fail; | |
15394 | } | |
2f4c0a16 | 15395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPseudoMetaFile, 0); |
44127b65 RD |
15396 | return resultobj; |
15397 | fail: | |
15398 | return NULL; | |
15399 | } | |
15400 | ||
15401 | ||
c370783e | 15402 | static PyObject *_wrap_PyDrawnShape_GetRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15403 | PyObject *resultobj; |
15404 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15405 | double result; | |
15406 | PyObject * obj0 = 0 ; | |
15407 | char *kwnames[] = { | |
15408 | (char *) "self", NULL | |
15409 | }; | |
15410 | ||
15411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_GetRotation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15414 | { |
15415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15416 | result = (double)(arg1)->GetRotation(); | |
15417 | ||
15418 | wxPyEndAllowThreads(__tstate); | |
15419 | if (PyErr_Occurred()) SWIG_fail; | |
15420 | } | |
c370783e | 15421 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
15422 | return resultobj; |
15423 | fail: | |
15424 | return NULL; | |
15425 | } | |
15426 | ||
15427 | ||
c370783e | 15428 | static PyObject *_wrap_PyDrawnShape_LoadFromMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15429 | PyObject *resultobj; |
15430 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15431 | wxString *arg2 = 0 ; | |
15432 | bool result; | |
15433 | bool temp2 = False ; | |
15434 | PyObject * obj0 = 0 ; | |
15435 | PyObject * obj1 = 0 ; | |
15436 | char *kwnames[] = { | |
15437 | (char *) "self",(char *) "filename", NULL | |
15438 | }; | |
15439 | ||
15440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_LoadFromMetaFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15443 | { |
15444 | arg2 = wxString_in_helper(obj1); | |
15445 | if (arg2 == NULL) SWIG_fail; | |
15446 | temp2 = True; | |
15447 | } | |
15448 | { | |
15449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15450 | result = (bool)(arg1)->LoadFromMetaFile((wxString const &)*arg2); | |
15451 | ||
15452 | wxPyEndAllowThreads(__tstate); | |
15453 | if (PyErr_Occurred()) SWIG_fail; | |
15454 | } | |
fbc46b20 RD |
15455 | { |
15456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15457 | } | |
44127b65 RD |
15458 | { |
15459 | if (temp2) | |
15460 | delete arg2; | |
15461 | } | |
15462 | return resultobj; | |
15463 | fail: | |
15464 | { | |
15465 | if (temp2) | |
15466 | delete arg2; | |
15467 | } | |
15468 | return NULL; | |
15469 | } | |
15470 | ||
15471 | ||
c370783e | 15472 | static PyObject *_wrap_PyDrawnShape_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15473 | PyObject *resultobj; |
15474 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15475 | double arg2 ; | |
15476 | double arg3 ; | |
15477 | double arg4 ; | |
15478 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15479 | PyObject * obj1 = 0 ; |
15480 | PyObject * obj2 = 0 ; | |
15481 | PyObject * obj3 = 0 ; | |
44127b65 RD |
15482 | char *kwnames[] = { |
15483 | (char *) "self",(char *) "x",(char *) "y",(char *) "theta", NULL | |
15484 | }; | |
15485 | ||
8edf1c75 | 15486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyDrawnShape_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
15487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15489 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 15490 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 15491 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 15492 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 15493 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 15494 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15495 | { |
15496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15497 | (arg1)->Rotate(arg2,arg3,arg4); | |
15498 | ||
15499 | wxPyEndAllowThreads(__tstate); | |
15500 | if (PyErr_Occurred()) SWIG_fail; | |
15501 | } | |
15502 | Py_INCREF(Py_None); resultobj = Py_None; | |
15503 | return resultobj; | |
15504 | fail: | |
15505 | return NULL; | |
15506 | } | |
15507 | ||
15508 | ||
c370783e | 15509 | static PyObject *_wrap_PyDrawnShape_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15510 | PyObject *resultobj; |
15511 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15512 | wxRect *arg2 = 0 ; | |
15513 | wxRect temp2 ; | |
15514 | PyObject * obj0 = 0 ; | |
15515 | PyObject * obj1 = 0 ; | |
15516 | char *kwnames[] = { | |
15517 | (char *) "self",(char *) "rect", NULL | |
15518 | }; | |
15519 | ||
15520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15523 | { |
15524 | arg2 = &temp2; | |
15525 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
15526 | } | |
15527 | { | |
15528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15529 | (arg1)->SetClippingRect((wxRect const &)*arg2); | |
15530 | ||
15531 | wxPyEndAllowThreads(__tstate); | |
15532 | if (PyErr_Occurred()) SWIG_fail; | |
15533 | } | |
15534 | Py_INCREF(Py_None); resultobj = Py_None; | |
15535 | return resultobj; | |
15536 | fail: | |
15537 | return NULL; | |
15538 | } | |
15539 | ||
15540 | ||
c370783e | 15541 | static PyObject *_wrap_PyDrawnShape_SetDrawnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15542 | PyObject *resultobj; |
15543 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15544 | wxColour *arg2 = 0 ; | |
15545 | wxColour temp2 ; | |
15546 | PyObject * obj0 = 0 ; | |
15547 | PyObject * obj1 = 0 ; | |
15548 | char *kwnames[] = { | |
15549 | (char *) "self",(char *) "colour", NULL | |
15550 | }; | |
15551 | ||
15552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15555 | { |
15556 | arg2 = &temp2; | |
15557 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15558 | } | |
15559 | { | |
15560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15561 | (arg1)->SetDrawnBackgroundColour((wxColour const &)*arg2); | |
15562 | ||
15563 | wxPyEndAllowThreads(__tstate); | |
15564 | if (PyErr_Occurred()) SWIG_fail; | |
15565 | } | |
15566 | Py_INCREF(Py_None); resultobj = Py_None; | |
15567 | return resultobj; | |
15568 | fail: | |
15569 | return NULL; | |
15570 | } | |
15571 | ||
15572 | ||
c370783e | 15573 | static PyObject *_wrap_PyDrawnShape_SetDrawnBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15574 | PyObject *resultobj; |
15575 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15576 | int arg2 ; | |
15577 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15578 | PyObject * obj1 = 0 ; |
44127b65 RD |
15579 | char *kwnames[] = { |
15580 | (char *) "self",(char *) "mode", NULL | |
15581 | }; | |
15582 | ||
8edf1c75 | 15583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15586 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 15587 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15588 | { |
15589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15590 | (arg1)->SetDrawnBackgroundMode(arg2); | |
15591 | ||
15592 | wxPyEndAllowThreads(__tstate); | |
15593 | if (PyErr_Occurred()) SWIG_fail; | |
15594 | } | |
15595 | Py_INCREF(Py_None); resultobj = Py_None; | |
15596 | return resultobj; | |
15597 | fail: | |
15598 | return NULL; | |
15599 | } | |
15600 | ||
15601 | ||
c370783e | 15602 | static PyObject *_wrap_PyDrawnShape_SetDrawnBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15603 | PyObject *resultobj; |
15604 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15605 | wxBrush *arg2 = (wxBrush *) 0 ; | |
15606 | bool arg3 = (bool) FALSE ; | |
15607 | PyObject * obj0 = 0 ; | |
15608 | PyObject * obj1 = 0 ; | |
15609 | PyObject * obj2 = 0 ; | |
15610 | char *kwnames[] = { | |
15611 | (char *) "self",(char *) "pen",(char *) "isOutline", NULL | |
15612 | }; | |
15613 | ||
15614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_SetDrawnBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15617 | { |
15618 | wxBrush* temp; | |
15619 | if (obj1) { | |
15620 | if (obj1 == Py_None) { | |
15621 | temp = NULL; | |
15622 | } | |
15623 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxBrush"))) { | |
15624 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush."); | |
15625 | return NULL; | |
15626 | } | |
15627 | } | |
15628 | if (temp) | |
15629 | arg2 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle()); | |
15630 | else | |
15631 | arg2 = NULL; | |
15632 | } | |
15633 | if (obj2) { | |
c370783e | 15634 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 15635 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15636 | } |
15637 | { | |
15638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15639 | (arg1)->SetDrawnBrush(arg2,arg3); | |
15640 | ||
15641 | wxPyEndAllowThreads(__tstate); | |
15642 | if (PyErr_Occurred()) SWIG_fail; | |
15643 | } | |
15644 | Py_INCREF(Py_None); resultobj = Py_None; | |
15645 | return resultobj; | |
15646 | fail: | |
15647 | return NULL; | |
15648 | } | |
15649 | ||
15650 | ||
c370783e | 15651 | static PyObject *_wrap_PyDrawnShape_SetDrawnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15652 | PyObject *resultobj; |
15653 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15654 | wxFont *arg2 = (wxFont *) 0 ; | |
15655 | PyObject * obj0 = 0 ; | |
15656 | PyObject * obj1 = 0 ; | |
15657 | char *kwnames[] = { | |
15658 | (char *) "self",(char *) "font", NULL | |
15659 | }; | |
15660 | ||
15661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15664 | { |
15665 | wxFont* temp; | |
15666 | if (obj1) { | |
15667 | if (obj1 == Py_None) { | |
15668 | temp = NULL; | |
15669 | } | |
15670 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxFont"))) { | |
15671 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont."); | |
15672 | return NULL; | |
15673 | } | |
15674 | } | |
15675 | if (temp) | |
15676 | arg2 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(), | |
15677 | temp->GetFamily(), | |
15678 | temp->GetStyle(), | |
15679 | temp->GetWeight(), | |
15680 | temp->GetUnderlined(), | |
15681 | temp->GetFaceName(), | |
15682 | temp->GetEncoding()); | |
15683 | else | |
15684 | arg2 = NULL; | |
15685 | } | |
15686 | { | |
15687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15688 | (arg1)->SetDrawnFont(arg2); | |
15689 | ||
15690 | wxPyEndAllowThreads(__tstate); | |
15691 | if (PyErr_Occurred()) SWIG_fail; | |
15692 | } | |
15693 | Py_INCREF(Py_None); resultobj = Py_None; | |
15694 | return resultobj; | |
15695 | fail: | |
15696 | return NULL; | |
15697 | } | |
15698 | ||
15699 | ||
c370783e | 15700 | static PyObject *_wrap_PyDrawnShape_SetDrawnPen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15701 | PyObject *resultobj; |
15702 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15703 | wxPen *arg2 = (wxPen *) 0 ; | |
15704 | bool arg3 = (bool) FALSE ; | |
15705 | PyObject * obj0 = 0 ; | |
15706 | PyObject * obj1 = 0 ; | |
15707 | PyObject * obj2 = 0 ; | |
15708 | char *kwnames[] = { | |
15709 | (char *) "self",(char *) "pen",(char *) "isOutline", NULL | |
15710 | }; | |
15711 | ||
15712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_SetDrawnPen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15715 | { |
15716 | wxPen* temp; | |
15717 | if (obj1) { | |
15718 | if (obj1 == Py_None) { | |
15719 | temp = NULL; | |
15720 | } | |
15721 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
15722 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
15723 | return NULL; | |
15724 | } | |
15725 | } | |
15726 | if (temp) | |
15727 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
15728 | temp->GetWidth(), | |
15729 | temp->GetStyle()); | |
15730 | else | |
15731 | arg2 = NULL; | |
15732 | } | |
15733 | if (obj2) { | |
c370783e | 15734 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 15735 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15736 | } |
15737 | { | |
15738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15739 | (arg1)->SetDrawnPen(arg2,arg3); | |
15740 | ||
15741 | wxPyEndAllowThreads(__tstate); | |
15742 | if (PyErr_Occurred()) SWIG_fail; | |
15743 | } | |
15744 | Py_INCREF(Py_None); resultobj = Py_None; | |
15745 | return resultobj; | |
15746 | fail: | |
15747 | return NULL; | |
15748 | } | |
15749 | ||
15750 | ||
c370783e | 15751 | static PyObject *_wrap_PyDrawnShape_SetDrawnTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15752 | PyObject *resultobj; |
15753 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15754 | wxColour *arg2 = 0 ; | |
15755 | wxColour temp2 ; | |
15756 | PyObject * obj0 = 0 ; | |
15757 | PyObject * obj1 = 0 ; | |
15758 | char *kwnames[] = { | |
15759 | (char *) "self",(char *) "colour", NULL | |
15760 | }; | |
15761 | ||
15762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetDrawnTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15765 | { |
15766 | arg2 = &temp2; | |
15767 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15768 | } | |
15769 | { | |
15770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15771 | (arg1)->SetDrawnTextColour((wxColour const &)*arg2); | |
15772 | ||
15773 | wxPyEndAllowThreads(__tstate); | |
15774 | if (PyErr_Occurred()) SWIG_fail; | |
15775 | } | |
15776 | Py_INCREF(Py_None); resultobj = Py_None; | |
15777 | return resultobj; | |
15778 | fail: | |
15779 | return NULL; | |
15780 | } | |
15781 | ||
15782 | ||
c370783e | 15783 | static PyObject *_wrap_PyDrawnShape_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15784 | PyObject *resultobj; |
15785 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15786 | double arg2 ; | |
15787 | double arg3 ; | |
15788 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15789 | PyObject * obj1 = 0 ; |
15790 | PyObject * obj2 = 0 ; | |
44127b65 RD |
15791 | char *kwnames[] = { |
15792 | (char *) "self",(char *) "sx",(char *) "sy", NULL | |
15793 | }; | |
15794 | ||
8edf1c75 | 15795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15798 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 15799 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 15800 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 15801 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15802 | { |
15803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15804 | (arg1)->Scale(arg2,arg3); | |
15805 | ||
15806 | wxPyEndAllowThreads(__tstate); | |
15807 | if (PyErr_Occurred()) SWIG_fail; | |
15808 | } | |
15809 | Py_INCREF(Py_None); resultobj = Py_None; | |
15810 | return resultobj; | |
15811 | fail: | |
15812 | return NULL; | |
15813 | } | |
15814 | ||
15815 | ||
c370783e | 15816 | static PyObject *_wrap_PyDrawnShape_SetSaveToFile(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15817 | PyObject *resultobj; |
15818 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15819 | bool arg2 ; | |
15820 | PyObject * obj0 = 0 ; | |
15821 | PyObject * obj1 = 0 ; | |
15822 | char *kwnames[] = { | |
15823 | (char *) "self",(char *) "save", NULL | |
15824 | }; | |
15825 | ||
15826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_SetSaveToFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15829 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 15830 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15831 | { |
15832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15833 | (arg1)->SetSaveToFile(arg2); | |
15834 | ||
15835 | wxPyEndAllowThreads(__tstate); | |
15836 | if (PyErr_Occurred()) SWIG_fail; | |
15837 | } | |
15838 | Py_INCREF(Py_None); resultobj = Py_None; | |
15839 | return resultobj; | |
15840 | fail: | |
15841 | return NULL; | |
15842 | } | |
15843 | ||
15844 | ||
c370783e | 15845 | static PyObject *_wrap_PyDrawnShape_Translate(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15846 | PyObject *resultobj; |
15847 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15848 | double arg2 ; | |
15849 | double arg3 ; | |
15850 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15851 | PyObject * obj1 = 0 ; |
15852 | PyObject * obj2 = 0 ; | |
44127b65 RD |
15853 | char *kwnames[] = { |
15854 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15855 | }; | |
15856 | ||
8edf1c75 | 15857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_Translate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15860 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 15861 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 15862 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 15863 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15864 | { |
15865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15866 | (arg1)->Translate(arg2,arg3); | |
15867 | ||
15868 | wxPyEndAllowThreads(__tstate); | |
15869 | if (PyErr_Occurred()) SWIG_fail; | |
15870 | } | |
15871 | Py_INCREF(Py_None); resultobj = Py_None; | |
15872 | return resultobj; | |
15873 | fail: | |
15874 | return NULL; | |
15875 | } | |
15876 | ||
15877 | ||
c370783e | 15878 | static PyObject *_wrap_PyDrawnShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15879 | PyObject *resultobj; |
15880 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15881 | PyObject * obj0 = 0 ; | |
15882 | char *kwnames[] = { | |
15883 | (char *) "self", NULL | |
15884 | }; | |
15885 | ||
15886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDrawnShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
15889 | { |
15890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15891 | (arg1)->base_OnDelete(); | |
15892 | ||
15893 | wxPyEndAllowThreads(__tstate); | |
15894 | if (PyErr_Occurred()) SWIG_fail; | |
15895 | } | |
15896 | Py_INCREF(Py_None); resultobj = Py_None; | |
15897 | return resultobj; | |
15898 | fail: | |
15899 | return NULL; | |
15900 | } | |
15901 | ||
15902 | ||
c370783e | 15903 | static PyObject *_wrap_PyDrawnShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15904 | PyObject *resultobj; |
15905 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15906 | wxDC *arg2 = 0 ; | |
15907 | PyObject * obj0 = 0 ; | |
15908 | PyObject * obj1 = 0 ; | |
15909 | char *kwnames[] = { | |
15910 | (char *) "self",(char *) "dc", NULL | |
15911 | }; | |
15912 | ||
15913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15916 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
15917 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15918 | SWIG_fail; | |
44127b65 | 15919 | if (arg2 == NULL) { |
2f4c0a16 RD |
15920 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15921 | SWIG_fail; | |
44127b65 RD |
15922 | } |
15923 | { | |
15924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15925 | (arg1)->base_OnDraw(*arg2); | |
15926 | ||
15927 | wxPyEndAllowThreads(__tstate); | |
15928 | if (PyErr_Occurred()) SWIG_fail; | |
15929 | } | |
15930 | Py_INCREF(Py_None); resultobj = Py_None; | |
15931 | return resultobj; | |
15932 | fail: | |
15933 | return NULL; | |
15934 | } | |
15935 | ||
15936 | ||
c370783e | 15937 | static PyObject *_wrap_PyDrawnShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15938 | PyObject *resultobj; |
15939 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15940 | wxDC *arg2 = 0 ; | |
15941 | PyObject * obj0 = 0 ; | |
15942 | PyObject * obj1 = 0 ; | |
15943 | char *kwnames[] = { | |
15944 | (char *) "self",(char *) "dc", NULL | |
15945 | }; | |
15946 | ||
15947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
15951 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15952 | SWIG_fail; | |
44127b65 | 15953 | if (arg2 == NULL) { |
2f4c0a16 RD |
15954 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15955 | SWIG_fail; | |
44127b65 RD |
15956 | } |
15957 | { | |
15958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15959 | (arg1)->base_OnDrawContents(*arg2); | |
15960 | ||
15961 | wxPyEndAllowThreads(__tstate); | |
15962 | if (PyErr_Occurred()) SWIG_fail; | |
15963 | } | |
15964 | Py_INCREF(Py_None); resultobj = Py_None; | |
15965 | return resultobj; | |
15966 | fail: | |
15967 | return NULL; | |
15968 | } | |
15969 | ||
15970 | ||
c370783e | 15971 | static PyObject *_wrap_PyDrawnShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
15972 | PyObject *resultobj; |
15973 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
15974 | wxDC *arg2 = 0 ; | |
15975 | bool arg3 = (bool) FALSE ; | |
15976 | PyObject * obj0 = 0 ; | |
15977 | PyObject * obj1 = 0 ; | |
15978 | PyObject * obj2 = 0 ; | |
15979 | char *kwnames[] = { | |
15980 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
15981 | }; | |
15982 | ||
15983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
15985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
15987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15988 | SWIG_fail; | |
44127b65 | 15989 | if (arg2 == NULL) { |
2f4c0a16 RD |
15990 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15991 | SWIG_fail; | |
44127b65 RD |
15992 | } |
15993 | if (obj2) { | |
c370783e | 15994 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 15995 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
15996 | } |
15997 | { | |
15998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15999 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
16000 | ||
16001 | wxPyEndAllowThreads(__tstate); | |
16002 | if (PyErr_Occurred()) SWIG_fail; | |
16003 | } | |
16004 | Py_INCREF(Py_None); resultobj = Py_None; | |
16005 | return resultobj; | |
16006 | fail: | |
16007 | return NULL; | |
16008 | } | |
16009 | ||
16010 | ||
c370783e | 16011 | static PyObject *_wrap_PyDrawnShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16012 | PyObject *resultobj; |
16013 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16014 | wxDC *arg2 = 0 ; | |
16015 | PyObject * obj0 = 0 ; | |
16016 | PyObject * obj1 = 0 ; | |
16017 | char *kwnames[] = { | |
16018 | (char *) "self",(char *) "dc", NULL | |
16019 | }; | |
16020 | ||
16021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16025 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16026 | SWIG_fail; | |
44127b65 | 16027 | if (arg2 == NULL) { |
2f4c0a16 RD |
16028 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16029 | SWIG_fail; | |
44127b65 RD |
16030 | } |
16031 | { | |
16032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16033 | (arg1)->base_OnMoveLinks(*arg2); | |
16034 | ||
16035 | wxPyEndAllowThreads(__tstate); | |
16036 | if (PyErr_Occurred()) SWIG_fail; | |
16037 | } | |
16038 | Py_INCREF(Py_None); resultobj = Py_None; | |
16039 | return resultobj; | |
16040 | fail: | |
16041 | return NULL; | |
16042 | } | |
16043 | ||
16044 | ||
c370783e | 16045 | static PyObject *_wrap_PyDrawnShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16046 | PyObject *resultobj; |
16047 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16048 | wxDC *arg2 = 0 ; | |
16049 | PyObject * obj0 = 0 ; | |
16050 | PyObject * obj1 = 0 ; | |
16051 | char *kwnames[] = { | |
16052 | (char *) "self",(char *) "dc", NULL | |
16053 | }; | |
16054 | ||
16055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16058 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16060 | SWIG_fail; | |
44127b65 | 16061 | if (arg2 == NULL) { |
2f4c0a16 RD |
16062 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16063 | SWIG_fail; | |
44127b65 RD |
16064 | } |
16065 | { | |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | (arg1)->base_OnErase(*arg2); | |
16068 | ||
16069 | wxPyEndAllowThreads(__tstate); | |
16070 | if (PyErr_Occurred()) SWIG_fail; | |
16071 | } | |
16072 | Py_INCREF(Py_None); resultobj = Py_None; | |
16073 | return resultobj; | |
16074 | fail: | |
16075 | return NULL; | |
16076 | } | |
16077 | ||
16078 | ||
c370783e | 16079 | static PyObject *_wrap_PyDrawnShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16080 | PyObject *resultobj; |
16081 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16082 | wxDC *arg2 = 0 ; | |
16083 | PyObject * obj0 = 0 ; | |
16084 | PyObject * obj1 = 0 ; | |
16085 | char *kwnames[] = { | |
16086 | (char *) "self",(char *) "dc", NULL | |
16087 | }; | |
16088 | ||
16089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16092 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16093 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16094 | SWIG_fail; | |
44127b65 | 16095 | if (arg2 == NULL) { |
2f4c0a16 RD |
16096 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16097 | SWIG_fail; | |
44127b65 RD |
16098 | } |
16099 | { | |
16100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16101 | (arg1)->base_OnEraseContents(*arg2); | |
16102 | ||
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
16106 | Py_INCREF(Py_None); resultobj = Py_None; | |
16107 | return resultobj; | |
16108 | fail: | |
16109 | return NULL; | |
16110 | } | |
16111 | ||
16112 | ||
c370783e | 16113 | static PyObject *_wrap_PyDrawnShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16114 | PyObject *resultobj; |
16115 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16116 | wxDC *arg2 = 0 ; | |
16117 | PyObject * obj0 = 0 ; | |
16118 | PyObject * obj1 = 0 ; | |
16119 | char *kwnames[] = { | |
16120 | (char *) "self",(char *) "dc", NULL | |
16121 | }; | |
16122 | ||
16123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16127 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16128 | SWIG_fail; | |
44127b65 | 16129 | if (arg2 == NULL) { |
2f4c0a16 RD |
16130 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16131 | SWIG_fail; | |
44127b65 RD |
16132 | } |
16133 | { | |
16134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16135 | (arg1)->base_OnHighlight(*arg2); | |
16136 | ||
16137 | wxPyEndAllowThreads(__tstate); | |
16138 | if (PyErr_Occurred()) SWIG_fail; | |
16139 | } | |
16140 | Py_INCREF(Py_None); resultobj = Py_None; | |
16141 | return resultobj; | |
16142 | fail: | |
16143 | return NULL; | |
16144 | } | |
16145 | ||
16146 | ||
c370783e | 16147 | static PyObject *_wrap_PyDrawnShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16148 | PyObject *resultobj; |
16149 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16150 | double arg2 ; | |
16151 | double arg3 ; | |
16152 | int arg4 = (int) 0 ; | |
16153 | int arg5 = (int) 0 ; | |
16154 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16155 | PyObject * obj1 = 0 ; |
16156 | PyObject * obj2 = 0 ; | |
16157 | PyObject * obj3 = 0 ; | |
16158 | PyObject * obj4 = 0 ; | |
44127b65 RD |
16159 | char *kwnames[] = { |
16160 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16161 | }; | |
16162 | ||
8edf1c75 | 16163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
16164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16166 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 16167 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16168 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16169 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16170 | if (obj3) { |
c370783e | 16171 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 16172 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16173 | } |
16174 | if (obj4) { | |
c370783e | 16175 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16176 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16177 | } |
44127b65 RD |
16178 | { |
16179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16180 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
16181 | ||
16182 | wxPyEndAllowThreads(__tstate); | |
16183 | if (PyErr_Occurred()) SWIG_fail; | |
16184 | } | |
16185 | Py_INCREF(Py_None); resultobj = Py_None; | |
16186 | return resultobj; | |
16187 | fail: | |
16188 | return NULL; | |
16189 | } | |
16190 | ||
16191 | ||
c370783e | 16192 | static PyObject *_wrap_PyDrawnShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16193 | PyObject *resultobj; |
16194 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16195 | double arg2 ; | |
16196 | double arg3 ; | |
16197 | int arg4 = (int) 0 ; | |
16198 | int arg5 = (int) 0 ; | |
16199 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16200 | PyObject * obj1 = 0 ; |
16201 | PyObject * obj2 = 0 ; | |
16202 | PyObject * obj3 = 0 ; | |
16203 | PyObject * obj4 = 0 ; | |
44127b65 RD |
16204 | char *kwnames[] = { |
16205 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16206 | }; | |
16207 | ||
8edf1c75 | 16208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
16209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16211 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 16212 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16213 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16214 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16215 | if (obj3) { |
c370783e | 16216 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 16217 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16218 | } |
16219 | if (obj4) { | |
c370783e | 16220 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16221 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16222 | } |
44127b65 RD |
16223 | { |
16224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16225 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
16226 | ||
16227 | wxPyEndAllowThreads(__tstate); | |
16228 | if (PyErr_Occurred()) SWIG_fail; | |
16229 | } | |
16230 | Py_INCREF(Py_None); resultobj = Py_None; | |
16231 | return resultobj; | |
16232 | fail: | |
16233 | return NULL; | |
16234 | } | |
16235 | ||
16236 | ||
c370783e | 16237 | static PyObject *_wrap_PyDrawnShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16238 | PyObject *resultobj; |
16239 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16240 | double arg2 ; | |
16241 | double arg3 ; | |
16242 | int arg4 = (int) 0 ; | |
16243 | int arg5 = (int) 0 ; | |
16244 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16245 | PyObject * obj1 = 0 ; |
16246 | PyObject * obj2 = 0 ; | |
16247 | PyObject * obj3 = 0 ; | |
16248 | PyObject * obj4 = 0 ; | |
44127b65 RD |
16249 | char *kwnames[] = { |
16250 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16251 | }; | |
16252 | ||
8edf1c75 | 16253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
16254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16256 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 16257 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16258 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16259 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16260 | if (obj3) { |
c370783e | 16261 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 16262 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16263 | } |
16264 | if (obj4) { | |
c370783e | 16265 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16266 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16267 | } |
44127b65 RD |
16268 | { |
16269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16270 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
16271 | ||
16272 | wxPyEndAllowThreads(__tstate); | |
16273 | if (PyErr_Occurred()) SWIG_fail; | |
16274 | } | |
16275 | Py_INCREF(Py_None); resultobj = Py_None; | |
16276 | return resultobj; | |
16277 | fail: | |
16278 | return NULL; | |
16279 | } | |
16280 | ||
16281 | ||
c370783e | 16282 | static PyObject *_wrap_PyDrawnShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16283 | PyObject *resultobj; |
16284 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16285 | double arg2 ; | |
16286 | double arg3 ; | |
16287 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16288 | PyObject * obj1 = 0 ; |
16289 | PyObject * obj2 = 0 ; | |
44127b65 RD |
16290 | char *kwnames[] = { |
16291 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16292 | }; | |
16293 | ||
8edf1c75 | 16294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16297 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 16298 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16299 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16300 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
16301 | { |
16302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16303 | (arg1)->base_OnSize(arg2,arg3); | |
16304 | ||
16305 | wxPyEndAllowThreads(__tstate); | |
16306 | if (PyErr_Occurred()) SWIG_fail; | |
16307 | } | |
16308 | Py_INCREF(Py_None); resultobj = Py_None; | |
16309 | return resultobj; | |
16310 | fail: | |
16311 | return NULL; | |
16312 | } | |
16313 | ||
16314 | ||
c370783e | 16315 | static PyObject *_wrap_PyDrawnShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16316 | PyObject *resultobj; |
16317 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16318 | wxDC *arg2 = 0 ; | |
16319 | double arg3 ; | |
16320 | double arg4 ; | |
16321 | double arg5 ; | |
16322 | double arg6 ; | |
16323 | bool arg7 = (bool) True ; | |
16324 | bool result; | |
16325 | PyObject * obj0 = 0 ; | |
16326 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
16327 | PyObject * obj2 = 0 ; |
16328 | PyObject * obj3 = 0 ; | |
16329 | PyObject * obj4 = 0 ; | |
16330 | PyObject * obj5 = 0 ; | |
44127b65 RD |
16331 | PyObject * obj6 = 0 ; |
16332 | char *kwnames[] = { | |
16333 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
16334 | }; | |
16335 | ||
8edf1c75 | 16336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDrawnShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
16337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16339 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16340 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16341 | SWIG_fail; | |
44127b65 | 16342 | if (arg2 == NULL) { |
2f4c0a16 RD |
16343 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16344 | SWIG_fail; | |
16345 | } | |
c370783e | 16346 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16347 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16348 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 16349 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16350 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 16351 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16352 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 16353 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 16354 | if (obj6) { |
c370783e | 16355 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 16356 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
16357 | } |
16358 | { | |
16359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16360 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
16361 | ||
16362 | wxPyEndAllowThreads(__tstate); | |
16363 | if (PyErr_Occurred()) SWIG_fail; | |
16364 | } | |
fbc46b20 RD |
16365 | { |
16366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16367 | } | |
44127b65 RD |
16368 | return resultobj; |
16369 | fail: | |
16370 | return NULL; | |
16371 | } | |
16372 | ||
16373 | ||
c370783e | 16374 | static PyObject *_wrap_PyDrawnShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16375 | PyObject *resultobj; |
16376 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16377 | wxDC *arg2 = 0 ; | |
16378 | double arg3 ; | |
16379 | double arg4 ; | |
16380 | double arg5 ; | |
16381 | double arg6 ; | |
16382 | bool arg7 = (bool) True ; | |
16383 | PyObject * obj0 = 0 ; | |
16384 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
16385 | PyObject * obj2 = 0 ; |
16386 | PyObject * obj3 = 0 ; | |
16387 | PyObject * obj4 = 0 ; | |
16388 | PyObject * obj5 = 0 ; | |
44127b65 RD |
16389 | PyObject * obj6 = 0 ; |
16390 | char *kwnames[] = { | |
16391 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
16392 | }; | |
16393 | ||
8edf1c75 | 16394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDrawnShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
16395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16397 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16398 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16399 | SWIG_fail; | |
44127b65 | 16400 | if (arg2 == NULL) { |
2f4c0a16 RD |
16401 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16402 | SWIG_fail; | |
16403 | } | |
c370783e | 16404 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16405 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16406 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 16407 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16408 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 16409 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16410 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 16411 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 16412 | if (obj6) { |
c370783e | 16413 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 16414 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
16415 | } |
16416 | { | |
16417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16418 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
16419 | ||
16420 | wxPyEndAllowThreads(__tstate); | |
16421 | if (PyErr_Occurred()) SWIG_fail; | |
16422 | } | |
16423 | Py_INCREF(Py_None); resultobj = Py_None; | |
16424 | return resultobj; | |
16425 | fail: | |
16426 | return NULL; | |
16427 | } | |
16428 | ||
16429 | ||
c370783e | 16430 | static PyObject *_wrap_PyDrawnShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16431 | PyObject *resultobj; |
16432 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16433 | bool arg2 ; | |
16434 | double arg3 ; | |
16435 | double arg4 ; | |
16436 | int arg5 = (int) 0 ; | |
16437 | int arg6 = (int) 0 ; | |
16438 | PyObject * obj0 = 0 ; | |
16439 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
16440 | PyObject * obj2 = 0 ; |
16441 | PyObject * obj3 = 0 ; | |
16442 | PyObject * obj4 = 0 ; | |
16443 | PyObject * obj5 = 0 ; | |
44127b65 RD |
16444 | char *kwnames[] = { |
16445 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16446 | }; | |
16447 | ||
8edf1c75 | 16448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDrawnShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
16449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16451 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 16452 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16453 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16454 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16455 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 16456 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16457 | if (obj4) { |
c370783e | 16458 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16459 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16460 | } |
16461 | if (obj5) { | |
c370783e | 16462 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 16463 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16464 | } |
44127b65 RD |
16465 | { |
16466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16467 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
16468 | ||
16469 | wxPyEndAllowThreads(__tstate); | |
16470 | if (PyErr_Occurred()) SWIG_fail; | |
16471 | } | |
16472 | Py_INCREF(Py_None); resultobj = Py_None; | |
16473 | return resultobj; | |
16474 | fail: | |
16475 | return NULL; | |
16476 | } | |
16477 | ||
16478 | ||
c370783e | 16479 | static PyObject *_wrap_PyDrawnShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16480 | PyObject *resultobj; |
16481 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16482 | double arg2 ; | |
16483 | double arg3 ; | |
16484 | int arg4 = (int) 0 ; | |
16485 | int arg5 = (int) 0 ; | |
16486 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16487 | PyObject * obj1 = 0 ; |
16488 | PyObject * obj2 = 0 ; | |
16489 | PyObject * obj3 = 0 ; | |
16490 | PyObject * obj4 = 0 ; | |
44127b65 RD |
16491 | char *kwnames[] = { |
16492 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16493 | }; | |
16494 | ||
8edf1c75 | 16495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
16496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16498 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 16499 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16500 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16501 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16502 | if (obj3) { |
c370783e | 16503 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 16504 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16505 | } |
16506 | if (obj4) { | |
c370783e | 16507 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16508 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16509 | } |
44127b65 RD |
16510 | { |
16511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16512 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
16513 | ||
16514 | wxPyEndAllowThreads(__tstate); | |
16515 | if (PyErr_Occurred()) SWIG_fail; | |
16516 | } | |
16517 | Py_INCREF(Py_None); resultobj = Py_None; | |
16518 | return resultobj; | |
16519 | fail: | |
16520 | return NULL; | |
16521 | } | |
16522 | ||
16523 | ||
c370783e | 16524 | static PyObject *_wrap_PyDrawnShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16525 | PyObject *resultobj; |
16526 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16527 | double arg2 ; | |
16528 | double arg3 ; | |
16529 | int arg4 = (int) 0 ; | |
16530 | int arg5 = (int) 0 ; | |
16531 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16532 | PyObject * obj1 = 0 ; |
16533 | PyObject * obj2 = 0 ; | |
16534 | PyObject * obj3 = 0 ; | |
16535 | PyObject * obj4 = 0 ; | |
44127b65 RD |
16536 | char *kwnames[] = { |
16537 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16538 | }; | |
16539 | ||
8edf1c75 | 16540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
16541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16543 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 16544 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16545 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16546 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16547 | if (obj3) { |
c370783e | 16548 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 16549 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16550 | } |
16551 | if (obj4) { | |
c370783e | 16552 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16553 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16554 | } |
44127b65 RD |
16555 | { |
16556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16557 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
16558 | ||
16559 | wxPyEndAllowThreads(__tstate); | |
16560 | if (PyErr_Occurred()) SWIG_fail; | |
16561 | } | |
16562 | Py_INCREF(Py_None); resultobj = Py_None; | |
16563 | return resultobj; | |
16564 | fail: | |
16565 | return NULL; | |
16566 | } | |
16567 | ||
16568 | ||
c370783e | 16569 | static PyObject *_wrap_PyDrawnShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16570 | PyObject *resultobj; |
16571 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16572 | bool arg2 ; | |
16573 | double arg3 ; | |
16574 | double arg4 ; | |
16575 | int arg5 = (int) 0 ; | |
16576 | int arg6 = (int) 0 ; | |
16577 | PyObject * obj0 = 0 ; | |
16578 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
16579 | PyObject * obj2 = 0 ; |
16580 | PyObject * obj3 = 0 ; | |
16581 | PyObject * obj4 = 0 ; | |
16582 | PyObject * obj5 = 0 ; | |
44127b65 RD |
16583 | char *kwnames[] = { |
16584 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16585 | }; | |
16586 | ||
8edf1c75 | 16587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDrawnShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
16588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16590 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 16591 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16592 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16593 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16594 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 16595 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16596 | if (obj4) { |
c370783e | 16597 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16598 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16599 | } |
16600 | if (obj5) { | |
c370783e | 16601 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 16602 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16603 | } |
44127b65 RD |
16604 | { |
16605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16606 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
16607 | ||
16608 | wxPyEndAllowThreads(__tstate); | |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
16611 | Py_INCREF(Py_None); resultobj = Py_None; | |
16612 | return resultobj; | |
16613 | fail: | |
16614 | return NULL; | |
16615 | } | |
16616 | ||
16617 | ||
c370783e | 16618 | static PyObject *_wrap_PyDrawnShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16619 | PyObject *resultobj; |
16620 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16621 | double arg2 ; | |
16622 | double arg3 ; | |
16623 | int arg4 = (int) 0 ; | |
16624 | int arg5 = (int) 0 ; | |
16625 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16626 | PyObject * obj1 = 0 ; |
16627 | PyObject * obj2 = 0 ; | |
16628 | PyObject * obj3 = 0 ; | |
16629 | PyObject * obj4 = 0 ; | |
44127b65 RD |
16630 | char *kwnames[] = { |
16631 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16632 | }; | |
16633 | ||
8edf1c75 | 16634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
16635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16637 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 16638 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16639 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16640 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16641 | if (obj3) { |
c370783e | 16642 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 16643 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16644 | } |
16645 | if (obj4) { | |
c370783e | 16646 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16647 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16648 | } |
44127b65 RD |
16649 | { |
16650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16651 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
16652 | ||
16653 | wxPyEndAllowThreads(__tstate); | |
16654 | if (PyErr_Occurred()) SWIG_fail; | |
16655 | } | |
16656 | Py_INCREF(Py_None); resultobj = Py_None; | |
16657 | return resultobj; | |
16658 | fail: | |
16659 | return NULL; | |
16660 | } | |
16661 | ||
16662 | ||
c370783e | 16663 | static PyObject *_wrap_PyDrawnShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16664 | PyObject *resultobj; |
16665 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16666 | double arg2 ; | |
16667 | double arg3 ; | |
16668 | int arg4 = (int) 0 ; | |
16669 | int arg5 = (int) 0 ; | |
16670 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16671 | PyObject * obj1 = 0 ; |
16672 | PyObject * obj2 = 0 ; | |
16673 | PyObject * obj3 = 0 ; | |
16674 | PyObject * obj4 = 0 ; | |
44127b65 RD |
16675 | char *kwnames[] = { |
16676 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16677 | }; | |
16678 | ||
8edf1c75 | 16679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDrawnShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
16680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16682 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 16683 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16684 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16685 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16686 | if (obj3) { |
c370783e | 16687 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 16688 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16689 | } |
16690 | if (obj4) { | |
c370783e | 16691 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16692 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16693 | } |
44127b65 RD |
16694 | { |
16695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16696 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
16697 | ||
16698 | wxPyEndAllowThreads(__tstate); | |
16699 | if (PyErr_Occurred()) SWIG_fail; | |
16700 | } | |
16701 | Py_INCREF(Py_None); resultobj = Py_None; | |
16702 | return resultobj; | |
16703 | fail: | |
16704 | return NULL; | |
16705 | } | |
16706 | ||
16707 | ||
c370783e | 16708 | static PyObject *_wrap_PyDrawnShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16709 | PyObject *resultobj; |
16710 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16711 | wxDC *arg2 = 0 ; | |
16712 | double arg3 ; | |
16713 | double arg4 ; | |
16714 | double arg5 ; | |
16715 | double arg6 ; | |
16716 | PyObject * obj0 = 0 ; | |
16717 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
16718 | PyObject * obj2 = 0 ; |
16719 | PyObject * obj3 = 0 ; | |
16720 | PyObject * obj4 = 0 ; | |
16721 | PyObject * obj5 = 0 ; | |
44127b65 RD |
16722 | char *kwnames[] = { |
16723 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
16724 | }; | |
16725 | ||
8edf1c75 | 16726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyDrawnShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
16727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16729 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16730 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16731 | SWIG_fail; | |
44127b65 | 16732 | if (arg2 == NULL) { |
2f4c0a16 RD |
16733 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16734 | SWIG_fail; | |
8edf1c75 | 16735 | } |
c370783e | 16736 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16737 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16738 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 16739 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16740 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 16741 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16742 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 16743 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
16744 | { |
16745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16746 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
16747 | ||
16748 | wxPyEndAllowThreads(__tstate); | |
16749 | if (PyErr_Occurred()) SWIG_fail; | |
16750 | } | |
16751 | Py_INCREF(Py_None); resultobj = Py_None; | |
16752 | return resultobj; | |
16753 | fail: | |
16754 | return NULL; | |
16755 | } | |
16756 | ||
16757 | ||
c370783e | 16758 | static PyObject *_wrap_PyDrawnShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16759 | PyObject *resultobj; |
16760 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16761 | wxDC *arg2 = 0 ; | |
16762 | PyObject * obj0 = 0 ; | |
16763 | PyObject * obj1 = 0 ; | |
16764 | char *kwnames[] = { | |
16765 | (char *) "self",(char *) "dc", NULL | |
16766 | }; | |
16767 | ||
16768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16771 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16773 | SWIG_fail; | |
44127b65 | 16774 | if (arg2 == NULL) { |
2f4c0a16 RD |
16775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16776 | SWIG_fail; | |
44127b65 RD |
16777 | } |
16778 | { | |
16779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16780 | (arg1)->base_OnDrawControlPoints(*arg2); | |
16781 | ||
16782 | wxPyEndAllowThreads(__tstate); | |
16783 | if (PyErr_Occurred()) SWIG_fail; | |
16784 | } | |
16785 | Py_INCREF(Py_None); resultobj = Py_None; | |
16786 | return resultobj; | |
16787 | fail: | |
16788 | return NULL; | |
16789 | } | |
16790 | ||
16791 | ||
c370783e | 16792 | static PyObject *_wrap_PyDrawnShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16793 | PyObject *resultobj; |
16794 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16795 | wxDC *arg2 = 0 ; | |
16796 | PyObject * obj0 = 0 ; | |
16797 | PyObject * obj1 = 0 ; | |
16798 | char *kwnames[] = { | |
16799 | (char *) "self",(char *) "dc", NULL | |
16800 | }; | |
16801 | ||
16802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDrawnShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16805 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16806 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16807 | SWIG_fail; | |
44127b65 | 16808 | if (arg2 == NULL) { |
2f4c0a16 RD |
16809 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16810 | SWIG_fail; | |
44127b65 RD |
16811 | } |
16812 | { | |
16813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16814 | (arg1)->base_OnEraseControlPoints(*arg2); | |
16815 | ||
16816 | wxPyEndAllowThreads(__tstate); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | } | |
16819 | Py_INCREF(Py_None); resultobj = Py_None; | |
16820 | return resultobj; | |
16821 | fail: | |
16822 | return NULL; | |
16823 | } | |
16824 | ||
16825 | ||
c370783e | 16826 | static PyObject *_wrap_PyDrawnShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16827 | PyObject *resultobj; |
16828 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16829 | wxDC *arg2 = 0 ; | |
16830 | bool arg3 = (bool) True ; | |
16831 | PyObject * obj0 = 0 ; | |
16832 | PyObject * obj1 = 0 ; | |
16833 | PyObject * obj2 = 0 ; | |
16834 | char *kwnames[] = { | |
16835 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
16836 | }; | |
16837 | ||
16838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDrawnShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16841 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16842 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16843 | SWIG_fail; | |
44127b65 | 16844 | if (arg2 == NULL) { |
2f4c0a16 RD |
16845 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16846 | SWIG_fail; | |
44127b65 RD |
16847 | } |
16848 | if (obj2) { | |
c370783e | 16849 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 16850 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
16851 | } |
16852 | { | |
16853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16854 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
16855 | ||
16856 | wxPyEndAllowThreads(__tstate); | |
16857 | if (PyErr_Occurred()) SWIG_fail; | |
16858 | } | |
16859 | Py_INCREF(Py_None); resultobj = Py_None; | |
16860 | return resultobj; | |
16861 | fail: | |
16862 | return NULL; | |
16863 | } | |
16864 | ||
16865 | ||
c370783e | 16866 | static PyObject *_wrap_PyDrawnShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16867 | PyObject *resultobj; |
16868 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16869 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
16870 | bool arg3 ; | |
16871 | double arg4 ; | |
16872 | double arg5 ; | |
16873 | int arg6 = (int) 0 ; | |
16874 | int arg7 = (int) 0 ; | |
16875 | PyObject * obj0 = 0 ; | |
16876 | PyObject * obj1 = 0 ; | |
16877 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
16878 | PyObject * obj3 = 0 ; |
16879 | PyObject * obj4 = 0 ; | |
16880 | PyObject * obj5 = 0 ; | |
16881 | PyObject * obj6 = 0 ; | |
44127b65 RD |
16882 | char *kwnames[] = { |
16883 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16884 | }; | |
16885 | ||
8edf1c75 | 16886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyDrawnShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
16887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
16890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16891 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 16892 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16893 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 16894 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16895 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 16896 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16897 | if (obj5) { |
c370783e | 16898 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 16899 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16900 | } |
16901 | if (obj6) { | |
c370783e | 16902 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 16903 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16904 | } |
44127b65 RD |
16905 | { |
16906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16907 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
16908 | ||
16909 | wxPyEndAllowThreads(__tstate); | |
16910 | if (PyErr_Occurred()) SWIG_fail; | |
16911 | } | |
16912 | Py_INCREF(Py_None); resultobj = Py_None; | |
16913 | return resultobj; | |
16914 | fail: | |
16915 | return NULL; | |
16916 | } | |
16917 | ||
16918 | ||
c370783e | 16919 | static PyObject *_wrap_PyDrawnShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16920 | PyObject *resultobj; |
16921 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16922 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
16923 | double arg3 ; | |
16924 | double arg4 ; | |
16925 | int arg5 = (int) 0 ; | |
16926 | int arg6 = (int) 0 ; | |
16927 | PyObject * obj0 = 0 ; | |
16928 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
16929 | PyObject * obj2 = 0 ; |
16930 | PyObject * obj3 = 0 ; | |
16931 | PyObject * obj4 = 0 ; | |
16932 | PyObject * obj5 = 0 ; | |
44127b65 RD |
16933 | char *kwnames[] = { |
16934 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16935 | }; | |
16936 | ||
8edf1c75 | 16937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDrawnShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
16938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16940 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
16941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16942 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16943 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16944 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 16945 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16946 | if (obj4) { |
c370783e | 16947 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16948 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16949 | } |
16950 | if (obj5) { | |
c370783e | 16951 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 16952 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16953 | } |
44127b65 RD |
16954 | { |
16955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16956 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
16957 | ||
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | Py_INCREF(Py_None); resultobj = Py_None; | |
16962 | return resultobj; | |
16963 | fail: | |
16964 | return NULL; | |
16965 | } | |
16966 | ||
16967 | ||
c370783e | 16968 | static PyObject *_wrap_PyDrawnShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
16969 | PyObject *resultobj; |
16970 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
16971 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
16972 | double arg3 ; | |
16973 | double arg4 ; | |
16974 | int arg5 = (int) 0 ; | |
16975 | int arg6 = (int) 0 ; | |
16976 | PyObject * obj0 = 0 ; | |
16977 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
16978 | PyObject * obj2 = 0 ; |
16979 | PyObject * obj3 = 0 ; | |
16980 | PyObject * obj4 = 0 ; | |
16981 | PyObject * obj5 = 0 ; | |
44127b65 RD |
16982 | char *kwnames[] = { |
16983 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
16984 | }; | |
16985 | ||
8edf1c75 | 16986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDrawnShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
16987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
16988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
16990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16991 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 16992 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16993 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 16994 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 16995 | if (obj4) { |
c370783e | 16996 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 16997 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
16998 | } |
16999 | if (obj5) { | |
c370783e | 17000 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 17001 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 17002 | } |
44127b65 RD |
17003 | { |
17004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17005 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
17006 | ||
17007 | wxPyEndAllowThreads(__tstate); | |
17008 | if (PyErr_Occurred()) SWIG_fail; | |
17009 | } | |
17010 | Py_INCREF(Py_None); resultobj = Py_None; | |
17011 | return resultobj; | |
17012 | fail: | |
17013 | return NULL; | |
17014 | } | |
17015 | ||
17016 | ||
c370783e | 17017 | static PyObject *_wrap_PyDrawnShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17018 | PyObject *resultobj; |
17019 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
17020 | double arg2 ; | |
17021 | double arg3 ; | |
17022 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17023 | PyObject * obj1 = 0 ; |
17024 | PyObject * obj2 = 0 ; | |
44127b65 RD |
17025 | char *kwnames[] = { |
17026 | (char *) "self",(char *) "w",(char *) "h", NULL | |
17027 | }; | |
17028 | ||
8edf1c75 | 17029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
17031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17032 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 17033 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17034 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 17035 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
17036 | { |
17037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17038 | (arg1)->base_OnBeginSize(arg2,arg3); | |
17039 | ||
17040 | wxPyEndAllowThreads(__tstate); | |
17041 | if (PyErr_Occurred()) SWIG_fail; | |
17042 | } | |
17043 | Py_INCREF(Py_None); resultobj = Py_None; | |
17044 | return resultobj; | |
17045 | fail: | |
17046 | return NULL; | |
17047 | } | |
17048 | ||
17049 | ||
c370783e | 17050 | static PyObject *_wrap_PyDrawnShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17051 | PyObject *resultobj; |
17052 | wxPyDrawnShape *arg1 = (wxPyDrawnShape *) 0 ; | |
17053 | double arg2 ; | |
17054 | double arg3 ; | |
17055 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17056 | PyObject * obj1 = 0 ; |
17057 | PyObject * obj2 = 0 ; | |
44127b65 RD |
17058 | char *kwnames[] = { |
17059 | (char *) "self",(char *) "w",(char *) "h", NULL | |
17060 | }; | |
17061 | ||
8edf1c75 | 17062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDrawnShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDrawnShape, |
17064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17065 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 17066 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17067 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 17068 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
17069 | { |
17070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17071 | (arg1)->base_OnEndSize(arg2,arg3); | |
17072 | ||
17073 | wxPyEndAllowThreads(__tstate); | |
17074 | if (PyErr_Occurred()) SWIG_fail; | |
17075 | } | |
17076 | Py_INCREF(Py_None); resultobj = Py_None; | |
17077 | return resultobj; | |
17078 | fail: | |
17079 | return NULL; | |
17080 | } | |
17081 | ||
17082 | ||
c370783e | 17083 | static PyObject * PyDrawnShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
17084 | PyObject *obj; |
17085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17086 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDrawnShape, obj); | |
17087 | Py_INCREF(obj); | |
17088 | return Py_BuildValue((char *)""); | |
17089 | } | |
c370783e | 17090 | static PyObject *_wrap_new_OGLConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17091 | PyObject *resultobj; |
17092 | int arg1 ; | |
17093 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
17094 | PyObject *arg3 = (PyObject *) 0 ; | |
17095 | wxOGLConstraint *result; | |
8edf1c75 | 17096 | PyObject * obj0 = 0 ; |
44127b65 RD |
17097 | PyObject * obj1 = 0 ; |
17098 | PyObject * obj2 = 0 ; | |
17099 | char *kwnames[] = { | |
17100 | (char *) "type",(char *) "constraining",(char *) "constrained", NULL | |
17101 | }; | |
17102 | ||
8edf1c75 | 17103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_OGLConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
c370783e | 17104 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 RD |
17105 | if (PyErr_Occurred()) SWIG_fail; |
17106 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
17107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17108 | arg3 = obj2; |
17109 | { | |
17110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17111 | result = (wxOGLConstraint *)new_wxOGLConstraint(arg1,arg2,arg3); | |
17112 | ||
17113 | wxPyEndAllowThreads(__tstate); | |
17114 | if (PyErr_Occurred()) SWIG_fail; | |
17115 | } | |
17116 | { | |
412d302d | 17117 | resultobj = wxPyMake_wxObject(result, 1); |
44127b65 RD |
17118 | } |
17119 | return resultobj; | |
17120 | fail: | |
17121 | return NULL; | |
17122 | } | |
17123 | ||
17124 | ||
c370783e | 17125 | static PyObject *_wrap_OGLConstraint_Evaluate(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17126 | PyObject *resultobj; |
17127 | wxOGLConstraint *arg1 = (wxOGLConstraint *) 0 ; | |
17128 | bool result; | |
17129 | PyObject * obj0 = 0 ; | |
17130 | char *kwnames[] = { | |
17131 | (char *) "self", NULL | |
17132 | }; | |
17133 | ||
17134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:OGLConstraint_Evaluate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOGLConstraint, |
17136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17137 | { |
17138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17139 | result = (bool)(arg1)->Evaluate(); | |
17140 | ||
17141 | wxPyEndAllowThreads(__tstate); | |
17142 | if (PyErr_Occurred()) SWIG_fail; | |
17143 | } | |
fbc46b20 RD |
17144 | { |
17145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17146 | } | |
44127b65 RD |
17147 | return resultobj; |
17148 | fail: | |
17149 | return NULL; | |
17150 | } | |
17151 | ||
17152 | ||
c370783e | 17153 | static PyObject *_wrap_OGLConstraint_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17154 | PyObject *resultobj; |
17155 | wxOGLConstraint *arg1 = (wxOGLConstraint *) 0 ; | |
17156 | double arg2 ; | |
17157 | double arg3 ; | |
17158 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17159 | PyObject * obj1 = 0 ; |
17160 | PyObject * obj2 = 0 ; | |
44127b65 RD |
17161 | char *kwnames[] = { |
17162 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17163 | }; | |
17164 | ||
8edf1c75 | 17165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:OGLConstraint_SetSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOGLConstraint, |
17167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17168 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 17169 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17170 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 17171 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
17172 | { |
17173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17174 | (arg1)->SetSpacing(arg2,arg3); | |
17175 | ||
17176 | wxPyEndAllowThreads(__tstate); | |
17177 | if (PyErr_Occurred()) SWIG_fail; | |
17178 | } | |
17179 | Py_INCREF(Py_None); resultobj = Py_None; | |
17180 | return resultobj; | |
17181 | fail: | |
17182 | return NULL; | |
17183 | } | |
17184 | ||
17185 | ||
c370783e | 17186 | static PyObject *_wrap_OGLConstraint_Equals(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17187 | PyObject *resultobj; |
17188 | wxOGLConstraint *arg1 = (wxOGLConstraint *) 0 ; | |
17189 | double arg2 ; | |
17190 | double arg3 ; | |
17191 | bool result; | |
17192 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17193 | PyObject * obj1 = 0 ; |
17194 | PyObject * obj2 = 0 ; | |
44127b65 RD |
17195 | char *kwnames[] = { |
17196 | (char *) "self",(char *) "a",(char *) "b", NULL | |
17197 | }; | |
17198 | ||
8edf1c75 | 17199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:OGLConstraint_Equals",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOGLConstraint, |
17201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17202 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 17203 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17204 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 17205 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
17206 | { |
17207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17208 | result = (bool)(arg1)->Equals(arg2,arg3); | |
17209 | ||
17210 | wxPyEndAllowThreads(__tstate); | |
17211 | if (PyErr_Occurred()) SWIG_fail; | |
17212 | } | |
fbc46b20 RD |
17213 | { |
17214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17215 | } | |
44127b65 RD |
17216 | return resultobj; |
17217 | fail: | |
17218 | return NULL; | |
17219 | } | |
17220 | ||
17221 | ||
c370783e | 17222 | static PyObject * OGLConstraint_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
17223 | PyObject *obj; |
17224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17225 | SWIG_TypeClientData(SWIGTYPE_p_wxOGLConstraint, obj); | |
17226 | Py_INCREF(obj); | |
17227 | return Py_BuildValue((char *)""); | |
17228 | } | |
c370783e | 17229 | static PyObject *_wrap_new_PyCompositeShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17230 | PyObject *resultobj; |
17231 | wxPyCompositeShape *result; | |
17232 | char *kwnames[] = { | |
17233 | NULL | |
17234 | }; | |
17235 | ||
17236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyCompositeShape",kwnames)) goto fail; | |
17237 | { | |
17238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17239 | result = (wxPyCompositeShape *)new wxPyCompositeShape(); | |
17240 | ||
17241 | wxPyEndAllowThreads(__tstate); | |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
17243 | } | |
2f4c0a16 | 17244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCompositeShape, 1); |
44127b65 RD |
17245 | return resultobj; |
17246 | fail: | |
17247 | return NULL; | |
17248 | } | |
17249 | ||
17250 | ||
c370783e | 17251 | static PyObject *_wrap_PyCompositeShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17252 | PyObject *resultobj; |
17253 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17254 | PyObject *arg2 = (PyObject *) 0 ; | |
17255 | PyObject *arg3 = (PyObject *) 0 ; | |
17256 | PyObject * obj0 = 0 ; | |
17257 | PyObject * obj1 = 0 ; | |
17258 | PyObject * obj2 = 0 ; | |
17259 | char *kwnames[] = { | |
17260 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17261 | }; | |
17262 | ||
17263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCompositeShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
17264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17266 | arg2 = obj1; |
17267 | arg3 = obj2; | |
17268 | { | |
17269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17270 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17271 | ||
17272 | wxPyEndAllowThreads(__tstate); | |
17273 | if (PyErr_Occurred()) SWIG_fail; | |
17274 | } | |
17275 | Py_INCREF(Py_None); resultobj = Py_None; | |
17276 | return resultobj; | |
17277 | fail: | |
17278 | return NULL; | |
17279 | } | |
17280 | ||
17281 | ||
c370783e | 17282 | static PyObject *_wrap_PyCompositeShape_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17283 | PyObject *resultobj; |
17284 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17285 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
17286 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
17287 | PyObject * obj0 = 0 ; | |
17288 | PyObject * obj1 = 0 ; | |
17289 | PyObject * obj2 = 0 ; | |
17290 | char *kwnames[] = { | |
17291 | (char *) "self",(char *) "child",(char *) "addAfter", NULL | |
17292 | }; | |
17293 | ||
17294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCompositeShape_AddChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
17295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17297 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
17298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 17299 | if (obj2) { |
2f4c0a16 RD |
17300 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, |
17301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17302 | } |
17303 | { | |
17304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17305 | (arg1)->AddChild(arg2,arg3); | |
17306 | ||
17307 | wxPyEndAllowThreads(__tstate); | |
17308 | if (PyErr_Occurred()) SWIG_fail; | |
17309 | } | |
17310 | Py_INCREF(Py_None); resultobj = Py_None; | |
17311 | return resultobj; | |
17312 | fail: | |
17313 | return NULL; | |
17314 | } | |
17315 | ||
17316 | ||
c370783e | 17317 | static PyObject *_wrap_PyCompositeShape_AddConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17318 | PyObject *resultobj; |
17319 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17320 | wxOGLConstraint *arg2 = (wxOGLConstraint *) 0 ; | |
17321 | wxOGLConstraint *result; | |
17322 | PyObject * obj0 = 0 ; | |
17323 | PyObject * obj1 = 0 ; | |
17324 | char *kwnames[] = { | |
17325 | (char *) "self",(char *) "constraint", NULL | |
17326 | }; | |
17327 | ||
17328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_AddConstraint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOGLConstraint, | |
17332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17333 | { |
17334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17335 | result = (wxOGLConstraint *)(arg1)->AddConstraint(arg2); | |
17336 | ||
17337 | wxPyEndAllowThreads(__tstate); | |
17338 | if (PyErr_Occurred()) SWIG_fail; | |
17339 | } | |
17340 | { | |
412d302d | 17341 | resultobj = wxPyMake_wxObject(result, 0); |
44127b65 RD |
17342 | } |
17343 | return resultobj; | |
17344 | fail: | |
17345 | return NULL; | |
17346 | } | |
17347 | ||
17348 | ||
c370783e | 17349 | static PyObject *_wrap_PyCompositeShape_AddConstrainedShapes(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17350 | PyObject *resultobj; |
17351 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17352 | int arg2 ; | |
17353 | wxPyShape *arg3 = (wxPyShape *) 0 ; | |
17354 | PyObject *arg4 = (PyObject *) 0 ; | |
17355 | wxOGLConstraint *result; | |
17356 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17357 | PyObject * obj1 = 0 ; |
44127b65 RD |
17358 | PyObject * obj2 = 0 ; |
17359 | PyObject * obj3 = 0 ; | |
17360 | char *kwnames[] = { | |
17361 | (char *) "self",(char *) "type",(char *) "constraining",(char *) "constrained", NULL | |
17362 | }; | |
17363 | ||
8edf1c75 | 17364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyCompositeShape_AddConstrainedShapes",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
17365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17367 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 RD |
17368 | if (PyErr_Occurred()) SWIG_fail; |
17369 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
17370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17371 | arg4 = obj3; |
17372 | { | |
17373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17374 | result = (wxOGLConstraint *)wxPyCompositeShape_AddConstrainedShapes(arg1,arg2,arg3,arg4); | |
17375 | ||
17376 | wxPyEndAllowThreads(__tstate); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | } | |
17379 | { | |
412d302d | 17380 | resultobj = wxPyMake_wxObject(result, 0); |
44127b65 RD |
17381 | } |
17382 | return resultobj; | |
17383 | fail: | |
17384 | return NULL; | |
17385 | } | |
17386 | ||
17387 | ||
c370783e | 17388 | static PyObject *_wrap_PyCompositeShape_AddSimpleConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17389 | PyObject *resultobj; |
17390 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17391 | int arg2 ; | |
17392 | wxPyShape *arg3 = (wxPyShape *) 0 ; | |
17393 | wxPyShape *arg4 = (wxPyShape *) 0 ; | |
17394 | wxOGLConstraint *result; | |
17395 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17396 | PyObject * obj1 = 0 ; |
44127b65 RD |
17397 | PyObject * obj2 = 0 ; |
17398 | PyObject * obj3 = 0 ; | |
17399 | char *kwnames[] = { | |
17400 | (char *) "self",(char *) "type",(char *) "constraining",(char *) "constrained", NULL | |
17401 | }; | |
17402 | ||
8edf1c75 | 17403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyCompositeShape_AddSimpleConstraint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
17404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17406 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 RD |
17407 | if (PyErr_Occurred()) SWIG_fail; |
17408 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, | |
17409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17410 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPyShape, | |
17411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17412 | { |
17413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17414 | result = (wxOGLConstraint *)(arg1)->AddConstraint(arg2,arg3,arg4); | |
17415 | ||
17416 | wxPyEndAllowThreads(__tstate); | |
17417 | if (PyErr_Occurred()) SWIG_fail; | |
17418 | } | |
17419 | { | |
412d302d | 17420 | resultobj = wxPyMake_wxObject(result, 0); |
44127b65 RD |
17421 | } |
17422 | return resultobj; | |
17423 | fail: | |
17424 | return NULL; | |
17425 | } | |
17426 | ||
17427 | ||
c370783e | 17428 | static PyObject *_wrap_PyCompositeShape_CalculateSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17429 | PyObject *resultobj; |
17430 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17431 | PyObject * obj0 = 0 ; | |
17432 | char *kwnames[] = { | |
17433 | (char *) "self", NULL | |
17434 | }; | |
17435 | ||
17436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_CalculateSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17439 | { |
17440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17441 | (arg1)->CalculateSize(); | |
17442 | ||
17443 | wxPyEndAllowThreads(__tstate); | |
17444 | if (PyErr_Occurred()) SWIG_fail; | |
17445 | } | |
17446 | Py_INCREF(Py_None); resultobj = Py_None; | |
17447 | return resultobj; | |
17448 | fail: | |
17449 | return NULL; | |
17450 | } | |
17451 | ||
17452 | ||
c370783e | 17453 | static PyObject *_wrap_PyCompositeShape_ContainsDivision(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17454 | PyObject *resultobj; |
17455 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17456 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
17457 | bool result; | |
17458 | PyObject * obj0 = 0 ; | |
17459 | PyObject * obj1 = 0 ; | |
17460 | char *kwnames[] = { | |
17461 | (char *) "self",(char *) "division", NULL | |
17462 | }; | |
17463 | ||
17464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_ContainsDivision",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
17468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17469 | { |
17470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17471 | result = (bool)(arg1)->ContainsDivision(arg2); | |
17472 | ||
17473 | wxPyEndAllowThreads(__tstate); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
fbc46b20 RD |
17476 | { |
17477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17478 | } | |
44127b65 RD |
17479 | return resultobj; |
17480 | fail: | |
17481 | return NULL; | |
17482 | } | |
17483 | ||
17484 | ||
c370783e | 17485 | static PyObject *_wrap_PyCompositeShape_DeleteConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17486 | PyObject *resultobj; |
17487 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17488 | wxOGLConstraint *arg2 = (wxOGLConstraint *) 0 ; | |
17489 | PyObject * obj0 = 0 ; | |
17490 | PyObject * obj1 = 0 ; | |
17491 | char *kwnames[] = { | |
17492 | (char *) "self",(char *) "constraint", NULL | |
17493 | }; | |
17494 | ||
17495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_DeleteConstraint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOGLConstraint, | |
17499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17500 | { |
17501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17502 | (arg1)->DeleteConstraint(arg2); | |
17503 | ||
17504 | wxPyEndAllowThreads(__tstate); | |
17505 | if (PyErr_Occurred()) SWIG_fail; | |
17506 | } | |
17507 | Py_INCREF(Py_None); resultobj = Py_None; | |
17508 | return resultobj; | |
17509 | fail: | |
17510 | return NULL; | |
17511 | } | |
17512 | ||
17513 | ||
c370783e | 17514 | static PyObject *_wrap_PyCompositeShape_DeleteConstraintsInvolvingChild(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17515 | PyObject *resultobj; |
17516 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17517 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
17518 | PyObject * obj0 = 0 ; | |
17519 | PyObject * obj1 = 0 ; | |
17520 | char *kwnames[] = { | |
17521 | (char *) "self",(char *) "child", NULL | |
17522 | }; | |
17523 | ||
17524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_DeleteConstraintsInvolvingChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17527 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
17528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17529 | { |
17530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17531 | (arg1)->DeleteConstraintsInvolvingChild(arg2); | |
17532 | ||
17533 | wxPyEndAllowThreads(__tstate); | |
17534 | if (PyErr_Occurred()) SWIG_fail; | |
17535 | } | |
17536 | Py_INCREF(Py_None); resultobj = Py_None; | |
17537 | return resultobj; | |
17538 | fail: | |
17539 | return NULL; | |
17540 | } | |
17541 | ||
17542 | ||
c370783e | 17543 | static PyObject *_wrap_PyCompositeShape_FindContainerImage(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17544 | PyObject *resultobj; |
17545 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17546 | wxPyShape *result; | |
17547 | PyObject * obj0 = 0 ; | |
17548 | char *kwnames[] = { | |
17549 | (char *) "self", NULL | |
17550 | }; | |
17551 | ||
17552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_FindContainerImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17555 | { |
17556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17557 | result = (wxPyShape *)(arg1)->FindContainerImage(); | |
17558 | ||
17559 | wxPyEndAllowThreads(__tstate); | |
17560 | if (PyErr_Occurred()) SWIG_fail; | |
17561 | } | |
17562 | { | |
412d302d | 17563 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
17564 | } |
17565 | return resultobj; | |
17566 | fail: | |
17567 | return NULL; | |
17568 | } | |
17569 | ||
17570 | ||
c370783e | 17571 | static PyObject *_wrap_PyCompositeShape_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17572 | PyObject *resultobj; |
17573 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17574 | PyObject *result; | |
17575 | PyObject * obj0 = 0 ; | |
17576 | char *kwnames[] = { | |
17577 | (char *) "self", NULL | |
17578 | }; | |
17579 | ||
17580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_GetConstraints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17583 | { |
17584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17585 | result = (PyObject *)wxPyCompositeShape_GetConstraints(arg1); | |
17586 | ||
17587 | wxPyEndAllowThreads(__tstate); | |
17588 | if (PyErr_Occurred()) SWIG_fail; | |
17589 | } | |
17590 | resultobj = result; | |
17591 | return resultobj; | |
17592 | fail: | |
17593 | return NULL; | |
17594 | } | |
17595 | ||
17596 | ||
c370783e | 17597 | static PyObject *_wrap_PyCompositeShape_GetDivisions(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17598 | PyObject *resultobj; |
17599 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17600 | PyObject *result; | |
17601 | PyObject * obj0 = 0 ; | |
17602 | char *kwnames[] = { | |
17603 | (char *) "self", NULL | |
17604 | }; | |
17605 | ||
17606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_GetDivisions",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17609 | { |
17610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17611 | result = (PyObject *)wxPyCompositeShape_GetDivisions(arg1); | |
17612 | ||
17613 | wxPyEndAllowThreads(__tstate); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
17615 | } | |
17616 | resultobj = result; | |
17617 | return resultobj; | |
17618 | fail: | |
17619 | return NULL; | |
17620 | } | |
17621 | ||
17622 | ||
c370783e | 17623 | static PyObject *_wrap_PyCompositeShape_MakeContainer(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17624 | PyObject *resultobj; |
17625 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17626 | PyObject * obj0 = 0 ; | |
17627 | char *kwnames[] = { | |
17628 | (char *) "self", NULL | |
17629 | }; | |
17630 | ||
17631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_MakeContainer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17634 | { |
17635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17636 | (arg1)->MakeContainer(); | |
17637 | ||
17638 | wxPyEndAllowThreads(__tstate); | |
17639 | if (PyErr_Occurred()) SWIG_fail; | |
17640 | } | |
17641 | Py_INCREF(Py_None); resultobj = Py_None; | |
17642 | return resultobj; | |
17643 | fail: | |
17644 | return NULL; | |
17645 | } | |
17646 | ||
17647 | ||
c370783e | 17648 | static PyObject *_wrap_PyCompositeShape_Recompute(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17649 | PyObject *resultobj; |
17650 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17651 | bool result; | |
17652 | PyObject * obj0 = 0 ; | |
17653 | char *kwnames[] = { | |
17654 | (char *) "self", NULL | |
17655 | }; | |
17656 | ||
17657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_Recompute",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17660 | { |
17661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17662 | result = (bool)(arg1)->Recompute(); | |
17663 | ||
17664 | wxPyEndAllowThreads(__tstate); | |
17665 | if (PyErr_Occurred()) SWIG_fail; | |
17666 | } | |
fbc46b20 RD |
17667 | { |
17668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17669 | } | |
44127b65 RD |
17670 | return resultobj; |
17671 | fail: | |
17672 | return NULL; | |
17673 | } | |
17674 | ||
17675 | ||
c370783e | 17676 | static PyObject *_wrap_PyCompositeShape_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17677 | PyObject *resultobj; |
17678 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17679 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
17680 | PyObject * obj0 = 0 ; | |
17681 | PyObject * obj1 = 0 ; | |
17682 | char *kwnames[] = { | |
17683 | (char *) "self",(char *) "child", NULL | |
17684 | }; | |
17685 | ||
17686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17689 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
17690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17691 | { |
17692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17693 | (arg1)->RemoveChild(arg2); | |
17694 | ||
17695 | wxPyEndAllowThreads(__tstate); | |
17696 | if (PyErr_Occurred()) SWIG_fail; | |
17697 | } | |
17698 | Py_INCREF(Py_None); resultobj = Py_None; | |
17699 | return resultobj; | |
17700 | fail: | |
17701 | return NULL; | |
17702 | } | |
17703 | ||
17704 | ||
c370783e | 17705 | static PyObject *_wrap_PyCompositeShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17706 | PyObject *resultobj; |
17707 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17708 | PyObject * obj0 = 0 ; | |
17709 | char *kwnames[] = { | |
17710 | (char *) "self", NULL | |
17711 | }; | |
17712 | ||
17713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCompositeShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
17716 | { |
17717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17718 | (arg1)->base_OnDelete(); | |
17719 | ||
17720 | wxPyEndAllowThreads(__tstate); | |
17721 | if (PyErr_Occurred()) SWIG_fail; | |
17722 | } | |
17723 | Py_INCREF(Py_None); resultobj = Py_None; | |
17724 | return resultobj; | |
17725 | fail: | |
17726 | return NULL; | |
17727 | } | |
17728 | ||
17729 | ||
c370783e | 17730 | static PyObject *_wrap_PyCompositeShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17731 | PyObject *resultobj; |
17732 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17733 | wxDC *arg2 = 0 ; | |
17734 | PyObject * obj0 = 0 ; | |
17735 | PyObject * obj1 = 0 ; | |
17736 | char *kwnames[] = { | |
17737 | (char *) "self",(char *) "dc", NULL | |
17738 | }; | |
17739 | ||
17740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17743 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17744 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17745 | SWIG_fail; | |
44127b65 | 17746 | if (arg2 == NULL) { |
2f4c0a16 RD |
17747 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17748 | SWIG_fail; | |
44127b65 RD |
17749 | } |
17750 | { | |
17751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17752 | (arg1)->base_OnDraw(*arg2); | |
17753 | ||
17754 | wxPyEndAllowThreads(__tstate); | |
17755 | if (PyErr_Occurred()) SWIG_fail; | |
17756 | } | |
17757 | Py_INCREF(Py_None); resultobj = Py_None; | |
17758 | return resultobj; | |
17759 | fail: | |
17760 | return NULL; | |
17761 | } | |
17762 | ||
17763 | ||
c370783e | 17764 | static PyObject *_wrap_PyCompositeShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17765 | PyObject *resultobj; |
17766 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17767 | wxDC *arg2 = 0 ; | |
17768 | PyObject * obj0 = 0 ; | |
17769 | PyObject * obj1 = 0 ; | |
17770 | char *kwnames[] = { | |
17771 | (char *) "self",(char *) "dc", NULL | |
17772 | }; | |
17773 | ||
17774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17778 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17779 | SWIG_fail; | |
44127b65 | 17780 | if (arg2 == NULL) { |
2f4c0a16 RD |
17781 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17782 | SWIG_fail; | |
44127b65 RD |
17783 | } |
17784 | { | |
17785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17786 | (arg1)->base_OnDrawContents(*arg2); | |
17787 | ||
17788 | wxPyEndAllowThreads(__tstate); | |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
17790 | } | |
17791 | Py_INCREF(Py_None); resultobj = Py_None; | |
17792 | return resultobj; | |
17793 | fail: | |
17794 | return NULL; | |
17795 | } | |
17796 | ||
17797 | ||
c370783e | 17798 | static PyObject *_wrap_PyCompositeShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17799 | PyObject *resultobj; |
17800 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17801 | wxDC *arg2 = 0 ; | |
17802 | bool arg3 = (bool) FALSE ; | |
17803 | PyObject * obj0 = 0 ; | |
17804 | PyObject * obj1 = 0 ; | |
17805 | PyObject * obj2 = 0 ; | |
17806 | char *kwnames[] = { | |
17807 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
17808 | }; | |
17809 | ||
17810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCompositeShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
17811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17813 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17814 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17815 | SWIG_fail; | |
44127b65 | 17816 | if (arg2 == NULL) { |
2f4c0a16 RD |
17817 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17818 | SWIG_fail; | |
44127b65 RD |
17819 | } |
17820 | if (obj2) { | |
c370783e | 17821 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 17822 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
17823 | } |
17824 | { | |
17825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17826 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
17827 | ||
17828 | wxPyEndAllowThreads(__tstate); | |
17829 | if (PyErr_Occurred()) SWIG_fail; | |
17830 | } | |
17831 | Py_INCREF(Py_None); resultobj = Py_None; | |
17832 | return resultobj; | |
17833 | fail: | |
17834 | return NULL; | |
17835 | } | |
17836 | ||
17837 | ||
c370783e | 17838 | static PyObject *_wrap_PyCompositeShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17839 | PyObject *resultobj; |
17840 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17841 | wxDC *arg2 = 0 ; | |
17842 | PyObject * obj0 = 0 ; | |
17843 | PyObject * obj1 = 0 ; | |
17844 | char *kwnames[] = { | |
17845 | (char *) "self",(char *) "dc", NULL | |
17846 | }; | |
17847 | ||
17848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17852 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17853 | SWIG_fail; | |
44127b65 | 17854 | if (arg2 == NULL) { |
2f4c0a16 RD |
17855 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17856 | SWIG_fail; | |
44127b65 RD |
17857 | } |
17858 | { | |
17859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17860 | (arg1)->base_OnMoveLinks(*arg2); | |
17861 | ||
17862 | wxPyEndAllowThreads(__tstate); | |
17863 | if (PyErr_Occurred()) SWIG_fail; | |
17864 | } | |
17865 | Py_INCREF(Py_None); resultobj = Py_None; | |
17866 | return resultobj; | |
17867 | fail: | |
17868 | return NULL; | |
17869 | } | |
17870 | ||
17871 | ||
c370783e | 17872 | static PyObject *_wrap_PyCompositeShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17873 | PyObject *resultobj; |
17874 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17875 | wxDC *arg2 = 0 ; | |
17876 | PyObject * obj0 = 0 ; | |
17877 | PyObject * obj1 = 0 ; | |
17878 | char *kwnames[] = { | |
17879 | (char *) "self",(char *) "dc", NULL | |
17880 | }; | |
17881 | ||
17882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17885 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17886 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17887 | SWIG_fail; | |
44127b65 | 17888 | if (arg2 == NULL) { |
2f4c0a16 RD |
17889 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17890 | SWIG_fail; | |
44127b65 RD |
17891 | } |
17892 | { | |
17893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17894 | (arg1)->base_OnErase(*arg2); | |
17895 | ||
17896 | wxPyEndAllowThreads(__tstate); | |
17897 | if (PyErr_Occurred()) SWIG_fail; | |
17898 | } | |
17899 | Py_INCREF(Py_None); resultobj = Py_None; | |
17900 | return resultobj; | |
17901 | fail: | |
17902 | return NULL; | |
17903 | } | |
17904 | ||
17905 | ||
c370783e | 17906 | static PyObject *_wrap_PyCompositeShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17907 | PyObject *resultobj; |
17908 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17909 | wxDC *arg2 = 0 ; | |
17910 | PyObject * obj0 = 0 ; | |
17911 | PyObject * obj1 = 0 ; | |
17912 | char *kwnames[] = { | |
17913 | (char *) "self",(char *) "dc", NULL | |
17914 | }; | |
17915 | ||
17916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17919 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17920 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17921 | SWIG_fail; | |
44127b65 | 17922 | if (arg2 == NULL) { |
2f4c0a16 RD |
17923 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17924 | SWIG_fail; | |
44127b65 RD |
17925 | } |
17926 | { | |
17927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17928 | (arg1)->base_OnEraseContents(*arg2); | |
17929 | ||
17930 | wxPyEndAllowThreads(__tstate); | |
17931 | if (PyErr_Occurred()) SWIG_fail; | |
17932 | } | |
17933 | Py_INCREF(Py_None); resultobj = Py_None; | |
17934 | return resultobj; | |
17935 | fail: | |
17936 | return NULL; | |
17937 | } | |
17938 | ||
17939 | ||
c370783e | 17940 | static PyObject *_wrap_PyCompositeShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17941 | PyObject *resultobj; |
17942 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17943 | wxDC *arg2 = 0 ; | |
17944 | PyObject * obj0 = 0 ; | |
17945 | PyObject * obj1 = 0 ; | |
17946 | char *kwnames[] = { | |
17947 | (char *) "self",(char *) "dc", NULL | |
17948 | }; | |
17949 | ||
17950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17954 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17955 | SWIG_fail; | |
44127b65 | 17956 | if (arg2 == NULL) { |
2f4c0a16 RD |
17957 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17958 | SWIG_fail; | |
44127b65 RD |
17959 | } |
17960 | { | |
17961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17962 | (arg1)->base_OnHighlight(*arg2); | |
17963 | ||
17964 | wxPyEndAllowThreads(__tstate); | |
17965 | if (PyErr_Occurred()) SWIG_fail; | |
17966 | } | |
17967 | Py_INCREF(Py_None); resultobj = Py_None; | |
17968 | return resultobj; | |
17969 | fail: | |
17970 | return NULL; | |
17971 | } | |
17972 | ||
17973 | ||
c370783e | 17974 | static PyObject *_wrap_PyCompositeShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
17975 | PyObject *resultobj; |
17976 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
17977 | double arg2 ; | |
17978 | double arg3 ; | |
17979 | int arg4 = (int) 0 ; | |
17980 | int arg5 = (int) 0 ; | |
17981 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17982 | PyObject * obj1 = 0 ; |
17983 | PyObject * obj2 = 0 ; | |
17984 | PyObject * obj3 = 0 ; | |
17985 | PyObject * obj4 = 0 ; | |
44127b65 RD |
17986 | char *kwnames[] = { |
17987 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
17988 | }; | |
17989 | ||
8edf1c75 | 17990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
17991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
17992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17993 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 17994 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17995 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 17996 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 17997 | if (obj3) { |
c370783e | 17998 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 17999 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18000 | } |
18001 | if (obj4) { | |
c370783e | 18002 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18003 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18004 | } |
44127b65 RD |
18005 | { |
18006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18007 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
18008 | ||
18009 | wxPyEndAllowThreads(__tstate); | |
18010 | if (PyErr_Occurred()) SWIG_fail; | |
18011 | } | |
18012 | Py_INCREF(Py_None); resultobj = Py_None; | |
18013 | return resultobj; | |
18014 | fail: | |
18015 | return NULL; | |
18016 | } | |
18017 | ||
18018 | ||
c370783e | 18019 | static PyObject *_wrap_PyCompositeShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18020 | PyObject *resultobj; |
18021 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18022 | double arg2 ; | |
18023 | double arg3 ; | |
18024 | int arg4 = (int) 0 ; | |
18025 | int arg5 = (int) 0 ; | |
18026 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18027 | PyObject * obj1 = 0 ; |
18028 | PyObject * obj2 = 0 ; | |
18029 | PyObject * obj3 = 0 ; | |
18030 | PyObject * obj4 = 0 ; | |
44127b65 RD |
18031 | char *kwnames[] = { |
18032 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18033 | }; | |
18034 | ||
8edf1c75 | 18035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
18036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18038 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18039 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18040 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18041 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18042 | if (obj3) { |
c370783e | 18043 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 18044 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18045 | } |
18046 | if (obj4) { | |
c370783e | 18047 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18048 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18049 | } |
44127b65 RD |
18050 | { |
18051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18052 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
18053 | ||
18054 | wxPyEndAllowThreads(__tstate); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
18057 | Py_INCREF(Py_None); resultobj = Py_None; | |
18058 | return resultobj; | |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
c370783e | 18064 | static PyObject *_wrap_PyCompositeShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18065 | PyObject *resultobj; |
18066 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18067 | double arg2 ; | |
18068 | double arg3 ; | |
18069 | int arg4 = (int) 0 ; | |
18070 | int arg5 = (int) 0 ; | |
18071 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18072 | PyObject * obj1 = 0 ; |
18073 | PyObject * obj2 = 0 ; | |
18074 | PyObject * obj3 = 0 ; | |
18075 | PyObject * obj4 = 0 ; | |
44127b65 RD |
18076 | char *kwnames[] = { |
18077 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18078 | }; | |
18079 | ||
8edf1c75 | 18080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
18081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18083 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18084 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18085 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18086 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18087 | if (obj3) { |
c370783e | 18088 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 18089 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18090 | } |
18091 | if (obj4) { | |
c370783e | 18092 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18093 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18094 | } |
44127b65 RD |
18095 | { |
18096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18097 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
18098 | ||
18099 | wxPyEndAllowThreads(__tstate); | |
18100 | if (PyErr_Occurred()) SWIG_fail; | |
18101 | } | |
18102 | Py_INCREF(Py_None); resultobj = Py_None; | |
18103 | return resultobj; | |
18104 | fail: | |
18105 | return NULL; | |
18106 | } | |
18107 | ||
18108 | ||
c370783e | 18109 | static PyObject *_wrap_PyCompositeShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18110 | PyObject *resultobj; |
18111 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18112 | double arg2 ; | |
18113 | double arg3 ; | |
18114 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18115 | PyObject * obj1 = 0 ; |
18116 | PyObject * obj2 = 0 ; | |
44127b65 RD |
18117 | char *kwnames[] = { |
18118 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18119 | }; | |
18120 | ||
8edf1c75 | 18121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCompositeShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
18122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18124 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18125 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18126 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18127 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
18128 | { |
18129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18130 | (arg1)->base_OnSize(arg2,arg3); | |
18131 | ||
18132 | wxPyEndAllowThreads(__tstate); | |
18133 | if (PyErr_Occurred()) SWIG_fail; | |
18134 | } | |
18135 | Py_INCREF(Py_None); resultobj = Py_None; | |
18136 | return resultobj; | |
18137 | fail: | |
18138 | return NULL; | |
18139 | } | |
18140 | ||
18141 | ||
c370783e | 18142 | static PyObject *_wrap_PyCompositeShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18143 | PyObject *resultobj; |
18144 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18145 | wxDC *arg2 = 0 ; | |
18146 | double arg3 ; | |
18147 | double arg4 ; | |
18148 | double arg5 ; | |
18149 | double arg6 ; | |
18150 | bool arg7 = (bool) True ; | |
18151 | bool result; | |
18152 | PyObject * obj0 = 0 ; | |
18153 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
18154 | PyObject * obj2 = 0 ; |
18155 | PyObject * obj3 = 0 ; | |
18156 | PyObject * obj4 = 0 ; | |
18157 | PyObject * obj5 = 0 ; | |
44127b65 RD |
18158 | PyObject * obj6 = 0 ; |
18159 | char *kwnames[] = { | |
18160 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
18161 | }; | |
18162 | ||
8edf1c75 | 18163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyCompositeShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
18164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18166 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18167 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18168 | SWIG_fail; | |
44127b65 | 18169 | if (arg2 == NULL) { |
2f4c0a16 RD |
18170 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18171 | SWIG_fail; | |
18172 | } | |
c370783e | 18173 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18174 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18175 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 18176 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18177 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 18178 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18179 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 18180 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 18181 | if (obj6) { |
c370783e | 18182 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 18183 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
18184 | } |
18185 | { | |
18186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18187 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
18188 | ||
18189 | wxPyEndAllowThreads(__tstate); | |
18190 | if (PyErr_Occurred()) SWIG_fail; | |
18191 | } | |
fbc46b20 RD |
18192 | { |
18193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18194 | } | |
44127b65 RD |
18195 | return resultobj; |
18196 | fail: | |
18197 | return NULL; | |
18198 | } | |
18199 | ||
18200 | ||
c370783e | 18201 | static PyObject *_wrap_PyCompositeShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18202 | PyObject *resultobj; |
18203 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18204 | wxDC *arg2 = 0 ; | |
18205 | double arg3 ; | |
18206 | double arg4 ; | |
18207 | double arg5 ; | |
18208 | double arg6 ; | |
18209 | bool arg7 = (bool) True ; | |
18210 | PyObject * obj0 = 0 ; | |
18211 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
18212 | PyObject * obj2 = 0 ; |
18213 | PyObject * obj3 = 0 ; | |
18214 | PyObject * obj4 = 0 ; | |
18215 | PyObject * obj5 = 0 ; | |
44127b65 RD |
18216 | PyObject * obj6 = 0 ; |
18217 | char *kwnames[] = { | |
18218 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
18219 | }; | |
18220 | ||
8edf1c75 | 18221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyCompositeShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
18222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18225 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18226 | SWIG_fail; | |
44127b65 | 18227 | if (arg2 == NULL) { |
2f4c0a16 RD |
18228 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18229 | SWIG_fail; | |
18230 | } | |
c370783e | 18231 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18232 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18233 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 18234 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18235 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 18236 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18237 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 18238 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 18239 | if (obj6) { |
c370783e | 18240 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 18241 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
18242 | } |
18243 | { | |
18244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18245 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
18246 | ||
18247 | wxPyEndAllowThreads(__tstate); | |
18248 | if (PyErr_Occurred()) SWIG_fail; | |
18249 | } | |
18250 | Py_INCREF(Py_None); resultobj = Py_None; | |
18251 | return resultobj; | |
18252 | fail: | |
18253 | return NULL; | |
18254 | } | |
18255 | ||
18256 | ||
c370783e | 18257 | static PyObject *_wrap_PyCompositeShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18258 | PyObject *resultobj; |
18259 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18260 | bool arg2 ; | |
18261 | double arg3 ; | |
18262 | double arg4 ; | |
18263 | int arg5 = (int) 0 ; | |
18264 | int arg6 = (int) 0 ; | |
18265 | PyObject * obj0 = 0 ; | |
18266 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
18267 | PyObject * obj2 = 0 ; |
18268 | PyObject * obj3 = 0 ; | |
18269 | PyObject * obj4 = 0 ; | |
18270 | PyObject * obj5 = 0 ; | |
44127b65 RD |
18271 | char *kwnames[] = { |
18272 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18273 | }; | |
18274 | ||
8edf1c75 | 18275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCompositeShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
18276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18278 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 18279 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18280 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18281 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18282 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 18283 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18284 | if (obj4) { |
c370783e | 18285 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18286 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18287 | } |
18288 | if (obj5) { | |
c370783e | 18289 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 18290 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18291 | } |
44127b65 RD |
18292 | { |
18293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18294 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18295 | ||
18296 | wxPyEndAllowThreads(__tstate); | |
18297 | if (PyErr_Occurred()) SWIG_fail; | |
18298 | } | |
18299 | Py_INCREF(Py_None); resultobj = Py_None; | |
18300 | return resultobj; | |
18301 | fail: | |
18302 | return NULL; | |
18303 | } | |
18304 | ||
18305 | ||
c370783e | 18306 | static PyObject *_wrap_PyCompositeShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18307 | PyObject *resultobj; |
18308 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18309 | double arg2 ; | |
18310 | double arg3 ; | |
18311 | int arg4 = (int) 0 ; | |
18312 | int arg5 = (int) 0 ; | |
18313 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18314 | PyObject * obj1 = 0 ; |
18315 | PyObject * obj2 = 0 ; | |
18316 | PyObject * obj3 = 0 ; | |
18317 | PyObject * obj4 = 0 ; | |
44127b65 RD |
18318 | char *kwnames[] = { |
18319 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18320 | }; | |
18321 | ||
8edf1c75 | 18322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
18323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18325 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18326 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18327 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18328 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18329 | if (obj3) { |
c370783e | 18330 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 18331 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18332 | } |
18333 | if (obj4) { | |
c370783e | 18334 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18335 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18336 | } |
44127b65 RD |
18337 | { |
18338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18339 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
18340 | ||
18341 | wxPyEndAllowThreads(__tstate); | |
18342 | if (PyErr_Occurred()) SWIG_fail; | |
18343 | } | |
18344 | Py_INCREF(Py_None); resultobj = Py_None; | |
18345 | return resultobj; | |
18346 | fail: | |
18347 | return NULL; | |
18348 | } | |
18349 | ||
18350 | ||
c370783e | 18351 | static PyObject *_wrap_PyCompositeShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18352 | PyObject *resultobj; |
18353 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18354 | double arg2 ; | |
18355 | double arg3 ; | |
18356 | int arg4 = (int) 0 ; | |
18357 | int arg5 = (int) 0 ; | |
18358 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18359 | PyObject * obj1 = 0 ; |
18360 | PyObject * obj2 = 0 ; | |
18361 | PyObject * obj3 = 0 ; | |
18362 | PyObject * obj4 = 0 ; | |
44127b65 RD |
18363 | char *kwnames[] = { |
18364 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18365 | }; | |
18366 | ||
8edf1c75 | 18367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
18368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18370 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18371 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18372 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18373 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18374 | if (obj3) { |
c370783e | 18375 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 18376 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18377 | } |
18378 | if (obj4) { | |
c370783e | 18379 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18380 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18381 | } |
44127b65 RD |
18382 | { |
18383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18384 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
18385 | ||
18386 | wxPyEndAllowThreads(__tstate); | |
18387 | if (PyErr_Occurred()) SWIG_fail; | |
18388 | } | |
18389 | Py_INCREF(Py_None); resultobj = Py_None; | |
18390 | return resultobj; | |
18391 | fail: | |
18392 | return NULL; | |
18393 | } | |
18394 | ||
18395 | ||
c370783e | 18396 | static PyObject *_wrap_PyCompositeShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18397 | PyObject *resultobj; |
18398 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18399 | bool arg2 ; | |
18400 | double arg3 ; | |
18401 | double arg4 ; | |
18402 | int arg5 = (int) 0 ; | |
18403 | int arg6 = (int) 0 ; | |
18404 | PyObject * obj0 = 0 ; | |
18405 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
18406 | PyObject * obj2 = 0 ; |
18407 | PyObject * obj3 = 0 ; | |
18408 | PyObject * obj4 = 0 ; | |
18409 | PyObject * obj5 = 0 ; | |
44127b65 RD |
18410 | char *kwnames[] = { |
18411 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18412 | }; | |
18413 | ||
8edf1c75 | 18414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCompositeShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
18415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18417 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 18418 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18419 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18420 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18421 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 18422 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18423 | if (obj4) { |
c370783e | 18424 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18425 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18426 | } |
18427 | if (obj5) { | |
c370783e | 18428 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 18429 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18430 | } |
44127b65 RD |
18431 | { |
18432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18433 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
18434 | ||
18435 | wxPyEndAllowThreads(__tstate); | |
18436 | if (PyErr_Occurred()) SWIG_fail; | |
18437 | } | |
18438 | Py_INCREF(Py_None); resultobj = Py_None; | |
18439 | return resultobj; | |
18440 | fail: | |
18441 | return NULL; | |
18442 | } | |
18443 | ||
18444 | ||
c370783e | 18445 | static PyObject *_wrap_PyCompositeShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18446 | PyObject *resultobj; |
18447 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18448 | double arg2 ; | |
18449 | double arg3 ; | |
18450 | int arg4 = (int) 0 ; | |
18451 | int arg5 = (int) 0 ; | |
18452 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18453 | PyObject * obj1 = 0 ; |
18454 | PyObject * obj2 = 0 ; | |
18455 | PyObject * obj3 = 0 ; | |
18456 | PyObject * obj4 = 0 ; | |
44127b65 RD |
18457 | char *kwnames[] = { |
18458 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18459 | }; | |
18460 | ||
8edf1c75 | 18461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
18462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18464 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18465 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18466 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18467 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18468 | if (obj3) { |
c370783e | 18469 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 18470 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18471 | } |
18472 | if (obj4) { | |
c370783e | 18473 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18474 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18475 | } |
44127b65 RD |
18476 | { |
18477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18478 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
18479 | ||
18480 | wxPyEndAllowThreads(__tstate); | |
18481 | if (PyErr_Occurred()) SWIG_fail; | |
18482 | } | |
18483 | Py_INCREF(Py_None); resultobj = Py_None; | |
18484 | return resultobj; | |
18485 | fail: | |
18486 | return NULL; | |
18487 | } | |
18488 | ||
18489 | ||
c370783e | 18490 | static PyObject *_wrap_PyCompositeShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18491 | PyObject *resultobj; |
18492 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18493 | double arg2 ; | |
18494 | double arg3 ; | |
18495 | int arg4 = (int) 0 ; | |
18496 | int arg5 = (int) 0 ; | |
18497 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18498 | PyObject * obj1 = 0 ; |
18499 | PyObject * obj2 = 0 ; | |
18500 | PyObject * obj3 = 0 ; | |
18501 | PyObject * obj4 = 0 ; | |
44127b65 RD |
18502 | char *kwnames[] = { |
18503 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18504 | }; | |
18505 | ||
8edf1c75 | 18506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCompositeShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
18507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18509 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18510 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18511 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18512 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18513 | if (obj3) { |
c370783e | 18514 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 18515 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18516 | } |
18517 | if (obj4) { | |
c370783e | 18518 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18519 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18520 | } |
44127b65 RD |
18521 | { |
18522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18523 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
18524 | ||
18525 | wxPyEndAllowThreads(__tstate); | |
18526 | if (PyErr_Occurred()) SWIG_fail; | |
18527 | } | |
18528 | Py_INCREF(Py_None); resultobj = Py_None; | |
18529 | return resultobj; | |
18530 | fail: | |
18531 | return NULL; | |
18532 | } | |
18533 | ||
18534 | ||
c370783e | 18535 | static PyObject *_wrap_PyCompositeShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18536 | PyObject *resultobj; |
18537 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18538 | wxDC *arg2 = 0 ; | |
18539 | double arg3 ; | |
18540 | double arg4 ; | |
18541 | double arg5 ; | |
18542 | double arg6 ; | |
18543 | PyObject * obj0 = 0 ; | |
18544 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
18545 | PyObject * obj2 = 0 ; |
18546 | PyObject * obj3 = 0 ; | |
18547 | PyObject * obj4 = 0 ; | |
18548 | PyObject * obj5 = 0 ; | |
44127b65 RD |
18549 | char *kwnames[] = { |
18550 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
18551 | }; | |
18552 | ||
8edf1c75 | 18553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyCompositeShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
18554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18556 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18557 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18558 | SWIG_fail; | |
44127b65 | 18559 | if (arg2 == NULL) { |
2f4c0a16 RD |
18560 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18561 | SWIG_fail; | |
8edf1c75 | 18562 | } |
c370783e | 18563 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18564 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18565 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 18566 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18567 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 18568 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18569 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 18570 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
18571 | { |
18572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18573 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
18574 | ||
18575 | wxPyEndAllowThreads(__tstate); | |
18576 | if (PyErr_Occurred()) SWIG_fail; | |
18577 | } | |
18578 | Py_INCREF(Py_None); resultobj = Py_None; | |
18579 | return resultobj; | |
18580 | fail: | |
18581 | return NULL; | |
18582 | } | |
18583 | ||
18584 | ||
c370783e | 18585 | static PyObject *_wrap_PyCompositeShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18586 | PyObject *resultobj; |
18587 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18588 | wxDC *arg2 = 0 ; | |
18589 | PyObject * obj0 = 0 ; | |
18590 | PyObject * obj1 = 0 ; | |
18591 | char *kwnames[] = { | |
18592 | (char *) "self",(char *) "dc", NULL | |
18593 | }; | |
18594 | ||
18595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18600 | SWIG_fail; | |
44127b65 | 18601 | if (arg2 == NULL) { |
2f4c0a16 RD |
18602 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18603 | SWIG_fail; | |
44127b65 RD |
18604 | } |
18605 | { | |
18606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18607 | (arg1)->base_OnDrawControlPoints(*arg2); | |
18608 | ||
18609 | wxPyEndAllowThreads(__tstate); | |
18610 | if (PyErr_Occurred()) SWIG_fail; | |
18611 | } | |
18612 | Py_INCREF(Py_None); resultobj = Py_None; | |
18613 | return resultobj; | |
18614 | fail: | |
18615 | return NULL; | |
18616 | } | |
18617 | ||
18618 | ||
c370783e | 18619 | static PyObject *_wrap_PyCompositeShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18620 | PyObject *resultobj; |
18621 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18622 | wxDC *arg2 = 0 ; | |
18623 | PyObject * obj0 = 0 ; | |
18624 | PyObject * obj1 = 0 ; | |
18625 | char *kwnames[] = { | |
18626 | (char *) "self",(char *) "dc", NULL | |
18627 | }; | |
18628 | ||
18629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCompositeShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18633 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18634 | SWIG_fail; | |
44127b65 | 18635 | if (arg2 == NULL) { |
2f4c0a16 RD |
18636 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18637 | SWIG_fail; | |
44127b65 RD |
18638 | } |
18639 | { | |
18640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18641 | (arg1)->base_OnEraseControlPoints(*arg2); | |
18642 | ||
18643 | wxPyEndAllowThreads(__tstate); | |
18644 | if (PyErr_Occurred()) SWIG_fail; | |
18645 | } | |
18646 | Py_INCREF(Py_None); resultobj = Py_None; | |
18647 | return resultobj; | |
18648 | fail: | |
18649 | return NULL; | |
18650 | } | |
18651 | ||
18652 | ||
c370783e | 18653 | static PyObject *_wrap_PyCompositeShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18654 | PyObject *resultobj; |
18655 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18656 | wxDC *arg2 = 0 ; | |
18657 | bool arg3 = (bool) True ; | |
18658 | PyObject * obj0 = 0 ; | |
18659 | PyObject * obj1 = 0 ; | |
18660 | PyObject * obj2 = 0 ; | |
18661 | char *kwnames[] = { | |
18662 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
18663 | }; | |
18664 | ||
18665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCompositeShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
18666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18669 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18670 | SWIG_fail; | |
44127b65 | 18671 | if (arg2 == NULL) { |
2f4c0a16 RD |
18672 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18673 | SWIG_fail; | |
44127b65 RD |
18674 | } |
18675 | if (obj2) { | |
c370783e | 18676 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 18677 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
18678 | } |
18679 | { | |
18680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18681 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
18682 | ||
18683 | wxPyEndAllowThreads(__tstate); | |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
18685 | } | |
18686 | Py_INCREF(Py_None); resultobj = Py_None; | |
18687 | return resultobj; | |
18688 | fail: | |
18689 | return NULL; | |
18690 | } | |
18691 | ||
18692 | ||
c370783e | 18693 | static PyObject *_wrap_PyCompositeShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18694 | PyObject *resultobj; |
18695 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18696 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18697 | bool arg3 ; | |
18698 | double arg4 ; | |
18699 | double arg5 ; | |
18700 | int arg6 = (int) 0 ; | |
18701 | int arg7 = (int) 0 ; | |
18702 | PyObject * obj0 = 0 ; | |
18703 | PyObject * obj1 = 0 ; | |
18704 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
18705 | PyObject * obj3 = 0 ; |
18706 | PyObject * obj4 = 0 ; | |
18707 | PyObject * obj5 = 0 ; | |
18708 | PyObject * obj6 = 0 ; | |
44127b65 RD |
18709 | char *kwnames[] = { |
18710 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18711 | }; | |
18712 | ||
8edf1c75 | 18713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyCompositeShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
18714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18716 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
18717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18718 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 18719 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18720 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 18721 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18722 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 RD |
18723 | if (PyErr_Occurred()) SWIG_fail; |
18724 | if (obj5) { | |
c370783e | 18725 | arg6 = (int)SWIG_As_int(obj5); |
2dbef272 RD |
18726 | if (PyErr_Occurred()) SWIG_fail; |
18727 | } | |
2f4c0a16 | 18728 | if (obj6) { |
c370783e | 18729 | arg7 = (int)SWIG_As_int(obj6); |
8edf1c75 RD |
18730 | if (PyErr_Occurred()) SWIG_fail; |
18731 | } | |
18732 | { | |
2f4c0a16 RD |
18733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18734 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
18735 | ||
18736 | wxPyEndAllowThreads(__tstate); | |
44127b65 RD |
18737 | if (PyErr_Occurred()) SWIG_fail; |
18738 | } | |
18739 | Py_INCREF(Py_None); resultobj = Py_None; | |
18740 | return resultobj; | |
18741 | fail: | |
18742 | return NULL; | |
18743 | } | |
18744 | ||
18745 | ||
c370783e | 18746 | static PyObject *_wrap_PyCompositeShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18747 | PyObject *resultobj; |
18748 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18749 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18750 | double arg3 ; | |
18751 | double arg4 ; | |
18752 | int arg5 = (int) 0 ; | |
18753 | int arg6 = (int) 0 ; | |
18754 | PyObject * obj0 = 0 ; | |
18755 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
18756 | PyObject * obj2 = 0 ; |
18757 | PyObject * obj3 = 0 ; | |
18758 | PyObject * obj4 = 0 ; | |
18759 | PyObject * obj5 = 0 ; | |
44127b65 RD |
18760 | char *kwnames[] = { |
18761 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18762 | }; | |
18763 | ||
8edf1c75 | 18764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCompositeShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
18765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
18768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18769 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18770 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18771 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 18772 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18773 | if (obj4) { |
c370783e | 18774 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18775 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18776 | } |
18777 | if (obj5) { | |
c370783e | 18778 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 18779 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18780 | } |
44127b65 RD |
18781 | { |
18782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18783 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18784 | ||
18785 | wxPyEndAllowThreads(__tstate); | |
18786 | if (PyErr_Occurred()) SWIG_fail; | |
18787 | } | |
18788 | Py_INCREF(Py_None); resultobj = Py_None; | |
18789 | return resultobj; | |
18790 | fail: | |
18791 | return NULL; | |
18792 | } | |
18793 | ||
18794 | ||
c370783e | 18795 | static PyObject *_wrap_PyCompositeShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18796 | PyObject *resultobj; |
18797 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18798 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
18799 | double arg3 ; | |
18800 | double arg4 ; | |
18801 | int arg5 = (int) 0 ; | |
18802 | int arg6 = (int) 0 ; | |
18803 | PyObject * obj0 = 0 ; | |
18804 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
18805 | PyObject * obj2 = 0 ; |
18806 | PyObject * obj3 = 0 ; | |
18807 | PyObject * obj4 = 0 ; | |
18808 | PyObject * obj5 = 0 ; | |
44127b65 RD |
18809 | char *kwnames[] = { |
18810 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
18811 | }; | |
18812 | ||
8edf1c75 | 18813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCompositeShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
18814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18816 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
18817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18818 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18819 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18820 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 18821 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18822 | if (obj4) { |
c370783e | 18823 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 18824 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18825 | } |
18826 | if (obj5) { | |
c370783e | 18827 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 18828 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18829 | } |
44127b65 RD |
18830 | { |
18831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18832 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
18833 | ||
18834 | wxPyEndAllowThreads(__tstate); | |
18835 | if (PyErr_Occurred()) SWIG_fail; | |
18836 | } | |
18837 | Py_INCREF(Py_None); resultobj = Py_None; | |
18838 | return resultobj; | |
18839 | fail: | |
18840 | return NULL; | |
18841 | } | |
18842 | ||
18843 | ||
c370783e | 18844 | static PyObject *_wrap_PyCompositeShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18845 | PyObject *resultobj; |
18846 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18847 | double arg2 ; | |
18848 | double arg3 ; | |
18849 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18850 | PyObject * obj1 = 0 ; |
18851 | PyObject * obj2 = 0 ; | |
44127b65 RD |
18852 | char *kwnames[] = { |
18853 | (char *) "self",(char *) "w",(char *) "h", NULL | |
18854 | }; | |
18855 | ||
8edf1c75 | 18856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCompositeShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
18857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18859 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18860 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18861 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18862 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
18863 | { |
18864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18865 | (arg1)->base_OnBeginSize(arg2,arg3); | |
18866 | ||
18867 | wxPyEndAllowThreads(__tstate); | |
18868 | if (PyErr_Occurred()) SWIG_fail; | |
18869 | } | |
18870 | Py_INCREF(Py_None); resultobj = Py_None; | |
18871 | return resultobj; | |
18872 | fail: | |
18873 | return NULL; | |
18874 | } | |
18875 | ||
18876 | ||
c370783e | 18877 | static PyObject *_wrap_PyCompositeShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18878 | PyObject *resultobj; |
18879 | wxPyCompositeShape *arg1 = (wxPyCompositeShape *) 0 ; | |
18880 | double arg2 ; | |
18881 | double arg3 ; | |
18882 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18883 | PyObject * obj1 = 0 ; |
18884 | PyObject * obj2 = 0 ; | |
44127b65 RD |
18885 | char *kwnames[] = { |
18886 | (char *) "self",(char *) "w",(char *) "h", NULL | |
18887 | }; | |
18888 | ||
8edf1c75 | 18889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCompositeShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
18890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCompositeShape, |
18891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18892 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18893 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18894 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 18895 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
18896 | { |
18897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18898 | (arg1)->base_OnEndSize(arg2,arg3); | |
18899 | ||
18900 | wxPyEndAllowThreads(__tstate); | |
18901 | if (PyErr_Occurred()) SWIG_fail; | |
18902 | } | |
18903 | Py_INCREF(Py_None); resultobj = Py_None; | |
18904 | return resultobj; | |
18905 | fail: | |
18906 | return NULL; | |
18907 | } | |
18908 | ||
18909 | ||
c370783e | 18910 | static PyObject * PyCompositeShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
18911 | PyObject *obj; |
18912 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18913 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCompositeShape, obj); | |
18914 | Py_INCREF(obj); | |
18915 | return Py_BuildValue((char *)""); | |
18916 | } | |
c370783e | 18917 | static PyObject *_wrap_new_PyDividedShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18918 | PyObject *resultobj; |
18919 | double arg1 = (double) 0.0 ; | |
18920 | double arg2 = (double) 0.0 ; | |
18921 | wxPyDividedShape *result; | |
8edf1c75 RD |
18922 | PyObject * obj0 = 0 ; |
18923 | PyObject * obj1 = 0 ; | |
44127b65 RD |
18924 | char *kwnames[] = { |
18925 | (char *) "width",(char *) "height", NULL | |
18926 | }; | |
18927 | ||
8edf1c75 RD |
18928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyDividedShape",kwnames,&obj0,&obj1)) goto fail; |
18929 | if (obj0) { | |
c370783e | 18930 | arg1 = (double)SWIG_As_double(obj0); |
2f4c0a16 | 18931 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
18932 | } |
18933 | if (obj1) { | |
c370783e | 18934 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 18935 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 18936 | } |
44127b65 RD |
18937 | { |
18938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18939 | result = (wxPyDividedShape *)new wxPyDividedShape(arg1,arg2); | |
18940 | ||
18941 | wxPyEndAllowThreads(__tstate); | |
18942 | if (PyErr_Occurred()) SWIG_fail; | |
18943 | } | |
2f4c0a16 | 18944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDividedShape, 1); |
44127b65 RD |
18945 | return resultobj; |
18946 | fail: | |
18947 | return NULL; | |
18948 | } | |
18949 | ||
18950 | ||
c370783e | 18951 | static PyObject *_wrap_PyDividedShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18952 | PyObject *resultobj; |
18953 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
18954 | PyObject *arg2 = (PyObject *) 0 ; | |
18955 | PyObject *arg3 = (PyObject *) 0 ; | |
18956 | PyObject * obj0 = 0 ; | |
18957 | PyObject * obj1 = 0 ; | |
18958 | PyObject * obj2 = 0 ; | |
18959 | char *kwnames[] = { | |
18960 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
18961 | }; | |
18962 | ||
18963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDividedShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
18964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
18965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
18966 | arg2 = obj1; |
18967 | arg3 = obj2; | |
18968 | { | |
18969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18970 | (arg1)->_setCallbackInfo(arg2,arg3); | |
18971 | ||
18972 | wxPyEndAllowThreads(__tstate); | |
18973 | if (PyErr_Occurred()) SWIG_fail; | |
18974 | } | |
18975 | Py_INCREF(Py_None); resultobj = Py_None; | |
18976 | return resultobj; | |
18977 | fail: | |
18978 | return NULL; | |
18979 | } | |
18980 | ||
18981 | ||
c370783e | 18982 | static PyObject *_wrap_PyDividedShape_EditRegions(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
18983 | PyObject *resultobj; |
18984 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
18985 | PyObject * obj0 = 0 ; | |
18986 | char *kwnames[] = { | |
18987 | (char *) "self", NULL | |
18988 | }; | |
18989 | ||
18990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDividedShape_EditRegions",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
18992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
18993 | { |
18994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18995 | (arg1)->EditRegions(); | |
18996 | ||
18997 | wxPyEndAllowThreads(__tstate); | |
18998 | if (PyErr_Occurred()) SWIG_fail; | |
18999 | } | |
19000 | Py_INCREF(Py_None); resultobj = Py_None; | |
19001 | return resultobj; | |
19002 | fail: | |
19003 | return NULL; | |
19004 | } | |
19005 | ||
19006 | ||
c370783e | 19007 | static PyObject *_wrap_PyDividedShape_SetRegionSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19008 | PyObject *resultobj; |
19009 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19010 | PyObject * obj0 = 0 ; | |
19011 | char *kwnames[] = { | |
19012 | (char *) "self", NULL | |
19013 | }; | |
19014 | ||
19015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDividedShape_SetRegionSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
19018 | { |
19019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19020 | (arg1)->SetRegionSizes(); | |
19021 | ||
19022 | wxPyEndAllowThreads(__tstate); | |
19023 | if (PyErr_Occurred()) SWIG_fail; | |
19024 | } | |
19025 | Py_INCREF(Py_None); resultobj = Py_None; | |
19026 | return resultobj; | |
19027 | fail: | |
19028 | return NULL; | |
19029 | } | |
19030 | ||
19031 | ||
c370783e | 19032 | static PyObject *_wrap_PyDividedShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19033 | PyObject *resultobj; |
19034 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19035 | PyObject * obj0 = 0 ; | |
19036 | char *kwnames[] = { | |
19037 | (char *) "self", NULL | |
19038 | }; | |
19039 | ||
19040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDividedShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
19043 | { |
19044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19045 | (arg1)->base_OnDelete(); | |
19046 | ||
19047 | wxPyEndAllowThreads(__tstate); | |
19048 | if (PyErr_Occurred()) SWIG_fail; | |
19049 | } | |
19050 | Py_INCREF(Py_None); resultobj = Py_None; | |
19051 | return resultobj; | |
19052 | fail: | |
19053 | return NULL; | |
19054 | } | |
19055 | ||
19056 | ||
c370783e | 19057 | static PyObject *_wrap_PyDividedShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19058 | PyObject *resultobj; |
19059 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19060 | wxDC *arg2 = 0 ; | |
19061 | PyObject * obj0 = 0 ; | |
19062 | PyObject * obj1 = 0 ; | |
19063 | char *kwnames[] = { | |
19064 | (char *) "self",(char *) "dc", NULL | |
19065 | }; | |
19066 | ||
19067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19070 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19071 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19072 | SWIG_fail; | |
44127b65 | 19073 | if (arg2 == NULL) { |
2f4c0a16 RD |
19074 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19075 | SWIG_fail; | |
44127b65 RD |
19076 | } |
19077 | { | |
19078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19079 | (arg1)->base_OnDraw(*arg2); | |
19080 | ||
19081 | wxPyEndAllowThreads(__tstate); | |
19082 | if (PyErr_Occurred()) SWIG_fail; | |
19083 | } | |
19084 | Py_INCREF(Py_None); resultobj = Py_None; | |
19085 | return resultobj; | |
19086 | fail: | |
19087 | return NULL; | |
19088 | } | |
19089 | ||
19090 | ||
c370783e | 19091 | static PyObject *_wrap_PyDividedShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19092 | PyObject *resultobj; |
19093 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19094 | wxDC *arg2 = 0 ; | |
19095 | PyObject * obj0 = 0 ; | |
19096 | PyObject * obj1 = 0 ; | |
19097 | char *kwnames[] = { | |
19098 | (char *) "self",(char *) "dc", NULL | |
19099 | }; | |
19100 | ||
19101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19104 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19105 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19106 | SWIG_fail; | |
44127b65 | 19107 | if (arg2 == NULL) { |
2f4c0a16 RD |
19108 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19109 | SWIG_fail; | |
44127b65 RD |
19110 | } |
19111 | { | |
19112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19113 | (arg1)->base_OnDrawContents(*arg2); | |
19114 | ||
19115 | wxPyEndAllowThreads(__tstate); | |
19116 | if (PyErr_Occurred()) SWIG_fail; | |
19117 | } | |
19118 | Py_INCREF(Py_None); resultobj = Py_None; | |
19119 | return resultobj; | |
19120 | fail: | |
19121 | return NULL; | |
19122 | } | |
19123 | ||
19124 | ||
c370783e | 19125 | static PyObject *_wrap_PyDividedShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19126 | PyObject *resultobj; |
19127 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19128 | wxDC *arg2 = 0 ; | |
19129 | bool arg3 = (bool) FALSE ; | |
19130 | PyObject * obj0 = 0 ; | |
19131 | PyObject * obj1 = 0 ; | |
19132 | PyObject * obj2 = 0 ; | |
19133 | char *kwnames[] = { | |
19134 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
19135 | }; | |
19136 | ||
19137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDividedShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19140 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19141 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19142 | SWIG_fail; | |
44127b65 | 19143 | if (arg2 == NULL) { |
2f4c0a16 RD |
19144 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19145 | SWIG_fail; | |
44127b65 RD |
19146 | } |
19147 | if (obj2) { | |
c370783e | 19148 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 19149 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
19150 | } |
19151 | { | |
19152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19153 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
19154 | ||
19155 | wxPyEndAllowThreads(__tstate); | |
19156 | if (PyErr_Occurred()) SWIG_fail; | |
19157 | } | |
19158 | Py_INCREF(Py_None); resultobj = Py_None; | |
19159 | return resultobj; | |
19160 | fail: | |
19161 | return NULL; | |
19162 | } | |
19163 | ||
19164 | ||
c370783e | 19165 | static PyObject *_wrap_PyDividedShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19166 | PyObject *resultobj; |
19167 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19168 | wxDC *arg2 = 0 ; | |
19169 | PyObject * obj0 = 0 ; | |
19170 | PyObject * obj1 = 0 ; | |
19171 | char *kwnames[] = { | |
19172 | (char *) "self",(char *) "dc", NULL | |
19173 | }; | |
19174 | ||
19175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19178 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19179 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19180 | SWIG_fail; | |
44127b65 | 19181 | if (arg2 == NULL) { |
2f4c0a16 RD |
19182 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19183 | SWIG_fail; | |
44127b65 RD |
19184 | } |
19185 | { | |
19186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19187 | (arg1)->base_OnMoveLinks(*arg2); | |
19188 | ||
19189 | wxPyEndAllowThreads(__tstate); | |
19190 | if (PyErr_Occurred()) SWIG_fail; | |
19191 | } | |
19192 | Py_INCREF(Py_None); resultobj = Py_None; | |
19193 | return resultobj; | |
19194 | fail: | |
19195 | return NULL; | |
19196 | } | |
19197 | ||
19198 | ||
c370783e | 19199 | static PyObject *_wrap_PyDividedShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19200 | PyObject *resultobj; |
19201 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19202 | wxDC *arg2 = 0 ; | |
19203 | PyObject * obj0 = 0 ; | |
19204 | PyObject * obj1 = 0 ; | |
19205 | char *kwnames[] = { | |
19206 | (char *) "self",(char *) "dc", NULL | |
19207 | }; | |
19208 | ||
19209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19213 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19214 | SWIG_fail; | |
44127b65 | 19215 | if (arg2 == NULL) { |
2f4c0a16 RD |
19216 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19217 | SWIG_fail; | |
44127b65 RD |
19218 | } |
19219 | { | |
19220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19221 | (arg1)->base_OnErase(*arg2); | |
19222 | ||
19223 | wxPyEndAllowThreads(__tstate); | |
19224 | if (PyErr_Occurred()) SWIG_fail; | |
19225 | } | |
19226 | Py_INCREF(Py_None); resultobj = Py_None; | |
19227 | return resultobj; | |
19228 | fail: | |
19229 | return NULL; | |
19230 | } | |
19231 | ||
19232 | ||
c370783e | 19233 | static PyObject *_wrap_PyDividedShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19234 | PyObject *resultobj; |
19235 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19236 | wxDC *arg2 = 0 ; | |
19237 | PyObject * obj0 = 0 ; | |
19238 | PyObject * obj1 = 0 ; | |
19239 | char *kwnames[] = { | |
19240 | (char *) "self",(char *) "dc", NULL | |
19241 | }; | |
19242 | ||
19243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19246 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19247 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19248 | SWIG_fail; | |
44127b65 | 19249 | if (arg2 == NULL) { |
2f4c0a16 RD |
19250 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19251 | SWIG_fail; | |
44127b65 RD |
19252 | } |
19253 | { | |
19254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19255 | (arg1)->base_OnEraseContents(*arg2); | |
19256 | ||
19257 | wxPyEndAllowThreads(__tstate); | |
19258 | if (PyErr_Occurred()) SWIG_fail; | |
19259 | } | |
19260 | Py_INCREF(Py_None); resultobj = Py_None; | |
19261 | return resultobj; | |
19262 | fail: | |
19263 | return NULL; | |
19264 | } | |
19265 | ||
19266 | ||
c370783e | 19267 | static PyObject *_wrap_PyDividedShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19268 | PyObject *resultobj; |
19269 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19270 | wxDC *arg2 = 0 ; | |
19271 | PyObject * obj0 = 0 ; | |
19272 | PyObject * obj1 = 0 ; | |
19273 | char *kwnames[] = { | |
19274 | (char *) "self",(char *) "dc", NULL | |
19275 | }; | |
19276 | ||
19277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19280 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19281 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19282 | SWIG_fail; | |
44127b65 | 19283 | if (arg2 == NULL) { |
2f4c0a16 RD |
19284 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19285 | SWIG_fail; | |
44127b65 RD |
19286 | } |
19287 | { | |
19288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19289 | (arg1)->base_OnHighlight(*arg2); | |
19290 | ||
19291 | wxPyEndAllowThreads(__tstate); | |
19292 | if (PyErr_Occurred()) SWIG_fail; | |
19293 | } | |
19294 | Py_INCREF(Py_None); resultobj = Py_None; | |
19295 | return resultobj; | |
19296 | fail: | |
19297 | return NULL; | |
19298 | } | |
19299 | ||
19300 | ||
c370783e | 19301 | static PyObject *_wrap_PyDividedShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19302 | PyObject *resultobj; |
19303 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19304 | double arg2 ; | |
19305 | double arg3 ; | |
19306 | int arg4 = (int) 0 ; | |
19307 | int arg5 = (int) 0 ; | |
19308 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19309 | PyObject * obj1 = 0 ; |
19310 | PyObject * obj2 = 0 ; | |
19311 | PyObject * obj3 = 0 ; | |
19312 | PyObject * obj4 = 0 ; | |
44127b65 RD |
19313 | char *kwnames[] = { |
19314 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19315 | }; | |
19316 | ||
8edf1c75 | 19317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
19318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19320 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 19321 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19322 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19323 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19324 | if (obj3) { |
c370783e | 19325 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 19326 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
19327 | } |
19328 | if (obj4) { | |
c370783e | 19329 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 19330 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19331 | } |
44127b65 RD |
19332 | { |
19333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19334 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
19335 | ||
19336 | wxPyEndAllowThreads(__tstate); | |
19337 | if (PyErr_Occurred()) SWIG_fail; | |
19338 | } | |
19339 | Py_INCREF(Py_None); resultobj = Py_None; | |
19340 | return resultobj; | |
19341 | fail: | |
19342 | return NULL; | |
19343 | } | |
19344 | ||
19345 | ||
c370783e | 19346 | static PyObject *_wrap_PyDividedShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19347 | PyObject *resultobj; |
19348 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19349 | double arg2 ; | |
19350 | double arg3 ; | |
19351 | int arg4 = (int) 0 ; | |
19352 | int arg5 = (int) 0 ; | |
19353 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19354 | PyObject * obj1 = 0 ; |
19355 | PyObject * obj2 = 0 ; | |
19356 | PyObject * obj3 = 0 ; | |
19357 | PyObject * obj4 = 0 ; | |
44127b65 RD |
19358 | char *kwnames[] = { |
19359 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19360 | }; | |
19361 | ||
8edf1c75 | 19362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
19363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19365 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 19366 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19367 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19368 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19369 | if (obj3) { |
c370783e | 19370 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 19371 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
19372 | } |
19373 | if (obj4) { | |
c370783e | 19374 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 19375 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19376 | } |
44127b65 RD |
19377 | { |
19378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19379 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
19380 | ||
19381 | wxPyEndAllowThreads(__tstate); | |
19382 | if (PyErr_Occurred()) SWIG_fail; | |
19383 | } | |
19384 | Py_INCREF(Py_None); resultobj = Py_None; | |
19385 | return resultobj; | |
19386 | fail: | |
19387 | return NULL; | |
19388 | } | |
19389 | ||
19390 | ||
c370783e | 19391 | static PyObject *_wrap_PyDividedShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19392 | PyObject *resultobj; |
19393 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19394 | double arg2 ; | |
19395 | double arg3 ; | |
19396 | int arg4 = (int) 0 ; | |
19397 | int arg5 = (int) 0 ; | |
19398 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19399 | PyObject * obj1 = 0 ; |
19400 | PyObject * obj2 = 0 ; | |
19401 | PyObject * obj3 = 0 ; | |
19402 | PyObject * obj4 = 0 ; | |
44127b65 RD |
19403 | char *kwnames[] = { |
19404 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19405 | }; | |
19406 | ||
8edf1c75 | 19407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
19408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19410 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 19411 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19412 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19413 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19414 | if (obj3) { |
c370783e | 19415 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 19416 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
19417 | } |
19418 | if (obj4) { | |
c370783e | 19419 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 19420 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19421 | } |
44127b65 RD |
19422 | { |
19423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19424 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
19425 | ||
19426 | wxPyEndAllowThreads(__tstate); | |
19427 | if (PyErr_Occurred()) SWIG_fail; | |
19428 | } | |
19429 | Py_INCREF(Py_None); resultobj = Py_None; | |
19430 | return resultobj; | |
19431 | fail: | |
19432 | return NULL; | |
19433 | } | |
19434 | ||
19435 | ||
c370783e | 19436 | static PyObject *_wrap_PyDividedShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19437 | PyObject *resultobj; |
19438 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19439 | double arg2 ; | |
19440 | double arg3 ; | |
19441 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19442 | PyObject * obj1 = 0 ; |
19443 | PyObject * obj2 = 0 ; | |
44127b65 RD |
19444 | char *kwnames[] = { |
19445 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19446 | }; | |
19447 | ||
8edf1c75 | 19448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDividedShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
19449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19451 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 19452 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19453 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19454 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
19455 | { |
19456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19457 | (arg1)->base_OnSize(arg2,arg3); | |
19458 | ||
19459 | wxPyEndAllowThreads(__tstate); | |
19460 | if (PyErr_Occurred()) SWIG_fail; | |
19461 | } | |
19462 | Py_INCREF(Py_None); resultobj = Py_None; | |
19463 | return resultobj; | |
19464 | fail: | |
19465 | return NULL; | |
19466 | } | |
19467 | ||
19468 | ||
c370783e | 19469 | static PyObject *_wrap_PyDividedShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19470 | PyObject *resultobj; |
19471 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19472 | wxDC *arg2 = 0 ; | |
19473 | double arg3 ; | |
19474 | double arg4 ; | |
19475 | double arg5 ; | |
19476 | double arg6 ; | |
19477 | bool arg7 = (bool) True ; | |
19478 | bool result; | |
19479 | PyObject * obj0 = 0 ; | |
19480 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
19481 | PyObject * obj2 = 0 ; |
19482 | PyObject * obj3 = 0 ; | |
19483 | PyObject * obj4 = 0 ; | |
19484 | PyObject * obj5 = 0 ; | |
44127b65 RD |
19485 | PyObject * obj6 = 0 ; |
19486 | char *kwnames[] = { | |
19487 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
19488 | }; | |
19489 | ||
8edf1c75 | 19490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDividedShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
19491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19493 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19494 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19495 | SWIG_fail; | |
44127b65 | 19496 | if (arg2 == NULL) { |
2f4c0a16 RD |
19497 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19498 | SWIG_fail; | |
19499 | } | |
c370783e | 19500 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19501 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19502 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 19503 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19504 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 19505 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19506 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 19507 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 19508 | if (obj6) { |
c370783e | 19509 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 19510 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
19511 | } |
19512 | { | |
19513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19514 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
19515 | ||
19516 | wxPyEndAllowThreads(__tstate); | |
19517 | if (PyErr_Occurred()) SWIG_fail; | |
19518 | } | |
fbc46b20 RD |
19519 | { |
19520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19521 | } | |
44127b65 RD |
19522 | return resultobj; |
19523 | fail: | |
19524 | return NULL; | |
19525 | } | |
19526 | ||
19527 | ||
c370783e | 19528 | static PyObject *_wrap_PyDividedShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19529 | PyObject *resultobj; |
19530 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19531 | wxDC *arg2 = 0 ; | |
19532 | double arg3 ; | |
19533 | double arg4 ; | |
19534 | double arg5 ; | |
19535 | double arg6 ; | |
19536 | bool arg7 = (bool) True ; | |
19537 | PyObject * obj0 = 0 ; | |
19538 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
19539 | PyObject * obj2 = 0 ; |
19540 | PyObject * obj3 = 0 ; | |
19541 | PyObject * obj4 = 0 ; | |
19542 | PyObject * obj5 = 0 ; | |
44127b65 RD |
19543 | PyObject * obj6 = 0 ; |
19544 | char *kwnames[] = { | |
19545 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
19546 | }; | |
19547 | ||
8edf1c75 | 19548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDividedShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
19549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19552 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19553 | SWIG_fail; | |
44127b65 | 19554 | if (arg2 == NULL) { |
2f4c0a16 RD |
19555 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19556 | SWIG_fail; | |
19557 | } | |
c370783e | 19558 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19559 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19560 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 19561 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19562 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 19563 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19564 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 19565 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 19566 | if (obj6) { |
c370783e | 19567 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 19568 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
19569 | } |
19570 | { | |
19571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19572 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
19573 | ||
19574 | wxPyEndAllowThreads(__tstate); | |
19575 | if (PyErr_Occurred()) SWIG_fail; | |
19576 | } | |
19577 | Py_INCREF(Py_None); resultobj = Py_None; | |
19578 | return resultobj; | |
19579 | fail: | |
19580 | return NULL; | |
19581 | } | |
19582 | ||
19583 | ||
c370783e | 19584 | static PyObject *_wrap_PyDividedShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19585 | PyObject *resultobj; |
19586 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19587 | bool arg2 ; | |
19588 | double arg3 ; | |
19589 | double arg4 ; | |
19590 | int arg5 = (int) 0 ; | |
19591 | int arg6 = (int) 0 ; | |
19592 | PyObject * obj0 = 0 ; | |
19593 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
19594 | PyObject * obj2 = 0 ; |
19595 | PyObject * obj3 = 0 ; | |
19596 | PyObject * obj4 = 0 ; | |
19597 | PyObject * obj5 = 0 ; | |
44127b65 RD |
19598 | char *kwnames[] = { |
19599 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19600 | }; | |
19601 | ||
8edf1c75 | 19602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDividedShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
19603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19605 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 19606 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19607 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19608 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19609 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 19610 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19611 | if (obj4) { |
c370783e | 19612 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 19613 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
19614 | } |
19615 | if (obj5) { | |
c370783e | 19616 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 19617 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19618 | } |
44127b65 RD |
19619 | { |
19620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19621 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
19622 | ||
19623 | wxPyEndAllowThreads(__tstate); | |
19624 | if (PyErr_Occurred()) SWIG_fail; | |
19625 | } | |
19626 | Py_INCREF(Py_None); resultobj = Py_None; | |
19627 | return resultobj; | |
19628 | fail: | |
19629 | return NULL; | |
19630 | } | |
19631 | ||
19632 | ||
c370783e | 19633 | static PyObject *_wrap_PyDividedShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19634 | PyObject *resultobj; |
19635 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19636 | double arg2 ; | |
19637 | double arg3 ; | |
19638 | int arg4 = (int) 0 ; | |
19639 | int arg5 = (int) 0 ; | |
19640 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19641 | PyObject * obj1 = 0 ; |
19642 | PyObject * obj2 = 0 ; | |
19643 | PyObject * obj3 = 0 ; | |
19644 | PyObject * obj4 = 0 ; | |
44127b65 RD |
19645 | char *kwnames[] = { |
19646 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19647 | }; | |
19648 | ||
8edf1c75 | 19649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
19650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19652 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 19653 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19654 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19655 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19656 | if (obj3) { |
c370783e | 19657 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 19658 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
19659 | } |
19660 | if (obj4) { | |
c370783e | 19661 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 19662 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19663 | } |
44127b65 RD |
19664 | { |
19665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19666 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
19667 | ||
19668 | wxPyEndAllowThreads(__tstate); | |
19669 | if (PyErr_Occurred()) SWIG_fail; | |
19670 | } | |
19671 | Py_INCREF(Py_None); resultobj = Py_None; | |
19672 | return resultobj; | |
19673 | fail: | |
19674 | return NULL; | |
19675 | } | |
19676 | ||
19677 | ||
c370783e | 19678 | static PyObject *_wrap_PyDividedShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19679 | PyObject *resultobj; |
19680 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19681 | double arg2 ; | |
19682 | double arg3 ; | |
19683 | int arg4 = (int) 0 ; | |
19684 | int arg5 = (int) 0 ; | |
19685 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19686 | PyObject * obj1 = 0 ; |
19687 | PyObject * obj2 = 0 ; | |
19688 | PyObject * obj3 = 0 ; | |
19689 | PyObject * obj4 = 0 ; | |
44127b65 RD |
19690 | char *kwnames[] = { |
19691 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19692 | }; | |
19693 | ||
8edf1c75 | 19694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
19695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19697 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 19698 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19699 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19700 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19701 | if (obj3) { |
c370783e | 19702 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 19703 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
19704 | } |
19705 | if (obj4) { | |
c370783e | 19706 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 19707 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19708 | } |
44127b65 RD |
19709 | { |
19710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19711 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
19712 | ||
19713 | wxPyEndAllowThreads(__tstate); | |
19714 | if (PyErr_Occurred()) SWIG_fail; | |
19715 | } | |
19716 | Py_INCREF(Py_None); resultobj = Py_None; | |
19717 | return resultobj; | |
19718 | fail: | |
19719 | return NULL; | |
19720 | } | |
19721 | ||
19722 | ||
c370783e | 19723 | static PyObject *_wrap_PyDividedShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19724 | PyObject *resultobj; |
19725 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19726 | bool arg2 ; | |
19727 | double arg3 ; | |
19728 | double arg4 ; | |
19729 | int arg5 = (int) 0 ; | |
19730 | int arg6 = (int) 0 ; | |
19731 | PyObject * obj0 = 0 ; | |
19732 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
19733 | PyObject * obj2 = 0 ; |
19734 | PyObject * obj3 = 0 ; | |
19735 | PyObject * obj4 = 0 ; | |
19736 | PyObject * obj5 = 0 ; | |
44127b65 RD |
19737 | char *kwnames[] = { |
19738 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19739 | }; | |
19740 | ||
8edf1c75 | 19741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDividedShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
19742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19744 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 19745 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19746 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19747 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19748 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 19749 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19750 | if (obj4) { |
c370783e | 19751 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 19752 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
19753 | } |
19754 | if (obj5) { | |
c370783e | 19755 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 19756 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19757 | } |
44127b65 RD |
19758 | { |
19759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19760 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
19761 | ||
19762 | wxPyEndAllowThreads(__tstate); | |
19763 | if (PyErr_Occurred()) SWIG_fail; | |
19764 | } | |
19765 | Py_INCREF(Py_None); resultobj = Py_None; | |
19766 | return resultobj; | |
19767 | fail: | |
19768 | return NULL; | |
19769 | } | |
19770 | ||
19771 | ||
c370783e | 19772 | static PyObject *_wrap_PyDividedShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19773 | PyObject *resultobj; |
19774 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19775 | double arg2 ; | |
19776 | double arg3 ; | |
19777 | int arg4 = (int) 0 ; | |
19778 | int arg5 = (int) 0 ; | |
19779 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19780 | PyObject * obj1 = 0 ; |
19781 | PyObject * obj2 = 0 ; | |
19782 | PyObject * obj3 = 0 ; | |
19783 | PyObject * obj4 = 0 ; | |
44127b65 RD |
19784 | char *kwnames[] = { |
19785 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19786 | }; | |
19787 | ||
8edf1c75 | 19788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
19789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19791 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 19792 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19793 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19794 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19795 | if (obj3) { |
c370783e | 19796 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 19797 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
19798 | } |
19799 | if (obj4) { | |
c370783e | 19800 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 19801 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19802 | } |
44127b65 RD |
19803 | { |
19804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19805 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
19806 | ||
19807 | wxPyEndAllowThreads(__tstate); | |
19808 | if (PyErr_Occurred()) SWIG_fail; | |
19809 | } | |
19810 | Py_INCREF(Py_None); resultobj = Py_None; | |
19811 | return resultobj; | |
19812 | fail: | |
19813 | return NULL; | |
19814 | } | |
19815 | ||
19816 | ||
c370783e | 19817 | static PyObject *_wrap_PyDividedShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19818 | PyObject *resultobj; |
19819 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19820 | double arg2 ; | |
19821 | double arg3 ; | |
19822 | int arg4 = (int) 0 ; | |
19823 | int arg5 = (int) 0 ; | |
19824 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19825 | PyObject * obj1 = 0 ; |
19826 | PyObject * obj2 = 0 ; | |
19827 | PyObject * obj3 = 0 ; | |
19828 | PyObject * obj4 = 0 ; | |
44127b65 RD |
19829 | char *kwnames[] = { |
19830 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
19831 | }; | |
19832 | ||
8edf1c75 | 19833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDividedShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
19834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19836 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 19837 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19838 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19839 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19840 | if (obj3) { |
c370783e | 19841 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 19842 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
19843 | } |
19844 | if (obj4) { | |
c370783e | 19845 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 19846 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 19847 | } |
44127b65 RD |
19848 | { |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | Py_INCREF(Py_None); resultobj = Py_None; | |
19856 | return resultobj; | |
19857 | fail: | |
19858 | return NULL; | |
19859 | } | |
19860 | ||
19861 | ||
c370783e | 19862 | static PyObject *_wrap_PyDividedShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19863 | PyObject *resultobj; |
19864 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19865 | wxDC *arg2 = 0 ; | |
19866 | double arg3 ; | |
19867 | double arg4 ; | |
19868 | double arg5 ; | |
19869 | double arg6 ; | |
19870 | PyObject * obj0 = 0 ; | |
19871 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
19872 | PyObject * obj2 = 0 ; |
19873 | PyObject * obj3 = 0 ; | |
19874 | PyObject * obj4 = 0 ; | |
19875 | PyObject * obj5 = 0 ; | |
44127b65 RD |
19876 | char *kwnames[] = { |
19877 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
19878 | }; | |
19879 | ||
8edf1c75 | 19880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyDividedShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
19881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19883 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19884 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19885 | SWIG_fail; | |
44127b65 | 19886 | if (arg2 == NULL) { |
2f4c0a16 RD |
19887 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19888 | SWIG_fail; | |
8edf1c75 | 19889 | } |
c370783e | 19890 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 19891 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19892 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 19893 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19894 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 19895 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 19896 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 19897 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
19898 | { |
19899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19900 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
19901 | ||
19902 | wxPyEndAllowThreads(__tstate); | |
19903 | if (PyErr_Occurred()) SWIG_fail; | |
19904 | } | |
19905 | Py_INCREF(Py_None); resultobj = Py_None; | |
19906 | return resultobj; | |
19907 | fail: | |
19908 | return NULL; | |
19909 | } | |
19910 | ||
19911 | ||
c370783e | 19912 | static PyObject *_wrap_PyDividedShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19913 | PyObject *resultobj; |
19914 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19915 | wxDC *arg2 = 0 ; | |
19916 | PyObject * obj0 = 0 ; | |
19917 | PyObject * obj1 = 0 ; | |
19918 | char *kwnames[] = { | |
19919 | (char *) "self",(char *) "dc", NULL | |
19920 | }; | |
19921 | ||
19922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19927 | SWIG_fail; | |
44127b65 | 19928 | if (arg2 == NULL) { |
2f4c0a16 RD |
19929 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19930 | SWIG_fail; | |
44127b65 RD |
19931 | } |
19932 | { | |
19933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19934 | (arg1)->base_OnDrawControlPoints(*arg2); | |
19935 | ||
19936 | wxPyEndAllowThreads(__tstate); | |
19937 | if (PyErr_Occurred()) SWIG_fail; | |
19938 | } | |
19939 | Py_INCREF(Py_None); resultobj = Py_None; | |
19940 | return resultobj; | |
19941 | fail: | |
19942 | return NULL; | |
19943 | } | |
19944 | ||
19945 | ||
c370783e | 19946 | static PyObject *_wrap_PyDividedShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19947 | PyObject *resultobj; |
19948 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19949 | wxDC *arg2 = 0 ; | |
19950 | PyObject * obj0 = 0 ; | |
19951 | PyObject * obj1 = 0 ; | |
19952 | char *kwnames[] = { | |
19953 | (char *) "self",(char *) "dc", NULL | |
19954 | }; | |
19955 | ||
19956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDividedShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19961 | SWIG_fail; | |
44127b65 | 19962 | if (arg2 == NULL) { |
2f4c0a16 RD |
19963 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19964 | SWIG_fail; | |
44127b65 RD |
19965 | } |
19966 | { | |
19967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19968 | (arg1)->base_OnEraseControlPoints(*arg2); | |
19969 | ||
19970 | wxPyEndAllowThreads(__tstate); | |
19971 | if (PyErr_Occurred()) SWIG_fail; | |
19972 | } | |
19973 | Py_INCREF(Py_None); resultobj = Py_None; | |
19974 | return resultobj; | |
19975 | fail: | |
19976 | return NULL; | |
19977 | } | |
19978 | ||
19979 | ||
c370783e | 19980 | static PyObject *_wrap_PyDividedShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
19981 | PyObject *resultobj; |
19982 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
19983 | wxDC *arg2 = 0 ; | |
19984 | bool arg3 = (bool) True ; | |
19985 | PyObject * obj0 = 0 ; | |
19986 | PyObject * obj1 = 0 ; | |
19987 | PyObject * obj2 = 0 ; | |
19988 | char *kwnames[] = { | |
19989 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
19990 | }; | |
19991 | ||
19992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDividedShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
19994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
19996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19997 | SWIG_fail; | |
44127b65 | 19998 | if (arg2 == NULL) { |
2f4c0a16 RD |
19999 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20000 | SWIG_fail; | |
44127b65 RD |
20001 | } |
20002 | if (obj2) { | |
c370783e | 20003 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 20004 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20005 | } |
20006 | { | |
20007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20008 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
20009 | ||
20010 | wxPyEndAllowThreads(__tstate); | |
20011 | if (PyErr_Occurred()) SWIG_fail; | |
20012 | } | |
20013 | Py_INCREF(Py_None); resultobj = Py_None; | |
20014 | return resultobj; | |
20015 | fail: | |
20016 | return NULL; | |
20017 | } | |
20018 | ||
20019 | ||
c370783e | 20020 | static PyObject *_wrap_PyDividedShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20021 | PyObject *resultobj; |
20022 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20023 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
20024 | bool arg3 ; | |
20025 | double arg4 ; | |
20026 | double arg5 ; | |
20027 | int arg6 = (int) 0 ; | |
20028 | int arg7 = (int) 0 ; | |
20029 | PyObject * obj0 = 0 ; | |
20030 | PyObject * obj1 = 0 ; | |
20031 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
20032 | PyObject * obj3 = 0 ; |
20033 | PyObject * obj4 = 0 ; | |
20034 | PyObject * obj5 = 0 ; | |
20035 | PyObject * obj6 = 0 ; | |
44127b65 RD |
20036 | char *kwnames[] = { |
20037 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
20038 | }; | |
20039 | ||
8edf1c75 | 20040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyDividedShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
20041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
20042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
20044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20045 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 20046 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20047 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 20048 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20049 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 20050 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 20051 | if (obj5) { |
c370783e | 20052 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 20053 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
20054 | } |
20055 | if (obj6) { | |
c370783e | 20056 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 20057 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 20058 | } |
44127b65 RD |
20059 | { |
20060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20061 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
20062 | ||
20063 | wxPyEndAllowThreads(__tstate); | |
20064 | if (PyErr_Occurred()) SWIG_fail; | |
20065 | } | |
20066 | Py_INCREF(Py_None); resultobj = Py_None; | |
20067 | return resultobj; | |
20068 | fail: | |
20069 | return NULL; | |
20070 | } | |
20071 | ||
20072 | ||
c370783e | 20073 | static PyObject *_wrap_PyDividedShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20074 | PyObject *resultobj; |
20075 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20076 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
20077 | double arg3 ; | |
20078 | double arg4 ; | |
20079 | int arg5 = (int) 0 ; | |
20080 | int arg6 = (int) 0 ; | |
20081 | PyObject * obj0 = 0 ; | |
20082 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
20083 | PyObject * obj2 = 0 ; |
20084 | PyObject * obj3 = 0 ; | |
20085 | PyObject * obj4 = 0 ; | |
20086 | PyObject * obj5 = 0 ; | |
44127b65 RD |
20087 | char *kwnames[] = { |
20088 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
20089 | }; | |
20090 | ||
8edf1c75 | 20091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDividedShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
20092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
20093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20094 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
20095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20096 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 20097 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20098 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 20099 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 20100 | if (obj4) { |
c370783e | 20101 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 20102 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
20103 | } |
20104 | if (obj5) { | |
c370783e | 20105 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 20106 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 20107 | } |
44127b65 RD |
20108 | { |
20109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20110 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
20111 | ||
20112 | wxPyEndAllowThreads(__tstate); | |
20113 | if (PyErr_Occurred()) SWIG_fail; | |
20114 | } | |
20115 | Py_INCREF(Py_None); resultobj = Py_None; | |
20116 | return resultobj; | |
20117 | fail: | |
20118 | return NULL; | |
20119 | } | |
20120 | ||
20121 | ||
c370783e | 20122 | static PyObject *_wrap_PyDividedShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20123 | PyObject *resultobj; |
20124 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20125 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
20126 | double arg3 ; | |
20127 | double arg4 ; | |
20128 | int arg5 = (int) 0 ; | |
20129 | int arg6 = (int) 0 ; | |
20130 | PyObject * obj0 = 0 ; | |
20131 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
20132 | PyObject * obj2 = 0 ; |
20133 | PyObject * obj3 = 0 ; | |
20134 | PyObject * obj4 = 0 ; | |
20135 | PyObject * obj5 = 0 ; | |
44127b65 RD |
20136 | char *kwnames[] = { |
20137 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
20138 | }; | |
20139 | ||
8edf1c75 | 20140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDividedShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
20141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
20142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
20144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20145 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 20146 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20147 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 RD |
20148 | if (PyErr_Occurred()) SWIG_fail; |
20149 | if (obj4) { | |
c370783e | 20150 | arg5 = (int)SWIG_As_int(obj4); |
8edf1c75 RD |
20151 | if (PyErr_Occurred()) SWIG_fail; |
20152 | } | |
2f4c0a16 | 20153 | if (obj5) { |
c370783e | 20154 | arg6 = (int)SWIG_As_int(obj5); |
8edf1c75 RD |
20155 | if (PyErr_Occurred()) SWIG_fail; |
20156 | } | |
44127b65 RD |
20157 | { |
20158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20159 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
20160 | ||
20161 | wxPyEndAllowThreads(__tstate); | |
20162 | if (PyErr_Occurred()) SWIG_fail; | |
20163 | } | |
20164 | Py_INCREF(Py_None); resultobj = Py_None; | |
20165 | return resultobj; | |
20166 | fail: | |
20167 | return NULL; | |
20168 | } | |
20169 | ||
20170 | ||
c370783e | 20171 | static PyObject *_wrap_PyDividedShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20172 | PyObject *resultobj; |
20173 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20174 | double arg2 ; | |
20175 | double arg3 ; | |
20176 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20177 | PyObject * obj1 = 0 ; |
20178 | PyObject * obj2 = 0 ; | |
44127b65 RD |
20179 | char *kwnames[] = { |
20180 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20181 | }; | |
20182 | ||
8edf1c75 | 20183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDividedShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
20185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20186 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 20187 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20188 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 20189 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20190 | { |
20191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20192 | (arg1)->base_OnBeginSize(arg2,arg3); | |
20193 | ||
20194 | wxPyEndAllowThreads(__tstate); | |
20195 | if (PyErr_Occurred()) SWIG_fail; | |
20196 | } | |
20197 | Py_INCREF(Py_None); resultobj = Py_None; | |
20198 | return resultobj; | |
20199 | fail: | |
20200 | return NULL; | |
20201 | } | |
20202 | ||
20203 | ||
c370783e | 20204 | static PyObject *_wrap_PyDividedShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20205 | PyObject *resultobj; |
20206 | wxPyDividedShape *arg1 = (wxPyDividedShape *) 0 ; | |
20207 | double arg2 ; | |
20208 | double arg3 ; | |
20209 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20210 | PyObject * obj1 = 0 ; |
20211 | PyObject * obj2 = 0 ; | |
44127b65 RD |
20212 | char *kwnames[] = { |
20213 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20214 | }; | |
20215 | ||
8edf1c75 | 20216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDividedShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDividedShape, |
20218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20219 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 20220 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20221 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 20222 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20223 | { |
20224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20225 | (arg1)->base_OnEndSize(arg2,arg3); | |
20226 | ||
20227 | wxPyEndAllowThreads(__tstate); | |
20228 | if (PyErr_Occurred()) SWIG_fail; | |
20229 | } | |
20230 | Py_INCREF(Py_None); resultobj = Py_None; | |
20231 | return resultobj; | |
20232 | fail: | |
20233 | return NULL; | |
20234 | } | |
20235 | ||
20236 | ||
c370783e | 20237 | static PyObject * PyDividedShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
20238 | PyObject *obj; |
20239 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20240 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDividedShape, obj); | |
20241 | Py_INCREF(obj); | |
20242 | return Py_BuildValue((char *)""); | |
20243 | } | |
c370783e | 20244 | static PyObject *_wrap_new_PyDivisionShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20245 | PyObject *resultobj; |
20246 | wxPyDivisionShape *result; | |
20247 | char *kwnames[] = { | |
20248 | NULL | |
20249 | }; | |
20250 | ||
20251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyDivisionShape",kwnames)) goto fail; | |
20252 | { | |
20253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20254 | result = (wxPyDivisionShape *)new wxPyDivisionShape(); | |
20255 | ||
20256 | wxPyEndAllowThreads(__tstate); | |
20257 | if (PyErr_Occurred()) SWIG_fail; | |
20258 | } | |
b0f7404b | 20259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDivisionShape, 1); |
44127b65 RD |
20260 | return resultobj; |
20261 | fail: | |
20262 | return NULL; | |
20263 | } | |
20264 | ||
20265 | ||
c370783e | 20266 | static PyObject *_wrap_PyDivisionShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20267 | PyObject *resultobj; |
20268 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20269 | PyObject *arg2 = (PyObject *) 0 ; | |
20270 | PyObject *arg3 = (PyObject *) 0 ; | |
20271 | PyObject * obj0 = 0 ; | |
20272 | PyObject * obj1 = 0 ; | |
20273 | PyObject * obj2 = 0 ; | |
20274 | char *kwnames[] = { | |
20275 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20276 | }; | |
20277 | ||
20278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
20279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20281 | arg2 = obj1; |
20282 | arg3 = obj2; | |
20283 | { | |
20284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20285 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20286 | ||
20287 | wxPyEndAllowThreads(__tstate); | |
20288 | if (PyErr_Occurred()) SWIG_fail; | |
20289 | } | |
20290 | Py_INCREF(Py_None); resultobj = Py_None; | |
20291 | return resultobj; | |
20292 | fail: | |
20293 | return NULL; | |
20294 | } | |
20295 | ||
20296 | ||
c370783e | 20297 | static PyObject *_wrap_PyDivisionShape_AdjustBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20298 | PyObject *resultobj; |
20299 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20300 | double arg2 ; | |
20301 | bool arg3 ; | |
20302 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20303 | PyObject * obj1 = 0 ; |
44127b65 RD |
20304 | PyObject * obj2 = 0 ; |
20305 | char *kwnames[] = { | |
20306 | (char *) "self",(char *) "bottom",(char *) "test", NULL | |
20307 | }; | |
20308 | ||
8edf1c75 | 20309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_AdjustBottom",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20312 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 20313 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20314 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 20315 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20316 | { |
20317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20318 | (arg1)->AdjustBottom(arg2,arg3); | |
20319 | ||
20320 | wxPyEndAllowThreads(__tstate); | |
20321 | if (PyErr_Occurred()) SWIG_fail; | |
20322 | } | |
20323 | Py_INCREF(Py_None); resultobj = Py_None; | |
20324 | return resultobj; | |
20325 | fail: | |
20326 | return NULL; | |
20327 | } | |
20328 | ||
20329 | ||
c370783e | 20330 | static PyObject *_wrap_PyDivisionShape_AdjustLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20331 | PyObject *resultobj; |
20332 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20333 | double arg2 ; | |
20334 | bool arg3 ; | |
20335 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20336 | PyObject * obj1 = 0 ; |
44127b65 RD |
20337 | PyObject * obj2 = 0 ; |
20338 | char *kwnames[] = { | |
20339 | (char *) "self",(char *) "left",(char *) "test", NULL | |
20340 | }; | |
20341 | ||
8edf1c75 | 20342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_AdjustLeft",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20345 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 20346 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20347 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 20348 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20349 | { |
20350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20351 | (arg1)->AdjustLeft(arg2,arg3); | |
20352 | ||
20353 | wxPyEndAllowThreads(__tstate); | |
20354 | if (PyErr_Occurred()) SWIG_fail; | |
20355 | } | |
20356 | Py_INCREF(Py_None); resultobj = Py_None; | |
20357 | return resultobj; | |
20358 | fail: | |
20359 | return NULL; | |
20360 | } | |
20361 | ||
20362 | ||
c370783e | 20363 | static PyObject *_wrap_PyDivisionShape_AdjustRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20364 | PyObject *resultobj; |
20365 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20366 | double arg2 ; | |
20367 | bool arg3 ; | |
20368 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20369 | PyObject * obj1 = 0 ; |
44127b65 RD |
20370 | PyObject * obj2 = 0 ; |
20371 | char *kwnames[] = { | |
20372 | (char *) "self",(char *) "right",(char *) "test", NULL | |
20373 | }; | |
20374 | ||
8edf1c75 | 20375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_AdjustRight",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20378 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 20379 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20380 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 20381 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20382 | { |
20383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20384 | (arg1)->AdjustRight(arg2,arg3); | |
20385 | ||
20386 | wxPyEndAllowThreads(__tstate); | |
20387 | if (PyErr_Occurred()) SWIG_fail; | |
20388 | } | |
20389 | Py_INCREF(Py_None); resultobj = Py_None; | |
20390 | return resultobj; | |
20391 | fail: | |
20392 | return NULL; | |
20393 | } | |
20394 | ||
20395 | ||
c370783e | 20396 | static PyObject *_wrap_PyDivisionShape_AdjustTop(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20397 | PyObject *resultobj; |
20398 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20399 | double arg2 ; | |
20400 | bool arg3 ; | |
20401 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20402 | PyObject * obj1 = 0 ; |
44127b65 RD |
20403 | PyObject * obj2 = 0 ; |
20404 | char *kwnames[] = { | |
20405 | (char *) "self",(char *) "top",(char *) "test", NULL | |
20406 | }; | |
20407 | ||
8edf1c75 | 20408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_AdjustTop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20411 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 20412 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20413 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 20414 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20415 | { |
20416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20417 | (arg1)->AdjustTop(arg2,arg3); | |
20418 | ||
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | Py_INCREF(Py_None); resultobj = Py_None; | |
20423 | return resultobj; | |
20424 | fail: | |
20425 | return NULL; | |
20426 | } | |
20427 | ||
20428 | ||
c370783e | 20429 | static PyObject *_wrap_PyDivisionShape_Divide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20430 | PyObject *resultobj; |
20431 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20432 | int arg2 ; | |
20433 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20434 | PyObject * obj1 = 0 ; |
44127b65 RD |
20435 | char *kwnames[] = { |
20436 | (char *) "self",(char *) "direction", NULL | |
20437 | }; | |
20438 | ||
8edf1c75 | 20439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_Divide",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20442 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 20443 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20444 | { |
20445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20446 | (arg1)->Divide(arg2); | |
20447 | ||
20448 | wxPyEndAllowThreads(__tstate); | |
20449 | if (PyErr_Occurred()) SWIG_fail; | |
20450 | } | |
20451 | Py_INCREF(Py_None); resultobj = Py_None; | |
20452 | return resultobj; | |
20453 | fail: | |
20454 | return NULL; | |
20455 | } | |
20456 | ||
20457 | ||
c370783e | 20458 | static PyObject *_wrap_PyDivisionShape_EditEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20459 | PyObject *resultobj; |
20460 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20461 | int arg2 ; | |
20462 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20463 | PyObject * obj1 = 0 ; |
44127b65 RD |
20464 | char *kwnames[] = { |
20465 | (char *) "self",(char *) "side", NULL | |
20466 | }; | |
20467 | ||
8edf1c75 | 20468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_EditEdge",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20471 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 20472 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20473 | { |
20474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20475 | (arg1)->EditEdge(arg2); | |
20476 | ||
20477 | wxPyEndAllowThreads(__tstate); | |
20478 | if (PyErr_Occurred()) SWIG_fail; | |
20479 | } | |
20480 | Py_INCREF(Py_None); resultobj = Py_None; | |
20481 | return resultobj; | |
20482 | fail: | |
20483 | return NULL; | |
20484 | } | |
20485 | ||
20486 | ||
c370783e | 20487 | static PyObject *_wrap_PyDivisionShape_GetBottomSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20488 | PyObject *resultobj; |
20489 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20490 | wxPyDivisionShape *result; | |
20491 | PyObject * obj0 = 0 ; | |
20492 | char *kwnames[] = { | |
20493 | (char *) "self", NULL | |
20494 | }; | |
20495 | ||
20496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetBottomSide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20499 | { |
20500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20501 | result = (wxPyDivisionShape *)(arg1)->GetBottomSide(); | |
20502 | ||
20503 | wxPyEndAllowThreads(__tstate); | |
20504 | if (PyErr_Occurred()) SWIG_fail; | |
20505 | } | |
20506 | { | |
412d302d | 20507 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
20508 | } |
20509 | return resultobj; | |
20510 | fail: | |
20511 | return NULL; | |
20512 | } | |
20513 | ||
20514 | ||
c370783e | 20515 | static PyObject *_wrap_PyDivisionShape_GetHandleSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20516 | PyObject *resultobj; |
20517 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20518 | int result; | |
20519 | PyObject * obj0 = 0 ; | |
20520 | char *kwnames[] = { | |
20521 | (char *) "self", NULL | |
20522 | }; | |
20523 | ||
20524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetHandleSide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20527 | { |
20528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20529 | result = (int)(arg1)->GetHandleSide(); | |
20530 | ||
20531 | wxPyEndAllowThreads(__tstate); | |
20532 | if (PyErr_Occurred()) SWIG_fail; | |
20533 | } | |
c370783e | 20534 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
20535 | return resultobj; |
20536 | fail: | |
20537 | return NULL; | |
20538 | } | |
20539 | ||
20540 | ||
c370783e | 20541 | static PyObject *_wrap_PyDivisionShape_GetLeftSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20542 | PyObject *resultobj; |
20543 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20544 | wxPyDivisionShape *result; | |
20545 | PyObject * obj0 = 0 ; | |
20546 | char *kwnames[] = { | |
20547 | (char *) "self", NULL | |
20548 | }; | |
20549 | ||
20550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetLeftSide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20553 | { |
20554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20555 | result = (wxPyDivisionShape *)(arg1)->GetLeftSide(); | |
20556 | ||
20557 | wxPyEndAllowThreads(__tstate); | |
20558 | if (PyErr_Occurred()) SWIG_fail; | |
20559 | } | |
20560 | { | |
412d302d | 20561 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
20562 | } |
20563 | return resultobj; | |
20564 | fail: | |
20565 | return NULL; | |
20566 | } | |
20567 | ||
20568 | ||
c370783e | 20569 | static PyObject *_wrap_PyDivisionShape_GetLeftSideColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20570 | PyObject *resultobj; |
20571 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20572 | wxString result; | |
20573 | PyObject * obj0 = 0 ; | |
20574 | char *kwnames[] = { | |
20575 | (char *) "self", NULL | |
20576 | }; | |
20577 | ||
20578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetLeftSideColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20581 | { |
20582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20583 | result = (arg1)->GetLeftSideColour(); | |
20584 | ||
20585 | wxPyEndAllowThreads(__tstate); | |
20586 | if (PyErr_Occurred()) SWIG_fail; | |
20587 | } | |
20588 | { | |
20589 | #if wxUSE_UNICODE | |
20590 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20591 | #else | |
20592 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20593 | #endif | |
20594 | } | |
20595 | return resultobj; | |
20596 | fail: | |
20597 | return NULL; | |
20598 | } | |
20599 | ||
20600 | ||
c370783e | 20601 | static PyObject *_wrap_PyDivisionShape_GetLeftSidePen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20602 | PyObject *resultobj; |
20603 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20604 | wxPen *result; | |
20605 | PyObject * obj0 = 0 ; | |
20606 | char *kwnames[] = { | |
20607 | (char *) "self", NULL | |
20608 | }; | |
20609 | ||
20610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetLeftSidePen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20613 | { |
20614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20615 | result = (wxPen *)(arg1)->GetLeftSidePen(); | |
20616 | ||
20617 | wxPyEndAllowThreads(__tstate); | |
20618 | if (PyErr_Occurred()) SWIG_fail; | |
20619 | } | |
2f4c0a16 | 20620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
44127b65 RD |
20621 | return resultobj; |
20622 | fail: | |
20623 | return NULL; | |
20624 | } | |
20625 | ||
20626 | ||
c370783e | 20627 | static PyObject *_wrap_PyDivisionShape_GetRightSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20628 | PyObject *resultobj; |
20629 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20630 | wxPyDivisionShape *result; | |
20631 | PyObject * obj0 = 0 ; | |
20632 | char *kwnames[] = { | |
20633 | (char *) "self", NULL | |
20634 | }; | |
20635 | ||
20636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetRightSide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20639 | { |
20640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20641 | result = (wxPyDivisionShape *)(arg1)->GetRightSide(); | |
20642 | ||
20643 | wxPyEndAllowThreads(__tstate); | |
20644 | if (PyErr_Occurred()) SWIG_fail; | |
20645 | } | |
20646 | { | |
412d302d | 20647 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
20648 | } |
20649 | return resultobj; | |
20650 | fail: | |
20651 | return NULL; | |
20652 | } | |
20653 | ||
20654 | ||
c370783e | 20655 | static PyObject *_wrap_PyDivisionShape_GetTopSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20656 | PyObject *resultobj; |
20657 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20658 | wxPyDivisionShape *result; | |
20659 | PyObject * obj0 = 0 ; | |
20660 | char *kwnames[] = { | |
20661 | (char *) "self", NULL | |
20662 | }; | |
20663 | ||
20664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetTopSide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20667 | { |
20668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20669 | result = (wxPyDivisionShape *)(arg1)->GetTopSide(); | |
20670 | ||
20671 | wxPyEndAllowThreads(__tstate); | |
20672 | if (PyErr_Occurred()) SWIG_fail; | |
20673 | } | |
20674 | { | |
412d302d | 20675 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
20676 | } |
20677 | return resultobj; | |
20678 | fail: | |
20679 | return NULL; | |
20680 | } | |
20681 | ||
20682 | ||
c370783e | 20683 | static PyObject *_wrap_PyDivisionShape_GetTopSidePen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20684 | PyObject *resultobj; |
20685 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20686 | wxPen *result; | |
20687 | PyObject * obj0 = 0 ; | |
20688 | char *kwnames[] = { | |
20689 | (char *) "self", NULL | |
20690 | }; | |
20691 | ||
20692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_GetTopSidePen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20695 | { |
20696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20697 | result = (wxPen *)(arg1)->GetTopSidePen(); | |
20698 | ||
20699 | wxPyEndAllowThreads(__tstate); | |
20700 | if (PyErr_Occurred()) SWIG_fail; | |
20701 | } | |
2f4c0a16 | 20702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
44127b65 RD |
20703 | return resultobj; |
20704 | fail: | |
20705 | return NULL; | |
20706 | } | |
20707 | ||
20708 | ||
c370783e | 20709 | static PyObject *_wrap_PyDivisionShape_ResizeAdjoining(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20710 | PyObject *resultobj; |
20711 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20712 | int arg2 ; | |
20713 | double arg3 ; | |
20714 | bool arg4 ; | |
20715 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20716 | PyObject * obj1 = 0 ; |
20717 | PyObject * obj2 = 0 ; | |
44127b65 RD |
20718 | PyObject * obj3 = 0 ; |
20719 | char *kwnames[] = { | |
20720 | (char *) "self",(char *) "side",(char *) "newPos",(char *) "test", NULL | |
20721 | }; | |
20722 | ||
8edf1c75 | 20723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyDivisionShape_ResizeAdjoining",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
20724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20726 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 20727 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20728 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 20729 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20730 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 20731 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20732 | { |
20733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20734 | (arg1)->ResizeAdjoining(arg2,arg3,arg4); | |
20735 | ||
20736 | wxPyEndAllowThreads(__tstate); | |
20737 | if (PyErr_Occurred()) SWIG_fail; | |
20738 | } | |
20739 | Py_INCREF(Py_None); resultobj = Py_None; | |
20740 | return resultobj; | |
20741 | fail: | |
20742 | return NULL; | |
20743 | } | |
20744 | ||
20745 | ||
c370783e | 20746 | static PyObject *_wrap_PyDivisionShape_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20747 | PyObject *resultobj; |
20748 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20749 | double arg2 ; | |
20750 | double arg3 ; | |
20751 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20752 | PyObject * obj1 = 0 ; |
20753 | PyObject * obj2 = 0 ; | |
44127b65 RD |
20754 | char *kwnames[] = { |
20755 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20756 | }; | |
20757 | ||
8edf1c75 | 20758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20761 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 20762 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 20763 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 20764 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20765 | { |
20766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20767 | (arg1)->PopupMenu(arg2,arg3); | |
20768 | ||
20769 | wxPyEndAllowThreads(__tstate); | |
20770 | if (PyErr_Occurred()) SWIG_fail; | |
20771 | } | |
20772 | Py_INCREF(Py_None); resultobj = Py_None; | |
20773 | return resultobj; | |
20774 | fail: | |
20775 | return NULL; | |
20776 | } | |
20777 | ||
20778 | ||
c370783e | 20779 | static PyObject *_wrap_PyDivisionShape_SetBottomSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20780 | PyObject *resultobj; |
20781 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20782 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
20783 | PyObject * obj0 = 0 ; | |
20784 | PyObject * obj1 = 0 ; | |
20785 | char *kwnames[] = { | |
20786 | (char *) "self",(char *) "shape", NULL | |
20787 | }; | |
20788 | ||
20789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetBottomSide",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
20793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20794 | { |
20795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20796 | (arg1)->SetBottomSide(arg2); | |
20797 | ||
20798 | wxPyEndAllowThreads(__tstate); | |
20799 | if (PyErr_Occurred()) SWIG_fail; | |
20800 | } | |
20801 | Py_INCREF(Py_None); resultobj = Py_None; | |
20802 | return resultobj; | |
20803 | fail: | |
20804 | return NULL; | |
20805 | } | |
20806 | ||
20807 | ||
c370783e | 20808 | static PyObject *_wrap_PyDivisionShape_SetHandleSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20809 | PyObject *resultobj; |
20810 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20811 | int arg2 ; | |
20812 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20813 | PyObject * obj1 = 0 ; |
44127b65 RD |
20814 | char *kwnames[] = { |
20815 | (char *) "self",(char *) "side", NULL | |
20816 | }; | |
20817 | ||
8edf1c75 | 20818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetHandleSide",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20821 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 20822 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
20823 | { |
20824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20825 | (arg1)->SetHandleSide(arg2); | |
20826 | ||
20827 | wxPyEndAllowThreads(__tstate); | |
20828 | if (PyErr_Occurred()) SWIG_fail; | |
20829 | } | |
20830 | Py_INCREF(Py_None); resultobj = Py_None; | |
20831 | return resultobj; | |
20832 | fail: | |
20833 | return NULL; | |
20834 | } | |
20835 | ||
20836 | ||
c370783e | 20837 | static PyObject *_wrap_PyDivisionShape_SetLeftSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20838 | PyObject *resultobj; |
20839 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20840 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
20841 | PyObject * obj0 = 0 ; | |
20842 | PyObject * obj1 = 0 ; | |
20843 | char *kwnames[] = { | |
20844 | (char *) "self",(char *) "shape", NULL | |
20845 | }; | |
20846 | ||
20847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetLeftSide",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
20851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20852 | { |
20853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20854 | (arg1)->SetLeftSide(arg2); | |
20855 | ||
20856 | wxPyEndAllowThreads(__tstate); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
20858 | } | |
20859 | Py_INCREF(Py_None); resultobj = Py_None; | |
20860 | return resultobj; | |
20861 | fail: | |
20862 | return NULL; | |
20863 | } | |
20864 | ||
20865 | ||
c370783e | 20866 | static PyObject *_wrap_PyDivisionShape_SetLeftSideColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20867 | PyObject *resultobj; |
20868 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20869 | wxString *arg2 = 0 ; | |
20870 | bool temp2 = False ; | |
20871 | PyObject * obj0 = 0 ; | |
20872 | PyObject * obj1 = 0 ; | |
20873 | char *kwnames[] = { | |
20874 | (char *) "self",(char *) "colour", NULL | |
20875 | }; | |
20876 | ||
20877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetLeftSideColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20880 | { |
20881 | arg2 = wxString_in_helper(obj1); | |
20882 | if (arg2 == NULL) SWIG_fail; | |
20883 | temp2 = True; | |
20884 | } | |
20885 | { | |
20886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20887 | (arg1)->SetLeftSideColour((wxString const &)*arg2); | |
20888 | ||
20889 | wxPyEndAllowThreads(__tstate); | |
20890 | if (PyErr_Occurred()) SWIG_fail; | |
20891 | } | |
20892 | Py_INCREF(Py_None); resultobj = Py_None; | |
20893 | { | |
20894 | if (temp2) | |
20895 | delete arg2; | |
20896 | } | |
20897 | return resultobj; | |
20898 | fail: | |
20899 | { | |
20900 | if (temp2) | |
20901 | delete arg2; | |
20902 | } | |
20903 | return NULL; | |
20904 | } | |
20905 | ||
20906 | ||
c370783e | 20907 | static PyObject *_wrap_PyDivisionShape_SetLeftSidePen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20908 | PyObject *resultobj; |
20909 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20910 | wxPen *arg2 = (wxPen *) 0 ; | |
20911 | PyObject * obj0 = 0 ; | |
20912 | PyObject * obj1 = 0 ; | |
20913 | char *kwnames[] = { | |
20914 | (char *) "self",(char *) "pen", NULL | |
20915 | }; | |
20916 | ||
20917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetLeftSidePen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20920 | { |
20921 | wxPen* temp; | |
20922 | if (obj1) { | |
20923 | if (obj1 == Py_None) { | |
20924 | temp = NULL; | |
20925 | } | |
20926 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
20927 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
20928 | return NULL; | |
20929 | } | |
20930 | } | |
20931 | if (temp) | |
20932 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
20933 | temp->GetWidth(), | |
20934 | temp->GetStyle()); | |
20935 | else | |
20936 | arg2 = NULL; | |
20937 | } | |
20938 | { | |
20939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20940 | (arg1)->SetLeftSidePen(arg2); | |
20941 | ||
20942 | wxPyEndAllowThreads(__tstate); | |
20943 | if (PyErr_Occurred()) SWIG_fail; | |
20944 | } | |
20945 | Py_INCREF(Py_None); resultobj = Py_None; | |
20946 | return resultobj; | |
20947 | fail: | |
20948 | return NULL; | |
20949 | } | |
20950 | ||
20951 | ||
c370783e | 20952 | static PyObject *_wrap_PyDivisionShape_SetRightSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20953 | PyObject *resultobj; |
20954 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20955 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
20956 | PyObject * obj0 = 0 ; | |
20957 | PyObject * obj1 = 0 ; | |
20958 | char *kwnames[] = { | |
20959 | (char *) "self",(char *) "shape", NULL | |
20960 | }; | |
20961 | ||
20962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetRightSide",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
20966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20967 | { |
20968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20969 | (arg1)->SetRightSide(arg2); | |
20970 | ||
20971 | wxPyEndAllowThreads(__tstate); | |
20972 | if (PyErr_Occurred()) SWIG_fail; | |
20973 | } | |
20974 | Py_INCREF(Py_None); resultobj = Py_None; | |
20975 | return resultobj; | |
20976 | fail: | |
20977 | return NULL; | |
20978 | } | |
20979 | ||
20980 | ||
c370783e | 20981 | static PyObject *_wrap_PyDivisionShape_SetTopSide(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
20982 | PyObject *resultobj; |
20983 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
20984 | wxPyDivisionShape *arg2 = (wxPyDivisionShape *) 0 ; | |
20985 | PyObject * obj0 = 0 ; | |
20986 | PyObject * obj1 = 0 ; | |
20987 | char *kwnames[] = { | |
20988 | (char *) "self",(char *) "shape", NULL | |
20989 | }; | |
20990 | ||
20991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetTopSide",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
20993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20994 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDivisionShape, | |
20995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
20996 | { |
20997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20998 | (arg1)->SetTopSide(arg2); | |
20999 | ||
21000 | wxPyEndAllowThreads(__tstate); | |
21001 | if (PyErr_Occurred()) SWIG_fail; | |
21002 | } | |
21003 | Py_INCREF(Py_None); resultobj = Py_None; | |
21004 | return resultobj; | |
21005 | fail: | |
21006 | return NULL; | |
21007 | } | |
21008 | ||
21009 | ||
c370783e | 21010 | static PyObject *_wrap_PyDivisionShape_SetTopSideColour(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21011 | PyObject *resultobj; |
21012 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21013 | wxString *arg2 = 0 ; | |
21014 | bool temp2 = False ; | |
21015 | PyObject * obj0 = 0 ; | |
21016 | PyObject * obj1 = 0 ; | |
21017 | char *kwnames[] = { | |
21018 | (char *) "self",(char *) "colour", NULL | |
21019 | }; | |
21020 | ||
21021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetTopSideColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
21024 | { |
21025 | arg2 = wxString_in_helper(obj1); | |
21026 | if (arg2 == NULL) SWIG_fail; | |
21027 | temp2 = True; | |
21028 | } | |
21029 | { | |
21030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21031 | (arg1)->SetTopSideColour((wxString const &)*arg2); | |
21032 | ||
21033 | wxPyEndAllowThreads(__tstate); | |
21034 | if (PyErr_Occurred()) SWIG_fail; | |
21035 | } | |
21036 | Py_INCREF(Py_None); resultobj = Py_None; | |
21037 | { | |
21038 | if (temp2) | |
21039 | delete arg2; | |
21040 | } | |
21041 | return resultobj; | |
21042 | fail: | |
21043 | { | |
21044 | if (temp2) | |
21045 | delete arg2; | |
21046 | } | |
21047 | return NULL; | |
21048 | } | |
21049 | ||
21050 | ||
c370783e | 21051 | static PyObject *_wrap_PyDivisionShape_SetTopSidePen(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21052 | PyObject *resultobj; |
21053 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21054 | wxPen *arg2 = (wxPen *) 0 ; | |
21055 | PyObject * obj0 = 0 ; | |
21056 | PyObject * obj1 = 0 ; | |
21057 | char *kwnames[] = { | |
21058 | (char *) "self",(char *) "pen", NULL | |
21059 | }; | |
21060 | ||
21061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_SetTopSidePen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
21064 | { |
21065 | wxPen* temp; | |
21066 | if (obj1) { | |
21067 | if (obj1 == Py_None) { | |
21068 | temp = NULL; | |
21069 | } | |
21070 | else if (! wxPyConvertSwigPtr(obj1, (void **) &temp, wxT("wxPen"))) { | |
21071 | PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen."); | |
21072 | return NULL; | |
21073 | } | |
21074 | } | |
21075 | if (temp) | |
21076 | arg2 = wxThePenList->FindOrCreatePen(temp->GetColour(), | |
21077 | temp->GetWidth(), | |
21078 | temp->GetStyle()); | |
21079 | else | |
21080 | arg2 = NULL; | |
21081 | } | |
21082 | { | |
21083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21084 | (arg1)->SetTopSidePen(arg2); | |
21085 | ||
21086 | wxPyEndAllowThreads(__tstate); | |
21087 | if (PyErr_Occurred()) SWIG_fail; | |
21088 | } | |
21089 | Py_INCREF(Py_None); resultobj = Py_None; | |
21090 | return resultobj; | |
21091 | fail: | |
21092 | return NULL; | |
21093 | } | |
21094 | ||
21095 | ||
c370783e | 21096 | static PyObject *_wrap_PyDivisionShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21097 | PyObject *resultobj; |
21098 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21099 | PyObject * obj0 = 0 ; | |
21100 | char *kwnames[] = { | |
21101 | (char *) "self", NULL | |
21102 | }; | |
21103 | ||
21104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyDivisionShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
21107 | { |
21108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21109 | (arg1)->base_OnDelete(); | |
21110 | ||
21111 | wxPyEndAllowThreads(__tstate); | |
21112 | if (PyErr_Occurred()) SWIG_fail; | |
21113 | } | |
21114 | Py_INCREF(Py_None); resultobj = Py_None; | |
21115 | return resultobj; | |
21116 | fail: | |
21117 | return NULL; | |
21118 | } | |
21119 | ||
21120 | ||
c370783e | 21121 | static PyObject *_wrap_PyDivisionShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21122 | PyObject *resultobj; |
21123 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21124 | wxDC *arg2 = 0 ; | |
21125 | PyObject * obj0 = 0 ; | |
21126 | PyObject * obj1 = 0 ; | |
21127 | char *kwnames[] = { | |
21128 | (char *) "self",(char *) "dc", NULL | |
21129 | }; | |
21130 | ||
21131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21134 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21135 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21136 | SWIG_fail; | |
44127b65 | 21137 | if (arg2 == NULL) { |
2f4c0a16 RD |
21138 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21139 | SWIG_fail; | |
44127b65 RD |
21140 | } |
21141 | { | |
21142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21143 | (arg1)->base_OnDraw(*arg2); | |
21144 | ||
21145 | wxPyEndAllowThreads(__tstate); | |
21146 | if (PyErr_Occurred()) SWIG_fail; | |
21147 | } | |
21148 | Py_INCREF(Py_None); resultobj = Py_None; | |
21149 | return resultobj; | |
21150 | fail: | |
21151 | return NULL; | |
21152 | } | |
21153 | ||
21154 | ||
c370783e | 21155 | static PyObject *_wrap_PyDivisionShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21156 | PyObject *resultobj; |
21157 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21158 | wxDC *arg2 = 0 ; | |
21159 | PyObject * obj0 = 0 ; | |
21160 | PyObject * obj1 = 0 ; | |
21161 | char *kwnames[] = { | |
21162 | (char *) "self",(char *) "dc", NULL | |
21163 | }; | |
21164 | ||
21165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21169 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21170 | SWIG_fail; | |
44127b65 | 21171 | if (arg2 == NULL) { |
2f4c0a16 RD |
21172 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21173 | SWIG_fail; | |
44127b65 RD |
21174 | } |
21175 | { | |
21176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21177 | (arg1)->base_OnDrawContents(*arg2); | |
21178 | ||
21179 | wxPyEndAllowThreads(__tstate); | |
21180 | if (PyErr_Occurred()) SWIG_fail; | |
21181 | } | |
21182 | Py_INCREF(Py_None); resultobj = Py_None; | |
21183 | return resultobj; | |
21184 | fail: | |
21185 | return NULL; | |
21186 | } | |
21187 | ||
21188 | ||
c370783e | 21189 | static PyObject *_wrap_PyDivisionShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21190 | PyObject *resultobj; |
21191 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21192 | wxDC *arg2 = 0 ; | |
21193 | bool arg3 = (bool) FALSE ; | |
21194 | PyObject * obj0 = 0 ; | |
21195 | PyObject * obj1 = 0 ; | |
21196 | PyObject * obj2 = 0 ; | |
21197 | char *kwnames[] = { | |
21198 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
21199 | }; | |
21200 | ||
21201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDivisionShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
21202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21205 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21206 | SWIG_fail; | |
44127b65 | 21207 | if (arg2 == NULL) { |
2f4c0a16 RD |
21208 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21209 | SWIG_fail; | |
44127b65 RD |
21210 | } |
21211 | if (obj2) { | |
c370783e | 21212 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 21213 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
21214 | } |
21215 | { | |
21216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21217 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
21218 | ||
21219 | wxPyEndAllowThreads(__tstate); | |
21220 | if (PyErr_Occurred()) SWIG_fail; | |
21221 | } | |
21222 | Py_INCREF(Py_None); resultobj = Py_None; | |
21223 | return resultobj; | |
21224 | fail: | |
21225 | return NULL; | |
21226 | } | |
21227 | ||
21228 | ||
c370783e | 21229 | static PyObject *_wrap_PyDivisionShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21230 | PyObject *resultobj; |
21231 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21232 | wxDC *arg2 = 0 ; | |
21233 | PyObject * obj0 = 0 ; | |
21234 | PyObject * obj1 = 0 ; | |
21235 | char *kwnames[] = { | |
21236 | (char *) "self",(char *) "dc", NULL | |
21237 | }; | |
21238 | ||
21239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21242 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21243 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21244 | SWIG_fail; | |
44127b65 | 21245 | if (arg2 == NULL) { |
2f4c0a16 RD |
21246 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21247 | SWIG_fail; | |
44127b65 RD |
21248 | } |
21249 | { | |
21250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21251 | (arg1)->base_OnMoveLinks(*arg2); | |
21252 | ||
21253 | wxPyEndAllowThreads(__tstate); | |
21254 | if (PyErr_Occurred()) SWIG_fail; | |
21255 | } | |
21256 | Py_INCREF(Py_None); resultobj = Py_None; | |
21257 | return resultobj; | |
21258 | fail: | |
21259 | return NULL; | |
21260 | } | |
21261 | ||
21262 | ||
c370783e | 21263 | static PyObject *_wrap_PyDivisionShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21264 | PyObject *resultobj; |
21265 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21266 | wxDC *arg2 = 0 ; | |
21267 | PyObject * obj0 = 0 ; | |
21268 | PyObject * obj1 = 0 ; | |
21269 | char *kwnames[] = { | |
21270 | (char *) "self",(char *) "dc", NULL | |
21271 | }; | |
21272 | ||
21273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21276 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21277 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21278 | SWIG_fail; | |
44127b65 | 21279 | if (arg2 == NULL) { |
2f4c0a16 RD |
21280 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21281 | SWIG_fail; | |
44127b65 RD |
21282 | } |
21283 | { | |
21284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21285 | (arg1)->base_OnErase(*arg2); | |
21286 | ||
21287 | wxPyEndAllowThreads(__tstate); | |
21288 | if (PyErr_Occurred()) SWIG_fail; | |
21289 | } | |
21290 | Py_INCREF(Py_None); resultobj = Py_None; | |
21291 | return resultobj; | |
21292 | fail: | |
21293 | return NULL; | |
21294 | } | |
21295 | ||
21296 | ||
c370783e | 21297 | static PyObject *_wrap_PyDivisionShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21298 | PyObject *resultobj; |
21299 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21300 | wxDC *arg2 = 0 ; | |
21301 | PyObject * obj0 = 0 ; | |
21302 | PyObject * obj1 = 0 ; | |
21303 | char *kwnames[] = { | |
21304 | (char *) "self",(char *) "dc", NULL | |
21305 | }; | |
21306 | ||
21307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21310 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21311 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21312 | SWIG_fail; | |
44127b65 | 21313 | if (arg2 == NULL) { |
2f4c0a16 RD |
21314 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21315 | SWIG_fail; | |
44127b65 RD |
21316 | } |
21317 | { | |
21318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21319 | (arg1)->base_OnEraseContents(*arg2); | |
21320 | ||
21321 | wxPyEndAllowThreads(__tstate); | |
21322 | if (PyErr_Occurred()) SWIG_fail; | |
21323 | } | |
21324 | Py_INCREF(Py_None); resultobj = Py_None; | |
21325 | return resultobj; | |
21326 | fail: | |
21327 | return NULL; | |
21328 | } | |
21329 | ||
21330 | ||
c370783e | 21331 | static PyObject *_wrap_PyDivisionShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21332 | PyObject *resultobj; |
21333 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21334 | wxDC *arg2 = 0 ; | |
21335 | PyObject * obj0 = 0 ; | |
21336 | PyObject * obj1 = 0 ; | |
21337 | char *kwnames[] = { | |
21338 | (char *) "self",(char *) "dc", NULL | |
21339 | }; | |
21340 | ||
21341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21344 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21345 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21346 | SWIG_fail; | |
44127b65 | 21347 | if (arg2 == NULL) { |
2f4c0a16 RD |
21348 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21349 | SWIG_fail; | |
44127b65 RD |
21350 | } |
21351 | { | |
21352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21353 | (arg1)->base_OnHighlight(*arg2); | |
21354 | ||
21355 | wxPyEndAllowThreads(__tstate); | |
21356 | if (PyErr_Occurred()) SWIG_fail; | |
21357 | } | |
21358 | Py_INCREF(Py_None); resultobj = Py_None; | |
21359 | return resultobj; | |
21360 | fail: | |
21361 | return NULL; | |
21362 | } | |
21363 | ||
21364 | ||
c370783e | 21365 | static PyObject *_wrap_PyDivisionShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21366 | PyObject *resultobj; |
21367 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21368 | double arg2 ; | |
21369 | double arg3 ; | |
21370 | int arg4 = (int) 0 ; | |
21371 | int arg5 = (int) 0 ; | |
21372 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21373 | PyObject * obj1 = 0 ; |
21374 | PyObject * obj2 = 0 ; | |
21375 | PyObject * obj3 = 0 ; | |
21376 | PyObject * obj4 = 0 ; | |
44127b65 RD |
21377 | char *kwnames[] = { |
21378 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21379 | }; | |
21380 | ||
8edf1c75 | 21381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
21382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21384 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 21385 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21386 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21387 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21388 | if (obj3) { |
c370783e | 21389 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 21390 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
21391 | } |
21392 | if (obj4) { | |
c370783e | 21393 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 21394 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21395 | } |
44127b65 RD |
21396 | { |
21397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21398 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
21399 | ||
21400 | wxPyEndAllowThreads(__tstate); | |
21401 | if (PyErr_Occurred()) SWIG_fail; | |
21402 | } | |
21403 | Py_INCREF(Py_None); resultobj = Py_None; | |
21404 | return resultobj; | |
21405 | fail: | |
21406 | return NULL; | |
21407 | } | |
21408 | ||
21409 | ||
c370783e | 21410 | static PyObject *_wrap_PyDivisionShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21411 | PyObject *resultobj; |
21412 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21413 | double arg2 ; | |
21414 | double arg3 ; | |
21415 | int arg4 = (int) 0 ; | |
21416 | int arg5 = (int) 0 ; | |
21417 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21418 | PyObject * obj1 = 0 ; |
21419 | PyObject * obj2 = 0 ; | |
21420 | PyObject * obj3 = 0 ; | |
21421 | PyObject * obj4 = 0 ; | |
44127b65 RD |
21422 | char *kwnames[] = { |
21423 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21424 | }; | |
21425 | ||
8edf1c75 | 21426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
21427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21429 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 21430 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21431 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21432 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21433 | if (obj3) { |
c370783e | 21434 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 21435 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
21436 | } |
21437 | if (obj4) { | |
c370783e | 21438 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 21439 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21440 | } |
44127b65 RD |
21441 | { |
21442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21443 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
21444 | ||
21445 | wxPyEndAllowThreads(__tstate); | |
21446 | if (PyErr_Occurred()) SWIG_fail; | |
21447 | } | |
21448 | Py_INCREF(Py_None); resultobj = Py_None; | |
21449 | return resultobj; | |
21450 | fail: | |
21451 | return NULL; | |
21452 | } | |
21453 | ||
21454 | ||
c370783e | 21455 | static PyObject *_wrap_PyDivisionShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21456 | PyObject *resultobj; |
21457 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21458 | double arg2 ; | |
21459 | double arg3 ; | |
21460 | int arg4 = (int) 0 ; | |
21461 | int arg5 = (int) 0 ; | |
21462 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21463 | PyObject * obj1 = 0 ; |
21464 | PyObject * obj2 = 0 ; | |
21465 | PyObject * obj3 = 0 ; | |
21466 | PyObject * obj4 = 0 ; | |
44127b65 RD |
21467 | char *kwnames[] = { |
21468 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21469 | }; | |
21470 | ||
8edf1c75 | 21471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
21472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21474 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 21475 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21476 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21477 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21478 | if (obj3) { |
c370783e | 21479 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 21480 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
21481 | } |
21482 | if (obj4) { | |
c370783e | 21483 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 21484 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21485 | } |
44127b65 RD |
21486 | { |
21487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21488 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
21489 | ||
21490 | wxPyEndAllowThreads(__tstate); | |
21491 | if (PyErr_Occurred()) SWIG_fail; | |
21492 | } | |
21493 | Py_INCREF(Py_None); resultobj = Py_None; | |
21494 | return resultobj; | |
21495 | fail: | |
21496 | return NULL; | |
21497 | } | |
21498 | ||
21499 | ||
c370783e | 21500 | static PyObject *_wrap_PyDivisionShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21501 | PyObject *resultobj; |
21502 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21503 | double arg2 ; | |
21504 | double arg3 ; | |
21505 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21506 | PyObject * obj1 = 0 ; |
21507 | PyObject * obj2 = 0 ; | |
44127b65 RD |
21508 | char *kwnames[] = { |
21509 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21510 | }; | |
21511 | ||
8edf1c75 | 21512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21515 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 21516 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21517 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21518 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
21519 | { |
21520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21521 | (arg1)->base_OnSize(arg2,arg3); | |
21522 | ||
21523 | wxPyEndAllowThreads(__tstate); | |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
21525 | } | |
21526 | Py_INCREF(Py_None); resultobj = Py_None; | |
21527 | return resultobj; | |
21528 | fail: | |
21529 | return NULL; | |
21530 | } | |
21531 | ||
21532 | ||
c370783e | 21533 | static PyObject *_wrap_PyDivisionShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21534 | PyObject *resultobj; |
21535 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21536 | wxDC *arg2 = 0 ; | |
21537 | double arg3 ; | |
21538 | double arg4 ; | |
21539 | double arg5 ; | |
21540 | double arg6 ; | |
21541 | bool arg7 = (bool) True ; | |
21542 | bool result; | |
21543 | PyObject * obj0 = 0 ; | |
21544 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
21545 | PyObject * obj2 = 0 ; |
21546 | PyObject * obj3 = 0 ; | |
21547 | PyObject * obj4 = 0 ; | |
21548 | PyObject * obj5 = 0 ; | |
44127b65 RD |
21549 | PyObject * obj6 = 0 ; |
21550 | char *kwnames[] = { | |
21551 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
21552 | }; | |
21553 | ||
8edf1c75 | 21554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDivisionShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
21555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21557 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21558 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21559 | SWIG_fail; | |
44127b65 | 21560 | if (arg2 == NULL) { |
2f4c0a16 RD |
21561 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21562 | SWIG_fail; | |
21563 | } | |
c370783e | 21564 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21565 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21566 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 21567 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21568 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 21569 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21570 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 21571 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 21572 | if (obj6) { |
c370783e | 21573 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 21574 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
21575 | } |
21576 | { | |
21577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21578 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
21579 | ||
21580 | wxPyEndAllowThreads(__tstate); | |
21581 | if (PyErr_Occurred()) SWIG_fail; | |
21582 | } | |
fbc46b20 RD |
21583 | { |
21584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21585 | } | |
44127b65 RD |
21586 | return resultobj; |
21587 | fail: | |
21588 | return NULL; | |
21589 | } | |
21590 | ||
21591 | ||
c370783e | 21592 | static PyObject *_wrap_PyDivisionShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21593 | PyObject *resultobj; |
21594 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21595 | wxDC *arg2 = 0 ; | |
21596 | double arg3 ; | |
21597 | double arg4 ; | |
21598 | double arg5 ; | |
21599 | double arg6 ; | |
21600 | bool arg7 = (bool) True ; | |
21601 | PyObject * obj0 = 0 ; | |
21602 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
21603 | PyObject * obj2 = 0 ; |
21604 | PyObject * obj3 = 0 ; | |
21605 | PyObject * obj4 = 0 ; | |
21606 | PyObject * obj5 = 0 ; | |
44127b65 RD |
21607 | PyObject * obj6 = 0 ; |
21608 | char *kwnames[] = { | |
21609 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
21610 | }; | |
21611 | ||
8edf1c75 | 21612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyDivisionShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
21613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21615 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21616 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21617 | SWIG_fail; | |
44127b65 | 21618 | if (arg2 == NULL) { |
2f4c0a16 RD |
21619 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21620 | SWIG_fail; | |
21621 | } | |
c370783e | 21622 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21623 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21624 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 21625 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21626 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 21627 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21628 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 21629 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 21630 | if (obj6) { |
c370783e | 21631 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 21632 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
21633 | } |
21634 | { | |
21635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21636 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
21637 | ||
21638 | wxPyEndAllowThreads(__tstate); | |
21639 | if (PyErr_Occurred()) SWIG_fail; | |
21640 | } | |
21641 | Py_INCREF(Py_None); resultobj = Py_None; | |
21642 | return resultobj; | |
21643 | fail: | |
21644 | return NULL; | |
21645 | } | |
21646 | ||
21647 | ||
c370783e | 21648 | static PyObject *_wrap_PyDivisionShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21649 | PyObject *resultobj; |
21650 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21651 | bool arg2 ; | |
21652 | double arg3 ; | |
21653 | double arg4 ; | |
21654 | int arg5 = (int) 0 ; | |
21655 | int arg6 = (int) 0 ; | |
21656 | PyObject * obj0 = 0 ; | |
21657 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
21658 | PyObject * obj2 = 0 ; |
21659 | PyObject * obj3 = 0 ; | |
21660 | PyObject * obj4 = 0 ; | |
21661 | PyObject * obj5 = 0 ; | |
44127b65 RD |
21662 | char *kwnames[] = { |
21663 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21664 | }; | |
21665 | ||
8edf1c75 | 21666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDivisionShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
21667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21669 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 21670 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21671 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21672 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21673 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 21674 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21675 | if (obj4) { |
c370783e | 21676 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 21677 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
21678 | } |
21679 | if (obj5) { | |
c370783e | 21680 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 21681 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21682 | } |
44127b65 RD |
21683 | { |
21684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21685 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
21686 | ||
21687 | wxPyEndAllowThreads(__tstate); | |
21688 | if (PyErr_Occurred()) SWIG_fail; | |
21689 | } | |
21690 | Py_INCREF(Py_None); resultobj = Py_None; | |
21691 | return resultobj; | |
21692 | fail: | |
21693 | return NULL; | |
21694 | } | |
21695 | ||
21696 | ||
c370783e | 21697 | static PyObject *_wrap_PyDivisionShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21698 | PyObject *resultobj; |
21699 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21700 | double arg2 ; | |
21701 | double arg3 ; | |
21702 | int arg4 = (int) 0 ; | |
21703 | int arg5 = (int) 0 ; | |
21704 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21705 | PyObject * obj1 = 0 ; |
21706 | PyObject * obj2 = 0 ; | |
21707 | PyObject * obj3 = 0 ; | |
21708 | PyObject * obj4 = 0 ; | |
44127b65 RD |
21709 | char *kwnames[] = { |
21710 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21711 | }; | |
21712 | ||
8edf1c75 | 21713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
21714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21716 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 21717 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21718 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21719 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21720 | if (obj3) { |
c370783e | 21721 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 21722 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
21723 | } |
21724 | if (obj4) { | |
c370783e | 21725 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 21726 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21727 | } |
44127b65 RD |
21728 | { |
21729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21730 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
21731 | ||
21732 | wxPyEndAllowThreads(__tstate); | |
21733 | if (PyErr_Occurred()) SWIG_fail; | |
21734 | } | |
21735 | Py_INCREF(Py_None); resultobj = Py_None; | |
21736 | return resultobj; | |
21737 | fail: | |
21738 | return NULL; | |
21739 | } | |
21740 | ||
21741 | ||
c370783e | 21742 | static PyObject *_wrap_PyDivisionShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21743 | PyObject *resultobj; |
21744 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21745 | double arg2 ; | |
21746 | double arg3 ; | |
21747 | int arg4 = (int) 0 ; | |
21748 | int arg5 = (int) 0 ; | |
21749 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21750 | PyObject * obj1 = 0 ; |
21751 | PyObject * obj2 = 0 ; | |
21752 | PyObject * obj3 = 0 ; | |
21753 | PyObject * obj4 = 0 ; | |
44127b65 RD |
21754 | char *kwnames[] = { |
21755 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21756 | }; | |
21757 | ||
8edf1c75 | 21758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
21759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21761 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 21762 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21763 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21764 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21765 | if (obj3) { |
c370783e | 21766 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 21767 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
21768 | } |
21769 | if (obj4) { | |
c370783e | 21770 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 21771 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21772 | } |
44127b65 RD |
21773 | { |
21774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21775 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
21776 | ||
21777 | wxPyEndAllowThreads(__tstate); | |
21778 | if (PyErr_Occurred()) SWIG_fail; | |
21779 | } | |
21780 | Py_INCREF(Py_None); resultobj = Py_None; | |
21781 | return resultobj; | |
21782 | fail: | |
21783 | return NULL; | |
21784 | } | |
21785 | ||
21786 | ||
c370783e | 21787 | static PyObject *_wrap_PyDivisionShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21788 | PyObject *resultobj; |
21789 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21790 | bool arg2 ; | |
21791 | double arg3 ; | |
21792 | double arg4 ; | |
21793 | int arg5 = (int) 0 ; | |
21794 | int arg6 = (int) 0 ; | |
21795 | PyObject * obj0 = 0 ; | |
21796 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
21797 | PyObject * obj2 = 0 ; |
21798 | PyObject * obj3 = 0 ; | |
21799 | PyObject * obj4 = 0 ; | |
21800 | PyObject * obj5 = 0 ; | |
44127b65 RD |
21801 | char *kwnames[] = { |
21802 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21803 | }; | |
21804 | ||
8edf1c75 | 21805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDivisionShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
21806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21808 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 21809 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21810 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21811 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21812 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 21813 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21814 | if (obj4) { |
c370783e | 21815 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 21816 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
21817 | } |
21818 | if (obj5) { | |
c370783e | 21819 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 21820 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21821 | } |
44127b65 RD |
21822 | { |
21823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21824 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
21825 | ||
21826 | wxPyEndAllowThreads(__tstate); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
21829 | Py_INCREF(Py_None); resultobj = Py_None; | |
21830 | return resultobj; | |
21831 | fail: | |
21832 | return NULL; | |
21833 | } | |
21834 | ||
21835 | ||
c370783e | 21836 | static PyObject *_wrap_PyDivisionShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21837 | PyObject *resultobj; |
21838 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21839 | double arg2 ; | |
21840 | double arg3 ; | |
21841 | int arg4 = (int) 0 ; | |
21842 | int arg5 = (int) 0 ; | |
21843 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21844 | PyObject * obj1 = 0 ; |
21845 | PyObject * obj2 = 0 ; | |
21846 | PyObject * obj3 = 0 ; | |
21847 | PyObject * obj4 = 0 ; | |
44127b65 RD |
21848 | char *kwnames[] = { |
21849 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21850 | }; | |
21851 | ||
8edf1c75 | 21852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
21853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21855 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 21856 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21857 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21858 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21859 | if (obj3) { |
c370783e | 21860 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 21861 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
21862 | } |
21863 | if (obj4) { | |
c370783e | 21864 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 21865 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21866 | } |
44127b65 RD |
21867 | { |
21868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21869 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
21870 | ||
21871 | wxPyEndAllowThreads(__tstate); | |
21872 | if (PyErr_Occurred()) SWIG_fail; | |
21873 | } | |
21874 | Py_INCREF(Py_None); resultobj = Py_None; | |
21875 | return resultobj; | |
21876 | fail: | |
21877 | return NULL; | |
21878 | } | |
21879 | ||
21880 | ||
c370783e | 21881 | static PyObject *_wrap_PyDivisionShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21882 | PyObject *resultobj; |
21883 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21884 | double arg2 ; | |
21885 | double arg3 ; | |
21886 | int arg4 = (int) 0 ; | |
21887 | int arg5 = (int) 0 ; | |
21888 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21889 | PyObject * obj1 = 0 ; |
21890 | PyObject * obj2 = 0 ; | |
21891 | PyObject * obj3 = 0 ; | |
21892 | PyObject * obj4 = 0 ; | |
44127b65 RD |
21893 | char *kwnames[] = { |
21894 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
21895 | }; | |
21896 | ||
8edf1c75 | 21897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyDivisionShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
21898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21900 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 21901 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21902 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21903 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21904 | if (obj3) { |
c370783e | 21905 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 21906 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
21907 | } |
21908 | if (obj4) { | |
c370783e | 21909 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 21910 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 21911 | } |
44127b65 RD |
21912 | { |
21913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21914 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
21915 | ||
21916 | wxPyEndAllowThreads(__tstate); | |
21917 | if (PyErr_Occurred()) SWIG_fail; | |
21918 | } | |
21919 | Py_INCREF(Py_None); resultobj = Py_None; | |
21920 | return resultobj; | |
21921 | fail: | |
21922 | return NULL; | |
21923 | } | |
21924 | ||
21925 | ||
c370783e | 21926 | static PyObject *_wrap_PyDivisionShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21927 | PyObject *resultobj; |
21928 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21929 | wxDC *arg2 = 0 ; | |
21930 | double arg3 ; | |
21931 | double arg4 ; | |
21932 | double arg5 ; | |
21933 | double arg6 ; | |
21934 | PyObject * obj0 = 0 ; | |
21935 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
21936 | PyObject * obj2 = 0 ; |
21937 | PyObject * obj3 = 0 ; | |
21938 | PyObject * obj4 = 0 ; | |
21939 | PyObject * obj5 = 0 ; | |
44127b65 RD |
21940 | char *kwnames[] = { |
21941 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
21942 | }; | |
21943 | ||
8edf1c75 | 21944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyDivisionShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
21945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21947 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21948 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21949 | SWIG_fail; | |
44127b65 | 21950 | if (arg2 == NULL) { |
2f4c0a16 RD |
21951 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21952 | SWIG_fail; | |
8edf1c75 | 21953 | } |
c370783e | 21954 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 21955 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21956 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 21957 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21958 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 21959 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21960 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 21961 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
21962 | { |
21963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21964 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
21965 | ||
21966 | wxPyEndAllowThreads(__tstate); | |
21967 | if (PyErr_Occurred()) SWIG_fail; | |
21968 | } | |
21969 | Py_INCREF(Py_None); resultobj = Py_None; | |
21970 | return resultobj; | |
21971 | fail: | |
21972 | return NULL; | |
21973 | } | |
21974 | ||
21975 | ||
c370783e | 21976 | static PyObject *_wrap_PyDivisionShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
21977 | PyObject *resultobj; |
21978 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
21979 | wxDC *arg2 = 0 ; | |
21980 | PyObject * obj0 = 0 ; | |
21981 | PyObject * obj1 = 0 ; | |
21982 | char *kwnames[] = { | |
21983 | (char *) "self",(char *) "dc", NULL | |
21984 | }; | |
21985 | ||
21986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
21988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21990 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21991 | SWIG_fail; | |
44127b65 | 21992 | if (arg2 == NULL) { |
2f4c0a16 RD |
21993 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21994 | SWIG_fail; | |
44127b65 RD |
21995 | } |
21996 | { | |
21997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21998 | (arg1)->base_OnDrawControlPoints(*arg2); | |
21999 | ||
22000 | wxPyEndAllowThreads(__tstate); | |
22001 | if (PyErr_Occurred()) SWIG_fail; | |
22002 | } | |
22003 | Py_INCREF(Py_None); resultobj = Py_None; | |
22004 | return resultobj; | |
22005 | fail: | |
22006 | return NULL; | |
22007 | } | |
22008 | ||
22009 | ||
c370783e | 22010 | static PyObject *_wrap_PyDivisionShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22011 | PyObject *resultobj; |
22012 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22013 | wxDC *arg2 = 0 ; | |
22014 | PyObject * obj0 = 0 ; | |
22015 | PyObject * obj1 = 0 ; | |
22016 | char *kwnames[] = { | |
22017 | (char *) "self",(char *) "dc", NULL | |
22018 | }; | |
22019 | ||
22020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyDivisionShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
22022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22023 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22024 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22025 | SWIG_fail; | |
44127b65 | 22026 | if (arg2 == NULL) { |
2f4c0a16 RD |
22027 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22028 | SWIG_fail; | |
44127b65 RD |
22029 | } |
22030 | { | |
22031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22032 | (arg1)->base_OnEraseControlPoints(*arg2); | |
22033 | ||
22034 | wxPyEndAllowThreads(__tstate); | |
22035 | if (PyErr_Occurred()) SWIG_fail; | |
22036 | } | |
22037 | Py_INCREF(Py_None); resultobj = Py_None; | |
22038 | return resultobj; | |
22039 | fail: | |
22040 | return NULL; | |
22041 | } | |
22042 | ||
22043 | ||
c370783e | 22044 | static PyObject *_wrap_PyDivisionShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22045 | PyObject *resultobj; |
22046 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22047 | wxDC *arg2 = 0 ; | |
22048 | bool arg3 = (bool) True ; | |
22049 | PyObject * obj0 = 0 ; | |
22050 | PyObject * obj1 = 0 ; | |
22051 | PyObject * obj2 = 0 ; | |
22052 | char *kwnames[] = { | |
22053 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
22054 | }; | |
22055 | ||
22056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyDivisionShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
22057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
22058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22059 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22060 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22061 | SWIG_fail; | |
44127b65 | 22062 | if (arg2 == NULL) { |
2f4c0a16 RD |
22063 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22064 | SWIG_fail; | |
44127b65 RD |
22065 | } |
22066 | if (obj2) { | |
c370783e | 22067 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 22068 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
22069 | } |
22070 | { | |
22071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22072 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
22073 | ||
22074 | wxPyEndAllowThreads(__tstate); | |
22075 | if (PyErr_Occurred()) SWIG_fail; | |
22076 | } | |
22077 | Py_INCREF(Py_None); resultobj = Py_None; | |
22078 | return resultobj; | |
22079 | fail: | |
22080 | return NULL; | |
22081 | } | |
22082 | ||
22083 | ||
c370783e | 22084 | static PyObject *_wrap_PyDivisionShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22085 | PyObject *resultobj; |
22086 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22087 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
22088 | bool arg3 ; | |
22089 | double arg4 ; | |
22090 | double arg5 ; | |
22091 | int arg6 = (int) 0 ; | |
22092 | int arg7 = (int) 0 ; | |
22093 | PyObject * obj0 = 0 ; | |
22094 | PyObject * obj1 = 0 ; | |
22095 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
22096 | PyObject * obj3 = 0 ; |
22097 | PyObject * obj4 = 0 ; | |
22098 | PyObject * obj5 = 0 ; | |
22099 | PyObject * obj6 = 0 ; | |
44127b65 RD |
22100 | char *kwnames[] = { |
22101 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22102 | }; | |
22103 | ||
8edf1c75 | 22104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyDivisionShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
22106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
22108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22109 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 22110 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22111 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 22112 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22113 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 22114 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22115 | if (obj5) { |
c370783e | 22116 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 22117 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
22118 | } |
22119 | if (obj6) { | |
c370783e | 22120 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 22121 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22122 | } |
44127b65 RD |
22123 | { |
22124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22125 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
22126 | ||
22127 | wxPyEndAllowThreads(__tstate); | |
22128 | if (PyErr_Occurred()) SWIG_fail; | |
22129 | } | |
22130 | Py_INCREF(Py_None); resultobj = Py_None; | |
22131 | return resultobj; | |
22132 | fail: | |
22133 | return NULL; | |
22134 | } | |
22135 | ||
22136 | ||
c370783e | 22137 | static PyObject *_wrap_PyDivisionShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22138 | PyObject *resultobj; |
22139 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22140 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
22141 | double arg3 ; | |
22142 | double arg4 ; | |
22143 | int arg5 = (int) 0 ; | |
22144 | int arg6 = (int) 0 ; | |
22145 | PyObject * obj0 = 0 ; | |
22146 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
22147 | PyObject * obj2 = 0 ; |
22148 | PyObject * obj3 = 0 ; | |
22149 | PyObject * obj4 = 0 ; | |
22150 | PyObject * obj5 = 0 ; | |
44127b65 RD |
22151 | char *kwnames[] = { |
22152 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22153 | }; | |
22154 | ||
8edf1c75 | 22155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDivisionShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
22156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
22157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22158 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
22159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22160 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22161 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22162 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 RD |
22163 | if (PyErr_Occurred()) SWIG_fail; |
22164 | if (obj4) { | |
c370783e | 22165 | arg5 = (int)SWIG_As_int(obj4); |
8edf1c75 RD |
22166 | if (PyErr_Occurred()) SWIG_fail; |
22167 | } | |
2f4c0a16 | 22168 | if (obj5) { |
c370783e | 22169 | arg6 = (int)SWIG_As_int(obj5); |
8edf1c75 RD |
22170 | if (PyErr_Occurred()) SWIG_fail; |
22171 | } | |
44127b65 RD |
22172 | { |
22173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22174 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
22175 | ||
22176 | wxPyEndAllowThreads(__tstate); | |
22177 | if (PyErr_Occurred()) SWIG_fail; | |
22178 | } | |
22179 | Py_INCREF(Py_None); resultobj = Py_None; | |
22180 | return resultobj; | |
22181 | fail: | |
22182 | return NULL; | |
22183 | } | |
22184 | ||
22185 | ||
c370783e | 22186 | static PyObject *_wrap_PyDivisionShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22187 | PyObject *resultobj; |
22188 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22189 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
22190 | double arg3 ; | |
22191 | double arg4 ; | |
22192 | int arg5 = (int) 0 ; | |
22193 | int arg6 = (int) 0 ; | |
22194 | PyObject * obj0 = 0 ; | |
22195 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
22196 | PyObject * obj2 = 0 ; |
22197 | PyObject * obj3 = 0 ; | |
22198 | PyObject * obj4 = 0 ; | |
22199 | PyObject * obj5 = 0 ; | |
44127b65 RD |
22200 | char *kwnames[] = { |
22201 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22202 | }; | |
22203 | ||
8edf1c75 | 22204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyDivisionShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
22205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
22206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22207 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
22208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22209 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22210 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22211 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 22212 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22213 | if (obj4) { |
c370783e | 22214 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 22215 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
22216 | } |
22217 | if (obj5) { | |
c370783e | 22218 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 22219 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22220 | } |
44127b65 RD |
22221 | { |
22222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22223 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
22224 | ||
22225 | wxPyEndAllowThreads(__tstate); | |
22226 | if (PyErr_Occurred()) SWIG_fail; | |
22227 | } | |
22228 | Py_INCREF(Py_None); resultobj = Py_None; | |
22229 | return resultobj; | |
22230 | fail: | |
22231 | return NULL; | |
22232 | } | |
22233 | ||
22234 | ||
c370783e | 22235 | static PyObject *_wrap_PyDivisionShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22236 | PyObject *resultobj; |
22237 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22238 | double arg2 ; | |
22239 | double arg3 ; | |
22240 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22241 | PyObject * obj1 = 0 ; |
22242 | PyObject * obj2 = 0 ; | |
44127b65 RD |
22243 | char *kwnames[] = { |
22244 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22245 | }; | |
22246 | ||
8edf1c75 | 22247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
22249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22250 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 22251 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22252 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22253 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
22254 | { |
22255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22256 | (arg1)->base_OnBeginSize(arg2,arg3); | |
22257 | ||
22258 | wxPyEndAllowThreads(__tstate); | |
22259 | if (PyErr_Occurred()) SWIG_fail; | |
22260 | } | |
22261 | Py_INCREF(Py_None); resultobj = Py_None; | |
22262 | return resultobj; | |
22263 | fail: | |
22264 | return NULL; | |
22265 | } | |
22266 | ||
22267 | ||
c370783e | 22268 | static PyObject *_wrap_PyDivisionShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22269 | PyObject *resultobj; |
22270 | wxPyDivisionShape *arg1 = (wxPyDivisionShape *) 0 ; | |
22271 | double arg2 ; | |
22272 | double arg3 ; | |
22273 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22274 | PyObject * obj1 = 0 ; |
22275 | PyObject * obj2 = 0 ; | |
44127b65 RD |
22276 | char *kwnames[] = { |
22277 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22278 | }; | |
22279 | ||
8edf1c75 | 22280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDivisionShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDivisionShape, |
22282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22283 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 22284 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22285 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22286 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
22287 | { |
22288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22289 | (arg1)->base_OnEndSize(arg2,arg3); | |
22290 | ||
22291 | wxPyEndAllowThreads(__tstate); | |
22292 | if (PyErr_Occurred()) SWIG_fail; | |
22293 | } | |
22294 | Py_INCREF(Py_None); resultobj = Py_None; | |
22295 | return resultobj; | |
22296 | fail: | |
22297 | return NULL; | |
22298 | } | |
22299 | ||
22300 | ||
c370783e | 22301 | static PyObject * PyDivisionShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
22302 | PyObject *obj; |
22303 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22304 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDivisionShape, obj); | |
22305 | Py_INCREF(obj); | |
22306 | return Py_BuildValue((char *)""); | |
22307 | } | |
c370783e | 22308 | static PyObject *_wrap_new_PyEllipseShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22309 | PyObject *resultobj; |
22310 | double arg1 = (double) 0.0 ; | |
22311 | double arg2 = (double) 0.0 ; | |
22312 | wxPyEllipseShape *result; | |
8edf1c75 RD |
22313 | PyObject * obj0 = 0 ; |
22314 | PyObject * obj1 = 0 ; | |
44127b65 RD |
22315 | char *kwnames[] = { |
22316 | (char *) "width",(char *) "height", NULL | |
22317 | }; | |
22318 | ||
8edf1c75 RD |
22319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEllipseShape",kwnames,&obj0,&obj1)) goto fail; |
22320 | if (obj0) { | |
c370783e | 22321 | arg1 = (double)SWIG_As_double(obj0); |
2f4c0a16 | 22322 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
22323 | } |
22324 | if (obj1) { | |
c370783e | 22325 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 22326 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22327 | } |
44127b65 RD |
22328 | { |
22329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22330 | result = (wxPyEllipseShape *)new wxPyEllipseShape(arg1,arg2); | |
22331 | ||
22332 | wxPyEndAllowThreads(__tstate); | |
22333 | if (PyErr_Occurred()) SWIG_fail; | |
22334 | } | |
2f4c0a16 | 22335 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEllipseShape, 1); |
44127b65 RD |
22336 | return resultobj; |
22337 | fail: | |
22338 | return NULL; | |
22339 | } | |
22340 | ||
22341 | ||
c370783e | 22342 | static PyObject *_wrap_PyEllipseShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22343 | PyObject *resultobj; |
22344 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22345 | PyObject *arg2 = (PyObject *) 0 ; | |
22346 | PyObject *arg3 = (PyObject *) 0 ; | |
22347 | PyObject * obj0 = 0 ; | |
22348 | PyObject * obj1 = 0 ; | |
22349 | PyObject * obj2 = 0 ; | |
22350 | char *kwnames[] = { | |
22351 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22352 | }; | |
22353 | ||
22354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyEllipseShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
22355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
22357 | arg2 = obj1; |
22358 | arg3 = obj2; | |
22359 | { | |
22360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22361 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22362 | ||
22363 | wxPyEndAllowThreads(__tstate); | |
22364 | if (PyErr_Occurred()) SWIG_fail; | |
22365 | } | |
22366 | Py_INCREF(Py_None); resultobj = Py_None; | |
22367 | return resultobj; | |
22368 | fail: | |
22369 | return NULL; | |
22370 | } | |
22371 | ||
22372 | ||
c370783e | 22373 | static PyObject *_wrap_PyEllipseShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22374 | PyObject *resultobj; |
22375 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22376 | wxDC *arg2 = 0 ; | |
22377 | PyObject * obj0 = 0 ; | |
22378 | PyObject * obj1 = 0 ; | |
22379 | char *kwnames[] = { | |
22380 | (char *) "self",(char *) "dc", NULL | |
22381 | }; | |
22382 | ||
22383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22387 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22388 | SWIG_fail; | |
44127b65 | 22389 | if (arg2 == NULL) { |
2f4c0a16 RD |
22390 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22391 | SWIG_fail; | |
44127b65 RD |
22392 | } |
22393 | { | |
22394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22395 | (arg1)->base_OnDraw(*arg2); | |
22396 | ||
22397 | wxPyEndAllowThreads(__tstate); | |
22398 | if (PyErr_Occurred()) SWIG_fail; | |
22399 | } | |
22400 | Py_INCREF(Py_None); resultobj = Py_None; | |
22401 | return resultobj; | |
22402 | fail: | |
22403 | return NULL; | |
22404 | } | |
22405 | ||
22406 | ||
c370783e | 22407 | static PyObject *_wrap_PyEllipseShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22408 | PyObject *resultobj; |
22409 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22410 | wxDC *arg2 = 0 ; | |
22411 | PyObject * obj0 = 0 ; | |
22412 | PyObject * obj1 = 0 ; | |
22413 | char *kwnames[] = { | |
22414 | (char *) "self",(char *) "dc", NULL | |
22415 | }; | |
22416 | ||
22417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22420 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22422 | SWIG_fail; | |
44127b65 | 22423 | if (arg2 == NULL) { |
2f4c0a16 RD |
22424 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22425 | SWIG_fail; | |
44127b65 RD |
22426 | } |
22427 | { | |
22428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22429 | (arg1)->base_OnDrawContents(*arg2); | |
22430 | ||
22431 | wxPyEndAllowThreads(__tstate); | |
22432 | if (PyErr_Occurred()) SWIG_fail; | |
22433 | } | |
22434 | Py_INCREF(Py_None); resultobj = Py_None; | |
22435 | return resultobj; | |
22436 | fail: | |
22437 | return NULL; | |
22438 | } | |
22439 | ||
22440 | ||
c370783e | 22441 | static PyObject *_wrap_PyEllipseShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22442 | PyObject *resultobj; |
22443 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22444 | wxDC *arg2 = 0 ; | |
22445 | bool arg3 = (bool) FALSE ; | |
22446 | PyObject * obj0 = 0 ; | |
22447 | PyObject * obj1 = 0 ; | |
22448 | PyObject * obj2 = 0 ; | |
22449 | char *kwnames[] = { | |
22450 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
22451 | }; | |
22452 | ||
22453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyEllipseShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
22454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22456 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22457 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22458 | SWIG_fail; | |
44127b65 | 22459 | if (arg2 == NULL) { |
2f4c0a16 RD |
22460 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22461 | SWIG_fail; | |
44127b65 RD |
22462 | } |
22463 | if (obj2) { | |
c370783e | 22464 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 22465 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
22466 | } |
22467 | { | |
22468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22469 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
22470 | ||
22471 | wxPyEndAllowThreads(__tstate); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | } | |
22474 | Py_INCREF(Py_None); resultobj = Py_None; | |
22475 | return resultobj; | |
22476 | fail: | |
22477 | return NULL; | |
22478 | } | |
22479 | ||
22480 | ||
c370783e | 22481 | static PyObject *_wrap_PyEllipseShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22482 | PyObject *resultobj; |
22483 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22484 | wxDC *arg2 = 0 ; | |
22485 | PyObject * obj0 = 0 ; | |
22486 | PyObject * obj1 = 0 ; | |
22487 | char *kwnames[] = { | |
22488 | (char *) "self",(char *) "dc", NULL | |
22489 | }; | |
22490 | ||
22491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22494 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22495 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22496 | SWIG_fail; | |
44127b65 | 22497 | if (arg2 == NULL) { |
2f4c0a16 RD |
22498 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22499 | SWIG_fail; | |
44127b65 RD |
22500 | } |
22501 | { | |
22502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22503 | (arg1)->base_OnMoveLinks(*arg2); | |
22504 | ||
22505 | wxPyEndAllowThreads(__tstate); | |
22506 | if (PyErr_Occurred()) SWIG_fail; | |
22507 | } | |
22508 | Py_INCREF(Py_None); resultobj = Py_None; | |
22509 | return resultobj; | |
22510 | fail: | |
22511 | return NULL; | |
22512 | } | |
22513 | ||
22514 | ||
c370783e | 22515 | static PyObject *_wrap_PyEllipseShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22516 | PyObject *resultobj; |
22517 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22518 | wxDC *arg2 = 0 ; | |
22519 | PyObject * obj0 = 0 ; | |
22520 | PyObject * obj1 = 0 ; | |
22521 | char *kwnames[] = { | |
22522 | (char *) "self",(char *) "dc", NULL | |
22523 | }; | |
22524 | ||
22525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22528 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22529 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22530 | SWIG_fail; | |
44127b65 | 22531 | if (arg2 == NULL) { |
2f4c0a16 RD |
22532 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22533 | SWIG_fail; | |
44127b65 RD |
22534 | } |
22535 | { | |
22536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22537 | (arg1)->base_OnErase(*arg2); | |
22538 | ||
22539 | wxPyEndAllowThreads(__tstate); | |
22540 | if (PyErr_Occurred()) SWIG_fail; | |
22541 | } | |
22542 | Py_INCREF(Py_None); resultobj = Py_None; | |
22543 | return resultobj; | |
22544 | fail: | |
22545 | return NULL; | |
22546 | } | |
22547 | ||
22548 | ||
c370783e | 22549 | static PyObject *_wrap_PyEllipseShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22550 | PyObject *resultobj; |
22551 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22552 | wxDC *arg2 = 0 ; | |
22553 | PyObject * obj0 = 0 ; | |
22554 | PyObject * obj1 = 0 ; | |
22555 | char *kwnames[] = { | |
22556 | (char *) "self",(char *) "dc", NULL | |
22557 | }; | |
22558 | ||
22559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22562 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22563 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22564 | SWIG_fail; | |
44127b65 | 22565 | if (arg2 == NULL) { |
2f4c0a16 RD |
22566 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22567 | SWIG_fail; | |
44127b65 RD |
22568 | } |
22569 | { | |
22570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22571 | (arg1)->base_OnEraseContents(*arg2); | |
22572 | ||
22573 | wxPyEndAllowThreads(__tstate); | |
22574 | if (PyErr_Occurred()) SWIG_fail; | |
22575 | } | |
22576 | Py_INCREF(Py_None); resultobj = Py_None; | |
22577 | return resultobj; | |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
c370783e | 22583 | static PyObject *_wrap_PyEllipseShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22584 | PyObject *resultobj; |
22585 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22586 | wxDC *arg2 = 0 ; | |
22587 | PyObject * obj0 = 0 ; | |
22588 | PyObject * obj1 = 0 ; | |
22589 | char *kwnames[] = { | |
22590 | (char *) "self",(char *) "dc", NULL | |
22591 | }; | |
22592 | ||
22593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22596 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22597 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22598 | SWIG_fail; | |
44127b65 | 22599 | if (arg2 == NULL) { |
2f4c0a16 RD |
22600 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22601 | SWIG_fail; | |
44127b65 RD |
22602 | } |
22603 | { | |
22604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22605 | (arg1)->base_OnHighlight(*arg2); | |
22606 | ||
22607 | wxPyEndAllowThreads(__tstate); | |
22608 | if (PyErr_Occurred()) SWIG_fail; | |
22609 | } | |
22610 | Py_INCREF(Py_None); resultobj = Py_None; | |
22611 | return resultobj; | |
22612 | fail: | |
22613 | return NULL; | |
22614 | } | |
22615 | ||
22616 | ||
c370783e | 22617 | static PyObject *_wrap_PyEllipseShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22618 | PyObject *resultobj; |
22619 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22620 | double arg2 ; | |
22621 | double arg3 ; | |
22622 | int arg4 = (int) 0 ; | |
22623 | int arg5 = (int) 0 ; | |
22624 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22625 | PyObject * obj1 = 0 ; |
22626 | PyObject * obj2 = 0 ; | |
22627 | PyObject * obj3 = 0 ; | |
22628 | PyObject * obj4 = 0 ; | |
44127b65 RD |
22629 | char *kwnames[] = { |
22630 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22631 | }; | |
22632 | ||
8edf1c75 | 22633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22636 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 22637 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22638 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22639 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22640 | if (obj3) { |
c370783e | 22641 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 22642 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
22643 | } |
22644 | if (obj4) { | |
c370783e | 22645 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 22646 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22647 | } |
44127b65 RD |
22648 | { |
22649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22650 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
22651 | ||
22652 | wxPyEndAllowThreads(__tstate); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | } | |
22655 | Py_INCREF(Py_None); resultobj = Py_None; | |
22656 | return resultobj; | |
22657 | fail: | |
22658 | return NULL; | |
22659 | } | |
22660 | ||
22661 | ||
c370783e | 22662 | static PyObject *_wrap_PyEllipseShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22663 | PyObject *resultobj; |
22664 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22665 | double arg2 ; | |
22666 | double arg3 ; | |
22667 | int arg4 = (int) 0 ; | |
22668 | int arg5 = (int) 0 ; | |
22669 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22670 | PyObject * obj1 = 0 ; |
22671 | PyObject * obj2 = 0 ; | |
22672 | PyObject * obj3 = 0 ; | |
22673 | PyObject * obj4 = 0 ; | |
44127b65 RD |
22674 | char *kwnames[] = { |
22675 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22676 | }; | |
22677 | ||
8edf1c75 | 22678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22681 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 22682 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22683 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22684 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22685 | if (obj3) { |
c370783e | 22686 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 22687 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
22688 | } |
22689 | if (obj4) { | |
c370783e | 22690 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 22691 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22692 | } |
44127b65 RD |
22693 | { |
22694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22695 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
22696 | ||
22697 | wxPyEndAllowThreads(__tstate); | |
22698 | if (PyErr_Occurred()) SWIG_fail; | |
22699 | } | |
22700 | Py_INCREF(Py_None); resultobj = Py_None; | |
22701 | return resultobj; | |
22702 | fail: | |
22703 | return NULL; | |
22704 | } | |
22705 | ||
22706 | ||
c370783e | 22707 | static PyObject *_wrap_PyEllipseShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22708 | PyObject *resultobj; |
22709 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22710 | double arg2 ; | |
22711 | double arg3 ; | |
22712 | int arg4 = (int) 0 ; | |
22713 | int arg5 = (int) 0 ; | |
22714 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22715 | PyObject * obj1 = 0 ; |
22716 | PyObject * obj2 = 0 ; | |
22717 | PyObject * obj3 = 0 ; | |
22718 | PyObject * obj4 = 0 ; | |
44127b65 RD |
22719 | char *kwnames[] = { |
22720 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22721 | }; | |
22722 | ||
8edf1c75 | 22723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22726 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 22727 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22728 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22729 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22730 | if (obj3) { |
c370783e | 22731 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 22732 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
22733 | } |
22734 | if (obj4) { | |
c370783e | 22735 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 22736 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22737 | } |
44127b65 RD |
22738 | { |
22739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22740 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
22741 | ||
22742 | wxPyEndAllowThreads(__tstate); | |
22743 | if (PyErr_Occurred()) SWIG_fail; | |
22744 | } | |
22745 | Py_INCREF(Py_None); resultobj = Py_None; | |
22746 | return resultobj; | |
22747 | fail: | |
22748 | return NULL; | |
22749 | } | |
22750 | ||
22751 | ||
c370783e | 22752 | static PyObject *_wrap_PyEllipseShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22753 | PyObject *resultobj; |
22754 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22755 | double arg2 ; | |
22756 | double arg3 ; | |
22757 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22758 | PyObject * obj1 = 0 ; |
22759 | PyObject * obj2 = 0 ; | |
44127b65 RD |
22760 | char *kwnames[] = { |
22761 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22762 | }; | |
22763 | ||
8edf1c75 | 22764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyEllipseShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22767 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 22768 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22769 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22770 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
22771 | { |
22772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22773 | (arg1)->base_OnSize(arg2,arg3); | |
22774 | ||
22775 | wxPyEndAllowThreads(__tstate); | |
22776 | if (PyErr_Occurred()) SWIG_fail; | |
22777 | } | |
22778 | Py_INCREF(Py_None); resultobj = Py_None; | |
22779 | return resultobj; | |
22780 | fail: | |
22781 | return NULL; | |
22782 | } | |
22783 | ||
22784 | ||
c370783e | 22785 | static PyObject *_wrap_PyEllipseShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22786 | PyObject *resultobj; |
22787 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22788 | wxDC *arg2 = 0 ; | |
22789 | double arg3 ; | |
22790 | double arg4 ; | |
22791 | double arg5 ; | |
22792 | double arg6 ; | |
22793 | bool arg7 = (bool) True ; | |
22794 | bool result; | |
22795 | PyObject * obj0 = 0 ; | |
22796 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
22797 | PyObject * obj2 = 0 ; |
22798 | PyObject * obj3 = 0 ; | |
22799 | PyObject * obj4 = 0 ; | |
22800 | PyObject * obj5 = 0 ; | |
44127b65 RD |
22801 | PyObject * obj6 = 0 ; |
22802 | char *kwnames[] = { | |
22803 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
22804 | }; | |
22805 | ||
8edf1c75 | 22806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyEllipseShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22809 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22810 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22811 | SWIG_fail; | |
44127b65 | 22812 | if (arg2 == NULL) { |
2f4c0a16 RD |
22813 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22814 | SWIG_fail; | |
22815 | } | |
c370783e | 22816 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22817 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22818 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 22819 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22820 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 22821 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22822 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 22823 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 22824 | if (obj6) { |
c370783e | 22825 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 22826 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
22827 | } |
22828 | { | |
22829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22830 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
22831 | ||
22832 | wxPyEndAllowThreads(__tstate); | |
22833 | if (PyErr_Occurred()) SWIG_fail; | |
22834 | } | |
fbc46b20 RD |
22835 | { |
22836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22837 | } | |
44127b65 RD |
22838 | return resultobj; |
22839 | fail: | |
22840 | return NULL; | |
22841 | } | |
22842 | ||
22843 | ||
c370783e | 22844 | static PyObject *_wrap_PyEllipseShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22845 | PyObject *resultobj; |
22846 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22847 | wxDC *arg2 = 0 ; | |
22848 | double arg3 ; | |
22849 | double arg4 ; | |
22850 | double arg5 ; | |
22851 | double arg6 ; | |
22852 | bool arg7 = (bool) True ; | |
22853 | PyObject * obj0 = 0 ; | |
22854 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
22855 | PyObject * obj2 = 0 ; |
22856 | PyObject * obj3 = 0 ; | |
22857 | PyObject * obj4 = 0 ; | |
22858 | PyObject * obj5 = 0 ; | |
44127b65 RD |
22859 | PyObject * obj6 = 0 ; |
22860 | char *kwnames[] = { | |
22861 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
22862 | }; | |
22863 | ||
8edf1c75 | 22864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyEllipseShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22868 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22869 | SWIG_fail; | |
44127b65 | 22870 | if (arg2 == NULL) { |
2f4c0a16 RD |
22871 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22872 | SWIG_fail; | |
22873 | } | |
c370783e | 22874 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22875 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22876 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 22877 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22878 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 22879 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22880 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 22881 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 22882 | if (obj6) { |
c370783e | 22883 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 22884 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
22885 | } |
22886 | { | |
22887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22888 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
22889 | ||
22890 | wxPyEndAllowThreads(__tstate); | |
22891 | if (PyErr_Occurred()) SWIG_fail; | |
22892 | } | |
22893 | Py_INCREF(Py_None); resultobj = Py_None; | |
22894 | return resultobj; | |
22895 | fail: | |
22896 | return NULL; | |
22897 | } | |
22898 | ||
22899 | ||
c370783e | 22900 | static PyObject *_wrap_PyEllipseShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22901 | PyObject *resultobj; |
22902 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22903 | bool arg2 ; | |
22904 | double arg3 ; | |
22905 | double arg4 ; | |
22906 | int arg5 = (int) 0 ; | |
22907 | int arg6 = (int) 0 ; | |
22908 | PyObject * obj0 = 0 ; | |
22909 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
22910 | PyObject * obj2 = 0 ; |
22911 | PyObject * obj3 = 0 ; | |
22912 | PyObject * obj4 = 0 ; | |
22913 | PyObject * obj5 = 0 ; | |
44127b65 RD |
22914 | char *kwnames[] = { |
22915 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22916 | }; | |
22917 | ||
8edf1c75 | 22918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyEllipseShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
22919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22921 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 22922 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22923 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22924 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22925 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 22926 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22927 | if (obj4) { |
c370783e | 22928 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 22929 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
22930 | } |
22931 | if (obj5) { | |
c370783e | 22932 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 22933 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22934 | } |
44127b65 RD |
22935 | { |
22936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22937 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
22938 | ||
22939 | wxPyEndAllowThreads(__tstate); | |
22940 | if (PyErr_Occurred()) SWIG_fail; | |
22941 | } | |
22942 | Py_INCREF(Py_None); resultobj = Py_None; | |
22943 | return resultobj; | |
22944 | fail: | |
22945 | return NULL; | |
22946 | } | |
22947 | ||
22948 | ||
c370783e | 22949 | static PyObject *_wrap_PyEllipseShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22950 | PyObject *resultobj; |
22951 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22952 | double arg2 ; | |
22953 | double arg3 ; | |
22954 | int arg4 = (int) 0 ; | |
22955 | int arg5 = (int) 0 ; | |
22956 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22957 | PyObject * obj1 = 0 ; |
22958 | PyObject * obj2 = 0 ; | |
22959 | PyObject * obj3 = 0 ; | |
22960 | PyObject * obj4 = 0 ; | |
44127b65 RD |
22961 | char *kwnames[] = { |
22962 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
22963 | }; | |
22964 | ||
8edf1c75 | 22965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
22967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22968 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 22969 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22970 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 22971 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22972 | if (obj3) { |
c370783e | 22973 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 22974 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
22975 | } |
22976 | if (obj4) { | |
c370783e | 22977 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 22978 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 22979 | } |
44127b65 RD |
22980 | { |
22981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22982 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
22983 | ||
22984 | wxPyEndAllowThreads(__tstate); | |
22985 | if (PyErr_Occurred()) SWIG_fail; | |
22986 | } | |
22987 | Py_INCREF(Py_None); resultobj = Py_None; | |
22988 | return resultobj; | |
22989 | fail: | |
22990 | return NULL; | |
22991 | } | |
22992 | ||
22993 | ||
c370783e | 22994 | static PyObject *_wrap_PyEllipseShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
22995 | PyObject *resultobj; |
22996 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
22997 | double arg2 ; | |
22998 | double arg3 ; | |
22999 | int arg4 = (int) 0 ; | |
23000 | int arg5 = (int) 0 ; | |
23001 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23002 | PyObject * obj1 = 0 ; |
23003 | PyObject * obj2 = 0 ; | |
23004 | PyObject * obj3 = 0 ; | |
23005 | PyObject * obj4 = 0 ; | |
44127b65 RD |
23006 | char *kwnames[] = { |
23007 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23008 | }; | |
23009 | ||
8edf1c75 | 23010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
23011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23013 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 23014 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23015 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23016 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23017 | if (obj3) { |
c370783e | 23018 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 23019 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23020 | } |
23021 | if (obj4) { | |
c370783e | 23022 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 23023 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23024 | } |
44127b65 RD |
23025 | { |
23026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23027 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
23028 | ||
23029 | wxPyEndAllowThreads(__tstate); | |
23030 | if (PyErr_Occurred()) SWIG_fail; | |
23031 | } | |
23032 | Py_INCREF(Py_None); resultobj = Py_None; | |
23033 | return resultobj; | |
23034 | fail: | |
23035 | return NULL; | |
23036 | } | |
23037 | ||
23038 | ||
c370783e | 23039 | static PyObject *_wrap_PyEllipseShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23040 | PyObject *resultobj; |
23041 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23042 | bool arg2 ; | |
23043 | double arg3 ; | |
23044 | double arg4 ; | |
23045 | int arg5 = (int) 0 ; | |
23046 | int arg6 = (int) 0 ; | |
23047 | PyObject * obj0 = 0 ; | |
23048 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
23049 | PyObject * obj2 = 0 ; |
23050 | PyObject * obj3 = 0 ; | |
23051 | PyObject * obj4 = 0 ; | |
23052 | PyObject * obj5 = 0 ; | |
44127b65 RD |
23053 | char *kwnames[] = { |
23054 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23055 | }; | |
23056 | ||
8edf1c75 | 23057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyEllipseShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
23058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23060 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 23061 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23062 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23063 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23064 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 23065 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23066 | if (obj4) { |
c370783e | 23067 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 23068 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23069 | } |
23070 | if (obj5) { | |
c370783e | 23071 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 23072 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23073 | } |
44127b65 RD |
23074 | { |
23075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23076 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
23077 | ||
23078 | wxPyEndAllowThreads(__tstate); | |
23079 | if (PyErr_Occurred()) SWIG_fail; | |
23080 | } | |
23081 | Py_INCREF(Py_None); resultobj = Py_None; | |
23082 | return resultobj; | |
23083 | fail: | |
23084 | return NULL; | |
23085 | } | |
23086 | ||
23087 | ||
c370783e | 23088 | static PyObject *_wrap_PyEllipseShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23089 | PyObject *resultobj; |
23090 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23091 | double arg2 ; | |
23092 | double arg3 ; | |
23093 | int arg4 = (int) 0 ; | |
23094 | int arg5 = (int) 0 ; | |
23095 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23096 | PyObject * obj1 = 0 ; |
23097 | PyObject * obj2 = 0 ; | |
23098 | PyObject * obj3 = 0 ; | |
23099 | PyObject * obj4 = 0 ; | |
44127b65 RD |
23100 | char *kwnames[] = { |
23101 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23102 | }; | |
23103 | ||
8edf1c75 | 23104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
23105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23107 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 23108 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23109 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23110 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23111 | if (obj3) { |
c370783e | 23112 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 23113 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23114 | } |
23115 | if (obj4) { | |
c370783e | 23116 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 23117 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23118 | } |
44127b65 RD |
23119 | { |
23120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23121 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
23122 | ||
23123 | wxPyEndAllowThreads(__tstate); | |
23124 | if (PyErr_Occurred()) SWIG_fail; | |
23125 | } | |
23126 | Py_INCREF(Py_None); resultobj = Py_None; | |
23127 | return resultobj; | |
23128 | fail: | |
23129 | return NULL; | |
23130 | } | |
23131 | ||
23132 | ||
c370783e | 23133 | static PyObject *_wrap_PyEllipseShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23134 | PyObject *resultobj; |
23135 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23136 | double arg2 ; | |
23137 | double arg3 ; | |
23138 | int arg4 = (int) 0 ; | |
23139 | int arg5 = (int) 0 ; | |
23140 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23141 | PyObject * obj1 = 0 ; |
23142 | PyObject * obj2 = 0 ; | |
23143 | PyObject * obj3 = 0 ; | |
23144 | PyObject * obj4 = 0 ; | |
44127b65 RD |
23145 | char *kwnames[] = { |
23146 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23147 | }; | |
23148 | ||
8edf1c75 | 23149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyEllipseShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
23150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23152 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 23153 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23154 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23155 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23156 | if (obj3) { |
c370783e | 23157 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 23158 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23159 | } |
23160 | if (obj4) { | |
c370783e | 23161 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 23162 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23163 | } |
44127b65 RD |
23164 | { |
23165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23166 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
23167 | ||
23168 | wxPyEndAllowThreads(__tstate); | |
23169 | if (PyErr_Occurred()) SWIG_fail; | |
23170 | } | |
23171 | Py_INCREF(Py_None); resultobj = Py_None; | |
23172 | return resultobj; | |
23173 | fail: | |
23174 | return NULL; | |
23175 | } | |
23176 | ||
23177 | ||
c370783e | 23178 | static PyObject *_wrap_PyEllipseShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23179 | PyObject *resultobj; |
23180 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23181 | wxDC *arg2 = 0 ; | |
23182 | double arg3 ; | |
23183 | double arg4 ; | |
23184 | double arg5 ; | |
23185 | double arg6 ; | |
23186 | PyObject * obj0 = 0 ; | |
23187 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
23188 | PyObject * obj2 = 0 ; |
23189 | PyObject * obj3 = 0 ; | |
23190 | PyObject * obj4 = 0 ; | |
23191 | PyObject * obj5 = 0 ; | |
44127b65 RD |
23192 | char *kwnames[] = { |
23193 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
23194 | }; | |
23195 | ||
8edf1c75 | 23196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyEllipseShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
23197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23199 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23200 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23201 | SWIG_fail; | |
44127b65 | 23202 | if (arg2 == NULL) { |
2f4c0a16 RD |
23203 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23204 | SWIG_fail; | |
8edf1c75 | 23205 | } |
c370783e | 23206 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23207 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23208 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 23209 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23210 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 23211 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23212 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 23213 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
23214 | { |
23215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23216 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
23217 | ||
23218 | wxPyEndAllowThreads(__tstate); | |
23219 | if (PyErr_Occurred()) SWIG_fail; | |
23220 | } | |
23221 | Py_INCREF(Py_None); resultobj = Py_None; | |
23222 | return resultobj; | |
23223 | fail: | |
23224 | return NULL; | |
23225 | } | |
23226 | ||
23227 | ||
c370783e | 23228 | static PyObject *_wrap_PyEllipseShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23229 | PyObject *resultobj; |
23230 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23231 | wxDC *arg2 = 0 ; | |
23232 | PyObject * obj0 = 0 ; | |
23233 | PyObject * obj1 = 0 ; | |
23234 | char *kwnames[] = { | |
23235 | (char *) "self",(char *) "dc", NULL | |
23236 | }; | |
23237 | ||
23238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23241 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23242 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23243 | SWIG_fail; | |
44127b65 | 23244 | if (arg2 == NULL) { |
2f4c0a16 RD |
23245 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23246 | SWIG_fail; | |
44127b65 RD |
23247 | } |
23248 | { | |
23249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23250 | (arg1)->base_OnDrawControlPoints(*arg2); | |
23251 | ||
23252 | wxPyEndAllowThreads(__tstate); | |
23253 | if (PyErr_Occurred()) SWIG_fail; | |
23254 | } | |
23255 | Py_INCREF(Py_None); resultobj = Py_None; | |
23256 | return resultobj; | |
23257 | fail: | |
23258 | return NULL; | |
23259 | } | |
23260 | ||
23261 | ||
c370783e | 23262 | static PyObject *_wrap_PyEllipseShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23263 | PyObject *resultobj; |
23264 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23265 | wxDC *arg2 = 0 ; | |
23266 | PyObject * obj0 = 0 ; | |
23267 | PyObject * obj1 = 0 ; | |
23268 | char *kwnames[] = { | |
23269 | (char *) "self",(char *) "dc", NULL | |
23270 | }; | |
23271 | ||
23272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEllipseShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23277 | SWIG_fail; | |
44127b65 | 23278 | if (arg2 == NULL) { |
2f4c0a16 RD |
23279 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23280 | SWIG_fail; | |
44127b65 RD |
23281 | } |
23282 | { | |
23283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23284 | (arg1)->base_OnEraseControlPoints(*arg2); | |
23285 | ||
23286 | wxPyEndAllowThreads(__tstate); | |
23287 | if (PyErr_Occurred()) SWIG_fail; | |
23288 | } | |
23289 | Py_INCREF(Py_None); resultobj = Py_None; | |
23290 | return resultobj; | |
23291 | fail: | |
23292 | return NULL; | |
23293 | } | |
23294 | ||
23295 | ||
c370783e | 23296 | static PyObject *_wrap_PyEllipseShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23297 | PyObject *resultobj; |
23298 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23299 | wxDC *arg2 = 0 ; | |
23300 | bool arg3 = (bool) True ; | |
23301 | PyObject * obj0 = 0 ; | |
23302 | PyObject * obj1 = 0 ; | |
23303 | PyObject * obj2 = 0 ; | |
23304 | char *kwnames[] = { | |
23305 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
23306 | }; | |
23307 | ||
23308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyEllipseShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
23309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23311 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23312 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23313 | SWIG_fail; | |
44127b65 | 23314 | if (arg2 == NULL) { |
2f4c0a16 RD |
23315 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23316 | SWIG_fail; | |
44127b65 RD |
23317 | } |
23318 | if (obj2) { | |
c370783e | 23319 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 23320 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
23321 | } |
23322 | { | |
23323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23324 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
23325 | ||
23326 | wxPyEndAllowThreads(__tstate); | |
23327 | if (PyErr_Occurred()) SWIG_fail; | |
23328 | } | |
23329 | Py_INCREF(Py_None); resultobj = Py_None; | |
23330 | return resultobj; | |
23331 | fail: | |
23332 | return NULL; | |
23333 | } | |
23334 | ||
23335 | ||
c370783e | 23336 | static PyObject *_wrap_PyEllipseShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23337 | PyObject *resultobj; |
23338 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23339 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
23340 | bool arg3 ; | |
23341 | double arg4 ; | |
23342 | double arg5 ; | |
23343 | int arg6 = (int) 0 ; | |
23344 | int arg7 = (int) 0 ; | |
23345 | PyObject * obj0 = 0 ; | |
23346 | PyObject * obj1 = 0 ; | |
23347 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
23348 | PyObject * obj3 = 0 ; |
23349 | PyObject * obj4 = 0 ; | |
23350 | PyObject * obj5 = 0 ; | |
23351 | PyObject * obj6 = 0 ; | |
44127b65 RD |
23352 | char *kwnames[] = { |
23353 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23354 | }; | |
23355 | ||
8edf1c75 | 23356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyEllipseShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
23357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23359 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
23360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23361 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 23362 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23363 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 23364 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23365 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 23366 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23367 | if (obj5) { |
c370783e | 23368 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 23369 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23370 | } |
23371 | if (obj6) { | |
c370783e | 23372 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 23373 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23374 | } |
44127b65 RD |
23375 | { |
23376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23377 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
23378 | ||
23379 | wxPyEndAllowThreads(__tstate); | |
23380 | if (PyErr_Occurred()) SWIG_fail; | |
23381 | } | |
23382 | Py_INCREF(Py_None); resultobj = Py_None; | |
23383 | return resultobj; | |
23384 | fail: | |
23385 | return NULL; | |
23386 | } | |
23387 | ||
23388 | ||
c370783e | 23389 | static PyObject *_wrap_PyEllipseShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23390 | PyObject *resultobj; |
23391 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23392 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
23393 | double arg3 ; | |
23394 | double arg4 ; | |
23395 | int arg5 = (int) 0 ; | |
23396 | int arg6 = (int) 0 ; | |
23397 | PyObject * obj0 = 0 ; | |
23398 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
23399 | PyObject * obj2 = 0 ; |
23400 | PyObject * obj3 = 0 ; | |
23401 | PyObject * obj4 = 0 ; | |
23402 | PyObject * obj5 = 0 ; | |
44127b65 RD |
23403 | char *kwnames[] = { |
23404 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23405 | }; | |
23406 | ||
8edf1c75 | 23407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyEllipseShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
23408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23410 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
23411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23412 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23413 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23414 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 23415 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23416 | if (obj4) { |
c370783e | 23417 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 23418 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23419 | } |
23420 | if (obj5) { | |
c370783e | 23421 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 23422 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23423 | } |
44127b65 RD |
23424 | { |
23425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23426 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
23427 | ||
23428 | wxPyEndAllowThreads(__tstate); | |
23429 | if (PyErr_Occurred()) SWIG_fail; | |
23430 | } | |
23431 | Py_INCREF(Py_None); resultobj = Py_None; | |
23432 | return resultobj; | |
23433 | fail: | |
23434 | return NULL; | |
23435 | } | |
23436 | ||
23437 | ||
c370783e | 23438 | static PyObject *_wrap_PyEllipseShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23439 | PyObject *resultobj; |
23440 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23441 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
23442 | double arg3 ; | |
23443 | double arg4 ; | |
23444 | int arg5 = (int) 0 ; | |
23445 | int arg6 = (int) 0 ; | |
23446 | PyObject * obj0 = 0 ; | |
23447 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
23448 | PyObject * obj2 = 0 ; |
23449 | PyObject * obj3 = 0 ; | |
23450 | PyObject * obj4 = 0 ; | |
23451 | PyObject * obj5 = 0 ; | |
44127b65 RD |
23452 | char *kwnames[] = { |
23453 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23454 | }; | |
23455 | ||
8edf1c75 | 23456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyEllipseShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
23457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
23460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23461 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23462 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23463 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 23464 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23465 | if (obj4) { |
c370783e | 23466 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 23467 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23468 | } |
23469 | if (obj5) { | |
c370783e | 23470 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 23471 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23472 | } |
44127b65 RD |
23473 | { |
23474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23475 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
23476 | ||
23477 | wxPyEndAllowThreads(__tstate); | |
23478 | if (PyErr_Occurred()) SWIG_fail; | |
23479 | } | |
23480 | Py_INCREF(Py_None); resultobj = Py_None; | |
23481 | return resultobj; | |
23482 | fail: | |
23483 | return NULL; | |
23484 | } | |
23485 | ||
23486 | ||
c370783e | 23487 | static PyObject *_wrap_PyEllipseShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23488 | PyObject *resultobj; |
23489 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23490 | double arg2 ; | |
23491 | double arg3 ; | |
23492 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23493 | PyObject * obj1 = 0 ; |
23494 | PyObject * obj2 = 0 ; | |
44127b65 RD |
23495 | char *kwnames[] = { |
23496 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23497 | }; | |
23498 | ||
8edf1c75 | 23499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyEllipseShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
23500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23502 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 23503 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23504 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23505 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
23506 | { |
23507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23508 | (arg1)->base_OnBeginSize(arg2,arg3); | |
23509 | ||
23510 | wxPyEndAllowThreads(__tstate); | |
23511 | if (PyErr_Occurred()) SWIG_fail; | |
23512 | } | |
23513 | Py_INCREF(Py_None); resultobj = Py_None; | |
23514 | return resultobj; | |
23515 | fail: | |
23516 | return NULL; | |
23517 | } | |
23518 | ||
23519 | ||
c370783e | 23520 | static PyObject *_wrap_PyEllipseShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23521 | PyObject *resultobj; |
23522 | wxPyEllipseShape *arg1 = (wxPyEllipseShape *) 0 ; | |
23523 | double arg2 ; | |
23524 | double arg3 ; | |
23525 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23526 | PyObject * obj1 = 0 ; |
23527 | PyObject * obj2 = 0 ; | |
44127b65 RD |
23528 | char *kwnames[] = { |
23529 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23530 | }; | |
23531 | ||
8edf1c75 | 23532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyEllipseShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
23533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEllipseShape, |
23534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23535 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 23536 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23537 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23538 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23539 | { |
2f4c0a16 RD |
23540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23541 | (arg1)->base_OnEndSize(arg2,arg3); | |
23542 | ||
23543 | wxPyEndAllowThreads(__tstate); | |
44127b65 RD |
23544 | if (PyErr_Occurred()) SWIG_fail; |
23545 | } | |
23546 | Py_INCREF(Py_None); resultobj = Py_None; | |
23547 | return resultobj; | |
23548 | fail: | |
23549 | return NULL; | |
23550 | } | |
23551 | ||
23552 | ||
c370783e | 23553 | static PyObject * PyEllipseShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
23554 | PyObject *obj; |
23555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23556 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEllipseShape, obj); | |
23557 | Py_INCREF(obj); | |
23558 | return Py_BuildValue((char *)""); | |
23559 | } | |
c370783e | 23560 | static PyObject *_wrap_new_PyCircleShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23561 | PyObject *resultobj; |
23562 | double arg1 = (double) 0.0 ; | |
23563 | wxPyCircleShape *result; | |
8edf1c75 | 23564 | PyObject * obj0 = 0 ; |
44127b65 RD |
23565 | char *kwnames[] = { |
23566 | (char *) "width", NULL | |
23567 | }; | |
23568 | ||
8edf1c75 RD |
23569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyCircleShape",kwnames,&obj0)) goto fail; |
23570 | if (obj0) { | |
c370783e | 23571 | arg1 = (double)SWIG_As_double(obj0); |
2f4c0a16 | 23572 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23573 | } |
44127b65 RD |
23574 | { |
23575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23576 | result = (wxPyCircleShape *)new wxPyCircleShape(arg1); | |
23577 | ||
23578 | wxPyEndAllowThreads(__tstate); | |
23579 | if (PyErr_Occurred()) SWIG_fail; | |
23580 | } | |
2f4c0a16 | 23581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCircleShape, 1); |
44127b65 RD |
23582 | return resultobj; |
23583 | fail: | |
23584 | return NULL; | |
23585 | } | |
23586 | ||
23587 | ||
c370783e | 23588 | static PyObject *_wrap_PyCircleShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23589 | PyObject *resultobj; |
23590 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23591 | PyObject *arg2 = (PyObject *) 0 ; | |
23592 | PyObject *arg3 = (PyObject *) 0 ; | |
23593 | PyObject * obj0 = 0 ; | |
23594 | PyObject * obj1 = 0 ; | |
23595 | PyObject * obj2 = 0 ; | |
23596 | char *kwnames[] = { | |
23597 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23598 | }; | |
23599 | ||
23600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCircleShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
23601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
23603 | arg2 = obj1; |
23604 | arg3 = obj2; | |
23605 | { | |
23606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23607 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23608 | ||
23609 | wxPyEndAllowThreads(__tstate); | |
23610 | if (PyErr_Occurred()) SWIG_fail; | |
23611 | } | |
23612 | Py_INCREF(Py_None); resultobj = Py_None; | |
23613 | return resultobj; | |
23614 | fail: | |
23615 | return NULL; | |
23616 | } | |
23617 | ||
23618 | ||
c370783e | 23619 | static PyObject *_wrap_PyCircleShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23620 | PyObject *resultobj; |
23621 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23622 | wxDC *arg2 = 0 ; | |
23623 | PyObject * obj0 = 0 ; | |
23624 | PyObject * obj1 = 0 ; | |
23625 | char *kwnames[] = { | |
23626 | (char *) "self",(char *) "dc", NULL | |
23627 | }; | |
23628 | ||
23629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23633 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23634 | SWIG_fail; | |
44127b65 | 23635 | if (arg2 == NULL) { |
2f4c0a16 RD |
23636 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23637 | SWIG_fail; | |
44127b65 RD |
23638 | } |
23639 | { | |
23640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23641 | (arg1)->base_OnDraw(*arg2); | |
23642 | ||
23643 | wxPyEndAllowThreads(__tstate); | |
23644 | if (PyErr_Occurred()) SWIG_fail; | |
23645 | } | |
23646 | Py_INCREF(Py_None); resultobj = Py_None; | |
23647 | return resultobj; | |
23648 | fail: | |
23649 | return NULL; | |
23650 | } | |
23651 | ||
23652 | ||
c370783e | 23653 | static PyObject *_wrap_PyCircleShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23654 | PyObject *resultobj; |
23655 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23656 | wxDC *arg2 = 0 ; | |
23657 | PyObject * obj0 = 0 ; | |
23658 | PyObject * obj1 = 0 ; | |
23659 | char *kwnames[] = { | |
23660 | (char *) "self",(char *) "dc", NULL | |
23661 | }; | |
23662 | ||
23663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23667 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23668 | SWIG_fail; | |
44127b65 | 23669 | if (arg2 == NULL) { |
2f4c0a16 RD |
23670 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23671 | SWIG_fail; | |
44127b65 RD |
23672 | } |
23673 | { | |
23674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23675 | (arg1)->base_OnDrawContents(*arg2); | |
23676 | ||
23677 | wxPyEndAllowThreads(__tstate); | |
23678 | if (PyErr_Occurred()) SWIG_fail; | |
23679 | } | |
23680 | Py_INCREF(Py_None); resultobj = Py_None; | |
23681 | return resultobj; | |
23682 | fail: | |
23683 | return NULL; | |
23684 | } | |
23685 | ||
23686 | ||
c370783e | 23687 | static PyObject *_wrap_PyCircleShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23688 | PyObject *resultobj; |
23689 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23690 | wxDC *arg2 = 0 ; | |
23691 | bool arg3 = (bool) FALSE ; | |
23692 | PyObject * obj0 = 0 ; | |
23693 | PyObject * obj1 = 0 ; | |
23694 | PyObject * obj2 = 0 ; | |
23695 | char *kwnames[] = { | |
23696 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
23697 | }; | |
23698 | ||
23699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCircleShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
23700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23702 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23703 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23704 | SWIG_fail; | |
44127b65 | 23705 | if (arg2 == NULL) { |
2f4c0a16 RD |
23706 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23707 | SWIG_fail; | |
44127b65 RD |
23708 | } |
23709 | if (obj2) { | |
c370783e | 23710 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 23711 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
23712 | } |
23713 | { | |
23714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23715 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
23716 | ||
23717 | wxPyEndAllowThreads(__tstate); | |
23718 | if (PyErr_Occurred()) SWIG_fail; | |
23719 | } | |
23720 | Py_INCREF(Py_None); resultobj = Py_None; | |
23721 | return resultobj; | |
23722 | fail: | |
23723 | return NULL; | |
23724 | } | |
23725 | ||
23726 | ||
c370783e | 23727 | static PyObject *_wrap_PyCircleShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23728 | PyObject *resultobj; |
23729 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23730 | wxDC *arg2 = 0 ; | |
23731 | PyObject * obj0 = 0 ; | |
23732 | PyObject * obj1 = 0 ; | |
23733 | char *kwnames[] = { | |
23734 | (char *) "self",(char *) "dc", NULL | |
23735 | }; | |
23736 | ||
23737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23740 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23741 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23742 | SWIG_fail; | |
44127b65 | 23743 | if (arg2 == NULL) { |
2f4c0a16 RD |
23744 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23745 | SWIG_fail; | |
44127b65 RD |
23746 | } |
23747 | { | |
23748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23749 | (arg1)->base_OnMoveLinks(*arg2); | |
23750 | ||
23751 | wxPyEndAllowThreads(__tstate); | |
23752 | if (PyErr_Occurred()) SWIG_fail; | |
23753 | } | |
23754 | Py_INCREF(Py_None); resultobj = Py_None; | |
23755 | return resultobj; | |
23756 | fail: | |
23757 | return NULL; | |
23758 | } | |
23759 | ||
23760 | ||
c370783e | 23761 | static PyObject *_wrap_PyCircleShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23762 | PyObject *resultobj; |
23763 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23764 | wxDC *arg2 = 0 ; | |
23765 | PyObject * obj0 = 0 ; | |
23766 | PyObject * obj1 = 0 ; | |
23767 | char *kwnames[] = { | |
23768 | (char *) "self",(char *) "dc", NULL | |
23769 | }; | |
23770 | ||
23771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23774 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23775 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23776 | SWIG_fail; | |
44127b65 | 23777 | if (arg2 == NULL) { |
2f4c0a16 RD |
23778 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23779 | SWIG_fail; | |
44127b65 RD |
23780 | } |
23781 | { | |
23782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23783 | (arg1)->base_OnErase(*arg2); | |
23784 | ||
23785 | wxPyEndAllowThreads(__tstate); | |
23786 | if (PyErr_Occurred()) SWIG_fail; | |
23787 | } | |
23788 | Py_INCREF(Py_None); resultobj = Py_None; | |
23789 | return resultobj; | |
23790 | fail: | |
23791 | return NULL; | |
23792 | } | |
23793 | ||
23794 | ||
c370783e | 23795 | static PyObject *_wrap_PyCircleShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23796 | PyObject *resultobj; |
23797 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23798 | wxDC *arg2 = 0 ; | |
23799 | PyObject * obj0 = 0 ; | |
23800 | PyObject * obj1 = 0 ; | |
23801 | char *kwnames[] = { | |
23802 | (char *) "self",(char *) "dc", NULL | |
23803 | }; | |
23804 | ||
23805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23808 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23809 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23810 | SWIG_fail; | |
44127b65 | 23811 | if (arg2 == NULL) { |
2f4c0a16 RD |
23812 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23813 | SWIG_fail; | |
44127b65 RD |
23814 | } |
23815 | { | |
23816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23817 | (arg1)->base_OnEraseContents(*arg2); | |
23818 | ||
23819 | wxPyEndAllowThreads(__tstate); | |
23820 | if (PyErr_Occurred()) SWIG_fail; | |
23821 | } | |
23822 | Py_INCREF(Py_None); resultobj = Py_None; | |
23823 | return resultobj; | |
23824 | fail: | |
23825 | return NULL; | |
23826 | } | |
23827 | ||
23828 | ||
c370783e | 23829 | static PyObject *_wrap_PyCircleShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23830 | PyObject *resultobj; |
23831 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23832 | wxDC *arg2 = 0 ; | |
23833 | PyObject * obj0 = 0 ; | |
23834 | PyObject * obj1 = 0 ; | |
23835 | char *kwnames[] = { | |
23836 | (char *) "self",(char *) "dc", NULL | |
23837 | }; | |
23838 | ||
23839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23842 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
23843 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23844 | SWIG_fail; | |
44127b65 | 23845 | if (arg2 == NULL) { |
2f4c0a16 RD |
23846 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23847 | SWIG_fail; | |
44127b65 RD |
23848 | } |
23849 | { | |
23850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23851 | (arg1)->base_OnHighlight(*arg2); | |
23852 | ||
23853 | wxPyEndAllowThreads(__tstate); | |
23854 | if (PyErr_Occurred()) SWIG_fail; | |
23855 | } | |
23856 | Py_INCREF(Py_None); resultobj = Py_None; | |
23857 | return resultobj; | |
23858 | fail: | |
23859 | return NULL; | |
23860 | } | |
23861 | ||
23862 | ||
c370783e | 23863 | static PyObject *_wrap_PyCircleShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23864 | PyObject *resultobj; |
23865 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23866 | double arg2 ; | |
23867 | double arg3 ; | |
23868 | int arg4 = (int) 0 ; | |
23869 | int arg5 = (int) 0 ; | |
23870 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23871 | PyObject * obj1 = 0 ; |
23872 | PyObject * obj2 = 0 ; | |
23873 | PyObject * obj3 = 0 ; | |
23874 | PyObject * obj4 = 0 ; | |
44127b65 RD |
23875 | char *kwnames[] = { |
23876 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23877 | }; | |
23878 | ||
8edf1c75 | 23879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
23880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23882 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 23883 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23884 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23885 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23886 | if (obj3) { |
c370783e | 23887 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 23888 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23889 | } |
23890 | if (obj4) { | |
c370783e | 23891 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 23892 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23893 | } |
44127b65 RD |
23894 | { |
23895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23896 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
23897 | ||
23898 | wxPyEndAllowThreads(__tstate); | |
23899 | if (PyErr_Occurred()) SWIG_fail; | |
23900 | } | |
23901 | Py_INCREF(Py_None); resultobj = Py_None; | |
23902 | return resultobj; | |
23903 | fail: | |
23904 | return NULL; | |
23905 | } | |
23906 | ||
23907 | ||
c370783e | 23908 | static PyObject *_wrap_PyCircleShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23909 | PyObject *resultobj; |
23910 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23911 | double arg2 ; | |
23912 | double arg3 ; | |
23913 | int arg4 = (int) 0 ; | |
23914 | int arg5 = (int) 0 ; | |
23915 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23916 | PyObject * obj1 = 0 ; |
23917 | PyObject * obj2 = 0 ; | |
23918 | PyObject * obj3 = 0 ; | |
23919 | PyObject * obj4 = 0 ; | |
44127b65 RD |
23920 | char *kwnames[] = { |
23921 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23922 | }; | |
23923 | ||
8edf1c75 | 23924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
23925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23927 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 23928 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23929 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23930 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23931 | if (obj3) { |
c370783e | 23932 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 23933 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23934 | } |
23935 | if (obj4) { | |
c370783e | 23936 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 23937 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23938 | } |
44127b65 RD |
23939 | { |
23940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23941 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
23942 | ||
23943 | wxPyEndAllowThreads(__tstate); | |
23944 | if (PyErr_Occurred()) SWIG_fail; | |
23945 | } | |
23946 | Py_INCREF(Py_None); resultobj = Py_None; | |
23947 | return resultobj; | |
23948 | fail: | |
23949 | return NULL; | |
23950 | } | |
23951 | ||
23952 | ||
c370783e | 23953 | static PyObject *_wrap_PyCircleShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23954 | PyObject *resultobj; |
23955 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
23956 | double arg2 ; | |
23957 | double arg3 ; | |
23958 | int arg4 = (int) 0 ; | |
23959 | int arg5 = (int) 0 ; | |
23960 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23961 | PyObject * obj1 = 0 ; |
23962 | PyObject * obj2 = 0 ; | |
23963 | PyObject * obj3 = 0 ; | |
23964 | PyObject * obj4 = 0 ; | |
44127b65 RD |
23965 | char *kwnames[] = { |
23966 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
23967 | }; | |
23968 | ||
8edf1c75 | 23969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
23970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
23971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23972 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 23973 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23974 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 23975 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23976 | if (obj3) { |
c370783e | 23977 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 23978 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
23979 | } |
23980 | if (obj4) { | |
c370783e | 23981 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 23982 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 23983 | } |
44127b65 RD |
23984 | { |
23985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23986 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
23987 | ||
23988 | wxPyEndAllowThreads(__tstate); | |
23989 | if (PyErr_Occurred()) SWIG_fail; | |
23990 | } | |
23991 | Py_INCREF(Py_None); resultobj = Py_None; | |
23992 | return resultobj; | |
23993 | fail: | |
23994 | return NULL; | |
23995 | } | |
23996 | ||
23997 | ||
c370783e | 23998 | static PyObject *_wrap_PyCircleShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
23999 | PyObject *resultobj; |
24000 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24001 | double arg2 ; | |
24002 | double arg3 ; | |
24003 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24004 | PyObject * obj1 = 0 ; |
24005 | PyObject * obj2 = 0 ; | |
44127b65 RD |
24006 | char *kwnames[] = { |
24007 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24008 | }; | |
24009 | ||
8edf1c75 | 24010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCircleShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24013 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 24014 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24015 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24016 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
24017 | { |
24018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24019 | (arg1)->base_OnSize(arg2,arg3); | |
24020 | ||
24021 | wxPyEndAllowThreads(__tstate); | |
24022 | if (PyErr_Occurred()) SWIG_fail; | |
24023 | } | |
24024 | Py_INCREF(Py_None); resultobj = Py_None; | |
24025 | return resultobj; | |
24026 | fail: | |
24027 | return NULL; | |
24028 | } | |
24029 | ||
24030 | ||
c370783e | 24031 | static PyObject *_wrap_PyCircleShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24032 | PyObject *resultobj; |
24033 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24034 | wxDC *arg2 = 0 ; | |
24035 | double arg3 ; | |
24036 | double arg4 ; | |
24037 | double arg5 ; | |
24038 | double arg6 ; | |
24039 | bool arg7 = (bool) True ; | |
24040 | bool result; | |
24041 | PyObject * obj0 = 0 ; | |
24042 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24043 | PyObject * obj2 = 0 ; |
24044 | PyObject * obj3 = 0 ; | |
24045 | PyObject * obj4 = 0 ; | |
24046 | PyObject * obj5 = 0 ; | |
44127b65 RD |
24047 | PyObject * obj6 = 0 ; |
24048 | char *kwnames[] = { | |
24049 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
24050 | }; | |
24051 | ||
8edf1c75 | 24052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyCircleShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
24053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24056 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24057 | SWIG_fail; | |
44127b65 | 24058 | if (arg2 == NULL) { |
2f4c0a16 RD |
24059 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24060 | SWIG_fail; | |
24061 | } | |
c370783e | 24062 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24063 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24064 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 24065 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24066 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 24067 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24068 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 24069 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 24070 | if (obj6) { |
c370783e | 24071 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 24072 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
24073 | } |
24074 | { | |
24075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24076 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
24077 | ||
24078 | wxPyEndAllowThreads(__tstate); | |
24079 | if (PyErr_Occurred()) SWIG_fail; | |
24080 | } | |
fbc46b20 RD |
24081 | { |
24082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24083 | } | |
44127b65 RD |
24084 | return resultobj; |
24085 | fail: | |
24086 | return NULL; | |
24087 | } | |
24088 | ||
24089 | ||
c370783e | 24090 | static PyObject *_wrap_PyCircleShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24091 | PyObject *resultobj; |
24092 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24093 | wxDC *arg2 = 0 ; | |
24094 | double arg3 ; | |
24095 | double arg4 ; | |
24096 | double arg5 ; | |
24097 | double arg6 ; | |
24098 | bool arg7 = (bool) True ; | |
24099 | PyObject * obj0 = 0 ; | |
24100 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24101 | PyObject * obj2 = 0 ; |
24102 | PyObject * obj3 = 0 ; | |
24103 | PyObject * obj4 = 0 ; | |
24104 | PyObject * obj5 = 0 ; | |
44127b65 RD |
24105 | PyObject * obj6 = 0 ; |
24106 | char *kwnames[] = { | |
24107 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
24108 | }; | |
24109 | ||
8edf1c75 | 24110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyCircleShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
24111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24113 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24114 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24115 | SWIG_fail; | |
44127b65 | 24116 | if (arg2 == NULL) { |
2f4c0a16 RD |
24117 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24118 | SWIG_fail; | |
24119 | } | |
c370783e | 24120 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24121 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24122 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 24123 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24124 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 24125 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24126 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 24127 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 24128 | if (obj6) { |
c370783e | 24129 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 24130 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
24131 | } |
24132 | { | |
24133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24134 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
24135 | ||
24136 | wxPyEndAllowThreads(__tstate); | |
24137 | if (PyErr_Occurred()) SWIG_fail; | |
24138 | } | |
24139 | Py_INCREF(Py_None); resultobj = Py_None; | |
24140 | return resultobj; | |
24141 | fail: | |
24142 | return NULL; | |
24143 | } | |
24144 | ||
24145 | ||
c370783e | 24146 | static PyObject *_wrap_PyCircleShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24147 | PyObject *resultobj; |
24148 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24149 | bool arg2 ; | |
24150 | double arg3 ; | |
24151 | double arg4 ; | |
24152 | int arg5 = (int) 0 ; | |
24153 | int arg6 = (int) 0 ; | |
24154 | PyObject * obj0 = 0 ; | |
24155 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24156 | PyObject * obj2 = 0 ; |
24157 | PyObject * obj3 = 0 ; | |
24158 | PyObject * obj4 = 0 ; | |
24159 | PyObject * obj5 = 0 ; | |
44127b65 RD |
24160 | char *kwnames[] = { |
24161 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24162 | }; | |
24163 | ||
8edf1c75 | 24164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCircleShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
24165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24167 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 24168 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24169 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24170 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24171 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 24172 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24173 | if (obj4) { |
c370783e | 24174 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 24175 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24176 | } |
24177 | if (obj5) { | |
c370783e | 24178 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 24179 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24180 | } |
44127b65 RD |
24181 | { |
24182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24183 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
24184 | ||
24185 | wxPyEndAllowThreads(__tstate); | |
24186 | if (PyErr_Occurred()) SWIG_fail; | |
24187 | } | |
24188 | Py_INCREF(Py_None); resultobj = Py_None; | |
24189 | return resultobj; | |
24190 | fail: | |
24191 | return NULL; | |
24192 | } | |
24193 | ||
24194 | ||
c370783e | 24195 | static PyObject *_wrap_PyCircleShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24196 | PyObject *resultobj; |
24197 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24198 | double arg2 ; | |
24199 | double arg3 ; | |
24200 | int arg4 = (int) 0 ; | |
24201 | int arg5 = (int) 0 ; | |
24202 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24203 | PyObject * obj1 = 0 ; |
24204 | PyObject * obj2 = 0 ; | |
24205 | PyObject * obj3 = 0 ; | |
24206 | PyObject * obj4 = 0 ; | |
44127b65 RD |
24207 | char *kwnames[] = { |
24208 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24209 | }; | |
24210 | ||
8edf1c75 | 24211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
24212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24214 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 24215 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24216 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24217 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24218 | if (obj3) { |
c370783e | 24219 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 24220 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24221 | } |
24222 | if (obj4) { | |
c370783e | 24223 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 24224 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24225 | } |
44127b65 RD |
24226 | { |
24227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24228 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
24229 | ||
24230 | wxPyEndAllowThreads(__tstate); | |
24231 | if (PyErr_Occurred()) SWIG_fail; | |
24232 | } | |
24233 | Py_INCREF(Py_None); resultobj = Py_None; | |
24234 | return resultobj; | |
24235 | fail: | |
24236 | return NULL; | |
24237 | } | |
24238 | ||
24239 | ||
c370783e | 24240 | static PyObject *_wrap_PyCircleShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24241 | PyObject *resultobj; |
24242 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24243 | double arg2 ; | |
24244 | double arg3 ; | |
24245 | int arg4 = (int) 0 ; | |
24246 | int arg5 = (int) 0 ; | |
24247 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24248 | PyObject * obj1 = 0 ; |
24249 | PyObject * obj2 = 0 ; | |
24250 | PyObject * obj3 = 0 ; | |
24251 | PyObject * obj4 = 0 ; | |
44127b65 RD |
24252 | char *kwnames[] = { |
24253 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24254 | }; | |
24255 | ||
8edf1c75 | 24256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
24257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24259 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 24260 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24261 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24262 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24263 | if (obj3) { |
c370783e | 24264 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 24265 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24266 | } |
24267 | if (obj4) { | |
c370783e | 24268 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 24269 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24270 | } |
44127b65 RD |
24271 | { |
24272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24273 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
24274 | ||
24275 | wxPyEndAllowThreads(__tstate); | |
24276 | if (PyErr_Occurred()) SWIG_fail; | |
24277 | } | |
24278 | Py_INCREF(Py_None); resultobj = Py_None; | |
24279 | return resultobj; | |
24280 | fail: | |
24281 | return NULL; | |
24282 | } | |
24283 | ||
24284 | ||
c370783e | 24285 | static PyObject *_wrap_PyCircleShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24286 | PyObject *resultobj; |
24287 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24288 | bool arg2 ; | |
24289 | double arg3 ; | |
24290 | double arg4 ; | |
24291 | int arg5 = (int) 0 ; | |
24292 | int arg6 = (int) 0 ; | |
24293 | PyObject * obj0 = 0 ; | |
24294 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24295 | PyObject * obj2 = 0 ; |
24296 | PyObject * obj3 = 0 ; | |
24297 | PyObject * obj4 = 0 ; | |
24298 | PyObject * obj5 = 0 ; | |
44127b65 RD |
24299 | char *kwnames[] = { |
24300 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24301 | }; | |
24302 | ||
8edf1c75 | 24303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCircleShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
24304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24306 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 24307 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24308 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24309 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24310 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 24311 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24312 | if (obj4) { |
c370783e | 24313 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 24314 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24315 | } |
24316 | if (obj5) { | |
c370783e | 24317 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 24318 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24319 | } |
44127b65 RD |
24320 | { |
24321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24322 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
24323 | ||
24324 | wxPyEndAllowThreads(__tstate); | |
24325 | if (PyErr_Occurred()) SWIG_fail; | |
24326 | } | |
24327 | Py_INCREF(Py_None); resultobj = Py_None; | |
24328 | return resultobj; | |
24329 | fail: | |
24330 | return NULL; | |
24331 | } | |
24332 | ||
24333 | ||
c370783e | 24334 | static PyObject *_wrap_PyCircleShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24335 | PyObject *resultobj; |
24336 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24337 | double arg2 ; | |
24338 | double arg3 ; | |
24339 | int arg4 = (int) 0 ; | |
24340 | int arg5 = (int) 0 ; | |
24341 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24342 | PyObject * obj1 = 0 ; |
24343 | PyObject * obj2 = 0 ; | |
24344 | PyObject * obj3 = 0 ; | |
24345 | PyObject * obj4 = 0 ; | |
44127b65 RD |
24346 | char *kwnames[] = { |
24347 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24348 | }; | |
24349 | ||
8edf1c75 | 24350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
24351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24353 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 24354 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24355 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24356 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24357 | if (obj3) { |
c370783e | 24358 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 24359 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24360 | } |
24361 | if (obj4) { | |
c370783e | 24362 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 24363 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24364 | } |
44127b65 RD |
24365 | { |
24366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24367 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
24368 | ||
24369 | wxPyEndAllowThreads(__tstate); | |
24370 | if (PyErr_Occurred()) SWIG_fail; | |
24371 | } | |
24372 | Py_INCREF(Py_None); resultobj = Py_None; | |
24373 | return resultobj; | |
24374 | fail: | |
24375 | return NULL; | |
24376 | } | |
24377 | ||
24378 | ||
c370783e | 24379 | static PyObject *_wrap_PyCircleShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24380 | PyObject *resultobj; |
24381 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24382 | double arg2 ; | |
24383 | double arg3 ; | |
24384 | int arg4 = (int) 0 ; | |
24385 | int arg5 = (int) 0 ; | |
24386 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24387 | PyObject * obj1 = 0 ; |
24388 | PyObject * obj2 = 0 ; | |
24389 | PyObject * obj3 = 0 ; | |
24390 | PyObject * obj4 = 0 ; | |
44127b65 RD |
24391 | char *kwnames[] = { |
24392 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24393 | }; | |
24394 | ||
8edf1c75 | 24395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyCircleShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
24396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24398 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 24399 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24400 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24401 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24402 | if (obj3) { |
c370783e | 24403 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 24404 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24405 | } |
24406 | if (obj4) { | |
c370783e | 24407 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 24408 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24409 | } |
44127b65 RD |
24410 | { |
24411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24412 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
24413 | ||
24414 | wxPyEndAllowThreads(__tstate); | |
24415 | if (PyErr_Occurred()) SWIG_fail; | |
24416 | } | |
24417 | Py_INCREF(Py_None); resultobj = Py_None; | |
24418 | return resultobj; | |
24419 | fail: | |
24420 | return NULL; | |
24421 | } | |
24422 | ||
24423 | ||
c370783e | 24424 | static PyObject *_wrap_PyCircleShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24425 | PyObject *resultobj; |
24426 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24427 | wxDC *arg2 = 0 ; | |
24428 | double arg3 ; | |
24429 | double arg4 ; | |
24430 | double arg5 ; | |
24431 | double arg6 ; | |
24432 | PyObject * obj0 = 0 ; | |
24433 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24434 | PyObject * obj2 = 0 ; |
24435 | PyObject * obj3 = 0 ; | |
24436 | PyObject * obj4 = 0 ; | |
24437 | PyObject * obj5 = 0 ; | |
44127b65 RD |
24438 | char *kwnames[] = { |
24439 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
24440 | }; | |
24441 | ||
8edf1c75 | 24442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyCircleShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
24443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24446 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24447 | SWIG_fail; | |
44127b65 | 24448 | if (arg2 == NULL) { |
2f4c0a16 RD |
24449 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24450 | SWIG_fail; | |
8edf1c75 | 24451 | } |
c370783e | 24452 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24453 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24454 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 24455 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24456 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 24457 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24458 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 24459 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
24460 | { |
24461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24462 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
24463 | ||
24464 | wxPyEndAllowThreads(__tstate); | |
24465 | if (PyErr_Occurred()) SWIG_fail; | |
24466 | } | |
24467 | Py_INCREF(Py_None); resultobj = Py_None; | |
24468 | return resultobj; | |
24469 | fail: | |
24470 | return NULL; | |
24471 | } | |
24472 | ||
24473 | ||
c370783e | 24474 | static PyObject *_wrap_PyCircleShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24475 | PyObject *resultobj; |
24476 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24477 | wxDC *arg2 = 0 ; | |
24478 | PyObject * obj0 = 0 ; | |
24479 | PyObject * obj1 = 0 ; | |
24480 | char *kwnames[] = { | |
24481 | (char *) "self",(char *) "dc", NULL | |
24482 | }; | |
24483 | ||
24484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24488 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24489 | SWIG_fail; | |
44127b65 | 24490 | if (arg2 == NULL) { |
2f4c0a16 RD |
24491 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24492 | SWIG_fail; | |
44127b65 RD |
24493 | } |
24494 | { | |
24495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24496 | (arg1)->base_OnDrawControlPoints(*arg2); | |
24497 | ||
24498 | wxPyEndAllowThreads(__tstate); | |
24499 | if (PyErr_Occurred()) SWIG_fail; | |
24500 | } | |
24501 | Py_INCREF(Py_None); resultobj = Py_None; | |
24502 | return resultobj; | |
24503 | fail: | |
24504 | return NULL; | |
24505 | } | |
24506 | ||
24507 | ||
c370783e | 24508 | static PyObject *_wrap_PyCircleShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24509 | PyObject *resultobj; |
24510 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24511 | wxDC *arg2 = 0 ; | |
24512 | PyObject * obj0 = 0 ; | |
24513 | PyObject * obj1 = 0 ; | |
24514 | char *kwnames[] = { | |
24515 | (char *) "self",(char *) "dc", NULL | |
24516 | }; | |
24517 | ||
24518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCircleShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24521 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24522 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24523 | SWIG_fail; | |
44127b65 | 24524 | if (arg2 == NULL) { |
2f4c0a16 RD |
24525 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24526 | SWIG_fail; | |
44127b65 RD |
24527 | } |
24528 | { | |
24529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24530 | (arg1)->base_OnEraseControlPoints(*arg2); | |
24531 | ||
24532 | wxPyEndAllowThreads(__tstate); | |
24533 | if (PyErr_Occurred()) SWIG_fail; | |
24534 | } | |
24535 | Py_INCREF(Py_None); resultobj = Py_None; | |
24536 | return resultobj; | |
24537 | fail: | |
24538 | return NULL; | |
24539 | } | |
24540 | ||
24541 | ||
c370783e | 24542 | static PyObject *_wrap_PyCircleShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24543 | PyObject *resultobj; |
24544 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24545 | wxDC *arg2 = 0 ; | |
24546 | bool arg3 = (bool) True ; | |
24547 | PyObject * obj0 = 0 ; | |
24548 | PyObject * obj1 = 0 ; | |
24549 | PyObject * obj2 = 0 ; | |
24550 | char *kwnames[] = { | |
24551 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
24552 | }; | |
24553 | ||
24554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyCircleShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24557 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24558 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24559 | SWIG_fail; | |
44127b65 | 24560 | if (arg2 == NULL) { |
2f4c0a16 RD |
24561 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24562 | SWIG_fail; | |
44127b65 RD |
24563 | } |
24564 | if (obj2) { | |
c370783e | 24565 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 24566 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
24567 | } |
24568 | { | |
24569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24570 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
24571 | ||
24572 | wxPyEndAllowThreads(__tstate); | |
24573 | if (PyErr_Occurred()) SWIG_fail; | |
24574 | } | |
24575 | Py_INCREF(Py_None); resultobj = Py_None; | |
24576 | return resultobj; | |
24577 | fail: | |
24578 | return NULL; | |
24579 | } | |
24580 | ||
24581 | ||
c370783e | 24582 | static PyObject *_wrap_PyCircleShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24583 | PyObject *resultobj; |
24584 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24585 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
24586 | bool arg3 ; | |
24587 | double arg4 ; | |
24588 | double arg5 ; | |
24589 | int arg6 = (int) 0 ; | |
24590 | int arg7 = (int) 0 ; | |
24591 | PyObject * obj0 = 0 ; | |
24592 | PyObject * obj1 = 0 ; | |
24593 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
24594 | PyObject * obj3 = 0 ; |
24595 | PyObject * obj4 = 0 ; | |
24596 | PyObject * obj5 = 0 ; | |
24597 | PyObject * obj6 = 0 ; | |
44127b65 RD |
24598 | char *kwnames[] = { |
24599 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24600 | }; | |
24601 | ||
8edf1c75 | 24602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyCircleShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
24603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
24606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24607 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 24608 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24609 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 24610 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24611 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 24612 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24613 | if (obj5) { |
c370783e | 24614 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 24615 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24616 | } |
24617 | if (obj6) { | |
c370783e | 24618 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 24619 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24620 | } |
44127b65 RD |
24621 | { |
24622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24623 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
24624 | ||
24625 | wxPyEndAllowThreads(__tstate); | |
24626 | if (PyErr_Occurred()) SWIG_fail; | |
24627 | } | |
24628 | Py_INCREF(Py_None); resultobj = Py_None; | |
24629 | return resultobj; | |
24630 | fail: | |
24631 | return NULL; | |
24632 | } | |
24633 | ||
24634 | ||
c370783e | 24635 | static PyObject *_wrap_PyCircleShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24636 | PyObject *resultobj; |
24637 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24638 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
24639 | double arg3 ; | |
24640 | double arg4 ; | |
24641 | int arg5 = (int) 0 ; | |
24642 | int arg6 = (int) 0 ; | |
24643 | PyObject * obj0 = 0 ; | |
24644 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24645 | PyObject * obj2 = 0 ; |
24646 | PyObject * obj3 = 0 ; | |
24647 | PyObject * obj4 = 0 ; | |
24648 | PyObject * obj5 = 0 ; | |
44127b65 RD |
24649 | char *kwnames[] = { |
24650 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24651 | }; | |
24652 | ||
8edf1c75 | 24653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCircleShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
24654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24656 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
24657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24658 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24659 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24660 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 24661 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24662 | if (obj4) { |
c370783e | 24663 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 24664 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24665 | } |
24666 | if (obj5) { | |
c370783e | 24667 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 24668 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24669 | } |
44127b65 RD |
24670 | { |
24671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24672 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
24673 | ||
24674 | wxPyEndAllowThreads(__tstate); | |
24675 | if (PyErr_Occurred()) SWIG_fail; | |
24676 | } | |
24677 | Py_INCREF(Py_None); resultobj = Py_None; | |
24678 | return resultobj; | |
24679 | fail: | |
24680 | return NULL; | |
24681 | } | |
24682 | ||
24683 | ||
c370783e | 24684 | static PyObject *_wrap_PyCircleShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24685 | PyObject *resultobj; |
24686 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24687 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
24688 | double arg3 ; | |
24689 | double arg4 ; | |
24690 | int arg5 = (int) 0 ; | |
24691 | int arg6 = (int) 0 ; | |
24692 | PyObject * obj0 = 0 ; | |
24693 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24694 | PyObject * obj2 = 0 ; |
24695 | PyObject * obj3 = 0 ; | |
24696 | PyObject * obj4 = 0 ; | |
24697 | PyObject * obj5 = 0 ; | |
44127b65 RD |
24698 | char *kwnames[] = { |
24699 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
24700 | }; | |
24701 | ||
8edf1c75 | 24702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyCircleShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
24703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24705 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
24706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24707 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24708 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24709 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 24710 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24711 | if (obj4) { |
c370783e | 24712 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 24713 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24714 | } |
24715 | if (obj5) { | |
c370783e | 24716 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 24717 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24718 | } |
44127b65 RD |
24719 | { |
24720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24721 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
24722 | ||
24723 | wxPyEndAllowThreads(__tstate); | |
24724 | if (PyErr_Occurred()) SWIG_fail; | |
24725 | } | |
24726 | Py_INCREF(Py_None); resultobj = Py_None; | |
24727 | return resultobj; | |
24728 | fail: | |
24729 | return NULL; | |
24730 | } | |
24731 | ||
24732 | ||
c370783e | 24733 | static PyObject *_wrap_PyCircleShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24734 | PyObject *resultobj; |
24735 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24736 | double arg2 ; | |
24737 | double arg3 ; | |
24738 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24739 | PyObject * obj1 = 0 ; |
24740 | PyObject * obj2 = 0 ; | |
44127b65 RD |
24741 | char *kwnames[] = { |
24742 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24743 | }; | |
24744 | ||
8edf1c75 | 24745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCircleShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24748 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 24749 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24750 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24751 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
24752 | { |
24753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24754 | (arg1)->base_OnBeginSize(arg2,arg3); | |
24755 | ||
24756 | wxPyEndAllowThreads(__tstate); | |
24757 | if (PyErr_Occurred()) SWIG_fail; | |
24758 | } | |
24759 | Py_INCREF(Py_None); resultobj = Py_None; | |
24760 | return resultobj; | |
24761 | fail: | |
24762 | return NULL; | |
24763 | } | |
24764 | ||
24765 | ||
c370783e | 24766 | static PyObject *_wrap_PyCircleShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24767 | PyObject *resultobj; |
24768 | wxPyCircleShape *arg1 = (wxPyCircleShape *) 0 ; | |
24769 | double arg2 ; | |
24770 | double arg3 ; | |
24771 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24772 | PyObject * obj1 = 0 ; |
24773 | PyObject * obj2 = 0 ; | |
44127b65 RD |
24774 | char *kwnames[] = { |
24775 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24776 | }; | |
24777 | ||
8edf1c75 | 24778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyCircleShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCircleShape, |
24780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24781 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 24782 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24783 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24784 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
24785 | { |
24786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24787 | (arg1)->base_OnEndSize(arg2,arg3); | |
24788 | ||
24789 | wxPyEndAllowThreads(__tstate); | |
24790 | if (PyErr_Occurred()) SWIG_fail; | |
24791 | } | |
24792 | Py_INCREF(Py_None); resultobj = Py_None; | |
24793 | return resultobj; | |
24794 | fail: | |
24795 | return NULL; | |
24796 | } | |
24797 | ||
24798 | ||
c370783e | 24799 | static PyObject * PyCircleShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
24800 | PyObject *obj; |
24801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24802 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCircleShape, obj); | |
24803 | Py_INCREF(obj); | |
24804 | return Py_BuildValue((char *)""); | |
24805 | } | |
c370783e | 24806 | static PyObject *_wrap_new_ArrowHead(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24807 | PyObject *resultobj; |
24808 | int arg1 = (int) 0 ; | |
24809 | int arg2 = (int) 0 ; | |
24810 | double arg3 = (double) 0.0 ; | |
24811 | double arg4 = (double) 0.0 ; | |
24812 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
24813 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
24814 | wxPseudoMetaFile *arg6 = (wxPseudoMetaFile *) NULL ; | |
24815 | long arg7 = (long) -1 ; | |
24816 | wxArrowHead *result; | |
24817 | bool temp5 = False ; | |
8edf1c75 RD |
24818 | PyObject * obj0 = 0 ; |
24819 | PyObject * obj1 = 0 ; | |
24820 | PyObject * obj2 = 0 ; | |
24821 | PyObject * obj3 = 0 ; | |
44127b65 RD |
24822 | PyObject * obj4 = 0 ; |
24823 | PyObject * obj5 = 0 ; | |
8edf1c75 | 24824 | PyObject * obj6 = 0 ; |
44127b65 RD |
24825 | char *kwnames[] = { |
24826 | (char *) "type",(char *) "end",(char *) "size",(char *) "dist",(char *) "name",(char *) "mf",(char *) "arrowId", NULL | |
24827 | }; | |
24828 | ||
8edf1c75 RD |
24829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOO:new_ArrowHead",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
24830 | if (obj0) { | |
c370783e | 24831 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 24832 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24833 | } |
24834 | if (obj1) { | |
c370783e | 24835 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 24836 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24837 | } |
24838 | if (obj2) { | |
c370783e | 24839 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 24840 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
24841 | } |
24842 | if (obj3) { | |
c370783e | 24843 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 24844 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24845 | } |
44127b65 RD |
24846 | if (obj4) { |
24847 | { | |
24848 | arg5 = wxString_in_helper(obj4); | |
24849 | if (arg5 == NULL) SWIG_fail; | |
24850 | temp5 = True; | |
24851 | } | |
24852 | } | |
24853 | if (obj5) { | |
2f4c0a16 RD |
24854 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPseudoMetaFile, |
24855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 24856 | } |
8edf1c75 | 24857 | if (obj6) { |
c370783e | 24858 | arg7 = (long)SWIG_As_long(obj6); |
2f4c0a16 | 24859 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 24860 | } |
44127b65 RD |
24861 | { |
24862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24863 | result = (wxArrowHead *)new wxArrowHead(arg1,arg2,arg3,arg4,(wxString const &)*arg5,arg6,arg7); | |
24864 | ||
24865 | wxPyEndAllowThreads(__tstate); | |
24866 | if (PyErr_Occurred()) SWIG_fail; | |
24867 | } | |
24868 | { | |
412d302d | 24869 | resultobj = wxPyMake_wxObject(result, 1); |
44127b65 RD |
24870 | } |
24871 | { | |
24872 | if (temp5) | |
24873 | delete arg5; | |
24874 | } | |
24875 | return resultobj; | |
24876 | fail: | |
24877 | { | |
24878 | if (temp5) | |
24879 | delete arg5; | |
24880 | } | |
24881 | return NULL; | |
24882 | } | |
24883 | ||
24884 | ||
c370783e | 24885 | static PyObject *_wrap_delete_ArrowHead(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24886 | PyObject *resultobj; |
24887 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24888 | PyObject * obj0 = 0 ; | |
24889 | char *kwnames[] = { | |
24890 | (char *) "self", NULL | |
24891 | }; | |
24892 | ||
24893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ArrowHead",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
24895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
24896 | { |
24897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24898 | delete arg1; | |
24899 | ||
24900 | wxPyEndAllowThreads(__tstate); | |
24901 | if (PyErr_Occurred()) SWIG_fail; | |
24902 | } | |
24903 | Py_INCREF(Py_None); resultobj = Py_None; | |
24904 | return resultobj; | |
24905 | fail: | |
24906 | return NULL; | |
24907 | } | |
24908 | ||
24909 | ||
c370783e | 24910 | static PyObject *_wrap_ArrowHead__GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24911 | PyObject *resultobj; |
24912 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24913 | int result; | |
24914 | PyObject * obj0 = 0 ; | |
24915 | char *kwnames[] = { | |
24916 | (char *) "self", NULL | |
24917 | }; | |
24918 | ||
24919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead__GetType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
24921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
24922 | { |
24923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24924 | result = (int)(arg1)->_GetType(); | |
24925 | ||
24926 | wxPyEndAllowThreads(__tstate); | |
24927 | if (PyErr_Occurred()) SWIG_fail; | |
24928 | } | |
c370783e | 24929 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
24930 | return resultobj; |
24931 | fail: | |
24932 | return NULL; | |
24933 | } | |
24934 | ||
24935 | ||
c370783e | 24936 | static PyObject *_wrap_ArrowHead_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24937 | PyObject *resultobj; |
24938 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24939 | int result; | |
24940 | PyObject * obj0 = 0 ; | |
24941 | char *kwnames[] = { | |
24942 | (char *) "self", NULL | |
24943 | }; | |
24944 | ||
24945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
24947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
24948 | { |
24949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24950 | result = (int)(arg1)->GetPosition(); | |
24951 | ||
24952 | wxPyEndAllowThreads(__tstate); | |
24953 | if (PyErr_Occurred()) SWIG_fail; | |
24954 | } | |
c370783e | 24955 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
24956 | return resultobj; |
24957 | fail: | |
24958 | return NULL; | |
24959 | } | |
24960 | ||
24961 | ||
c370783e | 24962 | static PyObject *_wrap_ArrowHead_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24963 | PyObject *resultobj; |
24964 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24965 | int arg2 ; | |
24966 | PyObject * obj0 = 0 ; | |
8edf1c75 | 24967 | PyObject * obj1 = 0 ; |
44127b65 RD |
24968 | char *kwnames[] = { |
24969 | (char *) "self",(char *) "pos", NULL | |
24970 | }; | |
24971 | ||
8edf1c75 | 24972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
24973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
24974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24975 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 24976 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
24977 | { |
24978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24979 | (arg1)->SetPosition(arg2); | |
24980 | ||
24981 | wxPyEndAllowThreads(__tstate); | |
24982 | if (PyErr_Occurred()) SWIG_fail; | |
24983 | } | |
24984 | Py_INCREF(Py_None); resultobj = Py_None; | |
24985 | return resultobj; | |
24986 | fail: | |
24987 | return NULL; | |
24988 | } | |
24989 | ||
24990 | ||
c370783e | 24991 | static PyObject *_wrap_ArrowHead_GetXOffset(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
24992 | PyObject *resultobj; |
24993 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
24994 | double result; | |
24995 | PyObject * obj0 = 0 ; | |
24996 | char *kwnames[] = { | |
24997 | (char *) "self", NULL | |
24998 | }; | |
24999 | ||
25000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetXOffset",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25003 | { |
25004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25005 | result = (double)(arg1)->GetXOffset(); | |
25006 | ||
25007 | wxPyEndAllowThreads(__tstate); | |
25008 | if (PyErr_Occurred()) SWIG_fail; | |
25009 | } | |
c370783e | 25010 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
25011 | return resultobj; |
25012 | fail: | |
25013 | return NULL; | |
25014 | } | |
25015 | ||
25016 | ||
c370783e | 25017 | static PyObject *_wrap_ArrowHead_GetYOffset(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25018 | PyObject *resultobj; |
25019 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25020 | double result; | |
25021 | PyObject * obj0 = 0 ; | |
25022 | char *kwnames[] = { | |
25023 | (char *) "self", NULL | |
25024 | }; | |
25025 | ||
25026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetYOffset",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25029 | { |
25030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25031 | result = (double)(arg1)->GetYOffset(); | |
25032 | ||
25033 | wxPyEndAllowThreads(__tstate); | |
25034 | if (PyErr_Occurred()) SWIG_fail; | |
25035 | } | |
c370783e | 25036 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
25037 | return resultobj; |
25038 | fail: | |
25039 | return NULL; | |
25040 | } | |
25041 | ||
25042 | ||
c370783e | 25043 | static PyObject *_wrap_ArrowHead_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25044 | PyObject *resultobj; |
25045 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25046 | double result; | |
25047 | PyObject * obj0 = 0 ; | |
25048 | char *kwnames[] = { | |
25049 | (char *) "self", NULL | |
25050 | }; | |
25051 | ||
25052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetSpacing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25055 | { |
25056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25057 | result = (double)(arg1)->GetSpacing(); | |
25058 | ||
25059 | wxPyEndAllowThreads(__tstate); | |
25060 | if (PyErr_Occurred()) SWIG_fail; | |
25061 | } | |
c370783e | 25062 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
25063 | return resultobj; |
25064 | fail: | |
25065 | return NULL; | |
25066 | } | |
25067 | ||
25068 | ||
c370783e | 25069 | static PyObject *_wrap_ArrowHead_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25070 | PyObject *resultobj; |
25071 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25072 | double result; | |
25073 | PyObject * obj0 = 0 ; | |
25074 | char *kwnames[] = { | |
25075 | (char *) "self", NULL | |
25076 | }; | |
25077 | ||
25078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25081 | { |
25082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25083 | result = (double)(arg1)->GetSize(); | |
25084 | ||
25085 | wxPyEndAllowThreads(__tstate); | |
25086 | if (PyErr_Occurred()) SWIG_fail; | |
25087 | } | |
c370783e | 25088 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
25089 | return resultobj; |
25090 | fail: | |
25091 | return NULL; | |
25092 | } | |
25093 | ||
25094 | ||
c370783e | 25095 | static PyObject *_wrap_ArrowHead_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25096 | PyObject *resultobj; |
25097 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25098 | wxString result; | |
25099 | PyObject * obj0 = 0 ; | |
25100 | char *kwnames[] = { | |
25101 | (char *) "self", NULL | |
25102 | }; | |
25103 | ||
25104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25107 | { |
25108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25109 | result = (arg1)->GetName(); | |
25110 | ||
25111 | wxPyEndAllowThreads(__tstate); | |
25112 | if (PyErr_Occurred()) SWIG_fail; | |
25113 | } | |
25114 | { | |
25115 | #if wxUSE_UNICODE | |
25116 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25117 | #else | |
25118 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25119 | #endif | |
25120 | } | |
25121 | return resultobj; | |
25122 | fail: | |
25123 | return NULL; | |
25124 | } | |
25125 | ||
25126 | ||
c370783e | 25127 | static PyObject *_wrap_ArrowHead_SetXOffset(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25128 | PyObject *resultobj; |
25129 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25130 | double arg2 ; | |
25131 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25132 | PyObject * obj1 = 0 ; |
44127b65 RD |
25133 | char *kwnames[] = { |
25134 | (char *) "self",(char *) "x", NULL | |
25135 | }; | |
25136 | ||
8edf1c75 | 25137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetXOffset",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25140 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 25141 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25142 | { |
25143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25144 | (arg1)->SetXOffset(arg2); | |
25145 | ||
25146 | wxPyEndAllowThreads(__tstate); | |
25147 | if (PyErr_Occurred()) SWIG_fail; | |
25148 | } | |
25149 | Py_INCREF(Py_None); resultobj = Py_None; | |
25150 | return resultobj; | |
25151 | fail: | |
25152 | return NULL; | |
25153 | } | |
25154 | ||
25155 | ||
c370783e | 25156 | static PyObject *_wrap_ArrowHead_SetYOffset(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25157 | PyObject *resultobj; |
25158 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25159 | double arg2 ; | |
25160 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25161 | PyObject * obj1 = 0 ; |
44127b65 RD |
25162 | char *kwnames[] = { |
25163 | (char *) "self",(char *) "y", NULL | |
25164 | }; | |
25165 | ||
8edf1c75 | 25166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetYOffset",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25169 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 25170 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25171 | { |
25172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25173 | (arg1)->SetYOffset(arg2); | |
25174 | ||
25175 | wxPyEndAllowThreads(__tstate); | |
25176 | if (PyErr_Occurred()) SWIG_fail; | |
25177 | } | |
25178 | Py_INCREF(Py_None); resultobj = Py_None; | |
25179 | return resultobj; | |
25180 | fail: | |
25181 | return NULL; | |
25182 | } | |
25183 | ||
25184 | ||
c370783e | 25185 | static PyObject *_wrap_ArrowHead_GetMetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25186 | PyObject *resultobj; |
25187 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25188 | wxPseudoMetaFile *result; | |
25189 | PyObject * obj0 = 0 ; | |
25190 | char *kwnames[] = { | |
25191 | (char *) "self", NULL | |
25192 | }; | |
25193 | ||
25194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetMetaFile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25197 | { |
25198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25199 | result = (wxPseudoMetaFile *)(arg1)->GetMetaFile(); | |
25200 | ||
25201 | wxPyEndAllowThreads(__tstate); | |
25202 | if (PyErr_Occurred()) SWIG_fail; | |
25203 | } | |
25204 | { | |
412d302d | 25205 | resultobj = wxPyMake_wxObject(result, 0); |
44127b65 RD |
25206 | } |
25207 | return resultobj; | |
25208 | fail: | |
25209 | return NULL; | |
25210 | } | |
25211 | ||
25212 | ||
c370783e | 25213 | static PyObject *_wrap_ArrowHead_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25214 | PyObject *resultobj; |
25215 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25216 | long result; | |
25217 | PyObject * obj0 = 0 ; | |
25218 | char *kwnames[] = { | |
25219 | (char *) "self", NULL | |
25220 | }; | |
25221 | ||
25222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25225 | { |
25226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25227 | result = (long)(arg1)->GetId(); | |
25228 | ||
25229 | wxPyEndAllowThreads(__tstate); | |
25230 | if (PyErr_Occurred()) SWIG_fail; | |
25231 | } | |
c370783e | 25232 | resultobj = SWIG_From_long((long)result); |
44127b65 RD |
25233 | return resultobj; |
25234 | fail: | |
25235 | return NULL; | |
25236 | } | |
25237 | ||
25238 | ||
c370783e | 25239 | static PyObject *_wrap_ArrowHead_GetArrowEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25240 | PyObject *resultobj; |
25241 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25242 | int result; | |
25243 | PyObject * obj0 = 0 ; | |
25244 | char *kwnames[] = { | |
25245 | (char *) "self", NULL | |
25246 | }; | |
25247 | ||
25248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetArrowEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25251 | { |
25252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25253 | result = (int)(arg1)->GetArrowEnd(); | |
25254 | ||
25255 | wxPyEndAllowThreads(__tstate); | |
25256 | if (PyErr_Occurred()) SWIG_fail; | |
25257 | } | |
c370783e | 25258 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
25259 | return resultobj; |
25260 | fail: | |
25261 | return NULL; | |
25262 | } | |
25263 | ||
25264 | ||
c370783e | 25265 | static PyObject *_wrap_ArrowHead_GetArrowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25266 | PyObject *resultobj; |
25267 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25268 | double result; | |
25269 | PyObject * obj0 = 0 ; | |
25270 | char *kwnames[] = { | |
25271 | (char *) "self", NULL | |
25272 | }; | |
25273 | ||
25274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArrowHead_GetArrowSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25277 | { |
25278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25279 | result = (double)(arg1)->GetArrowSize(); | |
25280 | ||
25281 | wxPyEndAllowThreads(__tstate); | |
25282 | if (PyErr_Occurred()) SWIG_fail; | |
25283 | } | |
c370783e | 25284 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
25285 | return resultobj; |
25286 | fail: | |
25287 | return NULL; | |
25288 | } | |
25289 | ||
25290 | ||
c370783e | 25291 | static PyObject *_wrap_ArrowHead_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25292 | PyObject *resultobj; |
25293 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25294 | double arg2 ; | |
25295 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25296 | PyObject * obj1 = 0 ; |
44127b65 RD |
25297 | char *kwnames[] = { |
25298 | (char *) "self",(char *) "size", NULL | |
25299 | }; | |
25300 | ||
8edf1c75 | 25301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25304 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 25305 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25306 | { |
25307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25308 | (arg1)->SetSize(arg2); | |
25309 | ||
25310 | wxPyEndAllowThreads(__tstate); | |
25311 | if (PyErr_Occurred()) SWIG_fail; | |
25312 | } | |
25313 | Py_INCREF(Py_None); resultobj = Py_None; | |
25314 | return resultobj; | |
25315 | fail: | |
25316 | return NULL; | |
25317 | } | |
25318 | ||
25319 | ||
c370783e | 25320 | static PyObject *_wrap_ArrowHead_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25321 | PyObject *resultobj; |
25322 | wxArrowHead *arg1 = (wxArrowHead *) 0 ; | |
25323 | double arg2 ; | |
25324 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25325 | PyObject * obj1 = 0 ; |
44127b65 RD |
25326 | char *kwnames[] = { |
25327 | (char *) "self",(char *) "sp", NULL | |
25328 | }; | |
25329 | ||
8edf1c75 | 25330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ArrowHead_SetSpacing",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxArrowHead, |
25332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25333 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 25334 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25335 | { |
25336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25337 | (arg1)->SetSpacing(arg2); | |
25338 | ||
25339 | wxPyEndAllowThreads(__tstate); | |
25340 | if (PyErr_Occurred()) SWIG_fail; | |
25341 | } | |
25342 | Py_INCREF(Py_None); resultobj = Py_None; | |
25343 | return resultobj; | |
25344 | fail: | |
25345 | return NULL; | |
25346 | } | |
25347 | ||
25348 | ||
c370783e | 25349 | static PyObject * ArrowHead_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
25350 | PyObject *obj; |
25351 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25352 | SWIG_TypeClientData(SWIGTYPE_p_wxArrowHead, obj); | |
25353 | Py_INCREF(obj); | |
25354 | return Py_BuildValue((char *)""); | |
25355 | } | |
c370783e | 25356 | static PyObject *_wrap_new_PyLineShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25357 | PyObject *resultobj; |
25358 | wxPyLineShape *result; | |
25359 | char *kwnames[] = { | |
25360 | NULL | |
25361 | }; | |
25362 | ||
25363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLineShape",kwnames)) goto fail; | |
25364 | { | |
25365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25366 | result = (wxPyLineShape *)new wxPyLineShape(); | |
25367 | ||
25368 | wxPyEndAllowThreads(__tstate); | |
25369 | if (PyErr_Occurred()) SWIG_fail; | |
25370 | } | |
2f4c0a16 | 25371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLineShape, 1); |
44127b65 RD |
25372 | return resultobj; |
25373 | fail: | |
25374 | return NULL; | |
25375 | } | |
25376 | ||
25377 | ||
c370783e | 25378 | static PyObject *_wrap_PyLineShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25379 | PyObject *resultobj; |
25380 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25381 | PyObject *arg2 = (PyObject *) 0 ; | |
25382 | PyObject *arg3 = (PyObject *) 0 ; | |
25383 | PyObject * obj0 = 0 ; | |
25384 | PyObject * obj1 = 0 ; | |
25385 | PyObject * obj2 = 0 ; | |
25386 | char *kwnames[] = { | |
25387 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25388 | }; | |
25389 | ||
25390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25393 | arg2 = obj1; |
25394 | arg3 = obj2; | |
25395 | { | |
25396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25397 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25398 | ||
25399 | wxPyEndAllowThreads(__tstate); | |
25400 | if (PyErr_Occurred()) SWIG_fail; | |
25401 | } | |
25402 | Py_INCREF(Py_None); resultobj = Py_None; | |
25403 | return resultobj; | |
25404 | fail: | |
25405 | return NULL; | |
25406 | } | |
25407 | ||
25408 | ||
c370783e | 25409 | static PyObject *_wrap_PyLineShape_AddArrow(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25410 | PyObject *resultobj; |
25411 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25412 | int arg2 ; | |
25413 | int arg3 = (int) ARROW_POSITION_END ; | |
25414 | double arg4 = (double) 10.0 ; | |
25415 | double arg5 = (double) 0.0 ; | |
25416 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
25417 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25418 | wxPseudoMetaFile *arg7 = (wxPseudoMetaFile *) NULL ; | |
25419 | long arg8 = (long) -1 ; | |
25420 | bool temp6 = False ; | |
25421 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25422 | PyObject * obj1 = 0 ; |
25423 | PyObject * obj2 = 0 ; | |
25424 | PyObject * obj3 = 0 ; | |
25425 | PyObject * obj4 = 0 ; | |
44127b65 RD |
25426 | PyObject * obj5 = 0 ; |
25427 | PyObject * obj6 = 0 ; | |
8edf1c75 | 25428 | PyObject * obj7 = 0 ; |
44127b65 RD |
25429 | char *kwnames[] = { |
25430 | (char *) "self",(char *) "type",(char *) "end",(char *) "arrowSize",(char *) "xOffset",(char *) "name",(char *) "mf",(char *) "arrowId", NULL | |
25431 | }; | |
25432 | ||
8edf1c75 | 25433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:PyLineShape_AddArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
25434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25436 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 25437 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 25438 | if (obj2) { |
c370783e | 25439 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 25440 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
25441 | } |
25442 | if (obj3) { | |
c370783e | 25443 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 25444 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
25445 | } |
25446 | if (obj4) { | |
c370783e | 25447 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 25448 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 25449 | } |
44127b65 RD |
25450 | if (obj5) { |
25451 | { | |
25452 | arg6 = wxString_in_helper(obj5); | |
25453 | if (arg6 == NULL) SWIG_fail; | |
25454 | temp6 = True; | |
25455 | } | |
25456 | } | |
25457 | if (obj6) { | |
2f4c0a16 RD |
25458 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPseudoMetaFile, |
25459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 25460 | } |
8edf1c75 | 25461 | if (obj7) { |
c370783e | 25462 | arg8 = (long)SWIG_As_long(obj7); |
2f4c0a16 | 25463 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 25464 | } |
44127b65 RD |
25465 | { |
25466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25467 | (arg1)->AddArrow(arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7,arg8); | |
25468 | ||
25469 | wxPyEndAllowThreads(__tstate); | |
25470 | if (PyErr_Occurred()) SWIG_fail; | |
25471 | } | |
25472 | Py_INCREF(Py_None); resultobj = Py_None; | |
25473 | { | |
25474 | if (temp6) | |
25475 | delete arg6; | |
25476 | } | |
25477 | return resultobj; | |
25478 | fail: | |
25479 | { | |
25480 | if (temp6) | |
25481 | delete arg6; | |
25482 | } | |
25483 | return NULL; | |
25484 | } | |
25485 | ||
25486 | ||
c370783e | 25487 | static PyObject *_wrap_PyLineShape_AddArrowOrdered(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25488 | PyObject *resultobj; |
25489 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25490 | wxArrowHead *arg2 = (wxArrowHead *) 0 ; | |
25491 | PyObject *arg3 = (PyObject *) 0 ; | |
25492 | int arg4 ; | |
25493 | PyObject * obj0 = 0 ; | |
25494 | PyObject * obj1 = 0 ; | |
25495 | PyObject * obj2 = 0 ; | |
8edf1c75 | 25496 | PyObject * obj3 = 0 ; |
44127b65 RD |
25497 | char *kwnames[] = { |
25498 | (char *) "self",(char *) "arrow",(char *) "referenceList",(char *) "end", NULL | |
25499 | }; | |
25500 | ||
8edf1c75 | 25501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyLineShape_AddArrowOrdered",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxArrowHead, | |
25505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 25506 | arg3 = obj2; |
c370783e | 25507 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 25508 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25509 | { |
25510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25511 | wxPyLineShape_AddArrowOrdered(arg1,arg2,arg3,arg4); | |
25512 | ||
25513 | wxPyEndAllowThreads(__tstate); | |
25514 | if (PyErr_Occurred()) SWIG_fail; | |
25515 | } | |
25516 | Py_INCREF(Py_None); resultobj = Py_None; | |
25517 | return resultobj; | |
25518 | fail: | |
25519 | return NULL; | |
25520 | } | |
25521 | ||
25522 | ||
c370783e | 25523 | static PyObject *_wrap_PyLineShape_ClearArrow(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25524 | PyObject *resultobj; |
25525 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25526 | wxString *arg2 = 0 ; | |
25527 | bool result; | |
25528 | bool temp2 = False ; | |
25529 | PyObject * obj0 = 0 ; | |
25530 | PyObject * obj1 = 0 ; | |
25531 | char *kwnames[] = { | |
25532 | (char *) "self",(char *) "name", NULL | |
25533 | }; | |
25534 | ||
25535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_ClearArrow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25538 | { |
25539 | arg2 = wxString_in_helper(obj1); | |
25540 | if (arg2 == NULL) SWIG_fail; | |
25541 | temp2 = True; | |
25542 | } | |
25543 | { | |
25544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25545 | result = (bool)(arg1)->ClearArrow((wxString const &)*arg2); | |
25546 | ||
25547 | wxPyEndAllowThreads(__tstate); | |
25548 | if (PyErr_Occurred()) SWIG_fail; | |
25549 | } | |
fbc46b20 RD |
25550 | { |
25551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25552 | } | |
44127b65 RD |
25553 | { |
25554 | if (temp2) | |
25555 | delete arg2; | |
25556 | } | |
25557 | return resultobj; | |
25558 | fail: | |
25559 | { | |
25560 | if (temp2) | |
25561 | delete arg2; | |
25562 | } | |
25563 | return NULL; | |
25564 | } | |
25565 | ||
25566 | ||
c370783e | 25567 | static PyObject *_wrap_PyLineShape_ClearArrowsAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25568 | PyObject *resultobj; |
25569 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25570 | int arg2 = (int) -1 ; | |
25571 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25572 | PyObject * obj1 = 0 ; |
44127b65 RD |
25573 | char *kwnames[] = { |
25574 | (char *) "self",(char *) "position", NULL | |
25575 | }; | |
25576 | ||
8edf1c75 | 25577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyLineShape_ClearArrowsAtPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 25580 | if (obj1) { |
c370783e | 25581 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 25582 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 25583 | } |
44127b65 RD |
25584 | { |
25585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25586 | (arg1)->ClearArrowsAtPosition(arg2); | |
25587 | ||
25588 | wxPyEndAllowThreads(__tstate); | |
25589 | if (PyErr_Occurred()) SWIG_fail; | |
25590 | } | |
25591 | Py_INCREF(Py_None); resultobj = Py_None; | |
25592 | return resultobj; | |
25593 | fail: | |
25594 | return NULL; | |
25595 | } | |
25596 | ||
25597 | ||
c370783e | 25598 | static PyObject *_wrap_PyLineShape_DrawArrow(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25599 | PyObject *resultobj; |
25600 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25601 | wxDC *arg2 = 0 ; | |
25602 | wxArrowHead *arg3 = (wxArrowHead *) 0 ; | |
25603 | double arg4 ; | |
25604 | bool arg5 ; | |
25605 | PyObject * obj0 = 0 ; | |
25606 | PyObject * obj1 = 0 ; | |
25607 | PyObject * obj2 = 0 ; | |
8edf1c75 | 25608 | PyObject * obj3 = 0 ; |
44127b65 RD |
25609 | PyObject * obj4 = 0 ; |
25610 | char *kwnames[] = { | |
25611 | (char *) "self",(char *) "dc",(char *) "arrow",(char *) "xOffset",(char *) "proportionalOffset", NULL | |
25612 | }; | |
25613 | ||
8edf1c75 | 25614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyLineShape_DrawArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
25615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25618 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25619 | SWIG_fail; | |
44127b65 | 25620 | if (arg2 == NULL) { |
2f4c0a16 RD |
25621 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25622 | SWIG_fail; | |
2dbef272 | 25623 | } |
2f4c0a16 RD |
25624 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxArrowHead, |
25625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25626 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 25627 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 25628 | arg5 = (bool)SWIG_As_bool(obj4); |
2f4c0a16 | 25629 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25630 | { |
25631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25632 | (arg1)->DrawArrow(*arg2,arg3,arg4,arg5); | |
25633 | ||
25634 | wxPyEndAllowThreads(__tstate); | |
25635 | if (PyErr_Occurred()) SWIG_fail; | |
25636 | } | |
25637 | Py_INCREF(Py_None); resultobj = Py_None; | |
25638 | return resultobj; | |
25639 | fail: | |
25640 | return NULL; | |
25641 | } | |
25642 | ||
25643 | ||
c370783e | 25644 | static PyObject *_wrap_PyLineShape_DeleteArrowHeadId(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25645 | PyObject *resultobj; |
25646 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25647 | long arg2 ; | |
25648 | bool result; | |
25649 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25650 | PyObject * obj1 = 0 ; |
44127b65 RD |
25651 | char *kwnames[] = { |
25652 | (char *) "self",(char *) "arrowId", NULL | |
25653 | }; | |
25654 | ||
8edf1c75 | 25655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_DeleteArrowHeadId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25658 | arg2 = (long)SWIG_As_long(obj1); |
2f4c0a16 | 25659 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25660 | { |
25661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25662 | result = (bool)(arg1)->DeleteArrowHead(arg2); | |
25663 | ||
25664 | wxPyEndAllowThreads(__tstate); | |
25665 | if (PyErr_Occurred()) SWIG_fail; | |
25666 | } | |
fbc46b20 RD |
25667 | { |
25668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25669 | } | |
44127b65 RD |
25670 | return resultobj; |
25671 | fail: | |
25672 | return NULL; | |
25673 | } | |
25674 | ||
25675 | ||
c370783e | 25676 | static PyObject *_wrap_PyLineShape_DeleteArrowHead(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25677 | PyObject *resultobj; |
25678 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25679 | int arg2 ; | |
25680 | wxString *arg3 = 0 ; | |
25681 | bool result; | |
25682 | bool temp3 = False ; | |
25683 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25684 | PyObject * obj1 = 0 ; |
44127b65 RD |
25685 | PyObject * obj2 = 0 ; |
25686 | char *kwnames[] = { | |
25687 | (char *) "self",(char *) "position",(char *) "name", NULL | |
25688 | }; | |
25689 | ||
8edf1c75 | 25690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_DeleteArrowHead",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
25691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25693 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 25694 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25695 | { |
25696 | arg3 = wxString_in_helper(obj2); | |
25697 | if (arg3 == NULL) SWIG_fail; | |
25698 | temp3 = True; | |
25699 | } | |
25700 | { | |
25701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25702 | result = (bool)(arg1)->DeleteArrowHead(arg2,(wxString const &)*arg3); | |
25703 | ||
25704 | wxPyEndAllowThreads(__tstate); | |
25705 | if (PyErr_Occurred()) SWIG_fail; | |
25706 | } | |
fbc46b20 RD |
25707 | { |
25708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25709 | } | |
44127b65 RD |
25710 | { |
25711 | if (temp3) | |
25712 | delete arg3; | |
25713 | } | |
25714 | return resultobj; | |
25715 | fail: | |
25716 | { | |
25717 | if (temp3) | |
25718 | delete arg3; | |
25719 | } | |
25720 | return NULL; | |
25721 | } | |
25722 | ||
25723 | ||
c370783e | 25724 | static PyObject *_wrap_PyLineShape_DeleteLineControlPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25725 | PyObject *resultobj; |
25726 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25727 | bool result; | |
25728 | PyObject * obj0 = 0 ; | |
25729 | char *kwnames[] = { | |
25730 | (char *) "self", NULL | |
25731 | }; | |
25732 | ||
25733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_DeleteLineControlPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25736 | { |
25737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25738 | result = (bool)(arg1)->DeleteLineControlPoint(); | |
25739 | ||
25740 | wxPyEndAllowThreads(__tstate); | |
25741 | if (PyErr_Occurred()) SWIG_fail; | |
25742 | } | |
fbc46b20 RD |
25743 | { |
25744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25745 | } | |
44127b65 RD |
25746 | return resultobj; |
25747 | fail: | |
25748 | return NULL; | |
25749 | } | |
25750 | ||
25751 | ||
c370783e | 25752 | static PyObject *_wrap_PyLineShape_DrawArrows(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25753 | PyObject *resultobj; |
25754 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25755 | wxDC *arg2 = 0 ; | |
25756 | PyObject * obj0 = 0 ; | |
25757 | PyObject * obj1 = 0 ; | |
25758 | char *kwnames[] = { | |
25759 | (char *) "self",(char *) "dc", NULL | |
25760 | }; | |
25761 | ||
25762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_DrawArrows",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25767 | SWIG_fail; | |
44127b65 | 25768 | if (arg2 == NULL) { |
2f4c0a16 RD |
25769 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25770 | SWIG_fail; | |
44127b65 RD |
25771 | } |
25772 | { | |
25773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25774 | (arg1)->DrawArrows(*arg2); | |
25775 | ||
25776 | wxPyEndAllowThreads(__tstate); | |
25777 | if (PyErr_Occurred()) SWIG_fail; | |
25778 | } | |
25779 | Py_INCREF(Py_None); resultobj = Py_None; | |
25780 | return resultobj; | |
25781 | fail: | |
25782 | return NULL; | |
25783 | } | |
25784 | ||
25785 | ||
c370783e | 25786 | static PyObject *_wrap_PyLineShape_DrawRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25787 | PyObject *resultobj; |
25788 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25789 | wxDC *arg2 = 0 ; | |
25790 | wxShapeRegion *arg3 = (wxShapeRegion *) 0 ; | |
25791 | double arg4 ; | |
25792 | double arg5 ; | |
25793 | PyObject * obj0 = 0 ; | |
25794 | PyObject * obj1 = 0 ; | |
25795 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25796 | PyObject * obj3 = 0 ; |
25797 | PyObject * obj4 = 0 ; | |
44127b65 RD |
25798 | char *kwnames[] = { |
25799 | (char *) "self",(char *) "dc",(char *) "region",(char *) "x",(char *) "y", NULL | |
25800 | }; | |
25801 | ||
8edf1c75 | 25802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyLineShape_DrawRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
25803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25805 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25806 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25807 | SWIG_fail; | |
44127b65 | 25808 | if (arg2 == NULL) { |
2f4c0a16 RD |
25809 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25810 | SWIG_fail; | |
8edf1c75 | 25811 | } |
2f4c0a16 RD |
25812 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxShapeRegion, |
25813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25814 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 25815 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 25816 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 25817 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25818 | { |
25819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25820 | (arg1)->DrawRegion(*arg2,arg3,arg4,arg5); | |
25821 | ||
25822 | wxPyEndAllowThreads(__tstate); | |
25823 | if (PyErr_Occurred()) SWIG_fail; | |
25824 | } | |
25825 | Py_INCREF(Py_None); resultobj = Py_None; | |
25826 | return resultobj; | |
25827 | fail: | |
25828 | return NULL; | |
25829 | } | |
25830 | ||
25831 | ||
c370783e | 25832 | static PyObject *_wrap_PyLineShape_EraseRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25833 | PyObject *resultobj; |
25834 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25835 | wxDC *arg2 = 0 ; | |
25836 | wxShapeRegion *arg3 = (wxShapeRegion *) 0 ; | |
25837 | double arg4 ; | |
25838 | double arg5 ; | |
25839 | PyObject * obj0 = 0 ; | |
25840 | PyObject * obj1 = 0 ; | |
25841 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25842 | PyObject * obj3 = 0 ; |
25843 | PyObject * obj4 = 0 ; | |
44127b65 RD |
25844 | char *kwnames[] = { |
25845 | (char *) "self",(char *) "dc",(char *) "region",(char *) "x",(char *) "y", NULL | |
25846 | }; | |
25847 | ||
8edf1c75 | 25848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyLineShape_EraseRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
25849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25852 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25853 | SWIG_fail; | |
44127b65 | 25854 | if (arg2 == NULL) { |
2f4c0a16 RD |
25855 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25856 | SWIG_fail; | |
8edf1c75 | 25857 | } |
2f4c0a16 RD |
25858 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxShapeRegion, |
25859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25860 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 25861 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 25862 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 25863 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25864 | { |
25865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25866 | (arg1)->EraseRegion(*arg2,arg3,arg4,arg5); | |
25867 | ||
25868 | wxPyEndAllowThreads(__tstate); | |
25869 | if (PyErr_Occurred()) SWIG_fail; | |
25870 | } | |
25871 | Py_INCREF(Py_None); resultobj = Py_None; | |
25872 | return resultobj; | |
25873 | fail: | |
25874 | return NULL; | |
25875 | } | |
25876 | ||
25877 | ||
c370783e | 25878 | static PyObject *_wrap_PyLineShape_FindArrowHeadId(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25879 | PyObject *resultobj; |
25880 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25881 | long arg2 ; | |
25882 | wxArrowHead *result; | |
25883 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25884 | PyObject * obj1 = 0 ; |
44127b65 RD |
25885 | char *kwnames[] = { |
25886 | (char *) "self",(char *) "arrowId", NULL | |
25887 | }; | |
25888 | ||
8edf1c75 | 25889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_FindArrowHeadId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25892 | arg2 = (long)SWIG_As_long(obj1); |
2f4c0a16 | 25893 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25894 | { |
25895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25896 | result = (wxArrowHead *)(arg1)->FindArrowHead(arg2); | |
25897 | ||
25898 | wxPyEndAllowThreads(__tstate); | |
25899 | if (PyErr_Occurred()) SWIG_fail; | |
25900 | } | |
25901 | { | |
412d302d | 25902 | resultobj = wxPyMake_wxObject(result, 0); |
44127b65 RD |
25903 | } |
25904 | return resultobj; | |
25905 | fail: | |
25906 | return NULL; | |
25907 | } | |
25908 | ||
25909 | ||
c370783e | 25910 | static PyObject *_wrap_PyLineShape_FindArrowHead(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25911 | PyObject *resultobj; |
25912 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25913 | int arg2 ; | |
25914 | wxString *arg3 = 0 ; | |
25915 | wxArrowHead *result; | |
25916 | bool temp3 = False ; | |
25917 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25918 | PyObject * obj1 = 0 ; |
44127b65 RD |
25919 | PyObject * obj2 = 0 ; |
25920 | char *kwnames[] = { | |
25921 | (char *) "self",(char *) "position",(char *) "name", NULL | |
25922 | }; | |
25923 | ||
8edf1c75 | 25924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_FindArrowHead",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
25925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25927 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 25928 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
25929 | { |
25930 | arg3 = wxString_in_helper(obj2); | |
25931 | if (arg3 == NULL) SWIG_fail; | |
25932 | temp3 = True; | |
25933 | } | |
25934 | { | |
25935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25936 | result = (wxArrowHead *)(arg1)->FindArrowHead(arg2,(wxString const &)*arg3); | |
25937 | ||
25938 | wxPyEndAllowThreads(__tstate); | |
25939 | if (PyErr_Occurred()) SWIG_fail; | |
25940 | } | |
25941 | { | |
412d302d | 25942 | resultobj = wxPyMake_wxObject(result, 0); |
44127b65 RD |
25943 | } |
25944 | { | |
25945 | if (temp3) | |
25946 | delete arg3; | |
25947 | } | |
25948 | return resultobj; | |
25949 | fail: | |
25950 | { | |
25951 | if (temp3) | |
25952 | delete arg3; | |
25953 | } | |
25954 | return NULL; | |
25955 | } | |
25956 | ||
25957 | ||
c370783e | 25958 | static PyObject *_wrap_PyLineShape_FindLineEndPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
25959 | PyObject *resultobj; |
25960 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
25961 | double *arg2 = (double *) 0 ; | |
25962 | double *arg3 = (double *) 0 ; | |
25963 | double *arg4 = (double *) 0 ; | |
25964 | double *arg5 = (double *) 0 ; | |
25965 | double temp2 ; | |
c370783e | 25966 | int res2 = 0 ; |
44127b65 | 25967 | double temp3 ; |
c370783e | 25968 | int res3 = 0 ; |
44127b65 | 25969 | double temp4 ; |
c370783e | 25970 | int res4 = 0 ; |
44127b65 | 25971 | double temp5 ; |
c370783e | 25972 | int res5 = 0 ; |
44127b65 RD |
25973 | PyObject * obj0 = 0 ; |
25974 | char *kwnames[] = { | |
25975 | (char *) "self", NULL | |
25976 | }; | |
25977 | ||
c370783e RD |
25978 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
25979 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
25980 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
25981 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
44127b65 | 25982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_FindLineEndPoints",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
25983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
25984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
25985 | { |
25986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25987 | (arg1)->FindLineEndPoints(arg2,arg3,arg4,arg5); | |
25988 | ||
25989 | wxPyEndAllowThreads(__tstate); | |
25990 | if (PyErr_Occurred()) SWIG_fail; | |
25991 | } | |
25992 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
25993 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
25994 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
25995 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
25996 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
25997 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
25998 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
25999 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
26000 | SWIG_From_double((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
26001 | return resultobj; |
26002 | fail: | |
26003 | return NULL; | |
26004 | } | |
26005 | ||
26006 | ||
c370783e | 26007 | static PyObject *_wrap_PyLineShape_FindLinePosition(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26008 | PyObject *resultobj; |
26009 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26010 | double arg2 ; | |
26011 | double arg3 ; | |
26012 | int result; | |
26013 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26014 | PyObject * obj1 = 0 ; |
26015 | PyObject * obj2 = 0 ; | |
44127b65 RD |
26016 | char *kwnames[] = { |
26017 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26018 | }; | |
26019 | ||
8edf1c75 | 26020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_FindLinePosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
26021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26023 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 26024 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26025 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 26026 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26027 | { |
26028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26029 | result = (int)(arg1)->FindLinePosition(arg2,arg3); | |
26030 | ||
26031 | wxPyEndAllowThreads(__tstate); | |
26032 | if (PyErr_Occurred()) SWIG_fail; | |
26033 | } | |
c370783e | 26034 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
26035 | return resultobj; |
26036 | fail: | |
26037 | return NULL; | |
26038 | } | |
26039 | ||
26040 | ||
c370783e | 26041 | static PyObject *_wrap_PyLineShape_FindMinimumWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26042 | PyObject *resultobj; |
26043 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26044 | double result; | |
26045 | PyObject * obj0 = 0 ; | |
26046 | char *kwnames[] = { | |
26047 | (char *) "self", NULL | |
26048 | }; | |
26049 | ||
26050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_FindMinimumWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26053 | { |
26054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26055 | result = (double)(arg1)->FindMinimumWidth(); | |
26056 | ||
26057 | wxPyEndAllowThreads(__tstate); | |
26058 | if (PyErr_Occurred()) SWIG_fail; | |
26059 | } | |
c370783e | 26060 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
26061 | return resultobj; |
26062 | fail: | |
26063 | return NULL; | |
26064 | } | |
26065 | ||
26066 | ||
c370783e | 26067 | static PyObject *_wrap_PyLineShape_FindNth(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26068 | PyObject *resultobj; |
26069 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26070 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26071 | int *arg3 = (int *) 0 ; | |
26072 | int *arg4 = (int *) 0 ; | |
26073 | bool arg5 ; | |
26074 | int temp3 ; | |
c370783e | 26075 | int res3 = 0 ; |
44127b65 | 26076 | int temp4 ; |
c370783e | 26077 | int res4 = 0 ; |
44127b65 RD |
26078 | PyObject * obj0 = 0 ; |
26079 | PyObject * obj1 = 0 ; | |
26080 | PyObject * obj2 = 0 ; | |
26081 | char *kwnames[] = { | |
26082 | (char *) "self",(char *) "image",(char *) "incoming", NULL | |
26083 | }; | |
26084 | ||
c370783e RD |
26085 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
26086 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
44127b65 | 26087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_FindNth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
26088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26090 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26092 | arg5 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 26093 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26094 | { |
26095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26096 | (arg1)->FindNth(arg2,arg3,arg4,arg5); | |
26097 | ||
26098 | wxPyEndAllowThreads(__tstate); | |
26099 | if (PyErr_Occurred()) SWIG_fail; | |
26100 | } | |
26101 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
26102 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
26103 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
26104 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
26105 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
44127b65 RD |
26106 | return resultobj; |
26107 | fail: | |
26108 | return NULL; | |
26109 | } | |
26110 | ||
26111 | ||
c370783e | 26112 | static PyObject *_wrap_PyLineShape_GetAttachmentFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26113 | PyObject *resultobj; |
26114 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26115 | int result; | |
26116 | PyObject * obj0 = 0 ; | |
26117 | char *kwnames[] = { | |
26118 | (char *) "self", NULL | |
26119 | }; | |
26120 | ||
26121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAttachmentFrom",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26124 | { |
26125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26126 | result = (int)(arg1)->GetAttachmentFrom(); | |
26127 | ||
26128 | wxPyEndAllowThreads(__tstate); | |
26129 | if (PyErr_Occurred()) SWIG_fail; | |
26130 | } | |
c370783e | 26131 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
26132 | return resultobj; |
26133 | fail: | |
26134 | return NULL; | |
26135 | } | |
26136 | ||
26137 | ||
c370783e | 26138 | static PyObject *_wrap_PyLineShape_GetAttachmentTo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26139 | PyObject *resultobj; |
26140 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26141 | int result; | |
26142 | PyObject * obj0 = 0 ; | |
26143 | char *kwnames[] = { | |
26144 | (char *) "self", NULL | |
26145 | }; | |
26146 | ||
26147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAttachmentTo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26150 | { |
26151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26152 | result = (int)(arg1)->GetAttachmentTo(); | |
26153 | ||
26154 | wxPyEndAllowThreads(__tstate); | |
26155 | if (PyErr_Occurred()) SWIG_fail; | |
26156 | } | |
c370783e | 26157 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
26158 | return resultobj; |
26159 | fail: | |
26160 | return NULL; | |
26161 | } | |
26162 | ||
26163 | ||
c370783e | 26164 | static PyObject *_wrap_PyLineShape_GetEnds(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26165 | PyObject *resultobj; |
26166 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26167 | double *arg2 = (double *) 0 ; | |
26168 | double *arg3 = (double *) 0 ; | |
26169 | double *arg4 = (double *) 0 ; | |
26170 | double *arg5 = (double *) 0 ; | |
26171 | double temp2 ; | |
c370783e | 26172 | int res2 = 0 ; |
44127b65 | 26173 | double temp3 ; |
c370783e | 26174 | int res3 = 0 ; |
44127b65 | 26175 | double temp4 ; |
c370783e | 26176 | int res4 = 0 ; |
44127b65 | 26177 | double temp5 ; |
c370783e | 26178 | int res5 = 0 ; |
44127b65 RD |
26179 | PyObject * obj0 = 0 ; |
26180 | char *kwnames[] = { | |
26181 | (char *) "self", NULL | |
26182 | }; | |
26183 | ||
c370783e RD |
26184 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26185 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
26186 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
26187 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
44127b65 | 26188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetEnds",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
26189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26191 | { |
26192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26193 | (arg1)->GetEnds(arg2,arg3,arg4,arg5); | |
26194 | ||
26195 | wxPyEndAllowThreads(__tstate); | |
26196 | if (PyErr_Occurred()) SWIG_fail; | |
26197 | } | |
26198 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
26199 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26200 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
26201 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26202 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
26203 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
26204 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
26205 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
26206 | SWIG_From_double((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
26207 | return resultobj; |
26208 | fail: | |
26209 | return NULL; | |
26210 | } | |
26211 | ||
26212 | ||
c370783e | 26213 | static PyObject *_wrap_PyLineShape_GetFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26214 | PyObject *resultobj; |
26215 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26216 | wxPyShape *result; | |
26217 | PyObject * obj0 = 0 ; | |
26218 | char *kwnames[] = { | |
26219 | (char *) "self", NULL | |
26220 | }; | |
26221 | ||
26222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetFrom",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26225 | { |
26226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26227 | result = (wxPyShape *)(arg1)->GetFrom(); | |
26228 | ||
26229 | wxPyEndAllowThreads(__tstate); | |
26230 | if (PyErr_Occurred()) SWIG_fail; | |
26231 | } | |
26232 | { | |
412d302d | 26233 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
26234 | } |
26235 | return resultobj; | |
26236 | fail: | |
26237 | return NULL; | |
26238 | } | |
26239 | ||
26240 | ||
c370783e | 26241 | static PyObject *_wrap_PyLineShape_GetLabelPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26242 | PyObject *resultobj; |
26243 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26244 | int arg2 ; | |
26245 | double *arg3 = (double *) 0 ; | |
26246 | double *arg4 = (double *) 0 ; | |
26247 | double temp3 ; | |
c370783e | 26248 | int res3 = 0 ; |
44127b65 | 26249 | double temp4 ; |
c370783e | 26250 | int res4 = 0 ; |
44127b65 | 26251 | PyObject * obj0 = 0 ; |
8edf1c75 | 26252 | PyObject * obj1 = 0 ; |
44127b65 RD |
26253 | char *kwnames[] = { |
26254 | (char *) "self",(char *) "position", NULL | |
26255 | }; | |
26256 | ||
c370783e RD |
26257 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
26258 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
8edf1c75 | 26259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetLabelPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26262 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 26263 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26264 | { |
26265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26266 | (arg1)->GetLabelPosition(arg2,arg3,arg4); | |
26267 | ||
26268 | wxPyEndAllowThreads(__tstate); | |
26269 | if (PyErr_Occurred()) SWIG_fail; | |
26270 | } | |
26271 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
26272 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
26273 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
26274 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
26275 | SWIG_From_double((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
26276 | return resultobj; |
26277 | fail: | |
26278 | return NULL; | |
26279 | } | |
26280 | ||
26281 | ||
c370783e | 26282 | static PyObject *_wrap_PyLineShape_GetNextControlPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26283 | PyObject *resultobj; |
26284 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26285 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26286 | wxRealPoint *result; | |
26287 | PyObject * obj0 = 0 ; | |
26288 | PyObject * obj1 = 0 ; | |
26289 | char *kwnames[] = { | |
26290 | (char *) "self",(char *) "shape", NULL | |
26291 | }; | |
26292 | ||
26293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetNextControlPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26296 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26298 | { |
26299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26300 | result = (wxRealPoint *)(arg1)->GetNextControlPoint(arg2); | |
26301 | ||
26302 | wxPyEndAllowThreads(__tstate); | |
26303 | if (PyErr_Occurred()) SWIG_fail; | |
26304 | } | |
2f4c0a16 | 26305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 0); |
44127b65 RD |
26306 | return resultobj; |
26307 | fail: | |
26308 | return NULL; | |
26309 | } | |
26310 | ||
26311 | ||
c370783e | 26312 | static PyObject *_wrap_PyLineShape_GetTo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26313 | PyObject *resultobj; |
26314 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26315 | wxPyShape *result; | |
26316 | PyObject * obj0 = 0 ; | |
26317 | char *kwnames[] = { | |
26318 | (char *) "self", NULL | |
26319 | }; | |
26320 | ||
26321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetTo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26324 | { |
26325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26326 | result = (wxPyShape *)(arg1)->GetTo(); | |
26327 | ||
26328 | wxPyEndAllowThreads(__tstate); | |
26329 | if (PyErr_Occurred()) SWIG_fail; | |
26330 | } | |
26331 | { | |
412d302d | 26332 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
26333 | } |
26334 | return resultobj; | |
26335 | fail: | |
26336 | return NULL; | |
26337 | } | |
26338 | ||
26339 | ||
c370783e | 26340 | static PyObject *_wrap_PyLineShape_Initialise(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26341 | PyObject *resultobj; |
26342 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26343 | PyObject * obj0 = 0 ; | |
26344 | char *kwnames[] = { | |
26345 | (char *) "self", NULL | |
26346 | }; | |
26347 | ||
26348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_Initialise",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26351 | { |
26352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26353 | (arg1)->Initialise(); | |
26354 | ||
26355 | wxPyEndAllowThreads(__tstate); | |
26356 | if (PyErr_Occurred()) SWIG_fail; | |
26357 | } | |
26358 | Py_INCREF(Py_None); resultobj = Py_None; | |
26359 | return resultobj; | |
26360 | fail: | |
26361 | return NULL; | |
26362 | } | |
26363 | ||
26364 | ||
c370783e | 26365 | static PyObject *_wrap_PyLineShape_InsertLineControlPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26366 | PyObject *resultobj; |
26367 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26368 | wxDC *arg2 = (wxDC *) 0 ; | |
26369 | PyObject * obj0 = 0 ; | |
26370 | PyObject * obj1 = 0 ; | |
26371 | char *kwnames[] = { | |
26372 | (char *) "self",(char *) "dc", NULL | |
26373 | }; | |
26374 | ||
26375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_InsertLineControlPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26380 | { |
26381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26382 | (arg1)->InsertLineControlPoint(arg2); | |
26383 | ||
26384 | wxPyEndAllowThreads(__tstate); | |
26385 | if (PyErr_Occurred()) SWIG_fail; | |
26386 | } | |
26387 | Py_INCREF(Py_None); resultobj = Py_None; | |
26388 | return resultobj; | |
26389 | fail: | |
26390 | return NULL; | |
26391 | } | |
26392 | ||
26393 | ||
c370783e | 26394 | static PyObject *_wrap_PyLineShape_IsEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26395 | PyObject *resultobj; |
26396 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26397 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26398 | bool result; | |
26399 | PyObject * obj0 = 0 ; | |
26400 | PyObject * obj1 = 0 ; | |
26401 | char *kwnames[] = { | |
26402 | (char *) "self",(char *) "shape", NULL | |
26403 | }; | |
26404 | ||
26405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_IsEnd",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26410 | { |
26411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26412 | result = (bool)(arg1)->IsEnd(arg2); | |
26413 | ||
26414 | wxPyEndAllowThreads(__tstate); | |
26415 | if (PyErr_Occurred()) SWIG_fail; | |
26416 | } | |
fbc46b20 RD |
26417 | { |
26418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26419 | } | |
44127b65 RD |
26420 | return resultobj; |
26421 | fail: | |
26422 | return NULL; | |
26423 | } | |
26424 | ||
26425 | ||
c370783e | 26426 | static PyObject *_wrap_PyLineShape_IsSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26427 | PyObject *resultobj; |
26428 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26429 | bool result; | |
26430 | PyObject * obj0 = 0 ; | |
26431 | char *kwnames[] = { | |
26432 | (char *) "self", NULL | |
26433 | }; | |
26434 | ||
26435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_IsSpline",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26438 | { |
26439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26440 | result = (bool)(arg1)->IsSpline(); | |
26441 | ||
26442 | wxPyEndAllowThreads(__tstate); | |
26443 | if (PyErr_Occurred()) SWIG_fail; | |
26444 | } | |
fbc46b20 RD |
26445 | { |
26446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26447 | } | |
44127b65 RD |
26448 | return resultobj; |
26449 | fail: | |
26450 | return NULL; | |
26451 | } | |
26452 | ||
26453 | ||
c370783e | 26454 | static PyObject *_wrap_PyLineShape_MakeLineControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26455 | PyObject *resultobj; |
26456 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26457 | int arg2 ; | |
26458 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26459 | PyObject * obj1 = 0 ; |
44127b65 RD |
26460 | char *kwnames[] = { |
26461 | (char *) "self",(char *) "n", NULL | |
26462 | }; | |
26463 | ||
8edf1c75 | 26464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_MakeLineControlPoints",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26467 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 26468 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26469 | { |
26470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26471 | (arg1)->MakeLineControlPoints(arg2); | |
26472 | ||
26473 | wxPyEndAllowThreads(__tstate); | |
26474 | if (PyErr_Occurred()) SWIG_fail; | |
26475 | } | |
26476 | Py_INCREF(Py_None); resultobj = Py_None; | |
26477 | return resultobj; | |
26478 | fail: | |
26479 | return NULL; | |
26480 | } | |
26481 | ||
26482 | ||
c370783e | 26483 | static PyObject *_wrap_PyLineShape_GetLineControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26484 | PyObject *resultobj; |
26485 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26486 | PyObject *result; | |
26487 | PyObject * obj0 = 0 ; | |
26488 | char *kwnames[] = { | |
26489 | (char *) "self", NULL | |
26490 | }; | |
26491 | ||
26492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetLineControlPoints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26495 | { |
26496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26497 | result = (PyObject *)wxPyLineShape_GetLineControlPoints(arg1); | |
26498 | ||
26499 | wxPyEndAllowThreads(__tstate); | |
26500 | if (PyErr_Occurred()) SWIG_fail; | |
26501 | } | |
26502 | resultobj = result; | |
26503 | return resultobj; | |
26504 | fail: | |
26505 | return NULL; | |
26506 | } | |
26507 | ||
26508 | ||
c370783e | 26509 | static PyObject *_wrap_PyLineShape_SetLineControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
0346c964 RD |
26510 | PyObject *resultobj; |
26511 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26512 | PyObject *arg2 = (PyObject *) 0 ; | |
26513 | PyObject * obj0 = 0 ; | |
26514 | PyObject * obj1 = 0 ; | |
26515 | char *kwnames[] = { | |
26516 | (char *) "self",(char *) "list", NULL | |
26517 | }; | |
26518 | ||
26519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetLineControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
26520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, | |
26521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26522 | arg2 = obj1; | |
26523 | { | |
26524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26525 | wxPyLineShape_SetLineControlPoints(arg1,arg2); | |
26526 | ||
26527 | wxPyEndAllowThreads(__tstate); | |
26528 | if (PyErr_Occurred()) SWIG_fail; | |
26529 | } | |
26530 | Py_INCREF(Py_None); resultobj = Py_None; | |
26531 | return resultobj; | |
26532 | fail: | |
26533 | return NULL; | |
26534 | } | |
26535 | ||
26536 | ||
c370783e | 26537 | static PyObject *_wrap_PyLineShape_SetAttachmentFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26538 | PyObject *resultobj; |
26539 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26540 | int arg2 ; | |
26541 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26542 | PyObject * obj1 = 0 ; |
44127b65 RD |
26543 | char *kwnames[] = { |
26544 | (char *) "self",(char *) "fromAttach", NULL | |
26545 | }; | |
26546 | ||
8edf1c75 | 26547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetAttachmentFrom",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26550 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 26551 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26552 | { |
26553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26554 | (arg1)->SetAttachmentFrom(arg2); | |
26555 | ||
26556 | wxPyEndAllowThreads(__tstate); | |
26557 | if (PyErr_Occurred()) SWIG_fail; | |
26558 | } | |
26559 | Py_INCREF(Py_None); resultobj = Py_None; | |
26560 | return resultobj; | |
26561 | fail: | |
26562 | return NULL; | |
26563 | } | |
26564 | ||
26565 | ||
c370783e | 26566 | static PyObject *_wrap_PyLineShape_SetAttachments(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26567 | PyObject *resultobj; |
26568 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26569 | int arg2 ; | |
26570 | int arg3 ; | |
26571 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26572 | PyObject * obj1 = 0 ; |
26573 | PyObject * obj2 = 0 ; | |
44127b65 RD |
26574 | char *kwnames[] = { |
26575 | (char *) "self",(char *) "fromAttach",(char *) "toAttach", NULL | |
26576 | }; | |
26577 | ||
8edf1c75 | 26578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_SetAttachments",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
26579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26581 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 26582 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26583 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 26584 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26585 | { |
26586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26587 | (arg1)->SetAttachments(arg2,arg3); | |
26588 | ||
26589 | wxPyEndAllowThreads(__tstate); | |
26590 | if (PyErr_Occurred()) SWIG_fail; | |
26591 | } | |
26592 | Py_INCREF(Py_None); resultobj = Py_None; | |
26593 | return resultobj; | |
26594 | fail: | |
26595 | return NULL; | |
26596 | } | |
26597 | ||
26598 | ||
c370783e | 26599 | static PyObject *_wrap_PyLineShape_SetAttachmentTo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26600 | PyObject *resultobj; |
26601 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26602 | int arg2 ; | |
26603 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26604 | PyObject * obj1 = 0 ; |
44127b65 RD |
26605 | char *kwnames[] = { |
26606 | (char *) "self",(char *) "toAttach", NULL | |
26607 | }; | |
26608 | ||
8edf1c75 | 26609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetAttachmentTo",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26612 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 26613 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26614 | { |
26615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26616 | (arg1)->SetAttachmentTo(arg2); | |
26617 | ||
26618 | wxPyEndAllowThreads(__tstate); | |
26619 | if (PyErr_Occurred()) SWIG_fail; | |
26620 | } | |
26621 | Py_INCREF(Py_None); resultobj = Py_None; | |
26622 | return resultobj; | |
26623 | fail: | |
26624 | return NULL; | |
26625 | } | |
26626 | ||
26627 | ||
c370783e | 26628 | static PyObject *_wrap_PyLineShape_SetEnds(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26629 | PyObject *resultobj; |
26630 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26631 | double arg2 ; | |
26632 | double arg3 ; | |
26633 | double arg4 ; | |
26634 | double arg5 ; | |
26635 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26636 | PyObject * obj1 = 0 ; |
26637 | PyObject * obj2 = 0 ; | |
26638 | PyObject * obj3 = 0 ; | |
26639 | PyObject * obj4 = 0 ; | |
44127b65 RD |
26640 | char *kwnames[] = { |
26641 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
26642 | }; | |
26643 | ||
8edf1c75 | 26644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyLineShape_SetEnds",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
26645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26647 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 26648 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26649 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 26650 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26651 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 26652 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26653 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 26654 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26655 | { |
26656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26657 | (arg1)->SetEnds(arg2,arg3,arg4,arg5); | |
26658 | ||
26659 | wxPyEndAllowThreads(__tstate); | |
26660 | if (PyErr_Occurred()) SWIG_fail; | |
26661 | } | |
26662 | Py_INCREF(Py_None); resultobj = Py_None; | |
26663 | return resultobj; | |
26664 | fail: | |
26665 | return NULL; | |
26666 | } | |
26667 | ||
26668 | ||
c370783e | 26669 | static PyObject *_wrap_PyLineShape_SetFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26670 | PyObject *resultobj; |
26671 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26672 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26673 | PyObject * obj0 = 0 ; | |
26674 | PyObject * obj1 = 0 ; | |
26675 | char *kwnames[] = { | |
26676 | (char *) "self",(char *) "object", NULL | |
26677 | }; | |
26678 | ||
26679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetFrom",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26684 | { |
26685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26686 | (arg1)->SetFrom(arg2); | |
26687 | ||
26688 | wxPyEndAllowThreads(__tstate); | |
26689 | if (PyErr_Occurred()) SWIG_fail; | |
26690 | } | |
26691 | Py_INCREF(Py_None); resultobj = Py_None; | |
26692 | return resultobj; | |
26693 | fail: | |
26694 | return NULL; | |
26695 | } | |
26696 | ||
26697 | ||
c370783e | 26698 | static PyObject *_wrap_PyLineShape_SetIgnoreOffsets(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26699 | PyObject *resultobj; |
26700 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26701 | bool arg2 ; | |
26702 | PyObject * obj0 = 0 ; | |
26703 | PyObject * obj1 = 0 ; | |
26704 | char *kwnames[] = { | |
26705 | (char *) "self",(char *) "ignore", NULL | |
26706 | }; | |
26707 | ||
26708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetIgnoreOffsets",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26711 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 26712 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26713 | { |
26714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26715 | (arg1)->SetIgnoreOffsets(arg2); | |
26716 | ||
26717 | wxPyEndAllowThreads(__tstate); | |
26718 | if (PyErr_Occurred()) SWIG_fail; | |
26719 | } | |
26720 | Py_INCREF(Py_None); resultobj = Py_None; | |
26721 | return resultobj; | |
26722 | fail: | |
26723 | return NULL; | |
26724 | } | |
26725 | ||
26726 | ||
c370783e | 26727 | static PyObject *_wrap_PyLineShape_SetSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26728 | PyObject *resultobj; |
26729 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26730 | bool arg2 ; | |
26731 | PyObject * obj0 = 0 ; | |
26732 | PyObject * obj1 = 0 ; | |
26733 | char *kwnames[] = { | |
26734 | (char *) "self",(char *) "spline", NULL | |
26735 | }; | |
26736 | ||
26737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetSpline",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26740 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 26741 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
26742 | { |
26743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26744 | (arg1)->SetSpline(arg2); | |
26745 | ||
26746 | wxPyEndAllowThreads(__tstate); | |
26747 | if (PyErr_Occurred()) SWIG_fail; | |
26748 | } | |
26749 | Py_INCREF(Py_None); resultobj = Py_None; | |
26750 | return resultobj; | |
26751 | fail: | |
26752 | return NULL; | |
26753 | } | |
26754 | ||
26755 | ||
c370783e | 26756 | static PyObject *_wrap_PyLineShape_SetTo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26757 | PyObject *resultobj; |
26758 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26759 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
26760 | PyObject * obj0 = 0 ; | |
26761 | PyObject * obj1 = 0 ; | |
26762 | char *kwnames[] = { | |
26763 | (char *) "self",(char *) "object", NULL | |
26764 | }; | |
26765 | ||
26766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_SetTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
26770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26771 | { |
26772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26773 | (arg1)->SetTo(arg2); | |
26774 | ||
26775 | wxPyEndAllowThreads(__tstate); | |
26776 | if (PyErr_Occurred()) SWIG_fail; | |
26777 | } | |
26778 | Py_INCREF(Py_None); resultobj = Py_None; | |
26779 | return resultobj; | |
26780 | fail: | |
26781 | return NULL; | |
26782 | } | |
26783 | ||
26784 | ||
c370783e | 26785 | static PyObject *_wrap_PyLineShape_Straighten(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26786 | PyObject *resultobj; |
26787 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26788 | wxDC *arg2 = (wxDC *) NULL ; | |
26789 | PyObject * obj0 = 0 ; | |
26790 | PyObject * obj1 = 0 ; | |
26791 | char *kwnames[] = { | |
26792 | (char *) "self",(char *) "dc", NULL | |
26793 | }; | |
26794 | ||
26795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyLineShape_Straighten",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 26798 | if (obj1) { |
2f4c0a16 RD |
26799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
26800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26801 | } |
26802 | { | |
26803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26804 | (arg1)->Straighten(arg2); | |
26805 | ||
26806 | wxPyEndAllowThreads(__tstate); | |
26807 | if (PyErr_Occurred()) SWIG_fail; | |
26808 | } | |
26809 | Py_INCREF(Py_None); resultobj = Py_None; | |
26810 | return resultobj; | |
26811 | fail: | |
26812 | return NULL; | |
26813 | } | |
26814 | ||
26815 | ||
c370783e | 26816 | static PyObject *_wrap_PyLineShape_Unlink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
26817 | PyObject *resultobj; |
26818 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26819 | PyObject * obj0 = 0 ; | |
26820 | char *kwnames[] = { | |
26821 | (char *) "self", NULL | |
26822 | }; | |
26823 | ||
26824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_Unlink",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
26827 | { |
26828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26829 | (arg1)->Unlink(); | |
26830 | ||
26831 | wxPyEndAllowThreads(__tstate); | |
26832 | if (PyErr_Occurred()) SWIG_fail; | |
26833 | } | |
26834 | Py_INCREF(Py_None); resultobj = Py_None; | |
26835 | return resultobj; | |
26836 | fail: | |
26837 | return NULL; | |
26838 | } | |
26839 | ||
26840 | ||
c370783e | 26841 | static PyObject *_wrap_PyLineShape_SetAlignmentOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
26842 | PyObject *resultobj; |
26843 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26844 | bool arg2 ; | |
26845 | bool arg3 ; | |
26846 | PyObject * obj0 = 0 ; | |
26847 | PyObject * obj1 = 0 ; | |
26848 | PyObject * obj2 = 0 ; | |
26849 | char *kwnames[] = { | |
26850 | (char *) "self",(char *) "isEnd",(char *) "isHoriz", NULL | |
26851 | }; | |
26852 | ||
26853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_SetAlignmentOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26856 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 26857 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26858 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 26859 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
26860 | { |
26861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26862 | (arg1)->SetAlignmentOrientation(arg2,arg3); | |
26863 | ||
26864 | wxPyEndAllowThreads(__tstate); | |
26865 | if (PyErr_Occurred()) SWIG_fail; | |
26866 | } | |
26867 | Py_INCREF(Py_None); resultobj = Py_None; | |
26868 | return resultobj; | |
26869 | fail: | |
26870 | return NULL; | |
26871 | } | |
26872 | ||
26873 | ||
c370783e | 26874 | static PyObject *_wrap_PyLineShape_SetAlignmentType(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
26875 | PyObject *resultobj; |
26876 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26877 | bool arg2 ; | |
26878 | int arg3 ; | |
26879 | PyObject * obj0 = 0 ; | |
26880 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26881 | PyObject * obj2 = 0 ; |
7a0a63ae RD |
26882 | char *kwnames[] = { |
26883 | (char *) "self",(char *) "isEnd",(char *) "alignType", NULL | |
26884 | }; | |
26885 | ||
8edf1c75 | 26886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_SetAlignmentType",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
26887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26889 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 26890 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26891 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 26892 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
26893 | { |
26894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26895 | (arg1)->SetAlignmentType(arg2,arg3); | |
26896 | ||
26897 | wxPyEndAllowThreads(__tstate); | |
26898 | if (PyErr_Occurred()) SWIG_fail; | |
26899 | } | |
26900 | Py_INCREF(Py_None); resultobj = Py_None; | |
26901 | return resultobj; | |
26902 | fail: | |
26903 | return NULL; | |
26904 | } | |
26905 | ||
26906 | ||
c370783e | 26907 | static PyObject *_wrap_PyLineShape_GetAlignmentOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
26908 | PyObject *resultobj; |
26909 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26910 | bool arg2 ; | |
26911 | bool result; | |
26912 | PyObject * obj0 = 0 ; | |
26913 | PyObject * obj1 = 0 ; | |
26914 | char *kwnames[] = { | |
26915 | (char *) "self",(char *) "isEnd", NULL | |
26916 | }; | |
26917 | ||
26918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetAlignmentOrientation",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26921 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 26922 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
26923 | { |
26924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26925 | result = (bool)(arg1)->GetAlignmentOrientation(arg2); | |
26926 | ||
26927 | wxPyEndAllowThreads(__tstate); | |
26928 | if (PyErr_Occurred()) SWIG_fail; | |
26929 | } | |
fbc46b20 RD |
26930 | { |
26931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26932 | } | |
7a0a63ae RD |
26933 | return resultobj; |
26934 | fail: | |
26935 | return NULL; | |
26936 | } | |
26937 | ||
26938 | ||
c370783e | 26939 | static PyObject *_wrap_PyLineShape_GetAlignmentType(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
26940 | PyObject *resultobj; |
26941 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26942 | bool arg2 ; | |
26943 | int result; | |
26944 | PyObject * obj0 = 0 ; | |
26945 | PyObject * obj1 = 0 ; | |
26946 | char *kwnames[] = { | |
26947 | (char *) "self",(char *) "isEnd", NULL | |
26948 | }; | |
26949 | ||
26950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_GetAlignmentType",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26953 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 26954 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
26955 | { |
26956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26957 | result = (int)(arg1)->GetAlignmentType(arg2); | |
26958 | ||
26959 | wxPyEndAllowThreads(__tstate); | |
26960 | if (PyErr_Occurred()) SWIG_fail; | |
26961 | } | |
c370783e | 26962 | resultobj = SWIG_From_int((int)result); |
7a0a63ae RD |
26963 | return resultobj; |
26964 | fail: | |
26965 | return NULL; | |
26966 | } | |
26967 | ||
26968 | ||
c370783e | 26969 | static PyObject *_wrap_PyLineShape_GetAlignmentStart(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
26970 | PyObject *resultobj; |
26971 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26972 | int result; | |
26973 | PyObject * obj0 = 0 ; | |
26974 | char *kwnames[] = { | |
26975 | (char *) "self", NULL | |
26976 | }; | |
26977 | ||
26978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAlignmentStart",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
26980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
26981 | { |
26982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26983 | result = (int)((wxPyLineShape const *)arg1)->GetAlignmentStart(); | |
26984 | ||
26985 | wxPyEndAllowThreads(__tstate); | |
26986 | if (PyErr_Occurred()) SWIG_fail; | |
26987 | } | |
c370783e | 26988 | resultobj = SWIG_From_int((int)result); |
7a0a63ae RD |
26989 | return resultobj; |
26990 | fail: | |
26991 | return NULL; | |
26992 | } | |
26993 | ||
26994 | ||
c370783e | 26995 | static PyObject *_wrap_PyLineShape_GetAlignmentEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
26996 | PyObject *resultobj; |
26997 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
26998 | int result; | |
26999 | PyObject * obj0 = 0 ; | |
27000 | char *kwnames[] = { | |
27001 | (char *) "self", NULL | |
27002 | }; | |
27003 | ||
27004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyLineShape_GetAlignmentEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
27007 | { |
27008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27009 | result = (int)((wxPyLineShape const *)arg1)->GetAlignmentEnd(); | |
27010 | ||
27011 | wxPyEndAllowThreads(__tstate); | |
27012 | if (PyErr_Occurred()) SWIG_fail; | |
27013 | } | |
c370783e | 27014 | resultobj = SWIG_From_int((int)result); |
7a0a63ae RD |
27015 | return resultobj; |
27016 | fail: | |
27017 | return NULL; | |
27018 | } | |
27019 | ||
27020 | ||
c370783e | 27021 | static PyObject *_wrap_PyLineShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27022 | PyObject *resultobj; |
27023 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27024 | wxDC *arg2 = 0 ; | |
27025 | PyObject * obj0 = 0 ; | |
27026 | PyObject * obj1 = 0 ; | |
27027 | char *kwnames[] = { | |
27028 | (char *) "self",(char *) "dc", NULL | |
27029 | }; | |
27030 | ||
27031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27035 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27036 | SWIG_fail; | |
44127b65 | 27037 | if (arg2 == NULL) { |
2f4c0a16 RD |
27038 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27039 | SWIG_fail; | |
44127b65 RD |
27040 | } |
27041 | { | |
27042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27043 | (arg1)->base_OnDraw(*arg2); | |
27044 | ||
27045 | wxPyEndAllowThreads(__tstate); | |
27046 | if (PyErr_Occurred()) SWIG_fail; | |
27047 | } | |
27048 | Py_INCREF(Py_None); resultobj = Py_None; | |
27049 | return resultobj; | |
27050 | fail: | |
27051 | return NULL; | |
27052 | } | |
27053 | ||
27054 | ||
c370783e | 27055 | static PyObject *_wrap_PyLineShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27056 | PyObject *resultobj; |
27057 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27058 | wxDC *arg2 = 0 ; | |
27059 | PyObject * obj0 = 0 ; | |
27060 | PyObject * obj1 = 0 ; | |
27061 | char *kwnames[] = { | |
27062 | (char *) "self",(char *) "dc", NULL | |
27063 | }; | |
27064 | ||
27065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27068 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27069 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27070 | SWIG_fail; | |
44127b65 | 27071 | if (arg2 == NULL) { |
2f4c0a16 RD |
27072 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27073 | SWIG_fail; | |
44127b65 RD |
27074 | } |
27075 | { | |
27076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27077 | (arg1)->base_OnDrawContents(*arg2); | |
27078 | ||
27079 | wxPyEndAllowThreads(__tstate); | |
27080 | if (PyErr_Occurred()) SWIG_fail; | |
27081 | } | |
27082 | Py_INCREF(Py_None); resultobj = Py_None; | |
27083 | return resultobj; | |
27084 | fail: | |
27085 | return NULL; | |
27086 | } | |
27087 | ||
27088 | ||
c370783e | 27089 | static PyObject *_wrap_PyLineShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27090 | PyObject *resultobj; |
27091 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27092 | wxDC *arg2 = 0 ; | |
27093 | bool arg3 = (bool) FALSE ; | |
27094 | PyObject * obj0 = 0 ; | |
27095 | PyObject * obj1 = 0 ; | |
27096 | PyObject * obj2 = 0 ; | |
27097 | char *kwnames[] = { | |
27098 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
27099 | }; | |
27100 | ||
27101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLineShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27104 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27105 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27106 | SWIG_fail; | |
44127b65 | 27107 | if (arg2 == NULL) { |
2f4c0a16 RD |
27108 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27109 | SWIG_fail; | |
44127b65 RD |
27110 | } |
27111 | if (obj2) { | |
c370783e | 27112 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 27113 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
27114 | } |
27115 | { | |
27116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27117 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
27118 | ||
27119 | wxPyEndAllowThreads(__tstate); | |
27120 | if (PyErr_Occurred()) SWIG_fail; | |
27121 | } | |
27122 | Py_INCREF(Py_None); resultobj = Py_None; | |
27123 | return resultobj; | |
27124 | fail: | |
27125 | return NULL; | |
27126 | } | |
27127 | ||
27128 | ||
c370783e | 27129 | static PyObject *_wrap_PyLineShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27130 | PyObject *resultobj; |
27131 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27132 | wxDC *arg2 = 0 ; | |
27133 | PyObject * obj0 = 0 ; | |
27134 | PyObject * obj1 = 0 ; | |
27135 | char *kwnames[] = { | |
27136 | (char *) "self",(char *) "dc", NULL | |
27137 | }; | |
27138 | ||
27139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27143 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27144 | SWIG_fail; | |
44127b65 | 27145 | if (arg2 == NULL) { |
2f4c0a16 RD |
27146 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27147 | SWIG_fail; | |
44127b65 RD |
27148 | } |
27149 | { | |
27150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27151 | (arg1)->base_OnMoveLinks(*arg2); | |
27152 | ||
27153 | wxPyEndAllowThreads(__tstate); | |
27154 | if (PyErr_Occurred()) SWIG_fail; | |
27155 | } | |
27156 | Py_INCREF(Py_None); resultobj = Py_None; | |
27157 | return resultobj; | |
27158 | fail: | |
27159 | return NULL; | |
27160 | } | |
27161 | ||
27162 | ||
c370783e | 27163 | static PyObject *_wrap_PyLineShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27164 | PyObject *resultobj; |
27165 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27166 | wxDC *arg2 = 0 ; | |
27167 | PyObject * obj0 = 0 ; | |
27168 | PyObject * obj1 = 0 ; | |
27169 | char *kwnames[] = { | |
27170 | (char *) "self",(char *) "dc", NULL | |
27171 | }; | |
27172 | ||
27173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27176 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27177 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27178 | SWIG_fail; | |
44127b65 | 27179 | if (arg2 == NULL) { |
2f4c0a16 RD |
27180 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27181 | SWIG_fail; | |
44127b65 RD |
27182 | } |
27183 | { | |
27184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27185 | (arg1)->base_OnErase(*arg2); | |
27186 | ||
27187 | wxPyEndAllowThreads(__tstate); | |
27188 | if (PyErr_Occurred()) SWIG_fail; | |
27189 | } | |
27190 | Py_INCREF(Py_None); resultobj = Py_None; | |
27191 | return resultobj; | |
27192 | fail: | |
27193 | return NULL; | |
27194 | } | |
27195 | ||
27196 | ||
c370783e | 27197 | static PyObject *_wrap_PyLineShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27198 | PyObject *resultobj; |
27199 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27200 | wxDC *arg2 = 0 ; | |
27201 | PyObject * obj0 = 0 ; | |
27202 | PyObject * obj1 = 0 ; | |
27203 | char *kwnames[] = { | |
27204 | (char *) "self",(char *) "dc", NULL | |
27205 | }; | |
27206 | ||
27207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27210 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27211 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27212 | SWIG_fail; | |
44127b65 | 27213 | if (arg2 == NULL) { |
2f4c0a16 RD |
27214 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27215 | SWIG_fail; | |
44127b65 RD |
27216 | } |
27217 | { | |
27218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27219 | (arg1)->base_OnEraseContents(*arg2); | |
27220 | ||
27221 | wxPyEndAllowThreads(__tstate); | |
27222 | if (PyErr_Occurred()) SWIG_fail; | |
27223 | } | |
27224 | Py_INCREF(Py_None); resultobj = Py_None; | |
27225 | return resultobj; | |
27226 | fail: | |
27227 | return NULL; | |
27228 | } | |
27229 | ||
27230 | ||
c370783e | 27231 | static PyObject *_wrap_PyLineShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27232 | PyObject *resultobj; |
27233 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27234 | wxDC *arg2 = 0 ; | |
27235 | PyObject * obj0 = 0 ; | |
27236 | PyObject * obj1 = 0 ; | |
27237 | char *kwnames[] = { | |
27238 | (char *) "self",(char *) "dc", NULL | |
27239 | }; | |
27240 | ||
27241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27244 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27245 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27246 | SWIG_fail; | |
44127b65 | 27247 | if (arg2 == NULL) { |
2f4c0a16 RD |
27248 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27249 | SWIG_fail; | |
44127b65 RD |
27250 | } |
27251 | { | |
27252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27253 | (arg1)->base_OnHighlight(*arg2); | |
27254 | ||
27255 | wxPyEndAllowThreads(__tstate); | |
27256 | if (PyErr_Occurred()) SWIG_fail; | |
27257 | } | |
27258 | Py_INCREF(Py_None); resultobj = Py_None; | |
27259 | return resultobj; | |
27260 | fail: | |
27261 | return NULL; | |
27262 | } | |
27263 | ||
27264 | ||
c370783e | 27265 | static PyObject *_wrap_PyLineShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27266 | PyObject *resultobj; |
27267 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27268 | double arg2 ; | |
27269 | double arg3 ; | |
27270 | int arg4 = (int) 0 ; | |
27271 | int arg5 = (int) 0 ; | |
27272 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27273 | PyObject * obj1 = 0 ; |
27274 | PyObject * obj2 = 0 ; | |
27275 | PyObject * obj3 = 0 ; | |
27276 | PyObject * obj4 = 0 ; | |
44127b65 RD |
27277 | char *kwnames[] = { |
27278 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27279 | }; | |
27280 | ||
8edf1c75 | 27281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27284 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 27285 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27286 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27287 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27288 | if (obj3) { |
c370783e | 27289 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 27290 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
27291 | } |
27292 | if (obj4) { | |
c370783e | 27293 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 27294 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27295 | } |
44127b65 RD |
27296 | { |
27297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27298 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
27299 | ||
27300 | wxPyEndAllowThreads(__tstate); | |
27301 | if (PyErr_Occurred()) SWIG_fail; | |
27302 | } | |
27303 | Py_INCREF(Py_None); resultobj = Py_None; | |
27304 | return resultobj; | |
27305 | fail: | |
27306 | return NULL; | |
27307 | } | |
27308 | ||
27309 | ||
c370783e | 27310 | static PyObject *_wrap_PyLineShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27311 | PyObject *resultobj; |
27312 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27313 | double arg2 ; | |
27314 | double arg3 ; | |
27315 | int arg4 = (int) 0 ; | |
27316 | int arg5 = (int) 0 ; | |
27317 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27318 | PyObject * obj1 = 0 ; |
27319 | PyObject * obj2 = 0 ; | |
27320 | PyObject * obj3 = 0 ; | |
27321 | PyObject * obj4 = 0 ; | |
44127b65 RD |
27322 | char *kwnames[] = { |
27323 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27324 | }; | |
27325 | ||
8edf1c75 | 27326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27329 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 27330 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27331 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27332 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27333 | if (obj3) { |
c370783e | 27334 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 27335 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
27336 | } |
27337 | if (obj4) { | |
c370783e | 27338 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 27339 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27340 | } |
44127b65 RD |
27341 | { |
27342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27343 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
27344 | ||
27345 | wxPyEndAllowThreads(__tstate); | |
27346 | if (PyErr_Occurred()) SWIG_fail; | |
27347 | } | |
27348 | Py_INCREF(Py_None); resultobj = Py_None; | |
27349 | return resultobj; | |
27350 | fail: | |
27351 | return NULL; | |
27352 | } | |
27353 | ||
27354 | ||
c370783e | 27355 | static PyObject *_wrap_PyLineShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27356 | PyObject *resultobj; |
27357 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27358 | double arg2 ; | |
27359 | double arg3 ; | |
27360 | int arg4 = (int) 0 ; | |
27361 | int arg5 = (int) 0 ; | |
27362 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27363 | PyObject * obj1 = 0 ; |
27364 | PyObject * obj2 = 0 ; | |
27365 | PyObject * obj3 = 0 ; | |
27366 | PyObject * obj4 = 0 ; | |
44127b65 RD |
27367 | char *kwnames[] = { |
27368 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27369 | }; | |
27370 | ||
8edf1c75 | 27371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27374 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 27375 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27376 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27377 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27378 | if (obj3) { |
c370783e | 27379 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 27380 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
27381 | } |
27382 | if (obj4) { | |
c370783e | 27383 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 27384 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27385 | } |
44127b65 RD |
27386 | { |
27387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27388 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
27389 | ||
27390 | wxPyEndAllowThreads(__tstate); | |
27391 | if (PyErr_Occurred()) SWIG_fail; | |
27392 | } | |
27393 | Py_INCREF(Py_None); resultobj = Py_None; | |
27394 | return resultobj; | |
27395 | fail: | |
27396 | return NULL; | |
27397 | } | |
27398 | ||
27399 | ||
c370783e | 27400 | static PyObject *_wrap_PyLineShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27401 | PyObject *resultobj; |
27402 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27403 | double arg2 ; | |
27404 | double arg3 ; | |
27405 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27406 | PyObject * obj1 = 0 ; |
27407 | PyObject * obj2 = 0 ; | |
44127b65 RD |
27408 | char *kwnames[] = { |
27409 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27410 | }; | |
27411 | ||
8edf1c75 | 27412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
27413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27415 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 27416 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27417 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27418 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
27419 | { |
27420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27421 | (arg1)->base_OnSize(arg2,arg3); | |
27422 | ||
27423 | wxPyEndAllowThreads(__tstate); | |
27424 | if (PyErr_Occurred()) SWIG_fail; | |
27425 | } | |
27426 | Py_INCREF(Py_None); resultobj = Py_None; | |
27427 | return resultobj; | |
27428 | fail: | |
27429 | return NULL; | |
27430 | } | |
27431 | ||
27432 | ||
c370783e | 27433 | static PyObject *_wrap_PyLineShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27434 | PyObject *resultobj; |
27435 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27436 | wxDC *arg2 = 0 ; | |
27437 | double arg3 ; | |
27438 | double arg4 ; | |
27439 | double arg5 ; | |
27440 | double arg6 ; | |
27441 | bool arg7 = (bool) True ; | |
27442 | bool result; | |
27443 | PyObject * obj0 = 0 ; | |
27444 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
27445 | PyObject * obj2 = 0 ; |
27446 | PyObject * obj3 = 0 ; | |
27447 | PyObject * obj4 = 0 ; | |
27448 | PyObject * obj5 = 0 ; | |
44127b65 RD |
27449 | PyObject * obj6 = 0 ; |
27450 | char *kwnames[] = { | |
27451 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
27452 | }; | |
27453 | ||
8edf1c75 | 27454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyLineShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
27455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27457 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27458 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27459 | SWIG_fail; | |
44127b65 | 27460 | if (arg2 == NULL) { |
2f4c0a16 RD |
27461 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27462 | SWIG_fail; | |
27463 | } | |
c370783e | 27464 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27465 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27466 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 27467 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27468 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 27469 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27470 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 27471 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 27472 | if (obj6) { |
c370783e | 27473 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 27474 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
27475 | } |
27476 | { | |
27477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27478 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
27479 | ||
27480 | wxPyEndAllowThreads(__tstate); | |
27481 | if (PyErr_Occurred()) SWIG_fail; | |
27482 | } | |
fbc46b20 RD |
27483 | { |
27484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27485 | } | |
44127b65 RD |
27486 | return resultobj; |
27487 | fail: | |
27488 | return NULL; | |
27489 | } | |
27490 | ||
27491 | ||
c370783e | 27492 | static PyObject *_wrap_PyLineShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27493 | PyObject *resultobj; |
27494 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27495 | wxDC *arg2 = 0 ; | |
27496 | double arg3 ; | |
27497 | double arg4 ; | |
27498 | double arg5 ; | |
27499 | double arg6 ; | |
27500 | bool arg7 = (bool) True ; | |
27501 | PyObject * obj0 = 0 ; | |
27502 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
27503 | PyObject * obj2 = 0 ; |
27504 | PyObject * obj3 = 0 ; | |
27505 | PyObject * obj4 = 0 ; | |
27506 | PyObject * obj5 = 0 ; | |
44127b65 RD |
27507 | PyObject * obj6 = 0 ; |
27508 | char *kwnames[] = { | |
27509 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
27510 | }; | |
27511 | ||
8edf1c75 | 27512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyLineShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
27513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27517 | SWIG_fail; | |
44127b65 | 27518 | if (arg2 == NULL) { |
2f4c0a16 RD |
27519 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27520 | SWIG_fail; | |
27521 | } | |
c370783e | 27522 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27523 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27524 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 27525 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27526 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 27527 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27528 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 27529 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 27530 | if (obj6) { |
c370783e | 27531 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 27532 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
27533 | } |
27534 | { | |
27535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27536 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
27537 | ||
27538 | wxPyEndAllowThreads(__tstate); | |
27539 | if (PyErr_Occurred()) SWIG_fail; | |
27540 | } | |
27541 | Py_INCREF(Py_None); resultobj = Py_None; | |
27542 | return resultobj; | |
27543 | fail: | |
27544 | return NULL; | |
27545 | } | |
27546 | ||
27547 | ||
c370783e | 27548 | static PyObject *_wrap_PyLineShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27549 | PyObject *resultobj; |
27550 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27551 | bool arg2 ; | |
27552 | double arg3 ; | |
27553 | double arg4 ; | |
27554 | int arg5 = (int) 0 ; | |
27555 | int arg6 = (int) 0 ; | |
27556 | PyObject * obj0 = 0 ; | |
27557 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
27558 | PyObject * obj2 = 0 ; |
27559 | PyObject * obj3 = 0 ; | |
27560 | PyObject * obj4 = 0 ; | |
27561 | PyObject * obj5 = 0 ; | |
44127b65 RD |
27562 | char *kwnames[] = { |
27563 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27564 | }; | |
27565 | ||
8edf1c75 | 27566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyLineShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
27567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27569 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 27570 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27571 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27572 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27573 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 27574 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27575 | if (obj4) { |
c370783e | 27576 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 27577 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
27578 | } |
27579 | if (obj5) { | |
c370783e | 27580 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 27581 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27582 | } |
44127b65 RD |
27583 | { |
27584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27585 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
27586 | ||
27587 | wxPyEndAllowThreads(__tstate); | |
27588 | if (PyErr_Occurred()) SWIG_fail; | |
27589 | } | |
27590 | Py_INCREF(Py_None); resultobj = Py_None; | |
27591 | return resultobj; | |
27592 | fail: | |
27593 | return NULL; | |
27594 | } | |
27595 | ||
27596 | ||
c370783e | 27597 | static PyObject *_wrap_PyLineShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27598 | PyObject *resultobj; |
27599 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27600 | double arg2 ; | |
27601 | double arg3 ; | |
27602 | int arg4 = (int) 0 ; | |
27603 | int arg5 = (int) 0 ; | |
27604 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27605 | PyObject * obj1 = 0 ; |
27606 | PyObject * obj2 = 0 ; | |
27607 | PyObject * obj3 = 0 ; | |
27608 | PyObject * obj4 = 0 ; | |
44127b65 RD |
27609 | char *kwnames[] = { |
27610 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27611 | }; | |
27612 | ||
8edf1c75 | 27613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27616 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 27617 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27618 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27619 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27620 | if (obj3) { |
c370783e | 27621 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 27622 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
27623 | } |
27624 | if (obj4) { | |
c370783e | 27625 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 27626 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27627 | } |
44127b65 RD |
27628 | { |
27629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27630 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
27631 | ||
27632 | wxPyEndAllowThreads(__tstate); | |
27633 | if (PyErr_Occurred()) SWIG_fail; | |
27634 | } | |
27635 | Py_INCREF(Py_None); resultobj = Py_None; | |
27636 | return resultobj; | |
27637 | fail: | |
27638 | return NULL; | |
27639 | } | |
27640 | ||
27641 | ||
c370783e | 27642 | static PyObject *_wrap_PyLineShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27643 | PyObject *resultobj; |
27644 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27645 | double arg2 ; | |
27646 | double arg3 ; | |
27647 | int arg4 = (int) 0 ; | |
27648 | int arg5 = (int) 0 ; | |
27649 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27650 | PyObject * obj1 = 0 ; |
27651 | PyObject * obj2 = 0 ; | |
27652 | PyObject * obj3 = 0 ; | |
27653 | PyObject * obj4 = 0 ; | |
44127b65 RD |
27654 | char *kwnames[] = { |
27655 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27656 | }; | |
27657 | ||
8edf1c75 | 27658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27661 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 27662 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27663 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27664 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27665 | if (obj3) { |
c370783e | 27666 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 27667 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
27668 | } |
27669 | if (obj4) { | |
c370783e | 27670 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 27671 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27672 | } |
44127b65 RD |
27673 | { |
27674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27675 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
27676 | ||
27677 | wxPyEndAllowThreads(__tstate); | |
27678 | if (PyErr_Occurred()) SWIG_fail; | |
27679 | } | |
27680 | Py_INCREF(Py_None); resultobj = Py_None; | |
27681 | return resultobj; | |
27682 | fail: | |
27683 | return NULL; | |
27684 | } | |
27685 | ||
27686 | ||
c370783e | 27687 | static PyObject *_wrap_PyLineShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27688 | PyObject *resultobj; |
27689 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27690 | bool arg2 ; | |
27691 | double arg3 ; | |
27692 | double arg4 ; | |
27693 | int arg5 = (int) 0 ; | |
27694 | int arg6 = (int) 0 ; | |
27695 | PyObject * obj0 = 0 ; | |
27696 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
27697 | PyObject * obj2 = 0 ; |
27698 | PyObject * obj3 = 0 ; | |
27699 | PyObject * obj4 = 0 ; | |
27700 | PyObject * obj5 = 0 ; | |
44127b65 RD |
27701 | char *kwnames[] = { |
27702 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27703 | }; | |
27704 | ||
8edf1c75 | 27705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyLineShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
27706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27708 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 27709 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27710 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27711 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27712 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 27713 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27714 | if (obj4) { |
c370783e | 27715 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 27716 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
27717 | } |
27718 | if (obj5) { | |
c370783e | 27719 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 27720 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27721 | } |
44127b65 RD |
27722 | { |
27723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27724 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
27725 | ||
27726 | wxPyEndAllowThreads(__tstate); | |
27727 | if (PyErr_Occurred()) SWIG_fail; | |
27728 | } | |
27729 | Py_INCREF(Py_None); resultobj = Py_None; | |
27730 | return resultobj; | |
27731 | fail: | |
27732 | return NULL; | |
27733 | } | |
27734 | ||
27735 | ||
c370783e | 27736 | static PyObject *_wrap_PyLineShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27737 | PyObject *resultobj; |
27738 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27739 | double arg2 ; | |
27740 | double arg3 ; | |
27741 | int arg4 = (int) 0 ; | |
27742 | int arg5 = (int) 0 ; | |
27743 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27744 | PyObject * obj1 = 0 ; |
27745 | PyObject * obj2 = 0 ; | |
27746 | PyObject * obj3 = 0 ; | |
27747 | PyObject * obj4 = 0 ; | |
44127b65 RD |
27748 | char *kwnames[] = { |
27749 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27750 | }; | |
27751 | ||
8edf1c75 | 27752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27755 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 27756 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27757 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 RD |
27758 | if (PyErr_Occurred()) SWIG_fail; |
27759 | if (obj3) { | |
c370783e | 27760 | arg4 = (int)SWIG_As_int(obj3); |
8edf1c75 RD |
27761 | if (PyErr_Occurred()) SWIG_fail; |
27762 | } | |
2f4c0a16 | 27763 | if (obj4) { |
c370783e | 27764 | arg5 = (int)SWIG_As_int(obj4); |
8edf1c75 RD |
27765 | if (PyErr_Occurred()) SWIG_fail; |
27766 | } | |
44127b65 RD |
27767 | { |
27768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27769 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
27770 | ||
27771 | wxPyEndAllowThreads(__tstate); | |
27772 | if (PyErr_Occurred()) SWIG_fail; | |
27773 | } | |
27774 | Py_INCREF(Py_None); resultobj = Py_None; | |
27775 | return resultobj; | |
27776 | fail: | |
27777 | return NULL; | |
27778 | } | |
27779 | ||
27780 | ||
c370783e | 27781 | static PyObject *_wrap_PyLineShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27782 | PyObject *resultobj; |
27783 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27784 | double arg2 ; | |
27785 | double arg3 ; | |
27786 | int arg4 = (int) 0 ; | |
27787 | int arg5 = (int) 0 ; | |
27788 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27789 | PyObject * obj1 = 0 ; |
27790 | PyObject * obj2 = 0 ; | |
27791 | PyObject * obj3 = 0 ; | |
27792 | PyObject * obj4 = 0 ; | |
44127b65 RD |
27793 | char *kwnames[] = { |
27794 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
27795 | }; | |
27796 | ||
8edf1c75 | 27797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyLineShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27800 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 27801 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27802 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27803 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27804 | if (obj3) { |
c370783e | 27805 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 27806 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
27807 | } |
27808 | if (obj4) { | |
c370783e | 27809 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 27810 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 27811 | } |
44127b65 RD |
27812 | { |
27813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27814 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
27815 | ||
27816 | wxPyEndAllowThreads(__tstate); | |
27817 | if (PyErr_Occurred()) SWIG_fail; | |
27818 | } | |
27819 | Py_INCREF(Py_None); resultobj = Py_None; | |
27820 | return resultobj; | |
27821 | fail: | |
27822 | return NULL; | |
27823 | } | |
27824 | ||
27825 | ||
c370783e | 27826 | static PyObject *_wrap_PyLineShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27827 | PyObject *resultobj; |
27828 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27829 | wxDC *arg2 = 0 ; | |
27830 | double arg3 ; | |
27831 | double arg4 ; | |
27832 | double arg5 ; | |
27833 | double arg6 ; | |
27834 | PyObject * obj0 = 0 ; | |
27835 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
27836 | PyObject * obj2 = 0 ; |
27837 | PyObject * obj3 = 0 ; | |
27838 | PyObject * obj4 = 0 ; | |
27839 | PyObject * obj5 = 0 ; | |
44127b65 RD |
27840 | char *kwnames[] = { |
27841 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27842 | }; | |
27843 | ||
8edf1c75 | 27844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyLineShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
27845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27849 | SWIG_fail; | |
44127b65 | 27850 | if (arg2 == NULL) { |
2f4c0a16 RD |
27851 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27852 | SWIG_fail; | |
8edf1c75 | 27853 | } |
c370783e | 27854 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 27855 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27856 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 27857 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27858 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 27859 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27860 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 27861 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
27862 | { |
27863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27864 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
27865 | ||
27866 | wxPyEndAllowThreads(__tstate); | |
27867 | if (PyErr_Occurred()) SWIG_fail; | |
27868 | } | |
27869 | Py_INCREF(Py_None); resultobj = Py_None; | |
27870 | return resultobj; | |
27871 | fail: | |
27872 | return NULL; | |
27873 | } | |
27874 | ||
27875 | ||
c370783e | 27876 | static PyObject *_wrap_PyLineShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27877 | PyObject *resultobj; |
27878 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27879 | wxDC *arg2 = 0 ; | |
27880 | PyObject * obj0 = 0 ; | |
27881 | PyObject * obj1 = 0 ; | |
27882 | char *kwnames[] = { | |
27883 | (char *) "self",(char *) "dc", NULL | |
27884 | }; | |
27885 | ||
27886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27891 | SWIG_fail; | |
44127b65 | 27892 | if (arg2 == NULL) { |
2f4c0a16 RD |
27893 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27894 | SWIG_fail; | |
44127b65 RD |
27895 | } |
27896 | { | |
27897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27898 | (arg1)->base_OnDrawControlPoints(*arg2); | |
27899 | ||
27900 | wxPyEndAllowThreads(__tstate); | |
27901 | if (PyErr_Occurred()) SWIG_fail; | |
27902 | } | |
27903 | Py_INCREF(Py_None); resultobj = Py_None; | |
27904 | return resultobj; | |
27905 | fail: | |
27906 | return NULL; | |
27907 | } | |
27908 | ||
27909 | ||
c370783e | 27910 | static PyObject *_wrap_PyLineShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27911 | PyObject *resultobj; |
27912 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27913 | wxDC *arg2 = 0 ; | |
27914 | PyObject * obj0 = 0 ; | |
27915 | PyObject * obj1 = 0 ; | |
27916 | char *kwnames[] = { | |
27917 | (char *) "self",(char *) "dc", NULL | |
27918 | }; | |
27919 | ||
27920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyLineShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27924 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27925 | SWIG_fail; | |
44127b65 | 27926 | if (arg2 == NULL) { |
2f4c0a16 RD |
27927 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27928 | SWIG_fail; | |
44127b65 RD |
27929 | } |
27930 | { | |
27931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27932 | (arg1)->base_OnEraseControlPoints(*arg2); | |
27933 | ||
27934 | wxPyEndAllowThreads(__tstate); | |
27935 | if (PyErr_Occurred()) SWIG_fail; | |
27936 | } | |
27937 | Py_INCREF(Py_None); resultobj = Py_None; | |
27938 | return resultobj; | |
27939 | fail: | |
27940 | return NULL; | |
27941 | } | |
27942 | ||
27943 | ||
c370783e | 27944 | static PyObject *_wrap_PyLineShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27945 | PyObject *resultobj; |
27946 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27947 | wxDC *arg2 = 0 ; | |
27948 | bool arg3 = (bool) True ; | |
27949 | PyObject * obj0 = 0 ; | |
27950 | PyObject * obj1 = 0 ; | |
27951 | PyObject * obj2 = 0 ; | |
27952 | char *kwnames[] = { | |
27953 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
27954 | }; | |
27955 | ||
27956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLineShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
27958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
27960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27961 | SWIG_fail; | |
44127b65 | 27962 | if (arg2 == NULL) { |
2f4c0a16 RD |
27963 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27964 | SWIG_fail; | |
44127b65 RD |
27965 | } |
27966 | if (obj2) { | |
c370783e | 27967 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 27968 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
27969 | } |
27970 | { | |
27971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27972 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
27973 | ||
27974 | wxPyEndAllowThreads(__tstate); | |
27975 | if (PyErr_Occurred()) SWIG_fail; | |
27976 | } | |
27977 | Py_INCREF(Py_None); resultobj = Py_None; | |
27978 | return resultobj; | |
27979 | fail: | |
27980 | return NULL; | |
27981 | } | |
27982 | ||
27983 | ||
c370783e | 27984 | static PyObject *_wrap_PyLineShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
27985 | PyObject *resultobj; |
27986 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
27987 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
27988 | bool arg3 ; | |
27989 | double arg4 ; | |
27990 | double arg5 ; | |
27991 | int arg6 = (int) 0 ; | |
27992 | int arg7 = (int) 0 ; | |
27993 | PyObject * obj0 = 0 ; | |
27994 | PyObject * obj1 = 0 ; | |
27995 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
27996 | PyObject * obj3 = 0 ; |
27997 | PyObject * obj4 = 0 ; | |
27998 | PyObject * obj5 = 0 ; | |
27999 | PyObject * obj6 = 0 ; | |
44127b65 RD |
28000 | char *kwnames[] = { |
28001 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28002 | }; | |
28003 | ||
8edf1c75 | 28004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyLineShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
28005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
28006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
28008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28009 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 28010 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28011 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 28012 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28013 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 28014 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28015 | if (obj5) { |
c370783e | 28016 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 28017 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
28018 | } |
28019 | if (obj6) { | |
c370783e | 28020 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 28021 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28022 | } |
44127b65 RD |
28023 | { |
28024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28025 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
28026 | ||
28027 | wxPyEndAllowThreads(__tstate); | |
28028 | if (PyErr_Occurred()) SWIG_fail; | |
28029 | } | |
28030 | Py_INCREF(Py_None); resultobj = Py_None; | |
28031 | return resultobj; | |
28032 | fail: | |
28033 | return NULL; | |
28034 | } | |
28035 | ||
28036 | ||
c370783e | 28037 | static PyObject *_wrap_PyLineShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28038 | PyObject *resultobj; |
28039 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
28040 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
28041 | double arg3 ; | |
28042 | double arg4 ; | |
28043 | int arg5 = (int) 0 ; | |
28044 | int arg6 = (int) 0 ; | |
28045 | PyObject * obj0 = 0 ; | |
28046 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
28047 | PyObject * obj2 = 0 ; |
28048 | PyObject * obj3 = 0 ; | |
28049 | PyObject * obj4 = 0 ; | |
28050 | PyObject * obj5 = 0 ; | |
44127b65 RD |
28051 | char *kwnames[] = { |
28052 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28053 | }; | |
28054 | ||
8edf1c75 | 28055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyLineShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
28057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28058 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
28059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28060 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 28061 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28062 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 28063 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28064 | if (obj4) { |
c370783e | 28065 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 28066 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
28067 | } |
28068 | if (obj5) { | |
c370783e | 28069 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 28070 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28071 | } |
44127b65 RD |
28072 | { |
28073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28074 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
28075 | ||
28076 | wxPyEndAllowThreads(__tstate); | |
28077 | if (PyErr_Occurred()) SWIG_fail; | |
28078 | } | |
28079 | Py_INCREF(Py_None); resultobj = Py_None; | |
28080 | return resultobj; | |
28081 | fail: | |
28082 | return NULL; | |
28083 | } | |
28084 | ||
28085 | ||
c370783e | 28086 | static PyObject *_wrap_PyLineShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28087 | PyObject *resultobj; |
28088 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
28089 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
28090 | double arg3 ; | |
28091 | double arg4 ; | |
28092 | int arg5 = (int) 0 ; | |
28093 | int arg6 = (int) 0 ; | |
28094 | PyObject * obj0 = 0 ; | |
28095 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
28096 | PyObject * obj2 = 0 ; |
28097 | PyObject * obj3 = 0 ; | |
28098 | PyObject * obj4 = 0 ; | |
28099 | PyObject * obj5 = 0 ; | |
44127b65 RD |
28100 | char *kwnames[] = { |
28101 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28102 | }; | |
28103 | ||
8edf1c75 | 28104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyLineShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
28106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
28108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28109 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 28110 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28111 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 28112 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28113 | if (obj4) { |
c370783e | 28114 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 28115 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
28116 | } |
28117 | if (obj5) { | |
c370783e | 28118 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 28119 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28120 | } |
44127b65 RD |
28121 | { |
28122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28123 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
28124 | ||
28125 | wxPyEndAllowThreads(__tstate); | |
28126 | if (PyErr_Occurred()) SWIG_fail; | |
28127 | } | |
28128 | Py_INCREF(Py_None); resultobj = Py_None; | |
28129 | return resultobj; | |
28130 | fail: | |
28131 | return NULL; | |
28132 | } | |
28133 | ||
28134 | ||
c370783e | 28135 | static PyObject *_wrap_PyLineShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28136 | PyObject *resultobj; |
28137 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
28138 | double arg2 ; | |
28139 | double arg3 ; | |
28140 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28141 | PyObject * obj1 = 0 ; |
28142 | PyObject * obj2 = 0 ; | |
44127b65 RD |
28143 | char *kwnames[] = { |
28144 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28145 | }; | |
28146 | ||
8edf1c75 | 28147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
28149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28150 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 28151 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28152 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 28153 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
28154 | { |
28155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28156 | (arg1)->base_OnBeginSize(arg2,arg3); | |
28157 | ||
28158 | wxPyEndAllowThreads(__tstate); | |
28159 | if (PyErr_Occurred()) SWIG_fail; | |
28160 | } | |
28161 | Py_INCREF(Py_None); resultobj = Py_None; | |
28162 | return resultobj; | |
28163 | fail: | |
28164 | return NULL; | |
28165 | } | |
28166 | ||
28167 | ||
c370783e | 28168 | static PyObject *_wrap_PyLineShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28169 | PyObject *resultobj; |
28170 | wxPyLineShape *arg1 = (wxPyLineShape *) 0 ; | |
28171 | double arg2 ; | |
28172 | double arg3 ; | |
28173 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28174 | PyObject * obj1 = 0 ; |
28175 | PyObject * obj2 = 0 ; | |
44127b65 RD |
28176 | char *kwnames[] = { |
28177 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28178 | }; | |
28179 | ||
8edf1c75 | 28180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLineShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLineShape, |
28182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28183 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 28184 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28185 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 28186 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
28187 | { |
28188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28189 | (arg1)->base_OnEndSize(arg2,arg3); | |
28190 | ||
28191 | wxPyEndAllowThreads(__tstate); | |
28192 | if (PyErr_Occurred()) SWIG_fail; | |
28193 | } | |
28194 | Py_INCREF(Py_None); resultobj = Py_None; | |
28195 | return resultobj; | |
28196 | fail: | |
28197 | return NULL; | |
28198 | } | |
28199 | ||
28200 | ||
c370783e | 28201 | static PyObject * PyLineShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
28202 | PyObject *obj; |
28203 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28204 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLineShape, obj); | |
28205 | Py_INCREF(obj); | |
28206 | return Py_BuildValue((char *)""); | |
28207 | } | |
c370783e | 28208 | static PyObject *_wrap_new_PyPolygonShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28209 | PyObject *resultobj; |
28210 | wxPyPolygonShape *result; | |
28211 | char *kwnames[] = { | |
28212 | NULL | |
28213 | }; | |
28214 | ||
28215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyPolygonShape",kwnames)) goto fail; | |
28216 | { | |
28217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28218 | result = (wxPyPolygonShape *)new wxPyPolygonShape(); | |
28219 | ||
28220 | wxPyEndAllowThreads(__tstate); | |
28221 | if (PyErr_Occurred()) SWIG_fail; | |
28222 | } | |
2f4c0a16 | 28223 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPolygonShape, 1); |
44127b65 RD |
28224 | return resultobj; |
28225 | fail: | |
28226 | return NULL; | |
28227 | } | |
28228 | ||
28229 | ||
c370783e | 28230 | static PyObject *_wrap_PyPolygonShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28231 | PyObject *resultobj; |
28232 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28233 | PyObject *arg2 = (PyObject *) 0 ; | |
28234 | PyObject *arg3 = (PyObject *) 0 ; | |
28235 | PyObject * obj0 = 0 ; | |
28236 | PyObject * obj1 = 0 ; | |
28237 | PyObject * obj2 = 0 ; | |
28238 | char *kwnames[] = { | |
28239 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28240 | }; | |
28241 | ||
28242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPolygonShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
28243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
28245 | arg2 = obj1; |
28246 | arg3 = obj2; | |
28247 | { | |
28248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28249 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28250 | ||
28251 | wxPyEndAllowThreads(__tstate); | |
28252 | if (PyErr_Occurred()) SWIG_fail; | |
28253 | } | |
28254 | Py_INCREF(Py_None); resultobj = Py_None; | |
28255 | return resultobj; | |
28256 | fail: | |
28257 | return NULL; | |
28258 | } | |
28259 | ||
28260 | ||
c370783e | 28261 | static PyObject *_wrap_PyPolygonShape_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28262 | PyObject *resultobj; |
28263 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28264 | PyObject *arg2 = (PyObject *) 0 ; | |
28265 | PyObject *result; | |
28266 | PyObject * obj0 = 0 ; | |
28267 | PyObject * obj1 = 0 ; | |
28268 | char *kwnames[] = { | |
28269 | (char *) "self",(char *) "points", NULL | |
28270 | }; | |
28271 | ||
28272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_Create",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
28275 | arg2 = obj1; |
28276 | { | |
28277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28278 | result = (PyObject *)wxPyPolygonShape_Create(arg1,arg2); | |
28279 | ||
28280 | wxPyEndAllowThreads(__tstate); | |
28281 | if (PyErr_Occurred()) SWIG_fail; | |
28282 | } | |
28283 | resultobj = result; | |
28284 | return resultobj; | |
28285 | fail: | |
28286 | return NULL; | |
28287 | } | |
28288 | ||
28289 | ||
c370783e | 28290 | static PyObject *_wrap_PyPolygonShape_AddPolygonPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28291 | PyObject *resultobj; |
28292 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28293 | int arg2 = (int) 0 ; | |
28294 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28295 | PyObject * obj1 = 0 ; |
44127b65 RD |
28296 | char *kwnames[] = { |
28297 | (char *) "self",(char *) "pos", NULL | |
28298 | }; | |
28299 | ||
8edf1c75 | 28300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyPolygonShape_AddPolygonPoint",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 28303 | if (obj1) { |
c370783e | 28304 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 28305 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28306 | } |
44127b65 RD |
28307 | { |
28308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28309 | (arg1)->AddPolygonPoint(arg2); | |
28310 | ||
28311 | wxPyEndAllowThreads(__tstate); | |
28312 | if (PyErr_Occurred()) SWIG_fail; | |
28313 | } | |
28314 | Py_INCREF(Py_None); resultobj = Py_None; | |
28315 | return resultobj; | |
28316 | fail: | |
28317 | return NULL; | |
28318 | } | |
28319 | ||
28320 | ||
c370783e | 28321 | static PyObject *_wrap_PyPolygonShape_CalculatePolygonCentre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28322 | PyObject *resultobj; |
28323 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28324 | PyObject * obj0 = 0 ; | |
28325 | char *kwnames[] = { | |
28326 | (char *) "self", NULL | |
28327 | }; | |
28328 | ||
28329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_CalculatePolygonCentre",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
28332 | { |
28333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28334 | (arg1)->CalculatePolygonCentre(); | |
28335 | ||
28336 | wxPyEndAllowThreads(__tstate); | |
28337 | if (PyErr_Occurred()) SWIG_fail; | |
28338 | } | |
28339 | Py_INCREF(Py_None); resultobj = Py_None; | |
28340 | return resultobj; | |
28341 | fail: | |
28342 | return NULL; | |
28343 | } | |
28344 | ||
28345 | ||
c370783e | 28346 | static PyObject *_wrap_PyPolygonShape_DeletePolygonPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28347 | PyObject *resultobj; |
28348 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28349 | int arg2 = (int) 0 ; | |
28350 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28351 | PyObject * obj1 = 0 ; |
44127b65 RD |
28352 | char *kwnames[] = { |
28353 | (char *) "self",(char *) "pos", NULL | |
28354 | }; | |
28355 | ||
8edf1c75 | 28356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyPolygonShape_DeletePolygonPoint",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 28359 | if (obj1) { |
c370783e | 28360 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 28361 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28362 | } |
44127b65 RD |
28363 | { |
28364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28365 | (arg1)->DeletePolygonPoint(arg2); | |
28366 | ||
28367 | wxPyEndAllowThreads(__tstate); | |
28368 | if (PyErr_Occurred()) SWIG_fail; | |
28369 | } | |
28370 | Py_INCREF(Py_None); resultobj = Py_None; | |
28371 | return resultobj; | |
28372 | fail: | |
28373 | return NULL; | |
28374 | } | |
28375 | ||
28376 | ||
c370783e | 28377 | static PyObject *_wrap_PyPolygonShape_GetPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28378 | PyObject *resultobj; |
28379 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28380 | PyObject *result; | |
28381 | PyObject * obj0 = 0 ; | |
28382 | char *kwnames[] = { | |
28383 | (char *) "self", NULL | |
28384 | }; | |
28385 | ||
28386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetPoints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
28389 | { |
28390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28391 | result = (PyObject *)wxPyPolygonShape_GetPoints(arg1); | |
28392 | ||
28393 | wxPyEndAllowThreads(__tstate); | |
28394 | if (PyErr_Occurred()) SWIG_fail; | |
28395 | } | |
28396 | resultobj = result; | |
28397 | return resultobj; | |
28398 | fail: | |
28399 | return NULL; | |
28400 | } | |
28401 | ||
28402 | ||
c370783e | 28403 | static PyObject *_wrap_PyPolygonShape_GetOriginalPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
28404 | PyObject *resultobj; |
28405 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28406 | PyObject *result; | |
28407 | PyObject * obj0 = 0 ; | |
28408 | char *kwnames[] = { | |
28409 | (char *) "self", NULL | |
28410 | }; | |
28411 | ||
28412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetOriginalPoints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
28415 | { |
28416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28417 | result = (PyObject *)wxPyPolygonShape_GetOriginalPoints(arg1); | |
28418 | ||
28419 | wxPyEndAllowThreads(__tstate); | |
28420 | if (PyErr_Occurred()) SWIG_fail; | |
28421 | } | |
28422 | resultobj = result; | |
28423 | return resultobj; | |
28424 | fail: | |
28425 | return NULL; | |
28426 | } | |
28427 | ||
28428 | ||
c370783e | 28429 | static PyObject *_wrap_PyPolygonShape_GetOriginalWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
28430 | PyObject *resultobj; |
28431 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28432 | double result; | |
28433 | PyObject * obj0 = 0 ; | |
28434 | char *kwnames[] = { | |
28435 | (char *) "self", NULL | |
28436 | }; | |
28437 | ||
28438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetOriginalWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
28441 | { |
28442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28443 | result = (double)((wxPyPolygonShape const *)arg1)->GetOriginalWidth(); | |
28444 | ||
28445 | wxPyEndAllowThreads(__tstate); | |
28446 | if (PyErr_Occurred()) SWIG_fail; | |
28447 | } | |
c370783e | 28448 | resultobj = SWIG_From_double((double)result); |
7a0a63ae RD |
28449 | return resultobj; |
28450 | fail: | |
28451 | return NULL; | |
28452 | } | |
28453 | ||
28454 | ||
c370783e | 28455 | static PyObject *_wrap_PyPolygonShape_GetOriginalHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
28456 | PyObject *resultobj; |
28457 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28458 | double result; | |
28459 | PyObject * obj0 = 0 ; | |
28460 | char *kwnames[] = { | |
28461 | (char *) "self", NULL | |
28462 | }; | |
28463 | ||
28464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_GetOriginalHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0a63ae RD |
28467 | { |
28468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28469 | result = (double)((wxPyPolygonShape const *)arg1)->GetOriginalHeight(); | |
28470 | ||
28471 | wxPyEndAllowThreads(__tstate); | |
28472 | if (PyErr_Occurred()) SWIG_fail; | |
28473 | } | |
c370783e | 28474 | resultobj = SWIG_From_double((double)result); |
7a0a63ae RD |
28475 | return resultobj; |
28476 | fail: | |
28477 | return NULL; | |
28478 | } | |
28479 | ||
28480 | ||
c370783e | 28481 | static PyObject *_wrap_PyPolygonShape_SetOriginalWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
28482 | PyObject *resultobj; |
28483 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28484 | double arg2 ; | |
28485 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28486 | PyObject * obj1 = 0 ; |
7a0a63ae RD |
28487 | char *kwnames[] = { |
28488 | (char *) "self",(char *) "w", NULL | |
28489 | }; | |
28490 | ||
8edf1c75 | 28491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_SetOriginalWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28494 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 28495 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
28496 | { |
28497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28498 | (arg1)->SetOriginalWidth(arg2); | |
28499 | ||
28500 | wxPyEndAllowThreads(__tstate); | |
28501 | if (PyErr_Occurred()) SWIG_fail; | |
28502 | } | |
28503 | Py_INCREF(Py_None); resultobj = Py_None; | |
28504 | return resultobj; | |
28505 | fail: | |
28506 | return NULL; | |
28507 | } | |
28508 | ||
28509 | ||
c370783e | 28510 | static PyObject *_wrap_PyPolygonShape_SetOriginalHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
7a0a63ae RD |
28511 | PyObject *resultobj; |
28512 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28513 | double arg2 ; | |
28514 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28515 | PyObject * obj1 = 0 ; |
7a0a63ae RD |
28516 | char *kwnames[] = { |
28517 | (char *) "self",(char *) "h", NULL | |
28518 | }; | |
28519 | ||
8edf1c75 | 28520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_SetOriginalHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28523 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 28524 | if (PyErr_Occurred()) SWIG_fail; |
7a0a63ae RD |
28525 | { |
28526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28527 | (arg1)->SetOriginalHeight(arg2); | |
28528 | ||
28529 | wxPyEndAllowThreads(__tstate); | |
28530 | if (PyErr_Occurred()) SWIG_fail; | |
28531 | } | |
28532 | Py_INCREF(Py_None); resultobj = Py_None; | |
28533 | return resultobj; | |
28534 | fail: | |
28535 | return NULL; | |
28536 | } | |
28537 | ||
28538 | ||
c370783e | 28539 | static PyObject *_wrap_PyPolygonShape_UpdateOriginalPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28540 | PyObject *resultobj; |
28541 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28542 | PyObject * obj0 = 0 ; | |
28543 | char *kwnames[] = { | |
28544 | (char *) "self", NULL | |
28545 | }; | |
28546 | ||
28547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPolygonShape_UpdateOriginalPoints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
28550 | { |
28551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28552 | (arg1)->UpdateOriginalPoints(); | |
28553 | ||
28554 | wxPyEndAllowThreads(__tstate); | |
28555 | if (PyErr_Occurred()) SWIG_fail; | |
28556 | } | |
28557 | Py_INCREF(Py_None); resultobj = Py_None; | |
28558 | return resultobj; | |
28559 | fail: | |
28560 | return NULL; | |
28561 | } | |
28562 | ||
28563 | ||
c370783e | 28564 | static PyObject *_wrap_PyPolygonShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28565 | PyObject *resultobj; |
28566 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28567 | wxDC *arg2 = 0 ; | |
28568 | PyObject * obj0 = 0 ; | |
28569 | PyObject * obj1 = 0 ; | |
28570 | char *kwnames[] = { | |
28571 | (char *) "self",(char *) "dc", NULL | |
28572 | }; | |
28573 | ||
28574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28577 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28579 | SWIG_fail; | |
44127b65 | 28580 | if (arg2 == NULL) { |
2f4c0a16 RD |
28581 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28582 | SWIG_fail; | |
44127b65 RD |
28583 | } |
28584 | { | |
28585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28586 | (arg1)->base_OnDraw(*arg2); | |
28587 | ||
28588 | wxPyEndAllowThreads(__tstate); | |
28589 | if (PyErr_Occurred()) SWIG_fail; | |
28590 | } | |
28591 | Py_INCREF(Py_None); resultobj = Py_None; | |
28592 | return resultobj; | |
28593 | fail: | |
28594 | return NULL; | |
28595 | } | |
28596 | ||
28597 | ||
c370783e | 28598 | static PyObject *_wrap_PyPolygonShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28599 | PyObject *resultobj; |
28600 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28601 | wxDC *arg2 = 0 ; | |
28602 | PyObject * obj0 = 0 ; | |
28603 | PyObject * obj1 = 0 ; | |
28604 | char *kwnames[] = { | |
28605 | (char *) "self",(char *) "dc", NULL | |
28606 | }; | |
28607 | ||
28608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28611 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28612 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28613 | SWIG_fail; | |
44127b65 | 28614 | if (arg2 == NULL) { |
2f4c0a16 RD |
28615 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28616 | SWIG_fail; | |
44127b65 RD |
28617 | } |
28618 | { | |
28619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28620 | (arg1)->base_OnDrawContents(*arg2); | |
28621 | ||
28622 | wxPyEndAllowThreads(__tstate); | |
28623 | if (PyErr_Occurred()) SWIG_fail; | |
28624 | } | |
28625 | Py_INCREF(Py_None); resultobj = Py_None; | |
28626 | return resultobj; | |
28627 | fail: | |
28628 | return NULL; | |
28629 | } | |
28630 | ||
28631 | ||
c370783e | 28632 | static PyObject *_wrap_PyPolygonShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28633 | PyObject *resultobj; |
28634 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28635 | wxDC *arg2 = 0 ; | |
28636 | bool arg3 = (bool) FALSE ; | |
28637 | PyObject * obj0 = 0 ; | |
28638 | PyObject * obj1 = 0 ; | |
28639 | PyObject * obj2 = 0 ; | |
28640 | char *kwnames[] = { | |
28641 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
28642 | }; | |
28643 | ||
28644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyPolygonShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
28645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28648 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28649 | SWIG_fail; | |
44127b65 | 28650 | if (arg2 == NULL) { |
2f4c0a16 RD |
28651 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28652 | SWIG_fail; | |
44127b65 RD |
28653 | } |
28654 | if (obj2) { | |
c370783e | 28655 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 28656 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
28657 | } |
28658 | { | |
28659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28660 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
28661 | ||
28662 | wxPyEndAllowThreads(__tstate); | |
28663 | if (PyErr_Occurred()) SWIG_fail; | |
28664 | } | |
28665 | Py_INCREF(Py_None); resultobj = Py_None; | |
28666 | return resultobj; | |
28667 | fail: | |
28668 | return NULL; | |
28669 | } | |
28670 | ||
28671 | ||
c370783e | 28672 | static PyObject *_wrap_PyPolygonShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28673 | PyObject *resultobj; |
28674 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28675 | wxDC *arg2 = 0 ; | |
28676 | PyObject * obj0 = 0 ; | |
28677 | PyObject * obj1 = 0 ; | |
28678 | char *kwnames[] = { | |
28679 | (char *) "self",(char *) "dc", NULL | |
28680 | }; | |
28681 | ||
28682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28685 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28686 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28687 | SWIG_fail; | |
44127b65 | 28688 | if (arg2 == NULL) { |
2f4c0a16 RD |
28689 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28690 | SWIG_fail; | |
44127b65 RD |
28691 | } |
28692 | { | |
28693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28694 | (arg1)->base_OnMoveLinks(*arg2); | |
28695 | ||
28696 | wxPyEndAllowThreads(__tstate); | |
28697 | if (PyErr_Occurred()) SWIG_fail; | |
28698 | } | |
28699 | Py_INCREF(Py_None); resultobj = Py_None; | |
28700 | return resultobj; | |
28701 | fail: | |
28702 | return NULL; | |
28703 | } | |
28704 | ||
28705 | ||
c370783e | 28706 | static PyObject *_wrap_PyPolygonShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28707 | PyObject *resultobj; |
28708 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28709 | wxDC *arg2 = 0 ; | |
28710 | PyObject * obj0 = 0 ; | |
28711 | PyObject * obj1 = 0 ; | |
28712 | char *kwnames[] = { | |
28713 | (char *) "self",(char *) "dc", NULL | |
28714 | }; | |
28715 | ||
28716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28721 | SWIG_fail; | |
44127b65 | 28722 | if (arg2 == NULL) { |
2f4c0a16 RD |
28723 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28724 | SWIG_fail; | |
44127b65 RD |
28725 | } |
28726 | { | |
28727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28728 | (arg1)->base_OnErase(*arg2); | |
28729 | ||
28730 | wxPyEndAllowThreads(__tstate); | |
28731 | if (PyErr_Occurred()) SWIG_fail; | |
28732 | } | |
28733 | Py_INCREF(Py_None); resultobj = Py_None; | |
28734 | return resultobj; | |
28735 | fail: | |
28736 | return NULL; | |
28737 | } | |
28738 | ||
28739 | ||
c370783e | 28740 | static PyObject *_wrap_PyPolygonShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28741 | PyObject *resultobj; |
28742 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28743 | wxDC *arg2 = 0 ; | |
28744 | PyObject * obj0 = 0 ; | |
28745 | PyObject * obj1 = 0 ; | |
28746 | char *kwnames[] = { | |
28747 | (char *) "self",(char *) "dc", NULL | |
28748 | }; | |
28749 | ||
28750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28755 | SWIG_fail; | |
44127b65 | 28756 | if (arg2 == NULL) { |
2f4c0a16 RD |
28757 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28758 | SWIG_fail; | |
44127b65 RD |
28759 | } |
28760 | { | |
28761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28762 | (arg1)->base_OnEraseContents(*arg2); | |
28763 | ||
28764 | wxPyEndAllowThreads(__tstate); | |
28765 | if (PyErr_Occurred()) SWIG_fail; | |
28766 | } | |
28767 | Py_INCREF(Py_None); resultobj = Py_None; | |
28768 | return resultobj; | |
28769 | fail: | |
28770 | return NULL; | |
28771 | } | |
28772 | ||
28773 | ||
c370783e | 28774 | static PyObject *_wrap_PyPolygonShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28775 | PyObject *resultobj; |
28776 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28777 | wxDC *arg2 = 0 ; | |
28778 | PyObject * obj0 = 0 ; | |
28779 | PyObject * obj1 = 0 ; | |
28780 | char *kwnames[] = { | |
28781 | (char *) "self",(char *) "dc", NULL | |
28782 | }; | |
28783 | ||
28784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28787 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
28788 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28789 | SWIG_fail; | |
44127b65 | 28790 | if (arg2 == NULL) { |
2f4c0a16 RD |
28791 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28792 | SWIG_fail; | |
44127b65 RD |
28793 | } |
28794 | { | |
28795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28796 | (arg1)->base_OnHighlight(*arg2); | |
28797 | ||
28798 | wxPyEndAllowThreads(__tstate); | |
28799 | if (PyErr_Occurred()) SWIG_fail; | |
28800 | } | |
28801 | Py_INCREF(Py_None); resultobj = Py_None; | |
28802 | return resultobj; | |
28803 | fail: | |
28804 | return NULL; | |
28805 | } | |
28806 | ||
28807 | ||
c370783e | 28808 | static PyObject *_wrap_PyPolygonShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28809 | PyObject *resultobj; |
28810 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28811 | double arg2 ; | |
28812 | double arg3 ; | |
28813 | int arg4 = (int) 0 ; | |
28814 | int arg5 = (int) 0 ; | |
28815 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28816 | PyObject * obj1 = 0 ; |
28817 | PyObject * obj2 = 0 ; | |
28818 | PyObject * obj3 = 0 ; | |
28819 | PyObject * obj4 = 0 ; | |
44127b65 RD |
28820 | char *kwnames[] = { |
28821 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28822 | }; | |
28823 | ||
8edf1c75 | 28824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28827 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 28828 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28829 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 28830 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28831 | if (obj3) { |
c370783e | 28832 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 28833 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
28834 | } |
28835 | if (obj4) { | |
c370783e | 28836 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 28837 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28838 | } |
44127b65 RD |
28839 | { |
28840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28841 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
28842 | ||
28843 | wxPyEndAllowThreads(__tstate); | |
28844 | if (PyErr_Occurred()) SWIG_fail; | |
28845 | } | |
28846 | Py_INCREF(Py_None); resultobj = Py_None; | |
28847 | return resultobj; | |
28848 | fail: | |
28849 | return NULL; | |
28850 | } | |
28851 | ||
28852 | ||
c370783e | 28853 | static PyObject *_wrap_PyPolygonShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28854 | PyObject *resultobj; |
28855 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28856 | double arg2 ; | |
28857 | double arg3 ; | |
28858 | int arg4 = (int) 0 ; | |
28859 | int arg5 = (int) 0 ; | |
28860 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28861 | PyObject * obj1 = 0 ; |
28862 | PyObject * obj2 = 0 ; | |
28863 | PyObject * obj3 = 0 ; | |
28864 | PyObject * obj4 = 0 ; | |
44127b65 RD |
28865 | char *kwnames[] = { |
28866 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28867 | }; | |
28868 | ||
8edf1c75 | 28869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28872 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 28873 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28874 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 28875 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28876 | if (obj3) { |
c370783e | 28877 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 28878 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
28879 | } |
28880 | if (obj4) { | |
c370783e | 28881 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 28882 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28883 | } |
44127b65 RD |
28884 | { |
28885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28886 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
28887 | ||
28888 | wxPyEndAllowThreads(__tstate); | |
28889 | if (PyErr_Occurred()) SWIG_fail; | |
28890 | } | |
28891 | Py_INCREF(Py_None); resultobj = Py_None; | |
28892 | return resultobj; | |
28893 | fail: | |
28894 | return NULL; | |
28895 | } | |
28896 | ||
28897 | ||
c370783e | 28898 | static PyObject *_wrap_PyPolygonShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28899 | PyObject *resultobj; |
28900 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28901 | double arg2 ; | |
28902 | double arg3 ; | |
28903 | int arg4 = (int) 0 ; | |
28904 | int arg5 = (int) 0 ; | |
28905 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28906 | PyObject * obj1 = 0 ; |
28907 | PyObject * obj2 = 0 ; | |
28908 | PyObject * obj3 = 0 ; | |
28909 | PyObject * obj4 = 0 ; | |
44127b65 RD |
28910 | char *kwnames[] = { |
28911 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
28912 | }; | |
28913 | ||
8edf1c75 | 28914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28917 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 28918 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28919 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 28920 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28921 | if (obj3) { |
c370783e | 28922 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 28923 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
28924 | } |
28925 | if (obj4) { | |
c370783e | 28926 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 28927 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 28928 | } |
44127b65 RD |
28929 | { |
28930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28931 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
28932 | ||
28933 | wxPyEndAllowThreads(__tstate); | |
28934 | if (PyErr_Occurred()) SWIG_fail; | |
28935 | } | |
28936 | Py_INCREF(Py_None); resultobj = Py_None; | |
28937 | return resultobj; | |
28938 | fail: | |
28939 | return NULL; | |
28940 | } | |
28941 | ||
28942 | ||
c370783e | 28943 | static PyObject *_wrap_PyPolygonShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28944 | PyObject *resultobj; |
28945 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28946 | double arg2 ; | |
28947 | double arg3 ; | |
28948 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28949 | PyObject * obj1 = 0 ; |
28950 | PyObject * obj2 = 0 ; | |
44127b65 RD |
28951 | char *kwnames[] = { |
28952 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28953 | }; | |
28954 | ||
8edf1c75 | 28955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPolygonShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28958 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 28959 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28960 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 28961 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
28962 | { |
28963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28964 | (arg1)->base_OnSize(arg2,arg3); | |
28965 | ||
28966 | wxPyEndAllowThreads(__tstate); | |
28967 | if (PyErr_Occurred()) SWIG_fail; | |
28968 | } | |
28969 | Py_INCREF(Py_None); resultobj = Py_None; | |
28970 | return resultobj; | |
28971 | fail: | |
28972 | return NULL; | |
28973 | } | |
28974 | ||
28975 | ||
c370783e | 28976 | static PyObject *_wrap_PyPolygonShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
28977 | PyObject *resultobj; |
28978 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
28979 | wxDC *arg2 = 0 ; | |
28980 | double arg3 ; | |
28981 | double arg4 ; | |
28982 | double arg5 ; | |
28983 | double arg6 ; | |
28984 | bool arg7 = (bool) True ; | |
28985 | bool result; | |
28986 | PyObject * obj0 = 0 ; | |
28987 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
28988 | PyObject * obj2 = 0 ; |
28989 | PyObject * obj3 = 0 ; | |
28990 | PyObject * obj4 = 0 ; | |
28991 | PyObject * obj5 = 0 ; | |
44127b65 RD |
28992 | PyObject * obj6 = 0 ; |
28993 | char *kwnames[] = { | |
28994 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
28995 | }; | |
28996 | ||
8edf1c75 | 28997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyPolygonShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
28998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
28999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29001 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29002 | SWIG_fail; | |
44127b65 | 29003 | if (arg2 == NULL) { |
2f4c0a16 RD |
29004 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29005 | SWIG_fail; | |
29006 | } | |
c370783e | 29007 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29008 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29009 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 29010 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29011 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 29012 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29013 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 29014 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 29015 | if (obj6) { |
c370783e | 29016 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 29017 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
29018 | } |
29019 | { | |
29020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29021 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
29022 | ||
29023 | wxPyEndAllowThreads(__tstate); | |
29024 | if (PyErr_Occurred()) SWIG_fail; | |
29025 | } | |
fbc46b20 RD |
29026 | { |
29027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29028 | } | |
44127b65 RD |
29029 | return resultobj; |
29030 | fail: | |
29031 | return NULL; | |
29032 | } | |
29033 | ||
29034 | ||
c370783e | 29035 | static PyObject *_wrap_PyPolygonShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29036 | PyObject *resultobj; |
29037 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29038 | wxDC *arg2 = 0 ; | |
29039 | double arg3 ; | |
29040 | double arg4 ; | |
29041 | double arg5 ; | |
29042 | double arg6 ; | |
29043 | bool arg7 = (bool) True ; | |
29044 | PyObject * obj0 = 0 ; | |
29045 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
29046 | PyObject * obj2 = 0 ; |
29047 | PyObject * obj3 = 0 ; | |
29048 | PyObject * obj4 = 0 ; | |
29049 | PyObject * obj5 = 0 ; | |
44127b65 RD |
29050 | PyObject * obj6 = 0 ; |
29051 | char *kwnames[] = { | |
29052 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
29053 | }; | |
29054 | ||
8edf1c75 | 29055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyPolygonShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
29056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29058 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29060 | SWIG_fail; | |
44127b65 | 29061 | if (arg2 == NULL) { |
2f4c0a16 RD |
29062 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29063 | SWIG_fail; | |
29064 | } | |
c370783e | 29065 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29066 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29067 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 29068 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29069 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 29070 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29071 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 29072 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 29073 | if (obj6) { |
c370783e | 29074 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 29075 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
29076 | } |
29077 | { | |
29078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29079 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
29080 | ||
29081 | wxPyEndAllowThreads(__tstate); | |
29082 | if (PyErr_Occurred()) SWIG_fail; | |
29083 | } | |
29084 | Py_INCREF(Py_None); resultobj = Py_None; | |
29085 | return resultobj; | |
29086 | fail: | |
29087 | return NULL; | |
29088 | } | |
29089 | ||
29090 | ||
c370783e | 29091 | static PyObject *_wrap_PyPolygonShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29092 | PyObject *resultobj; |
29093 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29094 | bool arg2 ; | |
29095 | double arg3 ; | |
29096 | double arg4 ; | |
29097 | int arg5 = (int) 0 ; | |
29098 | int arg6 = (int) 0 ; | |
29099 | PyObject * obj0 = 0 ; | |
29100 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
29101 | PyObject * obj2 = 0 ; |
29102 | PyObject * obj3 = 0 ; | |
29103 | PyObject * obj4 = 0 ; | |
29104 | PyObject * obj5 = 0 ; | |
44127b65 RD |
29105 | char *kwnames[] = { |
29106 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29107 | }; | |
29108 | ||
8edf1c75 | 29109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyPolygonShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
29110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29112 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 29113 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29114 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29115 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29116 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 29117 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29118 | if (obj4) { |
c370783e | 29119 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 29120 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29121 | } |
29122 | if (obj5) { | |
c370783e | 29123 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 29124 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29125 | } |
44127b65 RD |
29126 | { |
29127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29128 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
29129 | ||
29130 | wxPyEndAllowThreads(__tstate); | |
29131 | if (PyErr_Occurred()) SWIG_fail; | |
29132 | } | |
29133 | Py_INCREF(Py_None); resultobj = Py_None; | |
29134 | return resultobj; | |
29135 | fail: | |
29136 | return NULL; | |
29137 | } | |
29138 | ||
29139 | ||
c370783e | 29140 | static PyObject *_wrap_PyPolygonShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29141 | PyObject *resultobj; |
29142 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29143 | double arg2 ; | |
29144 | double arg3 ; | |
29145 | int arg4 = (int) 0 ; | |
29146 | int arg5 = (int) 0 ; | |
29147 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
29148 | PyObject * obj1 = 0 ; |
29149 | PyObject * obj2 = 0 ; | |
29150 | PyObject * obj3 = 0 ; | |
29151 | PyObject * obj4 = 0 ; | |
44127b65 RD |
29152 | char *kwnames[] = { |
29153 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29154 | }; | |
29155 | ||
8edf1c75 | 29156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
29157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29159 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 29160 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29161 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29162 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29163 | if (obj3) { |
c370783e | 29164 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 29165 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29166 | } |
29167 | if (obj4) { | |
c370783e | 29168 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 29169 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29170 | } |
44127b65 RD |
29171 | { |
29172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29173 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
29174 | ||
29175 | wxPyEndAllowThreads(__tstate); | |
29176 | if (PyErr_Occurred()) SWIG_fail; | |
29177 | } | |
29178 | Py_INCREF(Py_None); resultobj = Py_None; | |
29179 | return resultobj; | |
29180 | fail: | |
29181 | return NULL; | |
29182 | } | |
29183 | ||
29184 | ||
c370783e | 29185 | static PyObject *_wrap_PyPolygonShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29186 | PyObject *resultobj; |
29187 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29188 | double arg2 ; | |
29189 | double arg3 ; | |
29190 | int arg4 = (int) 0 ; | |
29191 | int arg5 = (int) 0 ; | |
29192 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
29193 | PyObject * obj1 = 0 ; |
29194 | PyObject * obj2 = 0 ; | |
29195 | PyObject * obj3 = 0 ; | |
29196 | PyObject * obj4 = 0 ; | |
44127b65 RD |
29197 | char *kwnames[] = { |
29198 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29199 | }; | |
29200 | ||
8edf1c75 | 29201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
29202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29204 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 29205 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29206 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29207 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29208 | if (obj3) { |
c370783e | 29209 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 29210 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29211 | } |
29212 | if (obj4) { | |
c370783e | 29213 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 29214 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29215 | } |
44127b65 RD |
29216 | { |
29217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29218 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
29219 | ||
29220 | wxPyEndAllowThreads(__tstate); | |
29221 | if (PyErr_Occurred()) SWIG_fail; | |
29222 | } | |
29223 | Py_INCREF(Py_None); resultobj = Py_None; | |
29224 | return resultobj; | |
29225 | fail: | |
29226 | return NULL; | |
29227 | } | |
29228 | ||
29229 | ||
c370783e | 29230 | static PyObject *_wrap_PyPolygonShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29231 | PyObject *resultobj; |
29232 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29233 | bool arg2 ; | |
29234 | double arg3 ; | |
29235 | double arg4 ; | |
29236 | int arg5 = (int) 0 ; | |
29237 | int arg6 = (int) 0 ; | |
29238 | PyObject * obj0 = 0 ; | |
29239 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
29240 | PyObject * obj2 = 0 ; |
29241 | PyObject * obj3 = 0 ; | |
29242 | PyObject * obj4 = 0 ; | |
29243 | PyObject * obj5 = 0 ; | |
44127b65 RD |
29244 | char *kwnames[] = { |
29245 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29246 | }; | |
29247 | ||
8edf1c75 | 29248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyPolygonShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
29249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29251 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 29252 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29253 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29254 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29255 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 29256 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29257 | if (obj4) { |
c370783e | 29258 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 29259 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29260 | } |
29261 | if (obj5) { | |
c370783e | 29262 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 29263 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29264 | } |
44127b65 RD |
29265 | { |
29266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29267 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
29268 | ||
29269 | wxPyEndAllowThreads(__tstate); | |
29270 | if (PyErr_Occurred()) SWIG_fail; | |
29271 | } | |
29272 | Py_INCREF(Py_None); resultobj = Py_None; | |
29273 | return resultobj; | |
29274 | fail: | |
29275 | return NULL; | |
29276 | } | |
29277 | ||
29278 | ||
c370783e | 29279 | static PyObject *_wrap_PyPolygonShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29280 | PyObject *resultobj; |
29281 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29282 | double arg2 ; | |
29283 | double arg3 ; | |
29284 | int arg4 = (int) 0 ; | |
29285 | int arg5 = (int) 0 ; | |
29286 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
29287 | PyObject * obj1 = 0 ; |
29288 | PyObject * obj2 = 0 ; | |
29289 | PyObject * obj3 = 0 ; | |
29290 | PyObject * obj4 = 0 ; | |
44127b65 RD |
29291 | char *kwnames[] = { |
29292 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29293 | }; | |
29294 | ||
8edf1c75 | 29295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
29296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29298 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 29299 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29300 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29301 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29302 | if (obj3) { |
c370783e | 29303 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 29304 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29305 | } |
29306 | if (obj4) { | |
c370783e | 29307 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 29308 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29309 | } |
44127b65 RD |
29310 | { |
29311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29312 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
29313 | ||
29314 | wxPyEndAllowThreads(__tstate); | |
29315 | if (PyErr_Occurred()) SWIG_fail; | |
29316 | } | |
29317 | Py_INCREF(Py_None); resultobj = Py_None; | |
29318 | return resultobj; | |
29319 | fail: | |
29320 | return NULL; | |
29321 | } | |
29322 | ||
29323 | ||
c370783e | 29324 | static PyObject *_wrap_PyPolygonShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29325 | PyObject *resultobj; |
29326 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29327 | double arg2 ; | |
29328 | double arg3 ; | |
29329 | int arg4 = (int) 0 ; | |
29330 | int arg5 = (int) 0 ; | |
29331 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
29332 | PyObject * obj1 = 0 ; |
29333 | PyObject * obj2 = 0 ; | |
29334 | PyObject * obj3 = 0 ; | |
29335 | PyObject * obj4 = 0 ; | |
44127b65 RD |
29336 | char *kwnames[] = { |
29337 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29338 | }; | |
29339 | ||
8edf1c75 | 29340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyPolygonShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
29341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29343 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 29344 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29345 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29346 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29347 | if (obj3) { |
c370783e | 29348 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 29349 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29350 | } |
29351 | if (obj4) { | |
c370783e | 29352 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 29353 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29354 | } |
44127b65 RD |
29355 | { |
29356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29357 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
29358 | ||
29359 | wxPyEndAllowThreads(__tstate); | |
29360 | if (PyErr_Occurred()) SWIG_fail; | |
29361 | } | |
29362 | Py_INCREF(Py_None); resultobj = Py_None; | |
29363 | return resultobj; | |
29364 | fail: | |
29365 | return NULL; | |
29366 | } | |
29367 | ||
29368 | ||
c370783e | 29369 | static PyObject *_wrap_PyPolygonShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29370 | PyObject *resultobj; |
29371 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29372 | wxDC *arg2 = 0 ; | |
29373 | double arg3 ; | |
29374 | double arg4 ; | |
29375 | double arg5 ; | |
29376 | double arg6 ; | |
29377 | PyObject * obj0 = 0 ; | |
29378 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
29379 | PyObject * obj2 = 0 ; |
29380 | PyObject * obj3 = 0 ; | |
29381 | PyObject * obj4 = 0 ; | |
29382 | PyObject * obj5 = 0 ; | |
44127b65 RD |
29383 | char *kwnames[] = { |
29384 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29385 | }; | |
29386 | ||
8edf1c75 | 29387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyPolygonShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
29388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29390 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29391 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29392 | SWIG_fail; | |
44127b65 | 29393 | if (arg2 == NULL) { |
2f4c0a16 RD |
29394 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29395 | SWIG_fail; | |
8edf1c75 | 29396 | } |
c370783e | 29397 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29398 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29399 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 29400 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29401 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 29402 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29403 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 29404 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
29405 | { |
29406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29407 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
29408 | ||
29409 | wxPyEndAllowThreads(__tstate); | |
29410 | if (PyErr_Occurred()) SWIG_fail; | |
29411 | } | |
29412 | Py_INCREF(Py_None); resultobj = Py_None; | |
29413 | return resultobj; | |
29414 | fail: | |
29415 | return NULL; | |
29416 | } | |
29417 | ||
29418 | ||
c370783e | 29419 | static PyObject *_wrap_PyPolygonShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29420 | PyObject *resultobj; |
29421 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29422 | wxDC *arg2 = 0 ; | |
29423 | PyObject * obj0 = 0 ; | |
29424 | PyObject * obj1 = 0 ; | |
29425 | char *kwnames[] = { | |
29426 | (char *) "self",(char *) "dc", NULL | |
29427 | }; | |
29428 | ||
29429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29433 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29434 | SWIG_fail; | |
44127b65 | 29435 | if (arg2 == NULL) { |
2f4c0a16 RD |
29436 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29437 | SWIG_fail; | |
44127b65 RD |
29438 | } |
29439 | { | |
29440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29441 | (arg1)->base_OnDrawControlPoints(*arg2); | |
29442 | ||
29443 | wxPyEndAllowThreads(__tstate); | |
29444 | if (PyErr_Occurred()) SWIG_fail; | |
29445 | } | |
29446 | Py_INCREF(Py_None); resultobj = Py_None; | |
29447 | return resultobj; | |
29448 | fail: | |
29449 | return NULL; | |
29450 | } | |
29451 | ||
29452 | ||
c370783e | 29453 | static PyObject *_wrap_PyPolygonShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29454 | PyObject *resultobj; |
29455 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29456 | wxDC *arg2 = 0 ; | |
29457 | PyObject * obj0 = 0 ; | |
29458 | PyObject * obj1 = 0 ; | |
29459 | char *kwnames[] = { | |
29460 | (char *) "self",(char *) "dc", NULL | |
29461 | }; | |
29462 | ||
29463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPolygonShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29467 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29468 | SWIG_fail; | |
44127b65 | 29469 | if (arg2 == NULL) { |
2f4c0a16 RD |
29470 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29471 | SWIG_fail; | |
44127b65 RD |
29472 | } |
29473 | { | |
29474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29475 | (arg1)->base_OnEraseControlPoints(*arg2); | |
29476 | ||
29477 | wxPyEndAllowThreads(__tstate); | |
29478 | if (PyErr_Occurred()) SWIG_fail; | |
29479 | } | |
29480 | Py_INCREF(Py_None); resultobj = Py_None; | |
29481 | return resultobj; | |
29482 | fail: | |
29483 | return NULL; | |
29484 | } | |
29485 | ||
29486 | ||
c370783e | 29487 | static PyObject *_wrap_PyPolygonShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29488 | PyObject *resultobj; |
29489 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29490 | wxDC *arg2 = 0 ; | |
29491 | bool arg3 = (bool) True ; | |
29492 | PyObject * obj0 = 0 ; | |
29493 | PyObject * obj1 = 0 ; | |
29494 | PyObject * obj2 = 0 ; | |
29495 | char *kwnames[] = { | |
29496 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
29497 | }; | |
29498 | ||
29499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyPolygonShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29502 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29503 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29504 | SWIG_fail; | |
44127b65 | 29505 | if (arg2 == NULL) { |
2f4c0a16 RD |
29506 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29507 | SWIG_fail; | |
44127b65 RD |
29508 | } |
29509 | if (obj2) { | |
c370783e | 29510 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 29511 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
29512 | } |
29513 | { | |
29514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29515 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
29516 | ||
29517 | wxPyEndAllowThreads(__tstate); | |
29518 | if (PyErr_Occurred()) SWIG_fail; | |
29519 | } | |
29520 | Py_INCREF(Py_None); resultobj = Py_None; | |
29521 | return resultobj; | |
29522 | fail: | |
29523 | return NULL; | |
29524 | } | |
29525 | ||
29526 | ||
c370783e | 29527 | static PyObject *_wrap_PyPolygonShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29528 | PyObject *resultobj; |
29529 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29530 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
29531 | bool arg3 ; | |
29532 | double arg4 ; | |
29533 | double arg5 ; | |
29534 | int arg6 = (int) 0 ; | |
29535 | int arg7 = (int) 0 ; | |
29536 | PyObject * obj0 = 0 ; | |
29537 | PyObject * obj1 = 0 ; | |
29538 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
29539 | PyObject * obj3 = 0 ; |
29540 | PyObject * obj4 = 0 ; | |
29541 | PyObject * obj5 = 0 ; | |
29542 | PyObject * obj6 = 0 ; | |
44127b65 RD |
29543 | char *kwnames[] = { |
29544 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29545 | }; | |
29546 | ||
8edf1c75 | 29547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyPolygonShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
29548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29550 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
29551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29552 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 29553 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29554 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 29555 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29556 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 29557 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29558 | if (obj5) { |
c370783e | 29559 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 29560 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29561 | } |
29562 | if (obj6) { | |
c370783e | 29563 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 29564 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29565 | } |
44127b65 RD |
29566 | { |
29567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29568 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
29569 | ||
29570 | wxPyEndAllowThreads(__tstate); | |
29571 | if (PyErr_Occurred()) SWIG_fail; | |
29572 | } | |
29573 | Py_INCREF(Py_None); resultobj = Py_None; | |
29574 | return resultobj; | |
29575 | fail: | |
29576 | return NULL; | |
29577 | } | |
29578 | ||
29579 | ||
c370783e | 29580 | static PyObject *_wrap_PyPolygonShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29581 | PyObject *resultobj; |
29582 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29583 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
29584 | double arg3 ; | |
29585 | double arg4 ; | |
29586 | int arg5 = (int) 0 ; | |
29587 | int arg6 = (int) 0 ; | |
29588 | PyObject * obj0 = 0 ; | |
29589 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
29590 | PyObject * obj2 = 0 ; |
29591 | PyObject * obj3 = 0 ; | |
29592 | PyObject * obj4 = 0 ; | |
29593 | PyObject * obj5 = 0 ; | |
44127b65 RD |
29594 | char *kwnames[] = { |
29595 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29596 | }; | |
29597 | ||
8edf1c75 | 29598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyPolygonShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
29599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29601 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
29602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29603 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29604 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29605 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 29606 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29607 | if (obj4) { |
c370783e | 29608 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 29609 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29610 | } |
29611 | if (obj5) { | |
c370783e | 29612 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 29613 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29614 | } |
44127b65 RD |
29615 | { |
29616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29617 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
29618 | ||
29619 | wxPyEndAllowThreads(__tstate); | |
29620 | if (PyErr_Occurred()) SWIG_fail; | |
29621 | } | |
29622 | Py_INCREF(Py_None); resultobj = Py_None; | |
29623 | return resultobj; | |
29624 | fail: | |
29625 | return NULL; | |
29626 | } | |
29627 | ||
29628 | ||
c370783e | 29629 | static PyObject *_wrap_PyPolygonShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29630 | PyObject *resultobj; |
29631 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29632 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
29633 | double arg3 ; | |
29634 | double arg4 ; | |
29635 | int arg5 = (int) 0 ; | |
29636 | int arg6 = (int) 0 ; | |
29637 | PyObject * obj0 = 0 ; | |
29638 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
29639 | PyObject * obj2 = 0 ; |
29640 | PyObject * obj3 = 0 ; | |
29641 | PyObject * obj4 = 0 ; | |
29642 | PyObject * obj5 = 0 ; | |
44127b65 RD |
29643 | char *kwnames[] = { |
29644 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
29645 | }; | |
29646 | ||
8edf1c75 | 29647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyPolygonShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
29648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29650 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
29651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29652 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29653 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29654 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 29655 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29656 | if (obj4) { |
c370783e | 29657 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 29658 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29659 | } |
29660 | if (obj5) { | |
c370783e | 29661 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 29662 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29663 | } |
44127b65 RD |
29664 | { |
29665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29666 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
29667 | ||
29668 | wxPyEndAllowThreads(__tstate); | |
29669 | if (PyErr_Occurred()) SWIG_fail; | |
29670 | } | |
29671 | Py_INCREF(Py_None); resultobj = Py_None; | |
29672 | return resultobj; | |
29673 | fail: | |
29674 | return NULL; | |
29675 | } | |
29676 | ||
29677 | ||
c370783e | 29678 | static PyObject *_wrap_PyPolygonShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29679 | PyObject *resultobj; |
29680 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29681 | double arg2 ; | |
29682 | double arg3 ; | |
29683 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
29684 | PyObject * obj1 = 0 ; |
29685 | PyObject * obj2 = 0 ; | |
44127b65 RD |
29686 | char *kwnames[] = { |
29687 | (char *) "self",(char *) "w",(char *) "h", NULL | |
29688 | }; | |
29689 | ||
8edf1c75 | 29690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPolygonShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29693 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 29694 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29695 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29696 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
29697 | { |
29698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29699 | (arg1)->base_OnBeginSize(arg2,arg3); | |
29700 | ||
29701 | wxPyEndAllowThreads(__tstate); | |
29702 | if (PyErr_Occurred()) SWIG_fail; | |
29703 | } | |
29704 | Py_INCREF(Py_None); resultobj = Py_None; | |
29705 | return resultobj; | |
29706 | fail: | |
29707 | return NULL; | |
29708 | } | |
29709 | ||
29710 | ||
c370783e | 29711 | static PyObject *_wrap_PyPolygonShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29712 | PyObject *resultobj; |
29713 | wxPyPolygonShape *arg1 = (wxPyPolygonShape *) 0 ; | |
29714 | double arg2 ; | |
29715 | double arg3 ; | |
29716 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
29717 | PyObject * obj1 = 0 ; |
29718 | PyObject * obj2 = 0 ; | |
44127b65 RD |
29719 | char *kwnames[] = { |
29720 | (char *) "self",(char *) "w",(char *) "h", NULL | |
29721 | }; | |
29722 | ||
8edf1c75 | 29723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPolygonShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPolygonShape, |
29725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29726 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 29727 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29728 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 29729 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
29730 | { |
29731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29732 | (arg1)->base_OnEndSize(arg2,arg3); | |
29733 | ||
29734 | wxPyEndAllowThreads(__tstate); | |
29735 | if (PyErr_Occurred()) SWIG_fail; | |
29736 | } | |
29737 | Py_INCREF(Py_None); resultobj = Py_None; | |
29738 | return resultobj; | |
29739 | fail: | |
29740 | return NULL; | |
29741 | } | |
29742 | ||
29743 | ||
c370783e | 29744 | static PyObject * PyPolygonShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
29745 | PyObject *obj; |
29746 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29747 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPolygonShape, obj); | |
29748 | Py_INCREF(obj); | |
29749 | return Py_BuildValue((char *)""); | |
29750 | } | |
c370783e | 29751 | static PyObject *_wrap_new_PyTextShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29752 | PyObject *resultobj; |
29753 | double arg1 = (double) 0.0 ; | |
29754 | double arg2 = (double) 0.0 ; | |
29755 | wxPyTextShape *result; | |
8edf1c75 RD |
29756 | PyObject * obj0 = 0 ; |
29757 | PyObject * obj1 = 0 ; | |
44127b65 RD |
29758 | char *kwnames[] = { |
29759 | (char *) "width",(char *) "height", NULL | |
29760 | }; | |
29761 | ||
8edf1c75 RD |
29762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyTextShape",kwnames,&obj0,&obj1)) goto fail; |
29763 | if (obj0) { | |
c370783e | 29764 | arg1 = (double)SWIG_As_double(obj0); |
2f4c0a16 | 29765 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
29766 | } |
29767 | if (obj1) { | |
c370783e | 29768 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 29769 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 29770 | } |
44127b65 RD |
29771 | { |
29772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29773 | result = (wxPyTextShape *)new wxPyTextShape(arg1,arg2); | |
29774 | ||
29775 | wxPyEndAllowThreads(__tstate); | |
29776 | if (PyErr_Occurred()) SWIG_fail; | |
29777 | } | |
2f4c0a16 | 29778 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextShape, 1); |
44127b65 RD |
29779 | return resultobj; |
29780 | fail: | |
29781 | return NULL; | |
29782 | } | |
29783 | ||
29784 | ||
c370783e | 29785 | static PyObject *_wrap_PyTextShape__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29786 | PyObject *resultobj; |
29787 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29788 | PyObject *arg2 = (PyObject *) 0 ; | |
29789 | PyObject *arg3 = (PyObject *) 0 ; | |
29790 | PyObject * obj0 = 0 ; | |
29791 | PyObject * obj1 = 0 ; | |
29792 | PyObject * obj2 = 0 ; | |
29793 | char *kwnames[] = { | |
29794 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29795 | }; | |
29796 | ||
29797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextShape__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
29799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
29800 | arg2 = obj1; |
29801 | arg3 = obj2; | |
29802 | { | |
29803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29804 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29805 | ||
29806 | wxPyEndAllowThreads(__tstate); | |
29807 | if (PyErr_Occurred()) SWIG_fail; | |
29808 | } | |
29809 | Py_INCREF(Py_None); resultobj = Py_None; | |
29810 | return resultobj; | |
29811 | fail: | |
29812 | return NULL; | |
29813 | } | |
29814 | ||
29815 | ||
c370783e | 29816 | static PyObject *_wrap_PyTextShape_base_OnDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29817 | PyObject *resultobj; |
29818 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29819 | PyObject * obj0 = 0 ; | |
29820 | char *kwnames[] = { | |
29821 | (char *) "self", NULL | |
29822 | }; | |
29823 | ||
29824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyTextShape_base_OnDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
29826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
29827 | { |
29828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29829 | (arg1)->base_OnDelete(); | |
29830 | ||
29831 | wxPyEndAllowThreads(__tstate); | |
29832 | if (PyErr_Occurred()) SWIG_fail; | |
29833 | } | |
29834 | Py_INCREF(Py_None); resultobj = Py_None; | |
29835 | return resultobj; | |
29836 | fail: | |
29837 | return NULL; | |
29838 | } | |
29839 | ||
29840 | ||
c370783e | 29841 | static PyObject *_wrap_PyTextShape_base_OnDraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29842 | PyObject *resultobj; |
29843 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29844 | wxDC *arg2 = 0 ; | |
29845 | PyObject * obj0 = 0 ; | |
29846 | PyObject * obj1 = 0 ; | |
29847 | char *kwnames[] = { | |
29848 | (char *) "self",(char *) "dc", NULL | |
29849 | }; | |
29850 | ||
29851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnDraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
29853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29854 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29855 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29856 | SWIG_fail; | |
44127b65 | 29857 | if (arg2 == NULL) { |
2f4c0a16 RD |
29858 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29859 | SWIG_fail; | |
44127b65 RD |
29860 | } |
29861 | { | |
29862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29863 | (arg1)->base_OnDraw(*arg2); | |
29864 | ||
29865 | wxPyEndAllowThreads(__tstate); | |
29866 | if (PyErr_Occurred()) SWIG_fail; | |
29867 | } | |
29868 | Py_INCREF(Py_None); resultobj = Py_None; | |
29869 | return resultobj; | |
29870 | fail: | |
29871 | return NULL; | |
29872 | } | |
29873 | ||
29874 | ||
c370783e | 29875 | static PyObject *_wrap_PyTextShape_base_OnDrawContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29876 | PyObject *resultobj; |
29877 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29878 | wxDC *arg2 = 0 ; | |
29879 | PyObject * obj0 = 0 ; | |
29880 | PyObject * obj1 = 0 ; | |
29881 | char *kwnames[] = { | |
29882 | (char *) "self",(char *) "dc", NULL | |
29883 | }; | |
29884 | ||
29885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnDrawContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
29887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29890 | SWIG_fail; | |
44127b65 | 29891 | if (arg2 == NULL) { |
2f4c0a16 RD |
29892 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29893 | SWIG_fail; | |
44127b65 RD |
29894 | } |
29895 | { | |
29896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29897 | (arg1)->base_OnDrawContents(*arg2); | |
29898 | ||
29899 | wxPyEndAllowThreads(__tstate); | |
29900 | if (PyErr_Occurred()) SWIG_fail; | |
29901 | } | |
29902 | Py_INCREF(Py_None); resultobj = Py_None; | |
29903 | return resultobj; | |
29904 | fail: | |
29905 | return NULL; | |
29906 | } | |
29907 | ||
29908 | ||
c370783e | 29909 | static PyObject *_wrap_PyTextShape_base_OnDrawBranches(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29910 | PyObject *resultobj; |
29911 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29912 | wxDC *arg2 = 0 ; | |
29913 | bool arg3 = (bool) FALSE ; | |
29914 | PyObject * obj0 = 0 ; | |
29915 | PyObject * obj1 = 0 ; | |
29916 | PyObject * obj2 = 0 ; | |
29917 | char *kwnames[] = { | |
29918 | (char *) "self",(char *) "dc",(char *) "erase", NULL | |
29919 | }; | |
29920 | ||
29921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyTextShape_base_OnDrawBranches",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
29923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29924 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29925 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29926 | SWIG_fail; | |
44127b65 | 29927 | if (arg2 == NULL) { |
2f4c0a16 RD |
29928 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29929 | SWIG_fail; | |
44127b65 RD |
29930 | } |
29931 | if (obj2) { | |
c370783e | 29932 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 29933 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
29934 | } |
29935 | { | |
29936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29937 | (arg1)->base_OnDrawBranches(*arg2,arg3); | |
29938 | ||
29939 | wxPyEndAllowThreads(__tstate); | |
29940 | if (PyErr_Occurred()) SWIG_fail; | |
29941 | } | |
29942 | Py_INCREF(Py_None); resultobj = Py_None; | |
29943 | return resultobj; | |
29944 | fail: | |
29945 | return NULL; | |
29946 | } | |
29947 | ||
29948 | ||
c370783e | 29949 | static PyObject *_wrap_PyTextShape_base_OnMoveLinks(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29950 | PyObject *resultobj; |
29951 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29952 | wxDC *arg2 = 0 ; | |
29953 | PyObject * obj0 = 0 ; | |
29954 | PyObject * obj1 = 0 ; | |
29955 | char *kwnames[] = { | |
29956 | (char *) "self",(char *) "dc", NULL | |
29957 | }; | |
29958 | ||
29959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnMoveLinks",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
29961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29963 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29964 | SWIG_fail; | |
44127b65 | 29965 | if (arg2 == NULL) { |
2f4c0a16 RD |
29966 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29967 | SWIG_fail; | |
44127b65 RD |
29968 | } |
29969 | { | |
29970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29971 | (arg1)->base_OnMoveLinks(*arg2); | |
29972 | ||
29973 | wxPyEndAllowThreads(__tstate); | |
29974 | if (PyErr_Occurred()) SWIG_fail; | |
29975 | } | |
29976 | Py_INCREF(Py_None); resultobj = Py_None; | |
29977 | return resultobj; | |
29978 | fail: | |
29979 | return NULL; | |
29980 | } | |
29981 | ||
29982 | ||
c370783e | 29983 | static PyObject *_wrap_PyTextShape_base_OnErase(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
29984 | PyObject *resultobj; |
29985 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
29986 | wxDC *arg2 = 0 ; | |
29987 | PyObject * obj0 = 0 ; | |
29988 | PyObject * obj1 = 0 ; | |
29989 | char *kwnames[] = { | |
29990 | (char *) "self",(char *) "dc", NULL | |
29991 | }; | |
29992 | ||
29993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnErase",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
29995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29996 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
29997 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29998 | SWIG_fail; | |
44127b65 | 29999 | if (arg2 == NULL) { |
2f4c0a16 RD |
30000 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30001 | SWIG_fail; | |
44127b65 RD |
30002 | } |
30003 | { | |
30004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30005 | (arg1)->base_OnErase(*arg2); | |
30006 | ||
30007 | wxPyEndAllowThreads(__tstate); | |
30008 | if (PyErr_Occurred()) SWIG_fail; | |
30009 | } | |
30010 | Py_INCREF(Py_None); resultobj = Py_None; | |
30011 | return resultobj; | |
30012 | fail: | |
30013 | return NULL; | |
30014 | } | |
30015 | ||
30016 | ||
c370783e | 30017 | static PyObject *_wrap_PyTextShape_base_OnEraseContents(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30018 | PyObject *resultobj; |
30019 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30020 | wxDC *arg2 = 0 ; | |
30021 | PyObject * obj0 = 0 ; | |
30022 | PyObject * obj1 = 0 ; | |
30023 | char *kwnames[] = { | |
30024 | (char *) "self",(char *) "dc", NULL | |
30025 | }; | |
30026 | ||
30027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnEraseContents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30030 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30031 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30032 | SWIG_fail; | |
44127b65 | 30033 | if (arg2 == NULL) { |
2f4c0a16 RD |
30034 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30035 | SWIG_fail; | |
44127b65 RD |
30036 | } |
30037 | { | |
30038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30039 | (arg1)->base_OnEraseContents(*arg2); | |
30040 | ||
30041 | wxPyEndAllowThreads(__tstate); | |
30042 | if (PyErr_Occurred()) SWIG_fail; | |
30043 | } | |
30044 | Py_INCREF(Py_None); resultobj = Py_None; | |
30045 | return resultobj; | |
30046 | fail: | |
30047 | return NULL; | |
30048 | } | |
30049 | ||
30050 | ||
c370783e | 30051 | static PyObject *_wrap_PyTextShape_base_OnHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30052 | PyObject *resultobj; |
30053 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30054 | wxDC *arg2 = 0 ; | |
30055 | PyObject * obj0 = 0 ; | |
30056 | PyObject * obj1 = 0 ; | |
30057 | char *kwnames[] = { | |
30058 | (char *) "self",(char *) "dc", NULL | |
30059 | }; | |
30060 | ||
30061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnHighlight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30065 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30066 | SWIG_fail; | |
44127b65 | 30067 | if (arg2 == NULL) { |
2f4c0a16 RD |
30068 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30069 | SWIG_fail; | |
44127b65 RD |
30070 | } |
30071 | { | |
30072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30073 | (arg1)->base_OnHighlight(*arg2); | |
30074 | ||
30075 | wxPyEndAllowThreads(__tstate); | |
30076 | if (PyErr_Occurred()) SWIG_fail; | |
30077 | } | |
30078 | Py_INCREF(Py_None); resultobj = Py_None; | |
30079 | return resultobj; | |
30080 | fail: | |
30081 | return NULL; | |
30082 | } | |
30083 | ||
30084 | ||
c370783e | 30085 | static PyObject *_wrap_PyTextShape_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30086 | PyObject *resultobj; |
30087 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30088 | double arg2 ; | |
30089 | double arg3 ; | |
30090 | int arg4 = (int) 0 ; | |
30091 | int arg5 = (int) 0 ; | |
30092 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30093 | PyObject * obj1 = 0 ; |
30094 | PyObject * obj2 = 0 ; | |
30095 | PyObject * obj3 = 0 ; | |
30096 | PyObject * obj4 = 0 ; | |
44127b65 RD |
30097 | char *kwnames[] = { |
30098 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30099 | }; | |
30100 | ||
8edf1c75 | 30101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
30102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30104 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 30105 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30106 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30107 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30108 | if (obj3) { |
c370783e | 30109 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 30110 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30111 | } |
30112 | if (obj4) { | |
c370783e | 30113 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30114 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30115 | } |
44127b65 RD |
30116 | { |
30117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30118 | (arg1)->base_OnLeftClick(arg2,arg3,arg4,arg5); | |
30119 | ||
30120 | wxPyEndAllowThreads(__tstate); | |
30121 | if (PyErr_Occurred()) SWIG_fail; | |
30122 | } | |
30123 | Py_INCREF(Py_None); resultobj = Py_None; | |
30124 | return resultobj; | |
30125 | fail: | |
30126 | return NULL; | |
30127 | } | |
30128 | ||
30129 | ||
c370783e | 30130 | static PyObject *_wrap_PyTextShape_base_OnLeftDoubleClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30131 | PyObject *resultobj; |
30132 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30133 | double arg2 ; | |
30134 | double arg3 ; | |
30135 | int arg4 = (int) 0 ; | |
30136 | int arg5 = (int) 0 ; | |
30137 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30138 | PyObject * obj1 = 0 ; |
30139 | PyObject * obj2 = 0 ; | |
30140 | PyObject * obj3 = 0 ; | |
30141 | PyObject * obj4 = 0 ; | |
44127b65 RD |
30142 | char *kwnames[] = { |
30143 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30144 | }; | |
30145 | ||
8edf1c75 | 30146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnLeftDoubleClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
30147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30149 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 30150 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30151 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30152 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30153 | if (obj3) { |
c370783e | 30154 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 30155 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30156 | } |
30157 | if (obj4) { | |
c370783e | 30158 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30159 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30160 | } |
44127b65 RD |
30161 | { |
30162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30163 | (arg1)->base_OnLeftDoubleClick(arg2,arg3,arg4,arg5); | |
30164 | ||
30165 | wxPyEndAllowThreads(__tstate); | |
30166 | if (PyErr_Occurred()) SWIG_fail; | |
30167 | } | |
30168 | Py_INCREF(Py_None); resultobj = Py_None; | |
30169 | return resultobj; | |
30170 | fail: | |
30171 | return NULL; | |
30172 | } | |
30173 | ||
30174 | ||
c370783e | 30175 | static PyObject *_wrap_PyTextShape_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30176 | PyObject *resultobj; |
30177 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30178 | double arg2 ; | |
30179 | double arg3 ; | |
30180 | int arg4 = (int) 0 ; | |
30181 | int arg5 = (int) 0 ; | |
30182 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30183 | PyObject * obj1 = 0 ; |
30184 | PyObject * obj2 = 0 ; | |
30185 | PyObject * obj3 = 0 ; | |
30186 | PyObject * obj4 = 0 ; | |
44127b65 RD |
30187 | char *kwnames[] = { |
30188 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30189 | }; | |
30190 | ||
8edf1c75 | 30191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
30192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30194 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 30195 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30196 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30197 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30198 | if (obj3) { |
c370783e | 30199 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 30200 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30201 | } |
30202 | if (obj4) { | |
c370783e | 30203 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30204 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30205 | } |
44127b65 RD |
30206 | { |
30207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30208 | (arg1)->base_OnRightClick(arg2,arg3,arg4,arg5); | |
30209 | ||
30210 | wxPyEndAllowThreads(__tstate); | |
30211 | if (PyErr_Occurred()) SWIG_fail; | |
30212 | } | |
30213 | Py_INCREF(Py_None); resultobj = Py_None; | |
30214 | return resultobj; | |
30215 | fail: | |
30216 | return NULL; | |
30217 | } | |
30218 | ||
30219 | ||
c370783e | 30220 | static PyObject *_wrap_PyTextShape_base_OnSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30221 | PyObject *resultobj; |
30222 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30223 | double arg2 ; | |
30224 | double arg3 ; | |
30225 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30226 | PyObject * obj1 = 0 ; |
30227 | PyObject * obj2 = 0 ; | |
44127b65 RD |
30228 | char *kwnames[] = { |
30229 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30230 | }; | |
30231 | ||
8edf1c75 | 30232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextShape_base_OnSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30235 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 30236 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30237 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30238 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
30239 | { |
30240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30241 | (arg1)->base_OnSize(arg2,arg3); | |
30242 | ||
30243 | wxPyEndAllowThreads(__tstate); | |
30244 | if (PyErr_Occurred()) SWIG_fail; | |
30245 | } | |
30246 | Py_INCREF(Py_None); resultobj = Py_None; | |
30247 | return resultobj; | |
30248 | fail: | |
30249 | return NULL; | |
30250 | } | |
30251 | ||
30252 | ||
c370783e | 30253 | static PyObject *_wrap_PyTextShape_base_OnMovePre(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30254 | PyObject *resultobj; |
30255 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30256 | wxDC *arg2 = 0 ; | |
30257 | double arg3 ; | |
30258 | double arg4 ; | |
30259 | double arg5 ; | |
30260 | double arg6 ; | |
30261 | bool arg7 = (bool) True ; | |
30262 | bool result; | |
30263 | PyObject * obj0 = 0 ; | |
30264 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
30265 | PyObject * obj2 = 0 ; |
30266 | PyObject * obj3 = 0 ; | |
30267 | PyObject * obj4 = 0 ; | |
30268 | PyObject * obj5 = 0 ; | |
44127b65 RD |
30269 | PyObject * obj6 = 0 ; |
30270 | char *kwnames[] = { | |
30271 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
30272 | }; | |
30273 | ||
8edf1c75 | 30274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyTextShape_base_OnMovePre",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
30275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30277 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30278 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30279 | SWIG_fail; | |
44127b65 | 30280 | if (arg2 == NULL) { |
2f4c0a16 RD |
30281 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30282 | SWIG_fail; | |
30283 | } | |
c370783e | 30284 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30285 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30286 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 30287 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30288 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 30289 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30290 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 30291 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 30292 | if (obj6) { |
c370783e | 30293 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 30294 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
30295 | } |
30296 | { | |
30297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30298 | result = (bool)(arg1)->base_OnMovePre(*arg2,arg3,arg4,arg5,arg6,arg7); | |
30299 | ||
30300 | wxPyEndAllowThreads(__tstate); | |
30301 | if (PyErr_Occurred()) SWIG_fail; | |
30302 | } | |
fbc46b20 RD |
30303 | { |
30304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30305 | } | |
44127b65 RD |
30306 | return resultobj; |
30307 | fail: | |
30308 | return NULL; | |
30309 | } | |
30310 | ||
30311 | ||
c370783e | 30312 | static PyObject *_wrap_PyTextShape_base_OnMovePost(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30313 | PyObject *resultobj; |
30314 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30315 | wxDC *arg2 = 0 ; | |
30316 | double arg3 ; | |
30317 | double arg4 ; | |
30318 | double arg5 ; | |
30319 | double arg6 ; | |
30320 | bool arg7 = (bool) True ; | |
30321 | PyObject * obj0 = 0 ; | |
30322 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
30323 | PyObject * obj2 = 0 ; |
30324 | PyObject * obj3 = 0 ; | |
30325 | PyObject * obj4 = 0 ; | |
30326 | PyObject * obj5 = 0 ; | |
44127b65 RD |
30327 | PyObject * obj6 = 0 ; |
30328 | char *kwnames[] = { | |
30329 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "old_x",(char *) "old_y",(char *) "display", NULL | |
30330 | }; | |
30331 | ||
8edf1c75 | 30332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:PyTextShape_base_OnMovePost",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
30333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30336 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30337 | SWIG_fail; | |
44127b65 | 30338 | if (arg2 == NULL) { |
2f4c0a16 RD |
30339 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30340 | SWIG_fail; | |
30341 | } | |
c370783e | 30342 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30343 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30344 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 30345 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30346 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 30347 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30348 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 30349 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 30350 | if (obj6) { |
c370783e | 30351 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 30352 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
30353 | } |
30354 | { | |
30355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30356 | (arg1)->base_OnMovePost(*arg2,arg3,arg4,arg5,arg6,arg7); | |
30357 | ||
30358 | wxPyEndAllowThreads(__tstate); | |
30359 | if (PyErr_Occurred()) SWIG_fail; | |
30360 | } | |
30361 | Py_INCREF(Py_None); resultobj = Py_None; | |
30362 | return resultobj; | |
30363 | fail: | |
30364 | return NULL; | |
30365 | } | |
30366 | ||
30367 | ||
c370783e | 30368 | static PyObject *_wrap_PyTextShape_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30369 | PyObject *resultobj; |
30370 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30371 | bool arg2 ; | |
30372 | double arg3 ; | |
30373 | double arg4 ; | |
30374 | int arg5 = (int) 0 ; | |
30375 | int arg6 = (int) 0 ; | |
30376 | PyObject * obj0 = 0 ; | |
30377 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
30378 | PyObject * obj2 = 0 ; |
30379 | PyObject * obj3 = 0 ; | |
30380 | PyObject * obj4 = 0 ; | |
30381 | PyObject * obj5 = 0 ; | |
44127b65 RD |
30382 | char *kwnames[] = { |
30383 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30384 | }; | |
30385 | ||
8edf1c75 | 30386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyTextShape_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
30387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30389 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 30390 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30391 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30392 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30393 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 30394 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30395 | if (obj4) { |
c370783e | 30396 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30397 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30398 | } |
30399 | if (obj5) { | |
c370783e | 30400 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 30401 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30402 | } |
44127b65 RD |
30403 | { |
30404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30405 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5,arg6); | |
30406 | ||
30407 | wxPyEndAllowThreads(__tstate); | |
30408 | if (PyErr_Occurred()) SWIG_fail; | |
30409 | } | |
30410 | Py_INCREF(Py_None); resultobj = Py_None; | |
30411 | return resultobj; | |
30412 | fail: | |
30413 | return NULL; | |
30414 | } | |
30415 | ||
30416 | ||
c370783e | 30417 | static PyObject *_wrap_PyTextShape_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30418 | PyObject *resultobj; |
30419 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30420 | double arg2 ; | |
30421 | double arg3 ; | |
30422 | int arg4 = (int) 0 ; | |
30423 | int arg5 = (int) 0 ; | |
30424 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30425 | PyObject * obj1 = 0 ; |
30426 | PyObject * obj2 = 0 ; | |
30427 | PyObject * obj3 = 0 ; | |
30428 | PyObject * obj4 = 0 ; | |
44127b65 | 30429 | char *kwnames[] = { |
2f4c0a16 RD |
30430 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL |
30431 | }; | |
30432 | ||
30433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, | |
30435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30436 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 30437 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30438 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30439 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30440 | if (obj3) { |
c370783e | 30441 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 30442 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30443 | } |
30444 | if (obj4) { | |
c370783e | 30445 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30446 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30447 | } |
44127b65 RD |
30448 | { |
30449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30450 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4,arg5); | |
30451 | ||
30452 | wxPyEndAllowThreads(__tstate); | |
30453 | if (PyErr_Occurred()) SWIG_fail; | |
30454 | } | |
30455 | Py_INCREF(Py_None); resultobj = Py_None; | |
30456 | return resultobj; | |
30457 | fail: | |
30458 | return NULL; | |
30459 | } | |
30460 | ||
30461 | ||
c370783e | 30462 | static PyObject *_wrap_PyTextShape_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30463 | PyObject *resultobj; |
30464 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30465 | double arg2 ; | |
30466 | double arg3 ; | |
30467 | int arg4 = (int) 0 ; | |
30468 | int arg5 = (int) 0 ; | |
30469 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30470 | PyObject * obj1 = 0 ; |
30471 | PyObject * obj2 = 0 ; | |
30472 | PyObject * obj3 = 0 ; | |
30473 | PyObject * obj4 = 0 ; | |
44127b65 RD |
30474 | char *kwnames[] = { |
30475 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30476 | }; | |
30477 | ||
8edf1c75 | 30478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
30479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30481 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 30482 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30483 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30484 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30485 | if (obj3) { |
c370783e | 30486 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 30487 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30488 | } |
30489 | if (obj4) { | |
c370783e | 30490 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30491 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30492 | } |
44127b65 RD |
30493 | { |
30494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30495 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4,arg5); | |
30496 | ||
30497 | wxPyEndAllowThreads(__tstate); | |
30498 | if (PyErr_Occurred()) SWIG_fail; | |
30499 | } | |
30500 | Py_INCREF(Py_None); resultobj = Py_None; | |
30501 | return resultobj; | |
30502 | fail: | |
30503 | return NULL; | |
30504 | } | |
30505 | ||
30506 | ||
c370783e | 30507 | static PyObject *_wrap_PyTextShape_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30508 | PyObject *resultobj; |
30509 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30510 | bool arg2 ; | |
30511 | double arg3 ; | |
30512 | double arg4 ; | |
30513 | int arg5 = (int) 0 ; | |
30514 | int arg6 = (int) 0 ; | |
30515 | PyObject * obj0 = 0 ; | |
30516 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
30517 | PyObject * obj2 = 0 ; |
30518 | PyObject * obj3 = 0 ; | |
30519 | PyObject * obj4 = 0 ; | |
30520 | PyObject * obj5 = 0 ; | |
44127b65 RD |
30521 | char *kwnames[] = { |
30522 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30523 | }; | |
30524 | ||
8edf1c75 | 30525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyTextShape_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
30526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30528 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 30529 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30530 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30531 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30532 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 30533 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30534 | if (obj4) { |
c370783e | 30535 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30536 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30537 | } |
30538 | if (obj5) { | |
c370783e | 30539 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 30540 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30541 | } |
44127b65 RD |
30542 | { |
30543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30544 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5,arg6); | |
30545 | ||
30546 | wxPyEndAllowThreads(__tstate); | |
30547 | if (PyErr_Occurred()) SWIG_fail; | |
30548 | } | |
30549 | Py_INCREF(Py_None); resultobj = Py_None; | |
30550 | return resultobj; | |
30551 | fail: | |
30552 | return NULL; | |
30553 | } | |
30554 | ||
30555 | ||
c370783e | 30556 | static PyObject *_wrap_PyTextShape_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30557 | PyObject *resultobj; |
30558 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30559 | double arg2 ; | |
30560 | double arg3 ; | |
30561 | int arg4 = (int) 0 ; | |
30562 | int arg5 = (int) 0 ; | |
30563 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30564 | PyObject * obj1 = 0 ; |
30565 | PyObject * obj2 = 0 ; | |
30566 | PyObject * obj3 = 0 ; | |
30567 | PyObject * obj4 = 0 ; | |
44127b65 RD |
30568 | char *kwnames[] = { |
30569 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30570 | }; | |
30571 | ||
8edf1c75 | 30572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
30573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30575 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 30576 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30577 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30578 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30579 | if (obj3) { |
c370783e | 30580 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 30581 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30582 | } |
30583 | if (obj4) { | |
c370783e | 30584 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30585 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30586 | } |
44127b65 RD |
30587 | { |
30588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30589 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4,arg5); | |
30590 | ||
30591 | wxPyEndAllowThreads(__tstate); | |
30592 | if (PyErr_Occurred()) SWIG_fail; | |
30593 | } | |
30594 | Py_INCREF(Py_None); resultobj = Py_None; | |
30595 | return resultobj; | |
30596 | fail: | |
30597 | return NULL; | |
30598 | } | |
30599 | ||
30600 | ||
c370783e | 30601 | static PyObject *_wrap_PyTextShape_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30602 | PyObject *resultobj; |
30603 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30604 | double arg2 ; | |
30605 | double arg3 ; | |
30606 | int arg4 = (int) 0 ; | |
30607 | int arg5 = (int) 0 ; | |
30608 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30609 | PyObject * obj1 = 0 ; |
30610 | PyObject * obj2 = 0 ; | |
30611 | PyObject * obj3 = 0 ; | |
30612 | PyObject * obj4 = 0 ; | |
44127b65 RD |
30613 | char *kwnames[] = { |
30614 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30615 | }; | |
30616 | ||
8edf1c75 | 30617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyTextShape_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
30618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30620 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 30621 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30622 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30623 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30624 | if (obj3) { |
c370783e | 30625 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 30626 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30627 | } |
30628 | if (obj4) { | |
c370783e | 30629 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30630 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30631 | } |
44127b65 RD |
30632 | { |
30633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30634 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4,arg5); | |
30635 | ||
30636 | wxPyEndAllowThreads(__tstate); | |
30637 | if (PyErr_Occurred()) SWIG_fail; | |
30638 | } | |
30639 | Py_INCREF(Py_None); resultobj = Py_None; | |
30640 | return resultobj; | |
30641 | fail: | |
30642 | return NULL; | |
30643 | } | |
30644 | ||
30645 | ||
c370783e | 30646 | static PyObject *_wrap_PyTextShape_base_OnDrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30647 | PyObject *resultobj; |
30648 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30649 | wxDC *arg2 = 0 ; | |
30650 | double arg3 ; | |
30651 | double arg4 ; | |
30652 | double arg5 ; | |
30653 | double arg6 ; | |
30654 | PyObject * obj0 = 0 ; | |
30655 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
30656 | PyObject * obj2 = 0 ; |
30657 | PyObject * obj3 = 0 ; | |
30658 | PyObject * obj4 = 0 ; | |
30659 | PyObject * obj5 = 0 ; | |
44127b65 RD |
30660 | char *kwnames[] = { |
30661 | (char *) "self",(char *) "dc",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30662 | }; | |
30663 | ||
8edf1c75 | 30664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PyTextShape_base_OnDrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
30665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30668 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30669 | SWIG_fail; | |
44127b65 | 30670 | if (arg2 == NULL) { |
2f4c0a16 RD |
30671 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30672 | SWIG_fail; | |
8edf1c75 | 30673 | } |
c370783e | 30674 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30675 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30676 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 30677 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30678 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 30679 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30680 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 30681 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
30682 | { |
30683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30684 | (arg1)->base_OnDrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
30685 | ||
30686 | wxPyEndAllowThreads(__tstate); | |
30687 | if (PyErr_Occurred()) SWIG_fail; | |
30688 | } | |
30689 | Py_INCREF(Py_None); resultobj = Py_None; | |
30690 | return resultobj; | |
30691 | fail: | |
30692 | return NULL; | |
30693 | } | |
30694 | ||
30695 | ||
c370783e | 30696 | static PyObject *_wrap_PyTextShape_base_OnDrawControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30697 | PyObject *resultobj; |
30698 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30699 | wxDC *arg2 = 0 ; | |
30700 | PyObject * obj0 = 0 ; | |
30701 | PyObject * obj1 = 0 ; | |
30702 | char *kwnames[] = { | |
30703 | (char *) "self",(char *) "dc", NULL | |
30704 | }; | |
30705 | ||
30706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnDrawControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30709 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30710 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30711 | SWIG_fail; | |
44127b65 | 30712 | if (arg2 == NULL) { |
2f4c0a16 RD |
30713 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30714 | SWIG_fail; | |
44127b65 RD |
30715 | } |
30716 | { | |
30717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30718 | (arg1)->base_OnDrawControlPoints(*arg2); | |
30719 | ||
30720 | wxPyEndAllowThreads(__tstate); | |
30721 | if (PyErr_Occurred()) SWIG_fail; | |
30722 | } | |
30723 | Py_INCREF(Py_None); resultobj = Py_None; | |
30724 | return resultobj; | |
30725 | fail: | |
30726 | return NULL; | |
30727 | } | |
30728 | ||
30729 | ||
c370783e | 30730 | static PyObject *_wrap_PyTextShape_base_OnEraseControlPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30731 | PyObject *resultobj; |
30732 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30733 | wxDC *arg2 = 0 ; | |
30734 | PyObject * obj0 = 0 ; | |
30735 | PyObject * obj1 = 0 ; | |
30736 | char *kwnames[] = { | |
30737 | (char *) "self",(char *) "dc", NULL | |
30738 | }; | |
30739 | ||
30740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyTextShape_base_OnEraseControlPoints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30743 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30744 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30745 | SWIG_fail; | |
44127b65 | 30746 | if (arg2 == NULL) { |
2f4c0a16 RD |
30747 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30748 | SWIG_fail; | |
44127b65 RD |
30749 | } |
30750 | { | |
30751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30752 | (arg1)->base_OnEraseControlPoints(*arg2); | |
30753 | ||
30754 | wxPyEndAllowThreads(__tstate); | |
30755 | if (PyErr_Occurred()) SWIG_fail; | |
30756 | } | |
30757 | Py_INCREF(Py_None); resultobj = Py_None; | |
30758 | return resultobj; | |
30759 | fail: | |
30760 | return NULL; | |
30761 | } | |
30762 | ||
30763 | ||
c370783e | 30764 | static PyObject *_wrap_PyTextShape_base_OnMoveLink(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30765 | PyObject *resultobj; |
30766 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30767 | wxDC *arg2 = 0 ; | |
30768 | bool arg3 = (bool) True ; | |
30769 | PyObject * obj0 = 0 ; | |
30770 | PyObject * obj1 = 0 ; | |
30771 | PyObject * obj2 = 0 ; | |
30772 | char *kwnames[] = { | |
30773 | (char *) "self",(char *) "dc",(char *) "moveControlPoints", NULL | |
30774 | }; | |
30775 | ||
30776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyTextShape_base_OnMoveLink",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30779 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30780 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30781 | SWIG_fail; | |
44127b65 | 30782 | if (arg2 == NULL) { |
2f4c0a16 RD |
30783 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30784 | SWIG_fail; | |
44127b65 RD |
30785 | } |
30786 | if (obj2) { | |
c370783e | 30787 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 30788 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
30789 | } |
30790 | { | |
30791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30792 | (arg1)->base_OnMoveLink(*arg2,arg3); | |
30793 | ||
30794 | wxPyEndAllowThreads(__tstate); | |
30795 | if (PyErr_Occurred()) SWIG_fail; | |
30796 | } | |
30797 | Py_INCREF(Py_None); resultobj = Py_None; | |
30798 | return resultobj; | |
30799 | fail: | |
30800 | return NULL; | |
30801 | } | |
30802 | ||
30803 | ||
c370783e | 30804 | static PyObject *_wrap_PyTextShape_base_OnSizingDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30805 | PyObject *resultobj; |
30806 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30807 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
30808 | bool arg3 ; | |
30809 | double arg4 ; | |
30810 | double arg5 ; | |
30811 | int arg6 = (int) 0 ; | |
30812 | int arg7 = (int) 0 ; | |
30813 | PyObject * obj0 = 0 ; | |
30814 | PyObject * obj1 = 0 ; | |
30815 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
30816 | PyObject * obj3 = 0 ; |
30817 | PyObject * obj4 = 0 ; | |
30818 | PyObject * obj5 = 0 ; | |
30819 | PyObject * obj6 = 0 ; | |
44127b65 RD |
30820 | char *kwnames[] = { |
30821 | (char *) "self",(char *) "pt",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30822 | }; | |
30823 | ||
8edf1c75 | 30824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:PyTextShape_base_OnSizingDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
30825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
30828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30829 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 30830 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30831 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 30832 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30833 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 30834 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30835 | if (obj5) { |
c370783e | 30836 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 30837 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30838 | } |
30839 | if (obj6) { | |
c370783e | 30840 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 30841 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30842 | } |
44127b65 RD |
30843 | { |
30844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30845 | (arg1)->base_OnSizingDragLeft(arg2,arg3,arg4,arg5,arg6,arg7); | |
30846 | ||
30847 | wxPyEndAllowThreads(__tstate); | |
30848 | if (PyErr_Occurred()) SWIG_fail; | |
30849 | } | |
30850 | Py_INCREF(Py_None); resultobj = Py_None; | |
30851 | return resultobj; | |
30852 | fail: | |
30853 | return NULL; | |
30854 | } | |
30855 | ||
30856 | ||
c370783e | 30857 | static PyObject *_wrap_PyTextShape_base_OnSizingBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30858 | PyObject *resultobj; |
30859 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30860 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
30861 | double arg3 ; | |
30862 | double arg4 ; | |
30863 | int arg5 = (int) 0 ; | |
30864 | int arg6 = (int) 0 ; | |
30865 | PyObject * obj0 = 0 ; | |
30866 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
30867 | PyObject * obj2 = 0 ; |
30868 | PyObject * obj3 = 0 ; | |
30869 | PyObject * obj4 = 0 ; | |
30870 | PyObject * obj5 = 0 ; | |
44127b65 RD |
30871 | char *kwnames[] = { |
30872 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30873 | }; | |
30874 | ||
8edf1c75 | 30875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyTextShape_base_OnSizingBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
30876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30878 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
30879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30880 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30881 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30882 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 30883 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30884 | if (obj4) { |
c370783e | 30885 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30886 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30887 | } |
30888 | if (obj5) { | |
c370783e | 30889 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 30890 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30891 | } |
44127b65 RD |
30892 | { |
30893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30894 | (arg1)->base_OnSizingBeginDragLeft(arg2,arg3,arg4,arg5,arg6); | |
30895 | ||
30896 | wxPyEndAllowThreads(__tstate); | |
30897 | if (PyErr_Occurred()) SWIG_fail; | |
30898 | } | |
30899 | Py_INCREF(Py_None); resultobj = Py_None; | |
30900 | return resultobj; | |
30901 | fail: | |
30902 | return NULL; | |
30903 | } | |
30904 | ||
30905 | ||
c370783e | 30906 | static PyObject *_wrap_PyTextShape_base_OnSizingEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30907 | PyObject *resultobj; |
30908 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30909 | wxPyControlPoint *arg2 = (wxPyControlPoint *) 0 ; | |
30910 | double arg3 ; | |
30911 | double arg4 ; | |
30912 | int arg5 = (int) 0 ; | |
30913 | int arg6 = (int) 0 ; | |
30914 | PyObject * obj0 = 0 ; | |
30915 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
30916 | PyObject * obj2 = 0 ; |
30917 | PyObject * obj3 = 0 ; | |
30918 | PyObject * obj4 = 0 ; | |
30919 | PyObject * obj5 = 0 ; | |
44127b65 RD |
30920 | char *kwnames[] = { |
30921 | (char *) "self",(char *) "pt",(char *) "x",(char *) "y",(char *) "keys",(char *) "attachment", NULL | |
30922 | }; | |
30923 | ||
8edf1c75 | 30924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PyTextShape_base_OnSizingEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
30925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyControlPoint, | |
30928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30929 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30930 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30931 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 30932 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30933 | if (obj4) { |
c370783e | 30934 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 30935 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
30936 | } |
30937 | if (obj5) { | |
c370783e | 30938 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 30939 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 30940 | } |
44127b65 RD |
30941 | { |
30942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30943 | (arg1)->base_OnSizingEndDragLeft(arg2,arg3,arg4,arg5,arg6); | |
30944 | ||
30945 | wxPyEndAllowThreads(__tstate); | |
30946 | if (PyErr_Occurred()) SWIG_fail; | |
30947 | } | |
30948 | Py_INCREF(Py_None); resultobj = Py_None; | |
30949 | return resultobj; | |
30950 | fail: | |
30951 | return NULL; | |
30952 | } | |
30953 | ||
30954 | ||
c370783e | 30955 | static PyObject *_wrap_PyTextShape_base_OnBeginSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30956 | PyObject *resultobj; |
30957 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30958 | double arg2 ; | |
30959 | double arg3 ; | |
30960 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30961 | PyObject * obj1 = 0 ; |
30962 | PyObject * obj2 = 0 ; | |
44127b65 RD |
30963 | char *kwnames[] = { |
30964 | (char *) "self",(char *) "w",(char *) "h", NULL | |
30965 | }; | |
30966 | ||
8edf1c75 | 30967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextShape_base_OnBeginSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
30969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30970 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 30971 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30972 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 30973 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
30974 | { |
30975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30976 | (arg1)->base_OnBeginSize(arg2,arg3); | |
30977 | ||
30978 | wxPyEndAllowThreads(__tstate); | |
30979 | if (PyErr_Occurred()) SWIG_fail; | |
30980 | } | |
30981 | Py_INCREF(Py_None); resultobj = Py_None; | |
30982 | return resultobj; | |
30983 | fail: | |
30984 | return NULL; | |
30985 | } | |
30986 | ||
30987 | ||
c370783e | 30988 | static PyObject *_wrap_PyTextShape_base_OnEndSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
30989 | PyObject *resultobj; |
30990 | wxPyTextShape *arg1 = (wxPyTextShape *) 0 ; | |
30991 | double arg2 ; | |
30992 | double arg3 ; | |
30993 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
30994 | PyObject * obj1 = 0 ; |
30995 | PyObject * obj2 = 0 ; | |
44127b65 RD |
30996 | char *kwnames[] = { |
30997 | (char *) "self",(char *) "w",(char *) "h", NULL | |
30998 | }; | |
30999 | ||
8edf1c75 | 31000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextShape_base_OnEndSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
31001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextShape, |
31002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31003 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 31004 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31005 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 31006 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
31007 | { |
31008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31009 | (arg1)->base_OnEndSize(arg2,arg3); | |
31010 | ||
31011 | wxPyEndAllowThreads(__tstate); | |
31012 | if (PyErr_Occurred()) SWIG_fail; | |
31013 | } | |
31014 | Py_INCREF(Py_None); resultobj = Py_None; | |
31015 | return resultobj; | |
31016 | fail: | |
31017 | return NULL; | |
31018 | } | |
31019 | ||
31020 | ||
c370783e | 31021 | static PyObject * PyTextShape_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
31022 | PyObject *obj; |
31023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31024 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextShape, obj); | |
31025 | Py_INCREF(obj); | |
31026 | return Py_BuildValue((char *)""); | |
31027 | } | |
c370783e | 31028 | static PyObject *_wrap_new_Diagram(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31029 | PyObject *resultobj; |
31030 | wxDiagram *result; | |
31031 | char *kwnames[] = { | |
31032 | NULL | |
31033 | }; | |
31034 | ||
31035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Diagram",kwnames)) goto fail; | |
31036 | { | |
31037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31038 | result = (wxDiagram *)new wxDiagram(); | |
31039 | ||
31040 | wxPyEndAllowThreads(__tstate); | |
31041 | if (PyErr_Occurred()) SWIG_fail; | |
31042 | } | |
31043 | { | |
412d302d | 31044 | resultobj = wxPyMake_wxObject(result, 1); |
44127b65 RD |
31045 | } |
31046 | return resultobj; | |
31047 | fail: | |
31048 | return NULL; | |
31049 | } | |
31050 | ||
31051 | ||
c370783e | 31052 | static PyObject *_wrap_Diagram_AddShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31053 | PyObject *resultobj; |
31054 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31055 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
31056 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
31057 | PyObject * obj0 = 0 ; | |
31058 | PyObject * obj1 = 0 ; | |
31059 | PyObject * obj2 = 0 ; | |
31060 | char *kwnames[] = { | |
31061 | (char *) "self",(char *) "shape",(char *) "addAfter", NULL | |
31062 | }; | |
31063 | ||
31064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Diagram_AddShape",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
31065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31067 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
31068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 31069 | if (obj2) { |
2f4c0a16 RD |
31070 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, |
31071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31072 | } |
31073 | { | |
31074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31075 | (arg1)->AddShape(arg2,arg3); | |
31076 | ||
31077 | wxPyEndAllowThreads(__tstate); | |
31078 | if (PyErr_Occurred()) SWIG_fail; | |
31079 | } | |
31080 | Py_INCREF(Py_None); resultobj = Py_None; | |
31081 | return resultobj; | |
31082 | fail: | |
31083 | return NULL; | |
31084 | } | |
31085 | ||
31086 | ||
c370783e | 31087 | static PyObject *_wrap_Diagram_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31088 | PyObject *resultobj; |
31089 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31090 | wxDC *arg2 = 0 ; | |
31091 | PyObject * obj0 = 0 ; | |
31092 | PyObject * obj1 = 0 ; | |
31093 | char *kwnames[] = { | |
31094 | (char *) "self",(char *) "dc", NULL | |
31095 | }; | |
31096 | ||
31097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_Clear",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31100 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31101 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31102 | SWIG_fail; | |
44127b65 | 31103 | if (arg2 == NULL) { |
2f4c0a16 RD |
31104 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31105 | SWIG_fail; | |
44127b65 RD |
31106 | } |
31107 | { | |
31108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31109 | (arg1)->Clear(*arg2); | |
31110 | ||
31111 | wxPyEndAllowThreads(__tstate); | |
31112 | if (PyErr_Occurred()) SWIG_fail; | |
31113 | } | |
31114 | Py_INCREF(Py_None); resultobj = Py_None; | |
31115 | return resultobj; | |
31116 | fail: | |
31117 | return NULL; | |
31118 | } | |
31119 | ||
31120 | ||
c370783e | 31121 | static PyObject *_wrap_Diagram_DeleteAllShapes(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31122 | PyObject *resultobj; |
31123 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31124 | PyObject * obj0 = 0 ; | |
31125 | char *kwnames[] = { | |
31126 | (char *) "self", NULL | |
31127 | }; | |
31128 | ||
31129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_DeleteAllShapes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31132 | { |
31133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31134 | (arg1)->DeleteAllShapes(); | |
31135 | ||
31136 | wxPyEndAllowThreads(__tstate); | |
31137 | if (PyErr_Occurred()) SWIG_fail; | |
31138 | } | |
31139 | Py_INCREF(Py_None); resultobj = Py_None; | |
31140 | return resultobj; | |
31141 | fail: | |
31142 | return NULL; | |
31143 | } | |
31144 | ||
31145 | ||
c370783e | 31146 | static PyObject *_wrap_Diagram_DrawOutline(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31147 | PyObject *resultobj; |
31148 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31149 | wxDC *arg2 = 0 ; | |
31150 | double arg3 ; | |
31151 | double arg4 ; | |
31152 | double arg5 ; | |
31153 | double arg6 ; | |
31154 | PyObject * obj0 = 0 ; | |
31155 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
31156 | PyObject * obj2 = 0 ; |
31157 | PyObject * obj3 = 0 ; | |
31158 | PyObject * obj4 = 0 ; | |
31159 | PyObject * obj5 = 0 ; | |
44127b65 RD |
31160 | char *kwnames[] = { |
31161 | (char *) "self",(char *) "dc",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
31162 | }; | |
31163 | ||
8edf1c75 | 31164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Diagram_DrawOutline",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
31165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31169 | SWIG_fail; | |
44127b65 | 31170 | if (arg2 == NULL) { |
2f4c0a16 RD |
31171 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31172 | SWIG_fail; | |
8edf1c75 | 31173 | } |
c370783e | 31174 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 31175 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31176 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 31177 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31178 | arg5 = (double)SWIG_As_double(obj4); |
2f4c0a16 | 31179 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31180 | arg6 = (double)SWIG_As_double(obj5); |
2f4c0a16 | 31181 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
31182 | { |
31183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31184 | (arg1)->DrawOutline(*arg2,arg3,arg4,arg5,arg6); | |
31185 | ||
31186 | wxPyEndAllowThreads(__tstate); | |
31187 | if (PyErr_Occurred()) SWIG_fail; | |
31188 | } | |
31189 | Py_INCREF(Py_None); resultobj = Py_None; | |
31190 | return resultobj; | |
31191 | fail: | |
31192 | return NULL; | |
31193 | } | |
31194 | ||
31195 | ||
c370783e | 31196 | static PyObject *_wrap_Diagram_FindShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31197 | PyObject *resultobj; |
31198 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31199 | long arg2 ; | |
31200 | wxPyShape *result; | |
31201 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31202 | PyObject * obj1 = 0 ; |
44127b65 RD |
31203 | char *kwnames[] = { |
31204 | (char *) "self",(char *) "id", NULL | |
31205 | }; | |
31206 | ||
8edf1c75 | 31207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_FindShape",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
31208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31210 | arg2 = (long)SWIG_As_long(obj1); |
2f4c0a16 | 31211 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
31212 | { |
31213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31214 | result = (wxPyShape *)(arg1)->FindShape(arg2); | |
31215 | ||
31216 | wxPyEndAllowThreads(__tstate); | |
31217 | if (PyErr_Occurred()) SWIG_fail; | |
31218 | } | |
31219 | { | |
412d302d | 31220 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 RD |
31221 | } |
31222 | return resultobj; | |
31223 | fail: | |
31224 | return NULL; | |
31225 | } | |
31226 | ||
31227 | ||
c370783e | 31228 | static PyObject *_wrap_Diagram_GetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31229 | PyObject *resultobj; |
31230 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31231 | wxPyShapeCanvas *result; | |
31232 | PyObject * obj0 = 0 ; | |
31233 | char *kwnames[] = { | |
31234 | (char *) "self", NULL | |
31235 | }; | |
31236 | ||
31237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetCanvas",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31240 | { |
31241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31242 | result = (wxPyShapeCanvas *)(arg1)->GetCanvas(); | |
31243 | ||
31244 | wxPyEndAllowThreads(__tstate); | |
31245 | if (PyErr_Occurred()) SWIG_fail; | |
31246 | } | |
31247 | { | |
412d302d | 31248 | resultobj = wxPyMake_wxObject(result, 0); |
44127b65 RD |
31249 | } |
31250 | return resultobj; | |
31251 | fail: | |
31252 | return NULL; | |
31253 | } | |
31254 | ||
31255 | ||
c370783e | 31256 | static PyObject *_wrap_Diagram_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31257 | PyObject *resultobj; |
31258 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31259 | int result; | |
31260 | PyObject * obj0 = 0 ; | |
31261 | char *kwnames[] = { | |
31262 | (char *) "self", NULL | |
31263 | }; | |
31264 | ||
31265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31268 | { |
31269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31270 | result = (int)(arg1)->GetCount(); | |
31271 | ||
31272 | wxPyEndAllowThreads(__tstate); | |
31273 | if (PyErr_Occurred()) SWIG_fail; | |
31274 | } | |
c370783e | 31275 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
31276 | return resultobj; |
31277 | fail: | |
31278 | return NULL; | |
31279 | } | |
31280 | ||
31281 | ||
c370783e | 31282 | static PyObject *_wrap_Diagram_GetGridSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31283 | PyObject *resultobj; |
31284 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31285 | double result; | |
31286 | PyObject * obj0 = 0 ; | |
31287 | char *kwnames[] = { | |
31288 | (char *) "self", NULL | |
31289 | }; | |
31290 | ||
31291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetGridSpacing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31294 | { |
31295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31296 | result = (double)(arg1)->GetGridSpacing(); | |
31297 | ||
31298 | wxPyEndAllowThreads(__tstate); | |
31299 | if (PyErr_Occurred()) SWIG_fail; | |
31300 | } | |
c370783e | 31301 | resultobj = SWIG_From_double((double)result); |
44127b65 RD |
31302 | return resultobj; |
31303 | fail: | |
31304 | return NULL; | |
31305 | } | |
31306 | ||
31307 | ||
c370783e | 31308 | static PyObject *_wrap_Diagram_GetMouseTolerance(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31309 | PyObject *resultobj; |
31310 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31311 | int result; | |
31312 | PyObject * obj0 = 0 ; | |
31313 | char *kwnames[] = { | |
31314 | (char *) "self", NULL | |
31315 | }; | |
31316 | ||
31317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetMouseTolerance",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31320 | { |
31321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31322 | result = (int)(arg1)->GetMouseTolerance(); | |
31323 | ||
31324 | wxPyEndAllowThreads(__tstate); | |
31325 | if (PyErr_Occurred()) SWIG_fail; | |
31326 | } | |
c370783e | 31327 | resultobj = SWIG_From_int((int)result); |
44127b65 RD |
31328 | return resultobj; |
31329 | fail: | |
31330 | return NULL; | |
31331 | } | |
31332 | ||
31333 | ||
c370783e | 31334 | static PyObject *_wrap_Diagram_GetShapeList(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31335 | PyObject *resultobj; |
31336 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31337 | PyObject *result; | |
31338 | PyObject * obj0 = 0 ; | |
31339 | char *kwnames[] = { | |
31340 | (char *) "self", NULL | |
31341 | }; | |
31342 | ||
31343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetShapeList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31346 | { |
31347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31348 | result = (PyObject *)wxDiagram_GetShapeList(arg1); | |
31349 | ||
31350 | wxPyEndAllowThreads(__tstate); | |
31351 | if (PyErr_Occurred()) SWIG_fail; | |
31352 | } | |
31353 | resultobj = result; | |
31354 | return resultobj; | |
31355 | fail: | |
31356 | return NULL; | |
31357 | } | |
31358 | ||
31359 | ||
c370783e | 31360 | static PyObject *_wrap_Diagram_GetQuickEditMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31361 | PyObject *resultobj; |
31362 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31363 | bool result; | |
31364 | PyObject * obj0 = 0 ; | |
31365 | char *kwnames[] = { | |
31366 | (char *) "self", NULL | |
31367 | }; | |
31368 | ||
31369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetQuickEditMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31372 | { |
31373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31374 | result = (bool)(arg1)->GetQuickEditMode(); | |
31375 | ||
31376 | wxPyEndAllowThreads(__tstate); | |
31377 | if (PyErr_Occurred()) SWIG_fail; | |
31378 | } | |
fbc46b20 RD |
31379 | { |
31380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31381 | } | |
44127b65 RD |
31382 | return resultobj; |
31383 | fail: | |
31384 | return NULL; | |
31385 | } | |
31386 | ||
31387 | ||
c370783e | 31388 | static PyObject *_wrap_Diagram_GetSnapToGrid(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31389 | PyObject *resultobj; |
31390 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31391 | bool result; | |
31392 | PyObject * obj0 = 0 ; | |
31393 | char *kwnames[] = { | |
31394 | (char *) "self", NULL | |
31395 | }; | |
31396 | ||
31397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_GetSnapToGrid",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31400 | { |
31401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31402 | result = (bool)(arg1)->GetSnapToGrid(); | |
31403 | ||
31404 | wxPyEndAllowThreads(__tstate); | |
31405 | if (PyErr_Occurred()) SWIG_fail; | |
31406 | } | |
fbc46b20 RD |
31407 | { |
31408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31409 | } | |
44127b65 RD |
31410 | return resultobj; |
31411 | fail: | |
31412 | return NULL; | |
31413 | } | |
31414 | ||
31415 | ||
c370783e | 31416 | static PyObject *_wrap_Diagram_InsertShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31417 | PyObject *resultobj; |
31418 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31419 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
31420 | PyObject * obj0 = 0 ; | |
31421 | PyObject * obj1 = 0 ; | |
31422 | char *kwnames[] = { | |
31423 | (char *) "self",(char *) "shape", NULL | |
31424 | }; | |
31425 | ||
31426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_InsertShape",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
31430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31431 | { |
31432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31433 | (arg1)->InsertShape(arg2); | |
31434 | ||
31435 | wxPyEndAllowThreads(__tstate); | |
31436 | if (PyErr_Occurred()) SWIG_fail; | |
31437 | } | |
31438 | Py_INCREF(Py_None); resultobj = Py_None; | |
31439 | return resultobj; | |
31440 | fail: | |
31441 | return NULL; | |
31442 | } | |
31443 | ||
31444 | ||
c370783e | 31445 | static PyObject *_wrap_Diagram_RecentreAll(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31446 | PyObject *resultobj; |
31447 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31448 | wxDC *arg2 = 0 ; | |
31449 | PyObject * obj0 = 0 ; | |
31450 | PyObject * obj1 = 0 ; | |
31451 | char *kwnames[] = { | |
31452 | (char *) "self",(char *) "dc", NULL | |
31453 | }; | |
31454 | ||
31455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_RecentreAll",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31458 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31459 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31460 | SWIG_fail; | |
44127b65 | 31461 | if (arg2 == NULL) { |
2f4c0a16 RD |
31462 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31463 | SWIG_fail; | |
44127b65 RD |
31464 | } |
31465 | { | |
31466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31467 | (arg1)->RecentreAll(*arg2); | |
31468 | ||
31469 | wxPyEndAllowThreads(__tstate); | |
31470 | if (PyErr_Occurred()) SWIG_fail; | |
31471 | } | |
31472 | Py_INCREF(Py_None); resultobj = Py_None; | |
31473 | return resultobj; | |
31474 | fail: | |
31475 | return NULL; | |
31476 | } | |
31477 | ||
31478 | ||
c370783e | 31479 | static PyObject *_wrap_Diagram_Redraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31480 | PyObject *resultobj; |
31481 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31482 | wxDC *arg2 = 0 ; | |
31483 | PyObject * obj0 = 0 ; | |
31484 | PyObject * obj1 = 0 ; | |
31485 | char *kwnames[] = { | |
31486 | (char *) "self",(char *) "dc", NULL | |
31487 | }; | |
31488 | ||
31489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_Redraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31492 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31493 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31494 | SWIG_fail; | |
44127b65 | 31495 | if (arg2 == NULL) { |
2f4c0a16 RD |
31496 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31497 | SWIG_fail; | |
44127b65 RD |
31498 | } |
31499 | { | |
31500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31501 | (arg1)->Redraw(*arg2); | |
31502 | ||
31503 | wxPyEndAllowThreads(__tstate); | |
31504 | if (PyErr_Occurred()) SWIG_fail; | |
31505 | } | |
31506 | Py_INCREF(Py_None); resultobj = Py_None; | |
31507 | return resultobj; | |
31508 | fail: | |
31509 | return NULL; | |
31510 | } | |
31511 | ||
31512 | ||
c370783e | 31513 | static PyObject *_wrap_Diagram_RemoveAllShapes(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31514 | PyObject *resultobj; |
31515 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31516 | PyObject * obj0 = 0 ; | |
31517 | char *kwnames[] = { | |
31518 | (char *) "self", NULL | |
31519 | }; | |
31520 | ||
31521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Diagram_RemoveAllShapes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31524 | { |
31525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31526 | (arg1)->RemoveAllShapes(); | |
31527 | ||
31528 | wxPyEndAllowThreads(__tstate); | |
31529 | if (PyErr_Occurred()) SWIG_fail; | |
31530 | } | |
31531 | Py_INCREF(Py_None); resultobj = Py_None; | |
31532 | return resultobj; | |
31533 | fail: | |
31534 | return NULL; | |
31535 | } | |
31536 | ||
31537 | ||
c370783e | 31538 | static PyObject *_wrap_Diagram_RemoveShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31539 | PyObject *resultobj; |
31540 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31541 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
31542 | PyObject * obj0 = 0 ; | |
31543 | PyObject * obj1 = 0 ; | |
31544 | char *kwnames[] = { | |
31545 | (char *) "self",(char *) "shape", NULL | |
31546 | }; | |
31547 | ||
31548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_RemoveShape",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
31552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31553 | { |
31554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31555 | (arg1)->RemoveShape(arg2); | |
31556 | ||
31557 | wxPyEndAllowThreads(__tstate); | |
31558 | if (PyErr_Occurred()) SWIG_fail; | |
31559 | } | |
31560 | Py_INCREF(Py_None); resultobj = Py_None; | |
31561 | return resultobj; | |
31562 | fail: | |
31563 | return NULL; | |
31564 | } | |
31565 | ||
31566 | ||
c370783e | 31567 | static PyObject *_wrap_Diagram_SetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31568 | PyObject *resultobj; |
31569 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31570 | wxPyShapeCanvas *arg2 = (wxPyShapeCanvas *) 0 ; | |
31571 | PyObject * obj0 = 0 ; | |
31572 | PyObject * obj1 = 0 ; | |
31573 | char *kwnames[] = { | |
31574 | (char *) "self",(char *) "canvas", NULL | |
31575 | }; | |
31576 | ||
31577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31580 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShapeCanvas, | |
31581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31582 | { |
31583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31584 | (arg1)->SetCanvas(arg2); | |
31585 | ||
31586 | wxPyEndAllowThreads(__tstate); | |
31587 | if (PyErr_Occurred()) SWIG_fail; | |
31588 | } | |
31589 | Py_INCREF(Py_None); resultobj = Py_None; | |
31590 | return resultobj; | |
31591 | fail: | |
31592 | return NULL; | |
31593 | } | |
31594 | ||
31595 | ||
c370783e | 31596 | static PyObject *_wrap_Diagram_SetGridSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31597 | PyObject *resultobj; |
31598 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31599 | double arg2 ; | |
31600 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31601 | PyObject * obj1 = 0 ; |
44127b65 RD |
31602 | char *kwnames[] = { |
31603 | (char *) "self",(char *) "spacing", NULL | |
31604 | }; | |
31605 | ||
8edf1c75 | 31606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetGridSpacing",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
31607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31609 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 31610 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
31611 | { |
31612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31613 | (arg1)->SetGridSpacing(arg2); | |
31614 | ||
31615 | wxPyEndAllowThreads(__tstate); | |
31616 | if (PyErr_Occurred()) SWIG_fail; | |
31617 | } | |
31618 | Py_INCREF(Py_None); resultobj = Py_None; | |
31619 | return resultobj; | |
31620 | fail: | |
31621 | return NULL; | |
31622 | } | |
31623 | ||
31624 | ||
c370783e | 31625 | static PyObject *_wrap_Diagram_SetMouseTolerance(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31626 | PyObject *resultobj; |
31627 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31628 | int arg2 ; | |
31629 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31630 | PyObject * obj1 = 0 ; |
44127b65 RD |
31631 | char *kwnames[] = { |
31632 | (char *) "self",(char *) "tolerance", NULL | |
31633 | }; | |
31634 | ||
8edf1c75 | 31635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetMouseTolerance",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
31636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31638 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 31639 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
31640 | { |
31641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31642 | (arg1)->SetMouseTolerance(arg2); | |
31643 | ||
31644 | wxPyEndAllowThreads(__tstate); | |
31645 | if (PyErr_Occurred()) SWIG_fail; | |
31646 | } | |
31647 | Py_INCREF(Py_None); resultobj = Py_None; | |
31648 | return resultobj; | |
31649 | fail: | |
31650 | return NULL; | |
31651 | } | |
31652 | ||
31653 | ||
c370783e | 31654 | static PyObject *_wrap_Diagram_SetQuickEditMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31655 | PyObject *resultobj; |
31656 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31657 | bool arg2 ; | |
31658 | PyObject * obj0 = 0 ; | |
31659 | PyObject * obj1 = 0 ; | |
31660 | char *kwnames[] = { | |
31661 | (char *) "self",(char *) "mode", NULL | |
31662 | }; | |
31663 | ||
31664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetQuickEditMode",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31667 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 31668 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
31669 | { |
31670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31671 | (arg1)->SetQuickEditMode(arg2); | |
31672 | ||
31673 | wxPyEndAllowThreads(__tstate); | |
31674 | if (PyErr_Occurred()) SWIG_fail; | |
31675 | } | |
31676 | Py_INCREF(Py_None); resultobj = Py_None; | |
31677 | return resultobj; | |
31678 | fail: | |
31679 | return NULL; | |
31680 | } | |
31681 | ||
31682 | ||
c370783e | 31683 | static PyObject *_wrap_Diagram_SetSnapToGrid(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31684 | PyObject *resultobj; |
31685 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31686 | bool arg2 ; | |
31687 | PyObject * obj0 = 0 ; | |
31688 | PyObject * obj1 = 0 ; | |
31689 | char *kwnames[] = { | |
31690 | (char *) "self",(char *) "snap", NULL | |
31691 | }; | |
31692 | ||
31693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_SetSnapToGrid",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31696 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 31697 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
31698 | { |
31699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31700 | (arg1)->SetSnapToGrid(arg2); | |
31701 | ||
31702 | wxPyEndAllowThreads(__tstate); | |
31703 | if (PyErr_Occurred()) SWIG_fail; | |
31704 | } | |
31705 | Py_INCREF(Py_None); resultobj = Py_None; | |
31706 | return resultobj; | |
31707 | fail: | |
31708 | return NULL; | |
31709 | } | |
31710 | ||
31711 | ||
c370783e | 31712 | static PyObject *_wrap_Diagram_ShowAll(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31713 | PyObject *resultobj; |
31714 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31715 | bool arg2 ; | |
31716 | PyObject * obj0 = 0 ; | |
31717 | PyObject * obj1 = 0 ; | |
31718 | char *kwnames[] = { | |
31719 | (char *) "self",(char *) "show", NULL | |
31720 | }; | |
31721 | ||
31722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Diagram_ShowAll",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31725 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 31726 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
31727 | { |
31728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31729 | (arg1)->ShowAll(arg2); | |
31730 | ||
31731 | wxPyEndAllowThreads(__tstate); | |
31732 | if (PyErr_Occurred()) SWIG_fail; | |
31733 | } | |
31734 | Py_INCREF(Py_None); resultobj = Py_None; | |
31735 | return resultobj; | |
31736 | fail: | |
31737 | return NULL; | |
31738 | } | |
31739 | ||
31740 | ||
c370783e | 31741 | static PyObject *_wrap_Diagram_Snap(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31742 | PyObject *resultobj; |
31743 | wxDiagram *arg1 = (wxDiagram *) 0 ; | |
31744 | double *arg2 = (double *) 0 ; | |
31745 | double *arg3 = (double *) 0 ; | |
31746 | double temp2 ; | |
c370783e | 31747 | int res2 = 0 ; |
44127b65 | 31748 | double temp3 ; |
c370783e | 31749 | int res3 = 0 ; |
44127b65 RD |
31750 | PyObject * obj0 = 0 ; |
31751 | PyObject * obj1 = 0 ; | |
31752 | PyObject * obj2 = 0 ; | |
31753 | char *kwnames[] = { | |
31754 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
31755 | }; | |
31756 | ||
31757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Diagram_Snap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
31758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDiagram, |
31759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 31760 | { |
c370783e RD |
31761 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_double,0) != -1)) { |
31762 | temp2 = SWIG_As_double(obj1); | |
31763 | if (PyErr_Occurred()) SWIG_fail; | |
31764 | arg2 = &temp2; | |
31765 | res2 = SWIG_NEWOBJ; | |
31766 | } | |
44127b65 RD |
31767 | } |
31768 | { | |
c370783e RD |
31769 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_double,0) != -1)) { |
31770 | temp3 = SWIG_As_double(obj2); | |
31771 | if (PyErr_Occurred()) SWIG_fail; | |
31772 | arg3 = &temp3; | |
31773 | res3 = SWIG_NEWOBJ; | |
31774 | } | |
44127b65 RD |
31775 | } |
31776 | { | |
31777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31778 | (arg1)->Snap(arg2,arg3); | |
31779 | ||
31780 | wxPyEndAllowThreads(__tstate); | |
31781 | if (PyErr_Occurred()) SWIG_fail; | |
31782 | } | |
31783 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
31784 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
31785 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
31786 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
31787 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
31788 | return resultobj; |
31789 | fail: | |
31790 | return NULL; | |
31791 | } | |
31792 | ||
31793 | ||
c370783e | 31794 | static PyObject * Diagram_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
31795 | PyObject *obj; |
31796 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31797 | SWIG_TypeClientData(SWIGTYPE_p_wxDiagram, obj); | |
31798 | Py_INCREF(obj); | |
31799 | return Py_BuildValue((char *)""); | |
31800 | } | |
c370783e | 31801 | static PyObject *_wrap_new_PyShapeCanvas(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31802 | PyObject *resultobj; |
31803 | wxWindow *arg1 = (wxWindow *) NULL ; | |
31804 | int arg2 = (int) -1 ; | |
31805 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
31806 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31807 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31808 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31809 | long arg5 = (long) wxBORDER ; | |
31810 | wxString const &arg6_defvalue = wxPyShapeCanvasNameStr ; | |
31811 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
31812 | wxPyShapeCanvas *result; | |
31813 | wxPoint temp3 ; | |
31814 | wxSize temp4 ; | |
31815 | bool temp6 = False ; | |
31816 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31817 | PyObject * obj1 = 0 ; |
44127b65 RD |
31818 | PyObject * obj2 = 0 ; |
31819 | PyObject * obj3 = 0 ; | |
8edf1c75 | 31820 | PyObject * obj4 = 0 ; |
44127b65 RD |
31821 | PyObject * obj5 = 0 ; |
31822 | char *kwnames[] = { | |
31823 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
31824 | }; | |
31825 | ||
8edf1c75 | 31826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_PyShapeCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
44127b65 | 31827 | if (obj0) { |
2f4c0a16 RD |
31828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
31829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 31830 | } |
8edf1c75 | 31831 | if (obj1) { |
c370783e | 31832 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 31833 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 31834 | } |
44127b65 RD |
31835 | if (obj2) { |
31836 | { | |
31837 | arg3 = &temp3; | |
31838 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31839 | } | |
31840 | } | |
31841 | if (obj3) { | |
31842 | { | |
31843 | arg4 = &temp4; | |
31844 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31845 | } | |
31846 | } | |
8edf1c75 | 31847 | if (obj4) { |
c370783e | 31848 | arg5 = (long)SWIG_As_long(obj4); |
2f4c0a16 | 31849 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 31850 | } |
44127b65 RD |
31851 | if (obj5) { |
31852 | { | |
31853 | arg6 = wxString_in_helper(obj5); | |
31854 | if (arg6 == NULL) SWIG_fail; | |
31855 | temp6 = True; | |
31856 | } | |
31857 | } | |
31858 | { | |
0439c23b | 31859 | if (!wxPyCheckForApp()) SWIG_fail; |
44127b65 RD |
31860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31861 | result = (wxPyShapeCanvas *)new wxPyShapeCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
31862 | ||
31863 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31864 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 31865 | } |
b0f7404b | 31866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyShapeCanvas, 1); |
44127b65 RD |
31867 | { |
31868 | if (temp6) | |
31869 | delete arg6; | |
31870 | } | |
31871 | return resultobj; | |
31872 | fail: | |
31873 | { | |
31874 | if (temp6) | |
31875 | delete arg6; | |
31876 | } | |
31877 | return NULL; | |
31878 | } | |
31879 | ||
31880 | ||
c370783e | 31881 | static PyObject *_wrap_PyShapeCanvas__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31882 | PyObject *resultobj; |
31883 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
31884 | PyObject *arg2 = (PyObject *) 0 ; | |
31885 | PyObject *arg3 = (PyObject *) 0 ; | |
31886 | PyObject * obj0 = 0 ; | |
31887 | PyObject * obj1 = 0 ; | |
31888 | PyObject * obj2 = 0 ; | |
31889 | char *kwnames[] = { | |
31890 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31891 | }; | |
31892 | ||
31893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeCanvas__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
31894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
31895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31896 | arg2 = obj1; |
31897 | arg3 = obj2; | |
31898 | { | |
31899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31900 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31901 | ||
31902 | wxPyEndAllowThreads(__tstate); | |
31903 | if (PyErr_Occurred()) SWIG_fail; | |
31904 | } | |
31905 | Py_INCREF(Py_None); resultobj = Py_None; | |
31906 | return resultobj; | |
31907 | fail: | |
31908 | return NULL; | |
31909 | } | |
31910 | ||
31911 | ||
c370783e | 31912 | static PyObject *_wrap_PyShapeCanvas_AddShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31913 | PyObject *resultobj; |
31914 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
31915 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
31916 | wxPyShape *arg3 = (wxPyShape *) NULL ; | |
31917 | PyObject * obj0 = 0 ; | |
31918 | PyObject * obj1 = 0 ; | |
31919 | PyObject * obj2 = 0 ; | |
31920 | char *kwnames[] = { | |
31921 | (char *) "self",(char *) "shape",(char *) "addAfter", NULL | |
31922 | }; | |
31923 | ||
31924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyShapeCanvas_AddShape",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
31925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
31926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
31928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 31929 | if (obj2) { |
2f4c0a16 RD |
31930 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyShape, |
31931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31932 | } |
31933 | { | |
31934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31935 | (arg1)->AddShape(arg2,arg3); | |
31936 | ||
31937 | wxPyEndAllowThreads(__tstate); | |
31938 | if (PyErr_Occurred()) SWIG_fail; | |
31939 | } | |
31940 | Py_INCREF(Py_None); resultobj = Py_None; | |
31941 | return resultobj; | |
31942 | fail: | |
31943 | return NULL; | |
31944 | } | |
31945 | ||
31946 | ||
c370783e | 31947 | static PyObject *_wrap_PyShapeCanvas_FindShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
31948 | PyObject *resultobj; |
31949 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
31950 | double arg2 ; | |
31951 | double arg3 ; | |
31952 | int *arg4 = (int *) 0 ; | |
31953 | wxClassInfo *arg5 = (wxClassInfo *) NULL ; | |
31954 | wxPyShape *arg6 = (wxPyShape *) NULL ; | |
31955 | wxPyShape *result; | |
31956 | int temp4 ; | |
c370783e | 31957 | int res4 = 0 ; |
44127b65 | 31958 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
31959 | PyObject * obj1 = 0 ; |
31960 | PyObject * obj2 = 0 ; | |
44127b65 RD |
31961 | PyObject * obj3 = 0 ; |
31962 | PyObject * obj4 = 0 ; | |
31963 | char *kwnames[] = { | |
31964 | (char *) "self",(char *) "x1",(char *) "y",(char *) "info",(char *) "notImage", NULL | |
31965 | }; | |
31966 | ||
c370783e | 31967 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
8edf1c75 | 31968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PyShapeCanvas_FindShape",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
31969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
31970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31971 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 31972 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31973 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 31974 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 | 31975 | if (obj3) { |
2f4c0a16 RD |
31976 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxClassInfo, |
31977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31978 | } |
31979 | if (obj4) { | |
2f4c0a16 RD |
31980 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg6),SWIGTYPE_p_wxPyShape, |
31981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
31982 | } |
31983 | { | |
31984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31985 | result = (wxPyShape *)(arg1)->FindShape(arg2,arg3,arg4,arg5,arg6); | |
31986 | ||
31987 | wxPyEndAllowThreads(__tstate); | |
31988 | if (PyErr_Occurred()) SWIG_fail; | |
31989 | } | |
31990 | { | |
412d302d | 31991 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 | 31992 | } |
c370783e RD |
31993 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
31994 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
44127b65 RD |
31995 | return resultobj; |
31996 | fail: | |
31997 | return NULL; | |
31998 | } | |
31999 | ||
32000 | ||
c370783e | 32001 | static PyObject *_wrap_PyShapeCanvas_FindFirstSensitiveShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32002 | PyObject *resultobj; |
32003 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32004 | double arg2 ; | |
32005 | double arg3 ; | |
32006 | int *arg4 = (int *) 0 ; | |
32007 | int arg5 ; | |
32008 | wxPyShape *result; | |
32009 | int temp4 ; | |
c370783e | 32010 | int res4 = 0 ; |
44127b65 | 32011 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
32012 | PyObject * obj1 = 0 ; |
32013 | PyObject * obj2 = 0 ; | |
32014 | PyObject * obj3 = 0 ; | |
44127b65 RD |
32015 | char *kwnames[] = { |
32016 | (char *) "self",(char *) "x1",(char *) "y",(char *) "op", NULL | |
32017 | }; | |
32018 | ||
c370783e | 32019 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
8edf1c75 | 32020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyShapeCanvas_FindFirstSensitiveShape",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32023 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 32024 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32025 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 32026 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32027 | arg5 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 32028 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
32029 | { |
32030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32031 | result = (wxPyShape *)(arg1)->FindFirstSensitiveShape(arg2,arg3,arg4,arg5); | |
32032 | ||
32033 | wxPyEndAllowThreads(__tstate); | |
32034 | if (PyErr_Occurred()) SWIG_fail; | |
32035 | } | |
32036 | { | |
412d302d | 32037 | resultobj = wxPyMake_wxShapeEvtHandler(result, 0); |
44127b65 | 32038 | } |
c370783e RD |
32039 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
32040 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
44127b65 RD |
32041 | return resultobj; |
32042 | fail: | |
32043 | return NULL; | |
32044 | } | |
32045 | ||
32046 | ||
c370783e | 32047 | static PyObject *_wrap_PyShapeCanvas_GetDiagram(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32048 | PyObject *resultobj; |
32049 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32050 | wxDiagram *result; | |
32051 | PyObject * obj0 = 0 ; | |
32052 | char *kwnames[] = { | |
32053 | (char *) "self", NULL | |
32054 | }; | |
32055 | ||
32056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeCanvas_GetDiagram",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
32059 | { |
32060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32061 | result = (wxDiagram *)(arg1)->GetDiagram(); | |
32062 | ||
32063 | wxPyEndAllowThreads(__tstate); | |
32064 | if (PyErr_Occurred()) SWIG_fail; | |
32065 | } | |
32066 | { | |
412d302d | 32067 | resultobj = wxPyMake_wxObject(result, 0); |
44127b65 RD |
32068 | } |
32069 | return resultobj; | |
32070 | fail: | |
32071 | return NULL; | |
32072 | } | |
32073 | ||
32074 | ||
c370783e | 32075 | static PyObject *_wrap_PyShapeCanvas_GetQuickEditMode(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32076 | PyObject *resultobj; |
32077 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32078 | bool result; | |
32079 | PyObject * obj0 = 0 ; | |
32080 | char *kwnames[] = { | |
32081 | (char *) "self", NULL | |
32082 | }; | |
32083 | ||
32084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyShapeCanvas_GetQuickEditMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
32087 | { |
32088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32089 | result = (bool)(arg1)->GetQuickEditMode(); | |
32090 | ||
32091 | wxPyEndAllowThreads(__tstate); | |
32092 | if (PyErr_Occurred()) SWIG_fail; | |
32093 | } | |
fbc46b20 RD |
32094 | { |
32095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32096 | } | |
44127b65 RD |
32097 | return resultobj; |
32098 | fail: | |
32099 | return NULL; | |
32100 | } | |
32101 | ||
32102 | ||
c370783e | 32103 | static PyObject *_wrap_PyShapeCanvas_InsertShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32104 | PyObject *resultobj; |
32105 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32106 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
32107 | PyObject * obj0 = 0 ; | |
32108 | PyObject * obj1 = 0 ; | |
32109 | char *kwnames[] = { | |
32110 | (char *) "self",(char *) "shape", NULL | |
32111 | }; | |
32112 | ||
32113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_InsertShape",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32116 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
32117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
32118 | { |
32119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32120 | (arg1)->InsertShape(arg2); | |
32121 | ||
32122 | wxPyEndAllowThreads(__tstate); | |
32123 | if (PyErr_Occurred()) SWIG_fail; | |
32124 | } | |
32125 | Py_INCREF(Py_None); resultobj = Py_None; | |
32126 | return resultobj; | |
32127 | fail: | |
32128 | return NULL; | |
32129 | } | |
32130 | ||
32131 | ||
c370783e | 32132 | static PyObject *_wrap_PyShapeCanvas_base_OnBeginDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32133 | PyObject *resultobj; |
32134 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32135 | double arg2 ; | |
32136 | double arg3 ; | |
32137 | int arg4 = (int) 0 ; | |
32138 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32139 | PyObject * obj1 = 0 ; |
32140 | PyObject * obj2 = 0 ; | |
32141 | PyObject * obj3 = 0 ; | |
44127b65 RD |
32142 | char *kwnames[] = { |
32143 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32144 | }; | |
32145 | ||
8edf1c75 | 32146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnBeginDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32149 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 32150 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32151 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 32152 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32153 | if (obj3) { |
c370783e | 32154 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 32155 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32156 | } |
44127b65 RD |
32157 | { |
32158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32159 | (arg1)->base_OnBeginDragLeft(arg2,arg3,arg4); | |
32160 | ||
32161 | wxPyEndAllowThreads(__tstate); | |
32162 | if (PyErr_Occurred()) SWIG_fail; | |
32163 | } | |
32164 | Py_INCREF(Py_None); resultobj = Py_None; | |
32165 | return resultobj; | |
32166 | fail: | |
32167 | return NULL; | |
32168 | } | |
32169 | ||
32170 | ||
c370783e | 32171 | static PyObject *_wrap_PyShapeCanvas_base_OnBeginDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32172 | PyObject *resultobj; |
32173 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32174 | double arg2 ; | |
32175 | double arg3 ; | |
32176 | int arg4 = (int) 0 ; | |
32177 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32178 | PyObject * obj1 = 0 ; |
32179 | PyObject * obj2 = 0 ; | |
32180 | PyObject * obj3 = 0 ; | |
44127b65 RD |
32181 | char *kwnames[] = { |
32182 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32183 | }; | |
32184 | ||
8edf1c75 | 32185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnBeginDragRight",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32188 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 32189 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32190 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 32191 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32192 | if (obj3) { |
c370783e | 32193 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 32194 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32195 | } |
44127b65 RD |
32196 | { |
32197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32198 | (arg1)->base_OnBeginDragRight(arg2,arg3,arg4); | |
32199 | ||
32200 | wxPyEndAllowThreads(__tstate); | |
32201 | if (PyErr_Occurred()) SWIG_fail; | |
32202 | } | |
32203 | Py_INCREF(Py_None); resultobj = Py_None; | |
32204 | return resultobj; | |
32205 | fail: | |
32206 | return NULL; | |
32207 | } | |
32208 | ||
32209 | ||
c370783e | 32210 | static PyObject *_wrap_PyShapeCanvas_base_OnEndDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32211 | PyObject *resultobj; |
32212 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32213 | double arg2 ; | |
32214 | double arg3 ; | |
32215 | int arg4 = (int) 0 ; | |
32216 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32217 | PyObject * obj1 = 0 ; |
32218 | PyObject * obj2 = 0 ; | |
32219 | PyObject * obj3 = 0 ; | |
44127b65 RD |
32220 | char *kwnames[] = { |
32221 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32222 | }; | |
32223 | ||
8edf1c75 | 32224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnEndDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32227 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 32228 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32229 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 32230 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32231 | if (obj3) { |
c370783e | 32232 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 32233 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32234 | } |
44127b65 RD |
32235 | { |
32236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32237 | (arg1)->base_OnEndDragLeft(arg2,arg3,arg4); | |
32238 | ||
32239 | wxPyEndAllowThreads(__tstate); | |
32240 | if (PyErr_Occurred()) SWIG_fail; | |
32241 | } | |
32242 | Py_INCREF(Py_None); resultobj = Py_None; | |
32243 | return resultobj; | |
32244 | fail: | |
32245 | return NULL; | |
32246 | } | |
32247 | ||
32248 | ||
c370783e | 32249 | static PyObject *_wrap_PyShapeCanvas_base_OnEndDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32250 | PyObject *resultobj; |
32251 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32252 | double arg2 ; | |
32253 | double arg3 ; | |
32254 | int arg4 = (int) 0 ; | |
32255 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32256 | PyObject * obj1 = 0 ; |
32257 | PyObject * obj2 = 0 ; | |
32258 | PyObject * obj3 = 0 ; | |
44127b65 RD |
32259 | char *kwnames[] = { |
32260 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32261 | }; | |
32262 | ||
8edf1c75 | 32263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnEndDragRight",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32266 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 32267 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32268 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 32269 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32270 | if (obj3) { |
c370783e | 32271 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 32272 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32273 | } |
44127b65 RD |
32274 | { |
32275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32276 | (arg1)->base_OnEndDragRight(arg2,arg3,arg4); | |
32277 | ||
32278 | wxPyEndAllowThreads(__tstate); | |
32279 | if (PyErr_Occurred()) SWIG_fail; | |
32280 | } | |
32281 | Py_INCREF(Py_None); resultobj = Py_None; | |
32282 | return resultobj; | |
32283 | fail: | |
32284 | return NULL; | |
32285 | } | |
32286 | ||
32287 | ||
c370783e | 32288 | static PyObject *_wrap_PyShapeCanvas_base_OnDragLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32289 | PyObject *resultobj; |
32290 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32291 | bool arg2 ; | |
32292 | double arg3 ; | |
32293 | double arg4 ; | |
32294 | int arg5 = (int) 0 ; | |
32295 | PyObject * obj0 = 0 ; | |
32296 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
32297 | PyObject * obj2 = 0 ; |
32298 | PyObject * obj3 = 0 ; | |
32299 | PyObject * obj4 = 0 ; | |
44127b65 RD |
32300 | char *kwnames[] = { |
32301 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32302 | }; | |
32303 | ||
8edf1c75 | 32304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyShapeCanvas_base_OnDragLeft",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
32305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32307 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 32308 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32309 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 32310 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32311 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 32312 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32313 | if (obj4) { |
c370783e | 32314 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 32315 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32316 | } |
44127b65 RD |
32317 | { |
32318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32319 | (arg1)->base_OnDragLeft(arg2,arg3,arg4,arg5); | |
32320 | ||
32321 | wxPyEndAllowThreads(__tstate); | |
32322 | if (PyErr_Occurred()) SWIG_fail; | |
32323 | } | |
32324 | Py_INCREF(Py_None); resultobj = Py_None; | |
32325 | return resultobj; | |
32326 | fail: | |
32327 | return NULL; | |
32328 | } | |
32329 | ||
32330 | ||
c370783e | 32331 | static PyObject *_wrap_PyShapeCanvas_base_OnDragRight(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32332 | PyObject *resultobj; |
32333 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32334 | bool arg2 ; | |
32335 | double arg3 ; | |
32336 | double arg4 ; | |
32337 | int arg5 = (int) 0 ; | |
32338 | PyObject * obj0 = 0 ; | |
32339 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
32340 | PyObject * obj2 = 0 ; |
32341 | PyObject * obj3 = 0 ; | |
32342 | PyObject * obj4 = 0 ; | |
44127b65 RD |
32343 | char *kwnames[] = { |
32344 | (char *) "self",(char *) "draw",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32345 | }; | |
32346 | ||
8edf1c75 | 32347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyShapeCanvas_base_OnDragRight",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
32348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32350 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 32351 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32352 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 32353 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32354 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 32355 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32356 | if (obj4) { |
c370783e | 32357 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 32358 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32359 | } |
44127b65 RD |
32360 | { |
32361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32362 | (arg1)->base_OnDragRight(arg2,arg3,arg4,arg5); | |
32363 | ||
32364 | wxPyEndAllowThreads(__tstate); | |
32365 | if (PyErr_Occurred()) SWIG_fail; | |
32366 | } | |
32367 | Py_INCREF(Py_None); resultobj = Py_None; | |
32368 | return resultobj; | |
32369 | fail: | |
32370 | return NULL; | |
32371 | } | |
32372 | ||
32373 | ||
c370783e | 32374 | static PyObject *_wrap_PyShapeCanvas_base_OnLeftClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32375 | PyObject *resultobj; |
32376 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32377 | double arg2 ; | |
32378 | double arg3 ; | |
32379 | int arg4 = (int) 0 ; | |
32380 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32381 | PyObject * obj1 = 0 ; |
32382 | PyObject * obj2 = 0 ; | |
32383 | PyObject * obj3 = 0 ; | |
44127b65 RD |
32384 | char *kwnames[] = { |
32385 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32386 | }; | |
32387 | ||
8edf1c75 | 32388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnLeftClick",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32391 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 32392 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32393 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 32394 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32395 | if (obj3) { |
c370783e | 32396 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 32397 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32398 | } |
44127b65 RD |
32399 | { |
32400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32401 | (arg1)->base_OnLeftClick(arg2,arg3,arg4); | |
32402 | ||
32403 | wxPyEndAllowThreads(__tstate); | |
32404 | if (PyErr_Occurred()) SWIG_fail; | |
32405 | } | |
32406 | Py_INCREF(Py_None); resultobj = Py_None; | |
32407 | return resultobj; | |
32408 | fail: | |
32409 | return NULL; | |
32410 | } | |
32411 | ||
32412 | ||
c370783e | 32413 | static PyObject *_wrap_PyShapeCanvas_base_OnRightClick(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32414 | PyObject *resultobj; |
32415 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32416 | double arg2 ; | |
32417 | double arg3 ; | |
32418 | int arg4 = (int) 0 ; | |
32419 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32420 | PyObject * obj1 = 0 ; |
32421 | PyObject * obj2 = 0 ; | |
32422 | PyObject * obj3 = 0 ; | |
44127b65 RD |
32423 | char *kwnames[] = { |
32424 | (char *) "self",(char *) "x",(char *) "y",(char *) "keys", NULL | |
32425 | }; | |
32426 | ||
8edf1c75 | 32427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyShapeCanvas_base_OnRightClick",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32430 | arg2 = (double)SWIG_As_double(obj1); |
2f4c0a16 | 32431 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32432 | arg3 = (double)SWIG_As_double(obj2); |
2f4c0a16 | 32433 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32434 | if (obj3) { |
c370783e | 32435 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 32436 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 32437 | } |
44127b65 RD |
32438 | { |
32439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32440 | (arg1)->base_OnRightClick(arg2,arg3,arg4); | |
32441 | ||
32442 | wxPyEndAllowThreads(__tstate); | |
32443 | if (PyErr_Occurred()) SWIG_fail; | |
32444 | } | |
32445 | Py_INCREF(Py_None); resultobj = Py_None; | |
32446 | return resultobj; | |
32447 | fail: | |
32448 | return NULL; | |
32449 | } | |
32450 | ||
32451 | ||
c370783e | 32452 | static PyObject *_wrap_PyShapeCanvas_Redraw(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32453 | PyObject *resultobj; |
32454 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32455 | wxDC *arg2 = 0 ; | |
32456 | PyObject * obj0 = 0 ; | |
32457 | PyObject * obj1 = 0 ; | |
32458 | char *kwnames[] = { | |
32459 | (char *) "self",(char *) "dc", NULL | |
32460 | }; | |
32461 | ||
32462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_Redraw",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
32466 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32467 | SWIG_fail; | |
44127b65 | 32468 | if (arg2 == NULL) { |
2f4c0a16 RD |
32469 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32470 | SWIG_fail; | |
44127b65 RD |
32471 | } |
32472 | { | |
32473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32474 | (arg1)->Redraw(*arg2); | |
32475 | ||
32476 | wxPyEndAllowThreads(__tstate); | |
32477 | if (PyErr_Occurred()) SWIG_fail; | |
32478 | } | |
32479 | Py_INCREF(Py_None); resultobj = Py_None; | |
32480 | return resultobj; | |
32481 | fail: | |
32482 | return NULL; | |
32483 | } | |
32484 | ||
32485 | ||
c370783e | 32486 | static PyObject *_wrap_PyShapeCanvas_RemoveShape(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32487 | PyObject *resultobj; |
32488 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32489 | wxPyShape *arg2 = (wxPyShape *) 0 ; | |
32490 | PyObject * obj0 = 0 ; | |
32491 | PyObject * obj1 = 0 ; | |
32492 | char *kwnames[] = { | |
32493 | (char *) "self",(char *) "shape", NULL | |
32494 | }; | |
32495 | ||
32496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_RemoveShape",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyShape, | |
32500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
32501 | { |
32502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32503 | (arg1)->RemoveShape(arg2); | |
32504 | ||
32505 | wxPyEndAllowThreads(__tstate); | |
32506 | if (PyErr_Occurred()) SWIG_fail; | |
32507 | } | |
32508 | Py_INCREF(Py_None); resultobj = Py_None; | |
32509 | return resultobj; | |
32510 | fail: | |
32511 | return NULL; | |
32512 | } | |
32513 | ||
32514 | ||
c370783e | 32515 | static PyObject *_wrap_PyShapeCanvas_SetDiagram(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32516 | PyObject *resultobj; |
32517 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32518 | wxDiagram *arg2 = (wxDiagram *) 0 ; | |
32519 | PyObject * obj0 = 0 ; | |
32520 | PyObject * obj1 = 0 ; | |
32521 | char *kwnames[] = { | |
32522 | (char *) "self",(char *) "diagram", NULL | |
32523 | }; | |
32524 | ||
32525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyShapeCanvas_SetDiagram",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32528 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDiagram, | |
32529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
32530 | { |
32531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32532 | (arg1)->SetDiagram(arg2); | |
32533 | ||
32534 | wxPyEndAllowThreads(__tstate); | |
32535 | if (PyErr_Occurred()) SWIG_fail; | |
32536 | } | |
32537 | Py_INCREF(Py_None); resultobj = Py_None; | |
32538 | return resultobj; | |
32539 | fail: | |
32540 | return NULL; | |
32541 | } | |
32542 | ||
32543 | ||
c370783e | 32544 | static PyObject *_wrap_PyShapeCanvas_Snap(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32545 | PyObject *resultobj; |
32546 | wxPyShapeCanvas *arg1 = (wxPyShapeCanvas *) 0 ; | |
32547 | double *arg2 = (double *) 0 ; | |
32548 | double *arg3 = (double *) 0 ; | |
32549 | double temp2 ; | |
c370783e | 32550 | int res2 = 0 ; |
44127b65 | 32551 | double temp3 ; |
c370783e | 32552 | int res3 = 0 ; |
44127b65 RD |
32553 | PyObject * obj0 = 0 ; |
32554 | PyObject * obj1 = 0 ; | |
32555 | PyObject * obj2 = 0 ; | |
32556 | char *kwnames[] = { | |
32557 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
32558 | }; | |
32559 | ||
32560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyShapeCanvas_Snap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
32561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyShapeCanvas, |
32562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 | 32563 | { |
c370783e RD |
32564 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_double,0) != -1)) { |
32565 | temp2 = SWIG_As_double(obj1); | |
32566 | if (PyErr_Occurred()) SWIG_fail; | |
32567 | arg2 = &temp2; | |
32568 | res2 = SWIG_NEWOBJ; | |
32569 | } | |
44127b65 RD |
32570 | } |
32571 | { | |
c370783e RD |
32572 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_double,0) != -1)) { |
32573 | temp3 = SWIG_As_double(obj2); | |
32574 | if (PyErr_Occurred()) SWIG_fail; | |
32575 | arg3 = &temp3; | |
32576 | res3 = SWIG_NEWOBJ; | |
32577 | } | |
44127b65 RD |
32578 | } |
32579 | { | |
32580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32581 | (arg1)->Snap(arg2,arg3); | |
32582 | ||
32583 | wxPyEndAllowThreads(__tstate); | |
32584 | if (PyErr_Occurred()) SWIG_fail; | |
32585 | } | |
32586 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
32587 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32588 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
32589 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32590 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
44127b65 RD |
32591 | return resultobj; |
32592 | fail: | |
32593 | return NULL; | |
32594 | } | |
32595 | ||
32596 | ||
c370783e | 32597 | static PyObject * PyShapeCanvas_swigregister(PyObject *, PyObject *args) { |
44127b65 RD |
32598 | PyObject *obj; |
32599 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32600 | SWIG_TypeClientData(SWIGTYPE_p_wxPyShapeCanvas, obj); | |
32601 | Py_INCREF(obj); | |
32602 | return Py_BuildValue((char *)""); | |
32603 | } | |
c370783e | 32604 | static PyObject *_wrap_OGLInitialize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32605 | PyObject *resultobj; |
32606 | char *kwnames[] = { | |
32607 | NULL | |
32608 | }; | |
32609 | ||
32610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":OGLInitialize",kwnames)) goto fail; | |
32611 | { | |
0439c23b | 32612 | if (!wxPyCheckForApp()) SWIG_fail; |
44127b65 RD |
32613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32614 | wxOGLInitialize(); | |
32615 | ||
32616 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32617 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
32618 | } |
32619 | Py_INCREF(Py_None); resultobj = Py_None; | |
32620 | return resultobj; | |
32621 | fail: | |
32622 | return NULL; | |
32623 | } | |
32624 | ||
32625 | ||
c370783e | 32626 | static PyObject *_wrap_OGLCleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
32627 | PyObject *resultobj; |
32628 | char *kwnames[] = { | |
32629 | NULL | |
32630 | }; | |
32631 | ||
32632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":OGLCleanUp",kwnames)) goto fail; | |
32633 | { | |
0439c23b | 32634 | if (!wxPyCheckForApp()) SWIG_fail; |
44127b65 RD |
32635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32636 | wxOGLCleanUp(); | |
32637 | ||
32638 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32639 | if (PyErr_Occurred()) SWIG_fail; |
44127b65 RD |
32640 | } |
32641 | Py_INCREF(Py_None); resultobj = Py_None; | |
32642 | return resultobj; | |
32643 | fail: | |
32644 | return NULL; | |
32645 | } | |
32646 | ||
32647 | ||
32648 | static PyMethodDef SwigMethods[] = { | |
c370783e RD |
32649 | { (char *)"new_ShapeRegion", (PyCFunction) _wrap_new_ShapeRegion, METH_VARARGS | METH_KEYWORDS, NULL }, |
32650 | { (char *)"ShapeRegion_SetText", (PyCFunction) _wrap_ShapeRegion_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32651 | { (char *)"ShapeRegion_SetFont", (PyCFunction) _wrap_ShapeRegion_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32652 | { (char *)"ShapeRegion_SetMinSize", (PyCFunction) _wrap_ShapeRegion_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32653 | { (char *)"ShapeRegion_SetSize", (PyCFunction) _wrap_ShapeRegion_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32654 | { (char *)"ShapeRegion_SetPosition", (PyCFunction) _wrap_ShapeRegion_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32655 | { (char *)"ShapeRegion_SetProportions", (PyCFunction) _wrap_ShapeRegion_SetProportions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32656 | { (char *)"ShapeRegion_SetFormatMode", (PyCFunction) _wrap_ShapeRegion_SetFormatMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32657 | { (char *)"ShapeRegion_SetName", (PyCFunction) _wrap_ShapeRegion_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32658 | { (char *)"ShapeRegion_SetColour", (PyCFunction) _wrap_ShapeRegion_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32659 | { (char *)"ShapeRegion_GetText", (PyCFunction) _wrap_ShapeRegion_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32660 | { (char *)"ShapeRegion_GetFont", (PyCFunction) _wrap_ShapeRegion_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32661 | { (char *)"ShapeRegion_GetMinSize", (PyCFunction) _wrap_ShapeRegion_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32662 | { (char *)"ShapeRegion_GetProportion", (PyCFunction) _wrap_ShapeRegion_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32663 | { (char *)"ShapeRegion_GetSize", (PyCFunction) _wrap_ShapeRegion_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32664 | { (char *)"ShapeRegion_GetPosition", (PyCFunction) _wrap_ShapeRegion_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32665 | { (char *)"ShapeRegion_GetFormatMode", (PyCFunction) _wrap_ShapeRegion_GetFormatMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32666 | { (char *)"ShapeRegion_GetName", (PyCFunction) _wrap_ShapeRegion_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32667 | { (char *)"ShapeRegion_GetColour", (PyCFunction) _wrap_ShapeRegion_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32668 | { (char *)"ShapeRegion_GetActualColourObject", (PyCFunction) _wrap_ShapeRegion_GetActualColourObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32669 | { (char *)"ShapeRegion_GetFormattedText", (PyCFunction) _wrap_ShapeRegion_GetFormattedText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32670 | { (char *)"ShapeRegion_GetPenColour", (PyCFunction) _wrap_ShapeRegion_GetPenColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32671 | { (char *)"ShapeRegion_GetPenStyle", (PyCFunction) _wrap_ShapeRegion_GetPenStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32672 | { (char *)"ShapeRegion_SetPenStyle", (PyCFunction) _wrap_ShapeRegion_SetPenStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32673 | { (char *)"ShapeRegion_SetPenColour", (PyCFunction) _wrap_ShapeRegion_SetPenColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32674 | { (char *)"ShapeRegion_GetActualPen", (PyCFunction) _wrap_ShapeRegion_GetActualPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32675 | { (char *)"ShapeRegion_GetWidth", (PyCFunction) _wrap_ShapeRegion_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32676 | { (char *)"ShapeRegion_GetHeight", (PyCFunction) _wrap_ShapeRegion_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32677 | { (char *)"ShapeRegion_ClearText", (PyCFunction) _wrap_ShapeRegion_ClearText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32678 | { (char *)"ShapeRegion_swigregister", ShapeRegion_swigregister, METH_VARARGS, NULL }, | |
32679 | { (char *)"new_AttachmentPoint", (PyCFunction) _wrap_new_AttachmentPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32680 | { (char *)"AttachmentPoint_m_id_set", (PyCFunction) _wrap_AttachmentPoint_m_id_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32681 | { (char *)"AttachmentPoint_m_id_get", (PyCFunction) _wrap_AttachmentPoint_m_id_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32682 | { (char *)"AttachmentPoint_m_x_set", (PyCFunction) _wrap_AttachmentPoint_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32683 | { (char *)"AttachmentPoint_m_x_get", (PyCFunction) _wrap_AttachmentPoint_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32684 | { (char *)"AttachmentPoint_m_y_set", (PyCFunction) _wrap_AttachmentPoint_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32685 | { (char *)"AttachmentPoint_m_y_get", (PyCFunction) _wrap_AttachmentPoint_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32686 | { (char *)"AttachmentPoint_swigregister", AttachmentPoint_swigregister, METH_VARARGS, NULL }, | |
32687 | { (char *)"new_PyShapeEvtHandler", (PyCFunction) _wrap_new_PyShapeEvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32688 | { (char *)"PyShapeEvtHandler__setCallbackInfo", (PyCFunction) _wrap_PyShapeEvtHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32689 | { (char *)"PyShapeEvtHandler__setOORInfo", (PyCFunction) _wrap_PyShapeEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32690 | { (char *)"PyShapeEvtHandler_SetShape", (PyCFunction) _wrap_PyShapeEvtHandler_SetShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32691 | { (char *)"PyShapeEvtHandler_GetShape", (PyCFunction) _wrap_PyShapeEvtHandler_GetShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32692 | { (char *)"PyShapeEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_PyShapeEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32693 | { (char *)"PyShapeEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_PyShapeEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32694 | { (char *)"PyShapeEvtHandler_CreateNewCopy", (PyCFunction) _wrap_PyShapeEvtHandler_CreateNewCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32695 | { (char *)"PyShapeEvtHandler_base_OnDelete", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32696 | { (char *)"PyShapeEvtHandler_base_OnDraw", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32697 | { (char *)"PyShapeEvtHandler_base_OnDrawContents", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32698 | { (char *)"PyShapeEvtHandler_base_OnDrawBranches", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32699 | { (char *)"PyShapeEvtHandler_base_OnMoveLinks", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32700 | { (char *)"PyShapeEvtHandler_base_OnErase", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32701 | { (char *)"PyShapeEvtHandler_base_OnEraseContents", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32702 | { (char *)"PyShapeEvtHandler_base_OnHighlight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32703 | { (char *)"PyShapeEvtHandler_base_OnLeftClick", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32704 | { (char *)"PyShapeEvtHandler_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32705 | { (char *)"PyShapeEvtHandler_base_OnRightClick", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32706 | { (char *)"PyShapeEvtHandler_base_OnSize", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32707 | { (char *)"PyShapeEvtHandler_base_OnMovePre", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32708 | { (char *)"PyShapeEvtHandler_base_OnMovePost", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32709 | { (char *)"PyShapeEvtHandler_base_OnDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32710 | { (char *)"PyShapeEvtHandler_base_OnBeginDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32711 | { (char *)"PyShapeEvtHandler_base_OnEndDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32712 | { (char *)"PyShapeEvtHandler_base_OnDragRight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32713 | { (char *)"PyShapeEvtHandler_base_OnBeginDragRight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32714 | { (char *)"PyShapeEvtHandler_base_OnEndDragRight", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32715 | { (char *)"PyShapeEvtHandler_base_OnDrawOutline", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32716 | { (char *)"PyShapeEvtHandler_base_OnDrawControlPoints", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32717 | { (char *)"PyShapeEvtHandler_base_OnEraseControlPoints", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32718 | { (char *)"PyShapeEvtHandler_base_OnMoveLink", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32719 | { (char *)"PyShapeEvtHandler_base_OnSizingDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32720 | { (char *)"PyShapeEvtHandler_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32721 | { (char *)"PyShapeEvtHandler_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32722 | { (char *)"PyShapeEvtHandler_base_OnBeginSize", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32723 | { (char *)"PyShapeEvtHandler_base_OnEndSize", (PyCFunction) _wrap_PyShapeEvtHandler_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32724 | { (char *)"PyShapeEvtHandler_swigregister", PyShapeEvtHandler_swigregister, METH_VARARGS, NULL }, | |
32725 | { (char *)"new_PyShape", (PyCFunction) _wrap_new_PyShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32726 | { (char *)"PyShape__setCallbackInfo", (PyCFunction) _wrap_PyShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32727 | { (char *)"PyShape_GetBoundingBoxMax", (PyCFunction) _wrap_PyShape_GetBoundingBoxMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32728 | { (char *)"PyShape_GetBoundingBoxMin", (PyCFunction) _wrap_PyShape_GetBoundingBoxMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32729 | { (char *)"PyShape_GetPerimeterPoint", (PyCFunction) _wrap_PyShape_GetPerimeterPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32730 | { (char *)"PyShape_GetCanvas", (PyCFunction) _wrap_PyShape_GetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32731 | { (char *)"PyShape_SetCanvas", (PyCFunction) _wrap_PyShape_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32732 | { (char *)"PyShape_AddToCanvas", (PyCFunction) _wrap_PyShape_AddToCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32733 | { (char *)"PyShape_InsertInCanvas", (PyCFunction) _wrap_PyShape_InsertInCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32734 | { (char *)"PyShape_RemoveFromCanvas", (PyCFunction) _wrap_PyShape_RemoveFromCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32735 | { (char *)"PyShape_GetX", (PyCFunction) _wrap_PyShape_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32736 | { (char *)"PyShape_GetY", (PyCFunction) _wrap_PyShape_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32737 | { (char *)"PyShape_SetX", (PyCFunction) _wrap_PyShape_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32738 | { (char *)"PyShape_SetY", (PyCFunction) _wrap_PyShape_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32739 | { (char *)"PyShape_GetParent", (PyCFunction) _wrap_PyShape_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32740 | { (char *)"PyShape_SetParent", (PyCFunction) _wrap_PyShape_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32741 | { (char *)"PyShape_GetTopAncestor", (PyCFunction) _wrap_PyShape_GetTopAncestor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32742 | { (char *)"PyShape_GetChildren", (PyCFunction) _wrap_PyShape_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32743 | { (char *)"PyShape_Unlink", (PyCFunction) _wrap_PyShape_Unlink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32744 | { (char *)"PyShape_SetDrawHandles", (PyCFunction) _wrap_PyShape_SetDrawHandles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32745 | { (char *)"PyShape_GetDrawHandles", (PyCFunction) _wrap_PyShape_GetDrawHandles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32746 | { (char *)"PyShape_MakeControlPoints", (PyCFunction) _wrap_PyShape_MakeControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32747 | { (char *)"PyShape_DeleteControlPoints", (PyCFunction) _wrap_PyShape_DeleteControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32748 | { (char *)"PyShape_ResetControlPoints", (PyCFunction) _wrap_PyShape_ResetControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32749 | { (char *)"PyShape_GetEventHandler", (PyCFunction) _wrap_PyShape_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32750 | { (char *)"PyShape_SetEventHandler", (PyCFunction) _wrap_PyShape_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32751 | { (char *)"PyShape_MakeMandatoryControlPoints", (PyCFunction) _wrap_PyShape_MakeMandatoryControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32752 | { (char *)"PyShape_ResetMandatoryControlPoints", (PyCFunction) _wrap_PyShape_ResetMandatoryControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32753 | { (char *)"PyShape_Recompute", (PyCFunction) _wrap_PyShape_Recompute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32754 | { (char *)"PyShape_CalculateSize", (PyCFunction) _wrap_PyShape_CalculateSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32755 | { (char *)"PyShape_Select", (PyCFunction) _wrap_PyShape_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32756 | { (char *)"PyShape_SetHighlight", (PyCFunction) _wrap_PyShape_SetHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32757 | { (char *)"PyShape_IsHighlighted", (PyCFunction) _wrap_PyShape_IsHighlighted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32758 | { (char *)"PyShape_Selected", (PyCFunction) _wrap_PyShape_Selected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32759 | { (char *)"PyShape_AncestorSelected", (PyCFunction) _wrap_PyShape_AncestorSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32760 | { (char *)"PyShape_SetSensitivityFilter", (PyCFunction) _wrap_PyShape_SetSensitivityFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32761 | { (char *)"PyShape_GetSensitivityFilter", (PyCFunction) _wrap_PyShape_GetSensitivityFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32762 | { (char *)"PyShape_SetDraggable", (PyCFunction) _wrap_PyShape_SetDraggable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32763 | { (char *)"PyShape_SetFixedSize", (PyCFunction) _wrap_PyShape_SetFixedSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32764 | { (char *)"PyShape_GetFixedSize", (PyCFunction) _wrap_PyShape_GetFixedSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32765 | { (char *)"PyShape_GetFixedWidth", (PyCFunction) _wrap_PyShape_GetFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32766 | { (char *)"PyShape_GetFixedHeight", (PyCFunction) _wrap_PyShape_GetFixedHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32767 | { (char *)"PyShape_SetSpaceAttachments", (PyCFunction) _wrap_PyShape_SetSpaceAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32768 | { (char *)"PyShape_GetSpaceAttachments", (PyCFunction) _wrap_PyShape_GetSpaceAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32769 | { (char *)"PyShape_SetShadowMode", (PyCFunction) _wrap_PyShape_SetShadowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32770 | { (char *)"PyShape_GetShadowMode", (PyCFunction) _wrap_PyShape_GetShadowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32771 | { (char *)"PyShape_HitTest", (PyCFunction) _wrap_PyShape_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32772 | { (char *)"PyShape_SetCentreResize", (PyCFunction) _wrap_PyShape_SetCentreResize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32773 | { (char *)"PyShape_GetCentreResize", (PyCFunction) _wrap_PyShape_GetCentreResize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32774 | { (char *)"PyShape_SetMaintainAspectRatio", (PyCFunction) _wrap_PyShape_SetMaintainAspectRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32775 | { (char *)"PyShape_GetMaintainAspectRatio", (PyCFunction) _wrap_PyShape_GetMaintainAspectRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32776 | { (char *)"PyShape_GetLines", (PyCFunction) _wrap_PyShape_GetLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32777 | { (char *)"PyShape_SetDisableLabel", (PyCFunction) _wrap_PyShape_SetDisableLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32778 | { (char *)"PyShape_GetDisableLabel", (PyCFunction) _wrap_PyShape_GetDisableLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32779 | { (char *)"PyShape_SetAttachmentMode", (PyCFunction) _wrap_PyShape_SetAttachmentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32780 | { (char *)"PyShape_GetAttachmentMode", (PyCFunction) _wrap_PyShape_GetAttachmentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32781 | { (char *)"PyShape_SetId", (PyCFunction) _wrap_PyShape_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32782 | { (char *)"PyShape_GetId", (PyCFunction) _wrap_PyShape_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32783 | { (char *)"PyShape_SetPen", (PyCFunction) _wrap_PyShape_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32784 | { (char *)"PyShape_SetBrush", (PyCFunction) _wrap_PyShape_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32785 | { (char *)"PyShape_Show", (PyCFunction) _wrap_PyShape_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32786 | { (char *)"PyShape_IsShown", (PyCFunction) _wrap_PyShape_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32787 | { (char *)"PyShape_Move", (PyCFunction) _wrap_PyShape_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32788 | { (char *)"PyShape_Erase", (PyCFunction) _wrap_PyShape_Erase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32789 | { (char *)"PyShape_EraseContents", (PyCFunction) _wrap_PyShape_EraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32790 | { (char *)"PyShape_Draw", (PyCFunction) _wrap_PyShape_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32791 | { (char *)"PyShape_Flash", (PyCFunction) _wrap_PyShape_Flash, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32792 | { (char *)"PyShape_MoveLinks", (PyCFunction) _wrap_PyShape_MoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32793 | { (char *)"PyShape_DrawContents", (PyCFunction) _wrap_PyShape_DrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32794 | { (char *)"PyShape_SetSize", (PyCFunction) _wrap_PyShape_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32795 | { (char *)"PyShape_SetAttachmentSize", (PyCFunction) _wrap_PyShape_SetAttachmentSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32796 | { (char *)"PyShape_Attach", (PyCFunction) _wrap_PyShape_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32797 | { (char *)"PyShape_Detach", (PyCFunction) _wrap_PyShape_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32798 | { (char *)"PyShape_Constrain", (PyCFunction) _wrap_PyShape_Constrain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32799 | { (char *)"PyShape_AddLine", (PyCFunction) _wrap_PyShape_AddLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32800 | { (char *)"PyShape_GetLinePosition", (PyCFunction) _wrap_PyShape_GetLinePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32801 | { (char *)"PyShape_AddText", (PyCFunction) _wrap_PyShape_AddText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32802 | { (char *)"PyShape_GetPen", (PyCFunction) _wrap_PyShape_GetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32803 | { (char *)"PyShape_GetBrush", (PyCFunction) _wrap_PyShape_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32804 | { (char *)"PyShape_SetDefaultRegionSize", (PyCFunction) _wrap_PyShape_SetDefaultRegionSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32805 | { (char *)"PyShape_FormatText", (PyCFunction) _wrap_PyShape_FormatText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32806 | { (char *)"PyShape_SetFormatMode", (PyCFunction) _wrap_PyShape_SetFormatMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32807 | { (char *)"PyShape_GetFormatMode", (PyCFunction) _wrap_PyShape_GetFormatMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32808 | { (char *)"PyShape_SetFont", (PyCFunction) _wrap_PyShape_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32809 | { (char *)"PyShape_GetFont", (PyCFunction) _wrap_PyShape_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32810 | { (char *)"PyShape_SetTextColour", (PyCFunction) _wrap_PyShape_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32811 | { (char *)"PyShape_GetTextColour", (PyCFunction) _wrap_PyShape_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32812 | { (char *)"PyShape_GetNumberOfTextRegions", (PyCFunction) _wrap_PyShape_GetNumberOfTextRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32813 | { (char *)"PyShape_SetRegionName", (PyCFunction) _wrap_PyShape_SetRegionName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32814 | { (char *)"PyShape_GetRegionName", (PyCFunction) _wrap_PyShape_GetRegionName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32815 | { (char *)"PyShape_GetRegionId", (PyCFunction) _wrap_PyShape_GetRegionId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32816 | { (char *)"PyShape_NameRegions", (PyCFunction) _wrap_PyShape_NameRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32817 | { (char *)"PyShape_GetRegions", (PyCFunction) _wrap_PyShape_GetRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32818 | { (char *)"PyShape_AddRegion", (PyCFunction) _wrap_PyShape_AddRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32819 | { (char *)"PyShape_ClearRegions", (PyCFunction) _wrap_PyShape_ClearRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32820 | { (char *)"PyShape_AssignNewIds", (PyCFunction) _wrap_PyShape_AssignNewIds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32821 | { (char *)"PyShape_FindRegion", (PyCFunction) _wrap_PyShape_FindRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32822 | { (char *)"PyShape_FindRegionNames", (PyCFunction) _wrap_PyShape_FindRegionNames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32823 | { (char *)"PyShape_ClearText", (PyCFunction) _wrap_PyShape_ClearText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32824 | { (char *)"PyShape_RemoveLine", (PyCFunction) _wrap_PyShape_RemoveLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32825 | { (char *)"PyShape_GetAttachmentPosition", (PyCFunction) _wrap_PyShape_GetAttachmentPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32826 | { (char *)"PyShape_GetNumberOfAttachments", (PyCFunction) _wrap_PyShape_GetNumberOfAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32827 | { (char *)"PyShape_AttachmentIsValid", (PyCFunction) _wrap_PyShape_AttachmentIsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32828 | { (char *)"PyShape_GetAttachments", (PyCFunction) _wrap_PyShape_GetAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32829 | { (char *)"PyShape_GetAttachmentPositionEdge", (PyCFunction) _wrap_PyShape_GetAttachmentPositionEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32830 | { (char *)"PyShape_CalcSimpleAttachment", (PyCFunction) _wrap_PyShape_CalcSimpleAttachment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32831 | { (char *)"PyShape_AttachmentSortTest", (PyCFunction) _wrap_PyShape_AttachmentSortTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32832 | { (char *)"PyShape_EraseLinks", (PyCFunction) _wrap_PyShape_EraseLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32833 | { (char *)"PyShape_DrawLinks", (PyCFunction) _wrap_PyShape_DrawLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32834 | { (char *)"PyShape_MoveLineToNewAttachment", (PyCFunction) _wrap_PyShape_MoveLineToNewAttachment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32835 | { (char *)"PyShape_ApplyAttachmentOrdering", (PyCFunction) _wrap_PyShape_ApplyAttachmentOrdering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32836 | { (char *)"PyShape_GetBranchingAttachmentRoot", (PyCFunction) _wrap_PyShape_GetBranchingAttachmentRoot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32837 | { (char *)"PyShape_GetBranchingAttachmentInfo", (PyCFunction) _wrap_PyShape_GetBranchingAttachmentInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32838 | { (char *)"PyShape_GetBranchingAttachmentPoint", (PyCFunction) _wrap_PyShape_GetBranchingAttachmentPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32839 | { (char *)"PyShape_GetAttachmentLineCount", (PyCFunction) _wrap_PyShape_GetAttachmentLineCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32840 | { (char *)"PyShape_SetBranchNeckLength", (PyCFunction) _wrap_PyShape_SetBranchNeckLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32841 | { (char *)"PyShape_GetBranchNeckLength", (PyCFunction) _wrap_PyShape_GetBranchNeckLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32842 | { (char *)"PyShape_SetBranchStemLength", (PyCFunction) _wrap_PyShape_SetBranchStemLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32843 | { (char *)"PyShape_GetBranchStemLength", (PyCFunction) _wrap_PyShape_GetBranchStemLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32844 | { (char *)"PyShape_SetBranchSpacing", (PyCFunction) _wrap_PyShape_SetBranchSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32845 | { (char *)"PyShape_GetBranchSpacing", (PyCFunction) _wrap_PyShape_GetBranchSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32846 | { (char *)"PyShape_SetBranchStyle", (PyCFunction) _wrap_PyShape_SetBranchStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32847 | { (char *)"PyShape_GetBranchStyle", (PyCFunction) _wrap_PyShape_GetBranchStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32848 | { (char *)"PyShape_PhysicalToLogicalAttachment", (PyCFunction) _wrap_PyShape_PhysicalToLogicalAttachment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32849 | { (char *)"PyShape_LogicalToPhysicalAttachment", (PyCFunction) _wrap_PyShape_LogicalToPhysicalAttachment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32850 | { (char *)"PyShape_Draggable", (PyCFunction) _wrap_PyShape_Draggable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32851 | { (char *)"PyShape_HasDescendant", (PyCFunction) _wrap_PyShape_HasDescendant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32852 | { (char *)"PyShape_CreateNewCopy", (PyCFunction) _wrap_PyShape_CreateNewCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32853 | { (char *)"PyShape_Copy", (PyCFunction) _wrap_PyShape_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32854 | { (char *)"PyShape_CopyWithHandler", (PyCFunction) _wrap_PyShape_CopyWithHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32855 | { (char *)"PyShape_Rotate", (PyCFunction) _wrap_PyShape_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32856 | { (char *)"PyShape_GetRotation", (PyCFunction) _wrap_PyShape_GetRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32857 | { (char *)"PyShape_SetRotation", (PyCFunction) _wrap_PyShape_SetRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32858 | { (char *)"PyShape_ClearAttachments", (PyCFunction) _wrap_PyShape_ClearAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32859 | { (char *)"PyShape_Recentre", (PyCFunction) _wrap_PyShape_Recentre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32860 | { (char *)"PyShape_ClearPointList", (PyCFunction) _wrap_PyShape_ClearPointList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32861 | { (char *)"PyShape_GetBackgroundPen", (PyCFunction) _wrap_PyShape_GetBackgroundPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32862 | { (char *)"PyShape_GetBackgroundBrush", (PyCFunction) _wrap_PyShape_GetBackgroundBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32863 | { (char *)"PyShape_base_OnDelete", (PyCFunction) _wrap_PyShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32864 | { (char *)"PyShape_base_OnDraw", (PyCFunction) _wrap_PyShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32865 | { (char *)"PyShape_base_OnDrawContents", (PyCFunction) _wrap_PyShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32866 | { (char *)"PyShape_base_OnDrawBranches", (PyCFunction) _wrap_PyShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32867 | { (char *)"PyShape_base_OnMoveLinks", (PyCFunction) _wrap_PyShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32868 | { (char *)"PyShape_base_OnErase", (PyCFunction) _wrap_PyShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32869 | { (char *)"PyShape_base_OnEraseContents", (PyCFunction) _wrap_PyShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32870 | { (char *)"PyShape_base_OnHighlight", (PyCFunction) _wrap_PyShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32871 | { (char *)"PyShape_base_OnLeftClick", (PyCFunction) _wrap_PyShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32872 | { (char *)"PyShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32873 | { (char *)"PyShape_base_OnRightClick", (PyCFunction) _wrap_PyShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32874 | { (char *)"PyShape_base_OnSize", (PyCFunction) _wrap_PyShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32875 | { (char *)"PyShape_base_OnMovePre", (PyCFunction) _wrap_PyShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32876 | { (char *)"PyShape_base_OnMovePost", (PyCFunction) _wrap_PyShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32877 | { (char *)"PyShape_base_OnDragLeft", (PyCFunction) _wrap_PyShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32878 | { (char *)"PyShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32879 | { (char *)"PyShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32880 | { (char *)"PyShape_base_OnDragRight", (PyCFunction) _wrap_PyShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32881 | { (char *)"PyShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32882 | { (char *)"PyShape_base_OnEndDragRight", (PyCFunction) _wrap_PyShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32883 | { (char *)"PyShape_base_OnDrawOutline", (PyCFunction) _wrap_PyShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32884 | { (char *)"PyShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32885 | { (char *)"PyShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32886 | { (char *)"PyShape_base_OnMoveLink", (PyCFunction) _wrap_PyShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32887 | { (char *)"PyShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32888 | { (char *)"PyShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32889 | { (char *)"PyShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32890 | { (char *)"PyShape_base_OnBeginSize", (PyCFunction) _wrap_PyShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32891 | { (char *)"PyShape_base_OnEndSize", (PyCFunction) _wrap_PyShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32892 | { (char *)"PyShape_swigregister", PyShape_swigregister, METH_VARARGS, NULL }, | |
32893 | { (char *)"new_PseudoMetaFile", (PyCFunction) _wrap_new_PseudoMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32894 | { (char *)"delete_PseudoMetaFile", (PyCFunction) _wrap_delete_PseudoMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32895 | { (char *)"PseudoMetaFile_Draw", (PyCFunction) _wrap_PseudoMetaFile_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32896 | { (char *)"PseudoMetaFile_Clear", (PyCFunction) _wrap_PseudoMetaFile_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32897 | { (char *)"PseudoMetaFile_Copy", (PyCFunction) _wrap_PseudoMetaFile_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32898 | { (char *)"PseudoMetaFile_Scale", (PyCFunction) _wrap_PseudoMetaFile_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32899 | { (char *)"PseudoMetaFile_ScaleTo", (PyCFunction) _wrap_PseudoMetaFile_ScaleTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32900 | { (char *)"PseudoMetaFile_Translate", (PyCFunction) _wrap_PseudoMetaFile_Translate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32901 | { (char *)"PseudoMetaFile_Rotate", (PyCFunction) _wrap_PseudoMetaFile_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32902 | { (char *)"PseudoMetaFile_LoadFromMetaFile", (PyCFunction) _wrap_PseudoMetaFile_LoadFromMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32903 | { (char *)"PseudoMetaFile_GetBounds", (PyCFunction) _wrap_PseudoMetaFile_GetBounds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32904 | { (char *)"PseudoMetaFile_CalculateSize", (PyCFunction) _wrap_PseudoMetaFile_CalculateSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32905 | { (char *)"PseudoMetaFile_SetRotateable", (PyCFunction) _wrap_PseudoMetaFile_SetRotateable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32906 | { (char *)"PseudoMetaFile_GetRotateable", (PyCFunction) _wrap_PseudoMetaFile_GetRotateable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32907 | { (char *)"PseudoMetaFile_SetSize", (PyCFunction) _wrap_PseudoMetaFile_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32908 | { (char *)"PseudoMetaFile_SetFillBrush", (PyCFunction) _wrap_PseudoMetaFile_SetFillBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32909 | { (char *)"PseudoMetaFile_GetFillBrush", (PyCFunction) _wrap_PseudoMetaFile_GetFillBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32910 | { (char *)"PseudoMetaFile_SetOutlinePen", (PyCFunction) _wrap_PseudoMetaFile_SetOutlinePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32911 | { (char *)"PseudoMetaFile_GetOutlinePen", (PyCFunction) _wrap_PseudoMetaFile_GetOutlinePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32912 | { (char *)"PseudoMetaFile_SetOutlineOp", (PyCFunction) _wrap_PseudoMetaFile_SetOutlineOp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32913 | { (char *)"PseudoMetaFile_GetOutlineOp", (PyCFunction) _wrap_PseudoMetaFile_GetOutlineOp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32914 | { (char *)"PseudoMetaFile_IsValid", (PyCFunction) _wrap_PseudoMetaFile_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32915 | { (char *)"PseudoMetaFile_DrawLine", (PyCFunction) _wrap_PseudoMetaFile_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32916 | { (char *)"PseudoMetaFile_DrawRectangle", (PyCFunction) _wrap_PseudoMetaFile_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32917 | { (char *)"PseudoMetaFile_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoMetaFile_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32918 | { (char *)"PseudoMetaFile_DrawArc", (PyCFunction) _wrap_PseudoMetaFile_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32919 | { (char *)"PseudoMetaFile_DrawEllipticArc", (PyCFunction) _wrap_PseudoMetaFile_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32920 | { (char *)"PseudoMetaFile_DrawEllipse", (PyCFunction) _wrap_PseudoMetaFile_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32921 | { (char *)"PseudoMetaFile_DrawPoint", (PyCFunction) _wrap_PseudoMetaFile_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32922 | { (char *)"PseudoMetaFile_DrawText", (PyCFunction) _wrap_PseudoMetaFile_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32923 | { (char *)"PseudoMetaFile_DrawLines", (PyCFunction) _wrap_PseudoMetaFile_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32924 | { (char *)"PseudoMetaFile_DrawPolygon", (PyCFunction) _wrap_PseudoMetaFile_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32925 | { (char *)"PseudoMetaFile_DrawSpline", (PyCFunction) _wrap_PseudoMetaFile_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32926 | { (char *)"PseudoMetaFile_SetClippingRect", (PyCFunction) _wrap_PseudoMetaFile_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32927 | { (char *)"PseudoMetaFile_DestroyClippingRect", (PyCFunction) _wrap_PseudoMetaFile_DestroyClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32928 | { (char *)"PseudoMetaFile_SetPen", (PyCFunction) _wrap_PseudoMetaFile_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32929 | { (char *)"PseudoMetaFile_SetBrush", (PyCFunction) _wrap_PseudoMetaFile_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32930 | { (char *)"PseudoMetaFile_SetFont", (PyCFunction) _wrap_PseudoMetaFile_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32931 | { (char *)"PseudoMetaFile_SetTextColour", (PyCFunction) _wrap_PseudoMetaFile_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32932 | { (char *)"PseudoMetaFile_SetBackgroundColour", (PyCFunction) _wrap_PseudoMetaFile_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32933 | { (char *)"PseudoMetaFile_SetBackgroundMode", (PyCFunction) _wrap_PseudoMetaFile_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32934 | { (char *)"PseudoMetaFile_swigregister", PseudoMetaFile_swigregister, METH_VARARGS, NULL }, | |
32935 | { (char *)"new_PyRectangleShape", (PyCFunction) _wrap_new_PyRectangleShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32936 | { (char *)"PyRectangleShape__setCallbackInfo", (PyCFunction) _wrap_PyRectangleShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32937 | { (char *)"PyRectangleShape_SetCornerRadius", (PyCFunction) _wrap_PyRectangleShape_SetCornerRadius, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32938 | { (char *)"PyRectangleShape_GetCornerRadius", (PyCFunction) _wrap_PyRectangleShape_GetCornerRadius, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32939 | { (char *)"PyRectangleShape_base_OnDelete", (PyCFunction) _wrap_PyRectangleShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32940 | { (char *)"PyRectangleShape_base_OnDraw", (PyCFunction) _wrap_PyRectangleShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32941 | { (char *)"PyRectangleShape_base_OnDrawContents", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32942 | { (char *)"PyRectangleShape_base_OnDrawBranches", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32943 | { (char *)"PyRectangleShape_base_OnMoveLinks", (PyCFunction) _wrap_PyRectangleShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32944 | { (char *)"PyRectangleShape_base_OnErase", (PyCFunction) _wrap_PyRectangleShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32945 | { (char *)"PyRectangleShape_base_OnEraseContents", (PyCFunction) _wrap_PyRectangleShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32946 | { (char *)"PyRectangleShape_base_OnHighlight", (PyCFunction) _wrap_PyRectangleShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32947 | { (char *)"PyRectangleShape_base_OnLeftClick", (PyCFunction) _wrap_PyRectangleShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32948 | { (char *)"PyRectangleShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyRectangleShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32949 | { (char *)"PyRectangleShape_base_OnRightClick", (PyCFunction) _wrap_PyRectangleShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32950 | { (char *)"PyRectangleShape_base_OnSize", (PyCFunction) _wrap_PyRectangleShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32951 | { (char *)"PyRectangleShape_base_OnMovePre", (PyCFunction) _wrap_PyRectangleShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32952 | { (char *)"PyRectangleShape_base_OnMovePost", (PyCFunction) _wrap_PyRectangleShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32953 | { (char *)"PyRectangleShape_base_OnDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32954 | { (char *)"PyRectangleShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32955 | { (char *)"PyRectangleShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32956 | { (char *)"PyRectangleShape_base_OnDragRight", (PyCFunction) _wrap_PyRectangleShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32957 | { (char *)"PyRectangleShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyRectangleShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32958 | { (char *)"PyRectangleShape_base_OnEndDragRight", (PyCFunction) _wrap_PyRectangleShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32959 | { (char *)"PyRectangleShape_base_OnDrawOutline", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32960 | { (char *)"PyRectangleShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyRectangleShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32961 | { (char *)"PyRectangleShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyRectangleShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32962 | { (char *)"PyRectangleShape_base_OnMoveLink", (PyCFunction) _wrap_PyRectangleShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32963 | { (char *)"PyRectangleShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32964 | { (char *)"PyRectangleShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32965 | { (char *)"PyRectangleShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyRectangleShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32966 | { (char *)"PyRectangleShape_base_OnBeginSize", (PyCFunction) _wrap_PyRectangleShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32967 | { (char *)"PyRectangleShape_base_OnEndSize", (PyCFunction) _wrap_PyRectangleShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32968 | { (char *)"PyRectangleShape_swigregister", PyRectangleShape_swigregister, METH_VARARGS, NULL }, | |
32969 | { (char *)"new_PyControlPoint", (PyCFunction) _wrap_new_PyControlPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32970 | { (char *)"PyControlPoint__setCallbackInfo", (PyCFunction) _wrap_PyControlPoint__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32971 | { (char *)"PyControlPoint_SetCornerRadius", (PyCFunction) _wrap_PyControlPoint_SetCornerRadius, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32972 | { (char *)"PyControlPoint_base_OnDelete", (PyCFunction) _wrap_PyControlPoint_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32973 | { (char *)"PyControlPoint_base_OnDraw", (PyCFunction) _wrap_PyControlPoint_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32974 | { (char *)"PyControlPoint_base_OnDrawContents", (PyCFunction) _wrap_PyControlPoint_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32975 | { (char *)"PyControlPoint_base_OnDrawBranches", (PyCFunction) _wrap_PyControlPoint_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32976 | { (char *)"PyControlPoint_base_OnMoveLinks", (PyCFunction) _wrap_PyControlPoint_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32977 | { (char *)"PyControlPoint_base_OnErase", (PyCFunction) _wrap_PyControlPoint_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32978 | { (char *)"PyControlPoint_base_OnEraseContents", (PyCFunction) _wrap_PyControlPoint_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32979 | { (char *)"PyControlPoint_base_OnHighlight", (PyCFunction) _wrap_PyControlPoint_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32980 | { (char *)"PyControlPoint_base_OnLeftClick", (PyCFunction) _wrap_PyControlPoint_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32981 | { (char *)"PyControlPoint_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyControlPoint_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32982 | { (char *)"PyControlPoint_base_OnRightClick", (PyCFunction) _wrap_PyControlPoint_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32983 | { (char *)"PyControlPoint_base_OnSize", (PyCFunction) _wrap_PyControlPoint_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32984 | { (char *)"PyControlPoint_base_OnMovePre", (PyCFunction) _wrap_PyControlPoint_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32985 | { (char *)"PyControlPoint_base_OnMovePost", (PyCFunction) _wrap_PyControlPoint_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32986 | { (char *)"PyControlPoint_base_OnDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32987 | { (char *)"PyControlPoint_base_OnBeginDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32988 | { (char *)"PyControlPoint_base_OnEndDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32989 | { (char *)"PyControlPoint_base_OnDragRight", (PyCFunction) _wrap_PyControlPoint_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32990 | { (char *)"PyControlPoint_base_OnBeginDragRight", (PyCFunction) _wrap_PyControlPoint_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32991 | { (char *)"PyControlPoint_base_OnEndDragRight", (PyCFunction) _wrap_PyControlPoint_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32992 | { (char *)"PyControlPoint_base_OnDrawOutline", (PyCFunction) _wrap_PyControlPoint_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32993 | { (char *)"PyControlPoint_base_OnDrawControlPoints", (PyCFunction) _wrap_PyControlPoint_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32994 | { (char *)"PyControlPoint_base_OnEraseControlPoints", (PyCFunction) _wrap_PyControlPoint_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32995 | { (char *)"PyControlPoint_base_OnMoveLink", (PyCFunction) _wrap_PyControlPoint_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32996 | { (char *)"PyControlPoint_base_OnSizingDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32997 | { (char *)"PyControlPoint_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32998 | { (char *)"PyControlPoint_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyControlPoint_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32999 | { (char *)"PyControlPoint_base_OnBeginSize", (PyCFunction) _wrap_PyControlPoint_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33000 | { (char *)"PyControlPoint_base_OnEndSize", (PyCFunction) _wrap_PyControlPoint_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33001 | { (char *)"PyControlPoint_swigregister", PyControlPoint_swigregister, METH_VARARGS, NULL }, | |
33002 | { (char *)"new_PyBitmapShape", (PyCFunction) _wrap_new_PyBitmapShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33003 | { (char *)"PyBitmapShape__setCallbackInfo", (PyCFunction) _wrap_PyBitmapShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33004 | { (char *)"PyBitmapShape_GetBitmap", (PyCFunction) _wrap_PyBitmapShape_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33005 | { (char *)"PyBitmapShape_GetFilename", (PyCFunction) _wrap_PyBitmapShape_GetFilename, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33006 | { (char *)"PyBitmapShape_SetBitmap", (PyCFunction) _wrap_PyBitmapShape_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33007 | { (char *)"PyBitmapShape_SetFilename", (PyCFunction) _wrap_PyBitmapShape_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33008 | { (char *)"PyBitmapShape_base_OnDelete", (PyCFunction) _wrap_PyBitmapShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33009 | { (char *)"PyBitmapShape_base_OnDraw", (PyCFunction) _wrap_PyBitmapShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33010 | { (char *)"PyBitmapShape_base_OnDrawContents", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33011 | { (char *)"PyBitmapShape_base_OnDrawBranches", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33012 | { (char *)"PyBitmapShape_base_OnMoveLinks", (PyCFunction) _wrap_PyBitmapShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33013 | { (char *)"PyBitmapShape_base_OnErase", (PyCFunction) _wrap_PyBitmapShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33014 | { (char *)"PyBitmapShape_base_OnEraseContents", (PyCFunction) _wrap_PyBitmapShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33015 | { (char *)"PyBitmapShape_base_OnHighlight", (PyCFunction) _wrap_PyBitmapShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33016 | { (char *)"PyBitmapShape_base_OnLeftClick", (PyCFunction) _wrap_PyBitmapShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33017 | { (char *)"PyBitmapShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyBitmapShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33018 | { (char *)"PyBitmapShape_base_OnRightClick", (PyCFunction) _wrap_PyBitmapShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33019 | { (char *)"PyBitmapShape_base_OnSize", (PyCFunction) _wrap_PyBitmapShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33020 | { (char *)"PyBitmapShape_base_OnMovePre", (PyCFunction) _wrap_PyBitmapShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33021 | { (char *)"PyBitmapShape_base_OnMovePost", (PyCFunction) _wrap_PyBitmapShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33022 | { (char *)"PyBitmapShape_base_OnDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33023 | { (char *)"PyBitmapShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33024 | { (char *)"PyBitmapShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33025 | { (char *)"PyBitmapShape_base_OnDragRight", (PyCFunction) _wrap_PyBitmapShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33026 | { (char *)"PyBitmapShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyBitmapShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33027 | { (char *)"PyBitmapShape_base_OnEndDragRight", (PyCFunction) _wrap_PyBitmapShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33028 | { (char *)"PyBitmapShape_base_OnDrawOutline", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33029 | { (char *)"PyBitmapShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyBitmapShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33030 | { (char *)"PyBitmapShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyBitmapShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33031 | { (char *)"PyBitmapShape_base_OnMoveLink", (PyCFunction) _wrap_PyBitmapShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33032 | { (char *)"PyBitmapShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33033 | { (char *)"PyBitmapShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33034 | { (char *)"PyBitmapShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyBitmapShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33035 | { (char *)"PyBitmapShape_base_OnBeginSize", (PyCFunction) _wrap_PyBitmapShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33036 | { (char *)"PyBitmapShape_base_OnEndSize", (PyCFunction) _wrap_PyBitmapShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33037 | { (char *)"PyBitmapShape_swigregister", PyBitmapShape_swigregister, METH_VARARGS, NULL }, | |
33038 | { (char *)"new_PyDrawnShape", (PyCFunction) _wrap_new_PyDrawnShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33039 | { (char *)"PyDrawnShape__setCallbackInfo", (PyCFunction) _wrap_PyDrawnShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33040 | { (char *)"PyDrawnShape_CalculateSize", (PyCFunction) _wrap_PyDrawnShape_CalculateSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33041 | { (char *)"PyDrawnShape_DestroyClippingRect", (PyCFunction) _wrap_PyDrawnShape_DestroyClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33042 | { (char *)"PyDrawnShape_DrawArc", (PyCFunction) _wrap_PyDrawnShape_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33043 | { (char *)"PyDrawnShape_DrawAtAngle", (PyCFunction) _wrap_PyDrawnShape_DrawAtAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33044 | { (char *)"PyDrawnShape_DrawEllipticArc", (PyCFunction) _wrap_PyDrawnShape_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33045 | { (char *)"PyDrawnShape_DrawLine", (PyCFunction) _wrap_PyDrawnShape_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33046 | { (char *)"PyDrawnShape_DrawLines", (PyCFunction) _wrap_PyDrawnShape_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33047 | { (char *)"PyDrawnShape_DrawPoint", (PyCFunction) _wrap_PyDrawnShape_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33048 | { (char *)"PyDrawnShape_DrawPolygon", (PyCFunction) _wrap_PyDrawnShape_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33049 | { (char *)"PyDrawnShape_DrawRectangle", (PyCFunction) _wrap_PyDrawnShape_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33050 | { (char *)"PyDrawnShape_DrawRoundedRectangle", (PyCFunction) _wrap_PyDrawnShape_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33051 | { (char *)"PyDrawnShape_DrawSpline", (PyCFunction) _wrap_PyDrawnShape_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33052 | { (char *)"PyDrawnShape_DrawText", (PyCFunction) _wrap_PyDrawnShape_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33053 | { (char *)"PyDrawnShape_GetAngle", (PyCFunction) _wrap_PyDrawnShape_GetAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33054 | { (char *)"PyDrawnShape_GetMetaFile", (PyCFunction) _wrap_PyDrawnShape_GetMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33055 | { (char *)"PyDrawnShape_GetRotation", (PyCFunction) _wrap_PyDrawnShape_GetRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33056 | { (char *)"PyDrawnShape_LoadFromMetaFile", (PyCFunction) _wrap_PyDrawnShape_LoadFromMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33057 | { (char *)"PyDrawnShape_Rotate", (PyCFunction) _wrap_PyDrawnShape_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33058 | { (char *)"PyDrawnShape_SetClippingRect", (PyCFunction) _wrap_PyDrawnShape_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33059 | { (char *)"PyDrawnShape_SetDrawnBackgroundColour", (PyCFunction) _wrap_PyDrawnShape_SetDrawnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33060 | { (char *)"PyDrawnShape_SetDrawnBackgroundMode", (PyCFunction) _wrap_PyDrawnShape_SetDrawnBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33061 | { (char *)"PyDrawnShape_SetDrawnBrush", (PyCFunction) _wrap_PyDrawnShape_SetDrawnBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33062 | { (char *)"PyDrawnShape_SetDrawnFont", (PyCFunction) _wrap_PyDrawnShape_SetDrawnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33063 | { (char *)"PyDrawnShape_SetDrawnPen", (PyCFunction) _wrap_PyDrawnShape_SetDrawnPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33064 | { (char *)"PyDrawnShape_SetDrawnTextColour", (PyCFunction) _wrap_PyDrawnShape_SetDrawnTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33065 | { (char *)"PyDrawnShape_Scale", (PyCFunction) _wrap_PyDrawnShape_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33066 | { (char *)"PyDrawnShape_SetSaveToFile", (PyCFunction) _wrap_PyDrawnShape_SetSaveToFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33067 | { (char *)"PyDrawnShape_Translate", (PyCFunction) _wrap_PyDrawnShape_Translate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33068 | { (char *)"PyDrawnShape_base_OnDelete", (PyCFunction) _wrap_PyDrawnShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33069 | { (char *)"PyDrawnShape_base_OnDraw", (PyCFunction) _wrap_PyDrawnShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33070 | { (char *)"PyDrawnShape_base_OnDrawContents", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33071 | { (char *)"PyDrawnShape_base_OnDrawBranches", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33072 | { (char *)"PyDrawnShape_base_OnMoveLinks", (PyCFunction) _wrap_PyDrawnShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33073 | { (char *)"PyDrawnShape_base_OnErase", (PyCFunction) _wrap_PyDrawnShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33074 | { (char *)"PyDrawnShape_base_OnEraseContents", (PyCFunction) _wrap_PyDrawnShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33075 | { (char *)"PyDrawnShape_base_OnHighlight", (PyCFunction) _wrap_PyDrawnShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33076 | { (char *)"PyDrawnShape_base_OnLeftClick", (PyCFunction) _wrap_PyDrawnShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33077 | { (char *)"PyDrawnShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyDrawnShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33078 | { (char *)"PyDrawnShape_base_OnRightClick", (PyCFunction) _wrap_PyDrawnShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33079 | { (char *)"PyDrawnShape_base_OnSize", (PyCFunction) _wrap_PyDrawnShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33080 | { (char *)"PyDrawnShape_base_OnMovePre", (PyCFunction) _wrap_PyDrawnShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33081 | { (char *)"PyDrawnShape_base_OnMovePost", (PyCFunction) _wrap_PyDrawnShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33082 | { (char *)"PyDrawnShape_base_OnDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33083 | { (char *)"PyDrawnShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33084 | { (char *)"PyDrawnShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33085 | { (char *)"PyDrawnShape_base_OnDragRight", (PyCFunction) _wrap_PyDrawnShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33086 | { (char *)"PyDrawnShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyDrawnShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33087 | { (char *)"PyDrawnShape_base_OnEndDragRight", (PyCFunction) _wrap_PyDrawnShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33088 | { (char *)"PyDrawnShape_base_OnDrawOutline", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33089 | { (char *)"PyDrawnShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyDrawnShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33090 | { (char *)"PyDrawnShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyDrawnShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33091 | { (char *)"PyDrawnShape_base_OnMoveLink", (PyCFunction) _wrap_PyDrawnShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33092 | { (char *)"PyDrawnShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33093 | { (char *)"PyDrawnShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33094 | { (char *)"PyDrawnShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyDrawnShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33095 | { (char *)"PyDrawnShape_base_OnBeginSize", (PyCFunction) _wrap_PyDrawnShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33096 | { (char *)"PyDrawnShape_base_OnEndSize", (PyCFunction) _wrap_PyDrawnShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33097 | { (char *)"PyDrawnShape_swigregister", PyDrawnShape_swigregister, METH_VARARGS, NULL }, | |
33098 | { (char *)"new_OGLConstraint", (PyCFunction) _wrap_new_OGLConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33099 | { (char *)"OGLConstraint_Evaluate", (PyCFunction) _wrap_OGLConstraint_Evaluate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33100 | { (char *)"OGLConstraint_SetSpacing", (PyCFunction) _wrap_OGLConstraint_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33101 | { (char *)"OGLConstraint_Equals", (PyCFunction) _wrap_OGLConstraint_Equals, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33102 | { (char *)"OGLConstraint_swigregister", OGLConstraint_swigregister, METH_VARARGS, NULL }, | |
33103 | { (char *)"new_PyCompositeShape", (PyCFunction) _wrap_new_PyCompositeShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33104 | { (char *)"PyCompositeShape__setCallbackInfo", (PyCFunction) _wrap_PyCompositeShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33105 | { (char *)"PyCompositeShape_AddChild", (PyCFunction) _wrap_PyCompositeShape_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33106 | { (char *)"PyCompositeShape_AddConstraint", (PyCFunction) _wrap_PyCompositeShape_AddConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33107 | { (char *)"PyCompositeShape_AddConstrainedShapes", (PyCFunction) _wrap_PyCompositeShape_AddConstrainedShapes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33108 | { (char *)"PyCompositeShape_AddSimpleConstraint", (PyCFunction) _wrap_PyCompositeShape_AddSimpleConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33109 | { (char *)"PyCompositeShape_CalculateSize", (PyCFunction) _wrap_PyCompositeShape_CalculateSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33110 | { (char *)"PyCompositeShape_ContainsDivision", (PyCFunction) _wrap_PyCompositeShape_ContainsDivision, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33111 | { (char *)"PyCompositeShape_DeleteConstraint", (PyCFunction) _wrap_PyCompositeShape_DeleteConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33112 | { (char *)"PyCompositeShape_DeleteConstraintsInvolvingChild", (PyCFunction) _wrap_PyCompositeShape_DeleteConstraintsInvolvingChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33113 | { (char *)"PyCompositeShape_FindContainerImage", (PyCFunction) _wrap_PyCompositeShape_FindContainerImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33114 | { (char *)"PyCompositeShape_GetConstraints", (PyCFunction) _wrap_PyCompositeShape_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33115 | { (char *)"PyCompositeShape_GetDivisions", (PyCFunction) _wrap_PyCompositeShape_GetDivisions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33116 | { (char *)"PyCompositeShape_MakeContainer", (PyCFunction) _wrap_PyCompositeShape_MakeContainer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33117 | { (char *)"PyCompositeShape_Recompute", (PyCFunction) _wrap_PyCompositeShape_Recompute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33118 | { (char *)"PyCompositeShape_RemoveChild", (PyCFunction) _wrap_PyCompositeShape_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33119 | { (char *)"PyCompositeShape_base_OnDelete", (PyCFunction) _wrap_PyCompositeShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33120 | { (char *)"PyCompositeShape_base_OnDraw", (PyCFunction) _wrap_PyCompositeShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33121 | { (char *)"PyCompositeShape_base_OnDrawContents", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33122 | { (char *)"PyCompositeShape_base_OnDrawBranches", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33123 | { (char *)"PyCompositeShape_base_OnMoveLinks", (PyCFunction) _wrap_PyCompositeShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33124 | { (char *)"PyCompositeShape_base_OnErase", (PyCFunction) _wrap_PyCompositeShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33125 | { (char *)"PyCompositeShape_base_OnEraseContents", (PyCFunction) _wrap_PyCompositeShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33126 | { (char *)"PyCompositeShape_base_OnHighlight", (PyCFunction) _wrap_PyCompositeShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33127 | { (char *)"PyCompositeShape_base_OnLeftClick", (PyCFunction) _wrap_PyCompositeShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33128 | { (char *)"PyCompositeShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyCompositeShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33129 | { (char *)"PyCompositeShape_base_OnRightClick", (PyCFunction) _wrap_PyCompositeShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33130 | { (char *)"PyCompositeShape_base_OnSize", (PyCFunction) _wrap_PyCompositeShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33131 | { (char *)"PyCompositeShape_base_OnMovePre", (PyCFunction) _wrap_PyCompositeShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33132 | { (char *)"PyCompositeShape_base_OnMovePost", (PyCFunction) _wrap_PyCompositeShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33133 | { (char *)"PyCompositeShape_base_OnDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33134 | { (char *)"PyCompositeShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33135 | { (char *)"PyCompositeShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33136 | { (char *)"PyCompositeShape_base_OnDragRight", (PyCFunction) _wrap_PyCompositeShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33137 | { (char *)"PyCompositeShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyCompositeShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33138 | { (char *)"PyCompositeShape_base_OnEndDragRight", (PyCFunction) _wrap_PyCompositeShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33139 | { (char *)"PyCompositeShape_base_OnDrawOutline", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33140 | { (char *)"PyCompositeShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyCompositeShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33141 | { (char *)"PyCompositeShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyCompositeShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33142 | { (char *)"PyCompositeShape_base_OnMoveLink", (PyCFunction) _wrap_PyCompositeShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33143 | { (char *)"PyCompositeShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33144 | { (char *)"PyCompositeShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33145 | { (char *)"PyCompositeShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyCompositeShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33146 | { (char *)"PyCompositeShape_base_OnBeginSize", (PyCFunction) _wrap_PyCompositeShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33147 | { (char *)"PyCompositeShape_base_OnEndSize", (PyCFunction) _wrap_PyCompositeShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33148 | { (char *)"PyCompositeShape_swigregister", PyCompositeShape_swigregister, METH_VARARGS, NULL }, | |
33149 | { (char *)"new_PyDividedShape", (PyCFunction) _wrap_new_PyDividedShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33150 | { (char *)"PyDividedShape__setCallbackInfo", (PyCFunction) _wrap_PyDividedShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33151 | { (char *)"PyDividedShape_EditRegions", (PyCFunction) _wrap_PyDividedShape_EditRegions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33152 | { (char *)"PyDividedShape_SetRegionSizes", (PyCFunction) _wrap_PyDividedShape_SetRegionSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33153 | { (char *)"PyDividedShape_base_OnDelete", (PyCFunction) _wrap_PyDividedShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33154 | { (char *)"PyDividedShape_base_OnDraw", (PyCFunction) _wrap_PyDividedShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33155 | { (char *)"PyDividedShape_base_OnDrawContents", (PyCFunction) _wrap_PyDividedShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33156 | { (char *)"PyDividedShape_base_OnDrawBranches", (PyCFunction) _wrap_PyDividedShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33157 | { (char *)"PyDividedShape_base_OnMoveLinks", (PyCFunction) _wrap_PyDividedShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33158 | { (char *)"PyDividedShape_base_OnErase", (PyCFunction) _wrap_PyDividedShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33159 | { (char *)"PyDividedShape_base_OnEraseContents", (PyCFunction) _wrap_PyDividedShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33160 | { (char *)"PyDividedShape_base_OnHighlight", (PyCFunction) _wrap_PyDividedShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33161 | { (char *)"PyDividedShape_base_OnLeftClick", (PyCFunction) _wrap_PyDividedShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33162 | { (char *)"PyDividedShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyDividedShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33163 | { (char *)"PyDividedShape_base_OnRightClick", (PyCFunction) _wrap_PyDividedShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33164 | { (char *)"PyDividedShape_base_OnSize", (PyCFunction) _wrap_PyDividedShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33165 | { (char *)"PyDividedShape_base_OnMovePre", (PyCFunction) _wrap_PyDividedShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33166 | { (char *)"PyDividedShape_base_OnMovePost", (PyCFunction) _wrap_PyDividedShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33167 | { (char *)"PyDividedShape_base_OnDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33168 | { (char *)"PyDividedShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33169 | { (char *)"PyDividedShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33170 | { (char *)"PyDividedShape_base_OnDragRight", (PyCFunction) _wrap_PyDividedShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33171 | { (char *)"PyDividedShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyDividedShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33172 | { (char *)"PyDividedShape_base_OnEndDragRight", (PyCFunction) _wrap_PyDividedShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33173 | { (char *)"PyDividedShape_base_OnDrawOutline", (PyCFunction) _wrap_PyDividedShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33174 | { (char *)"PyDividedShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyDividedShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33175 | { (char *)"PyDividedShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyDividedShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33176 | { (char *)"PyDividedShape_base_OnMoveLink", (PyCFunction) _wrap_PyDividedShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33177 | { (char *)"PyDividedShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33178 | { (char *)"PyDividedShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33179 | { (char *)"PyDividedShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyDividedShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33180 | { (char *)"PyDividedShape_base_OnBeginSize", (PyCFunction) _wrap_PyDividedShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33181 | { (char *)"PyDividedShape_base_OnEndSize", (PyCFunction) _wrap_PyDividedShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33182 | { (char *)"PyDividedShape_swigregister", PyDividedShape_swigregister, METH_VARARGS, NULL }, | |
33183 | { (char *)"new_PyDivisionShape", (PyCFunction) _wrap_new_PyDivisionShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33184 | { (char *)"PyDivisionShape__setCallbackInfo", (PyCFunction) _wrap_PyDivisionShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33185 | { (char *)"PyDivisionShape_AdjustBottom", (PyCFunction) _wrap_PyDivisionShape_AdjustBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33186 | { (char *)"PyDivisionShape_AdjustLeft", (PyCFunction) _wrap_PyDivisionShape_AdjustLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33187 | { (char *)"PyDivisionShape_AdjustRight", (PyCFunction) _wrap_PyDivisionShape_AdjustRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33188 | { (char *)"PyDivisionShape_AdjustTop", (PyCFunction) _wrap_PyDivisionShape_AdjustTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33189 | { (char *)"PyDivisionShape_Divide", (PyCFunction) _wrap_PyDivisionShape_Divide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33190 | { (char *)"PyDivisionShape_EditEdge", (PyCFunction) _wrap_PyDivisionShape_EditEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33191 | { (char *)"PyDivisionShape_GetBottomSide", (PyCFunction) _wrap_PyDivisionShape_GetBottomSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33192 | { (char *)"PyDivisionShape_GetHandleSide", (PyCFunction) _wrap_PyDivisionShape_GetHandleSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33193 | { (char *)"PyDivisionShape_GetLeftSide", (PyCFunction) _wrap_PyDivisionShape_GetLeftSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33194 | { (char *)"PyDivisionShape_GetLeftSideColour", (PyCFunction) _wrap_PyDivisionShape_GetLeftSideColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33195 | { (char *)"PyDivisionShape_GetLeftSidePen", (PyCFunction) _wrap_PyDivisionShape_GetLeftSidePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33196 | { (char *)"PyDivisionShape_GetRightSide", (PyCFunction) _wrap_PyDivisionShape_GetRightSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33197 | { (char *)"PyDivisionShape_GetTopSide", (PyCFunction) _wrap_PyDivisionShape_GetTopSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33198 | { (char *)"PyDivisionShape_GetTopSidePen", (PyCFunction) _wrap_PyDivisionShape_GetTopSidePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33199 | { (char *)"PyDivisionShape_ResizeAdjoining", (PyCFunction) _wrap_PyDivisionShape_ResizeAdjoining, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33200 | { (char *)"PyDivisionShape_PopupMenu", (PyCFunction) _wrap_PyDivisionShape_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33201 | { (char *)"PyDivisionShape_SetBottomSide", (PyCFunction) _wrap_PyDivisionShape_SetBottomSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33202 | { (char *)"PyDivisionShape_SetHandleSide", (PyCFunction) _wrap_PyDivisionShape_SetHandleSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33203 | { (char *)"PyDivisionShape_SetLeftSide", (PyCFunction) _wrap_PyDivisionShape_SetLeftSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33204 | { (char *)"PyDivisionShape_SetLeftSideColour", (PyCFunction) _wrap_PyDivisionShape_SetLeftSideColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33205 | { (char *)"PyDivisionShape_SetLeftSidePen", (PyCFunction) _wrap_PyDivisionShape_SetLeftSidePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33206 | { (char *)"PyDivisionShape_SetRightSide", (PyCFunction) _wrap_PyDivisionShape_SetRightSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33207 | { (char *)"PyDivisionShape_SetTopSide", (PyCFunction) _wrap_PyDivisionShape_SetTopSide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33208 | { (char *)"PyDivisionShape_SetTopSideColour", (PyCFunction) _wrap_PyDivisionShape_SetTopSideColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33209 | { (char *)"PyDivisionShape_SetTopSidePen", (PyCFunction) _wrap_PyDivisionShape_SetTopSidePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33210 | { (char *)"PyDivisionShape_base_OnDelete", (PyCFunction) _wrap_PyDivisionShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33211 | { (char *)"PyDivisionShape_base_OnDraw", (PyCFunction) _wrap_PyDivisionShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33212 | { (char *)"PyDivisionShape_base_OnDrawContents", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33213 | { (char *)"PyDivisionShape_base_OnDrawBranches", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33214 | { (char *)"PyDivisionShape_base_OnMoveLinks", (PyCFunction) _wrap_PyDivisionShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33215 | { (char *)"PyDivisionShape_base_OnErase", (PyCFunction) _wrap_PyDivisionShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33216 | { (char *)"PyDivisionShape_base_OnEraseContents", (PyCFunction) _wrap_PyDivisionShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33217 | { (char *)"PyDivisionShape_base_OnHighlight", (PyCFunction) _wrap_PyDivisionShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33218 | { (char *)"PyDivisionShape_base_OnLeftClick", (PyCFunction) _wrap_PyDivisionShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33219 | { (char *)"PyDivisionShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyDivisionShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33220 | { (char *)"PyDivisionShape_base_OnRightClick", (PyCFunction) _wrap_PyDivisionShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33221 | { (char *)"PyDivisionShape_base_OnSize", (PyCFunction) _wrap_PyDivisionShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33222 | { (char *)"PyDivisionShape_base_OnMovePre", (PyCFunction) _wrap_PyDivisionShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33223 | { (char *)"PyDivisionShape_base_OnMovePost", (PyCFunction) _wrap_PyDivisionShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33224 | { (char *)"PyDivisionShape_base_OnDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33225 | { (char *)"PyDivisionShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33226 | { (char *)"PyDivisionShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33227 | { (char *)"PyDivisionShape_base_OnDragRight", (PyCFunction) _wrap_PyDivisionShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33228 | { (char *)"PyDivisionShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyDivisionShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33229 | { (char *)"PyDivisionShape_base_OnEndDragRight", (PyCFunction) _wrap_PyDivisionShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33230 | { (char *)"PyDivisionShape_base_OnDrawOutline", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33231 | { (char *)"PyDivisionShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyDivisionShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33232 | { (char *)"PyDivisionShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyDivisionShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33233 | { (char *)"PyDivisionShape_base_OnMoveLink", (PyCFunction) _wrap_PyDivisionShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33234 | { (char *)"PyDivisionShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33235 | { (char *)"PyDivisionShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33236 | { (char *)"PyDivisionShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyDivisionShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33237 | { (char *)"PyDivisionShape_base_OnBeginSize", (PyCFunction) _wrap_PyDivisionShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33238 | { (char *)"PyDivisionShape_base_OnEndSize", (PyCFunction) _wrap_PyDivisionShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33239 | { (char *)"PyDivisionShape_swigregister", PyDivisionShape_swigregister, METH_VARARGS, NULL }, | |
33240 | { (char *)"new_PyEllipseShape", (PyCFunction) _wrap_new_PyEllipseShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33241 | { (char *)"PyEllipseShape__setCallbackInfo", (PyCFunction) _wrap_PyEllipseShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33242 | { (char *)"PyEllipseShape_base_OnDraw", (PyCFunction) _wrap_PyEllipseShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33243 | { (char *)"PyEllipseShape_base_OnDrawContents", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33244 | { (char *)"PyEllipseShape_base_OnDrawBranches", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33245 | { (char *)"PyEllipseShape_base_OnMoveLinks", (PyCFunction) _wrap_PyEllipseShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33246 | { (char *)"PyEllipseShape_base_OnErase", (PyCFunction) _wrap_PyEllipseShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33247 | { (char *)"PyEllipseShape_base_OnEraseContents", (PyCFunction) _wrap_PyEllipseShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33248 | { (char *)"PyEllipseShape_base_OnHighlight", (PyCFunction) _wrap_PyEllipseShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33249 | { (char *)"PyEllipseShape_base_OnLeftClick", (PyCFunction) _wrap_PyEllipseShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33250 | { (char *)"PyEllipseShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyEllipseShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33251 | { (char *)"PyEllipseShape_base_OnRightClick", (PyCFunction) _wrap_PyEllipseShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33252 | { (char *)"PyEllipseShape_base_OnSize", (PyCFunction) _wrap_PyEllipseShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33253 | { (char *)"PyEllipseShape_base_OnMovePre", (PyCFunction) _wrap_PyEllipseShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33254 | { (char *)"PyEllipseShape_base_OnMovePost", (PyCFunction) _wrap_PyEllipseShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33255 | { (char *)"PyEllipseShape_base_OnDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33256 | { (char *)"PyEllipseShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33257 | { (char *)"PyEllipseShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33258 | { (char *)"PyEllipseShape_base_OnDragRight", (PyCFunction) _wrap_PyEllipseShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33259 | { (char *)"PyEllipseShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyEllipseShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33260 | { (char *)"PyEllipseShape_base_OnEndDragRight", (PyCFunction) _wrap_PyEllipseShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33261 | { (char *)"PyEllipseShape_base_OnDrawOutline", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33262 | { (char *)"PyEllipseShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyEllipseShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33263 | { (char *)"PyEllipseShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyEllipseShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33264 | { (char *)"PyEllipseShape_base_OnMoveLink", (PyCFunction) _wrap_PyEllipseShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33265 | { (char *)"PyEllipseShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33266 | { (char *)"PyEllipseShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33267 | { (char *)"PyEllipseShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyEllipseShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33268 | { (char *)"PyEllipseShape_base_OnBeginSize", (PyCFunction) _wrap_PyEllipseShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33269 | { (char *)"PyEllipseShape_base_OnEndSize", (PyCFunction) _wrap_PyEllipseShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33270 | { (char *)"PyEllipseShape_swigregister", PyEllipseShape_swigregister, METH_VARARGS, NULL }, | |
33271 | { (char *)"new_PyCircleShape", (PyCFunction) _wrap_new_PyCircleShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33272 | { (char *)"PyCircleShape__setCallbackInfo", (PyCFunction) _wrap_PyCircleShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33273 | { (char *)"PyCircleShape_base_OnDraw", (PyCFunction) _wrap_PyCircleShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33274 | { (char *)"PyCircleShape_base_OnDrawContents", (PyCFunction) _wrap_PyCircleShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33275 | { (char *)"PyCircleShape_base_OnDrawBranches", (PyCFunction) _wrap_PyCircleShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33276 | { (char *)"PyCircleShape_base_OnMoveLinks", (PyCFunction) _wrap_PyCircleShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33277 | { (char *)"PyCircleShape_base_OnErase", (PyCFunction) _wrap_PyCircleShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33278 | { (char *)"PyCircleShape_base_OnEraseContents", (PyCFunction) _wrap_PyCircleShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33279 | { (char *)"PyCircleShape_base_OnHighlight", (PyCFunction) _wrap_PyCircleShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33280 | { (char *)"PyCircleShape_base_OnLeftClick", (PyCFunction) _wrap_PyCircleShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33281 | { (char *)"PyCircleShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyCircleShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33282 | { (char *)"PyCircleShape_base_OnRightClick", (PyCFunction) _wrap_PyCircleShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33283 | { (char *)"PyCircleShape_base_OnSize", (PyCFunction) _wrap_PyCircleShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33284 | { (char *)"PyCircleShape_base_OnMovePre", (PyCFunction) _wrap_PyCircleShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33285 | { (char *)"PyCircleShape_base_OnMovePost", (PyCFunction) _wrap_PyCircleShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33286 | { (char *)"PyCircleShape_base_OnDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33287 | { (char *)"PyCircleShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33288 | { (char *)"PyCircleShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33289 | { (char *)"PyCircleShape_base_OnDragRight", (PyCFunction) _wrap_PyCircleShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33290 | { (char *)"PyCircleShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyCircleShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33291 | { (char *)"PyCircleShape_base_OnEndDragRight", (PyCFunction) _wrap_PyCircleShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33292 | { (char *)"PyCircleShape_base_OnDrawOutline", (PyCFunction) _wrap_PyCircleShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33293 | { (char *)"PyCircleShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyCircleShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33294 | { (char *)"PyCircleShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyCircleShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33295 | { (char *)"PyCircleShape_base_OnMoveLink", (PyCFunction) _wrap_PyCircleShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33296 | { (char *)"PyCircleShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33297 | { (char *)"PyCircleShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33298 | { (char *)"PyCircleShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyCircleShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33299 | { (char *)"PyCircleShape_base_OnBeginSize", (PyCFunction) _wrap_PyCircleShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33300 | { (char *)"PyCircleShape_base_OnEndSize", (PyCFunction) _wrap_PyCircleShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33301 | { (char *)"PyCircleShape_swigregister", PyCircleShape_swigregister, METH_VARARGS, NULL }, | |
33302 | { (char *)"new_ArrowHead", (PyCFunction) _wrap_new_ArrowHead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33303 | { (char *)"delete_ArrowHead", (PyCFunction) _wrap_delete_ArrowHead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33304 | { (char *)"ArrowHead__GetType", (PyCFunction) _wrap_ArrowHead__GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33305 | { (char *)"ArrowHead_GetPosition", (PyCFunction) _wrap_ArrowHead_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33306 | { (char *)"ArrowHead_SetPosition", (PyCFunction) _wrap_ArrowHead_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33307 | { (char *)"ArrowHead_GetXOffset", (PyCFunction) _wrap_ArrowHead_GetXOffset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33308 | { (char *)"ArrowHead_GetYOffset", (PyCFunction) _wrap_ArrowHead_GetYOffset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33309 | { (char *)"ArrowHead_GetSpacing", (PyCFunction) _wrap_ArrowHead_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33310 | { (char *)"ArrowHead_GetSize", (PyCFunction) _wrap_ArrowHead_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33311 | { (char *)"ArrowHead_GetName", (PyCFunction) _wrap_ArrowHead_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33312 | { (char *)"ArrowHead_SetXOffset", (PyCFunction) _wrap_ArrowHead_SetXOffset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33313 | { (char *)"ArrowHead_SetYOffset", (PyCFunction) _wrap_ArrowHead_SetYOffset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33314 | { (char *)"ArrowHead_GetMetaFile", (PyCFunction) _wrap_ArrowHead_GetMetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33315 | { (char *)"ArrowHead_GetId", (PyCFunction) _wrap_ArrowHead_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33316 | { (char *)"ArrowHead_GetArrowEnd", (PyCFunction) _wrap_ArrowHead_GetArrowEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33317 | { (char *)"ArrowHead_GetArrowSize", (PyCFunction) _wrap_ArrowHead_GetArrowSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33318 | { (char *)"ArrowHead_SetSize", (PyCFunction) _wrap_ArrowHead_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33319 | { (char *)"ArrowHead_SetSpacing", (PyCFunction) _wrap_ArrowHead_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33320 | { (char *)"ArrowHead_swigregister", ArrowHead_swigregister, METH_VARARGS, NULL }, | |
33321 | { (char *)"new_PyLineShape", (PyCFunction) _wrap_new_PyLineShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33322 | { (char *)"PyLineShape__setCallbackInfo", (PyCFunction) _wrap_PyLineShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33323 | { (char *)"PyLineShape_AddArrow", (PyCFunction) _wrap_PyLineShape_AddArrow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33324 | { (char *)"PyLineShape_AddArrowOrdered", (PyCFunction) _wrap_PyLineShape_AddArrowOrdered, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33325 | { (char *)"PyLineShape_ClearArrow", (PyCFunction) _wrap_PyLineShape_ClearArrow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33326 | { (char *)"PyLineShape_ClearArrowsAtPosition", (PyCFunction) _wrap_PyLineShape_ClearArrowsAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33327 | { (char *)"PyLineShape_DrawArrow", (PyCFunction) _wrap_PyLineShape_DrawArrow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33328 | { (char *)"PyLineShape_DeleteArrowHeadId", (PyCFunction) _wrap_PyLineShape_DeleteArrowHeadId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33329 | { (char *)"PyLineShape_DeleteArrowHead", (PyCFunction) _wrap_PyLineShape_DeleteArrowHead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33330 | { (char *)"PyLineShape_DeleteLineControlPoint", (PyCFunction) _wrap_PyLineShape_DeleteLineControlPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33331 | { (char *)"PyLineShape_DrawArrows", (PyCFunction) _wrap_PyLineShape_DrawArrows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33332 | { (char *)"PyLineShape_DrawRegion", (PyCFunction) _wrap_PyLineShape_DrawRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33333 | { (char *)"PyLineShape_EraseRegion", (PyCFunction) _wrap_PyLineShape_EraseRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33334 | { (char *)"PyLineShape_FindArrowHeadId", (PyCFunction) _wrap_PyLineShape_FindArrowHeadId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33335 | { (char *)"PyLineShape_FindArrowHead", (PyCFunction) _wrap_PyLineShape_FindArrowHead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33336 | { (char *)"PyLineShape_FindLineEndPoints", (PyCFunction) _wrap_PyLineShape_FindLineEndPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33337 | { (char *)"PyLineShape_FindLinePosition", (PyCFunction) _wrap_PyLineShape_FindLinePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33338 | { (char *)"PyLineShape_FindMinimumWidth", (PyCFunction) _wrap_PyLineShape_FindMinimumWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33339 | { (char *)"PyLineShape_FindNth", (PyCFunction) _wrap_PyLineShape_FindNth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33340 | { (char *)"PyLineShape_GetAttachmentFrom", (PyCFunction) _wrap_PyLineShape_GetAttachmentFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33341 | { (char *)"PyLineShape_GetAttachmentTo", (PyCFunction) _wrap_PyLineShape_GetAttachmentTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33342 | { (char *)"PyLineShape_GetEnds", (PyCFunction) _wrap_PyLineShape_GetEnds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33343 | { (char *)"PyLineShape_GetFrom", (PyCFunction) _wrap_PyLineShape_GetFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33344 | { (char *)"PyLineShape_GetLabelPosition", (PyCFunction) _wrap_PyLineShape_GetLabelPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33345 | { (char *)"PyLineShape_GetNextControlPoint", (PyCFunction) _wrap_PyLineShape_GetNextControlPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33346 | { (char *)"PyLineShape_GetTo", (PyCFunction) _wrap_PyLineShape_GetTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33347 | { (char *)"PyLineShape_Initialise", (PyCFunction) _wrap_PyLineShape_Initialise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33348 | { (char *)"PyLineShape_InsertLineControlPoint", (PyCFunction) _wrap_PyLineShape_InsertLineControlPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33349 | { (char *)"PyLineShape_IsEnd", (PyCFunction) _wrap_PyLineShape_IsEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33350 | { (char *)"PyLineShape_IsSpline", (PyCFunction) _wrap_PyLineShape_IsSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33351 | { (char *)"PyLineShape_MakeLineControlPoints", (PyCFunction) _wrap_PyLineShape_MakeLineControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33352 | { (char *)"PyLineShape_GetLineControlPoints", (PyCFunction) _wrap_PyLineShape_GetLineControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33353 | { (char *)"PyLineShape_SetLineControlPoints", (PyCFunction) _wrap_PyLineShape_SetLineControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33354 | { (char *)"PyLineShape_SetAttachmentFrom", (PyCFunction) _wrap_PyLineShape_SetAttachmentFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33355 | { (char *)"PyLineShape_SetAttachments", (PyCFunction) _wrap_PyLineShape_SetAttachments, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33356 | { (char *)"PyLineShape_SetAttachmentTo", (PyCFunction) _wrap_PyLineShape_SetAttachmentTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33357 | { (char *)"PyLineShape_SetEnds", (PyCFunction) _wrap_PyLineShape_SetEnds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33358 | { (char *)"PyLineShape_SetFrom", (PyCFunction) _wrap_PyLineShape_SetFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33359 | { (char *)"PyLineShape_SetIgnoreOffsets", (PyCFunction) _wrap_PyLineShape_SetIgnoreOffsets, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33360 | { (char *)"PyLineShape_SetSpline", (PyCFunction) _wrap_PyLineShape_SetSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33361 | { (char *)"PyLineShape_SetTo", (PyCFunction) _wrap_PyLineShape_SetTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33362 | { (char *)"PyLineShape_Straighten", (PyCFunction) _wrap_PyLineShape_Straighten, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33363 | { (char *)"PyLineShape_Unlink", (PyCFunction) _wrap_PyLineShape_Unlink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33364 | { (char *)"PyLineShape_SetAlignmentOrientation", (PyCFunction) _wrap_PyLineShape_SetAlignmentOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33365 | { (char *)"PyLineShape_SetAlignmentType", (PyCFunction) _wrap_PyLineShape_SetAlignmentType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33366 | { (char *)"PyLineShape_GetAlignmentOrientation", (PyCFunction) _wrap_PyLineShape_GetAlignmentOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33367 | { (char *)"PyLineShape_GetAlignmentType", (PyCFunction) _wrap_PyLineShape_GetAlignmentType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33368 | { (char *)"PyLineShape_GetAlignmentStart", (PyCFunction) _wrap_PyLineShape_GetAlignmentStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33369 | { (char *)"PyLineShape_GetAlignmentEnd", (PyCFunction) _wrap_PyLineShape_GetAlignmentEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33370 | { (char *)"PyLineShape_base_OnDraw", (PyCFunction) _wrap_PyLineShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33371 | { (char *)"PyLineShape_base_OnDrawContents", (PyCFunction) _wrap_PyLineShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33372 | { (char *)"PyLineShape_base_OnDrawBranches", (PyCFunction) _wrap_PyLineShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33373 | { (char *)"PyLineShape_base_OnMoveLinks", (PyCFunction) _wrap_PyLineShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33374 | { (char *)"PyLineShape_base_OnErase", (PyCFunction) _wrap_PyLineShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33375 | { (char *)"PyLineShape_base_OnEraseContents", (PyCFunction) _wrap_PyLineShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33376 | { (char *)"PyLineShape_base_OnHighlight", (PyCFunction) _wrap_PyLineShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33377 | { (char *)"PyLineShape_base_OnLeftClick", (PyCFunction) _wrap_PyLineShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33378 | { (char *)"PyLineShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyLineShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33379 | { (char *)"PyLineShape_base_OnRightClick", (PyCFunction) _wrap_PyLineShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33380 | { (char *)"PyLineShape_base_OnSize", (PyCFunction) _wrap_PyLineShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33381 | { (char *)"PyLineShape_base_OnMovePre", (PyCFunction) _wrap_PyLineShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33382 | { (char *)"PyLineShape_base_OnMovePost", (PyCFunction) _wrap_PyLineShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33383 | { (char *)"PyLineShape_base_OnDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33384 | { (char *)"PyLineShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33385 | { (char *)"PyLineShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33386 | { (char *)"PyLineShape_base_OnDragRight", (PyCFunction) _wrap_PyLineShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33387 | { (char *)"PyLineShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyLineShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33388 | { (char *)"PyLineShape_base_OnEndDragRight", (PyCFunction) _wrap_PyLineShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33389 | { (char *)"PyLineShape_base_OnDrawOutline", (PyCFunction) _wrap_PyLineShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33390 | { (char *)"PyLineShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyLineShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33391 | { (char *)"PyLineShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyLineShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33392 | { (char *)"PyLineShape_base_OnMoveLink", (PyCFunction) _wrap_PyLineShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33393 | { (char *)"PyLineShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33394 | { (char *)"PyLineShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33395 | { (char *)"PyLineShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyLineShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33396 | { (char *)"PyLineShape_base_OnBeginSize", (PyCFunction) _wrap_PyLineShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33397 | { (char *)"PyLineShape_base_OnEndSize", (PyCFunction) _wrap_PyLineShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33398 | { (char *)"PyLineShape_swigregister", PyLineShape_swigregister, METH_VARARGS, NULL }, | |
33399 | { (char *)"new_PyPolygonShape", (PyCFunction) _wrap_new_PyPolygonShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33400 | { (char *)"PyPolygonShape__setCallbackInfo", (PyCFunction) _wrap_PyPolygonShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33401 | { (char *)"PyPolygonShape_Create", (PyCFunction) _wrap_PyPolygonShape_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33402 | { (char *)"PyPolygonShape_AddPolygonPoint", (PyCFunction) _wrap_PyPolygonShape_AddPolygonPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33403 | { (char *)"PyPolygonShape_CalculatePolygonCentre", (PyCFunction) _wrap_PyPolygonShape_CalculatePolygonCentre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33404 | { (char *)"PyPolygonShape_DeletePolygonPoint", (PyCFunction) _wrap_PyPolygonShape_DeletePolygonPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33405 | { (char *)"PyPolygonShape_GetPoints", (PyCFunction) _wrap_PyPolygonShape_GetPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33406 | { (char *)"PyPolygonShape_GetOriginalPoints", (PyCFunction) _wrap_PyPolygonShape_GetOriginalPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33407 | { (char *)"PyPolygonShape_GetOriginalWidth", (PyCFunction) _wrap_PyPolygonShape_GetOriginalWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33408 | { (char *)"PyPolygonShape_GetOriginalHeight", (PyCFunction) _wrap_PyPolygonShape_GetOriginalHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33409 | { (char *)"PyPolygonShape_SetOriginalWidth", (PyCFunction) _wrap_PyPolygonShape_SetOriginalWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33410 | { (char *)"PyPolygonShape_SetOriginalHeight", (PyCFunction) _wrap_PyPolygonShape_SetOriginalHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33411 | { (char *)"PyPolygonShape_UpdateOriginalPoints", (PyCFunction) _wrap_PyPolygonShape_UpdateOriginalPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33412 | { (char *)"PyPolygonShape_base_OnDraw", (PyCFunction) _wrap_PyPolygonShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33413 | { (char *)"PyPolygonShape_base_OnDrawContents", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33414 | { (char *)"PyPolygonShape_base_OnDrawBranches", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33415 | { (char *)"PyPolygonShape_base_OnMoveLinks", (PyCFunction) _wrap_PyPolygonShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33416 | { (char *)"PyPolygonShape_base_OnErase", (PyCFunction) _wrap_PyPolygonShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33417 | { (char *)"PyPolygonShape_base_OnEraseContents", (PyCFunction) _wrap_PyPolygonShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33418 | { (char *)"PyPolygonShape_base_OnHighlight", (PyCFunction) _wrap_PyPolygonShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33419 | { (char *)"PyPolygonShape_base_OnLeftClick", (PyCFunction) _wrap_PyPolygonShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33420 | { (char *)"PyPolygonShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyPolygonShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33421 | { (char *)"PyPolygonShape_base_OnRightClick", (PyCFunction) _wrap_PyPolygonShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33422 | { (char *)"PyPolygonShape_base_OnSize", (PyCFunction) _wrap_PyPolygonShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33423 | { (char *)"PyPolygonShape_base_OnMovePre", (PyCFunction) _wrap_PyPolygonShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33424 | { (char *)"PyPolygonShape_base_OnMovePost", (PyCFunction) _wrap_PyPolygonShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33425 | { (char *)"PyPolygonShape_base_OnDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33426 | { (char *)"PyPolygonShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33427 | { (char *)"PyPolygonShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33428 | { (char *)"PyPolygonShape_base_OnDragRight", (PyCFunction) _wrap_PyPolygonShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33429 | { (char *)"PyPolygonShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyPolygonShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33430 | { (char *)"PyPolygonShape_base_OnEndDragRight", (PyCFunction) _wrap_PyPolygonShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33431 | { (char *)"PyPolygonShape_base_OnDrawOutline", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33432 | { (char *)"PyPolygonShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyPolygonShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33433 | { (char *)"PyPolygonShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyPolygonShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33434 | { (char *)"PyPolygonShape_base_OnMoveLink", (PyCFunction) _wrap_PyPolygonShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33435 | { (char *)"PyPolygonShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33436 | { (char *)"PyPolygonShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33437 | { (char *)"PyPolygonShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyPolygonShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33438 | { (char *)"PyPolygonShape_base_OnBeginSize", (PyCFunction) _wrap_PyPolygonShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33439 | { (char *)"PyPolygonShape_base_OnEndSize", (PyCFunction) _wrap_PyPolygonShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33440 | { (char *)"PyPolygonShape_swigregister", PyPolygonShape_swigregister, METH_VARARGS, NULL }, | |
33441 | { (char *)"new_PyTextShape", (PyCFunction) _wrap_new_PyTextShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33442 | { (char *)"PyTextShape__setCallbackInfo", (PyCFunction) _wrap_PyTextShape__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33443 | { (char *)"PyTextShape_base_OnDelete", (PyCFunction) _wrap_PyTextShape_base_OnDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33444 | { (char *)"PyTextShape_base_OnDraw", (PyCFunction) _wrap_PyTextShape_base_OnDraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33445 | { (char *)"PyTextShape_base_OnDrawContents", (PyCFunction) _wrap_PyTextShape_base_OnDrawContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33446 | { (char *)"PyTextShape_base_OnDrawBranches", (PyCFunction) _wrap_PyTextShape_base_OnDrawBranches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33447 | { (char *)"PyTextShape_base_OnMoveLinks", (PyCFunction) _wrap_PyTextShape_base_OnMoveLinks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33448 | { (char *)"PyTextShape_base_OnErase", (PyCFunction) _wrap_PyTextShape_base_OnErase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33449 | { (char *)"PyTextShape_base_OnEraseContents", (PyCFunction) _wrap_PyTextShape_base_OnEraseContents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33450 | { (char *)"PyTextShape_base_OnHighlight", (PyCFunction) _wrap_PyTextShape_base_OnHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33451 | { (char *)"PyTextShape_base_OnLeftClick", (PyCFunction) _wrap_PyTextShape_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33452 | { (char *)"PyTextShape_base_OnLeftDoubleClick", (PyCFunction) _wrap_PyTextShape_base_OnLeftDoubleClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33453 | { (char *)"PyTextShape_base_OnRightClick", (PyCFunction) _wrap_PyTextShape_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33454 | { (char *)"PyTextShape_base_OnSize", (PyCFunction) _wrap_PyTextShape_base_OnSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33455 | { (char *)"PyTextShape_base_OnMovePre", (PyCFunction) _wrap_PyTextShape_base_OnMovePre, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33456 | { (char *)"PyTextShape_base_OnMovePost", (PyCFunction) _wrap_PyTextShape_base_OnMovePost, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33457 | { (char *)"PyTextShape_base_OnDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33458 | { (char *)"PyTextShape_base_OnBeginDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33459 | { (char *)"PyTextShape_base_OnEndDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33460 | { (char *)"PyTextShape_base_OnDragRight", (PyCFunction) _wrap_PyTextShape_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33461 | { (char *)"PyTextShape_base_OnBeginDragRight", (PyCFunction) _wrap_PyTextShape_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33462 | { (char *)"PyTextShape_base_OnEndDragRight", (PyCFunction) _wrap_PyTextShape_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33463 | { (char *)"PyTextShape_base_OnDrawOutline", (PyCFunction) _wrap_PyTextShape_base_OnDrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33464 | { (char *)"PyTextShape_base_OnDrawControlPoints", (PyCFunction) _wrap_PyTextShape_base_OnDrawControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33465 | { (char *)"PyTextShape_base_OnEraseControlPoints", (PyCFunction) _wrap_PyTextShape_base_OnEraseControlPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33466 | { (char *)"PyTextShape_base_OnMoveLink", (PyCFunction) _wrap_PyTextShape_base_OnMoveLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33467 | { (char *)"PyTextShape_base_OnSizingDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnSizingDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33468 | { (char *)"PyTextShape_base_OnSizingBeginDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnSizingBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33469 | { (char *)"PyTextShape_base_OnSizingEndDragLeft", (PyCFunction) _wrap_PyTextShape_base_OnSizingEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33470 | { (char *)"PyTextShape_base_OnBeginSize", (PyCFunction) _wrap_PyTextShape_base_OnBeginSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33471 | { (char *)"PyTextShape_base_OnEndSize", (PyCFunction) _wrap_PyTextShape_base_OnEndSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33472 | { (char *)"PyTextShape_swigregister", PyTextShape_swigregister, METH_VARARGS, NULL }, | |
33473 | { (char *)"new_Diagram", (PyCFunction) _wrap_new_Diagram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33474 | { (char *)"Diagram_AddShape", (PyCFunction) _wrap_Diagram_AddShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33475 | { (char *)"Diagram_Clear", (PyCFunction) _wrap_Diagram_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33476 | { (char *)"Diagram_DeleteAllShapes", (PyCFunction) _wrap_Diagram_DeleteAllShapes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33477 | { (char *)"Diagram_DrawOutline", (PyCFunction) _wrap_Diagram_DrawOutline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33478 | { (char *)"Diagram_FindShape", (PyCFunction) _wrap_Diagram_FindShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33479 | { (char *)"Diagram_GetCanvas", (PyCFunction) _wrap_Diagram_GetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33480 | { (char *)"Diagram_GetCount", (PyCFunction) _wrap_Diagram_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33481 | { (char *)"Diagram_GetGridSpacing", (PyCFunction) _wrap_Diagram_GetGridSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33482 | { (char *)"Diagram_GetMouseTolerance", (PyCFunction) _wrap_Diagram_GetMouseTolerance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33483 | { (char *)"Diagram_GetShapeList", (PyCFunction) _wrap_Diagram_GetShapeList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33484 | { (char *)"Diagram_GetQuickEditMode", (PyCFunction) _wrap_Diagram_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33485 | { (char *)"Diagram_GetSnapToGrid", (PyCFunction) _wrap_Diagram_GetSnapToGrid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33486 | { (char *)"Diagram_InsertShape", (PyCFunction) _wrap_Diagram_InsertShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33487 | { (char *)"Diagram_RecentreAll", (PyCFunction) _wrap_Diagram_RecentreAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33488 | { (char *)"Diagram_Redraw", (PyCFunction) _wrap_Diagram_Redraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33489 | { (char *)"Diagram_RemoveAllShapes", (PyCFunction) _wrap_Diagram_RemoveAllShapes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33490 | { (char *)"Diagram_RemoveShape", (PyCFunction) _wrap_Diagram_RemoveShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33491 | { (char *)"Diagram_SetCanvas", (PyCFunction) _wrap_Diagram_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33492 | { (char *)"Diagram_SetGridSpacing", (PyCFunction) _wrap_Diagram_SetGridSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33493 | { (char *)"Diagram_SetMouseTolerance", (PyCFunction) _wrap_Diagram_SetMouseTolerance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33494 | { (char *)"Diagram_SetQuickEditMode", (PyCFunction) _wrap_Diagram_SetQuickEditMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33495 | { (char *)"Diagram_SetSnapToGrid", (PyCFunction) _wrap_Diagram_SetSnapToGrid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33496 | { (char *)"Diagram_ShowAll", (PyCFunction) _wrap_Diagram_ShowAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33497 | { (char *)"Diagram_Snap", (PyCFunction) _wrap_Diagram_Snap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33498 | { (char *)"Diagram_swigregister", Diagram_swigregister, METH_VARARGS, NULL }, | |
33499 | { (char *)"new_PyShapeCanvas", (PyCFunction) _wrap_new_PyShapeCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33500 | { (char *)"PyShapeCanvas__setCallbackInfo", (PyCFunction) _wrap_PyShapeCanvas__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33501 | { (char *)"PyShapeCanvas_AddShape", (PyCFunction) _wrap_PyShapeCanvas_AddShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33502 | { (char *)"PyShapeCanvas_FindShape", (PyCFunction) _wrap_PyShapeCanvas_FindShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33503 | { (char *)"PyShapeCanvas_FindFirstSensitiveShape", (PyCFunction) _wrap_PyShapeCanvas_FindFirstSensitiveShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33504 | { (char *)"PyShapeCanvas_GetDiagram", (PyCFunction) _wrap_PyShapeCanvas_GetDiagram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33505 | { (char *)"PyShapeCanvas_GetQuickEditMode", (PyCFunction) _wrap_PyShapeCanvas_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33506 | { (char *)"PyShapeCanvas_InsertShape", (PyCFunction) _wrap_PyShapeCanvas_InsertShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33507 | { (char *)"PyShapeCanvas_base_OnBeginDragLeft", (PyCFunction) _wrap_PyShapeCanvas_base_OnBeginDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33508 | { (char *)"PyShapeCanvas_base_OnBeginDragRight", (PyCFunction) _wrap_PyShapeCanvas_base_OnBeginDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33509 | { (char *)"PyShapeCanvas_base_OnEndDragLeft", (PyCFunction) _wrap_PyShapeCanvas_base_OnEndDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33510 | { (char *)"PyShapeCanvas_base_OnEndDragRight", (PyCFunction) _wrap_PyShapeCanvas_base_OnEndDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33511 | { (char *)"PyShapeCanvas_base_OnDragLeft", (PyCFunction) _wrap_PyShapeCanvas_base_OnDragLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33512 | { (char *)"PyShapeCanvas_base_OnDragRight", (PyCFunction) _wrap_PyShapeCanvas_base_OnDragRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33513 | { (char *)"PyShapeCanvas_base_OnLeftClick", (PyCFunction) _wrap_PyShapeCanvas_base_OnLeftClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33514 | { (char *)"PyShapeCanvas_base_OnRightClick", (PyCFunction) _wrap_PyShapeCanvas_base_OnRightClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33515 | { (char *)"PyShapeCanvas_Redraw", (PyCFunction) _wrap_PyShapeCanvas_Redraw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33516 | { (char *)"PyShapeCanvas_RemoveShape", (PyCFunction) _wrap_PyShapeCanvas_RemoveShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33517 | { (char *)"PyShapeCanvas_SetDiagram", (PyCFunction) _wrap_PyShapeCanvas_SetDiagram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33518 | { (char *)"PyShapeCanvas_Snap", (PyCFunction) _wrap_PyShapeCanvas_Snap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33519 | { (char *)"PyShapeCanvas_swigregister", PyShapeCanvas_swigregister, METH_VARARGS, NULL }, | |
33520 | { (char *)"OGLInitialize", (PyCFunction) _wrap_OGLInitialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33521 | { (char *)"OGLCleanUp", (PyCFunction) _wrap_OGLCleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33522 | { NULL, NULL, 0, NULL } | |
44127b65 RD |
33523 | }; |
33524 | ||
33525 | ||
33526 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
33527 | ||
33528 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
33529 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
33530 | } | |
33531 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
33532 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
33533 | } | |
a2482628 RD |
33534 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { |
33535 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33536 | } | |
44127b65 RD |
33537 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { |
33538 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33539 | } | |
33540 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
33541 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33542 | } | |
33543 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
33544 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
33545 | } | |
33546 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
33547 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33548 | } | |
33549 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
33550 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
33551 | } | |
33552 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
33553 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33554 | } | |
33555 | static void *_p_wxPyShapeCanvasTo_p_wxPanel(void *x) { | |
33556 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
33557 | } | |
a2482628 RD |
33558 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { |
33559 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33560 | } | |
44127b65 RD |
33561 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { |
33562 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33563 | } | |
33564 | static void *_p_wxPyShapeCanvasTo_p_wxScrolledWindow(void *x) { | |
33565 | return (void *)((wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
33566 | } | |
33567 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
33568 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
33569 | } | |
33570 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
33571 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
33572 | } | |
33573 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
33574 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
33575 | } | |
33576 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
33577 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33578 | } | |
33579 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
33580 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
33581 | } | |
33582 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
33583 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
33584 | } | |
33585 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
33586 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
33587 | } | |
33588 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
33589 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
33590 | } | |
33591 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
33592 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33593 | } | |
33594 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
33595 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33596 | } | |
33597 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
33598 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
33599 | } | |
33600 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
33601 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
33602 | } | |
33603 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
33604 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
33605 | } | |
33606 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
33607 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
33608 | } | |
33609 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
33610 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
33611 | } | |
33612 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
33613 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
33614 | } | |
33615 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
33616 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
33617 | } | |
33618 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
33619 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
33620 | } | |
33621 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
33622 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
33623 | } | |
33624 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
33625 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
33626 | } | |
33627 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
33628 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
33629 | } | |
33630 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
33631 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
33632 | } | |
33633 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
33634 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
33635 | } | |
33636 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
33637 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
33638 | } | |
a2482628 RD |
33639 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
33640 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33641 | } | |
44127b65 RD |
33642 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
33643 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33644 | } | |
33645 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
33646 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
33647 | } | |
33648 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
33649 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
33650 | } | |
33651 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
33652 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
33653 | } | |
33654 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33655 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33656 | } | |
33657 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
33658 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
33659 | } | |
33660 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
33661 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33662 | } | |
33663 | static void *_p_wxPyShapeCanvasTo_p_wxWindow(void *x) { | |
33664 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
33665 | } | |
33666 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
33667 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33668 | } | |
33669 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
33670 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33671 | } | |
33672 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
33673 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
33674 | } | |
33675 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
33676 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33677 | } | |
33678 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
33679 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
33680 | } | |
33681 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
33682 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
33683 | } | |
33684 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
33685 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
33686 | } | |
33687 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
33688 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
33689 | } | |
33690 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
33691 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
33692 | } | |
33693 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
33694 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
33695 | } | |
33696 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
33697 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
33698 | } | |
33699 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
33700 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
33701 | } | |
33702 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
33703 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
33704 | } | |
33705 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
33706 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
33707 | } | |
33708 | static void *_p_wxPyControlPointTo_p_wxObject(void *x) { | |
33709 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
33710 | } | |
33711 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
33712 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
33713 | } | |
33714 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
33715 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
33716 | } | |
33717 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
33718 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
33719 | } | |
33720 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
33721 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
33722 | } | |
33723 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
33724 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
33725 | } | |
33726 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
33727 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
33728 | } | |
33729 | static void *_p_wxOGLConstraintTo_p_wxObject(void *x) { | |
33730 | return (void *)((wxObject *) ((wxOGLConstraint *) x)); | |
33731 | } | |
33732 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
33733 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
33734 | } | |
33735 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
33736 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
33737 | } | |
33738 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
33739 | return (void *)((wxObject *) ((wxSizer *) x)); | |
33740 | } | |
33741 | static void *_p_wxPyDrawnShapeTo_p_wxObject(void *x) { | |
33742 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
33743 | } | |
33744 | static void *_p_wxPyDivisionShapeTo_p_wxObject(void *x) { | |
33745 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *)(wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
33746 | } | |
33747 | static void *_p_wxPyPolygonShapeTo_p_wxObject(void *x) { | |
33748 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyPolygonShape *) x)); | |
33749 | } | |
33750 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
33751 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
33752 | } | |
33753 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
33754 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33755 | } | |
33756 | static void *_p_wxArrowHeadTo_p_wxObject(void *x) { | |
33757 | return (void *)((wxObject *) ((wxArrowHead *) x)); | |
33758 | } | |
33759 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
33760 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
33761 | } | |
33762 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
33763 | return (void *)((wxObject *) ((wxEvent *) x)); | |
33764 | } | |
33765 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
33766 | return (void *)((wxObject *) ((wxFontData *) x)); | |
33767 | } | |
33768 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
33769 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
33770 | } | |
33771 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
33772 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
33773 | } | |
33774 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
33775 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
33776 | } | |
33777 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
33778 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
33779 | } | |
33780 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
33781 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
33782 | } | |
33783 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
33784 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
33785 | } | |
33786 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
33787 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
33788 | } | |
33789 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
33790 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
33791 | } | |
33792 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
33793 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
33794 | } | |
33795 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
33796 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33797 | } | |
33798 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
33799 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33800 | } | |
33801 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
33802 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33803 | } | |
33804 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
33805 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33806 | } | |
33807 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
33808 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33809 | } | |
33810 | static void *_p_wxPyShapeCanvasTo_p_wxObject(void *x) { | |
33811 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
33812 | } | |
33813 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
33814 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
33815 | } | |
33816 | static void *_p_wxPyEllipseShapeTo_p_wxObject(void *x) { | |
33817 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyEllipseShape *) x)); | |
33818 | } | |
33819 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
33820 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
33821 | } | |
33822 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
33823 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
33824 | } | |
33825 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
33826 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
33827 | } | |
33828 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
33829 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
33830 | } | |
33831 | static void *_p_wxPyBitmapShapeTo_p_wxObject(void *x) { | |
33832 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
33833 | } | |
33834 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
33835 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
33836 | } | |
33837 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
33838 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
33839 | } | |
33840 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
33841 | return (void *)((wxObject *) ((wxColourData *) x)); | |
33842 | } | |
33843 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
33844 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
33845 | } | |
33846 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
33847 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33848 | } | |
33849 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
33850 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
33851 | } | |
33852 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
33853 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
33854 | } | |
33855 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
33856 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
33857 | } | |
33858 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
33859 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33860 | } | |
33861 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
33862 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33863 | } | |
33864 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
33865 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
33866 | } | |
33867 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
33868 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
33869 | } | |
33870 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
33871 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
33872 | } | |
33873 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
33874 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
33875 | } | |
33876 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
33877 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
33878 | } | |
33879 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
33880 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
33881 | } | |
33882 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
33883 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
33884 | } | |
33885 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
33886 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
33887 | } | |
33888 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
33889 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33890 | } | |
33891 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
33892 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33893 | } | |
33894 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
33895 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
33896 | } | |
33897 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
33898 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
33899 | } | |
33900 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
33901 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
33902 | } | |
33903 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
33904 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
33905 | } | |
33906 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
33907 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
33908 | } | |
33909 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
33910 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
33911 | } | |
33912 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
33913 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
33914 | } | |
33915 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
33916 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
33917 | } | |
33918 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
33919 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
33920 | } | |
33921 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
33922 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
33923 | } | |
33924 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
33925 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
33926 | } | |
33927 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
33928 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
33929 | } | |
33930 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
33931 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
33932 | } | |
33933 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
33934 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
33935 | } | |
33936 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
33937 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
33938 | } | |
33939 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
33940 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
33941 | } | |
33942 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
33943 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
33944 | } | |
33945 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
33946 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
33947 | } | |
33948 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
33949 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
33950 | } | |
33951 | static void *_p_wxPyShapeEvtHandlerTo_p_wxObject(void *x) { | |
33952 | return (void *)((wxObject *) ((wxPyShapeEvtHandler *) x)); | |
33953 | } | |
33954 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
33955 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33956 | } | |
33957 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
33958 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33959 | } | |
33960 | static void *_p_wxPyTextShapeTo_p_wxObject(void *x) { | |
33961 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
33962 | } | |
33963 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
33964 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
33965 | } | |
33966 | static void *_p_wxPyDividedShapeTo_p_wxObject(void *x) { | |
33967 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
33968 | } | |
33969 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
33970 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
33971 | } | |
33972 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
33973 | return (void *)((wxObject *) ((wxImage *) x)); | |
33974 | } | |
33975 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
33976 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
33977 | } | |
33978 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
33979 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
33980 | } | |
33981 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
33982 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
33983 | } | |
33984 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
33985 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
33986 | } | |
33987 | static void *_p_wxDiagramTo_p_wxObject(void *x) { | |
33988 | return (void *)((wxObject *) ((wxDiagram *) x)); | |
33989 | } | |
33990 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
33991 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
33992 | } | |
33993 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
33994 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
33995 | } | |
33996 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
33997 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33998 | } | |
33999 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
34000 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
34001 | } | |
34002 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
34003 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
34004 | } | |
44127b65 RD |
34005 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
34006 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
34007 | } | |
34008 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
34009 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
34010 | } | |
34011 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
34012 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
34013 | } | |
41f1cec7 RD |
34014 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
34015 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
34016 | } | |
44127b65 RD |
34017 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
34018 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
34019 | } | |
34020 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
34021 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
34022 | } | |
34023 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
34024 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
34025 | } | |
34026 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
34027 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
34028 | } | |
34029 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
34030 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
34031 | } | |
34032 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
34033 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
34034 | } | |
34035 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
34036 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
34037 | } | |
34038 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
34039 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
34040 | } | |
34041 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
34042 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
34043 | } | |
34044 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
34045 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
34046 | } | |
a2482628 RD |
34047 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
34048 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
34049 | } | |
44127b65 RD |
34050 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
34051 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
34052 | } | |
34053 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
34054 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
34055 | } | |
34056 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
34057 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
34058 | } | |
34059 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
34060 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
34061 | } | |
34062 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
34063 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
34064 | } | |
34065 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
34066 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
34067 | } | |
34068 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
34069 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
34070 | } | |
34071 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
34072 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
34073 | } | |
34074 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
34075 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
34076 | } | |
34077 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
34078 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
34079 | } | |
7a0a63ae RD |
34080 | static void *_p_wxAttachmentPointTo_p_wxObject(void *x) { |
34081 | return (void *)((wxObject *) ((wxAttachmentPoint *) x)); | |
34082 | } | |
44127b65 RD |
34083 | static void *_p_wxPyShapeTo_p_wxObject(void *x) { |
34084 | return (void *)((wxObject *) (wxPyShapeEvtHandler *) ((wxPyShape *) x)); | |
34085 | } | |
34086 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
34087 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
34088 | } | |
34089 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
34090 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
34091 | } | |
34092 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
34093 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
34094 | } | |
34095 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
34096 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
34097 | } | |
34098 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
34099 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
34100 | } | |
34101 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
34102 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
34103 | } | |
34104 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
34105 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
34106 | } | |
34107 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
34108 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
34109 | } | |
34110 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
34111 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
34112 | } | |
34113 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
34114 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
34115 | } | |
34116 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
34117 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
34118 | } | |
34119 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
34120 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
34121 | } | |
34122 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
34123 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
34124 | } | |
34125 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
34126 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
34127 | } | |
34128 | static void *_p_wxPyRectangleShapeTo_p_wxObject(void *x) { | |
34129 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyRectangleShape *) x)); | |
34130 | } | |
34131 | static void *_p_wxPyCompositeShapeTo_p_wxObject(void *x) { | |
34132 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
34133 | } | |
34134 | static void *_p_wxPyCircleShapeTo_p_wxObject(void *x) { | |
34135 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *)(wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
34136 | } | |
34137 | static void *_p_wxPyLineShapeTo_p_wxObject(void *x) { | |
34138 | return (void *)((wxObject *) (wxPyShapeEvtHandler *)(wxPyShape *) ((wxPyLineShape *) x)); | |
34139 | } | |
34140 | static void *_p_wxPseudoMetaFileTo_p_wxObject(void *x) { | |
34141 | return (void *)((wxObject *) ((wxPseudoMetaFile *) x)); | |
34142 | } | |
34143 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
34144 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
34145 | } | |
34146 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
34147 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
34148 | } | |
34149 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
34150 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
34151 | } | |
34152 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
34153 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
34154 | } | |
34155 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
34156 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
34157 | } | |
34158 | static void *_p_wxShapeRegionTo_p_wxObject(void *x) { | |
34159 | return (void *)((wxObject *) ((wxShapeRegion *) x)); | |
34160 | } | |
34161 | static void *_p_wxPyRectangleShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34162 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyRectangleShape *) x)); | |
34163 | } | |
34164 | static void *_p_wxPyBitmapShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34165 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
34166 | } | |
34167 | static void *_p_wxPyCompositeShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34168 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
34169 | } | |
34170 | static void *_p_wxPyCircleShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34171 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
34172 | } | |
34173 | static void *_p_wxPyLineShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34174 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyLineShape *) x)); | |
34175 | } | |
34176 | static void *_p_wxPyTextShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34177 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
34178 | } | |
34179 | static void *_p_wxPyControlPointTo_p_wxPyShapeEvtHandler(void *x) { | |
34180 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
34181 | } | |
34182 | static void *_p_wxPyDrawnShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34183 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
34184 | } | |
34185 | static void *_p_wxPyDivisionShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34186 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *)(wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
34187 | } | |
34188 | static void *_p_wxPyPolygonShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34189 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyPolygonShape *) x)); | |
34190 | } | |
34191 | static void *_p_wxPyDividedShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34192 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *)(wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
34193 | } | |
34194 | static void *_p_wxPyShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34195 | return (void *)((wxPyShapeEvtHandler *) ((wxPyShape *) x)); | |
34196 | } | |
34197 | static void *_p_wxPyEllipseShapeTo_p_wxPyShapeEvtHandler(void *x) { | |
34198 | return (void *)((wxPyShapeEvtHandler *) (wxPyShape *) ((wxPyEllipseShape *) x)); | |
34199 | } | |
34200 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
34201 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
34202 | } | |
34203 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
34204 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
34205 | } | |
34206 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
34207 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
34208 | } | |
34209 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
34210 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
34211 | } | |
34212 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
34213 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
34214 | } | |
34215 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
34216 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
34217 | } | |
34218 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
34219 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
34220 | } | |
34221 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
34222 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
34223 | } | |
34224 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
34225 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
34226 | } | |
34227 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
34228 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
34229 | } | |
34230 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
34231 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
34232 | } | |
34233 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
34234 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
34235 | } | |
34236 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
34237 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
34238 | } | |
34239 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
34240 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
34241 | } | |
34242 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
34243 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
34244 | } | |
34245 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
34246 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
34247 | } | |
34248 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
34249 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
34250 | } | |
34251 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
34252 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
34253 | } | |
34254 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
34255 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
34256 | } | |
34257 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
34258 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
34259 | } | |
34260 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
34261 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
34262 | } | |
34263 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
34264 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
34265 | } | |
34266 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
34267 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
34268 | } | |
34269 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
34270 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
34271 | } | |
34272 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
34273 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
34274 | } | |
34275 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
34276 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
34277 | } | |
34278 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
34279 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
34280 | } | |
34281 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
34282 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
34283 | } | |
a2482628 RD |
34284 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { |
34285 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
34286 | } | |
44127b65 RD |
34287 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
34288 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
34289 | } | |
34290 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
34291 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
34292 | } | |
34293 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
34294 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
34295 | } | |
34296 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
34297 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
34298 | } | |
34299 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
34300 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
34301 | } | |
34302 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
34303 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
34304 | } | |
34305 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
34306 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
34307 | } | |
34308 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
34309 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
34310 | } | |
34311 | static void *_p_wxPyShapeCanvasTo_p_wxEvtHandler(void *x) { | |
34312 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyShapeCanvas *) x)); | |
34313 | } | |
34314 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
34315 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
34316 | } | |
34317 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
34318 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
34319 | } | |
34320 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
34321 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
34322 | } | |
34323 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
34324 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
34325 | } | |
34326 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
34327 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
34328 | } | |
34329 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
34330 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
34331 | } | |
34332 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
34333 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
34334 | } | |
34335 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
34336 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
34337 | } | |
34338 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
34339 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
34340 | } | |
34341 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
34342 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
34343 | } | |
34344 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
34345 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
34346 | } | |
34347 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
34348 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
34349 | } | |
34350 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
34351 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
34352 | } | |
34353 | static void *_p_wxPyCircleShapeTo_p_wxPyEllipseShape(void *x) { | |
34354 | return (void *)((wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
34355 | } | |
34356 | static void *_p_wxPyRectangleShapeTo_p_wxPyShape(void *x) { | |
34357 | return (void *)((wxPyShape *) ((wxPyRectangleShape *) x)); | |
34358 | } | |
34359 | static void *_p_wxPyBitmapShapeTo_p_wxPyShape(void *x) { | |
34360 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
34361 | } | |
34362 | static void *_p_wxPyCompositeShapeTo_p_wxPyShape(void *x) { | |
34363 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
34364 | } | |
34365 | static void *_p_wxPyCircleShapeTo_p_wxPyShape(void *x) { | |
34366 | return (void *)((wxPyShape *) (wxPyEllipseShape *) ((wxPyCircleShape *) x)); | |
34367 | } | |
34368 | static void *_p_wxPyLineShapeTo_p_wxPyShape(void *x) { | |
34369 | return (void *)((wxPyShape *) ((wxPyLineShape *) x)); | |
34370 | } | |
34371 | static void *_p_wxPyTextShapeTo_p_wxPyShape(void *x) { | |
34372 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
34373 | } | |
34374 | static void *_p_wxPyControlPointTo_p_wxPyShape(void *x) { | |
34375 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
34376 | } | |
34377 | static void *_p_wxPyDrawnShapeTo_p_wxPyShape(void *x) { | |
34378 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
34379 | } | |
34380 | static void *_p_wxPyDivisionShapeTo_p_wxPyShape(void *x) { | |
34381 | return (void *)((wxPyShape *) (wxPyRectangleShape *)(wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
34382 | } | |
34383 | static void *_p_wxPyPolygonShapeTo_p_wxPyShape(void *x) { | |
34384 | return (void *)((wxPyShape *) ((wxPyPolygonShape *) x)); | |
34385 | } | |
34386 | static void *_p_wxPyDividedShapeTo_p_wxPyShape(void *x) { | |
34387 | return (void *)((wxPyShape *) (wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
34388 | } | |
34389 | static void *_p_wxPyEllipseShapeTo_p_wxPyShape(void *x) { | |
34390 | return (void *)((wxPyShape *) ((wxPyEllipseShape *) x)); | |
34391 | } | |
34392 | static void *_p_wxPyBitmapShapeTo_p_wxPyRectangleShape(void *x) { | |
34393 | return (void *)((wxPyRectangleShape *) ((wxPyBitmapShape *) x)); | |
34394 | } | |
34395 | static void *_p_wxPyCompositeShapeTo_p_wxPyRectangleShape(void *x) { | |
34396 | return (void *)((wxPyRectangleShape *) ((wxPyCompositeShape *) x)); | |
34397 | } | |
34398 | static void *_p_wxPyTextShapeTo_p_wxPyRectangleShape(void *x) { | |
34399 | return (void *)((wxPyRectangleShape *) ((wxPyTextShape *) x)); | |
34400 | } | |
34401 | static void *_p_wxPyControlPointTo_p_wxPyRectangleShape(void *x) { | |
34402 | return (void *)((wxPyRectangleShape *) ((wxPyControlPoint *) x)); | |
34403 | } | |
34404 | static void *_p_wxPyDrawnShapeTo_p_wxPyRectangleShape(void *x) { | |
34405 | return (void *)((wxPyRectangleShape *) ((wxPyDrawnShape *) x)); | |
34406 | } | |
34407 | static void *_p_wxPyDivisionShapeTo_p_wxPyRectangleShape(void *x) { | |
34408 | return (void *)((wxPyRectangleShape *) (wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
34409 | } | |
34410 | static void *_p_wxPyDividedShapeTo_p_wxPyRectangleShape(void *x) { | |
34411 | return (void *)((wxPyRectangleShape *) ((wxPyDividedShape *) x)); | |
34412 | } | |
34413 | static void *_p_wxPyDivisionShapeTo_p_wxPyCompositeShape(void *x) { | |
34414 | return (void *)((wxPyCompositeShape *) ((wxPyDivisionShape *) x)); | |
34415 | } | |
2f4c0a16 RD |
34416 | 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}}; |
34417 | 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}}; | |
34418 | 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}}; | |
34419 | 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}}; | |
34420 | 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}}; | |
34421 | 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}}; | |
34422 | 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}}; | |
34423 | 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}}; | |
34424 | 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}}; | |
34425 | 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}}; | |
a2482628 | 34426 | 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}}; |
2f4c0a16 RD |
34427 | 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}}; |
34428 | 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}}; | |
34429 | 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}}; | |
a2482628 RD |
34430 | 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}}; |
34431 | 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}}; | |
2f4c0a16 RD |
34432 | 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}}; |
34433 | 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}}; | |
34434 | 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}}; | |
34435 | 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}}; | |
34436 | 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}}; | |
a2482628 | 34437 | 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_wxTaskBarIcon", _p_wxTaskBarIconTo_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}}; |
2f4c0a16 RD |
34438 | 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}}; |
34439 | 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}}; | |
a2482628 | 34440 | 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_wxTaskBarIcon", _p_wxTaskBarIconTo_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}}; |
2f4c0a16 RD |
34441 | 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}}; |
34442 | 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}}; | |
34443 | 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}}; | |
34444 | 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}}; | |
34445 | 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}}; | |
34446 | 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}}; | |
34447 | 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}}; | |
34448 | 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}}; | |
34449 | 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}}; | |
34450 | 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}}; | |
34451 | 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}}; | |
34452 | 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}}; | |
34453 | 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}}; | |
34454 | 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}}; | |
34455 | 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}}; | |
34456 | 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}}; | |
44127b65 RD |
34457 | |
34458 | static swig_type_info *swig_types_initial[] = { | |
34459 | _swigt__p_wxOGLConstraint, | |
34460 | _swigt__p_wxBrush, | |
34461 | _swigt__p_wxColour, | |
34462 | _swigt__p_wxShapeRegion, | |
34463 | _swigt__p_wxDC, | |
34464 | _swigt__p_wxRealPoint, | |
34465 | _swigt__p_wxPyControlPoint, | |
34466 | _swigt__p_wxArrowHead, | |
8edf1c75 | 34467 | _swigt__p_char, |
44127b65 RD |
34468 | _swigt__p_wxStringList, |
34469 | _swigt__p_wxPanel, | |
34470 | _swigt__p_bool, | |
34471 | _swigt__p_wxList, | |
34472 | _swigt__p_wxFont, | |
34473 | _swigt__p_wxScrolledWindow, | |
34474 | _swigt__p_wxWindow, | |
34475 | _swigt__p_double, | |
8edf1c75 | 34476 | _swigt__p_wxPyDivisionShape, |
02a34c4c | 34477 | _swigt__p_wxPyDrawnShape, |
44127b65 RD |
34478 | _swigt__p_wxPyPolygonShape, |
34479 | _swigt__p_wxBitmap, | |
34480 | _swigt__p_wxObject, | |
34481 | _swigt__p_wxPyBitmapShape, | |
44127b65 RD |
34482 | _swigt__p_wxPyShapeEvtHandler, |
34483 | _swigt__p_wxEvtHandler, | |
34484 | _swigt__p_wxPyEllipseShape, | |
34485 | _swigt__p_wxPyShapeCanvas, | |
34486 | _swigt__p_wxPoint, | |
34487 | _swigt__p_wxDiagram, | |
34488 | _swigt__p_wxPyShape, | |
7a0a63ae | 34489 | _swigt__p_wxAttachmentPoint, |
44127b65 RD |
34490 | _swigt__p_wxClassInfo, |
34491 | _swigt__p_wxPyLineShape, | |
34492 | _swigt__p_wxPyRectangleShape, | |
34493 | _swigt__p_wxPyCompositeShape, | |
34494 | _swigt__p_wxPyCircleShape, | |
34495 | _swigt__p_wxPen, | |
34496 | _swigt__p_int, | |
34497 | _swigt__p_wxPseudoMetaFile, | |
34498 | _swigt__p_wxPyTextShape, | |
34499 | _swigt__p_wxPyDividedShape, | |
34500 | 0 | |
34501 | }; | |
34502 | ||
34503 | ||
34504 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
34505 | ||
34506 | static swig_const_info swig_const_table[] = { | |
c370783e | 34507 | {0, 0, 0, 0.0, 0, 0}}; |
44127b65 RD |
34508 | |
34509 | #ifdef __cplusplus | |
34510 | } | |
34511 | #endif | |
34512 | ||
34513 | #ifdef __cplusplus | |
34514 | extern "C" | |
34515 | #endif | |
34516 | SWIGEXPORT(void) SWIG_init(void) { | |
34517 | static PyObject *SWIG_globals = 0; | |
34518 | static int typeinit = 0; | |
34519 | PyObject *m, *d; | |
34520 | int i; | |
34521 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
34522 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
34523 | d = PyModule_GetDict(m); | |
34524 | ||
34525 | if (!typeinit) { | |
34526 | for (i = 0; swig_types_initial[i]; i++) { | |
34527 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
34528 | } | |
34529 | typeinit = 1; | |
34530 | } | |
34531 | SWIG_InstallConstants(d,swig_const_table); | |
34532 | ||
c370783e RD |
34533 | PyDict_SetItemString(d,"oglMETAFLAGS_OUTLINE", SWIG_From_int((int)oglMETAFLAGS_OUTLINE)); |
34534 | PyDict_SetItemString(d,"oglMETAFLAGS_ATTACHMENTS", SWIG_From_int((int)oglMETAFLAGS_ATTACHMENTS)); | |
34535 | PyDict_SetItemString(d,"KEY_SHIFT", SWIG_From_int((int)KEY_SHIFT)); | |
34536 | PyDict_SetItemString(d,"KEY_CTRL", SWIG_From_int((int)KEY_CTRL)); | |
34537 | PyDict_SetItemString(d,"ARROW_NONE", SWIG_From_int((int)ARROW_NONE)); | |
34538 | PyDict_SetItemString(d,"ARROW_END", SWIG_From_int((int)ARROW_END)); | |
34539 | PyDict_SetItemString(d,"ARROW_BOTH", SWIG_From_int((int)ARROW_BOTH)); | |
34540 | PyDict_SetItemString(d,"ARROW_MIDDLE", SWIG_From_int((int)ARROW_MIDDLE)); | |
34541 | PyDict_SetItemString(d,"ARROW_START", SWIG_From_int((int)ARROW_START)); | |
34542 | PyDict_SetItemString(d,"ARROW_HOLLOW_CIRCLE", SWIG_From_int((int)ARROW_HOLLOW_CIRCLE)); | |
34543 | PyDict_SetItemString(d,"ARROW_FILLED_CIRCLE", SWIG_From_int((int)ARROW_FILLED_CIRCLE)); | |
34544 | PyDict_SetItemString(d,"ARROW_ARROW", SWIG_From_int((int)ARROW_ARROW)); | |
34545 | PyDict_SetItemString(d,"ARROW_SINGLE_OBLIQUE", SWIG_From_int((int)ARROW_SINGLE_OBLIQUE)); | |
34546 | PyDict_SetItemString(d,"ARROW_DOUBLE_OBLIQUE", SWIG_From_int((int)ARROW_DOUBLE_OBLIQUE)); | |
34547 | PyDict_SetItemString(d,"ARROW_METAFILE", SWIG_From_int((int)ARROW_METAFILE)); | |
34548 | PyDict_SetItemString(d,"ARROW_POSITION_END", SWIG_From_int((int)ARROW_POSITION_END)); | |
34549 | PyDict_SetItemString(d,"ARROW_POSITION_START", SWIG_From_int((int)ARROW_POSITION_START)); | |
34550 | PyDict_SetItemString(d,"CONTROL_POINT_VERTICAL", SWIG_From_int((int)CONTROL_POINT_VERTICAL)); | |
34551 | PyDict_SetItemString(d,"CONTROL_POINT_HORIZONTAL", SWIG_From_int((int)CONTROL_POINT_HORIZONTAL)); | |
34552 | PyDict_SetItemString(d,"CONTROL_POINT_DIAGONAL", SWIG_From_int((int)CONTROL_POINT_DIAGONAL)); | |
34553 | PyDict_SetItemString(d,"CONTROL_POINT_ENDPOINT_TO", SWIG_From_int((int)CONTROL_POINT_ENDPOINT_TO)); | |
34554 | PyDict_SetItemString(d,"CONTROL_POINT_ENDPOINT_FROM", SWIG_From_int((int)CONTROL_POINT_ENDPOINT_FROM)); | |
34555 | PyDict_SetItemString(d,"CONTROL_POINT_LINE", SWIG_From_int((int)CONTROL_POINT_LINE)); | |
34556 | PyDict_SetItemString(d,"FORMAT_NONE", SWIG_From_int((int)FORMAT_NONE)); | |
34557 | PyDict_SetItemString(d,"FORMAT_CENTRE_HORIZ", SWIG_From_int((int)FORMAT_CENTRE_HORIZ)); | |
34558 | PyDict_SetItemString(d,"FORMAT_CENTRE_VERT", SWIG_From_int((int)FORMAT_CENTRE_VERT)); | |
34559 | PyDict_SetItemString(d,"FORMAT_SIZE_TO_CONTENTS", SWIG_From_int((int)FORMAT_SIZE_TO_CONTENTS)); | |
34560 | PyDict_SetItemString(d,"LINE_ALIGNMENT_HORIZ", SWIG_From_int((int)LINE_ALIGNMENT_HORIZ)); | |
34561 | PyDict_SetItemString(d,"LINE_ALIGNMENT_VERT", SWIG_From_int((int)LINE_ALIGNMENT_VERT)); | |
34562 | PyDict_SetItemString(d,"LINE_ALIGNMENT_TO_NEXT_HANDLE", SWIG_From_int((int)LINE_ALIGNMENT_TO_NEXT_HANDLE)); | |
34563 | PyDict_SetItemString(d,"LINE_ALIGNMENT_NONE", SWIG_From_int((int)LINE_ALIGNMENT_NONE)); | |
34564 | PyDict_SetItemString(d,"SHADOW_NONE", SWIG_From_int((int)SHADOW_NONE)); | |
34565 | PyDict_SetItemString(d,"SHADOW_LEFT", SWIG_From_int((int)SHADOW_LEFT)); | |
34566 | PyDict_SetItemString(d,"SHADOW_RIGHT", SWIG_From_int((int)SHADOW_RIGHT)); | |
34567 | PyDict_SetItemString(d,"OP_CLICK_LEFT", SWIG_From_int((int)OP_CLICK_LEFT)); | |
34568 | PyDict_SetItemString(d,"OP_CLICK_RIGHT", SWIG_From_int((int)OP_CLICK_RIGHT)); | |
34569 | PyDict_SetItemString(d,"OP_DRAG_LEFT", SWIG_From_int((int)OP_DRAG_LEFT)); | |
34570 | PyDict_SetItemString(d,"OP_DRAG_RIGHT", SWIG_From_int((int)OP_DRAG_RIGHT)); | |
34571 | PyDict_SetItemString(d,"OP_ALL", SWIG_From_int((int)OP_ALL)); | |
34572 | PyDict_SetItemString(d,"ATTACHMENT_MODE_NONE", SWIG_From_int((int)ATTACHMENT_MODE_NONE)); | |
34573 | PyDict_SetItemString(d,"ATTACHMENT_MODE_EDGE", SWIG_From_int((int)ATTACHMENT_MODE_EDGE)); | |
34574 | PyDict_SetItemString(d,"ATTACHMENT_MODE_BRANCHING", SWIG_From_int((int)ATTACHMENT_MODE_BRANCHING)); | |
34575 | PyDict_SetItemString(d,"BRANCHING_ATTACHMENT_NORMAL", SWIG_From_int((int)BRANCHING_ATTACHMENT_NORMAL)); | |
34576 | PyDict_SetItemString(d,"BRANCHING_ATTACHMENT_BLOB", SWIG_From_int((int)BRANCHING_ATTACHMENT_BLOB)); | |
34577 | PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_VERTICALLY", SWIG_From_int((int)gyCONSTRAINT_CENTRED_VERTICALLY)); | |
34578 | PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_HORIZONTALLY", SWIG_From_int((int)gyCONSTRAINT_CENTRED_HORIZONTALLY)); | |
34579 | PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_BOTH", SWIG_From_int((int)gyCONSTRAINT_CENTRED_BOTH)); | |
34580 | PyDict_SetItemString(d,"gyCONSTRAINT_LEFT_OF", SWIG_From_int((int)gyCONSTRAINT_LEFT_OF)); | |
34581 | PyDict_SetItemString(d,"gyCONSTRAINT_RIGHT_OF", SWIG_From_int((int)gyCONSTRAINT_RIGHT_OF)); | |
34582 | PyDict_SetItemString(d,"gyCONSTRAINT_ABOVE", SWIG_From_int((int)gyCONSTRAINT_ABOVE)); | |
34583 | PyDict_SetItemString(d,"gyCONSTRAINT_BELOW", SWIG_From_int((int)gyCONSTRAINT_BELOW)); | |
34584 | PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_TOP", SWIG_From_int((int)gyCONSTRAINT_ALIGNED_TOP)); | |
34585 | PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_BOTTOM", SWIG_From_int((int)gyCONSTRAINT_ALIGNED_BOTTOM)); | |
34586 | PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_LEFT", SWIG_From_int((int)gyCONSTRAINT_ALIGNED_LEFT)); | |
34587 | PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_RIGHT", SWIG_From_int((int)gyCONSTRAINT_ALIGNED_RIGHT)); | |
34588 | PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_TOP", SWIG_From_int((int)gyCONSTRAINT_MIDALIGNED_TOP)); | |
34589 | PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_BOTTOM", SWIG_From_int((int)gyCONSTRAINT_MIDALIGNED_BOTTOM)); | |
34590 | PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_LEFT", SWIG_From_int((int)gyCONSTRAINT_MIDALIGNED_LEFT)); | |
34591 | PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_RIGHT", SWIG_From_int((int)gyCONSTRAINT_MIDALIGNED_RIGHT)); | |
34592 | PyDict_SetItemString(d,"DIVISION_SIDE_NONE", SWIG_From_int((int)DIVISION_SIDE_NONE)); | |
34593 | PyDict_SetItemString(d,"DIVISION_SIDE_LEFT", SWIG_From_int((int)DIVISION_SIDE_LEFT)); | |
34594 | PyDict_SetItemString(d,"DIVISION_SIDE_TOP", SWIG_From_int((int)DIVISION_SIDE_TOP)); | |
34595 | PyDict_SetItemString(d,"DIVISION_SIDE_RIGHT", SWIG_From_int((int)DIVISION_SIDE_RIGHT)); | |
34596 | PyDict_SetItemString(d,"DIVISION_SIDE_BOTTOM", SWIG_From_int((int)DIVISION_SIDE_BOTTOM)); | |
44127b65 RD |
34597 | |
34598 | ||
34599 | // initoglbasicc(); | |
34600 | // initoglshapesc(); | |
34601 | // initoglshapes2c(); | |
34602 | // initoglcanvasc(); | |
34603 | ||
34604 | ||
34605 | wxPyPtrTypeMap_Add("wxControlPoint", "wxPyControlPoint"); | |
34606 | wxPyPtrTypeMap_Add("wxShapeCanvas", "wxPyShapeCanvas"); | |
34607 | wxPyPtrTypeMap_Add("wxShapeEvtHandler", "wxPyShapeEvtHandler"); | |
34608 | wxPyPtrTypeMap_Add("wxShape", "wxPyShape"); | |
34609 | wxPyPtrTypeMap_Add("wxRectangleShape", "wxPyRectangleShape"); | |
34610 | wxPyPtrTypeMap_Add("wxDrawnShape", "wxPyDrawnShape"); | |
34611 | wxPyPtrTypeMap_Add("wxCompositeShape", "wxPyCompositeShape"); | |
34612 | wxPyPtrTypeMap_Add("wxDividedShape", "wxPyDividedShape"); | |
34613 | wxPyPtrTypeMap_Add("wxDivisionShape", "wxPyDivisionShape"); | |
34614 | wxPyPtrTypeMap_Add("wxEllipseShape", "wxPyEllipseShape"); | |
34615 | wxPyPtrTypeMap_Add("wxCircleShape", "wxPyCircleShape"); | |
34616 | wxPyPtrTypeMap_Add("wxLineShape", "wxPyLineShape"); | |
34617 | wxPyPtrTypeMap_Add("wxPolygonShape", "wxPyPolygonShape"); | |
34618 | wxPyPtrTypeMap_Add("wxTextShape", "wxPyTextShape"); | |
34619 | ||
34620 | ||
34621 | } | |
34622 |